@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,33 +0,0 @@
|
|
|
1
|
-
import { sanitizeAgentLabSnapshot } from "./report-model.js";
|
|
2
|
-
import { simulationViewerRuntime } from "./viewer/runtime.js";
|
|
3
|
-
import { simulationViewerStyles } from "./viewer/styles.js";
|
|
4
|
-
const skins = {
|
|
5
|
-
"race-control": { label: "Race Control", description: "Live Lab / Race Control", accent: "#d8ff45", accent2: "#45d7ff" },
|
|
6
|
-
"strategy-command": { label: "Strategy Command", description: "AI Lab / Strategic Field", accent: "#70f5b0", accent2: "#ffc857" },
|
|
7
|
-
"esports-tournament": { label: "Esports Tournament", description: "TreeSeed Lab / Match Live", accent: "#45d7ff", accent2: "#ff79c6" }
|
|
8
|
-
};
|
|
9
|
-
function escape(value) {
|
|
10
|
-
return String(value ?? "").replace(/&/gu, "&").replace(/</gu, "<").replace(/>/gu, ">").replace(/"/gu, """);
|
|
11
|
-
}
|
|
12
|
-
function render(snapshotInput, presentation) {
|
|
13
|
-
const snapshot = sanitizeAgentLabSnapshot(snapshotInput);
|
|
14
|
-
const skin = skins[presentation];
|
|
15
|
-
const fallbackName = snapshot.sceneId.replace(/^guide-/, "").replace(/-agent-lab$/, "").replace(/-/g, " ").replace(/\b\w/g, (letter) => letter.toUpperCase());
|
|
16
|
-
const labName = snapshot.agents.length === 1 ? snapshot.agents[0].title : fallbackName;
|
|
17
|
-
const json = JSON.stringify(snapshot).replace(/</gu, "\\u003c");
|
|
18
|
-
const runtime = simulationViewerRuntime().replace(/<\/script/giu, "<\\/script");
|
|
19
|
-
return `<!doctype html><html lang="en" data-revision="0"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="color-scheme" content="dark"><meta name="description" content="Standalone production agent simulation evidence viewer"><title>Agent Lab: ${escape(labName)}</title>${simulationViewerStyles(skin.accent, skin.accent2)}</head><body><div id="simulation-root"><div class="shell"><div class="empty">Initializing Agent Lab\u2026</div></div></div><script type="application/json" id="agent-lab-data">${json}</script><script>${runtime}</script></body></html>`;
|
|
20
|
-
}
|
|
21
|
-
const BUILT_IN_AGENT_LAB_PRESENTATIONS = Object.keys(skins).map((id) => ({
|
|
22
|
-
id,
|
|
23
|
-
label: skins[id].label,
|
|
24
|
-
description: skins[id].description,
|
|
25
|
-
render: (snapshot) => render(snapshot, id)
|
|
26
|
-
}));
|
|
27
|
-
function resolveAgentLabPresentation(id, adapters = []) {
|
|
28
|
-
return [...BUILT_IN_AGENT_LAB_PRESENTATIONS, ...adapters].find((adapter) => adapter.id === id) ?? null;
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
BUILT_IN_AGENT_LAB_PRESENTATIONS,
|
|
32
|
-
resolveAgentLabPresentation
|
|
33
|
-
};
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import type { AgentLabSnapshot } from '../types.js';
|
|
2
|
-
export declare function sanitizeAgentLabValue(value: unknown, key?: string): unknown;
|
|
3
|
-
export declare function sanitizeAgentLabSnapshot(snapshot: AgentLabSnapshot): {
|
|
4
|
-
workdays: {
|
|
5
|
-
activity: import("../../index.js").AgentActivityEvent[];
|
|
6
|
-
assignments: Record<string, unknown>[];
|
|
7
|
-
providerExecutions: Record<string, unknown>[];
|
|
8
|
-
governance: Record<string, unknown>[];
|
|
9
|
-
accounting: Record<string, unknown>;
|
|
10
|
-
executions: {
|
|
11
|
-
transcript: {
|
|
12
|
-
text: string | null;
|
|
13
|
-
payload: Record<string, unknown>;
|
|
14
|
-
id: string;
|
|
15
|
-
timestamp: string | null;
|
|
16
|
-
type: string;
|
|
17
|
-
status: string | null;
|
|
18
|
-
}[];
|
|
19
|
-
evidence: {
|
|
20
|
-
detail: unknown;
|
|
21
|
-
id: string;
|
|
22
|
-
timestamp: string | null;
|
|
23
|
-
kind: "context-pack" | "work-package" | "provider-invocation" | "agent-message" | "reasoning" | "tool-call" | "treedx-call" | "provider-output" | "diagnostic";
|
|
24
|
-
label: string;
|
|
25
|
-
status: string | null;
|
|
26
|
-
summary: string | null;
|
|
27
|
-
}[];
|
|
28
|
-
signals: Record<string, unknown>[];
|
|
29
|
-
artifacts: Record<string, unknown>[];
|
|
30
|
-
usage: Record<string, unknown>;
|
|
31
|
-
error: Record<string, unknown> | null;
|
|
32
|
-
assignment: Record<string, unknown>;
|
|
33
|
-
capacity: import("../types.js").AgentLabCapacitySummary;
|
|
34
|
-
id: string;
|
|
35
|
-
assignmentId: string | null;
|
|
36
|
-
modeRunId: string | null;
|
|
37
|
-
agentId: string | null;
|
|
38
|
-
agentClassId: string | null;
|
|
39
|
-
activityType: string | null;
|
|
40
|
-
handlerId: string | null;
|
|
41
|
-
projectId: string | null;
|
|
42
|
-
status: string;
|
|
43
|
-
startedAt: string | null;
|
|
44
|
-
finishedAt: string | null;
|
|
45
|
-
providerId: string | null;
|
|
46
|
-
providerManagerId: string | null;
|
|
47
|
-
runnerId: string | null;
|
|
48
|
-
executionProviderId: string | null;
|
|
49
|
-
}[];
|
|
50
|
-
id: string;
|
|
51
|
-
title: string;
|
|
52
|
-
workdayRunId: string | null;
|
|
53
|
-
status: "pending" | "running" | "completed" | "failed" | "degraded" | "cancelled";
|
|
54
|
-
startedAt: string | null;
|
|
55
|
-
finishedAt: string | null;
|
|
56
|
-
agentTests: string[];
|
|
57
|
-
assertions: import("../types.js").AgentLabAssertion[];
|
|
58
|
-
diagnostics: string[];
|
|
59
|
-
}[];
|
|
60
|
-
schemaVersion: "treeseed.agent-simulation/v2";
|
|
61
|
-
sceneId: string;
|
|
62
|
-
runId: string;
|
|
63
|
-
status: "starting" | "running" | "completed" | "failed" | "cleaning";
|
|
64
|
-
presentation: import("../types.js").AgentLabPresentation;
|
|
65
|
-
timeZone: string;
|
|
66
|
-
generatedAt: string;
|
|
67
|
-
team: {
|
|
68
|
-
id: string | null;
|
|
69
|
-
name: string | null;
|
|
70
|
-
isolation: "ephemeral" | "team";
|
|
71
|
-
};
|
|
72
|
-
provider: {
|
|
73
|
-
id: string | null;
|
|
74
|
-
membershipId: string | null;
|
|
75
|
-
executionProviderId: "codex";
|
|
76
|
-
status: string;
|
|
77
|
-
};
|
|
78
|
-
repositories: Array<{
|
|
79
|
-
slug: string;
|
|
80
|
-
projectId: string | null;
|
|
81
|
-
repositoryId: string | null;
|
|
82
|
-
ref: string | null;
|
|
83
|
-
}>;
|
|
84
|
-
agents: import("../types.js").AgentLabAgent[];
|
|
85
|
-
cleanup: {
|
|
86
|
-
status: "pending" | "running" | "completed" | "failed";
|
|
87
|
-
diagnostics: string[];
|
|
88
|
-
};
|
|
89
|
-
diagnostics: string[];
|
|
90
|
-
};
|
|
91
|
-
export declare function agentClassPalette(classIds: string[]): {
|
|
92
|
-
[k: string]: string;
|
|
93
|
-
};
|
|
94
|
-
export declare function agentLabTotals(snapshot: AgentLabSnapshot): {
|
|
95
|
-
workdays: number;
|
|
96
|
-
workdaysCompleted: number;
|
|
97
|
-
executions: number;
|
|
98
|
-
completed: number;
|
|
99
|
-
failed: number;
|
|
100
|
-
running: number;
|
|
101
|
-
agents: number;
|
|
102
|
-
agentsActive: number;
|
|
103
|
-
classes: number;
|
|
104
|
-
activities: number;
|
|
105
|
-
assignments: number;
|
|
106
|
-
artifacts: number;
|
|
107
|
-
assertionsPassed: number;
|
|
108
|
-
assertionsFailed: number;
|
|
109
|
-
};
|
|
110
|
-
export declare function hasFailedAgentLabContentTool(day: AgentLabSnapshot['workdays'][number]): boolean;
|
|
111
|
-
export declare function initialAgentLabSnapshot(input: {
|
|
112
|
-
sceneId: string;
|
|
113
|
-
runId: string;
|
|
114
|
-
presentation: AgentLabSnapshot['presentation'];
|
|
115
|
-
timeZone: string;
|
|
116
|
-
repositories: string[];
|
|
117
|
-
workdays: Array<{
|
|
118
|
-
id: string;
|
|
119
|
-
title?: string;
|
|
120
|
-
agentTests: string[];
|
|
121
|
-
}>;
|
|
122
|
-
}): AgentLabSnapshot;
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import { createHash } from "node:crypto";
|
|
2
|
-
const SENSITIVE = /(?:api.?key|authorization|credential|membershipcredential|password|private.?key|secret|token)/iu;
|
|
3
|
-
const MAX_COLLECTION_ITEMS = 40;
|
|
4
|
-
const MAX_OBJECT_FIELDS = 40;
|
|
5
|
-
const MAX_TEXT_BYTES = 1024;
|
|
6
|
-
const MAX_VALUE_BYTES = 8192;
|
|
7
|
-
const MAX_TRANSCRIPT_ITEMS = 120;
|
|
8
|
-
const MAX_EVIDENCE_ITEMS = 80;
|
|
9
|
-
function digest(value) {
|
|
10
|
-
return createHash("sha256").update(value).digest("hex");
|
|
11
|
-
}
|
|
12
|
-
function boundedText(value) {
|
|
13
|
-
const bytes = Buffer.byteLength(value, "utf8");
|
|
14
|
-
if (bytes <= MAX_TEXT_BYTES) return value;
|
|
15
|
-
const preview = value.slice(0, MAX_TEXT_BYTES / 2);
|
|
16
|
-
return `${preview}
|
|
17
|
-
|
|
18
|
-
[Agent Lab presentation truncated ${bytes - Buffer.byteLength(preview, "utf8")} bytes; sha256:${digest(value)}. Query durable forensic evidence for the complete value.]`;
|
|
19
|
-
}
|
|
20
|
-
function boundedContainer(original, projected, kind) {
|
|
21
|
-
const serialized = JSON.stringify(projected);
|
|
22
|
-
if (Buffer.byteLength(serialized, "utf8") <= MAX_VALUE_BYTES) return projected;
|
|
23
|
-
return {
|
|
24
|
-
presentationTruncated: true,
|
|
25
|
-
byteLength: Buffer.byteLength(JSON.stringify(original), "utf8"),
|
|
26
|
-
sha256: digest(JSON.stringify(original)),
|
|
27
|
-
reason: "maximum-value-bytes",
|
|
28
|
-
kind,
|
|
29
|
-
...Array.isArray(original) ? { itemCount: original.length } : { fields: Object.keys(original).slice(0, MAX_OBJECT_FIELDS) },
|
|
30
|
-
preview: boundedText(serialized)
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function boundedValue(value, depth = 0) {
|
|
34
|
-
if (typeof value === "string") return boundedText(value);
|
|
35
|
-
if (!value || typeof value !== "object") return value;
|
|
36
|
-
if (depth >= 8) {
|
|
37
|
-
const serialized = JSON.stringify(value);
|
|
38
|
-
return { presentationTruncated: true, byteLength: Buffer.byteLength(serialized, "utf8"), sha256: digest(serialized), reason: "maximum-depth" };
|
|
39
|
-
}
|
|
40
|
-
if (Array.isArray(value)) {
|
|
41
|
-
const selected2 = value.length > MAX_COLLECTION_ITEMS ? [...value.slice(0, MAX_COLLECTION_ITEMS / 2), ...value.slice(-MAX_COLLECTION_ITEMS / 2)] : value;
|
|
42
|
-
const result2 = selected2.map((entry) => boundedValue(entry, depth + 1));
|
|
43
|
-
if (selected2.length !== value.length) result2.splice(MAX_COLLECTION_ITEMS / 2, 0, {
|
|
44
|
-
presentationTruncated: true,
|
|
45
|
-
omittedItems: value.length - selected2.length,
|
|
46
|
-
sha256: digest(JSON.stringify(value)),
|
|
47
|
-
reason: "maximum-items"
|
|
48
|
-
});
|
|
49
|
-
return boundedContainer(value, result2, "array");
|
|
50
|
-
}
|
|
51
|
-
const entries = Object.entries(value);
|
|
52
|
-
const selected = entries.slice(0, MAX_OBJECT_FIELDS);
|
|
53
|
-
const result = Object.fromEntries(selected.map(([key, entry]) => [key, boundedValue(entry, depth + 1)]));
|
|
54
|
-
if (selected.length !== entries.length) result.presentationTruncation = {
|
|
55
|
-
omittedFields: entries.length - selected.length,
|
|
56
|
-
sha256: digest(JSON.stringify(value)),
|
|
57
|
-
reason: "maximum-fields"
|
|
58
|
-
};
|
|
59
|
-
return boundedContainer(value, result, "object");
|
|
60
|
-
}
|
|
61
|
-
function boundedTimeline(items, limit) {
|
|
62
|
-
if (items.length <= limit) return items;
|
|
63
|
-
return [...items.slice(0, Math.floor(limit / 4)), ...items.slice(-(limit - Math.floor(limit / 4)))];
|
|
64
|
-
}
|
|
65
|
-
function sanitizeAgentLabValue(value, key = "") {
|
|
66
|
-
const normalizedKey = key.replaceAll("_", "").toLowerCase();
|
|
67
|
-
const usageMetric = /^(?:(?:input|output|cachedinput|reasoningoutput|prompt|completion|cachereadinput)tokens|(?:total)?tokenestimate(?:source)?|tokencounts|tokenusage|usage)$/u.test(normalizedKey);
|
|
68
|
-
if (SENSITIVE.test(key) && !usageMetric) return "[REDACTED]";
|
|
69
|
-
if (Array.isArray(value)) return value.map((entry) => sanitizeAgentLabValue(entry));
|
|
70
|
-
if (!value || typeof value !== "object") return value;
|
|
71
|
-
return Object.fromEntries(Object.entries(value).map(([entryKey, entry]) => [entryKey, sanitizeAgentLabValue(entry, entryKey)]));
|
|
72
|
-
}
|
|
73
|
-
function sanitizeAgentLabSnapshot(snapshot) {
|
|
74
|
-
const sanitized = sanitizeAgentLabValue(snapshot);
|
|
75
|
-
return {
|
|
76
|
-
...sanitized,
|
|
77
|
-
workdays: sanitized.workdays.map((day) => ({
|
|
78
|
-
...day,
|
|
79
|
-
activity: boundedTimeline(day.activity, 1e3).map((entry) => boundedValue(entry)),
|
|
80
|
-
assignments: day.assignments.map((entry) => boundedValue(entry)),
|
|
81
|
-
providerExecutions: day.providerExecutions.map((entry) => boundedValue(entry)),
|
|
82
|
-
governance: day.governance.map((entry) => boundedValue(entry)),
|
|
83
|
-
accounting: boundedValue(day.accounting),
|
|
84
|
-
executions: day.executions.map((execution) => ({
|
|
85
|
-
...execution,
|
|
86
|
-
transcript: boundedTimeline(execution.transcript, MAX_TRANSCRIPT_ITEMS).map((entry) => ({
|
|
87
|
-
...entry,
|
|
88
|
-
text: entry.text === null ? null : boundedText(entry.text),
|
|
89
|
-
payload: boundedValue(entry.payload)
|
|
90
|
-
})),
|
|
91
|
-
evidence: boundedTimeline(execution.evidence, MAX_EVIDENCE_ITEMS).map((entry) => ({ ...entry, detail: boundedValue(entry.detail) })),
|
|
92
|
-
signals: execution.signals.map((entry) => boundedValue(entry)),
|
|
93
|
-
artifacts: execution.artifacts.map((entry) => boundedValue(entry)),
|
|
94
|
-
usage: boundedValue(execution.usage),
|
|
95
|
-
error: execution.error ? boundedValue(execution.error) : null,
|
|
96
|
-
assignment: boundedValue(execution.assignment),
|
|
97
|
-
capacity: boundedValue(execution.capacity)
|
|
98
|
-
}))
|
|
99
|
-
}))
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
function hash(value) {
|
|
103
|
-
let result = 2166136261;
|
|
104
|
-
for (const character of value) {
|
|
105
|
-
result ^= character.charCodeAt(0);
|
|
106
|
-
result = Math.imul(result, 16777619);
|
|
107
|
-
}
|
|
108
|
-
return result >>> 0;
|
|
109
|
-
}
|
|
110
|
-
function agentClassPalette(classIds) {
|
|
111
|
-
const unique = [...new Set(classIds.filter(Boolean))].sort();
|
|
112
|
-
const used = /* @__PURE__ */ new Set();
|
|
113
|
-
return Object.fromEntries(unique.map((id, index) => {
|
|
114
|
-
let hue = (hash(id) + index * 137.508) % 360;
|
|
115
|
-
while ([...used].some((candidate) => Math.abs(candidate - hue) < 18 || Math.abs(candidate - hue) > 342)) hue = (hue + 29) % 360;
|
|
116
|
-
used.add(hue);
|
|
117
|
-
return [id, `hsl(${hue.toFixed(1)} 82% 72%)`];
|
|
118
|
-
}));
|
|
119
|
-
}
|
|
120
|
-
function agentLabTotals(snapshot) {
|
|
121
|
-
const assignmentExecutions = snapshot.workdays.flatMap((workday) => workday.executions);
|
|
122
|
-
const executions = snapshot.workdays.flatMap((workday) => workday.providerExecutions.length ? workday.providerExecutions : workday.executions);
|
|
123
|
-
const activity = snapshot.workdays.flatMap((workday) => workday.activity);
|
|
124
|
-
const assertions = snapshot.workdays.flatMap((workday) => workday.assertions);
|
|
125
|
-
return {
|
|
126
|
-
workdays: snapshot.workdays.length,
|
|
127
|
-
workdaysCompleted: snapshot.workdays.filter((entry) => entry.status === "completed").length,
|
|
128
|
-
executions: executions.length,
|
|
129
|
-
completed: executions.filter((entry) => ["completed", "succeeded"].includes(entry.status)).length,
|
|
130
|
-
failed: executions.filter((entry) => ["failed", "error"].includes(entry.status)).length,
|
|
131
|
-
running: executions.filter((entry) => entry.status === "running").length,
|
|
132
|
-
agents: snapshot.agents.length,
|
|
133
|
-
agentsActive: new Set(assignmentExecutions.map((entry) => entry.agentId).filter(Boolean)).size,
|
|
134
|
-
classes: new Set(assignmentExecutions.map((entry) => entry.agentClassId).filter(Boolean)).size,
|
|
135
|
-
activities: new Set(activity.map((entry) => entry.id)).size,
|
|
136
|
-
assignments: new Set(snapshot.workdays.flatMap((entry) => entry.assignments).map((entry) => String(entry.id ?? ""))).size,
|
|
137
|
-
artifacts: assignmentExecutions.reduce((total, entry) => total + entry.artifacts.length, 0),
|
|
138
|
-
assertionsPassed: assertions.filter((entry) => entry.status === "passed").length,
|
|
139
|
-
assertionsFailed: assertions.filter((entry) => entry.status === "failed").length
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
function hasFailedContentToolRecord(value) {
|
|
143
|
-
if (!value || typeof value !== "object") return false;
|
|
144
|
-
if (!Array.isArray(value)) {
|
|
145
|
-
const item = value;
|
|
146
|
-
if (item.type === "mcp_tool_call" && item.status === "failed" && /^(?:treedx_|treeseed_content_)/u.test(String(item.tool ?? ""))) return true;
|
|
147
|
-
}
|
|
148
|
-
return Object.values(value).some(hasFailedContentToolRecord);
|
|
149
|
-
}
|
|
150
|
-
function hasFailedAgentLabContentTool(day) {
|
|
151
|
-
return day.executions.some((execution) => execution.transcript.some((item) => hasFailedContentToolRecord(item.payload)) || execution.evidence.some((item) => item.kind === "work-package" && /"id":"treedx-evidence-warnings"/u.test(JSON.stringify(item.detail)) && /TreeDX[^"\\]* failed/iu.test(JSON.stringify(item.detail))));
|
|
152
|
-
}
|
|
153
|
-
function initialAgentLabSnapshot(input) {
|
|
154
|
-
return {
|
|
155
|
-
schemaVersion: "treeseed.agent-simulation/v2",
|
|
156
|
-
sceneId: input.sceneId,
|
|
157
|
-
runId: input.runId,
|
|
158
|
-
status: "starting",
|
|
159
|
-
presentation: input.presentation,
|
|
160
|
-
timeZone: input.timeZone,
|
|
161
|
-
generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
162
|
-
team: { id: null, name: null, isolation: "ephemeral" },
|
|
163
|
-
provider: { id: null, membershipId: null, executionProviderId: "codex", status: "pending" },
|
|
164
|
-
repositories: input.repositories.map((slug) => ({ slug, projectId: null, repositoryId: null, ref: null })),
|
|
165
|
-
agents: [],
|
|
166
|
-
workdays: input.workdays.map((workday) => ({
|
|
167
|
-
id: workday.id,
|
|
168
|
-
title: workday.title ?? workday.id,
|
|
169
|
-
workdayRunId: null,
|
|
170
|
-
status: "pending",
|
|
171
|
-
startedAt: null,
|
|
172
|
-
finishedAt: null,
|
|
173
|
-
agentTests: workday.agentTests,
|
|
174
|
-
activity: [],
|
|
175
|
-
executions: [],
|
|
176
|
-
providerExecutions: [],
|
|
177
|
-
assignments: [],
|
|
178
|
-
governance: [],
|
|
179
|
-
accounting: {},
|
|
180
|
-
assertions: [],
|
|
181
|
-
diagnostics: []
|
|
182
|
-
})),
|
|
183
|
-
cleanup: { status: "pending", diagnostics: [] },
|
|
184
|
-
diagnostics: []
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
export {
|
|
188
|
-
agentClassPalette,
|
|
189
|
-
agentLabTotals,
|
|
190
|
-
hasFailedAgentLabContentTool,
|
|
191
|
-
initialAgentLabSnapshot,
|
|
192
|
-
sanitizeAgentLabSnapshot,
|
|
193
|
-
sanitizeAgentLabValue
|
|
194
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { AgentLabPresentationAdapter, AgentLabSnapshot } from '../types.js';
|
|
2
|
-
export declare const AGENT_SIMULATOR_PORT = 4760;
|
|
3
|
-
export declare function writeAgentLabHtml(path: string, adapter: AgentLabPresentationAdapter, snapshot: AgentLabSnapshot): Promise<void>;
|
|
4
|
-
export type AgentLabLiveReport = {
|
|
5
|
-
url: string;
|
|
6
|
-
publish(snapshot: AgentLabSnapshot): Promise<void>;
|
|
7
|
-
close(): Promise<void>;
|
|
8
|
-
};
|
|
9
|
-
export declare function startAgentLabReportViewer(path: string): Promise<AgentLabLiveReport>;
|
|
10
|
-
export declare function startAgentLabLiveReport(input: {
|
|
11
|
-
path: string;
|
|
12
|
-
adapter: AgentLabPresentationAdapter;
|
|
13
|
-
initial: AgentLabSnapshot;
|
|
14
|
-
}): Promise<AgentLabLiveReport>;
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { createServer } from "node:http";
|
|
2
|
-
import { watchFile, unwatchFile } from "node:fs";
|
|
3
|
-
import { mkdir, readFile, rename, writeFile } from "node:fs/promises";
|
|
4
|
-
import { dirname } from "node:path";
|
|
5
|
-
const AGENT_SIMULATOR_PORT = 4760;
|
|
6
|
-
function simulatorPort() {
|
|
7
|
-
const configured = Number(process.env.TREESEED_AGENT_SIMULATOR_PORT ?? AGENT_SIMULATOR_PORT);
|
|
8
|
-
if (!Number.isInteger(configured) || configured < 1 || configured > 65535) throw new Error("TREESEED_AGENT_SIMULATOR_PORT must be a valid TCP port.");
|
|
9
|
-
return configured;
|
|
10
|
-
}
|
|
11
|
-
function listen(server) {
|
|
12
|
-
const port = simulatorPort();
|
|
13
|
-
return new Promise((resolve, reject) => {
|
|
14
|
-
server.once("error", (error) => reject(error.code === "EADDRINUSE" ? new Error(`Agent Lab is already active at http://127.0.0.1:${port}/. End or inspect that simulation before starting another.`) : error));
|
|
15
|
-
server.listen(port, "127.0.0.1", () => resolve(port));
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
async function writeAgentLabHtml(path, adapter, snapshot) {
|
|
19
|
-
await mkdir(dirname(path), { recursive: true });
|
|
20
|
-
const temporary = `${path}.${process.pid}.${Date.now()}.tmp`;
|
|
21
|
-
await writeFile(temporary, adapter.render(snapshot), "utf8");
|
|
22
|
-
await rename(temporary, path);
|
|
23
|
-
}
|
|
24
|
-
function embeddedSnapshot(html) {
|
|
25
|
-
const marker = '<script type="application/json" id="agent-lab-data">';
|
|
26
|
-
const start = html.indexOf(marker);
|
|
27
|
-
const end = start < 0 ? -1 : html.indexOf("</script>", start + marker.length);
|
|
28
|
-
if (start < 0 || end < 0) throw new Error("The report does not contain embedded agent simulation evidence.");
|
|
29
|
-
return JSON.parse(html.slice(start + marker.length, end));
|
|
30
|
-
}
|
|
31
|
-
async function startAgentLabReportViewer(path) {
|
|
32
|
-
let html = await readFile(path, "utf8");
|
|
33
|
-
let snapshot = embeddedSnapshot(html);
|
|
34
|
-
let revision = 0;
|
|
35
|
-
const clients = /* @__PURE__ */ new Set();
|
|
36
|
-
const server = createServer((request, response) => {
|
|
37
|
-
if (request.url === "/status") {
|
|
38
|
-
response.writeHead(200, { "content-type": "application/json; charset=utf-8", "cache-control": "no-store" });
|
|
39
|
-
response.end(JSON.stringify({ ok: true, active: snapshot.status === "running" || snapshot.status === "starting", status: snapshot.status, sceneId: snapshot.sceneId, runId: snapshot.runId, generatedAt: snapshot.generatedAt }));
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
if (request.url === "/snapshot") {
|
|
43
|
-
response.writeHead(200, { "content-type": "application/json; charset=utf-8", "cache-control": "no-store" });
|
|
44
|
-
response.end(JSON.stringify({ schemaVersion: "treeseed.agent-simulation-stream/v1", kind: "bootstrap", revision, snapshot }));
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
if (request.url === "/events") {
|
|
48
|
-
response.writeHead(200, { "content-type": "text/event-stream", "cache-control": "no-cache", connection: "keep-alive" });
|
|
49
|
-
clients.add(response);
|
|
50
|
-
request.on("close", () => clients.delete(response));
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
if (request.url !== "/" && request.url !== "/report.html") {
|
|
54
|
-
response.writeHead(404).end("Not found");
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
response.writeHead(200, { "content-type": "text/html; charset=utf-8", "cache-control": "no-store" });
|
|
58
|
-
response.end(html);
|
|
59
|
-
});
|
|
60
|
-
const port = await listen(server);
|
|
61
|
-
const refresh = async () => {
|
|
62
|
-
try {
|
|
63
|
-
html = await readFile(path, "utf8");
|
|
64
|
-
snapshot = embeddedSnapshot(html);
|
|
65
|
-
revision += 1;
|
|
66
|
-
const message = `id: ${revision}
|
|
67
|
-
event: delta
|
|
68
|
-
data: ${JSON.stringify({ schemaVersion: "treeseed.agent-simulation-stream/v1", kind: "upsert", revision, entity: "simulation", id: snapshot.runId, value: snapshot })}
|
|
69
|
-
|
|
70
|
-
`;
|
|
71
|
-
for (const client of clients) client.write(message);
|
|
72
|
-
} catch {
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
watchFile(path, { interval: 750 }, (current, previous) => {
|
|
76
|
-
if (current.mtimeMs !== previous.mtimeMs) void refresh();
|
|
77
|
-
});
|
|
78
|
-
return {
|
|
79
|
-
url: `http://127.0.0.1:${port}/`,
|
|
80
|
-
publish: async () => {
|
|
81
|
-
},
|
|
82
|
-
close: () => new Promise((resolve) => {
|
|
83
|
-
unwatchFile(path);
|
|
84
|
-
for (const client of clients) client.end();
|
|
85
|
-
server.close(() => resolve());
|
|
86
|
-
})
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
async function startAgentLabLiveReport(input) {
|
|
90
|
-
let snapshot = input.initial;
|
|
91
|
-
let revision = 0;
|
|
92
|
-
const clients = /* @__PURE__ */ new Set();
|
|
93
|
-
await writeAgentLabHtml(input.path, input.adapter, snapshot);
|
|
94
|
-
const server = createServer(async (request, response) => {
|
|
95
|
-
if (request.url === "/status") {
|
|
96
|
-
response.writeHead(200, { "content-type": "application/json; charset=utf-8", "cache-control": "no-store" });
|
|
97
|
-
response.end(JSON.stringify({ ok: true, active: snapshot.status === "running" || snapshot.status === "starting", status: snapshot.status, sceneId: snapshot.sceneId, runId: snapshot.runId, generatedAt: snapshot.generatedAt }));
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
if (request.url === "/snapshot") {
|
|
101
|
-
response.writeHead(200, { "content-type": "application/json; charset=utf-8", "cache-control": "no-store" });
|
|
102
|
-
response.end(JSON.stringify({ schemaVersion: "treeseed.agent-simulation-stream/v1", kind: "bootstrap", revision, snapshot }));
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
if (request.url === "/events") {
|
|
106
|
-
response.writeHead(200, { "content-type": "text/event-stream", "cache-control": "no-cache", connection: "keep-alive" });
|
|
107
|
-
clients.add(response);
|
|
108
|
-
request.on("close", () => clients.delete(response));
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
if (request.url !== "/" && request.url !== "/report.html") {
|
|
112
|
-
response.writeHead(404).end("Not found");
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
response.writeHead(200, { "content-type": "text/html; charset=utf-8", "cache-control": "no-store" });
|
|
116
|
-
response.end(input.adapter.render(snapshot));
|
|
117
|
-
});
|
|
118
|
-
const port = await listen(server);
|
|
119
|
-
return {
|
|
120
|
-
url: `http://127.0.0.1:${port}/`,
|
|
121
|
-
async publish(next) {
|
|
122
|
-
snapshot = next;
|
|
123
|
-
revision += 1;
|
|
124
|
-
await writeAgentLabHtml(input.path, input.adapter, snapshot);
|
|
125
|
-
const message = `id: ${revision}
|
|
126
|
-
event: delta
|
|
127
|
-
data: ${JSON.stringify({ schemaVersion: "treeseed.agent-simulation-stream/v1", kind: "upsert", revision, entity: "simulation", id: snapshot.runId, value: snapshot })}
|
|
128
|
-
|
|
129
|
-
`;
|
|
130
|
-
for (const client of clients) client.write(message);
|
|
131
|
-
},
|
|
132
|
-
close: () => new Promise((resolve) => {
|
|
133
|
-
for (const client of clients) client.end();
|
|
134
|
-
server.close(() => resolve());
|
|
135
|
-
})
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
export {
|
|
139
|
-
AGENT_SIMULATOR_PORT,
|
|
140
|
-
startAgentLabLiveReport,
|
|
141
|
-
startAgentLabReportViewer,
|
|
142
|
-
writeAgentLabHtml
|
|
143
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ScenePlanReport, SceneRunOptions, SceneRunReport, SceneValidationReport } from '../types.js';
|
|
2
|
-
export declare function runAgentLabScene(input: {
|
|
3
|
-
options: SceneRunOptions;
|
|
4
|
-
validation: SceneValidationReport;
|
|
5
|
-
plan: ScenePlanReport;
|
|
6
|
-
}): Promise<SceneRunReport>;
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { join } from "node:path";
|
|
2
|
-
import { renameSync, writeFileSync } from "node:fs";
|
|
3
|
-
import { createSceneRunArtifacts, ensureSceneRunDirectories, writeSceneRunArtifacts } from "../support/evidence/artifacts.js";
|
|
4
|
-
import { createSceneTimeline } from "../support/evidence/timeline.js";
|
|
5
|
-
import { createSceneProgress } from "../support/reporting/progress.js";
|
|
6
|
-
import { sceneErrorDiagnostic } from "../support/reporting/diagnostics.js";
|
|
7
|
-
import { writeSceneMarkdownReport } from "../support/reporting/reporter.js";
|
|
8
|
-
import { prepareSceneEnvironment } from "../configuration/environment.js";
|
|
9
|
-
import { resolveSceneAuth } from "../accounts/auth.js";
|
|
10
|
-
import { planOrApplySceneSeed } from "../seeds/seed.js";
|
|
11
|
-
import { initialAgentLabSnapshot } from "./report-model.js";
|
|
12
|
-
import { resolveAgentLabPresentation } from "./report-adapters.js";
|
|
13
|
-
import { startAgentLabLiveReport } from "./report-writer.js";
|
|
14
|
-
function terminalReport(input) {
|
|
15
|
-
const failed = input.snapshot.status === "failed" || input.diagnostics.some((entry) => entry.severity === "error");
|
|
16
|
-
const finishedAt = /* @__PURE__ */ new Date();
|
|
17
|
-
return {
|
|
18
|
-
ok: !failed,
|
|
19
|
-
phase: 5,
|
|
20
|
-
sceneId: input.snapshot.sceneId,
|
|
21
|
-
runId: input.snapshot.runId,
|
|
22
|
-
scenePath: input.validation.scenePath,
|
|
23
|
-
startedAt: input.startedAt.toISOString(),
|
|
24
|
-
finishedAt: finishedAt.toISOString(),
|
|
25
|
-
durationMs: Math.max(0, finishedAt.getTime() - input.startedAt.getTime()),
|
|
26
|
-
environment: input.plan.environment,
|
|
27
|
-
baseUrl: null,
|
|
28
|
-
browser: null,
|
|
29
|
-
device: null,
|
|
30
|
-
capture: null,
|
|
31
|
-
workflowStatus: failed ? "failed" : "passed",
|
|
32
|
-
steps: [],
|
|
33
|
-
failedStep: failed ? input.snapshot.workdays.find((entry) => entry.status === "failed")?.id ?? null : null,
|
|
34
|
-
assertions: [],
|
|
35
|
-
artifacts: input.artifacts,
|
|
36
|
-
timelinePath: input.artifacts.timelinePath,
|
|
37
|
-
playwrightTracePath: null,
|
|
38
|
-
videoPaths: [],
|
|
39
|
-
renderedVideoPaths: [],
|
|
40
|
-
logs: {},
|
|
41
|
-
setup: input.setup ?? null,
|
|
42
|
-
operations: [],
|
|
43
|
-
chapters: [],
|
|
44
|
-
segments: [],
|
|
45
|
-
checkpoints: [],
|
|
46
|
-
resumedFrom: null,
|
|
47
|
-
progressPath: input.artifacts.progressPath ?? null,
|
|
48
|
-
warnings: input.diagnostics.filter((entry) => entry.severity === "warning"),
|
|
49
|
-
blockers: input.diagnostics.filter((entry) => entry.severity === "error"),
|
|
50
|
-
diagnostics: input.diagnostics
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
async function runAgentLabScene(input) {
|
|
54
|
-
const scene = input.validation.scene, config = scene.agentLab, paths = input.plan.artifactPaths, startedAt = /* @__PURE__ */ new Date();
|
|
55
|
-
ensureSceneRunDirectories(paths);
|
|
56
|
-
const artifacts = createSceneRunArtifacts({ paths, playwrightTracePath: null });
|
|
57
|
-
writeFileSync(artifacts.progressPath, "", "utf8");
|
|
58
|
-
const timeline = createSceneTimeline({ sceneId: scene.id, runId: paths.runId, startedAtMs: startedAt.getTime() });
|
|
59
|
-
const progress = createSceneProgress({ sceneId: scene.id, runId: paths.runId, startedAtMs: startedAt.getTime(), progressPath: artifacts.progressPath, onProgress: input.options.onProgress });
|
|
60
|
-
const environmentReport = await (input.options.environmentAdapter ?? prepareSceneEnvironment)({ projectRoot: input.options.projectRoot, scene, environment: input.plan.environment, env: process.env });
|
|
61
|
-
const authReport = (input.options.authResolver ?? resolveSceneAuth)({ projectRoot: input.options.projectRoot, scene, environment: input.plan.environment });
|
|
62
|
-
const seedReport = await (input.options.seedRunner ?? planOrApplySceneSeed)({ projectRoot: input.options.projectRoot, scene, environment: input.plan.environment, auth: authReport, env: process.env });
|
|
63
|
-
const setup = { environment: environmentReport, auth: authReport, seed: seedReport };
|
|
64
|
-
const setupDiagnostics = [...environmentReport.diagnostics, ...authReport.diagnostics, ...seedReport.diagnostics];
|
|
65
|
-
let snapshot = initialAgentLabSnapshot({ sceneId: scene.id, runId: paths.runId, presentation: config.presentation, timeZone: config.timeZone, repositories: config.repositories, workdays: config.workdays });
|
|
66
|
-
const snapshotPath = join(paths.runRoot, "agent-lab-snapshot.json");
|
|
67
|
-
const writeSnapshot = () => {
|
|
68
|
-
const temporary = `${snapshotPath}.${process.pid}.${Date.now()}.tmp`;
|
|
69
|
-
writeFileSync(temporary, `${JSON.stringify(snapshot, null, 2)}
|
|
70
|
-
`, "utf8");
|
|
71
|
-
renameSync(temporary, snapshotPath);
|
|
72
|
-
};
|
|
73
|
-
writeSnapshot();
|
|
74
|
-
const adapter = resolveAgentLabPresentation(config.presentation, input.options.agentLabPresentations);
|
|
75
|
-
const diagnostics = [...setupDiagnostics];
|
|
76
|
-
if (!adapter) diagnostics.push(sceneErrorDiagnostic("scene.agent_lab_presentation_unavailable", `Agent Lab presentation ${config.presentation} is unavailable.`, "agentLab.presentation"));
|
|
77
|
-
if (!input.options.agentLabExecutor) diagnostics.push(sceneErrorDiagnostic("scene.agent_lab_executor_unavailable", "Agent Lab requires the CLI production capacity executor.", "agentLab"));
|
|
78
|
-
if (!adapter || !input.options.agentLabExecutor || setupDiagnostics.some((entry) => entry.severity === "error")) {
|
|
79
|
-
const report2 = terminalReport({ validation: input.validation, plan: input.plan, startedAt, snapshot: { ...snapshot, status: "failed" }, diagnostics, artifacts, setup });
|
|
80
|
-
writeSceneMarkdownReport(report2);
|
|
81
|
-
writeSceneRunArtifacts({ scene, plan: input.plan, report: report2, timeline: timeline.events });
|
|
82
|
-
return report2;
|
|
83
|
-
}
|
|
84
|
-
const live = await startAgentLabLiveReport({ path: paths.htmlReportPath, adapter, initial: snapshot });
|
|
85
|
-
await input.options.onAgentLabReportReady?.({ url: live.url, path: paths.htmlReportPath });
|
|
86
|
-
progress.push("scene.run.started", { title: scene.title, environment: input.plan.environment, reportUrl: live.url });
|
|
87
|
-
timeline.push("scene.start", { title: scene.title, environment: input.plan.environment, journey: "agent-lab", reportUrl: live.url });
|
|
88
|
-
try {
|
|
89
|
-
snapshot = await input.options.agentLabExecutor({
|
|
90
|
-
projectRoot: input.options.projectRoot,
|
|
91
|
-
contentRef: input.options.agentLabContentRef,
|
|
92
|
-
config,
|
|
93
|
-
sceneId: scene.id,
|
|
94
|
-
runId: paths.runId,
|
|
95
|
-
reportPath: paths.htmlReportPath,
|
|
96
|
-
onUpdate: async (update) => {
|
|
97
|
-
snapshot = update.snapshot;
|
|
98
|
-
writeSnapshot();
|
|
99
|
-
await live.publish(snapshot);
|
|
100
|
-
timeline.push("heartbeat", { status: snapshot.status, workdays: snapshot.workdays.map((entry) => ({ id: entry.id, status: entry.status, executions: entry.executions.length })) });
|
|
101
|
-
progress.push("scene.run.heartbeat", { status: snapshot.status, reportUrl: live.url });
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
} catch (error) {
|
|
105
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
106
|
-
diagnostics.push(sceneErrorDiagnostic("scene.agent_lab_execution_failed", message, "agentLab"));
|
|
107
|
-
snapshot = { ...snapshot, status: "failed", generatedAt: (/* @__PURE__ */ new Date()).toISOString(), diagnostics: [...snapshot.diagnostics, message] };
|
|
108
|
-
writeSnapshot();
|
|
109
|
-
await live.publish(snapshot);
|
|
110
|
-
} finally {
|
|
111
|
-
await live.close();
|
|
112
|
-
}
|
|
113
|
-
timeline.push("scene.end", { status: snapshot.status, reportPath: paths.htmlReportPath });
|
|
114
|
-
progress.push("scene.run.finished", { ok: snapshot.status === "completed", reportPath: paths.htmlReportPath }, { status: snapshot.status });
|
|
115
|
-
const report = terminalReport({ validation: input.validation, plan: input.plan, startedAt, snapshot, diagnostics, artifacts, setup });
|
|
116
|
-
writeSceneMarkdownReport(report);
|
|
117
|
-
writeSceneRunArtifacts({ scene, plan: input.plan, report, timeline: timeline.events });
|
|
118
|
-
return report;
|
|
119
|
-
}
|
|
120
|
-
export {
|
|
121
|
-
runAgentLabScene
|
|
122
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { AgentLabWorkdaySnapshot } from '../../types.js';
|
|
2
|
-
export declare function agentLabDiagnostic(value: unknown, prefix?: string): string;
|
|
3
|
-
export declare function withAgentLabDiagnostic(day: AgentLabWorkdaySnapshot, value: unknown, prefix?: string): AgentLabWorkdaySnapshot;
|
|
4
|
-
export declare function localAgentLabApiConfig(env: Record<string, string | undefined>): {
|
|
5
|
-
apiUrl: string;
|
|
6
|
-
adminToken: string;
|
|
7
|
-
};
|