@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,5 +1,19 @@
|
|
|
1
|
+
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
2
|
+
import { homedir } from "node:os";
|
|
3
|
+
import { dirname, resolve } from "node:path";
|
|
4
|
+
import {
|
|
5
|
+
decryptRemoteAuthSessions,
|
|
6
|
+
encryptRemoteAuthSessions,
|
|
7
|
+
loadMachineKey,
|
|
8
|
+
loadRemoteAuthPayload,
|
|
9
|
+
writeRemoteAuthPayload
|
|
10
|
+
} from "../../operations/services/config-runtime/configuration/create-default-machine-config.js";
|
|
11
|
+
import { getRemoteAuthPaths } from "../../operations/services/config-runtime/accounts/ensure-secret-session-for-config.js";
|
|
1
12
|
const DEFAULT_CONTROL_PLANE_BASE_URL = "http://127.0.0.1:3002";
|
|
2
13
|
const CONTROL_PLANE_BASE_URL_ENV = "TREESEED_API_BASE_URL";
|
|
14
|
+
const CONTROL_PLANE_SERVER_REGISTRY_PATH = ".treeseed/config/servers.json";
|
|
15
|
+
const CONTROL_PLANE_SERVER_SESSIONS_PATH = ".treeseed/config/remote-auth.json";
|
|
16
|
+
const machineKeySessionCustody = { loadKey: loadMachineKey };
|
|
3
17
|
class ControlPlaneClientError extends Error {
|
|
4
18
|
constructor(message, status, problem, responseHeaders) {
|
|
5
19
|
super(message);
|
|
@@ -12,7 +26,7 @@ class ControlPlaneClientError extends Error {
|
|
|
12
26
|
problem;
|
|
13
27
|
responseHeaders;
|
|
14
28
|
}
|
|
15
|
-
function
|
|
29
|
+
function normalizeControlPlaneBaseUrl(value) {
|
|
16
30
|
const normalized = value.trim().replace(/\/+$/u, "");
|
|
17
31
|
if (!/^https?:\/\//u.test(normalized)) throw new Error("Control-plane server URLs must use HTTP or HTTPS.");
|
|
18
32
|
return normalized;
|
|
@@ -21,9 +35,88 @@ function defaultLocalControlPlaneServer(env = process.env) {
|
|
|
21
35
|
return {
|
|
22
36
|
serverId: "local",
|
|
23
37
|
label: "Local TreeSeed control plane",
|
|
24
|
-
baseUrl:
|
|
38
|
+
baseUrl: normalizeControlPlaneBaseUrl(env[CONTROL_PLANE_BASE_URL_ENV] ?? DEFAULT_CONTROL_PLANE_BASE_URL)
|
|
25
39
|
};
|
|
26
40
|
}
|
|
41
|
+
function registryPath(env = process.env) {
|
|
42
|
+
return resolve(env.HOME?.trim() || homedir(), CONTROL_PLANE_SERVER_REGISTRY_PATH);
|
|
43
|
+
}
|
|
44
|
+
function normalizeServer(profile) {
|
|
45
|
+
const serverId = profile.serverId.trim();
|
|
46
|
+
if (!serverId) throw new Error("Control-plane server IDs cannot be empty.");
|
|
47
|
+
return { serverId, label: profile.label.trim() || serverId, baseUrl: normalizeControlPlaneBaseUrl(profile.baseUrl) };
|
|
48
|
+
}
|
|
49
|
+
function loadControlPlaneServerRegistry(env = process.env) {
|
|
50
|
+
const local = defaultLocalControlPlaneServer(env);
|
|
51
|
+
const path = registryPath(env);
|
|
52
|
+
if (!existsSync(path)) return { version: 1, activeServerId: local.serverId, servers: [local] };
|
|
53
|
+
const parsed = JSON.parse(readFileSync(path, "utf8"));
|
|
54
|
+
const byId = /* @__PURE__ */ new Map([[local.serverId, local]]);
|
|
55
|
+
for (const value of Array.isArray(parsed.servers) ? parsed.servers : []) {
|
|
56
|
+
const normalized = normalizeServer(value);
|
|
57
|
+
byId.set(normalized.serverId, normalized);
|
|
58
|
+
}
|
|
59
|
+
const servers = [...byId.values()].sort((left, right) => left.serverId.localeCompare(right.serverId));
|
|
60
|
+
const activeServerId = servers.some((entry) => entry.serverId === parsed.activeServerId) ? parsed.activeServerId : local.serverId;
|
|
61
|
+
return { version: 1, activeServerId, servers };
|
|
62
|
+
}
|
|
63
|
+
function writeControlPlaneServerRegistry(state, env = process.env) {
|
|
64
|
+
const path = registryPath(env);
|
|
65
|
+
const servers = [...new Map(state.servers.map((entry) => {
|
|
66
|
+
const normalized = normalizeServer(entry);
|
|
67
|
+
return [normalized.serverId, normalized];
|
|
68
|
+
})).values()].sort((left, right) => left.serverId.localeCompare(right.serverId));
|
|
69
|
+
const activeServerId = servers.some((entry) => entry.serverId === state.activeServerId) ? state.activeServerId : "local";
|
|
70
|
+
const next = { version: 1, activeServerId, servers };
|
|
71
|
+
mkdirSync(dirname(path), { recursive: true });
|
|
72
|
+
writeFileSync(path, `${JSON.stringify(next, null, 2)}
|
|
73
|
+
`, { encoding: "utf8", mode: 384 });
|
|
74
|
+
return next;
|
|
75
|
+
}
|
|
76
|
+
function resolveControlPlaneServer(selector, env = process.env) {
|
|
77
|
+
const value = selector?.trim();
|
|
78
|
+
if (value && /^https?:\/\//iu.test(value)) {
|
|
79
|
+
return normalizeServer({ serverId: value.replace(/^https?:\/\//iu, "").replace(/[^a-z0-9._-]+/giu, "-"), label: value, baseUrl: value });
|
|
80
|
+
}
|
|
81
|
+
const registry = loadControlPlaneServerRegistry(env);
|
|
82
|
+
const serverId = value || registry.activeServerId;
|
|
83
|
+
const profile = registry.servers.find((entry) => entry.serverId === serverId);
|
|
84
|
+
if (!profile) throw new Error(`Unknown control-plane server "${serverId}".`);
|
|
85
|
+
return profile;
|
|
86
|
+
}
|
|
87
|
+
function resolveControlPlaneServerSession(root, server, custody = machineKeySessionCustody) {
|
|
88
|
+
const serverId = typeof server === "string" ? server : server.serverId;
|
|
89
|
+
const session = readServerSessions(root, custody)[serverId] ?? null;
|
|
90
|
+
if (session && typeof server !== "string" && session.audience !== normalizeControlPlaneBaseUrl(server.baseUrl)) {
|
|
91
|
+
throw new Error(`Stored session audience does not match control-plane server "${server.serverId}".`);
|
|
92
|
+
}
|
|
93
|
+
return session;
|
|
94
|
+
}
|
|
95
|
+
function setControlPlaneServerSession(root, session, custody = machineKeySessionCustody) {
|
|
96
|
+
const normalized = { ...session, audience: normalizeControlPlaneBaseUrl(session.audience) };
|
|
97
|
+
const sessions = readServerSessions(root, custody);
|
|
98
|
+
sessions[session.serverId] = normalized;
|
|
99
|
+
writeServerSessions(root, sessions, custody);
|
|
100
|
+
return normalized;
|
|
101
|
+
}
|
|
102
|
+
function clearControlPlaneServerSession(root, serverId, custody = machineKeySessionCustody) {
|
|
103
|
+
if (!serverId) {
|
|
104
|
+
writeServerSessions(root, {}, custody);
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
const sessions = readServerSessions(root, custody);
|
|
108
|
+
delete sessions[serverId];
|
|
109
|
+
writeServerSessions(root, sessions, custody);
|
|
110
|
+
}
|
|
111
|
+
function readServerSessions(root, custody) {
|
|
112
|
+
if (!existsSync(getRemoteAuthPaths(root).authPath)) return {};
|
|
113
|
+
const sessions = decryptRemoteAuthSessions(loadRemoteAuthPayload(root), custody.loadKey(root));
|
|
114
|
+
return Object.fromEntries(Object.entries(sessions).map(([serverId, session]) => [serverId, { serverId, ...session }]));
|
|
115
|
+
}
|
|
116
|
+
function writeServerSessions(root, sessions, custody) {
|
|
117
|
+
const values = Object.fromEntries(Object.entries(sessions).map(([serverId, session]) => [serverId, session]));
|
|
118
|
+
writeRemoteAuthPayload(root, { version: 1, sessions: encryptRemoteAuthSessions(values, custody.loadKey(root)) });
|
|
119
|
+
}
|
|
27
120
|
async function responsePayload(response) {
|
|
28
121
|
const contentType = response.headers.get("content-type") ?? "";
|
|
29
122
|
if (contentType.includes("json")) return response.json();
|
|
@@ -47,7 +140,7 @@ function problemFrom(payload, status) {
|
|
|
47
140
|
class ControlPlaneClient {
|
|
48
141
|
constructor(options) {
|
|
49
142
|
this.options = options;
|
|
50
|
-
this.baseUrl =
|
|
143
|
+
this.baseUrl = normalizeControlPlaneBaseUrl(options.profile.baseUrl);
|
|
51
144
|
this.accessToken = options.accessToken ?? null;
|
|
52
145
|
this.fetchImpl = options.fetchImpl ?? fetch;
|
|
53
146
|
this.userAgent = options.userAgent;
|
|
@@ -57,6 +150,34 @@ class ControlPlaneClient {
|
|
|
57
150
|
accessToken;
|
|
58
151
|
fetchImpl;
|
|
59
152
|
userAgent;
|
|
153
|
+
async callOperation(binding, input, options = {}) {
|
|
154
|
+
const rest = binding.descriptor.rest;
|
|
155
|
+
if (!rest) throw new Error(`Operation ${binding.descriptor.operationId} has no REST binding.`);
|
|
156
|
+
if (/[:*]/u.test(rest.path)) throw new Error(`Operation ${binding.descriptor.operationId} requires generated path parameters.`);
|
|
157
|
+
return this.call({ method: rest.method, path: rest.path, input: rest.method === "GET" ? void 0 : input, ...options });
|
|
158
|
+
}
|
|
159
|
+
async authorizeDevice(clientId, scope, signal) {
|
|
160
|
+
const response = await this.fetchImpl(`${this.baseUrl}/oauth/device_authorization`, { method: "POST", headers: { accept: "application/json", "content-type": "application/x-www-form-urlencoded" }, body: new URLSearchParams({ client_id: clientId, scope: scope.join(" ") }), signal });
|
|
161
|
+
const payload = await responsePayload(response);
|
|
162
|
+
if (!response.ok) throw new ControlPlaneClientError(String(payload.error_description ?? payload.error ?? "Device authorization failed."), response.status, problemFrom(payload, response.status), response.headers);
|
|
163
|
+
return { deviceCode: String(payload.device_code), userCode: String(payload.user_code), verificationUri: String(payload.verification_uri), verificationUriComplete: typeof payload.verification_uri_complete === "string" ? payload.verification_uri_complete : void 0, expiresIn: Number(payload.expires_in), interval: Number(payload.interval) };
|
|
164
|
+
}
|
|
165
|
+
async exchangeDeviceCode(clientId, deviceCode, signal) {
|
|
166
|
+
return this.exchangeOAuthToken({ client_id: clientId, grant_type: "urn:ietf:params:oauth:grant-type:device_code", device_code: deviceCode }, signal);
|
|
167
|
+
}
|
|
168
|
+
async refreshAccessToken(clientId, refreshToken, signal) {
|
|
169
|
+
return this.exchangeOAuthToken({ client_id: clientId, grant_type: "refresh_token", refresh_token: refreshToken }, signal);
|
|
170
|
+
}
|
|
171
|
+
async revokeToken(clientId, token, signal) {
|
|
172
|
+
const response = await this.fetchImpl(`${this.baseUrl}/oauth/revoke`, { method: "POST", headers: { "content-type": "application/x-www-form-urlencoded" }, body: new URLSearchParams({ client_id: clientId, token }), signal });
|
|
173
|
+
if (!response.ok) throw new ControlPlaneClientError("Token revocation failed.", response.status, problemFrom(await responsePayload(response), response.status), response.headers);
|
|
174
|
+
}
|
|
175
|
+
async exchangeOAuthToken(values, signal) {
|
|
176
|
+
const response = await this.fetchImpl(`${this.baseUrl}/oauth/token`, { method: "POST", headers: { accept: "application/json", "content-type": "application/x-www-form-urlencoded" }, body: new URLSearchParams(values), signal });
|
|
177
|
+
const payload = await responsePayload(response);
|
|
178
|
+
if (!response.ok) throw new ControlPlaneClientError(String(payload.error_description ?? payload.error ?? "OAuth token exchange failed."), response.status, problemFrom(payload, response.status), response.headers);
|
|
179
|
+
return { tokenType: "Bearer", accessToken: String(payload.access_token), refreshToken: typeof payload.refresh_token === "string" ? payload.refresh_token : void 0, expiresIn: Number(payload.expires_in), scope: String(payload.scope ?? "").split(/\s+/u).filter(Boolean), audience: String(payload.audience ?? this.baseUrl), principal: payload.principal && typeof payload.principal === "object" ? payload.principal : void 0 };
|
|
180
|
+
}
|
|
60
181
|
async call(options) {
|
|
61
182
|
const headers = new Headers(options.headers);
|
|
62
183
|
headers.set("accept", "application/json, application/problem+json");
|
|
@@ -89,8 +210,17 @@ class ControlPlaneClient {
|
|
|
89
210
|
}
|
|
90
211
|
export {
|
|
91
212
|
CONTROL_PLANE_BASE_URL_ENV,
|
|
213
|
+
CONTROL_PLANE_SERVER_REGISTRY_PATH,
|
|
214
|
+
CONTROL_PLANE_SERVER_SESSIONS_PATH,
|
|
92
215
|
ControlPlaneClient,
|
|
93
216
|
ControlPlaneClientError,
|
|
94
217
|
DEFAULT_CONTROL_PLANE_BASE_URL,
|
|
95
|
-
|
|
218
|
+
clearControlPlaneServerSession,
|
|
219
|
+
defaultLocalControlPlaneServer,
|
|
220
|
+
loadControlPlaneServerRegistry,
|
|
221
|
+
normalizeControlPlaneBaseUrl,
|
|
222
|
+
resolveControlPlaneServer,
|
|
223
|
+
resolveControlPlaneServerSession,
|
|
224
|
+
setControlPlaneServerSession,
|
|
225
|
+
writeControlPlaneServerRegistry
|
|
96
226
|
};
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
export * from '../../sdk-types/commerce/capacity/commerce-capacity-listing-input.js';
|
|
2
|
-
export * from '../../sdk-types/commerce/catalog/upsert-catalog-item-request.js';
|
|
3
|
-
export * from '../../sdk-types/commerce/governance/commerce-governance-states.js';
|
|
4
|
-
export * from '../../sdk-types/commerce/payments/commerce-entitlement.js';
|
|
5
|
-
export * from '../../sdk-types/commerce/payments/commerce-subscription-statuses.js';
|
|
6
|
-
export * from '../../sdk-types/commerce/services/commerce-service-contract.js';
|
|
7
|
-
export * from '../../sdk-types/commerce/vendors/commerce-stripe-onboarding-request-input.js';
|
|
8
1
|
export * from '../../sdk-types/configuration/sdk-dispatch-credential-source.js';
|
|
9
2
|
export * from '../../sdk-types/governance/commons/commons-question-input.js';
|
|
10
3
|
export * from '../../sdk-types/support/planning-policy.js';
|
|
@@ -14,3 +7,4 @@ export * from '../../sdk-types/support/sdk-model-names.js';
|
|
|
14
7
|
export * from '../../sdk-types/support/sdk-search-request.js';
|
|
15
8
|
export * from '../../sdk-types/treedx/graph/sdk-graph-query-request.js';
|
|
16
9
|
export * from '../../projects/projects-core/project-workflow.js';
|
|
10
|
+
export * from '../../sdk-types/control-plane/resource-requests.js';
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
export * from "../../sdk-types/commerce/capacity/commerce-capacity-listing-input.js";
|
|
2
|
-
export * from "../../sdk-types/commerce/catalog/upsert-catalog-item-request.js";
|
|
3
|
-
export * from "../../sdk-types/commerce/governance/commerce-governance-states.js";
|
|
4
|
-
export * from "../../sdk-types/commerce/payments/commerce-entitlement.js";
|
|
5
|
-
export * from "../../sdk-types/commerce/payments/commerce-subscription-statuses.js";
|
|
6
|
-
export * from "../../sdk-types/commerce/services/commerce-service-contract.js";
|
|
7
|
-
export * from "../../sdk-types/commerce/vendors/commerce-stripe-onboarding-request-input.js";
|
|
8
1
|
export * from "../../sdk-types/configuration/sdk-dispatch-credential-source.js";
|
|
9
2
|
export * from "../../sdk-types/governance/commons/commons-question-input.js";
|
|
10
3
|
export * from "../../sdk-types/support/planning-policy.js";
|
|
@@ -14,3 +7,4 @@ export * from "../../sdk-types/support/sdk-model-names.js";
|
|
|
14
7
|
export * from "../../sdk-types/support/sdk-search-request.js";
|
|
15
8
|
export * from "../../sdk-types/treedx/graph/sdk-graph-query-request.js";
|
|
16
9
|
export * from "../../projects/projects-core/project-workflow.js";
|
|
10
|
+
export * from "../../sdk-types/control-plane/resource-requests.js";
|
|
@@ -50,7 +50,7 @@ function command(value, index, variant, issues) {
|
|
|
50
50
|
if (args.some((entry) => PLACEHOLDER.test(entry))) issues.push(`${path}.args contains unresolved placeholders.`);
|
|
51
51
|
const action = `${args[0]}.${args[1] ?? ""}`;
|
|
52
52
|
for (const selector of EXACT_SELECTORS[action] ?? []) if (!args.includes(selector)) issues.push(`${path} ${action} requires exact selector ${selector}.`);
|
|
53
|
-
if (["capacity", "governance", "projects"].includes(args[0]) && !args.includes("--
|
|
53
|
+
if (["capacity", "governance", "projects"].includes(args[0]) && !args.includes("--server")) issues.push(`${path} must name the exact --server.`);
|
|
54
54
|
if (!COMMAND_KINDS.has(kind)) issues.push(`${path}.kind is invalid.`);
|
|
55
55
|
if (!Number.isInteger(expectedExitCode) || expectedExitCode < 0) issues.push(`${path}.expectedExitCode must be a nonnegative integer.`);
|
|
56
56
|
if (kind === "read" && args.includes("--execute")) issues.push(`${path} classifies an executing mutation as a read.`);
|
|
@@ -32,7 +32,7 @@ export declare function apiAcceptanceEnvironment(environment: string, runState?:
|
|
|
32
32
|
export declare function apiAcceptanceBaseUrl(environment: string): string;
|
|
33
33
|
export declare function isLoopbackUrl(value: string): boolean;
|
|
34
34
|
export declare function defaultGuaranteeVerifierExecutor(input: GuaranteeVerifierExecutionInput): Promise<GuaranteeVerifierExecutionResult>;
|
|
35
|
-
export declare function sceneAuthRoleForGuarantee(manifest: GuaranteeManifest): "
|
|
35
|
+
export declare function sceneAuthRoleForGuarantee(manifest: GuaranteeManifest): "admin" | "owner" | "member" | undefined;
|
|
36
36
|
export declare function browserForGuaranteeDevice(device: string | undefined): "firefox" | "webkit" | "chromium";
|
|
37
37
|
export declare function sceneDeviceRunsForGuarantee(devices: string[]): {
|
|
38
38
|
id: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { PLATFORM_OPERATION_ENDPOINTS, PLATFORM_OPERATION_NAMESPACES, PLATFORM_OPERATION_SCOPES, PLATFORM_OPERATION_STATUSES, PLATFORM_OPERATION_TARGETS, PlatformOperationApiError, PlatformRunnerClient, assertPlatformOperation, assertPlatformOperationEvent, assertPlatformOperationOkEnvelope, buildPlatformRunnerAuthHeaders, createPlatformOperationExecutorRegistry, derivePlatformOperationNavigation, isPlatformOperationSuccessful, isPlatformOperationTerminal, pollPlatformOperation, runPlatformOperationOnce, type PlatformOperation, type PlatformOperationEvent, type PlatformOperationNavigationResult, type PlatformOperationPollOptions, type PlatformOperationPollResult } from '../operations/platform-operations.js';
|
|
2
1
|
export { cancelGitHubWorkflowRun, formatGitHubWorkflowFailure, getGitHubWorkflowFileStatus, getLatestGitHubWorkflowRun, waitForGitHubWorkflowRunCompletion, type GitHubWorkflowCancellationResult, type GitHubWorkflowFailureSummary, type GitHubWorkflowFailureSummaryInput, type GitHubWorkflowFileStatus, type GitHubWorkflowProgressEvent } from '../operations/services/repositories/github-api.js';
|
|
3
2
|
export { collectHostedServiceChecks, type HostedServiceCheck, type HostedServiceCheckReport, type HostedServiceCheckStatus, type HostedServiceType, type ObservedRailwayServiceState } from '../operations/services/hosting/audit/hosted-service-checks.js';
|
|
4
3
|
export { inspectRepositoryGitLocks, inspectWorkspaceGitLocks, recoverGitLocks, runGitBatch, runRepositoryGit, type GitBatchOperation, type GitLockDiagnostic, type GitRunnerMode, type GitRunnerResult, type GitWorkspaceLockDiagnostics } from '../operations/services/operations/git-runner.js';
|
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PLATFORM_OPERATION_ENDPOINTS,
|
|
3
|
-
PLATFORM_OPERATION_NAMESPACES,
|
|
4
|
-
PLATFORM_OPERATION_SCOPES,
|
|
5
|
-
PLATFORM_OPERATION_STATUSES,
|
|
6
|
-
PLATFORM_OPERATION_TARGETS,
|
|
7
|
-
PlatformOperationApiError,
|
|
8
|
-
PlatformRunnerClient,
|
|
9
|
-
assertPlatformOperation,
|
|
10
|
-
assertPlatformOperationEvent,
|
|
11
|
-
assertPlatformOperationOkEnvelope,
|
|
12
|
-
buildPlatformRunnerAuthHeaders,
|
|
13
|
-
createPlatformOperationExecutorRegistry,
|
|
14
|
-
derivePlatformOperationNavigation,
|
|
15
|
-
isPlatformOperationSuccessful,
|
|
16
|
-
isPlatformOperationTerminal,
|
|
17
|
-
pollPlatformOperation,
|
|
18
|
-
runPlatformOperationOnce
|
|
19
|
-
} from "../operations/platform-operations.js";
|
|
20
1
|
import {
|
|
21
2
|
cancelGitHubWorkflowRun,
|
|
22
3
|
formatGitHubWorkflowFailure,
|
|
@@ -106,14 +87,7 @@ import {
|
|
|
106
87
|
export {
|
|
107
88
|
AGENT_MESSAGE_KINDS,
|
|
108
89
|
OperationsSdk,
|
|
109
|
-
PLATFORM_OPERATION_ENDPOINTS,
|
|
110
|
-
PLATFORM_OPERATION_NAMESPACES,
|
|
111
|
-
PLATFORM_OPERATION_SCOPES,
|
|
112
|
-
PLATFORM_OPERATION_STATUSES,
|
|
113
|
-
PLATFORM_OPERATION_TARGETS,
|
|
114
90
|
PROJECT_JOB_STATUSES,
|
|
115
|
-
PlatformOperationApiError,
|
|
116
|
-
PlatformRunnerClient,
|
|
117
91
|
RELEASE_STATES,
|
|
118
92
|
SHARE_PACKAGE_STATES,
|
|
119
93
|
TRESEED_OPERATION_SPECS,
|
|
@@ -121,18 +95,12 @@ export {
|
|
|
121
95
|
WorkflowSdk,
|
|
122
96
|
applyPlatformWorkset,
|
|
123
97
|
assertIsolatedRepositoryStorage,
|
|
124
|
-
assertPlatformOperation,
|
|
125
|
-
assertPlatformOperationEvent,
|
|
126
|
-
assertPlatformOperationOkEnvelope,
|
|
127
|
-
buildPlatformRunnerAuthHeaders,
|
|
128
98
|
cancelGitHubWorkflowRun,
|
|
129
99
|
collectHostedServiceChecks,
|
|
130
100
|
collectReconcileStatus,
|
|
131
101
|
createIntegratedDevPlan,
|
|
132
|
-
createPlatformOperationExecutorRegistry,
|
|
133
102
|
createReconcileRegistry,
|
|
134
103
|
deriveDesiredUnits,
|
|
135
|
-
derivePlatformOperationNavigation,
|
|
136
104
|
destroyTargetUnits,
|
|
137
105
|
discoverPackageAdapters,
|
|
138
106
|
executeSdkOperation,
|
|
@@ -148,8 +116,6 @@ export {
|
|
|
148
116
|
inspectRepositoryGitLocks,
|
|
149
117
|
inspectWorkspaceGitLocks,
|
|
150
118
|
integrationChangeSetReceiptId,
|
|
151
|
-
isPlatformOperationSuccessful,
|
|
152
|
-
isPlatformOperationTerminal,
|
|
153
119
|
listDevInstances,
|
|
154
120
|
listOperationNames,
|
|
155
121
|
listSdkDispatchCapabilities,
|
|
@@ -160,7 +126,6 @@ export {
|
|
|
160
126
|
planPackageDevelopmentImage,
|
|
161
127
|
planPlatformWorkset,
|
|
162
128
|
planReconciliation,
|
|
163
|
-
pollPlatformOperation,
|
|
164
129
|
readDevInstance,
|
|
165
130
|
readMixProjectVersion,
|
|
166
131
|
reconcileTarget,
|
|
@@ -173,7 +138,6 @@ export {
|
|
|
173
138
|
runGitBatch,
|
|
174
139
|
runManagedDev,
|
|
175
140
|
runPackageImageWorkflow,
|
|
176
|
-
runPlatformOperationOnce,
|
|
177
141
|
runRepositoryGit,
|
|
178
142
|
runVerifyDriver,
|
|
179
143
|
stopDevInstance,
|
|
@@ -2,7 +2,6 @@ export { compileDesiredResourceGraph, compileDesiredUnitsFromGraph, convertDesir
|
|
|
2
2
|
export { loadPlatformConfig, type PlatformConfigInput } from '../platform/configuration/config.js';
|
|
3
3
|
export { githubRepositoryCredentialEnvName, resolveGitHubCredentialForRepository, type GitHubCredentialResolution } from '../operations/services/configuration/github-credentials.js';
|
|
4
4
|
export { deployRailwayServiceInstance, ensureRailwayEnvironment, ensureRailwayGeneratedServiceDomain, ensureRailwayProject, ensureRailwayService, ensureRailwayServiceInstanceConfiguration, ensureRailwayServiceVolume, getRailwayAuthProfile, listRailwayEnvironments, listRailwayProjects, listRailwayServiceDomains, listRailwayServices, listRailwayVariables, normalizeRailwayEnvironmentName, resolveRailwayApiToken, resolveRailwayApiUrl, resolveRailwayWorkspace, resolveRailwayWorkspaceContext, upsertRailwayVariables } from '../operations/services/hosting/railway/railway-api.js';
|
|
5
|
-
export { buildTemplateMarketPackage } from '../operations/services/support/market-packaging.js';
|
|
6
5
|
export { collectDependencyStatus, collectToolStatus, createManagedToolEnv, formatDependencyReport, installDependencies, resolveToolBinary, resolveToolCommand, type ToolStatusResult } from '../entrypoints/runtime/managed-dependencies.js';
|
|
7
6
|
export * from '../configuration/service-credentials.js';
|
|
8
|
-
export {
|
|
7
|
+
export { CONTROL_PLANE_BASE_URL_ENV, CONTROL_PLANE_SERVER_REGISTRY_PATH, ControlPlaneClient, ControlPlaneClientError, clearControlPlaneServerSession, defaultLocalControlPlaneServer, loadControlPlaneServerRegistry, resolveControlPlaneServer, resolveControlPlaneServerSession, setControlPlaneServerSession, writeControlPlaneServerRegistry, } from '../entrypoints/clients/control-plane-client.js';
|
|
@@ -32,9 +32,6 @@ import {
|
|
|
32
32
|
resolveRailwayWorkspaceContext,
|
|
33
33
|
upsertRailwayVariables
|
|
34
34
|
} from "../operations/services/hosting/railway/railway-api.js";
|
|
35
|
-
import {
|
|
36
|
-
buildTemplateMarketPackage
|
|
37
|
-
} from "../operations/services/support/market-packaging.js";
|
|
38
35
|
import {
|
|
39
36
|
collectDependencyStatus,
|
|
40
37
|
collectToolStatus,
|
|
@@ -46,43 +43,31 @@ import {
|
|
|
46
43
|
} from "../entrypoints/runtime/managed-dependencies.js";
|
|
47
44
|
export * from "../configuration/service-credentials.js";
|
|
48
45
|
import {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
resolveDefaultCentralMarketBaseUrl,
|
|
62
|
-
resolveIntegratedCatalogArtifactDownload,
|
|
63
|
-
resolveMarketProfile,
|
|
64
|
-
resolveMarketSession,
|
|
65
|
-
setActiveMarketProfile,
|
|
66
|
-
setMarketSession,
|
|
67
|
-
verifyArtifactBytes,
|
|
68
|
-
writeMarketRegistryState
|
|
69
|
-
} from "../entrypoints/clients/market-client.js";
|
|
46
|
+
CONTROL_PLANE_BASE_URL_ENV,
|
|
47
|
+
CONTROL_PLANE_SERVER_REGISTRY_PATH,
|
|
48
|
+
ControlPlaneClient,
|
|
49
|
+
ControlPlaneClientError,
|
|
50
|
+
clearControlPlaneServerSession,
|
|
51
|
+
defaultLocalControlPlaneServer,
|
|
52
|
+
loadControlPlaneServerRegistry,
|
|
53
|
+
resolveControlPlaneServer,
|
|
54
|
+
resolveControlPlaneServerSession,
|
|
55
|
+
setControlPlaneServerSession,
|
|
56
|
+
writeControlPlaneServerRegistry
|
|
57
|
+
} from "../entrypoints/clients/control-plane-client.js";
|
|
70
58
|
export {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
MarketClientError,
|
|
77
|
-
addMarketProfile,
|
|
78
|
-
buildTemplateMarketPackage,
|
|
79
|
-
clearMarketSession,
|
|
59
|
+
CONTROL_PLANE_BASE_URL_ENV,
|
|
60
|
+
CONTROL_PLANE_SERVER_REGISTRY_PATH,
|
|
61
|
+
ControlPlaneClient,
|
|
62
|
+
ControlPlaneClientError,
|
|
63
|
+
clearControlPlaneServerSession,
|
|
80
64
|
collectDependencyStatus,
|
|
81
65
|
collectToolStatus,
|
|
82
66
|
compileDesiredResourceGraph,
|
|
83
67
|
compileDesiredUnitsFromGraph,
|
|
84
68
|
convertDesiredResourceToReconcileUnit,
|
|
85
69
|
createManagedToolEnv,
|
|
70
|
+
defaultLocalControlPlaneServer,
|
|
86
71
|
deployRailwayServiceInstance,
|
|
87
72
|
ensureRailwayEnvironment,
|
|
88
73
|
ensureRailwayGeneratedServiceDomain,
|
|
@@ -94,22 +79,17 @@ export {
|
|
|
94
79
|
getRailwayAuthProfile,
|
|
95
80
|
githubRepositoryCredentialEnvName,
|
|
96
81
|
installDependencies,
|
|
97
|
-
listIntegratedMarketCatalog,
|
|
98
82
|
listRailwayEnvironments,
|
|
99
83
|
listRailwayProjects,
|
|
100
84
|
listRailwayServiceDomains,
|
|
101
85
|
listRailwayServices,
|
|
102
86
|
listRailwayVariables,
|
|
103
|
-
|
|
87
|
+
loadControlPlaneServerRegistry,
|
|
104
88
|
loadPlatformConfig,
|
|
105
89
|
normalizeRailwayEnvironmentName,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
resolveDefaultCentralMarketBaseUrl,
|
|
90
|
+
resolveControlPlaneServer,
|
|
91
|
+
resolveControlPlaneServerSession,
|
|
109
92
|
resolveGitHubCredentialForRepository,
|
|
110
|
-
resolveIntegratedCatalogArtifactDownload,
|
|
111
|
-
resolveMarketProfile,
|
|
112
|
-
resolveMarketSession,
|
|
113
93
|
resolveRailwayApiToken,
|
|
114
94
|
resolveRailwayApiUrl,
|
|
115
95
|
resolveRailwayWorkspace,
|
|
@@ -117,9 +97,7 @@ export {
|
|
|
117
97
|
resolveToolBinary,
|
|
118
98
|
resolveToolCommand,
|
|
119
99
|
selectDesiredResources,
|
|
120
|
-
|
|
121
|
-
setMarketSession,
|
|
100
|
+
setControlPlaneServerSession,
|
|
122
101
|
upsertRailwayVariables,
|
|
123
|
-
|
|
124
|
-
writeMarketRegistryState
|
|
102
|
+
writeControlPlaneServerRegistry
|
|
125
103
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
export { DEFAULT_STARTER_TEMPLATE_ID, TEMPLATE_ID_ALIASES, normalizeTemplateId } from '../entrypoints/models/sdk-types.js';
|
|
2
2
|
export * from '../feedback/index.js';
|
|
3
|
-
export * from '../gateway/admin-passthrough.js';
|
|
4
|
-
export * from '../gateway/admin-route-inventory.js';
|
|
5
|
-
export * from '../gateway/health.js';
|
|
6
3
|
export type { AgentMessageKind, AgentMessageRecord, AgentStatusRecord, ApprovalRequest, CanonicalTaskState, CatalogArtifactVersion, CatalogItem, CatalogItemFilters, CatalogItemOfferMode, CreateApprovalRequestRequest, DecideApprovalRequestRequest, NativeCapacityAvailability, NativeCapacityInput, NativeCapacitySummary, DirectBoardItemSummary, HybridExecutionPhase, HybridExecutionPlan, InboxItem, LinkedProjectRecordRef, ListApprovalRequestsRequest, NativeReservationDebitAggregate, PlannedTaskNode, PlanningAdmissionResult, PlanningPolicy, PredictiveReservePolicy, ProjectCapabilityGrant, ProjectCapacityDiagnostics, ProjectEnvironmentName, ProjectJobStatus, ProjectOverviewSummary, ReleaseDetail, ReleaseState, ReleaseSummary, RemoteJob, RemoteJobEvent, RemoteJobStatus, RepositoryWorkState, ReservePrediction, SdkContentEntry, SdkContextPack, SdkContextPackRequest, SdkCursorEntity, SdkDispatchCapability, SdkDispatchConfig, SdkDispatchCredentialSource, SdkDispatchExecutionClass, SdkDispatchNamespace, SdkDispatchPolicy, SdkDispatchRequest, SdkDispatchResult, SdkDispatchTarget, SdkFilterCondition, SdkFollowRequest, SdkGetRequest, SdkGraphDslParseResult, SdkGraphDslRelation, SdkGraphEdge, SdkGraphEdgeType, SdkGraphModelConfig, SdkGraphNode, SdkGraphNodeType, SdkGraphPathExplanation, SdkGraphQueryOptions, SdkGraphQueryRequest, SdkGraphQueryResult, SdkGraphQueryStage, SdkGraphQueryView, SdkGraphRankingBuildInput, SdkGraphRankingDiagnostics, SdkGraphRankingIndex, SdkGraphRankingNodeResult, SdkGraphRankingProvider, SdkGraphRankingQueryRequest, SdkGraphRankingQueryResult, SdkGraphRankingSearchRequest, SdkGraphRefreshPayload, SdkGraphRefreshRequest, SdkGraphSearchOptions, SdkGraphSearchResult, SdkGraphSeed, SdkGraphSeedResolution, SdkGraphTraversalResult, SdkGraphWhereFilter, SdkJsonEnvelope, SdkLeaseEntity, SdkMessageEntity, SdkModelDefinition, SdkModelFieldBinding, SdkModelName, SdkModelRegistry, SdkMutationRequest, SdkOperation, SdkPickRequest, SdkPickResult, SdkRunEntity, SdkSearchRequest, SdkSubscriptionEntity, SdkTemplateCatalogEntry, SdkTemplateCatalogPublisher, SdkTemplateCatalogResponse, SdkTemplateCatalogSource, SdkUpdateRequest, SharePackageState, SharePackageStatus, TaskAdmissionDecision, TaskAdmissionOutcome, TaskAdmissionPolicy, TaskCheckpointArtifact, TaskClassification, TaskConcurrencyClass, TaskMutationScope, TaskPlanProposal, TaskRiskClass, TeamHomeSummary, TeamMemberSummary, TeamStorageLocator, UpsertCatalogArtifactVersionRequest, UpsertCatalogItemRequest, UpsertTeamInboxItemRequest, UpsertTeamStorageLocatorRequest, UtilityEstimate, UtilityPolicy, WorkstreamDetail, WorkstreamEvent, WorkstreamState, WorkstreamSummary } from '../entrypoints/models/sdk-types.js';
|
|
7
4
|
export * from '../knowledge/index.js';
|
|
@@ -4,9 +4,6 @@ import {
|
|
|
4
4
|
normalizeTemplateId
|
|
5
5
|
} from "../entrypoints/models/sdk-types.js";
|
|
6
6
|
export * from "../feedback/index.js";
|
|
7
|
-
export * from "../gateway/admin-passthrough.js";
|
|
8
|
-
export * from "../gateway/admin-route-inventory.js";
|
|
9
|
-
export * from "../gateway/health.js";
|
|
10
7
|
export * from "../knowledge/index.js";
|
|
11
8
|
export {
|
|
12
9
|
DEFAULT_STARTER_TEMPLATE_ID,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { RemoteTemplateCatalogClient, parseTemplateCatalogResponse } from '../
|
|
1
|
+
export { RemoteTemplateCatalogClient, parseTemplateCatalogResponse } from '../templates/template-catalog.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RemoteTemplateCatalogClient, parseTemplateCatalogResponse } from "../
|
|
1
|
+
import { RemoteTemplateCatalogClient, parseTemplateCatalogResponse } from "../templates/template-catalog.js";
|
|
2
2
|
export {
|
|
3
3
|
RemoteTemplateCatalogClient,
|
|
4
4
|
parseTemplateCatalogResponse
|
|
@@ -65,7 +65,6 @@ function localApiEnvironment(apiPort, webPort) {
|
|
|
65
65
|
function localWebEnvironment(apiPort, webPort) {
|
|
66
66
|
const apiBaseUrl = `http://127.0.0.1:${apiPort}`;
|
|
67
67
|
return {
|
|
68
|
-
TREESEED_MARKET_API_BASE_URL: apiBaseUrl,
|
|
69
68
|
TREESEED_API_BASE_URL: apiBaseUrl,
|
|
70
69
|
TREESEED_SITE_URL: `http://127.0.0.1:${webPort}`,
|
|
71
70
|
TREESEED_CAPACITY_ACCEPTANCE_API_URL: apiBaseUrl,
|
|
@@ -37,16 +37,16 @@ export declare class TemplateOperation extends BaseOperation {
|
|
|
37
37
|
displayName: string;
|
|
38
38
|
description: string;
|
|
39
39
|
summary: string;
|
|
40
|
-
status: import("../../../
|
|
40
|
+
status: import("../../../sdk-types/control-plane/resource-requests.js").SdkTemplateCatalogStatus;
|
|
41
41
|
featured: boolean;
|
|
42
|
-
category: import("../../../
|
|
42
|
+
category: import("../../../sdk-types/control-plane/resource-requests.js").SdkTemplateCategory;
|
|
43
43
|
tags: string[];
|
|
44
44
|
publisher: import("../../../index.js").SdkTemplateCatalogPublisher;
|
|
45
45
|
templateVersion: string;
|
|
46
46
|
templateApiVersion: number;
|
|
47
47
|
minCliVersion: string;
|
|
48
48
|
minCoreVersion: string | undefined;
|
|
49
|
-
fulfillmentMode: "
|
|
49
|
+
fulfillmentMode: "packaged" | "git" | "r2";
|
|
50
50
|
source: import("../../../index.js").SdkTemplateCatalogSource;
|
|
51
51
|
};
|
|
52
52
|
}> | import("../../operations-types.js").OperationResult<{
|
|
@@ -59,16 +59,16 @@ export declare class TemplateOperation extends BaseOperation {
|
|
|
59
59
|
displayName: string;
|
|
60
60
|
description: string;
|
|
61
61
|
summary: string;
|
|
62
|
-
status: import("../../../
|
|
62
|
+
status: import("../../../sdk-types/control-plane/resource-requests.js").SdkTemplateCatalogStatus;
|
|
63
63
|
featured: boolean;
|
|
64
|
-
category: import("../../../
|
|
64
|
+
category: import("../../../sdk-types/control-plane/resource-requests.js").SdkTemplateCategory;
|
|
65
65
|
tags: string[];
|
|
66
66
|
publisher: import("../../../index.js").SdkTemplateCatalogPublisher;
|
|
67
67
|
templateVersion: string;
|
|
68
68
|
templateApiVersion: number;
|
|
69
69
|
minCliVersion: string;
|
|
70
70
|
minCoreVersion: string | undefined;
|
|
71
|
-
fulfillmentMode: "
|
|
71
|
+
fulfillmentMode: "packaged" | "git" | "r2";
|
|
72
72
|
source: import("../../../index.js").SdkTemplateCatalogSource;
|
|
73
73
|
}[];
|
|
74
74
|
}>>;
|
package/dist/operations/services/config-runtime/configuration/create-default-machine-config.d.ts
CHANGED
|
@@ -71,6 +71,7 @@ export declare function decryptRemoteAuthSessions(payload: any, key: any): {
|
|
|
71
71
|
accessToken: string;
|
|
72
72
|
refreshToken: string;
|
|
73
73
|
expiresAt: any;
|
|
74
|
+
audience: any;
|
|
74
75
|
principal: any;
|
|
75
76
|
};
|
|
76
77
|
};
|
|
@@ -89,6 +90,7 @@ export declare function encryptRemoteAuthSessions(sessions: any, key: any): {
|
|
|
89
90
|
ciphertext: string;
|
|
90
91
|
} | null;
|
|
91
92
|
expiresAt: any;
|
|
93
|
+
audience: any;
|
|
92
94
|
principal: any;
|
|
93
95
|
};
|
|
94
96
|
};
|
package/dist/operations/services/config-runtime/configuration/create-default-machine-config.js
CHANGED
|
@@ -146,6 +146,7 @@ function decryptRemoteAuthSessions(payload, key) {
|
|
|
146
146
|
accessToken: decryptValue(entry.accessToken, key),
|
|
147
147
|
refreshToken: decryptValue(entry.refreshToken, key),
|
|
148
148
|
expiresAt: typeof entry.expiresAt === "string" ? entry.expiresAt : "",
|
|
149
|
+
audience: typeof entry.audience === "string" ? entry.audience : "",
|
|
149
150
|
principal: entry.principal ?? null
|
|
150
151
|
}
|
|
151
152
|
])
|
|
@@ -159,6 +160,7 @@ function encryptRemoteAuthSessions(sessions, key) {
|
|
|
159
160
|
accessToken: entry.accessToken ? encryptValue(entry.accessToken, key) : null,
|
|
160
161
|
refreshToken: entry.refreshToken ? encryptValue(entry.refreshToken, key) : null,
|
|
161
162
|
expiresAt: entry.expiresAt ?? "",
|
|
163
|
+
audience: entry.audience ?? "",
|
|
162
164
|
principal: entry.principal ?? null
|
|
163
165
|
}
|
|
164
166
|
])
|
package/dist/operations/services/config-runtime/configuration/list-relevant-config-entries.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
isEnvironmentEntryRequired,
|
|
5
5
|
validateEnvironmentValues
|
|
6
6
|
} from "../../../../platform/configuration/environment.js";
|
|
7
|
-
import { ensureGitignoreEntries, ensureRailwayIgnoreEntries, migrateLegacyScopedSharedEntries } from "../
|
|
7
|
+
import { ensureGitignoreEntries, ensureRailwayIgnoreEntries, migrateLegacyScopedSharedEntries } from "../templates/catalog/template-catalog-settings.js";
|
|
8
8
|
import { getMachineConfigPaths } from "../hosting/load-tenant-deploy-config.js";
|
|
9
9
|
import { collectConfigSeedValues, collectEnvironmentContext, setMachineEnvironmentValue } from "../support/resolve-entry-value-from-buckets.js";
|
|
10
10
|
import { loadMachineConfig } from "../support/rotate-machine-key-passphrase.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
KeyAgentError
|
|
9
9
|
} from "../../configuration/key-agent.js";
|
|
10
|
-
import { decryptMachineEnvironmentBucket } from "../
|
|
10
|
+
import { decryptMachineEnvironmentBucket } from "../templates/catalog/template-catalog-settings.js";
|
|
11
11
|
import { encryptValue, loadMachineKey } from "../configuration/create-default-machine-config.js";
|
|
12
12
|
import { PROVIDER_CONTROL_ENV_KEYS, filterEnvironmentValuesByRegistry, warnDeprecatedLocalEnvFiles } from "../configuration/machine-config-relative-path.js";
|
|
13
13
|
import { loadOptionalTenantManifest, loadTenantDeployConfig } from "../hosting/load-tenant-deploy-config.js";
|
|
@@ -15,6 +15,7 @@ export declare function loadRemoteAuthState(tenantRoot: any): {
|
|
|
15
15
|
accessToken: string;
|
|
16
16
|
refreshToken: string;
|
|
17
17
|
expiresAt: any;
|
|
18
|
+
audience: any;
|
|
18
19
|
principal: any;
|
|
19
20
|
};
|
|
20
21
|
};
|
|
@@ -30,6 +31,7 @@ export declare function setRemoteSession(tenantRoot: any, { hostId, accessToken,
|
|
|
30
31
|
accessToken: string;
|
|
31
32
|
refreshToken: string;
|
|
32
33
|
expiresAt: any;
|
|
34
|
+
audience: any;
|
|
33
35
|
principal: any;
|
|
34
36
|
};
|
|
35
37
|
export declare function clearRemoteSession(tenantRoot: any, hostId: any): {
|
|
@@ -39,6 +41,7 @@ export declare function clearRemoteSession(tenantRoot: any, hostId: any): {
|
|
|
39
41
|
accessToken: string;
|
|
40
42
|
refreshToken: string;
|
|
41
43
|
expiresAt: any;
|
|
44
|
+
audience: any;
|
|
42
45
|
principal: any;
|
|
43
46
|
};
|
|
44
47
|
};
|
|
@@ -47,6 +50,7 @@ export declare function resolveRemoteSession(tenantRoot: any, hostId: any): {
|
|
|
47
50
|
accessToken: string;
|
|
48
51
|
refreshToken: string;
|
|
49
52
|
expiresAt: any;
|
|
53
|
+
audience: any;
|
|
50
54
|
principal: any;
|
|
51
55
|
} | null;
|
|
52
56
|
export declare function loadMachineConfig(tenantRoot: any): any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SharedStorageMigrationNotice } from '../../accounts/ensure-secret-session-for-config.js';
|
|
2
|
+
/** Resolve the independently hosted template registry endpoint. */
|
|
2
3
|
export declare function resolveTemplateCatalogEndpoint(startRoot?: string, env?: NodeJS.ProcessEnv): string;
|
|
3
4
|
export declare function resolveTemplateCatalogCachePath(startRoot?: string): string;
|
|
4
5
|
export declare function ensureGitignoreEntries(tenantRoot: any): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from '../config-runtime/accounts/ensure-secret-session-for-config.js';
|
|
2
2
|
export * from '../config-runtime/agents/ensure-act-verification-tooling.js';
|
|
3
|
-
export * from '../config-runtime/
|
|
3
|
+
export * from '../config-runtime/templates/catalog/template-catalog-settings.js';
|
|
4
4
|
export * from '../config-runtime/configuration/create-default-machine-config.js';
|
|
5
5
|
export * from '../config-runtime/configuration/create-git-hub-config-sync-units.js';
|
|
6
6
|
export * from '../config-runtime/configuration/configuration-generation.js';
|