@treeseed/sdk 0.13.0-rc.6 → 0.13.0-rc.8
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/dist/accounts/account-contracts.d.ts +1 -1
- package/dist/agent-capacity/authority/assignment-authority-probe.d.ts +2 -2
- package/dist/agent-capacity/validation/agent-definition-schema.d.ts +108 -108
- package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +1 -1
- package/dist/ai-appliance/contracts.d.ts +2 -2
- package/dist/ai-appliance/contracts.js +2 -2
- package/dist/ai-appliance/validation.js +1 -1
- package/dist/capacity-provider/client.d.ts +2 -2
- package/dist/capacity-provider/client.js +4 -4
- package/dist/capacity-provider/contracts/governance.d.ts +6 -6
- package/dist/capacity-provider/validation.js +2 -2
- package/dist/content/validation/agent-operational-content-schemas.d.ts +64 -64
- package/dist/content/validation/auxiliary-content-schemas.d.ts +46 -46
- package/dist/content/validation/auxiliary-content-schemas.js +2 -2
- package/dist/content/validation/content-model-schemas.d.ts +426 -426
- package/dist/content/validation/portable-content-data.d.ts +60 -60
- package/dist/db/index.d.ts +0 -1
- package/dist/db/index.js +0 -1
- package/dist/entrypoints/clients/control-plane-client.d.ts +60 -0
- package/dist/entrypoints/clients/control-plane-client.js +134 -4
- package/dist/entrypoints/models/sdk-types.d.ts +1 -7
- package/dist/entrypoints/models/sdk-types.js +1 -7
- package/dist/guarantees/contracts/parse-agent-guarantee-proof.js +1 -1
- package/dist/guarantees/index/run-verifier-command.d.ts +1 -1
- package/dist/index/operations-and-workflows.d.ts +0 -1
- package/dist/index/operations-and-workflows.js +0 -36
- package/dist/index/platform-and-hosting.d.ts +1 -2
- package/dist/index/platform-and-hosting.js +23 -45
- package/dist/index/public-contracts.d.ts +0 -3
- package/dist/index/public-contracts.js +0 -3
- package/dist/index/templates-and-catalog.d.ts +1 -1
- package/dist/index/templates-and-catalog.js +1 -1
- package/dist/local-dev/managed-dev-process-spec.js +0 -1
- package/dist/operations/providers/default/preflight-operation.d.ts +6 -6
- package/dist/operations/services/config-runtime/configuration/create-default-machine-config.d.ts +2 -0
- package/dist/operations/services/config-runtime/configuration/create-default-machine-config.js +2 -0
- package/dist/operations/services/config-runtime/configuration/list-relevant-config-entries.js +1 -1
- package/dist/operations/services/config-runtime/support/resolve-entry-value-from-buckets.js +1 -1
- package/dist/operations/services/config-runtime/support/rotate-machine-key-passphrase.d.ts +4 -0
- package/dist/operations/services/config-runtime/{commerce/catalog/resolve-template-catalog-endpoint.d.ts → templates/catalog/template-catalog-settings.d.ts} +1 -0
- package/dist/operations/services/configuration/config-runtime.d.ts +1 -1
- package/dist/operations/services/configuration/config-runtime.js +1 -1
- package/dist/operations/services/deploy/accounts/local-runtime-auth-env-keys.d.ts +2 -2
- package/dist/operations/services/deploy/accounts/local-runtime-auth-env-keys.js +3 -3
- package/dist/operations/services/deploy/hosting/assert-cloudflare-cache-purge-succeeded.d.ts +0 -1
- package/dist/operations/services/deploy/hosting/assert-cloudflare-cache-purge-succeeded.js +1 -6
- package/dist/operations/services/deploy/hosting/configured-surface-hosts.d.ts +0 -2
- package/dist/operations/services/deploy/hosting/configured-surface-hosts.js +1 -3
- package/dist/operations/services/deploy/hosting/load-deploy-state.js +2 -2
- package/dist/operations/services/deploy/support/default-compatibility-date.d.ts +0 -1
- package/dist/operations/services/deploy/support/default-compatibility-date.js +0 -2
- package/dist/operations/services/github-actions-verification/git-hub-actions-workflow-state.d.ts +1 -1
- package/dist/operations/services/hosting/audit/managed-host-security.js +0 -1
- package/dist/operations/services/hosting-audit/hosting-audit-environment.d.ts +2 -2
- package/dist/operations/services/key-agent/read-legacy-project-machine-key.d.ts +1 -1
- package/dist/operations/services/template-registry/sync-managed-package-json.d.ts +3 -3
- package/dist/operations/services/template-registry/template-categories.d.ts +1 -1
- package/dist/operations/services/template-registry/validate-template-placeholders.js +1 -1
- package/dist/platform/deploy-config/deploy-config-field-aliases.d.ts +2 -2
- package/dist/platform/deploy-config/deploy-config-field-aliases.js +3 -3
- package/dist/platform/deploy-config/normalize-planes-from-legacy-hosting.d.ts +2 -2
- package/dist/platform/deploy-config/normalize-planes-from-legacy-hosting.js +5 -5
- package/dist/platform/deploy-config/parse-deploy-config.js +2 -4
- package/dist/platform/deploy-config/parse-platform-connections.d.ts +2 -4
- package/dist/platform/deploy-config/parse-platform-connections.js +4 -25
- package/dist/platform/desired-state/desired-environment.d.ts +1 -1
- package/dist/platform/env.yaml +2 -199
- package/dist/platform/environment/environment-scopes.d.ts +1 -2
- package/dist/platform/environment/environment-scopes.js +0 -2
- package/dist/platform/environment/resolve-content-bucket-binding.d.ts +1 -4
- package/dist/platform/environment/resolve-content-bucket-binding.js +1 -16
- package/dist/platform/packages/published-content-pipeline.d.ts +1 -1
- package/dist/platform/packages/published-content-pipeline.js +1 -1
- package/dist/platform/published-content/published-content-manifest-schema-version.d.ts +2 -2
- package/dist/platform/published-content/runtime/build-runtime-publication.js +1 -1
- package/dist/platform/published-content-pipeline/default-artifact-builder.d.ts +1 -1
- package/dist/platform/published-content-pipeline/default-artifact-builder.js +2 -2
- package/dist/platform/published-content-pipeline/list-markdown-files.d.ts +1 -1
- package/dist/platform/published-content-pipeline/list-markdown-files.js +1 -1
- package/dist/platform/published-content-pipeline/{resolve-commerce-offer-mode.d.ts → resolve-publication-access-mode.d.ts} +3 -2
- package/dist/platform/published-content-pipeline/{resolve-commerce-offer-mode.js → resolve-publication-access-mode.js} +4 -4
- package/dist/platform/support/contracts.d.ts +4 -11
- package/dist/reconcile/builtin-adapters/capacity/providers/capacity-provider-variables-for-service.d.ts +1 -2
- package/dist/reconcile/builtin-adapters/capacity/providers/capacity-provider-variables-for-service.js +3 -18
- package/dist/reconcile/builtin-adapters/hosting/observe-railway-unit.js +1 -10
- package/dist/reconcile/index.d.ts +0 -2
- package/dist/reconcile/index.js +0 -2
- package/dist/reconcile/seeds/local-seed-bootstrap-adapter.js +2 -18
- package/dist/scenes/accounts/auth.js +5 -5
- package/dist/scenes/index.d.ts +0 -8
- package/dist/scenes/index.js +0 -50
- package/dist/scenes/runner/run-scene.js +1 -26
- package/dist/scenes/seeds/seed.js +7 -8
- package/dist/scenes/support/execution/base-url.js +1 -1
- package/dist/scenes/visual-audit/run-scene-visual-audit.js +3 -21
- package/dist/scenes/visual-audit/split-diagnostics.js +1 -1
- package/dist/scripts/verification/check-file-architecture.js +0 -3
- package/dist/sdk/support/messages/dispatch.js +3 -3
- package/dist/sdk-types/configuration/sdk-dispatch-credential-source.d.ts +1 -1
- package/dist/sdk-types/{commerce/catalog/upsert-catalog-item-request.d.ts → control-plane/resource-requests.d.ts} +4 -4
- package/dist/sdk-types/support/platform-contracts.d.ts +3 -7
- package/dist/sdk-types/support/platform-contracts.js +2 -22
- package/dist/seeds/index.d.ts +0 -5
- package/dist/seeds/index.js +0 -8
- package/dist/seeds/schema/resource-buckets.d.ts +1 -1
- package/dist/{commerce/catalog → templates}/template-catalog.d.ts +1 -1
- package/dist/treeseed/template-catalog/catalog.fixture.json +1 -1
- package/dist/workflow/operations/configuration/workflow-config.d.ts +2 -2
- package/dist/workflow/operations/configuration/workflow-config.js +1 -1
- package/dist/workflow/operations/coordination/workflow-ci.js +1 -1
- package/dist/workflow/operations/coordination/workflow-destroy.js +1 -1
- package/dist/workflow/operations/guarantees/workflow-proof.d.ts +1 -1
- package/dist/workflow/operations/guarantees/workflow-proof.js +2 -2
- package/dist/workflow/operations/packages/collect-published-release-artifact-checks.js +1 -1
- package/dist/workflow/operations/packages/collect-release-plan-blockers.js +1 -1
- package/dist/workflow/operations/packages/normalize-release-candidate-mode.js +1 -1
- package/dist/workflow/operations/packages/prepare-fresh-release-run.d.ts +1 -1
- package/dist/workflow/operations/packages/prepare-fresh-release-run.js +1 -1
- package/dist/workflow/operations/packages/release-admin-message.d.ts +1 -1
- package/dist/workflow/operations/packages/release-admin-message.js +1 -1
- package/dist/workflow/operations/reconciliation/reconcile-save-hosted-environment.js +1 -1
- package/dist/workflow/operations/reconciliation/run-release-gate-reconcile-facade.js +1 -1
- package/dist/workflow/operations/recovery/fail-workflow-run.js +1 -1
- package/dist/workflow/operations/recovery/workflow-resume.js +1 -1
- package/dist/workflow/operations/release/workflow-release.js +2 -2
- package/dist/workflow/operations/{commerce/catalog → release-support/helpers}/back-merge-production-into-staging.d.ts +1 -0
- package/dist/workflow/operations/{commerce/catalog → release-support/helpers}/run-release-production-guarantees.d.ts +1 -0
- package/dist/workflow/operations/repositories/gates-for-saved-repository-reports.d.ts +1 -1
- package/dist/workflow/operations/repositories/gates-for-saved-repository-reports.js +1 -1
- package/dist/workflow/operations/support/create-repo-report.d.ts +1 -1
- package/dist/workflow/operations/support/create-repo-report.js +1 -1
- package/dist/workflow/operations/support/sync-current-branch-to-origin.d.ts +1 -1
- package/dist/workflow/operations/support/sync-current-branch-to-origin.js +1 -1
- package/dist/workflow/operations/support/update-ahead-behind.js +1 -1
- package/dist/workflow/operations/support/workflow-helpers.js +1 -1
- package/dist/workflow/operations/workspace-lifecycle/workflow-close.js +1 -1
- package/dist/workflow/operations/workspace-lifecycle/workflow-save.js +2 -2
- package/dist/workflow/operations/workspace-lifecycle/workflow-stage.js +1 -1
- package/dist/workflow/operations/workspace-lifecycle/workflow-switch.js +1 -1
- package/dist/workflow/operations/workspace-lifecycle/workflow-update.js +1 -1
- package/dist/workflow/operations.d.ts +2 -2
- package/dist/workflow/operations.js +2 -2
- package/dist/workflow-state/readiness-for-environment.d.ts +1 -0
- package/dist/workflow-state/resolve-workflow-state.js +1 -1
- package/package.json +3 -40
- package/dist/api/auth/d1-database.d.ts +0 -3
- package/dist/api/auth/d1-database.js +0 -20
- package/dist/api/auth/d1-provider.d.ts +0 -54
- package/dist/api/auth/d1-provider.js +0 -95
- package/dist/api/auth/d1-store/accounts/identity/can-adopt-username-match.d.ts +0 -3
- package/dist/api/auth/d1-store/accounts/identity/can-adopt-username-match.js +0 -13
- package/dist/api/auth/d1-store/accounts/identity/ensure-auth-schema.d.ts +0 -2
- package/dist/api/auth/d1-store/accounts/identity/ensure-auth-schema.js +0 -14
- package/dist/api/auth/d1-store/accounts/identity/load-user-by-username.d.ts +0 -2
- package/dist/api/auth/d1-store/accounts/identity/load-user-by-username.js +0 -6
- package/dist/api/auth/d1-store/accounts/identity/load-user-by-verified-email.d.ts +0 -2
- package/dist/api/auth/d1-store/accounts/identity/load-user-by-verified-email.js +0 -6
- package/dist/api/auth/d1-store/accounts/sessions/authenticate-service.d.ts +0 -6
- package/dist/api/auth/d1-store/accounts/sessions/authenticate-service.js +0 -34
- package/dist/api/auth/d1-store/accounts/sessions/issue-user-session.d.ts +0 -7
- package/dist/api/auth/d1-store/accounts/sessions/issue-user-session.js +0 -69
- package/dist/api/auth/d1-store/accounts/tokens/authenticate-bearer-token.d.ts +0 -6
- package/dist/api/auth/d1-store/accounts/tokens/authenticate-bearer-token.js +0 -42
- package/dist/api/auth/d1-store/accounts/tokens/create-personal-access-token.d.ts +0 -12
- package/dist/api/auth/d1-store/accounts/tokens/create-personal-access-token.js +0 -36
- package/dist/api/auth/d1-store/accounts/tokens/list-personal-access-tokens.d.ts +0 -2
- package/dist/api/auth/d1-store/accounts/tokens/list-personal-access-tokens.js +0 -10
- package/dist/api/auth/d1-store/accounts/tokens/refresh-access-token.d.ts +0 -3
- package/dist/api/auth/d1-store/accounts/tokens/refresh-access-token.js +0 -46
- package/dist/api/auth/d1-store/accounts/tokens/revoke-personal-access-token.d.ts +0 -2
- package/dist/api/auth/d1-store/accounts/tokens/revoke-personal-access-token.js +0 -15
- package/dist/api/auth/d1-store/capacity/providers/load-identity-by-provider.d.ts +0 -2
- package/dist/api/auth/d1-store/capacity/providers/load-identity-by-provider.js +0 -6
- package/dist/api/auth/d1-store/commerce/catalog/seed-catalog.d.ts +0 -2
- package/dist/api/auth/d1-store/commerce/catalog/seed-catalog.js +0 -27
- package/dist/api/auth/d1-store/configuration/create-service-credential.d.ts +0 -7
- package/dist/api/auth/d1-store/configuration/create-service-credential.js +0 -10
- package/dist/api/auth/d1-store/configuration/rotate-service-credential.d.ts +0 -2
- package/dist/api/auth/d1-store/configuration/rotate-service-credential.js +0 -17
- package/dist/api/auth/d1-store/configuration/upsert-service-credential.d.ts +0 -8
- package/dist/api/auth/d1-store/configuration/upsert-service-credential.js +0 -20
- package/dist/api/auth/d1-store/methods.d.ts +0 -40
- package/dist/api/auth/d1-store/methods.js +0 -82
- package/dist/api/auth/d1-store/runtime/approve-device-flow.d.ts +0 -5
- package/dist/api/auth/d1-store/runtime/approve-device-flow.js +0 -27
- package/dist/api/auth/d1-store/runtime/poll-device-flow.d.ts +0 -3
- package/dist/api/auth/d1-store/runtime/poll-device-flow.js +0 -71
- package/dist/api/auth/d1-store/runtime/start-device-flow.d.ts +0 -3
- package/dist/api/auth/d1-store/runtime/start-device-flow.js +0 -34
- package/dist/api/auth/d1-store/seeds/seed-configured-services.d.ts +0 -2
- package/dist/api/auth/d1-store/seeds/seed-configured-services.js +0 -14
- package/dist/api/auth/d1-store/support/audit/write-audit-event.d.ts +0 -9
- package/dist/api/auth/d1-store/support/audit/write-audit-event.js +0 -18
- package/dist/api/auth/d1-store/support/lifecycle/ensure-initialized.d.ts +0 -2
- package/dist/api/auth/d1-store/support/lifecycle/ensure-initialized.js +0 -9
- package/dist/api/auth/d1-store/support/principals/create-user.d.ts +0 -7
- package/dist/api/auth/d1-store/support/principals/create-user.js +0 -30
- package/dist/api/auth/d1-store/support/principals/exchange-trusted-user-assertion.d.ts +0 -10
- package/dist/api/auth/d1-store/support/principals/exchange-trusted-user-assertion.js +0 -50
- package/dist/api/auth/d1-store/support/principals/load-user.d.ts +0 -2
- package/dist/api/auth/d1-store/support/principals/load-user.js +0 -6
- package/dist/api/auth/d1-store/support/principals/permissions-for-user.d.ts +0 -2
- package/dist/api/auth/d1-store/support/principals/permissions-for-user.js +0 -11
- package/dist/api/auth/d1-store/support/principals/principal-for-user.d.ts +0 -2
- package/dist/api/auth/d1-store/support/principals/principal-for-user.js +0 -27
- package/dist/api/auth/d1-store/support/principals/scopes-for-principal.d.ts +0 -2
- package/dist/api/auth/d1-store/support/principals/scopes-for-principal.js +0 -13
- package/dist/api/auth/d1-store/support/principals/sync-user.d.ts +0 -7
- package/dist/api/auth/d1-store/support/principals/sync-user.js +0 -96
- package/dist/api/auth/d1-store/support/principals/user-metadata.d.ts +0 -9
- package/dist/api/auth/d1-store/support/principals/user-metadata.js +0 -13
- package/dist/api/auth/d1-store/support/queries/execute-statement.d.ts +0 -2
- package/dist/api/auth/d1-store/support/queries/execute-statement.js +0 -6
- package/dist/api/auth/d1-store/support/queries/query-all.d.ts +0 -2
- package/dist/api/auth/d1-store/support/queries/query-all.js +0 -7
- package/dist/api/auth/d1-store/support/queries/query-first.d.ts +0 -2
- package/dist/api/auth/d1-store/support/queries/query-first.js +0 -6
- package/dist/api/auth/d1-store/teams/assign-role.d.ts +0 -2
- package/dist/api/auth/d1-store/teams/assign-role.js +0 -12
- package/dist/api/auth/d1-store/teams/bootstrap-roles-for-user.d.ts +0 -3
- package/dist/api/auth/d1-store/teams/bootstrap-roles-for-user.js +0 -22
- package/dist/api/auth/d1-store/teams/permissions-for-roles.d.ts +0 -2
- package/dist/api/auth/d1-store/teams/permissions-for-roles.js +0 -15
- package/dist/api/auth/d1-store/teams/reconcile-bootstrap-admins.d.ts +0 -2
- package/dist/api/auth/d1-store/teams/reconcile-bootstrap-admins.js +0 -34
- package/dist/api/auth/d1-store/teams/replace-roles.d.ts +0 -2
- package/dist/api/auth/d1-store/teams/replace-roles.js +0 -9
- package/dist/api/auth/d1-store/teams/roles-for-user.d.ts +0 -2
- package/dist/api/auth/d1-store/teams/roles-for-user.js +0 -10
- package/dist/api/auth/d1-store/teams/set-user-roles.d.ts +0 -2
- package/dist/api/auth/d1-store/teams/set-user-roles.js +0 -25
- package/dist/api/auth/d1-store.d.ts +0 -133
- package/dist/api/auth/d1-store.js +0 -225
- package/dist/api/auth/memory-provider.d.ts +0 -82
- package/dist/api/auth/memory-provider.js +0 -297
- package/dist/api/auth/rbac.d.ts +0 -27
- package/dist/api/auth/rbac.js +0 -171
- package/dist/api/auth/tokens.d.ts +0 -18
- package/dist/api/auth/tokens.js +0 -56
- package/dist/api/auth/trusted-assertion.d.ts +0 -10
- package/dist/api/auth/trusted-assertion.js +0 -19
- package/dist/api/capacity/providers/providers.d.ts +0 -2
- package/dist/api/capacity/providers/providers.js +0 -69
- package/dist/api/configuration/config.d.ts +0 -4
- package/dist/api/configuration/config.js +0 -149
- package/dist/api/hosting/railway.d.ts +0 -53
- package/dist/api/hosting/railway.js +0 -71
- package/dist/api/index.d.ts +0 -13
- package/dist/api/index.js +0 -33
- package/dist/api/operations/operations-routes.d.ts +0 -11
- package/dist/api/operations/operations-routes.js +0 -39
- package/dist/api/operations/operations.d.ts +0 -3
- package/dist/api/operations/operations.js +0 -26
- package/dist/api/support/app.d.ts +0 -8
- package/dist/api/support/app.js +0 -410
- package/dist/api/support/http.d.ts +0 -28
- package/dist/api/support/http.js +0 -51
- package/dist/api/support/sdk-dispatch.d.ts +0 -6
- package/dist/api/support/sdk-dispatch.js +0 -14
- package/dist/api/support/sdk-routes.d.ts +0 -11
- package/dist/api/support/sdk-routes.js +0 -29
- package/dist/api/support/templates.d.ts +0 -3
- package/dist/api/support/templates.js +0 -31
- package/dist/api/types.d.ts +0 -242
- package/dist/db/market-schema/accounts/agent-lab-view-state.d.ts +0 -228
- package/dist/db/market-schema/accounts/agent-lab-view-state.js +0 -22
- package/dist/db/market-schema/accounts/better-auth-account.d.ts +0 -2491
- package/dist/db/market-schema/accounts/better-auth-account.js +0 -248
- package/dist/db/market-schema/accounts/notification-events.d.ts +0 -2911
- package/dist/db/market-schema/accounts/notification-events.js +0 -252
- package/dist/db/market-schema/accounts/team-services.d.ts +0 -1780
- package/dist/db/market-schema/accounts/team-services.js +0 -150
- package/dist/db/market-schema/agents/agent-context-query-checks.d.ts +0 -296
- package/dist/db/market-schema/agents/agent-context-query-checks.js +0 -33
- package/dist/db/market-schema/agents/agent-mode-runs.d.ts +0 -3137
- package/dist/db/market-schema/agents/agent-mode-runs.js +0 -311
- package/dist/db/market-schema/agents/communication-control.d.ts +0 -820
- package/dist/db/market-schema/agents/communication-control.js +0 -86
- package/dist/db/market-schema/capacity/accounting/capacity-ledger-entries.d.ts +0 -3187
- package/dist/db/market-schema/capacity/accounting/capacity-ledger-entries.js +0 -300
- package/dist/db/market-schema/capacity/providers/capacity-provider-team-credentials.d.ts +0 -2637
- package/dist/db/market-schema/capacity/providers/capacity-provider-team-credentials.js +0 -271
- package/dist/db/market-schema/capacity/workdays/capacity-workday-events.d.ts +0 -3882
- package/dist/db/market-schema/capacity/workdays/capacity-workday-events.js +0 -373
- package/dist/db/market-schema/commerce/capacity/commerce-capacity-listings.d.ts +0 -1681
- package/dist/db/market-schema/commerce/capacity/commerce-capacity-listings.js +0 -150
- package/dist/db/market-schema/commerce/catalog/catalog-items.d.ts +0 -3076
- package/dist/db/market-schema/commerce/catalog/catalog-items.js +0 -263
- package/dist/db/market-schema/commerce/catalog/commerce-product-versions.d.ts +0 -2943
- package/dist/db/market-schema/commerce/catalog/commerce-product-versions.js +0 -253
- package/dist/db/market-schema/commerce/payments/commerce-subscriptions.d.ts +0 -3072
- package/dist/db/market-schema/commerce/payments/commerce-subscriptions.js +0 -263
- package/dist/db/market-schema/governance/commons/commons-participants.d.ts +0 -3117
- package/dist/db/market-schema/governance/commons/commons-participants.js +0 -260
- package/dist/db/market-schema/governance/policy/governance-electorate-snapshots.d.ts +0 -2498
- package/dist/db/market-schema/governance/policy/governance-electorate-snapshots.js +0 -212
- package/dist/db/market-schema/projects/integrations/provider-operations.d.ts +0 -2586
- package/dist/db/market-schema/projects/integrations/provider-operations.js +0 -196
- package/dist/db/market-schema/projects/knowledge/knowledge-collaboration.d.ts +0 -1426
- package/dist/db/market-schema/projects/knowledge/knowledge-collaboration.js +0 -111
- package/dist/db/market-schema/projects/knowledge/project-knowledge-governance.d.ts +0 -1269
- package/dist/db/market-schema/projects/knowledge/project-knowledge-governance.js +0 -95
- package/dist/db/market-schema/projects/knowledge/tree-dx-project-libraries.d.ts +0 -1937
- package/dist/db/market-schema/projects/knowledge/tree-dx-project-libraries.js +0 -160
- package/dist/db/market-schema/support/feedback.d.ts +0 -1055
- package/dist/db/market-schema/support/feedback.js +0 -86
- package/dist/db/market-schema/support/market-schema.d.ts +0 -45339
- package/dist/db/market-schema/support/market-schema.js +0 -216
- package/dist/db/market-schema/support/subscribers.d.ts +0 -3027
- package/dist/db/market-schema/support/subscribers.js +0 -267
- package/dist/db/market-schema.d.ts +0 -22
- package/dist/db/market-schema.js +0 -22
- package/dist/entrypoints/clients/market-client.d.ts +0 -184
- package/dist/entrypoints/clients/market-client.js +0 -369
- package/dist/gateway/admin-passthrough.d.ts +0 -17
- package/dist/gateway/admin-passthrough.js +0 -131
- package/dist/gateway/admin-route-inventory.d.ts +0 -5
- package/dist/gateway/admin-route-inventory.js +0 -27
- package/dist/gateway/header-policy.d.ts +0 -3
- package/dist/gateway/header-policy.js +0 -38
- package/dist/gateway/health.d.ts +0 -9
- package/dist/gateway/health.js +0 -26
- package/dist/gateway/index.d.ts +0 -7
- package/dist/gateway/index.js +0 -8
- package/dist/gateway/node-websocket-proxy.d.ts +0 -13
- package/dist/gateway/node-websocket-proxy.js +0 -109
- package/dist/market-client/accounts/contracts/account-deletion-blockers.d.ts +0 -2
- package/dist/market-client/accounts/contracts/account-deletion-blockers.js +0 -6
- package/dist/market-client/accounts/contracts/account-identity.d.ts +0 -2
- package/dist/market-client/accounts/contracts/account-identity.js +0 -6
- package/dist/market-client/accounts/contracts/local-auth-paths.d.ts +0 -2
- package/dist/market-client/accounts/contracts/local-auth-paths.js +0 -6
- package/dist/market-client/accounts/contracts/logout.d.ts +0 -2
- package/dist/market-client/accounts/contracts/logout.js +0 -9
- package/dist/market-client/accounts/contracts/poll-device-login.d.ts +0 -3
- package/dist/market-client/accounts/contracts/poll-device-login.js +0 -9
- package/dist/market-client/accounts/contracts/web-appearance.d.ts +0 -2
- package/dist/market-client/accounts/contracts/web-appearance.js +0 -6
- package/dist/market-client/accounts/contracts/web-emails.d.ts +0 -2
- package/dist/market-client/accounts/contracts/web-emails.js +0 -6
- package/dist/market-client/accounts/contracts/web-notification-preferences.d.ts +0 -2
- package/dist/market-client/accounts/contracts/web-notification-preferences.js +0 -6
- package/dist/market-client/accounts/contracts/web-notifications.d.ts +0 -2
- package/dist/market-client/accounts/contracts/web-notifications.js +0 -6
- package/dist/market-client/accounts/contracts/web-sessions.d.ts +0 -2
- package/dist/market-client/accounts/contracts/web-sessions.js +0 -6
- package/dist/market-client/accounts/creation/add-web-email.d.ts +0 -4
- package/dist/market-client/accounts/creation/add-web-email.js +0 -10
- package/dist/market-client/accounts/creation/request-web-password-reset.d.ts +0 -4
- package/dist/market-client/accounts/creation/request-web-password-reset.js +0 -9
- package/dist/market-client/accounts/creation/start-device-login.d.ts +0 -3
- package/dist/market-client/accounts/creation/start-device-login.js +0 -9
- package/dist/market-client/accounts/lifecycle/complete-web-password-reset.d.ts +0 -5
- package/dist/market-client/accounts/lifecycle/complete-web-password-reset.js +0 -9
- package/dist/market-client/accounts/lifecycle/confirm-web-email.d.ts +0 -4
- package/dist/market-client/accounts/lifecycle/confirm-web-email.js +0 -9
- package/dist/market-client/accounts/lifecycle/verify-web-email.d.ts +0 -2
- package/dist/market-client/accounts/lifecycle/verify-web-email.js +0 -6
- package/dist/market-client/accounts/preferences/account-preferences.d.ts +0 -4
- package/dist/market-client/accounts/preferences/account-preferences.js +0 -14
- package/dist/market-client/accounts/queries/check-web-email.d.ts +0 -2
- package/dist/market-client/accounts/queries/check-web-email.js +0 -6
- package/dist/market-client/accounts/queries/check-web-username.d.ts +0 -2
- package/dist/market-client/accounts/queries/check-web-username.js +0 -6
- package/dist/market-client/accounts/retirement/delete-account.d.ts +0 -6
- package/dist/market-client/accounts/retirement/delete-account.js +0 -10
- package/dist/market-client/accounts/retirement/delete-web-email.d.ts +0 -2
- package/dist/market-client/accounts/retirement/delete-web-email.js +0 -6
- package/dist/market-client/accounts/retirement/revoke-web-session.d.ts +0 -2
- package/dist/market-client/accounts/retirement/revoke-web-session.js +0 -6
- package/dist/market-client/accounts/updates/mark-web-notification-read.d.ts +0 -2
- package/dist/market-client/accounts/updates/mark-web-notification-read.js +0 -6
- package/dist/market-client/accounts/updates/refresh-token.d.ts +0 -3
- package/dist/market-client/accounts/updates/refresh-token.js +0 -9
- package/dist/market-client/accounts/updates/set-primary-web-email.d.ts +0 -2
- package/dist/market-client/accounts/updates/set-primary-web-email.js +0 -6
- package/dist/market-client/accounts/updates/update-web-appearance.d.ts +0 -10
- package/dist/market-client/accounts/updates/update-web-appearance.js +0 -10
- package/dist/market-client/accounts/updates/update-web-notification-preferences.d.ts +0 -3
- package/dist/market-client/accounts/updates/update-web-notification-preferences.js +0 -6
- package/dist/market-client/accounts/updates/update-web-password.d.ts +0 -6
- package/dist/market-client/accounts/updates/update-web-password.js +0 -10
- package/dist/market-client/agent-lab-interface.d.ts +0 -12
- package/dist/market-client/agent-lab-interface.js +0 -0
- package/dist/market-client/agents/creation/create-structured-agent-estimate.d.ts +0 -2
- package/dist/market-client/agents/creation/create-structured-agent-estimate.js +0 -6
- package/dist/market-client/agents/lifecycle/accept-structured-agent-estimate.d.ts +0 -2
- package/dist/market-client/agents/lifecycle/accept-structured-agent-estimate.js +0 -6
- package/dist/market-client/capacity/accounting/contracts/capacity-ledger.d.ts +0 -7
- package/dist/market-client/capacity/accounting/contracts/capacity-ledger.js +0 -6
- package/dist/market-client/capacity/accounting/contracts/capacity-reservation-explanation.d.ts +0 -2
- package/dist/market-client/capacity/accounting/contracts/capacity-reservation-explanation.js +0 -6
- package/dist/market-client/capacity/accounting/contracts/capacity-reservations.d.ts +0 -7
- package/dist/market-client/capacity/accounting/contracts/capacity-reservations.js +0 -6
- package/dist/market-client/capacity/accounting/contracts/capacity-usage.d.ts +0 -7
- package/dist/market-client/capacity/accounting/contracts/capacity-usage.js +0 -6
- package/dist/market-client/capacity/accounting/lifecycle/decide-capacity-overrun.d.ts +0 -4
- package/dist/market-client/capacity/accounting/lifecycle/decide-capacity-overrun.js +0 -6
- package/dist/market-client/capacity/admission/contracts/team-capacity-registration-key.d.ts +0 -2
- package/dist/market-client/capacity/admission/contracts/team-capacity-registration-key.js +0 -6
- package/dist/market-client/capacity/admission/lifecycle/enable-team-capacity-registration-key.d.ts +0 -2
- package/dist/market-client/capacity/admission/lifecycle/enable-team-capacity-registration-key.js +0 -6
- package/dist/market-client/capacity/admission/lifecycle/reveal-team-capacity-registration-key.d.ts +0 -2
- package/dist/market-client/capacity/admission/lifecycle/reveal-team-capacity-registration-key.js +0 -6
- package/dist/market-client/capacity/admission/retirement/disable-team-capacity-registration-key.d.ts +0 -2
- package/dist/market-client/capacity/admission/retirement/disable-team-capacity-registration-key.js +0 -6
- package/dist/market-client/capacity/admission/updates/rotate-team-capacity-registration-key.d.ts +0 -2
- package/dist/market-client/capacity/admission/updates/rotate-team-capacity-registration-key.js +0 -6
- package/dist/market-client/capacity/admission/updates/update-team-capacity-registration-key-status.d.ts +0 -2
- package/dist/market-client/capacity/admission/updates/update-team-capacity-registration-key-status.js +0 -6
- package/dist/market-client/capacity/allocations/contracts/capacity-allocation-set.d.ts +0 -2
- package/dist/market-client/capacity/allocations/contracts/capacity-allocation-set.js +0 -6
- package/dist/market-client/capacity/allocations/contracts/capacity-allocation-sets.d.ts +0 -5
- package/dist/market-client/capacity/allocations/contracts/capacity-allocation-sets.js +0 -11
- package/dist/market-client/capacity/allocations/contracts/capacity-grant.d.ts +0 -2
- package/dist/market-client/capacity/allocations/contracts/capacity-grant.js +0 -6
- package/dist/market-client/capacity/allocations/contracts/capacity-grants.d.ts +0 -5
- package/dist/market-client/capacity/allocations/contracts/capacity-grants.js +0 -11
- package/dist/market-client/capacity/allocations/creation/create-capacity-allocation-set.d.ts +0 -2
- package/dist/market-client/capacity/allocations/creation/create-capacity-allocation-set.js +0 -6
- package/dist/market-client/capacity/allocations/creation/create-capacity-grant.d.ts +0 -2
- package/dist/market-client/capacity/allocations/creation/create-capacity-grant.js +0 -6
- package/dist/market-client/capacity/allocations/creation/plan-capacity-allocation-set.d.ts +0 -2
- package/dist/market-client/capacity/allocations/creation/plan-capacity-allocation-set.js +0 -6
- package/dist/market-client/capacity/allocations/creation/plan-capacity-grant.d.ts +0 -2
- package/dist/market-client/capacity/allocations/creation/plan-capacity-grant.js +0 -6
- package/dist/market-client/capacity/allocations/lifecycle/activate-capacity-allocation-set.d.ts +0 -2
- package/dist/market-client/capacity/allocations/lifecycle/activate-capacity-allocation-set.js +0 -6
- package/dist/market-client/capacity/allocations/queries/explain-capacity-allocation-set.d.ts +0 -2
- package/dist/market-client/capacity/allocations/queries/explain-capacity-allocation-set.js +0 -6
- package/dist/market-client/capacity/allocations/retirement/archive-capacity-allocation-set.d.ts +0 -2
- package/dist/market-client/capacity/allocations/retirement/archive-capacity-allocation-set.js +0 -6
- package/dist/market-client/capacity/allocations/updates/supersede-capacity-allocation-set.d.ts +0 -2
- package/dist/market-client/capacity/allocations/updates/supersede-capacity-allocation-set.js +0 -6
- package/dist/market-client/capacity/allocations/updates/transition-capacity-grant.d.ts +0 -2
- package/dist/market-client/capacity/allocations/updates/transition-capacity-grant.js +0 -6
- package/dist/market-client/capacity/assignments/contracts/assignment-authority-probe.d.ts +0 -2
- package/dist/market-client/capacity/assignments/contracts/assignment-authority-probe.js +0 -6
- package/dist/market-client/capacity/assignments/contracts/capacity-provider-assignment.d.ts +0 -2
- package/dist/market-client/capacity/assignments/contracts/capacity-provider-assignment.js +0 -6
- package/dist/market-client/capacity/assignments/contracts/capacity-provider-assignments.d.ts +0 -12
- package/dist/market-client/capacity/assignments/contracts/capacity-provider-assignments.js +0 -26
- package/dist/market-client/capacity/assignments/contracts/decision-assignment-graph.d.ts +0 -2
- package/dist/market-client/capacity/assignments/contracts/decision-assignment-graph.js +0 -6
- package/dist/market-client/capacity/assignments/contracts/decision-assignment-graphs.d.ts +0 -4
- package/dist/market-client/capacity/assignments/contracts/decision-assignment-graphs.js +0 -7
- package/dist/market-client/capacity/assignments/contracts/provider-assignment-explanation.d.ts +0 -2
- package/dist/market-client/capacity/assignments/contracts/provider-assignment-explanation.js +0 -6
- package/dist/market-client/capacity/assignments/lifecycle/admit-capacity-assignment.d.ts +0 -2
- package/dist/market-client/capacity/assignments/lifecycle/admit-capacity-assignment.js +0 -6
- package/dist/market-client/capacity/assignments/lifecycle/integrate-assignment-content.d.ts +0 -10
- package/dist/market-client/capacity/assignments/lifecycle/integrate-assignment-content.js +0 -9
- package/dist/market-client/capacity/assignments/lifecycle/requeue-capacity-assignment.d.ts +0 -5
- package/dist/market-client/capacity/assignments/lifecycle/requeue-capacity-assignment.js +0 -6
- package/dist/market-client/capacity/assignments/retirement/abandon-assignment-content.d.ts +0 -9
- package/dist/market-client/capacity/assignments/retirement/abandon-assignment-content.js +0 -9
- package/dist/market-client/capacity/assignments/retirement/cancel-capacity-assignment.d.ts +0 -5
- package/dist/market-client/capacity/assignments/retirement/cancel-capacity-assignment.js +0 -6
- package/dist/market-client/capacity/capacity-core/contracts/capacity-audit-events.d.ts +0 -11
- package/dist/market-client/capacity/capacity-core/contracts/capacity-audit-events.js +0 -11
- package/dist/market-client/capacity/observability/contracts/agent-lab.d.ts +0 -27
- package/dist/market-client/capacity/observability/contracts/agent-lab.js +0 -37
- package/dist/market-client/capacity/observability/contracts/capacity-evidence-page.d.ts +0 -7
- package/dist/market-client/capacity/observability/contracts/capacity-evidence-page.js +0 -13
- package/dist/market-client/capacity/observability/contracts/project-capacity-diagnostics.d.ts +0 -2
- package/dist/market-client/capacity/observability/contracts/project-capacity-diagnostics.js +0 -7
- package/dist/market-client/capacity/observability/contracts/project-capacity-runtime-diagnostics.d.ts +0 -2
- package/dist/market-client/capacity/observability/contracts/project-capacity-runtime-diagnostics.js +0 -7
- package/dist/market-client/capacity/planning/contracts/capacity-plan.d.ts +0 -2
- package/dist/market-client/capacity/planning/contracts/capacity-plan.js +0 -6
- package/dist/market-client/capacity/planning/contracts/decision-capacity-plans.d.ts +0 -4
- package/dist/market-client/capacity/planning/contracts/decision-capacity-plans.js +0 -7
- package/dist/market-client/capacity/planning/creation/create-decision-capacity-plan.d.ts +0 -2
- package/dist/market-client/capacity/planning/creation/create-decision-capacity-plan.js +0 -6
- package/dist/market-client/capacity/planning/creation/request-capacity-plan-revision.d.ts +0 -2
- package/dist/market-client/capacity/planning/creation/request-capacity-plan-revision.js +0 -6
- package/dist/market-client/capacity/planning/lifecycle/accept-capacity-plan.d.ts +0 -2
- package/dist/market-client/capacity/planning/lifecycle/accept-capacity-plan.js +0 -6
- package/dist/market-client/capacity/planning/lifecycle/schedule-capacity-plan.d.ts +0 -2
- package/dist/market-client/capacity/planning/lifecycle/schedule-capacity-plan.js +0 -6
- package/dist/market-client/capacity/planning/updates/supersede-capacity-plan.d.ts +0 -2
- package/dist/market-client/capacity/planning/updates/supersede-capacity-plan.js +0 -6
- package/dist/market-client/capacity/providers/contracts/auth-providers.d.ts +0 -2
- package/dist/market-client/capacity/providers/contracts/auth-providers.js +0 -6
- package/dist/market-client/capacity/providers/contracts/capacity-provider-credentials.d.ts +0 -6
- package/dist/market-client/capacity/providers/contracts/capacity-provider-credentials.js +0 -13
- package/dist/market-client/capacity/providers/contracts/capacity-provider-membership.d.ts +0 -2
- package/dist/market-client/capacity/providers/contracts/capacity-provider-membership.js +0 -6
- package/dist/market-client/capacity/providers/contracts/capacity-provider-memberships.d.ts +0 -7
- package/dist/market-client/capacity/providers/contracts/capacity-provider-memberships.js +0 -15
- package/dist/market-client/capacity/providers/contracts/capacity-provider-registration-request.d.ts +0 -2
- package/dist/market-client/capacity/providers/contracts/capacity-provider-registration-request.js +0 -6
- package/dist/market-client/capacity/providers/contracts/capacity-provider-registration-requests.d.ts +0 -6
- package/dist/market-client/capacity/providers/contracts/capacity-provider-registration-requests.js +0 -13
- package/dist/market-client/capacity/providers/contracts/provider-availability-sessions.d.ts +0 -7
- package/dist/market-client/capacity/providers/contracts/provider-availability-sessions.js +0 -16
- package/dist/market-client/capacity/providers/lifecycle/authorize-capacity-provider-credential-rotation.d.ts +0 -2
- package/dist/market-client/capacity/providers/lifecycle/authorize-capacity-provider-credential-rotation.js +0 -6
- package/dist/market-client/capacity/providers/lifecycle/resume-capacity-provider-membership.d.ts +0 -2
- package/dist/market-client/capacity/providers/lifecycle/resume-capacity-provider-membership.js +0 -6
- package/dist/market-client/capacity/providers/lifecycle/review-capacity-provider-registration.d.ts +0 -5
- package/dist/market-client/capacity/providers/lifecycle/review-capacity-provider-registration.js +0 -6
- package/dist/market-client/capacity/providers/retirement/revoke-capacity-provider-credential.d.ts +0 -2
- package/dist/market-client/capacity/providers/retirement/revoke-capacity-provider-credential.js +0 -6
- package/dist/market-client/capacity/providers/retirement/revoke-capacity-provider-membership.d.ts +0 -2
- package/dist/market-client/capacity/providers/retirement/revoke-capacity-provider-membership.js +0 -6
- package/dist/market-client/capacity/providers/retirement/suspend-capacity-provider-membership.d.ts +0 -2
- package/dist/market-client/capacity/providers/retirement/suspend-capacity-provider-membership.js +0 -6
- package/dist/market-client/capacity/providers/updates/update-capacity-provider-membership-status.d.ts +0 -2
- package/dist/market-client/capacity/providers/updates/update-capacity-provider-membership-status.js +0 -6
- package/dist/market-client/capacity/workdays/contracts/workday-events.d.ts +0 -5
- package/dist/market-client/capacity/workdays/contracts/workday-events.js +0 -11
- package/dist/market-client/capacity/workdays/contracts/workday-run.d.ts +0 -2
- package/dist/market-client/capacity/workdays/contracts/workday-run.js +0 -6
- package/dist/market-client/capacity/workdays/contracts/workday-runs.d.ts +0 -7
- package/dist/market-client/capacity/workdays/contracts/workday-runs.js +0 -16
- package/dist/market-client/capacity/workdays/contracts/workday-summary.d.ts +0 -6
- package/dist/market-client/capacity/workdays/contracts/workday-summary.js +0 -14
- package/dist/market-client/capacity/workdays/contracts/workday.d.ts +0 -2
- package/dist/market-client/capacity/workdays/contracts/workday.js +0 -6
- package/dist/market-client/capacity/workdays/creation/create-workday-event.d.ts +0 -2
- package/dist/market-client/capacity/workdays/creation/create-workday-event.js +0 -6
- package/dist/market-client/capacity/workdays/creation/create-workday-run.d.ts +0 -2
- package/dist/market-client/capacity/workdays/creation/create-workday-run.js +0 -6
- package/dist/market-client/capacity/workdays/creation/create-workday.d.ts +0 -2
- package/dist/market-client/capacity/workdays/creation/create-workday.js +0 -6
- package/dist/market-client/capacity/workdays/creation/preflight-workday-run.d.ts +0 -2
- package/dist/market-client/capacity/workdays/creation/preflight-workday-run.js +0 -6
- package/dist/market-client/capacity/workdays/creation/start-workday.d.ts +0 -2
- package/dist/market-client/capacity/workdays/creation/start-workday.js +0 -6
- package/dist/market-client/capacity/workdays/lifecycle/close-workday-admission.d.ts +0 -29
- package/dist/market-client/capacity/workdays/lifecycle/close-workday-admission.js +0 -9
- package/dist/market-client/capacity/workdays/lifecycle/complete-workday.d.ts +0 -2
- package/dist/market-client/capacity/workdays/lifecycle/complete-workday.js +0 -6
- package/dist/market-client/capacity/workdays/lifecycle/pause-workday.d.ts +0 -2
- package/dist/market-client/capacity/workdays/lifecycle/pause-workday.js +0 -6
- package/dist/market-client/capacity/workdays/lifecycle/resume-workday.d.ts +0 -2
- package/dist/market-client/capacity/workdays/lifecycle/resume-workday.js +0 -6
- package/dist/market-client/capacity/workdays/lifecycle/tick-workday-run.d.ts +0 -5
- package/dist/market-client/capacity/workdays/lifecycle/tick-workday-run.js +0 -6
- package/dist/market-client/capacity/workdays/retirement/cancel-workday.d.ts +0 -2
- package/dist/market-client/capacity/workdays/retirement/cancel-workday.js +0 -6
- package/dist/market-client/capacity/workdays/updates/update-workday-run.d.ts +0 -2
- package/dist/market-client/capacity/workdays/updates/update-workday-run.js +0 -6
- package/dist/market-client/commerce/catalog/contracts/catalog.d.ts +0 -2
- package/dist/market-client/commerce/catalog/contracts/catalog.js +0 -7
- package/dist/market-client/discussions/contracts/discussions.d.ts +0 -27
- package/dist/market-client/discussions/contracts/discussions.js +0 -21
- package/dist/market-client/interface.d.ts +0 -192
- package/dist/market-client/interface.js +0 -0
- package/dist/market-client/internal-capacity-allocation.d.ts +0 -4
- package/dist/market-client/internal-capacity-allocation.js +0 -17
- package/dist/market-client/methods.d.ts +0 -2
- package/dist/market-client/methods.js +0 -396
- package/dist/market-client/operations/contracts/research-workflow.d.ts +0 -2
- package/dist/market-client/operations/contracts/research-workflow.js +0 -6
- package/dist/market-client/operations/creation/create-research-workflow.d.ts +0 -2
- package/dist/market-client/operations/creation/create-research-workflow.js +0 -6
- package/dist/market-client/project-agent-interface.d.ts +0 -15
- package/dist/market-client/project-agent-interface.js +0 -0
- package/dist/market-client/projects/access/contracts/project-access.d.ts +0 -2
- package/dist/market-client/projects/access/contracts/project-access.js +0 -6
- package/dist/market-client/projects/agents/contracts/agent-deployments.d.ts +0 -34
- package/dist/market-client/projects/agents/contracts/agent-deployments.js +0 -22
- package/dist/market-client/projects/agents/contracts/project-agent-authoring-draft.d.ts +0 -10
- package/dist/market-client/projects/agents/contracts/project-agent-authoring-draft.js +0 -13
- package/dist/market-client/projects/agents/contracts/project-agent-class.d.ts +0 -2
- package/dist/market-client/projects/agents/contracts/project-agent-class.js +0 -6
- package/dist/market-client/projects/agents/contracts/project-agent-classes.d.ts +0 -5
- package/dist/market-client/projects/agents/contracts/project-agent-classes.js +0 -11
- package/dist/market-client/projects/agents/contracts/project-agent-fallback-outputs.d.ts +0 -8
- package/dist/market-client/projects/agents/contracts/project-agent-fallback-outputs.js +0 -17
- package/dist/market-client/projects/agents/contracts/project-agent-mode-runs.d.ts +0 -8
- package/dist/market-client/projects/agents/contracts/project-agent-mode-runs.js +0 -18
- package/dist/market-client/projects/agents/contracts/project-context-query-checks.d.ts +0 -2
- package/dist/market-client/projects/agents/contracts/project-context-query-checks.js +0 -6
- package/dist/market-client/projects/agents/creation/author-project-agent.d.ts +0 -10
- package/dist/market-client/projects/agents/creation/author-project-agent.js +0 -10
- package/dist/market-client/projects/agents/creation/author-project-definitions.d.ts +0 -12
- package/dist/market-client/projects/agents/creation/author-project-definitions.js +0 -10
- package/dist/market-client/projects/agents/creation/check-project-context-query.d.ts +0 -7
- package/dist/market-client/projects/agents/creation/check-project-context-query.js +0 -11
- package/dist/market-client/projects/agents/creation/create-project-agent-class.d.ts +0 -2
- package/dist/market-client/projects/agents/creation/create-project-agent-class.js +0 -6
- package/dist/market-client/projects/agents/creation/launch-project-agent-simulation.d.ts +0 -8
- package/dist/market-client/projects/agents/creation/launch-project-agent-simulation.js +0 -10
- package/dist/market-client/projects/agents/updates/update-project-agent-class.d.ts +0 -2
- package/dist/market-client/projects/agents/updates/update-project-agent-class.js +0 -6
- package/dist/market-client/projects/knowledge/contracts/project-tree-dx-library.d.ts +0 -2
- package/dist/market-client/projects/knowledge/contracts/project-tree-dx-library.js +0 -6
- package/dist/market-client/projects/knowledge/contracts/project-tree-dx-proxy-audit.d.ts +0 -7
- package/dist/market-client/projects/knowledge/contracts/project-tree-dx-proxy-audit.js +0 -15
- package/dist/market-client/projects/knowledge/creation/upsert-project-tree-dx-library.d.ts +0 -3
- package/dist/market-client/projects/knowledge/creation/upsert-project-tree-dx-library.js +0 -6
- package/dist/market-client/projects/projects-core/contracts/dispatch-project-workflow-operation.d.ts +0 -2
- package/dist/market-client/projects/projects-core/contracts/dispatch-project-workflow-operation.js +0 -6
- package/dist/market-client/projects/projects-core/contracts/project-deletion-blockers.d.ts +0 -2
- package/dist/market-client/projects/projects-core/contracts/project-deletion-blockers.js +0 -6
- package/dist/market-client/projects/projects-core/contracts/project-workflow-operations.d.ts +0 -10
- package/dist/market-client/projects/projects-core/contracts/project-workflow-operations.js +0 -50
- package/dist/market-client/projects/projects-core/contracts/projects.d.ts +0 -2
- package/dist/market-client/projects/projects-core/contracts/projects.js +0 -7
- package/dist/market-client/projects/projects-core/creation/create-project.d.ts +0 -8
- package/dist/market-client/projects/projects-core/creation/create-project.js +0 -6
- package/dist/market-client/projects/projects-core/retirement/delete-project.d.ts +0 -2
- package/dist/market-client/projects/projects-core/retirement/delete-project.js +0 -6
- package/dist/market-client/projects/projects-core/updates/set-project-inventory-status.d.ts +0 -3
- package/dist/market-client/projects/projects-core/updates/set-project-inventory-status.js +0 -10
- package/dist/market-client/projects/repositories/contracts/project-repository-topology.d.ts +0 -2
- package/dist/market-client/projects/repositories/contracts/project-repository-topology.js +0 -6
- package/dist/market-client/projects/repositories/updates/update-project-repository-topology.d.ts +0 -3
- package/dist/market-client/projects/repositories/updates/update-project-repository-topology.js +0 -6
- package/dist/market-client/seeds/creation/apply-seed.d.ts +0 -2
- package/dist/market-client/seeds/creation/apply-seed.js +0 -6
- package/dist/market-client/seeds/creation/export-seed.d.ts +0 -2
- package/dist/market-client/seeds/creation/export-seed.js +0 -6
- package/dist/market-client/seeds/creation/plan-seed.d.ts +0 -2
- package/dist/market-client/seeds/creation/plan-seed.js +0 -6
- package/dist/market-client/seeds/interface.d.ts +0 -10
- package/dist/market-client/seeds/interface.js +0 -0
- package/dist/market-client/seeds/queries/list-seed-runs.d.ts +0 -2
- package/dist/market-client/seeds/queries/list-seed-runs.js +0 -7
- package/dist/market-client/seeds/queries/resolve-seed-resources.d.ts +0 -9
- package/dist/market-client/seeds/queries/resolve-seed-resources.js +0 -10
- package/dist/market-client/support/creation/create-decision-execution-input.d.ts +0 -2
- package/dist/market-client/support/creation/create-decision-execution-input.js +0 -6
- package/dist/market-client/support/creation/create-personal-theme.d.ts +0 -3
- package/dist/market-client/support/creation/create-personal-theme.js +0 -6
- package/dist/market-client/support/creation/create-planning-input-request.d.ts +0 -2
- package/dist/market-client/support/creation/create-planning-input-request.js +0 -6
- package/dist/market-client/support/creation/request-decision-execution-input-revision.d.ts +0 -2
- package/dist/market-client/support/creation/request-decision-execution-input-revision.js +0 -6
- package/dist/market-client/support/creation/request-first.d.ts +0 -7
- package/dist/market-client/support/creation/request-first.js +0 -19
- package/dist/market-client/support/delivery/artifact-download.d.ts +0 -2
- package/dist/market-client/support/delivery/artifact-download.js +0 -6
- package/dist/market-client/support/delivery/deliverable-manifest.d.ts +0 -4
- package/dist/market-client/support/delivery/deliverable-manifest.js +0 -14
- package/dist/market-client/support/identity/markets.d.ts +0 -2
- package/dist/market-client/support/identity/markets.js +0 -6
- package/dist/market-client/support/identity/me.d.ts +0 -2
- package/dist/market-client/support/identity/me.js +0 -6
- package/dist/market-client/support/identity/personal-themes.d.ts +0 -2
- package/dist/market-client/support/identity/personal-themes.js +0 -6
- package/dist/market-client/support/identity/web-sign-in.d.ts +0 -7
- package/dist/market-client/support/identity/web-sign-in.js +0 -9
- package/dist/market-client/support/identity/web-sign-up.d.ts +0 -9
- package/dist/market-client/support/identity/web-sign-up.js +0 -9
- package/dist/market-client/support/lifecycle/accept-decision-execution-input.d.ts +0 -2
- package/dist/market-client/support/lifecycle/accept-decision-execution-input.js +0 -6
- package/dist/market-client/support/planning/decision-execution-inputs.d.ts +0 -4
- package/dist/market-client/support/planning/decision-execution-inputs.js +0 -7
- package/dist/market-client/support/planning/decision-planning-status.d.ts +0 -2
- package/dist/market-client/support/planning/decision-planning-status.js +0 -6
- package/dist/market-client/support/planning/decision-structured-estimates.d.ts +0 -2
- package/dist/market-client/support/planning/decision-structured-estimates.js +0 -7
- package/dist/market-client/support/planning/execution-runs.d.ts +0 -12
- package/dist/market-client/support/planning/execution-runs.js +0 -11
- package/dist/market-client/support/preferences/request.d.ts +0 -7
- package/dist/market-client/support/preferences/request.js +0 -36
- package/dist/market-client/support/queries/current-market.d.ts +0 -2
- package/dist/market-client/support/queries/current-market.js +0 -6
- package/dist/market-client/support/retirement/delete-personal-theme.d.ts +0 -2
- package/dist/market-client/support/retirement/delete-personal-theme.js +0 -6
- package/dist/market-client/support/updates/update-personal-theme.d.ts +0 -3
- package/dist/market-client/support/updates/update-personal-theme.js +0 -6
- package/dist/market-client/support/updates/update-web-profile.d.ts +0 -5
- package/dist/market-client/support/updates/update-web-profile.js +0 -10
- package/dist/market-client/teams/contracts/team-deletion-blockers.d.ts +0 -2
- package/dist/market-client/teams/contracts/team-deletion-blockers.js +0 -6
- package/dist/market-client/teams/contracts/team-members.d.ts +0 -2
- package/dist/market-client/teams/contracts/team-members.js +0 -6
- package/dist/market-client/teams/contracts/team-permissions.d.ts +0 -2
- package/dist/market-client/teams/contracts/team-permissions.js +0 -6
- package/dist/market-client/teams/contracts/teams.d.ts +0 -2
- package/dist/market-client/teams/contracts/teams.js +0 -6
- package/dist/market-client/teams/creation/create-team.d.ts +0 -6
- package/dist/market-client/teams/creation/create-team.js +0 -10
- package/dist/market-client/teams/lifecycle/team-lifecycle.d.ts +0 -22
- package/dist/market-client/teams/lifecycle/team-lifecycle.js +0 -30
- package/dist/market-client/treedx/graph/contracts/tree-dx-build-context.d.ts +0 -2
- package/dist/market-client/treedx/graph/contracts/tree-dx-build-context.js +0 -6
- package/dist/market-client/treedx/repositories/contracts/team-tree-dx.d.ts +0 -2
- package/dist/market-client/treedx/repositories/contracts/team-tree-dx.js +0 -6
- package/dist/market-client/treedx/repositories/contracts/tree-dx-mirrors.d.ts +0 -2
- package/dist/market-client/treedx/repositories/contracts/tree-dx-mirrors.js +0 -6
- package/dist/market-client/treedx/repositories/contracts/tree-dx-read-repository-files.d.ts +0 -2
- package/dist/market-client/treedx/repositories/contracts/tree-dx-read-repository-files.js +0 -6
- package/dist/market-client/treedx/repositories/contracts/tree-dx-shares.d.ts +0 -2
- package/dist/market-client/treedx/repositories/contracts/tree-dx-shares.js +0 -6
- package/dist/market-client/treedx/repositories/creation/create-tree-dx-mirror.d.ts +0 -3
- package/dist/market-client/treedx/repositories/creation/create-tree-dx-mirror.js +0 -6
- package/dist/market-client/treedx/repositories/creation/create-tree-dx-share.d.ts +0 -3
- package/dist/market-client/treedx/repositories/creation/create-tree-dx-share.js +0 -6
- package/dist/market-client/treedx/repositories/creation/create-tree-dx-workspace.d.ts +0 -2
- package/dist/market-client/treedx/repositories/creation/create-tree-dx-workspace.js +0 -6
- package/dist/market-client/treedx/repositories/creation/provision-team-tree-dx.d.ts +0 -2
- package/dist/market-client/treedx/repositories/creation/provision-team-tree-dx.js +0 -6
- package/dist/market-client/treedx/repositories/updates/sync-tree-dx-mirror.d.ts +0 -2
- package/dist/market-client/treedx/repositories/updates/sync-tree-dx-mirror.js +0 -6
- package/dist/market-client/treedx/repositories/updates/update-team-tree-dx.d.ts +0 -3
- package/dist/market-client/treedx/repositories/updates/update-team-tree-dx.js +0 -6
- package/dist/operations/platform-operation-store.d.ts +0 -2
- package/dist/operations/platform-operation-store.js +0 -2
- package/dist/operations/platform-operations.d.ts +0 -3
- package/dist/operations/platform-operations.js +0 -3
- package/dist/operations/services/support/market-packaging.d.ts +0 -43
- package/dist/operations/services/support/market-packaging.js +0 -169
- package/dist/platform-operation-store/database-provider.d.ts +0 -44
- package/dist/platform-operation-store/database-provider.js +0 -205
- package/dist/platform-operation-store/platform-operation-store.d.ts +0 -56
- package/dist/platform-operation-store/platform-operation-store.js +0 -224
- package/dist/platform-operations/nested-record.d.ts +0 -21
- package/dist/platform-operations/nested-record.js +0 -262
- package/dist/platform-operations/platform-operation-endpoints.d.ts +0 -208
- package/dist/platform-operations/platform-operation-endpoints.js +0 -71
- package/dist/platform-operations/platform-runner-client.d.ts +0 -52
- package/dist/platform-operations/platform-runner-client.js +0 -143
- package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-cleanup.d.ts +0 -55
- package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-cleanup.js +0 -103
- package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-competition.d.ts +0 -29
- package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-competition.js +0 -179
- package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-context.d.ts +0 -132
- package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-context.js +0 -388
- package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-executor.d.ts +0 -50
- package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-executor.js +0 -0
- package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-governance.d.ts +0 -65
- package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-governance.js +0 -206
- package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-guards.d.ts +0 -19
- package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-guards.js +0 -36
- package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-proof.d.ts +0 -14
- package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-proof.js +0 -514
- package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-scope.d.ts +0 -14
- package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-scope.js +0 -122
- package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-terminal.d.ts +0 -17
- package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-terminal.js +0 -101
- package/dist/reconcile/capacity/providers/live-acceptance-provider-config.d.ts +0 -1
- package/dist/reconcile/capacity/providers/live-acceptance-provider-config.js +0 -20
- package/dist/reconcile/hosting/live-acceptance-cloudflare-client.d.ts +0 -29
- package/dist/reconcile/hosting/live-acceptance-cloudflare-client.js +0 -119
- package/dist/reconcile/hosting/live-acceptance-cloudflare.d.ts +0 -14
- package/dist/reconcile/hosting/live-acceptance-cloudflare.js +0 -316
- package/dist/reconcile/hosting/live-acceptance-railway.d.ts +0 -14
- package/dist/reconcile/hosting/live-acceptance-railway.js +0 -420
- package/dist/reconcile/repositories/live-acceptance-github-client.d.ts +0 -6
- package/dist/reconcile/repositories/live-acceptance-github-client.js +0 -42
- package/dist/reconcile/repositories/live-acceptance-github.d.ts +0 -12
- package/dist/reconcile/repositories/live-acceptance-github.js +0 -301
- package/dist/reconcile/runtime/live-acceptance-local.d.ts +0 -16
- package/dist/reconcile/runtime/live-acceptance-local.js +0 -260
- package/dist/reconcile/runtime/live-acceptance-runtime.d.ts +0 -67
- package/dist/reconcile/runtime/live-acceptance-runtime.js +0 -324
- package/dist/reconcile/runtime/live-acceptance-starter-runtime.d.ts +0 -123
- package/dist/reconcile/runtime/live-acceptance-starter-runtime.js +0 -439
- package/dist/reconcile/support/acceptance/live-acceptance-starter-concurrency.d.ts +0 -19
- package/dist/reconcile/support/acceptance/live-acceptance-starter-concurrency.js +0 -128
- package/dist/reconcile/support/acceptance/live-acceptance-starter-engineering.d.ts +0 -18
- package/dist/reconcile/support/acceptance/live-acceptance-starter-engineering.js +0 -264
- package/dist/reconcile/support/acceptance/live-acceptance-starter-planning.d.ts +0 -44
- package/dist/reconcile/support/acceptance/live-acceptance-starter-planning.js +0 -154
- package/dist/reconcile/support/acceptance/live-acceptance-starters.d.ts +0 -51
- package/dist/reconcile/support/acceptance/live-acceptance-starters.js +0 -12
- package/dist/reconcile/support/acceptance/live-acceptance-values.d.ts +0 -2
- package/dist/reconcile/support/acceptance/live-acceptance-values.js +0 -10
- package/dist/reconcile/support/acceptance/live-acceptance-worktree-cleanup.d.ts +0 -7
- package/dist/reconcile/support/acceptance/live-acceptance-worktree-cleanup.js +0 -38
- package/dist/reconcile/support/acceptance/live-acceptance.d.ts +0 -102
- package/dist/reconcile/support/acceptance/live-acceptance.js +0 -322
- package/dist/scenes/agent-lab/activity-collector.d.ts +0 -114
- package/dist/scenes/agent-lab/activity-collector.js +0 -394
- package/dist/scenes/agent-lab/production-lifecycle.d.ts +0 -18
- package/dist/scenes/agent-lab/production-lifecycle.js +0 -573
- package/dist/scenes/agent-lab/profile-input-seed.d.ts +0 -23
- package/dist/scenes/agent-lab/profile-input-seed.js +0 -41
- package/dist/scenes/agent-lab/report-adapters.d.ts +0 -3
- package/dist/scenes/agent-lab/report-adapters.js +0 -33
- package/dist/scenes/agent-lab/report-model.d.ts +0 -122
- package/dist/scenes/agent-lab/report-model.js +0 -194
- package/dist/scenes/agent-lab/report-writer.d.ts +0 -14
- package/dist/scenes/agent-lab/report-writer.js +0 -143
- package/dist/scenes/agent-lab/run-agent-lab-scene.d.ts +0 -6
- package/dist/scenes/agent-lab/run-agent-lab-scene.js +0 -122
- package/dist/scenes/agent-lab/runtime/diagnostics.d.ts +0 -7
- package/dist/scenes/agent-lab/runtime/diagnostics.js +0 -42
- package/dist/scenes/agent-lab/runtime/metadata.d.ts +0 -7
- package/dist/scenes/agent-lab/runtime/metadata.js +0 -19
- package/dist/scenes/agent-lab/runtime/team-scope.d.ts +0 -29
- package/dist/scenes/agent-lab/runtime/team-scope.js +0 -54
- package/dist/scenes/agent-lab/semantic-artifact-assertions.d.ts +0 -29
- package/dist/scenes/agent-lab/semantic-artifact-assertions.js +0 -66
- package/dist/scenes/agent-lab/terminal-verification.d.ts +0 -17
- package/dist/scenes/agent-lab/terminal-verification.js +0 -31
- package/dist/scenes/agent-lab/viewer/runtime.d.ts +0 -1
- package/dist/scenes/agent-lab/viewer/runtime.js +0 -576
- package/dist/scenes/agent-lab/viewer/styles.d.ts +0 -1
- package/dist/scenes/agent-lab/viewer/styles.js +0 -28
- package/dist/scenes/agent-lab/workday-snapshot.d.ts +0 -116
- package/dist/scenes/agent-lab/workday-snapshot.js +0 -153
- package/dist/scenes/testing/visual-audit-fixtures.d.ts +0 -25
- package/dist/scenes/testing/visual-audit-fixtures.js +0 -299
- package/dist/scripts/maintenance/repair-extracted-class-interfaces.js +0 -36
- package/dist/scripts/testing/test-live-acceptance-cleanup-service.js +0 -57
- package/dist/sdk-types/commerce/capacity/commerce-capacity-listing-input.d.ts +0 -250
- package/dist/sdk-types/commerce/capacity/commerce-capacity-listing-input.js +0 -0
- package/dist/sdk-types/commerce/catalog/upsert-catalog-item-request.js +0 -0
- package/dist/sdk-types/commerce/governance/commerce-governance-states.d.ts +0 -42
- package/dist/sdk-types/commerce/governance/commerce-governance-states.js +0 -198
- package/dist/sdk-types/commerce/payments/commerce-entitlement.d.ts +0 -244
- package/dist/sdk-types/commerce/payments/commerce-entitlement.js +0 -0
- package/dist/sdk-types/commerce/payments/commerce-subscription-statuses.d.ts +0 -77
- package/dist/sdk-types/commerce/payments/commerce-subscription-statuses.js +0 -166
- package/dist/sdk-types/commerce/services/commerce-service-contract.d.ts +0 -247
- package/dist/sdk-types/commerce/services/commerce-service-contract.js +0 -0
- package/dist/sdk-types/commerce/vendors/commerce-stripe-onboarding-request-input.d.ts +0 -233
- package/dist/sdk-types/commerce/vendors/commerce-stripe-onboarding-request-input.js +0 -0
- package/dist/seeds/runtime/local-capacity.d.ts +0 -65
- package/dist/seeds/runtime/local-capacity.js +0 -402
- package/dist/seeds/workspaces/gateway-contract-migration.d.ts +0 -31
- package/dist/seeds/workspaces/gateway-contract-migration.js +0 -176
- package/dist/seeds/workspaces/market-api-workspace.d.ts +0 -60
- package/dist/seeds/workspaces/market-api-workspace.js +0 -528
- /package/dist/operations/services/config-runtime/{commerce/catalog/resolve-template-catalog-endpoint.js → templates/catalog/template-catalog-settings.js} +0 -0
- /package/dist/{api/types.js → sdk-types/control-plane/resource-requests.js} +0 -0
- /package/dist/{commerce/catalog → templates}/template-catalog.js +0 -0
- /package/dist/workflow/operations/{commerce/catalog → release-support/helpers}/back-merge-production-into-staging.js +0 -0
- /package/dist/workflow/operations/{commerce/catalog → release-support/helpers}/run-release-production-guarantees.js +0 -0
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
import { resolveGitHubCredentialForRepository } from "../../operations/services/configuration/github-credentials.js";
|
|
2
|
-
import { encryptGitHubSecret } from "../../operations/services/github-api/paginate-git-hub-environment-names.js";
|
|
3
|
-
import {
|
|
4
|
-
PROVIDER_CAPABILITIES,
|
|
5
|
-
blocking,
|
|
6
|
-
measuredScenario,
|
|
7
|
-
node,
|
|
8
|
-
providerPrefixRoot,
|
|
9
|
-
scenario,
|
|
10
|
-
waitForLiveObservation
|
|
11
|
-
} from "../runtime/live-acceptance-runtime.js";
|
|
12
|
-
import { githubRequest, resolveCurrentGitHubRepository } from "./live-acceptance-github-client.js";
|
|
13
|
-
async function runGitHubCleanup(cwd, environment, prefix, mode, env, fetchImpl) {
|
|
14
|
-
const repository = resolveCurrentGitHubRepository(cwd, env);
|
|
15
|
-
const credential = resolveGitHubCredentialForRepository(repository, { values: env, env });
|
|
16
|
-
const cleanupDrift = [];
|
|
17
|
-
const destroyed = [];
|
|
18
|
-
const prefixRoot = mode === "cleanup" ? providerPrefixRoot(environment, "github") : prefix;
|
|
19
|
-
if (!credential.token) {
|
|
20
|
-
cleanupDrift.push(blocking("github", "central-token", `Missing GitHub credential for ${repository}.`));
|
|
21
|
-
} else {
|
|
22
|
-
const [owner, repo] = credential.repository.split("/");
|
|
23
|
-
const variables = await githubRequest(`/repos/${owner}/${repo}/actions/variables?per_page=100`, credential.token, fetchImpl).catch(() => ({ variables: [] }));
|
|
24
|
-
for (const variable of variables.variables ?? []) {
|
|
25
|
-
const name = variable.name ?? "";
|
|
26
|
-
if (!name.startsWith(`TREESEED_LIVE_TEST_${prefixRoot.toUpperCase().replace(/[^A-Z0-9]/gu, "_")}`)) continue;
|
|
27
|
-
try {
|
|
28
|
-
await githubRequest(`/repos/${owner}/${repo}/actions/variables/${name}`, credential.token, fetchImpl, { method: "DELETE" });
|
|
29
|
-
destroyed.push(node("github", environment, "variable", name, { deleted: true }));
|
|
30
|
-
} catch (error) {
|
|
31
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
32
|
-
if (!/404|Not Found/iu.test(message)) cleanupDrift.push(blocking("github", "variable", message));
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
const environments = await githubRequest(`/repos/${owner}/${repo}/environments?per_page=100`, credential.token, fetchImpl).catch(() => ({ environments: [] }));
|
|
36
|
-
for (const candidate of environments.environments ?? []) {
|
|
37
|
-
const name = candidate.name ?? "";
|
|
38
|
-
if (!name.startsWith(prefixRoot)) continue;
|
|
39
|
-
try {
|
|
40
|
-
await githubRequest(`/repos/${owner}/${repo}/environments/${name}`, credential.token, fetchImpl, { method: "DELETE" });
|
|
41
|
-
destroyed.push(node("github", environment, "environment", name, { deleted: true }));
|
|
42
|
-
} catch (error) {
|
|
43
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
44
|
-
if (!/404|Not Found/iu.test(message)) cleanupDrift.push(blocking("github", "environment", message));
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
const branches = await githubRequest(`/repos/${owner}/${repo}/git/matching-refs/heads/${encodeURIComponent(prefixRoot)}`, credential.token, fetchImpl).catch(() => []);
|
|
48
|
-
for (const candidate of branches) {
|
|
49
|
-
const ref = candidate.ref ?? "";
|
|
50
|
-
if (!ref.startsWith(`refs/heads/${prefixRoot}`)) continue;
|
|
51
|
-
const branchName = ref.replace(/^refs\/heads\//u, "");
|
|
52
|
-
try {
|
|
53
|
-
await githubRequest(`/repos/${owner}/${repo}/branches/${encodeURIComponent(branchName)}/protection`, credential.token, fetchImpl, { method: "DELETE" }).catch((error) => {
|
|
54
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
55
|
-
if (!/404|Not Found|Branch not protected/iu.test(message)) throw error;
|
|
56
|
-
});
|
|
57
|
-
await githubRequest(`/repos/${owner}/${repo}/git/refs/heads/${encodeURIComponent(branchName)}`, credential.token, fetchImpl, { method: "DELETE" });
|
|
58
|
-
destroyed.push(node("github", environment, "branch", branchName, { deleted: true }));
|
|
59
|
-
} catch (error) {
|
|
60
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
61
|
-
if (!/404|Not Found/iu.test(message)) cleanupDrift.push(blocking("github", "branch", message));
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
const results = PROVIDER_CAPABILITIES.github.map((capability, index) => scenario({ provider: "github", mode, prefix, capability, ok: cleanupDrift.length === 0, phase: "cleanup", action: destroyed.length ? "delete" : "noop", reason: cleanupDrift.length === 0 ? "GitHub cleanup completed." : "GitHub cleanup left blocking drift.", destroyedResources: index === 0 ? destroyed : [] }));
|
|
66
|
-
return { results, cleanupDrift };
|
|
67
|
-
}
|
|
68
|
-
async function runGitHubAcceptance(cwd, environment, runId, prefix, env, fetchImpl, onProgress) {
|
|
69
|
-
const mode = "acceptance";
|
|
70
|
-
let repository = "";
|
|
71
|
-
try {
|
|
72
|
-
repository = resolveCurrentGitHubRepository(cwd, env);
|
|
73
|
-
const credential = resolveGitHubCredentialForRepository(repository, { values: env, env });
|
|
74
|
-
if (!credential.token) throw new Error(`Missing GitHub credential for ${repository}; expected ${credential.envName}.`);
|
|
75
|
-
const [owner, repo] = credential.repository.split("/");
|
|
76
|
-
const environmentName = prefix;
|
|
77
|
-
const branchName = prefix;
|
|
78
|
-
const resourceName = `TREESEED_LIVE_TEST_${prefix.toUpperCase().replace(/[^A-Z0-9]/gu, "_")}`;
|
|
79
|
-
const variableName = `${resourceName}_VARIABLE`;
|
|
80
|
-
const secretName = `${resourceName}_SECRET`;
|
|
81
|
-
await runGitHubCleanup(cwd, environment, prefix, mode, env, fetchImpl);
|
|
82
|
-
const results = [];
|
|
83
|
-
const repositoryRecord = await githubRequest(`/repos/${owner}/${repo}`, credential.token, fetchImpl);
|
|
84
|
-
const defaultBranch = repositoryRecord.default_branch ?? "main";
|
|
85
|
-
results.push(await measuredScenario({
|
|
86
|
-
provider: "github",
|
|
87
|
-
mode,
|
|
88
|
-
environment,
|
|
89
|
-
runId,
|
|
90
|
-
prefix,
|
|
91
|
-
capability: "repository-adoption",
|
|
92
|
-
phase: "verify",
|
|
93
|
-
action: "adopt",
|
|
94
|
-
successReason: "GitHub acceptance adopted and read back the existing portfolio repository without creating a duplicate.",
|
|
95
|
-
locators: { repository: credential.repository },
|
|
96
|
-
onProgress
|
|
97
|
-
}, async () => {
|
|
98
|
-
if (repositoryRecord.full_name !== credential.repository || repositoryRecord.archived === true) throw new Error("The selected GitHub repository identity is missing, mismatched, or archived.");
|
|
99
|
-
return repositoryRecord;
|
|
100
|
-
}));
|
|
101
|
-
let bootstrapSha = "";
|
|
102
|
-
results.push(await measuredScenario({
|
|
103
|
-
provider: "github",
|
|
104
|
-
mode,
|
|
105
|
-
environment,
|
|
106
|
-
runId,
|
|
107
|
-
prefix,
|
|
108
|
-
capability: "bootstrap",
|
|
109
|
-
phase: "verify",
|
|
110
|
-
action: "noop",
|
|
111
|
-
successReason: "GitHub acceptance observed the default branch bootstrap commit.",
|
|
112
|
-
locators: { repository: credential.repository, branch: defaultBranch },
|
|
113
|
-
onProgress
|
|
114
|
-
}, async () => {
|
|
115
|
-
const branch = await githubRequest(`/repos/${owner}/${repo}/branches/${encodeURIComponent(defaultBranch)}`, credential.token, fetchImpl);
|
|
116
|
-
bootstrapSha = branch.commit?.sha ?? "";
|
|
117
|
-
if (!/^[a-f0-9]{40}$/u.test(bootstrapSha)) throw new Error(`Default branch ${defaultBranch} has no observable bootstrap commit.`);
|
|
118
|
-
return branch;
|
|
119
|
-
}));
|
|
120
|
-
results.push(await measuredScenario({
|
|
121
|
-
provider: "github",
|
|
122
|
-
mode,
|
|
123
|
-
environment,
|
|
124
|
-
runId,
|
|
125
|
-
prefix,
|
|
126
|
-
capability: "branch",
|
|
127
|
-
phase: "create",
|
|
128
|
-
action: "create",
|
|
129
|
-
successReason: "GitHub acceptance created an isolated branch from the exact default-branch commit and observed it live.",
|
|
130
|
-
locators: { repository: credential.repository, branch: branchName },
|
|
131
|
-
createdResources: [node("github", environment, "branch", branchName)],
|
|
132
|
-
onProgress
|
|
133
|
-
}, async () => {
|
|
134
|
-
await githubRequest(`/repos/${owner}/${repo}/git/refs`, credential.token, fetchImpl, { method: "POST", body: JSON.stringify({ ref: `refs/heads/${branchName}`, sha: bootstrapSha }) });
|
|
135
|
-
return waitForLiveObservation(`GitHub branch ${branchName}`, () => githubRequest(`/repos/${owner}/${repo}/branches/${encodeURIComponent(branchName)}`, credential.token ?? "", fetchImpl), (value) => value.name === branchName);
|
|
136
|
-
}));
|
|
137
|
-
results.push(await measuredScenario({
|
|
138
|
-
provider: "github",
|
|
139
|
-
mode,
|
|
140
|
-
environment,
|
|
141
|
-
runId,
|
|
142
|
-
prefix,
|
|
143
|
-
capability: "branch-rules",
|
|
144
|
-
phase: "create",
|
|
145
|
-
action: "create",
|
|
146
|
-
successReason: "GitHub acceptance applied and read back the isolated branch safety policy.",
|
|
147
|
-
locators: { repository: credential.repository, branch: branchName },
|
|
148
|
-
onProgress
|
|
149
|
-
}, async () => {
|
|
150
|
-
await githubRequest(`/repos/${owner}/${repo}/branches/${encodeURIComponent(branchName)}/protection`, credential.token, fetchImpl, { method: "PUT", body: JSON.stringify({ required_status_checks: null, enforce_admins: true, required_pull_request_reviews: null, restrictions: null, allow_force_pushes: false, allow_deletions: false }) });
|
|
151
|
-
const protection = await githubRequest(`/repos/${owner}/${repo}/branches/${encodeURIComponent(branchName)}/protection`, credential.token, fetchImpl);
|
|
152
|
-
if (protection.enforce_admins?.enabled !== true || protection.allow_force_pushes?.enabled === true || protection.allow_deletions?.enabled === true) throw new Error("Isolated GitHub branch protection did not match the required safety policy.");
|
|
153
|
-
return protection;
|
|
154
|
-
}));
|
|
155
|
-
results.push(await measuredScenario({
|
|
156
|
-
provider: "github",
|
|
157
|
-
mode,
|
|
158
|
-
environment,
|
|
159
|
-
runId,
|
|
160
|
-
prefix,
|
|
161
|
-
capability: "actions-settings",
|
|
162
|
-
phase: "verify",
|
|
163
|
-
action: "noop",
|
|
164
|
-
successReason: "GitHub acceptance observed enabled Actions settings without changing repository-wide policy.",
|
|
165
|
-
locators: { repository: credential.repository },
|
|
166
|
-
onProgress
|
|
167
|
-
}, async () => {
|
|
168
|
-
const settings = await githubRequest(`/repos/${owner}/${repo}/actions/permissions`, credential.token, fetchImpl);
|
|
169
|
-
if (settings.enabled !== true) throw new Error("GitHub Actions is disabled for the selected repository.");
|
|
170
|
-
return settings;
|
|
171
|
-
}));
|
|
172
|
-
results.push(await measuredScenario({
|
|
173
|
-
provider: "github",
|
|
174
|
-
mode,
|
|
175
|
-
environment,
|
|
176
|
-
runId,
|
|
177
|
-
prefix,
|
|
178
|
-
capability: "environment",
|
|
179
|
-
phase: "create",
|
|
180
|
-
action: "create",
|
|
181
|
-
startMessage: "github:environment: create/update started",
|
|
182
|
-
successReason: "GitHub acceptance created a test environment and observed it live.",
|
|
183
|
-
locators: { repository: credential.repository, environment: environmentName },
|
|
184
|
-
onProgress
|
|
185
|
-
}, async () => {
|
|
186
|
-
await githubRequest(`/repos/${owner}/${repo}/environments/${environmentName}`, credential.token, fetchImpl, { method: "PUT", body: JSON.stringify({ deployment_branch_policy: { protected_branches: false, custom_branch_policies: true } }) });
|
|
187
|
-
await githubRequest(`/repos/${owner}/${repo}/environments/${environmentName}/deployment-branch-policies`, credential.token, fetchImpl, { method: "POST", body: JSON.stringify({ name: branchName, type: "branch" }) });
|
|
188
|
-
return waitForLiveObservation(
|
|
189
|
-
`GitHub environment ${environmentName}`,
|
|
190
|
-
async () => ({ environment: await githubRequest(`/repos/${owner}/${repo}/environments/${environmentName}`, credential.token ?? "", fetchImpl), policies: await githubRequest(`/repos/${owner}/${repo}/environments/${environmentName}/deployment-branch-policies?per_page=100`, credential.token ?? "", fetchImpl) }),
|
|
191
|
-
(value) => (value.policies?.branch_policies ?? []).some((candidate) => candidate.name === branchName)
|
|
192
|
-
);
|
|
193
|
-
}));
|
|
194
|
-
results.push(await measuredScenario({
|
|
195
|
-
provider: "github",
|
|
196
|
-
mode,
|
|
197
|
-
environment,
|
|
198
|
-
runId,
|
|
199
|
-
prefix,
|
|
200
|
-
capability: "variable",
|
|
201
|
-
phase: "update",
|
|
202
|
-
action: "update",
|
|
203
|
-
startMessage: "github:variable: create/update started",
|
|
204
|
-
successReason: "GitHub acceptance created, updated, and observed a repository variable.",
|
|
205
|
-
locators: { repository: credential.repository, variable: variableName },
|
|
206
|
-
onProgress
|
|
207
|
-
}, async () => {
|
|
208
|
-
await githubRequest(`/repos/${owner}/${repo}/actions/variables`, credential.token, fetchImpl, { method: "POST", body: JSON.stringify({ name: variableName, value: "created" }) }).catch(async (error) => {
|
|
209
|
-
if (/already_exists|already exists|409/iu.test(error instanceof Error ? error.message : String(error))) {
|
|
210
|
-
await githubRequest(`/repos/${owner}/${repo}/actions/variables/${variableName}`, credential.token ?? "", fetchImpl, { method: "PATCH", body: JSON.stringify({ name: variableName, value: "created" }) });
|
|
211
|
-
return;
|
|
212
|
-
}
|
|
213
|
-
throw error;
|
|
214
|
-
});
|
|
215
|
-
await githubRequest(`/repos/${owner}/${repo}/actions/variables/${variableName}`, credential.token, fetchImpl, { method: "PATCH", body: JSON.stringify({ name: variableName, value: "updated" }) });
|
|
216
|
-
return waitForLiveObservation(
|
|
217
|
-
`GitHub variable ${variableName}`,
|
|
218
|
-
() => githubRequest(`/repos/${owner}/${repo}/actions/variables/${variableName}`, credential.token ?? "", fetchImpl),
|
|
219
|
-
(value) => value.name === variableName && value.value === "updated"
|
|
220
|
-
);
|
|
221
|
-
}));
|
|
222
|
-
results.push(await measuredScenario({
|
|
223
|
-
provider: "github",
|
|
224
|
-
mode,
|
|
225
|
-
environment,
|
|
226
|
-
runId,
|
|
227
|
-
prefix,
|
|
228
|
-
capability: "secret",
|
|
229
|
-
phase: "create",
|
|
230
|
-
action: "create",
|
|
231
|
-
startMessage: "github:secret: creating isolated environment secret",
|
|
232
|
-
successReason: "GitHub acceptance encrypted, created, and observed an isolated environment secret.",
|
|
233
|
-
locators: { repository: credential.repository, environment: environmentName, secret: secretName },
|
|
234
|
-
onProgress
|
|
235
|
-
}, async () => {
|
|
236
|
-
const key = await githubRequest(`/repos/${owner}/${repo}/environments/${environmentName}/secrets/public-key`, credential.token, fetchImpl);
|
|
237
|
-
const encryptedValue = await encryptGitHubSecret("isolated-live-acceptance-value", key.key ?? "");
|
|
238
|
-
await githubRequest(`/repos/${owner}/${repo}/environments/${environmentName}/secrets/${secretName}`, credential.token, fetchImpl, { method: "PUT", body: JSON.stringify({ encrypted_value: encryptedValue, key_id: key.key_id }) });
|
|
239
|
-
return waitForLiveObservation(`GitHub secret ${secretName}`, () => githubRequest(`/repos/${owner}/${repo}/environments/${environmentName}/secrets?per_page=100`, credential.token ?? "", fetchImpl), (value) => (value.secrets ?? []).some((candidate) => candidate.name === secretName));
|
|
240
|
-
}));
|
|
241
|
-
results.push(await measuredScenario({
|
|
242
|
-
provider: "github",
|
|
243
|
-
mode,
|
|
244
|
-
environment,
|
|
245
|
-
runId,
|
|
246
|
-
prefix,
|
|
247
|
-
capability: "workflow-presence",
|
|
248
|
-
phase: "verify",
|
|
249
|
-
action: "noop",
|
|
250
|
-
startMessage: "github:workflow-presence: verifying workflow metadata",
|
|
251
|
-
successReason: "GitHub acceptance observed an active verification workflow without dispatching deployment.",
|
|
252
|
-
locators: { repository: credential.repository },
|
|
253
|
-
onProgress
|
|
254
|
-
}, async () => {
|
|
255
|
-
const workflows = await githubRequest(`/repos/${owner}/${repo}/actions/workflows?per_page=100`, credential.token, fetchImpl);
|
|
256
|
-
const workflow = workflows.workflows?.find((candidate) => candidate.state === "active") ?? workflows.workflows?.[0] ?? null;
|
|
257
|
-
if (!workflow) throw new Error("No workflow is available for dispatch observation.");
|
|
258
|
-
return workflow;
|
|
259
|
-
}));
|
|
260
|
-
results.push(await measuredScenario({
|
|
261
|
-
provider: "github",
|
|
262
|
-
mode,
|
|
263
|
-
environment,
|
|
264
|
-
runId,
|
|
265
|
-
prefix,
|
|
266
|
-
capability: "workflow-observation",
|
|
267
|
-
phase: "verify",
|
|
268
|
-
action: "noop",
|
|
269
|
-
startMessage: "github:workflow-observation: reading workflow runs",
|
|
270
|
-
successReason: "GitHub acceptance observed workflow runs.",
|
|
271
|
-
locators: { repository: credential.repository },
|
|
272
|
-
onProgress
|
|
273
|
-
}, async () => githubRequest(`/repos/${owner}/${repo}/actions/runs?per_page=1`, credential.token, fetchImpl)));
|
|
274
|
-
results.push(await measuredScenario({
|
|
275
|
-
provider: "github",
|
|
276
|
-
mode,
|
|
277
|
-
environment,
|
|
278
|
-
runId,
|
|
279
|
-
prefix,
|
|
280
|
-
capability: "central-token",
|
|
281
|
-
phase: "verify",
|
|
282
|
-
action: "noop",
|
|
283
|
-
startMessage: "github:central-token: resolving credential",
|
|
284
|
-
successReason: credential.envName === "TREESEED_GITHUB_TOKEN" ? "GitHub acceptance resolved the central first-party credential." : "GitHub acceptance resolved an imported third-party repository override.",
|
|
285
|
-
locators: { repository: credential.repository, credentialKey: credential.envName },
|
|
286
|
-
onProgress
|
|
287
|
-
}, async () => credential));
|
|
288
|
-
const cleanup = await runGitHubCleanup(cwd, environment, prefix, mode, env, fetchImpl);
|
|
289
|
-
return { results, cleanupDrift: cleanup.cleanupDrift };
|
|
290
|
-
} catch (error) {
|
|
291
|
-
const reason = error instanceof Error ? error.message : String(error);
|
|
292
|
-
return {
|
|
293
|
-
results: PROVIDER_CAPABILITIES.github.map((capability) => scenario({ provider: "github", mode, prefix, capability, ok: false, phase: "blocked", action: "blocked", reason, locators: { repository } })),
|
|
294
|
-
cleanupDrift: []
|
|
295
|
-
};
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
export {
|
|
299
|
-
runGitHubAcceptance,
|
|
300
|
-
runGitHubCleanup
|
|
301
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { LiveAcceptanceEnv } from '../support/acceptance/live-acceptance-values.js';
|
|
2
|
-
import type { LiveReconcileEnvironment, LiveReconcileMode, LiveReconcileScenarioResult, RunLiveReconcileTestsOptions } from '../support/acceptance/live-acceptance.js';
|
|
3
|
-
import type { CanonicalDrift, CanonicalGraphNode } from '../support/state/platform.js';
|
|
4
|
-
type LiveProgress = RunLiveReconcileTestsOptions['onProgress'];
|
|
5
|
-
type LiveEnv = LiveAcceptanceEnv;
|
|
6
|
-
export declare function runLocalAcceptance(environment: LiveReconcileEnvironment, prefix: string, mode: LiveReconcileMode, runId: string, env: LiveEnv, fetchImpl: typeof fetch, onProgress?: LiveProgress, capacityAssignmentExecutor?: RunLiveReconcileTestsOptions['capacityAssignmentExecutor']): Promise<{
|
|
7
|
-
results: LiveReconcileScenarioResult[];
|
|
8
|
-
cleanupDrift: never[];
|
|
9
|
-
destroyedResources: CanonicalGraphNode[];
|
|
10
|
-
}>;
|
|
11
|
-
export declare function runLocalCleanup(environment: LiveReconcileEnvironment, prefix: string, mode: LiveReconcileMode, env: LiveEnv, fetchImpl: typeof fetch, onProgress?: LiveProgress): Promise<{
|
|
12
|
-
results: LiveReconcileScenarioResult[];
|
|
13
|
-
cleanupDrift: CanonicalDrift[];
|
|
14
|
-
destroyedResources: CanonicalGraphNode[];
|
|
15
|
-
}>;
|
|
16
|
-
export {};
|
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
import { execFileSync } from "node:child_process";
|
|
2
|
-
import { readFileSync } from "node:fs";
|
|
3
|
-
import { mkdir, mkdtemp, readdir, rm, writeFile } from "node:fs/promises";
|
|
4
|
-
import { createServer } from "node:net";
|
|
5
|
-
import { join, resolve } from "node:path";
|
|
6
|
-
import { MarketClient } from "../../entrypoints/clients/market-client.js";
|
|
7
|
-
import { capacityAcceptanceConfig } from "../capacity/capacity-core/live-acceptance-capacity-context.js";
|
|
8
|
-
import { runCapacityProviderAssignmentProof } from "../capacity/capacity-core/live-acceptance-capacity-proof.js";
|
|
9
|
-
import { deleteLocalCapacityAcceptanceTeam, isLocalCapacityAcceptanceTeam } from "../capacity/capacity-core/live-acceptance-capacity-scope.js";
|
|
10
|
-
import { cleanupLocalAcceptanceAgentWorktrees } from "../support/acceptance/live-acceptance-worktree-cleanup.js";
|
|
11
|
-
import { PROVIDER_CAPABILITIES, blocking, emitProgress, measuredScenario, node, providerNode, providerPrefixRoot, scenario } from "./live-acceptance-runtime.js";
|
|
12
|
-
async function listenOnEphemeralPort(server) {
|
|
13
|
-
return new Promise((resolve2, reject) => {
|
|
14
|
-
server.once("error", reject);
|
|
15
|
-
server.listen(0, "127.0.0.1", () => {
|
|
16
|
-
const address = server.address();
|
|
17
|
-
if (address && typeof address === "object") resolve2(address.port);
|
|
18
|
-
else reject(new Error("Local server did not expose an address."));
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
async function closeServer(server) {
|
|
23
|
-
return new Promise((resolve2, reject) => {
|
|
24
|
-
server.close((error) => error ? reject(error) : resolve2());
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
async function runLocalAcceptance(environment, prefix, mode, runId, env, fetchImpl, onProgress, capacityAssignmentExecutor) {
|
|
28
|
-
const created = [];
|
|
29
|
-
const destroyed = [];
|
|
30
|
-
const tempBase = resolve(process.cwd(), ".treeseed", "tmp", "live-acceptance");
|
|
31
|
-
await mkdir(tempBase, { recursive: true });
|
|
32
|
-
const dir = await mkdtemp(join(tempBase, `${prefix}-`));
|
|
33
|
-
const results = [];
|
|
34
|
-
let server = null;
|
|
35
|
-
try {
|
|
36
|
-
results.push(await measuredScenario({
|
|
37
|
-
provider: "local",
|
|
38
|
-
mode,
|
|
39
|
-
environment,
|
|
40
|
-
runId,
|
|
41
|
-
prefix,
|
|
42
|
-
capability: "local-db",
|
|
43
|
-
phase: "create",
|
|
44
|
-
action: "create",
|
|
45
|
-
startMessage: "local:local-db: creating isolated state",
|
|
46
|
-
successReason: "Local acceptance created, wrote, read, and removed isolated local state.",
|
|
47
|
-
createdResources: [node("local", environment, "local-db", dir, { path: dir })],
|
|
48
|
-
onProgress
|
|
49
|
-
}, async () => {
|
|
50
|
-
const file = join(dir, "state.json");
|
|
51
|
-
await writeFile(file, JSON.stringify({ ok: true, runId }), "utf8");
|
|
52
|
-
const parsed = JSON.parse(readFileSync(file, "utf8"));
|
|
53
|
-
if (parsed.ok !== true || parsed.runId !== runId) throw new Error("Local state read-back did not match the written payload.");
|
|
54
|
-
created.push(node("local", environment, "local-db", dir, { path: dir }));
|
|
55
|
-
return parsed;
|
|
56
|
-
}));
|
|
57
|
-
server = createServer((socket) => {
|
|
58
|
-
socket.end("treeseed-live-test-local\n");
|
|
59
|
-
});
|
|
60
|
-
results.push(await measuredScenario({
|
|
61
|
-
provider: "local",
|
|
62
|
-
mode,
|
|
63
|
-
environment,
|
|
64
|
-
runId,
|
|
65
|
-
prefix,
|
|
66
|
-
capability: "port",
|
|
67
|
-
phase: "create",
|
|
68
|
-
action: "create",
|
|
69
|
-
startMessage: "local:port: binding ephemeral port",
|
|
70
|
-
successReason: "Local acceptance bound and observed an ephemeral loopback port.",
|
|
71
|
-
onProgress
|
|
72
|
-
}, async () => {
|
|
73
|
-
const port = await listenOnEphemeralPort(server);
|
|
74
|
-
if (!port) throw new Error("No local port was allocated.");
|
|
75
|
-
return { port };
|
|
76
|
-
}));
|
|
77
|
-
results.push(await measuredScenario({
|
|
78
|
-
provider: "local",
|
|
79
|
-
mode,
|
|
80
|
-
environment,
|
|
81
|
-
runId,
|
|
82
|
-
prefix,
|
|
83
|
-
capability: "process",
|
|
84
|
-
phase: "verify",
|
|
85
|
-
action: "noop",
|
|
86
|
-
startMessage: "local:process: verifying current process",
|
|
87
|
-
successReason: "Local acceptance observed the current Node process as a supervised-process stand-in.",
|
|
88
|
-
locators: { pid: String(process.pid) },
|
|
89
|
-
onProgress
|
|
90
|
-
}, async () => {
|
|
91
|
-
if (!process.pid) throw new Error("Current process id is unavailable.");
|
|
92
|
-
return { pid: process.pid };
|
|
93
|
-
}));
|
|
94
|
-
results.push(await measuredScenario({
|
|
95
|
-
provider: "local",
|
|
96
|
-
mode,
|
|
97
|
-
environment,
|
|
98
|
-
runId,
|
|
99
|
-
prefix,
|
|
100
|
-
capability: "local-runner",
|
|
101
|
-
phase: "verify",
|
|
102
|
-
action: "noop",
|
|
103
|
-
startMessage: "local:local-runner: verifying runner probe",
|
|
104
|
-
successReason: "Local acceptance verified the local runner probe contract.",
|
|
105
|
-
onProgress
|
|
106
|
-
}, async () => ({ runnerProbe: true, runId })));
|
|
107
|
-
results.push(await measuredScenario({
|
|
108
|
-
provider: "local",
|
|
109
|
-
mode,
|
|
110
|
-
environment,
|
|
111
|
-
runId,
|
|
112
|
-
prefix,
|
|
113
|
-
capability: "docker-compose-capacity-provider",
|
|
114
|
-
phase: "verify",
|
|
115
|
-
action: "noop",
|
|
116
|
-
startMessage: "local:docker-compose-capacity-provider: checking Docker availability",
|
|
117
|
-
successReason: (value) => value.available ? "Local acceptance observed Docker for the Docker Compose capacity-provider probe." : "Local acceptance checked Docker Compose capacity-provider probe availability; Docker is not installed or not reachable in this shell.",
|
|
118
|
-
onProgress
|
|
119
|
-
}, async () => {
|
|
120
|
-
try {
|
|
121
|
-
const docker = execFileSync("docker", ["--version"], { encoding: "utf8", stdio: ["ignore", "pipe", "pipe"] }).trim();
|
|
122
|
-
return { docker, available: true };
|
|
123
|
-
} catch (error) {
|
|
124
|
-
return { docker: error instanceof Error ? error.message : String(error), available: false };
|
|
125
|
-
}
|
|
126
|
-
}));
|
|
127
|
-
results.push(await measuredScenario({
|
|
128
|
-
provider: "local",
|
|
129
|
-
mode,
|
|
130
|
-
environment,
|
|
131
|
-
runId,
|
|
132
|
-
prefix,
|
|
133
|
-
capability: "capacity-provider-assignment-proof",
|
|
134
|
-
phase: "verify",
|
|
135
|
-
action: "noop",
|
|
136
|
-
startMessage: "local:capacity-provider-assignment-proof: running assignment lifecycle proof",
|
|
137
|
-
successReason: "Local capacity acceptance proved multi-team registration governance plus reconciled starter planning through the provider manager, runner, AgentKernel, TreeDX, usage, and settlement path.",
|
|
138
|
-
retainedResources: (value) => {
|
|
139
|
-
const proof = value;
|
|
140
|
-
return [providerNode("local", environment, "capacity-runtime-proof", proof.assignmentId, {
|
|
141
|
-
sessionId: proof.sessionId,
|
|
142
|
-
modeRunId: proof.modeRunId,
|
|
143
|
-
finalStatus: proof.finalStatus,
|
|
144
|
-
mode: proof.mode,
|
|
145
|
-
modeRunCount: proof.modeRunCount,
|
|
146
|
-
artifactCount: proof.artifactCount,
|
|
147
|
-
toolEventCount: proof.toolEventCount,
|
|
148
|
-
usageActualCount: proof.usageActualCount,
|
|
149
|
-
ledgerEntryCount: proof.ledgerEntryCount,
|
|
150
|
-
starterPlanning: proof.starterPlanning,
|
|
151
|
-
starterEngineering: proof.starterEngineering,
|
|
152
|
-
starterConcurrency: proof.starterConcurrency,
|
|
153
|
-
governance: proof.governance
|
|
154
|
-
})];
|
|
155
|
-
},
|
|
156
|
-
onProgress
|
|
157
|
-
}, async () => runCapacityProviderAssignmentProof({ provider: "local", environment, runId, prefix, env, fetchImpl, capacityAssignmentExecutor })));
|
|
158
|
-
} catch (error) {
|
|
159
|
-
const reason = error instanceof Error ? error.message : String(error);
|
|
160
|
-
for (const capability of PROVIDER_CAPABILITIES.local) {
|
|
161
|
-
if (!results.some((result) => result.capability === capability)) {
|
|
162
|
-
results.push(scenario({ provider: "local", mode, prefix, capability, ok: false, phase: "blocked", action: "blocked", reason }));
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
} finally {
|
|
166
|
-
if (server) await closeServer(server).catch(() => void 0);
|
|
167
|
-
await rm(dir, { recursive: true, force: true });
|
|
168
|
-
destroyed.push(node("local", environment, "local-db", dir, { deleted: true }));
|
|
169
|
-
}
|
|
170
|
-
return { results, cleanupDrift: [], destroyedResources: destroyed };
|
|
171
|
-
}
|
|
172
|
-
async function runLocalCleanup(environment, prefix, mode, env, fetchImpl, onProgress) {
|
|
173
|
-
const tempBase = resolve(process.cwd(), ".treeseed", "tmp", "live-acceptance");
|
|
174
|
-
const prefixRoot = providerPrefixRoot(environment, "local");
|
|
175
|
-
const destroyedResources = [];
|
|
176
|
-
const cleanupDrift = [];
|
|
177
|
-
const entries = await readdir(tempBase, { withFileTypes: true }).catch(() => []);
|
|
178
|
-
for (const entry of entries) {
|
|
179
|
-
if (!entry.isDirectory() || !entry.name.startsWith(prefixRoot)) continue;
|
|
180
|
-
const path = join(tempBase, entry.name);
|
|
181
|
-
await rm(path, { recursive: true, force: true });
|
|
182
|
-
destroyedResources.push(node("local", environment, "local-db", path, { deleted: true }));
|
|
183
|
-
}
|
|
184
|
-
const worktreeCleanup = await cleanupLocalAcceptanceAgentWorktrees(process.cwd());
|
|
185
|
-
for (const removed of worktreeCleanup.removed) {
|
|
186
|
-
destroyedResources.push(node("local", environment, "assignment-worktree", removed.worktreeRoot, {
|
|
187
|
-
deleted: true,
|
|
188
|
-
repository: removed.repoRoot
|
|
189
|
-
}));
|
|
190
|
-
}
|
|
191
|
-
for (const failure of worktreeCleanup.failures) {
|
|
192
|
-
cleanupDrift.push(blocking("local", "assignment-worktree", `Local assignment-worktree cleanup failed: ${failure}`));
|
|
193
|
-
}
|
|
194
|
-
const config = capacityAcceptanceConfig(env, environment);
|
|
195
|
-
if (config.apiUrl && config.adminToken) {
|
|
196
|
-
const adminClient = new MarketClient({
|
|
197
|
-
profile: {
|
|
198
|
-
id: "capacity-acceptance-cleanup",
|
|
199
|
-
label: "Capacity Acceptance Cleanup",
|
|
200
|
-
baseUrl: config.apiUrl,
|
|
201
|
-
kind: "specialized"
|
|
202
|
-
},
|
|
203
|
-
accessToken: config.adminToken,
|
|
204
|
-
fetchImpl,
|
|
205
|
-
userAgent: "treeseed-live-acceptance-cleanup"
|
|
206
|
-
});
|
|
207
|
-
try {
|
|
208
|
-
const teams = await adminClient.teams();
|
|
209
|
-
const isolatedTeams = teams.payload.filter((team) => isLocalCapacityAcceptanceTeam(team));
|
|
210
|
-
for (const team of isolatedTeams) {
|
|
211
|
-
const id = typeof team.id === "string" ? team.id : "";
|
|
212
|
-
const name = typeof team.name === "string" ? team.name : "";
|
|
213
|
-
if (!id || !name) continue;
|
|
214
|
-
await deleteLocalCapacityAcceptanceTeam(adminClient, { id, name });
|
|
215
|
-
destroyedResources.push(node("local", environment, "capacity-acceptance-team", id, {
|
|
216
|
-
deleted: true,
|
|
217
|
-
name
|
|
218
|
-
}));
|
|
219
|
-
}
|
|
220
|
-
} catch (error) {
|
|
221
|
-
cleanupDrift.push(blocking(
|
|
222
|
-
"local",
|
|
223
|
-
"capacity-acceptance-team",
|
|
224
|
-
`Local capacity control-plane cleanup failed: ${error instanceof Error ? error.message : String(error)}`
|
|
225
|
-
));
|
|
226
|
-
}
|
|
227
|
-
} else {
|
|
228
|
-
cleanupDrift.push(blocking(
|
|
229
|
-
"local",
|
|
230
|
-
"capacity-acceptance-team",
|
|
231
|
-
"Local capacity control-plane cleanup requires an API URL and admin token."
|
|
232
|
-
));
|
|
233
|
-
}
|
|
234
|
-
const results = PROVIDER_CAPABILITIES.local.map((capability) => scenario({
|
|
235
|
-
provider: "local",
|
|
236
|
-
mode,
|
|
237
|
-
prefix,
|
|
238
|
-
capability,
|
|
239
|
-
ok: capability !== "capacity-provider-assignment-proof" || cleanupDrift.length === 0,
|
|
240
|
-
phase: "cleanup",
|
|
241
|
-
action: capability === "local-db" && destroyedResources.length ? "delete" : "noop",
|
|
242
|
-
reason: capability === "capacity-provider-assignment-proof" && cleanupDrift.length > 0 ? "Local cleanup could not prove removal of isolated capacity control-plane state." : capability === "local-db" && destroyedResources.length ? `Local cleanup removed ${destroyedResources.length} isolated live-acceptance director${destroyedResources.length === 1 ? "y" : "ies"}.` : "Local cleanup observed no isolated resource requiring mutation.",
|
|
243
|
-
destroyedResources: capability === "local-db" || capability === "capacity-provider-assignment-proof" ? destroyedResources : [],
|
|
244
|
-
issues: capability === "capacity-provider-assignment-proof" ? cleanupDrift.map((entry) => entry.reason) : []
|
|
245
|
-
}));
|
|
246
|
-
emitProgress(onProgress, {
|
|
247
|
-
provider: "local",
|
|
248
|
-
mode,
|
|
249
|
-
environment,
|
|
250
|
-
runId: prefix.slice(prefixRoot.length),
|
|
251
|
-
resourcePrefix: prefix,
|
|
252
|
-
phase: cleanupDrift.length === 0 ? "cleanup" : "blocked",
|
|
253
|
-
message: `local: cleanup removed ${destroyedResources.length} isolated resource(s) with ${cleanupDrift.length} blocking drift item(s)`
|
|
254
|
-
});
|
|
255
|
-
return { results, cleanupDrift, destroyedResources };
|
|
256
|
-
}
|
|
257
|
-
export {
|
|
258
|
-
runLocalAcceptance,
|
|
259
|
-
runLocalCleanup
|
|
260
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { type CanonicalAction, type CanonicalDrift, type CanonicalGraphNode } from '../support/state/platform.js';
|
|
2
|
-
import type { RunLiveReconcileTestsOptions, LiveReconcileEnvironment, LiveReconcileMode, LiveReconcileProgressEvent, LiveReconcileProvider, LiveReconcileProviderReport, LiveReconcileScenarioResult } from '../support/acceptance/live-acceptance.js';
|
|
3
|
-
type LiveProgress = RunLiveReconcileTestsOptions['onProgress'];
|
|
4
|
-
export declare const PROVIDER_CAPABILITIES: Record<LiveReconcileProvider, string[]>;
|
|
5
|
-
export declare function shortRunId(now?: Date): string;
|
|
6
|
-
export declare function providerPrefix(environment: string, provider: LiveReconcileProvider, runId: string): string;
|
|
7
|
-
export declare function providerPrefixRoot(environment: string, provider: LiveReconcileProvider): string;
|
|
8
|
-
export declare function emitProgress(onProgress: LiveProgress, event: Omit<LiveReconcileProgressEvent, 'message'> & {
|
|
9
|
-
message?: string;
|
|
10
|
-
}): void;
|
|
11
|
-
export declare function waitForLiveObservation<T>(description: string, observe: () => Promise<T>, isReady: (value: T) => boolean, options?: {
|
|
12
|
-
attempts?: number;
|
|
13
|
-
intervalMs?: number;
|
|
14
|
-
}): Promise<T>;
|
|
15
|
-
export declare function scenario({ provider, mode, prefix, capability, ok, phase, action, reason, locators, createdResources, updatedResources, replacedResources, destroyedResources, retainedResources, issues, startedAt, completedAt, durationMs, }: {
|
|
16
|
-
provider: LiveReconcileProvider;
|
|
17
|
-
mode: LiveReconcileMode;
|
|
18
|
-
prefix: string;
|
|
19
|
-
capability: string;
|
|
20
|
-
ok: boolean;
|
|
21
|
-
phase: LiveReconcileScenarioResult['phase'];
|
|
22
|
-
action: CanonicalAction['kind'];
|
|
23
|
-
reason: string;
|
|
24
|
-
locators?: Record<string, string | null>;
|
|
25
|
-
createdResources?: CanonicalGraphNode[];
|
|
26
|
-
updatedResources?: CanonicalGraphNode[];
|
|
27
|
-
replacedResources?: CanonicalGraphNode[];
|
|
28
|
-
destroyedResources?: CanonicalGraphNode[];
|
|
29
|
-
retainedResources?: CanonicalGraphNode[];
|
|
30
|
-
issues?: string[];
|
|
31
|
-
startedAt?: string;
|
|
32
|
-
completedAt?: string;
|
|
33
|
-
durationMs?: number;
|
|
34
|
-
}): LiveReconcileScenarioResult;
|
|
35
|
-
export declare function node(provider: LiveReconcileProvider, environment: string, type: string, id: string, state?: Record<string, unknown>): CanonicalGraphNode;
|
|
36
|
-
export declare function providerNode(provider: LiveReconcileProvider, environment: string, type: string, id: string, state?: Record<string, unknown>): CanonicalGraphNode;
|
|
37
|
-
export declare function blocking(provider: LiveReconcileProvider, type: string, reason: string): CanonicalDrift;
|
|
38
|
-
export declare function describeLiveAcceptanceError(error: unknown): string;
|
|
39
|
-
export declare function measuredScenario(input: {
|
|
40
|
-
provider: LiveReconcileProvider;
|
|
41
|
-
mode: LiveReconcileMode;
|
|
42
|
-
environment: LiveReconcileEnvironment;
|
|
43
|
-
runId: string;
|
|
44
|
-
prefix: string;
|
|
45
|
-
capability: string;
|
|
46
|
-
phase: LiveReconcileScenarioResult['phase'];
|
|
47
|
-
action: CanonicalAction['kind'];
|
|
48
|
-
startMessage?: string;
|
|
49
|
-
successReason: string | ((value: unknown) => string);
|
|
50
|
-
locators?: Record<string, string | null>;
|
|
51
|
-
createdResources?: CanonicalGraphNode[] | ((value: unknown) => CanonicalGraphNode[]);
|
|
52
|
-
updatedResources?: CanonicalGraphNode[] | ((value: unknown) => CanonicalGraphNode[]);
|
|
53
|
-
replacedResources?: CanonicalGraphNode[] | ((value: unknown) => CanonicalGraphNode[]);
|
|
54
|
-
destroyedResources?: CanonicalGraphNode[] | ((value: unknown) => CanonicalGraphNode[]);
|
|
55
|
-
retainedResources?: CanonicalGraphNode[] | ((value: unknown) => CanonicalGraphNode[]);
|
|
56
|
-
onProgress?: LiveProgress;
|
|
57
|
-
}, fn: () => Promise<unknown>): Promise<LiveReconcileScenarioResult>;
|
|
58
|
-
export declare function reportForProvider({ provider, mode, runId, prefix, environment, results, cleanupDrift, }: {
|
|
59
|
-
provider: LiveReconcileProvider;
|
|
60
|
-
mode: LiveReconcileMode;
|
|
61
|
-
runId: string;
|
|
62
|
-
prefix: string;
|
|
63
|
-
environment: LiveReconcileEnvironment;
|
|
64
|
-
results: LiveReconcileScenarioResult[];
|
|
65
|
-
cleanupDrift?: CanonicalDrift[];
|
|
66
|
-
}): LiveReconcileProviderReport;
|
|
67
|
-
export {};
|