@treeseed/sdk 0.13.0-rc.13 → 0.13.0-rc.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -9
- package/dist/accounts/account-contracts.d.ts +6 -0
- package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.d.ts +5485 -0
- package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +242 -0
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +304 -0
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.js +44 -0
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-path.d.ts +2 -0
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-path.js +13 -0
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +23 -60
- package/dist/agent-capacity/contracts/capacity/assignments/context-pack-compiler.d.ts +25 -0
- package/dist/agent-capacity/contracts/capacity/assignments/context-pack-compiler.js +67 -0
- package/dist/agent-capacity/contracts/capacity/communication/communication-records.d.ts +1 -1
- package/dist/agent-capacity/contracts/capacity/providers/supply-policy.d.ts +126 -3
- package/dist/agent-capacity/contracts/capacity/providers/supply-policy.js +35 -1
- package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.d.ts +80 -0
- package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.js +121 -0
- package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.d.ts +103 -0
- package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.js +51 -0
- package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.d.ts +490 -0
- package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.js +170 -0
- package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +210 -91
- package/dist/agent-capacity/contracts/capacity/workdays/workday-records.js +19 -0
- package/dist/agent-capacity/contracts/configuration/configuration.d.ts +1 -1
- package/dist/agent-capacity/contracts/configuration/configuration.js +1 -3
- package/dist/agent-capacity/contracts/operations/agent-team-clone.d.ts +218 -0
- package/dist/agent-capacity/contracts/operations/agent-team-clone.js +57 -0
- package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +119 -24
- package/dist/agent-capacity/contracts/projects/agents/project-agent-class.js +16 -0
- package/dist/agent-capacity/contracts/runtime/runtime-observability.d.ts +2 -154
- package/dist/agent-capacity/contracts/support/agent-atlas.d.ts +0 -13
- package/dist/agent-capacity/contracts/support/execution-graph.d.ts +1291 -0
- package/dist/agent-capacity/contracts/support/execution-graph.js +122 -0
- package/dist/agent-capacity/contracts/support/financial-records.d.ts +3 -6
- package/dist/agent-capacity/contracts/support/planning-records.d.ts +1 -87
- package/dist/agent-capacity/contracts/support/time-capacity.d.ts +0 -14
- package/dist/agent-capacity/contracts/support/time-capacity.js +1 -8
- package/dist/agent-capacity/grant.d.ts +34 -0
- package/dist/agent-capacity/grant.js +4 -0
- package/dist/agent-capacity/validation/activity-profile.d.ts +1 -1
- package/dist/agent-capacity/validation/activity-profile.js +3 -259
- package/dist/agent-capacity/validation/agent-definition-schema.d.ts +2538 -9020
- package/dist/agent-capacity/validation/agent-definition-schema.js +59 -181
- package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +25 -25
- package/dist/agent-capacity/validation/agent-lab-forensics-schema.js +0 -1
- package/dist/agent-capacity/validation/assignment-records.d.ts +1 -6
- package/dist/agent-capacity/validation/assignment-records.js +49 -35
- package/dist/agent-capacity/validation/configuration.d.ts +1 -1
- package/dist/agent-capacity/validation/configuration.js +2 -7
- package/dist/agent-capacity/validation/execution/execution-graph.d.ts +1 -0
- package/dist/agent-capacity/validation/execution/execution-graph.js +16 -0
- package/dist/agent-capacity/validation/grant.d.ts +11 -0
- package/dist/agent-capacity/validation/grant.js +31 -0
- package/dist/agent-capacity/validation/index.d.ts +2 -1
- package/dist/agent-capacity/validation/index.js +2 -1
- package/dist/agent-capacity/workday.d.ts +13 -4
- package/dist/agent-capacity/workday.js +10 -26
- package/dist/capacity/agents/agent-capacity.d.ts +11 -4
- package/dist/capacity/agents/agent-capacity.js +9 -3
- package/dist/capacity-provider/capability-ontology.d.ts +1495 -0
- package/dist/capacity-provider/capability-ontology.js +221 -0
- package/dist/capacity-provider/client.d.ts +78 -3
- package/dist/capacity-provider/client.js +22 -10
- package/dist/capacity-provider/contracts/capacity-facts.d.ts +13 -0
- package/dist/capacity-provider/contracts/environment-profiles.d.ts +255 -0
- package/dist/capacity-provider/contracts/environment-profiles.js +71 -0
- package/dist/capacity-provider/contracts/governance.d.ts +110 -51
- package/dist/capacity-provider/contracts/index.d.ts +3 -0
- package/dist/capacity-provider/contracts/index.js +3 -0
- package/dist/capacity-provider/core-capability-catalog.d.ts +47 -0
- package/dist/capacity-provider/core-capability-catalog.js +49 -0
- package/dist/capacity-provider/environment-catalog.d.ts +877 -0
- package/dist/capacity-provider/environment-catalog.js +116 -0
- package/dist/capacity-provider/index.d.ts +5 -0
- package/dist/capacity-provider/index.js +5 -0
- package/dist/capacity-provider/install-configuration.d.ts +39 -0
- package/dist/capacity-provider/install-configuration.js +18 -0
- package/dist/capacity-provider/sandbox-contracts.d.ts +602 -0
- package/dist/capacity-provider/sandbox-contracts.js +90 -0
- package/dist/capacity-provider/sandbox.d.ts +2 -0
- package/dist/capacity-provider/sandbox.js +2 -0
- package/dist/capacity-provider/source-workspace.d.ts +740 -0
- package/dist/capacity-provider/source-workspace.js +130 -0
- package/dist/capacity-provider/validation.d.ts +11 -3
- package/dist/capacity-provider/validation.js +136 -70
- package/dist/configuration/secrets-capability.d.ts +5 -1
- package/dist/configuration/secrets-capability.js +5 -1
- package/dist/content/contracts.d.ts +1 -1
- package/dist/content/validation/agent-operational-content-schemas.d.ts +430 -777
- package/dist/content/validation/agent-operational-content-schemas.js +31 -57
- package/dist/content/validation/auxiliary-content-schemas.d.ts +144 -144
- package/dist/content/validation/content-model-schemas.d.ts +16063 -19764
- package/dist/content/validation/content-model-schemas.js +350 -98
- package/dist/content/validation/portable-content-data.d.ts +751 -1782
- package/dist/content/validation/portable-content-data.js +10 -4
- package/dist/content/validation/schema-constraints.d.ts +80 -0
- package/dist/content/validation/schema-constraints.js +173 -0
- package/dist/deployment/ai/storage.d.ts +158 -0
- package/dist/deployment/ai/storage.js +32 -0
- package/dist/deployment/ai-hosting.d.ts +297 -0
- package/dist/deployment/ai-hosting.js +63 -0
- package/dist/deployment/ai-instance.d.ts +65 -0
- package/dist/deployment/ai-instance.js +30 -0
- package/dist/deployment/ai-mode.d.ts +454 -0
- package/dist/deployment/ai-mode.js +67 -0
- package/dist/deployment/canonical.d.ts +2 -0
- package/dist/deployment/canonical.js +17 -0
- package/dist/deployment/catalog.d.ts +16 -0
- package/dist/deployment/catalog.js +48 -0
- package/dist/deployment/hosted-topology-template.d.ts +449 -0
- package/dist/deployment/hosted-topology-template.js +56 -0
- package/dist/deployment/hosted-topology.d.ts +2698 -0
- package/dist/deployment/hosted-topology.js +468 -0
- package/dist/deployment/index.d.ts +13 -0
- package/dist/deployment/index.js +13 -0
- package/dist/deployment/postgres/contracts.d.ts +418 -0
- package/dist/deployment/postgres/contracts.js +83 -0
- package/dist/deployment/postgres/requirements.d.ts +15 -0
- package/dist/deployment/postgres/requirements.js +32 -0
- package/dist/deployment/postgres/transfer.d.ts +97 -0
- package/dist/deployment/postgres/transfer.js +29 -0
- package/dist/deployment/schemas.d.ts +8625 -0
- package/dist/deployment/schemas.js +455 -0
- package/dist/deployment/topology.d.ts +9 -0
- package/dist/deployment/topology.js +35 -0
- package/dist/development/index.d.ts +1 -0
- package/dist/development/index.js +1 -0
- package/dist/development/schemas.d.ts +3594 -0
- package/dist/development/schemas.js +204 -0
- package/dist/development/session-migration.d.ts +3 -0
- package/dist/development/session-migration.js +25 -0
- package/dist/entrypoints/clients/control-plane-client.d.ts +9 -1
- package/dist/entrypoints/clients/control-plane-client.js +17 -5
- package/dist/graph/context-query-contracts.d.ts +16 -1
- package/dist/graph/context-query-contracts.js +6 -1
- package/dist/guarantees/evidence-trust.d.ts +32 -0
- package/dist/guarantees/evidence-trust.js +47 -0
- package/dist/guarantees/index.d.ts +154 -0
- package/dist/guarantees/index.js +44 -0
- package/dist/identity/browser-session.d.ts +233 -0
- package/dist/identity/browser-session.js +51 -0
- package/dist/identity/contracts.d.ts +191 -0
- package/dist/identity/contracts.js +77 -0
- package/dist/identity/index.d.ts +3 -0
- package/dist/identity/index.js +3 -0
- package/dist/identity/runtime.d.ts +186 -0
- package/dist/identity/runtime.js +49 -0
- package/dist/knowledge/contracts.d.ts +9 -2
- package/dist/knowledge/contracts.js +2 -2
- package/dist/model-registry/agent-operational-models.d.ts +1 -1
- package/dist/model-registry/agent-operational-models.js +1 -4
- package/dist/model-registry/build-builtin-model-registry.js +44 -72
- package/dist/model-registry/discussion-models.js +0 -1
- package/dist/operator-contracts/canonical-command-tree.js +415 -44
- package/dist/operator-contracts/catalog/admin-account-team-operations.d.ts +36 -0
- package/dist/operator-contracts/catalog/admin-account-team-operations.js +52 -0
- package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +75 -0
- package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.js +42 -0
- package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +163 -0
- package/dist/operator-contracts/catalog/capability-ontology-operations.js +24 -0
- package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +62 -0
- package/dist/operator-contracts/catalog/commands/command-tree-builders.js +191 -0
- package/dist/operator-contracts/catalog/communication-operations.d.ts +457 -0
- package/dist/operator-contracts/catalog/communication-operations.js +92 -0
- package/dist/operator-contracts/catalog/control-plane-catalog.d.ts +6 -0
- package/dist/operator-contracts/catalog/control-plane-catalog.js +18 -0
- package/dist/operator-contracts/catalog/execution/execution-operations.d.ts +36 -0
- package/dist/operator-contracts/catalog/execution/execution-operations.js +39 -0
- package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +399 -0
- package/dist/operator-contracts/catalog/hosted-topology-operations.js +79 -0
- package/dist/operator-contracts/catalog/inbox-operations.d.ts +265 -0
- package/dist/operator-contracts/catalog/inbox-operations.js +36 -0
- package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +53 -0
- package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.js +24 -0
- package/dist/operator-contracts/catalog/infrastructure/command-tree-paths.d.ts +3 -0
- package/dist/operator-contracts/catalog/infrastructure/command-tree-paths.js +15 -0
- package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +127 -0
- package/dist/operator-contracts/catalog/knowledge-share-operations.js +25 -0
- package/dist/operator-contracts/catalog/provider-environment-commands.d.ts +4 -0
- package/dist/operator-contracts/catalog/provider-environment-commands.js +69 -0
- package/dist/operator-contracts/catalog/provider-environment-operations.d.ts +41 -0
- package/dist/operator-contracts/catalog/provider-environment-operations.js +61 -0
- package/dist/operator-contracts/catalog/services/identity-commands.d.ts +2 -0
- package/dist/operator-contracts/catalog/services/identity-commands.js +13 -0
- package/dist/operator-contracts/catalog/services/secret-commands.d.ts +2 -0
- package/dist/operator-contracts/catalog/services/secret-commands.js +31 -0
- package/dist/operator-contracts/catalog/services/secret-operations.d.ts +70 -0
- package/dist/operator-contracts/catalog/services/secret-operations.js +52 -0
- package/dist/operator-contracts/catalog/treeai-operations.d.ts +13 -0
- package/dist/operator-contracts/catalog/treeai-operations.js +61 -0
- package/dist/operator-contracts/catalog/workdays/profile-commands.d.ts +4 -0
- package/dist/operator-contracts/catalog/workdays/profile-commands.js +20 -0
- package/dist/operator-contracts/catalog/workdays/profile-operations.d.ts +41 -0
- package/dist/operator-contracts/catalog/workdays/profile-operations.js +50 -0
- package/dist/operator-contracts/catalog/workdays/selection-commands.d.ts +3 -0
- package/dist/operator-contracts/catalog/workdays/selection-commands.js +28 -0
- package/dist/operator-contracts/command-tree.d.ts +29 -0
- package/dist/operator-contracts/command-tree.js +50 -0
- package/dist/operator-contracts/communication/addressing.d.ts +8 -0
- package/dist/operator-contracts/communication/addressing.js +57 -0
- package/dist/operator-contracts/communication/contracts.d.ts +1966 -0
- package/dist/operator-contracts/communication/contracts.js +195 -0
- package/dist/operator-contracts/control-plane-operation.d.ts +15 -1
- package/dist/operator-contracts/control-plane-operation.js +14 -6
- package/dist/operator-contracts/control-plane-operations.d.ts +2496 -328
- package/dist/operator-contracts/control-plane-operations.js +282 -129
- package/dist/operator-contracts/inbox/contracts.d.ts +1111 -0
- package/dist/operator-contracts/inbox/contracts.js +138 -0
- package/dist/operator-contracts/index.d.ts +6 -1
- package/dist/operator-contracts/index.js +6 -1
- package/dist/operator-contracts/knowledge/contracts.d.ts +130 -0
- package/dist/operator-contracts/knowledge/contracts.js +39 -0
- package/dist/operator-contracts/mcp.d.ts +5 -0
- package/dist/operator-contracts/mcp.js +62 -0
- package/dist/operator-contracts/oauth.d.ts +45 -0
- package/dist/operator-contracts/oauth.js +7 -0
- package/dist/operator-contracts/operation-builder.d.ts +18 -0
- package/dist/operator-contracts/operation-builder.js +78 -0
- package/dist/operator-contracts/seed/seed-bundle.d.ts +138 -0
- package/dist/operator-contracts/seed/seed-bundle.js +68 -0
- package/dist/operator-contracts/workday-lifecycle.d.ts +383 -28
- package/dist/operator-contracts/workday-lifecycle.js +124 -17
- package/dist/platform/agent-schema-verification.d.ts +3 -0
- package/dist/platform/agent-schema-verification.js +377 -0
- package/dist/platform/contracts.d.ts +429 -0
- package/dist/platform/contracts.js +93 -0
- package/dist/platform/index.d.ts +6 -0
- package/dist/platform/index.js +6 -0
- package/dist/platform/inventory.d.ts +11 -0
- package/dist/platform/inventory.js +53 -0
- package/dist/platform/project-create.d.ts +49 -0
- package/dist/platform/project-create.js +75 -0
- package/dist/platform/schemas.d.ts +1094 -0
- package/dist/platform/schemas.js +99 -0
- package/dist/platform/verification.d.ts +9 -0
- package/dist/platform/verification.js +114 -0
- package/dist/platform/workset.d.ts +21 -0
- package/dist/platform/workset.js +106 -0
- package/dist/sdk-types/support/planning-policy.d.ts +1 -1
- package/dist/sdk-types/support/sdk-model-names.d.ts +1 -1
- package/dist/sdk-types/support/sdk-model-names.js +0 -3
- package/dist/sdk-types/support/sdk-search-request.d.ts +2 -2
- package/dist/secrets-capability/github-actions-encryption.d.ts +2 -0
- package/dist/secrets-capability/github-actions-encryption.js +11 -0
- package/dist/secrets-capability/provider-operation-contracts.d.ts +15 -1
- package/dist/secrets-capability/secret-contracts.d.ts +33 -0
- package/dist/secrets-capability/secret-contracts.js +49 -0
- package/dist/secrets-capability/service-provider-contracts.d.ts +5 -3
- package/dist/secrets-capability/service-provider-contracts.js +66 -50
- package/dist/secrets-capability/shared-access.d.ts +51 -0
- package/dist/secrets-capability/shared-access.js +36 -0
- package/dist/secrets-capability/shared-resources.d.ts +376 -0
- package/dist/secrets-capability/shared-resources.js +91 -0
- package/dist/secrets-capability/vault-contracts.d.ts +132 -0
- package/dist/secrets-capability/vault-contracts.js +56 -0
- package/dist/security/encrypted-envelope.d.ts +177 -0
- package/dist/security/encrypted-envelope.js +34 -0
- package/dist/security/envelope-codec.d.ts +38 -0
- package/dist/security/envelope-codec.js +96 -0
- package/dist/security/index.d.ts +2 -0
- package/dist/security/index.js +2 -0
- package/dist/site-contracts/catalog.d.ts +16 -0
- package/dist/site-contracts/catalog.js +19 -0
- package/dist/site-contracts/cloudflare.d.ts +48 -0
- package/dist/site-contracts/platform.d.ts +94 -0
- package/dist/site-contracts/plugin.d.ts +63 -0
- package/dist/site-contracts/plugin.js +26 -0
- package/dist/treeai/catalog.d.ts +1 -0
- package/dist/treeai/catalog.js +1 -0
- package/dist/treeai/client.d.ts +793 -0
- package/dist/treeai/client.js +44 -0
- package/dist/treeai/contract.d.ts +41 -0
- package/dist/treeai/contract.js +51 -0
- package/dist/treeai/generated/upstream.d.ts +770 -0
- package/dist/treeai/generated/upstream.js +4 -0
- package/dist/treeai/index.d.ts +4 -0
- package/dist/treeai/index.js +4 -0
- package/dist/treedx/client.d.ts +605 -0
- package/dist/treedx/client.js +39 -0
- package/dist/treedx/contract.d.ts +32 -0
- package/dist/treedx/contract.js +63 -0
- package/dist/treedx/index.d.ts +3 -0
- package/dist/treedx/index.js +3 -0
- package/dist/treedx/types.d.ts +294 -7
- package/dist/treedx/types.js +44 -7
- package/dist/types/agents/agent-activity-profile.d.ts +43 -98
- package/dist/types/agents/agent-activity-profile.js +23 -0
- package/dist/types/agents/agent-trigger-kinds.d.ts +3 -5
- package/dist/types/agents/agent-trigger-kinds.js +1 -13
- package/dist/types/agents/execution-run-ref.d.ts +1 -8
- package/guarantees/agent/golden/component-boundaries.guarantee.yaml +12 -0
- package/guarantees/agent/golden/product-custody.guarantee.yaml +12 -0
- package/guarantees/agent/golden/product.guarantee.yaml +12 -0
- package/guarantees/agent/golden/scenes/component-boundaries.scene.yaml +864 -0
- package/guarantees/agent/golden/scenes/product-custody.scene.yaml +53 -0
- package/guarantees/agent/golden/scenes/product.scene.yaml +8 -0
- package/guarantees/verifiers/golden.verifiers.yaml +1474 -0
- package/package.json +72 -13
- package/tests/acceptance/golden-product.test.ts +205 -0
- package/tests/acceptance/golden-product.ts +404 -0
- package/tests/acceptance/product/base-red.ts +73 -0
- package/tests/acceptance/product/documentation-examples.ts +68 -0
- package/tests/acceptance/product/intent-runtime.ts +145 -0
- package/tests/acceptance/product/release-output.ts +160 -0
- package/tests/acceptance/product/research-artifact.ts +87 -0
- package/tests/acceptance/product/research-revision.ts +82 -0
- package/tests/acceptance/product/research-source.ts +91 -0
- package/tests/acceptance/product/test-chain.ts +192 -0
- package/treeseed.package.yaml +147 -0
- package/dist/agent-capacity/allocation.d.ts +0 -186
- package/dist/agent-capacity/allocation.js +0 -226
- package/dist/agent-capacity/artifact-mutation-receipt.d.ts +0 -49
- package/dist/agent-capacity/artifact-mutation-receipt.js +0 -36
- package/dist/agent-capacity/artifacts.d.ts +0 -107
- package/dist/agent-capacity/artifacts.js +0 -39
- package/dist/agent-capacity/authority/agent-authority-presets.d.ts +0 -13
- package/dist/agent-capacity/authority/agent-authority-presets.js +0 -106
- package/dist/agent-capacity/contracts/operations/workflow-promotion.d.ts +0 -24
- package/dist/agent-capacity/contracts/support/decision-work.d.ts +0 -251
- package/dist/agent-capacity/policy/capacity/allocations/allocation-hierarchy.d.ts +0 -29
- package/dist/agent-capacity/policy/capacity/allocations/allocation-hierarchy.js +0 -110
- package/dist/agent-capacity/validation/allocation.d.ts +0 -12
- package/dist/agent-capacity/validation/allocation.js +0 -115
- package/dist/agent-capacity/validation/workflow-promotion.d.ts +0 -2
- package/dist/agent-capacity/validation/workflow-promotion.js +0 -34
- package/dist/operator-contracts/workday-profile.d.ts +0 -72
- package/dist/operator-contracts/workday-profile.js +0 -106
- package/dist/secrets-capability/service-vault-contracts.d.ts +0 -61
- package/dist/secrets-capability/service-vault-contracts.js +0 -39
- package/dist/treedx/accounts/auth.d.ts +0 -17
- package/dist/treedx/accounts/auth.js +0 -48
- package/dist/treedx/client/accounts/contracts/auth-mode.d.ts +0 -3
- package/dist/treedx/client/accounts/contracts/auth-mode.js +0 -6
- package/dist/treedx/client/build/creation/build-context.d.ts +0 -3
- package/dist/treedx/client/build/creation/build-context.js +0 -7
- package/dist/treedx/client/build/creation/build-snapshot.d.ts +0 -3
- package/dist/treedx/client/build/creation/build-snapshot.js +0 -8
- package/dist/treedx/client/capacity/allocations/contracts/put-capability-grant.d.ts +0 -3
- package/dist/treedx/client/capacity/allocations/contracts/put-capability-grant.js +0 -7
- package/dist/treedx/client/capacity/allocations/queries/list-capability-grants.d.ts +0 -6
- package/dist/treedx/client/capacity/allocations/queries/list-capability-grants.js +0 -10
- package/dist/treedx/client/methods.d.ts +0 -102
- package/dist/treedx/client/methods.js +0 -209
- package/dist/treedx/client/persistence/contracts/restore-storage.d.ts +0 -3
- package/dist/treedx/client/persistence/contracts/restore-storage.js +0 -6
- package/dist/treedx/client/persistence/lifecycle/verify-storage-restore.d.ts +0 -3
- package/dist/treedx/client/persistence/lifecycle/verify-storage-restore.js +0 -6
- package/dist/treedx/client/repositories/creation/register-repository.d.ts +0 -3
- package/dist/treedx/client/repositories/creation/register-repository.js +0 -7
- package/dist/treedx/client/repositories/queries/get-repository.d.ts +0 -3
- package/dist/treedx/client/repositories/queries/get-repository.js +0 -7
- package/dist/treedx/client/repositories/queries/list-repository-paths.d.ts +0 -3
- package/dist/treedx/client/repositories/queries/list-repository-paths.js +0 -7
- package/dist/treedx/client/repositories/queries/list-repository-refs.d.ts +0 -3
- package/dist/treedx/client/repositories/queries/list-repository-refs.js +0 -12
- package/dist/treedx/client/repositories/queries/query-repository.d.ts +0 -3
- package/dist/treedx/client/repositories/queries/query-repository.js +0 -7
- package/dist/treedx/client/repositories/queries/read-repository-file.d.ts +0 -3
- package/dist/treedx/client/repositories/queries/read-repository-file.js +0 -6
- package/dist/treedx/client/repositories/queries/read-repository-files.d.ts +0 -3
- package/dist/treedx/client/repositories/queries/read-repository-files.js +0 -7
- package/dist/treedx/client/repositories/queries/search-repository-files.d.ts +0 -3
- package/dist/treedx/client/repositories/queries/search-repository-files.js +0 -7
- package/dist/treedx/client/support/contracts/treedx/artifacts/contracts/download-artifact.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/artifacts/contracts/download-artifact.js +0 -9
- package/dist/treedx/client/support/contracts/treedx/authorization/contracts/whoami.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/authorization/contracts/whoami.js +0 -6
- package/dist/treedx/client/support/contracts/treedx/graph/contracts/parse-context-dsl.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/graph/contracts/parse-context-dsl.js +0 -7
- package/dist/treedx/client/support/contracts/treedx/health/contracts/deep-health.d.ts +0 -5
- package/dist/treedx/client/support/contracts/treedx/health/contracts/deep-health.js +0 -7
- package/dist/treedx/client/support/contracts/treedx/health/contracts/health.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/health/contracts/health.js +0 -6
- package/dist/treedx/client/support/contracts/treedx/health/contracts/metrics.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/health/contracts/metrics.js +0 -7
- package/dist/treedx/client/support/contracts/treedx/health/contracts/prometheus-metrics.d.ts +0 -2
- package/dist/treedx/client/support/contracts/treedx/health/contracts/prometheus-metrics.js +0 -19
- package/dist/treedx/client/support/contracts/treedx/health/contracts/ready.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/health/contracts/ready.js +0 -7
- package/dist/treedx/client/support/contracts/treedx/health/contracts/status.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/health/contracts/status.js +0 -6
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/commit.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/commit.js +0 -7
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/diff.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/diff.js +0 -6
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/fetch-remote.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/fetch-remote.js +0 -7
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/push.d.ts +0 -6
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/push.js +0 -23
- package/dist/treedx/client/support/contracts/treedx/search/contracts/compact-search-index.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/search/contracts/compact-search-index.js +0 -8
- package/dist/treedx/client/support/contracts/treedx/search/contracts/search.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/search/contracts/search.js +0 -7
- package/dist/treedx/client/support/contracts/treedx/storage/contracts/backup-storage.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/storage/contracts/backup-storage.js +0 -8
- package/dist/treedx/client/support/contracts/treedx/storage/contracts/compact-storage.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/storage/contracts/compact-storage.js +0 -8
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/assert-binary-ok.d.ts +0 -2
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/assert-binary-ok.js +0 -15
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/fetch-with-timeout.d.ts +0 -2
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/fetch-with-timeout.js +0 -38
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/headers.d.ts +0 -2
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/headers.js +0 -15
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/parse-json-response.d.ts +0 -2
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/parse-json-response.js +0 -15
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/query.d.ts +0 -2
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/query.js +0 -14
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/repo-id.d.ts +0 -2
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/repo-id.js +0 -14
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/request.d.ts +0 -6
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/request.js +0 -41
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/throw-api-error.d.ts +0 -2
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/throw-api-error.js +0 -14
- package/dist/treedx/client/support/contracts/treedx/workspaces/contracts/exec.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/workspaces/contracts/exec.js +0 -7
- package/dist/treedx/client/support/creation/apply-changeset.d.ts +0 -3
- package/dist/treedx/client/support/creation/apply-changeset.js +0 -10
- package/dist/treedx/client/support/creation/apply-storage-migration.d.ts +0 -3
- package/dist/treedx/client/support/creation/apply-storage-migration.js +0 -7
- package/dist/treedx/client/support/creation/create-migration.d.ts +0 -6
- package/dist/treedx/client/support/creation/create-migration.js +0 -7
- package/dist/treedx/client/support/creation/export-artifact.d.ts +0 -3
- package/dist/treedx/client/support/creation/export-artifact.js +0 -8
- package/dist/treedx/client/support/creation/plan-storage-migration.d.ts +0 -3
- package/dist/treedx/client/support/creation/plan-storage-migration.js +0 -7
- package/dist/treedx/client/support/creation/request-binary.d.ts +0 -6
- package/dist/treedx/client/support/creation/request-binary.js +0 -42
- package/dist/treedx/client/support/creation/write-file.d.ts +0 -3
- package/dist/treedx/client/support/creation/write-file.js +0 -10
- package/dist/treedx/client/support/creation/write-files.d.ts +0 -3
- package/dist/treedx/client/support/creation/write-files.js +0 -12
- package/dist/treedx/client/support/queries/treedx/artifacts/queries/get-artifact.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/artifacts/queries/get-artifact.js +0 -7
- package/dist/treedx/client/support/queries/treedx/artifacts/queries/list-artifacts.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/artifacts/queries/list-artifacts.js +0 -7
- package/dist/treedx/client/support/queries/treedx/authorization/queries/effective-scope.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/authorization/queries/effective-scope.js +0 -9
- package/dist/treedx/client/support/queries/treedx/authorization/queries/list-capabilities.d.ts +0 -4
- package/dist/treedx/client/support/queries/treedx/authorization/queries/list-capabilities.js +0 -6
- package/dist/treedx/client/support/queries/treedx/federation/queries/get-placement.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/federation/queries/get-placement.js +0 -7
- package/dist/treedx/client/support/queries/treedx/graph/queries/get-node.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/graph/queries/get-node.js +0 -7
- package/dist/treedx/client/support/queries/treedx/graph/queries/get-related.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/graph/queries/get-related.js +0 -7
- package/dist/treedx/client/support/queries/treedx/graph/queries/list-nodes.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/graph/queries/list-nodes.js +0 -7
- package/dist/treedx/client/support/queries/treedx/repositories/queries/list-tree.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/repositories/queries/list-tree.js +0 -10
- package/dist/treedx/client/support/queries/treedx/repositories/queries/read-file.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/repositories/queries/read-file.js +0 -9
- package/dist/treedx/client/support/queries/treedx/search/queries/get-search-index-status.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/search/queries/get-search-index-status.js +0 -7
- package/dist/treedx/client/support/queries/treedx/storage/queries/get-migration.d.ts +0 -6
- package/dist/treedx/client/support/queries/treedx/storage/queries/get-migration.js +0 -7
- package/dist/treedx/client/support/queries/treedx/storage/queries/get-snapshot.d.ts +0 -6
- package/dist/treedx/client/support/queries/treedx/storage/queries/get-snapshot.js +0 -7
- package/dist/treedx/client/support/queries/treedx/storage/queries/list-storage-migrations.d.ts +0 -6
- package/dist/treedx/client/support/queries/treedx/storage/queries/list-storage-migrations.js +0 -6
- package/dist/treedx/client/support/queries/treedx/transport/queries/list-audit-events.d.ts +0 -15
- package/dist/treedx/client/support/queries/treedx/transport/queries/list-audit-events.js +0 -6
- package/dist/treedx/client/support/queries/treedx/transport/queries/list-repositories.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/transport/queries/list-repositories.js +0 -7
- package/dist/treedx/client/support/retirement/cleanup-artifacts.d.ts +0 -3
- package/dist/treedx/client/support/retirement/cleanup-artifacts.js +0 -7
- package/dist/treedx/client/support/retirement/delete-artifact.d.ts +0 -3
- package/dist/treedx/client/support/retirement/delete-artifact.js +0 -7
- package/dist/treedx/client/support/retirement/delete-file.d.ts +0 -3
- package/dist/treedx/client/support/retirement/delete-file.js +0 -10
- package/dist/treedx/client/support/retirement/rollback-storage-migration.d.ts +0 -3
- package/dist/treedx/client/support/retirement/rollback-storage-migration.js +0 -7
- package/dist/treedx/client/support/updates/patch-file.d.ts +0 -3
- package/dist/treedx/client/support/updates/patch-file.js +0 -10
- package/dist/treedx/client/support/updates/refresh-search-index.d.ts +0 -3
- package/dist/treedx/client/support/updates/refresh-search-index.js +0 -8
- package/dist/treedx/client/treedx/blobs/contracts/download-blob.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/contracts/download-blob.js +0 -6
- package/dist/treedx/client/treedx/blobs/creation/create-blob-upload.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/creation/create-blob-upload.js +0 -8
- package/dist/treedx/client/treedx/blobs/creation/request-blob-download.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/creation/request-blob-download.js +0 -27
- package/dist/treedx/client/treedx/blobs/creation/request-blob-upload.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/creation/request-blob-upload.js +0 -41
- package/dist/treedx/client/treedx/blobs/creation/upload-blob-part.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/creation/upload-blob-part.js +0 -27
- package/dist/treedx/client/treedx/blobs/creation/upload-blob.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/creation/upload-blob.js +0 -6
- package/dist/treedx/client/treedx/blobs/creation/write-blob.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/creation/write-blob.js +0 -8
- package/dist/treedx/client/treedx/blobs/lifecycle/complete-blob-upload.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/lifecycle/complete-blob-upload.js +0 -8
- package/dist/treedx/client/treedx/blobs/queries/read-blob.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/queries/read-blob.js +0 -10
- package/dist/treedx/client/treedx/blobs/retirement/abort-blob-upload.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/retirement/abort-blob-upload.js +0 -7
- package/dist/treedx/client/treedx/blobs/retirement/delete-blob.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/retirement/delete-blob.js +0 -8
- package/dist/treedx/client/treedx/federation/contracts/federated-query.d.ts +0 -3
- package/dist/treedx/client/treedx/federation/contracts/federated-query.js +0 -7
- package/dist/treedx/client/treedx/federation/creation/plan-federated-query.d.ts +0 -3
- package/dist/treedx/client/treedx/federation/creation/plan-federated-query.js +0 -6
- package/dist/treedx/client/treedx/federation/queries/check-mirror-health.d.ts +0 -3
- package/dist/treedx/client/treedx/federation/queries/check-mirror-health.js +0 -7
- package/dist/treedx/client/treedx/federation/updates/promote-mirror.d.ts +0 -3
- package/dist/treedx/client/treedx/federation/updates/promote-mirror.js +0 -7
- package/dist/treedx/client/treedx/federation/updates/sync-mirror.d.ts +0 -3
- package/dist/treedx/client/treedx/federation/updates/sync-mirror.js +0 -7
- package/dist/treedx/client/treedx/graph/contracts/federated-context.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/contracts/federated-context.js +0 -7
- package/dist/treedx/client/treedx/graph/contracts/federated-graph.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/contracts/federated-graph.js +0 -7
- package/dist/treedx/client/treedx/graph/contracts/graph-search.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/contracts/graph-search.js +0 -8
- package/dist/treedx/client/treedx/graph/queries/get-graph-node.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/queries/get-graph-node.js +0 -10
- package/dist/treedx/client/treedx/graph/queries/get-graph-refresh-job.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/queries/get-graph-refresh-job.js +0 -7
- package/dist/treedx/client/treedx/graph/queries/get-subgraph.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/queries/get-subgraph.js +0 -7
- package/dist/treedx/client/treedx/graph/queries/query-graph.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/queries/query-graph.js +0 -7
- package/dist/treedx/client/treedx/graph/queries/search-graph-entities.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/queries/search-graph-entities.js +0 -6
- package/dist/treedx/client/treedx/graph/queries/search-graph-files.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/queries/search-graph-files.js +0 -6
- package/dist/treedx/client/treedx/graph/queries/search-graph-sections.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/queries/search-graph-sections.js +0 -6
- package/dist/treedx/client/treedx/graph/updates/refresh-graph.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/updates/refresh-graph.js +0 -7
- package/dist/treedx/client/treedx/search/contracts/federated-search.d.ts +0 -3
- package/dist/treedx/client/treedx/search/contracts/federated-search.js +0 -7
- package/dist/treedx/client/treedx/workspaces/creation/create-workspace.d.ts +0 -3
- package/dist/treedx/client/treedx/workspaces/creation/create-workspace.js +0 -7
- package/dist/treedx/client/treedx/workspaces/retirement/abandon-workspace.d.ts +0 -3
- package/dist/treedx/client/treedx/workspaces/retirement/abandon-workspace.js +0 -12
- package/dist/treedx/client/treedx/workspaces/retirement/close-workspace.d.ts +0 -2
- package/dist/treedx/client/treedx/workspaces/retirement/close-workspace.js +0 -6
- package/dist/treedx/generated/openapi-types.d.ts +0 -3662
- package/dist/treedx/generated/openapi-types.js +0 -0
- package/dist/treedx/support/client.d.ts +0 -251
- package/dist/treedx/support/client.js +0 -252
- package/dist/treedx/support/errors.d.ts +0 -13
- package/dist/treedx/support/errors.js +0 -17
- package/dist/treedx/types/tree-dx-actor.d.ts +0 -209
- package/dist/treedx/types/tree-dx-actor.js +0 -8
- package/dist/treedx/types/tree-dx-artifact-list-response.d.ts +0 -13
- package/dist/treedx/types/tree-dx-artifact-list-response.js +0 -0
- package/dist/treedx/types/tree-dx-changeset.d.ts +0 -51
- package/dist/treedx/types/tree-dx-changeset.js +0 -6
- package/dist/treedx/types/tree-dx-context-request.d.ts +0 -245
- package/dist/treedx/types/tree-dx-context-request.js +0 -0
- package/dist/treedx/types/tree-dx-exec-result.d.ts +0 -249
- package/dist/treedx/types/tree-dx-exec-result.js +0 -0
- package/dist/treedx/types/tree-dx-list-tree-request.d.ts +0 -222
- package/dist/treedx/types/tree-dx-list-tree-request.js +0 -0
- package/dist/treedx/types/tree-dx-push-request.d.ts +0 -229
- package/dist/treedx/types/tree-dx-push-request.js +0 -0
- /package/dist/{agent-capacity/contracts/operations/workflow-promotion.js → site-contracts/cloudflare.js} +0 -0
- /package/dist/{agent-capacity/contracts/support/decision-work.js → site-contracts/platform.js} +0 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { TREEDX_OPENAPI_CONTRACT, TREEDX_OPENAPI_OPERATIONS } from "@treeseed/treedx";
|
|
2
|
+
import { CONTROL_PLANE_CATALOG } from "../operator-contracts/control-plane-operations.js";
|
|
3
|
+
import { standardsSha256 } from "../standards/canonicalize.js";
|
|
4
|
+
const TREESEED_TREEDX_SERVICE_CONTRACT_SCHEMA = "treeseed.treedx-service-contract/v1";
|
|
5
|
+
const TREESEED_PRIVATE_TREEDX_OPERATION_IDS = /* @__PURE__ */ new Set([
|
|
6
|
+
"createDevToken",
|
|
7
|
+
"putCapabilityGrant",
|
|
8
|
+
"listCapabilityGrants",
|
|
9
|
+
"listAuditEvents",
|
|
10
|
+
"proxyInternalFederationRequest",
|
|
11
|
+
"exportInternalFederationMirror",
|
|
12
|
+
"importInternalFederationMirror",
|
|
13
|
+
"putRepositoryPlacement",
|
|
14
|
+
"createMigration",
|
|
15
|
+
"getMigration",
|
|
16
|
+
"putMirror",
|
|
17
|
+
"syncMirror",
|
|
18
|
+
"promoteMirror",
|
|
19
|
+
"execWorkspace"
|
|
20
|
+
]);
|
|
21
|
+
function treeDxProxyOperationMapping() {
|
|
22
|
+
return CONTROL_PLANE_CATALOG.operations.filter((operation) => operation.upstream?.service === "treedx").map((operation) => ({
|
|
23
|
+
treeseedOperationId: operation.operationId,
|
|
24
|
+
treedxOperationId: operation.upstream.operationId,
|
|
25
|
+
contractVersion: operation.upstream.contractVersion,
|
|
26
|
+
contractDigest: operation.upstream.contractDigest
|
|
27
|
+
})).sort((left, right) => left.treeseedOperationId.localeCompare(right.treeseedOperationId));
|
|
28
|
+
}
|
|
29
|
+
function validateTreeDxProxyOperationMapping() {
|
|
30
|
+
const authoritativeIds = new Set(TREEDX_OPENAPI_OPERATIONS.map((operation) => operation.operationId));
|
|
31
|
+
const diagnostics = [];
|
|
32
|
+
for (const mapping of treeDxProxyOperationMapping()) {
|
|
33
|
+
if (!authoritativeIds.has(mapping.treedxOperationId)) diagnostics.push(`unknown_upstream_operation:${mapping.treedxOperationId}`);
|
|
34
|
+
if (TREESEED_PRIVATE_TREEDX_OPERATION_IDS.has(mapping.treedxOperationId)) diagnostics.push(`private_upstream_operation:${mapping.treedxOperationId}`);
|
|
35
|
+
if (mapping.contractVersion !== TREEDX_OPENAPI_CONTRACT.openapiVersion) diagnostics.push(`contract_version_drift:${mapping.treeseedOperationId}`);
|
|
36
|
+
if (mapping.contractDigest !== TREEDX_OPENAPI_CONTRACT.openapiSha256) diagnostics.push(`contract_digest_drift:${mapping.treeseedOperationId}`);
|
|
37
|
+
}
|
|
38
|
+
return diagnostics.sort();
|
|
39
|
+
}
|
|
40
|
+
async function createTreeDxServiceContractReceipt(controlPlaneCatalogDigest, evidence) {
|
|
41
|
+
const operationMapping = treeDxProxyOperationMapping();
|
|
42
|
+
return {
|
|
43
|
+
schema: TREESEED_TREEDX_SERVICE_CONTRACT_SCHEMA,
|
|
44
|
+
treedxPackageVersion: TREEDX_OPENAPI_CONTRACT.packageVersion,
|
|
45
|
+
treedxOpenapiVersion: TREEDX_OPENAPI_CONTRACT.openapiVersion,
|
|
46
|
+
treedxOpenapiDigest: TREEDX_OPENAPI_CONTRACT.openapiSha256,
|
|
47
|
+
treedxOperationInventoryDigest: TREEDX_OPENAPI_CONTRACT.operationInventorySha256,
|
|
48
|
+
treedxGeneratedTypesDigest: TREEDX_OPENAPI_CONTRACT.generatedTypesSha256,
|
|
49
|
+
treedxSourceCommit: evidence.treedxSourceCommit,
|
|
50
|
+
treedxPackageArtifactDigest: evidence.treedxPackageArtifactDigest,
|
|
51
|
+
controlPlaneCatalogDigest,
|
|
52
|
+
operationMapping,
|
|
53
|
+
operationMappingDigest: await standardsSha256(operationMapping),
|
|
54
|
+
compatibility: TREEDX_OPENAPI_CONTRACT.compatibility
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
TREESEED_PRIVATE_TREEDX_OPERATION_IDS,
|
|
59
|
+
TREESEED_TREEDX_SERVICE_CONTRACT_SCHEMA,
|
|
60
|
+
createTreeDxServiceContractReceipt,
|
|
61
|
+
treeDxProxyOperationMapping,
|
|
62
|
+
validateTreeDxProxyOperationMapping
|
|
63
|
+
};
|
package/dist/treedx/types.d.ts
CHANGED
|
@@ -1,7 +1,294 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** TreeSeed's governed service custody records, not product-neutral TreeDX models. */
|
|
3
|
+
export declare const treeDxWorkspaceSchema: z.ZodObject<{
|
|
4
|
+
schemaVersion: z.ZodLiteral<"treeseed.treedx-workspace/v1">;
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
teamId: z.ZodString;
|
|
7
|
+
projectId: z.ZodString;
|
|
8
|
+
repository: z.ZodString;
|
|
9
|
+
baseCommit: z.ZodString;
|
|
10
|
+
headCommit: z.ZodString;
|
|
11
|
+
assignmentId: z.ZodString;
|
|
12
|
+
status: z.ZodEnum<["open", "submitted", "accepted", "rejected", "abandoned"]>;
|
|
13
|
+
createdAt: z.ZodString;
|
|
14
|
+
submittedAt: z.ZodOptional<z.ZodString>;
|
|
15
|
+
closedAt: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, "strict", z.ZodTypeAny, {
|
|
17
|
+
status: "accepted" | "rejected" | "open" | "abandoned" | "submitted";
|
|
18
|
+
id: string;
|
|
19
|
+
schemaVersion: "treeseed.treedx-workspace/v1";
|
|
20
|
+
repository: string;
|
|
21
|
+
createdAt: string;
|
|
22
|
+
assignmentId: string;
|
|
23
|
+
teamId: string;
|
|
24
|
+
projectId: string;
|
|
25
|
+
baseCommit: string;
|
|
26
|
+
headCommit: string;
|
|
27
|
+
closedAt?: string | undefined;
|
|
28
|
+
submittedAt?: string | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
status: "accepted" | "rejected" | "open" | "abandoned" | "submitted";
|
|
31
|
+
id: string;
|
|
32
|
+
schemaVersion: "treeseed.treedx-workspace/v1";
|
|
33
|
+
repository: string;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
assignmentId: string;
|
|
36
|
+
teamId: string;
|
|
37
|
+
projectId: string;
|
|
38
|
+
baseCommit: string;
|
|
39
|
+
headCommit: string;
|
|
40
|
+
closedAt?: string | undefined;
|
|
41
|
+
submittedAt?: string | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
export declare const treeDxWorkspaceReviewSchema: z.ZodObject<{
|
|
44
|
+
schemaVersion: z.ZodLiteral<"treeseed.treedx-workspace-review/v1">;
|
|
45
|
+
id: z.ZodString;
|
|
46
|
+
workspaceId: z.ZodString;
|
|
47
|
+
candidateCommit: z.ZodString;
|
|
48
|
+
decisionRef: z.ZodEffects<z.ZodObject<{
|
|
49
|
+
store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
|
|
50
|
+
model: z.ZodString;
|
|
51
|
+
id: z.ZodString;
|
|
52
|
+
revision: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
digest: z.ZodOptional<z.ZodString>;
|
|
54
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
55
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
56
|
+
path: z.ZodOptional<z.ZodString>;
|
|
57
|
+
anchor: z.ZodOptional<z.ZodString>;
|
|
58
|
+
startLine: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
url: z.ZodOptional<z.ZodString>;
|
|
61
|
+
}, "strict", z.ZodTypeAny, {
|
|
62
|
+
id: string;
|
|
63
|
+
model: string;
|
|
64
|
+
store: "url" | "treedx" | "git" | "postgresql";
|
|
65
|
+
path?: string | undefined;
|
|
66
|
+
anchor?: string | undefined;
|
|
67
|
+
url?: string | undefined;
|
|
68
|
+
commit?: string | undefined;
|
|
69
|
+
repository?: string | undefined;
|
|
70
|
+
revision?: number | undefined;
|
|
71
|
+
digest?: string | undefined;
|
|
72
|
+
startLine?: number | undefined;
|
|
73
|
+
endLine?: number | undefined;
|
|
74
|
+
}, {
|
|
75
|
+
id: string;
|
|
76
|
+
model: string;
|
|
77
|
+
store: "url" | "treedx" | "git" | "postgresql";
|
|
78
|
+
path?: string | undefined;
|
|
79
|
+
anchor?: string | undefined;
|
|
80
|
+
url?: string | undefined;
|
|
81
|
+
commit?: string | undefined;
|
|
82
|
+
repository?: string | undefined;
|
|
83
|
+
revision?: number | undefined;
|
|
84
|
+
digest?: string | undefined;
|
|
85
|
+
startLine?: number | undefined;
|
|
86
|
+
endLine?: number | undefined;
|
|
87
|
+
}>, {
|
|
88
|
+
id: string;
|
|
89
|
+
model: string;
|
|
90
|
+
store: "url" | "treedx" | "git" | "postgresql";
|
|
91
|
+
path?: string | undefined;
|
|
92
|
+
anchor?: string | undefined;
|
|
93
|
+
url?: string | undefined;
|
|
94
|
+
commit?: string | undefined;
|
|
95
|
+
repository?: string | undefined;
|
|
96
|
+
revision?: number | undefined;
|
|
97
|
+
digest?: string | undefined;
|
|
98
|
+
startLine?: number | undefined;
|
|
99
|
+
endLine?: number | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
id: string;
|
|
102
|
+
model: string;
|
|
103
|
+
store: "url" | "treedx" | "git" | "postgresql";
|
|
104
|
+
path?: string | undefined;
|
|
105
|
+
anchor?: string | undefined;
|
|
106
|
+
url?: string | undefined;
|
|
107
|
+
commit?: string | undefined;
|
|
108
|
+
repository?: string | undefined;
|
|
109
|
+
revision?: number | undefined;
|
|
110
|
+
digest?: string | undefined;
|
|
111
|
+
startLine?: number | undefined;
|
|
112
|
+
endLine?: number | undefined;
|
|
113
|
+
}>;
|
|
114
|
+
status: z.ZodEnum<["approved", "request-changes"]>;
|
|
115
|
+
decidedAt: z.ZodString;
|
|
116
|
+
}, "strict", z.ZodTypeAny, {
|
|
117
|
+
status: "approved" | "request-changes";
|
|
118
|
+
id: string;
|
|
119
|
+
schemaVersion: "treeseed.treedx-workspace-review/v1";
|
|
120
|
+
workspaceId: string;
|
|
121
|
+
decidedAt: string;
|
|
122
|
+
candidateCommit: string;
|
|
123
|
+
decisionRef: {
|
|
124
|
+
id: string;
|
|
125
|
+
model: string;
|
|
126
|
+
store: "url" | "treedx" | "git" | "postgresql";
|
|
127
|
+
path?: string | undefined;
|
|
128
|
+
anchor?: string | undefined;
|
|
129
|
+
url?: string | undefined;
|
|
130
|
+
commit?: string | undefined;
|
|
131
|
+
repository?: string | undefined;
|
|
132
|
+
revision?: number | undefined;
|
|
133
|
+
digest?: string | undefined;
|
|
134
|
+
startLine?: number | undefined;
|
|
135
|
+
endLine?: number | undefined;
|
|
136
|
+
};
|
|
137
|
+
}, {
|
|
138
|
+
status: "approved" | "request-changes";
|
|
139
|
+
id: string;
|
|
140
|
+
schemaVersion: "treeseed.treedx-workspace-review/v1";
|
|
141
|
+
workspaceId: string;
|
|
142
|
+
decidedAt: string;
|
|
143
|
+
candidateCommit: string;
|
|
144
|
+
decisionRef: {
|
|
145
|
+
id: string;
|
|
146
|
+
model: string;
|
|
147
|
+
store: "url" | "treedx" | "git" | "postgresql";
|
|
148
|
+
path?: string | undefined;
|
|
149
|
+
anchor?: string | undefined;
|
|
150
|
+
url?: string | undefined;
|
|
151
|
+
commit?: string | undefined;
|
|
152
|
+
repository?: string | undefined;
|
|
153
|
+
revision?: number | undefined;
|
|
154
|
+
digest?: string | undefined;
|
|
155
|
+
startLine?: number | undefined;
|
|
156
|
+
endLine?: number | undefined;
|
|
157
|
+
};
|
|
158
|
+
}>;
|
|
159
|
+
export declare const treeDxPublicationReceiptSchema: z.ZodObject<{
|
|
160
|
+
schemaVersion: z.ZodLiteral<"treeseed.treedx-publication-receipt/v1">;
|
|
161
|
+
id: z.ZodString;
|
|
162
|
+
projectId: z.ZodString;
|
|
163
|
+
repository: z.ZodString;
|
|
164
|
+
sourceCommit: z.ZodString;
|
|
165
|
+
publishedCommit: z.ZodString;
|
|
166
|
+
destination: z.ZodString;
|
|
167
|
+
url: z.ZodOptional<z.ZodString>;
|
|
168
|
+
decisionRef: z.ZodEffects<z.ZodObject<{
|
|
169
|
+
store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
|
|
170
|
+
model: z.ZodString;
|
|
171
|
+
id: z.ZodString;
|
|
172
|
+
revision: z.ZodOptional<z.ZodNumber>;
|
|
173
|
+
digest: z.ZodOptional<z.ZodString>;
|
|
174
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
175
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
176
|
+
path: z.ZodOptional<z.ZodString>;
|
|
177
|
+
anchor: z.ZodOptional<z.ZodString>;
|
|
178
|
+
startLine: z.ZodOptional<z.ZodNumber>;
|
|
179
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
180
|
+
url: z.ZodOptional<z.ZodString>;
|
|
181
|
+
}, "strict", z.ZodTypeAny, {
|
|
182
|
+
id: string;
|
|
183
|
+
model: string;
|
|
184
|
+
store: "url" | "treedx" | "git" | "postgresql";
|
|
185
|
+
path?: string | undefined;
|
|
186
|
+
anchor?: string | undefined;
|
|
187
|
+
url?: string | undefined;
|
|
188
|
+
commit?: string | undefined;
|
|
189
|
+
repository?: string | undefined;
|
|
190
|
+
revision?: number | undefined;
|
|
191
|
+
digest?: string | undefined;
|
|
192
|
+
startLine?: number | undefined;
|
|
193
|
+
endLine?: number | undefined;
|
|
194
|
+
}, {
|
|
195
|
+
id: string;
|
|
196
|
+
model: string;
|
|
197
|
+
store: "url" | "treedx" | "git" | "postgresql";
|
|
198
|
+
path?: string | undefined;
|
|
199
|
+
anchor?: string | undefined;
|
|
200
|
+
url?: string | undefined;
|
|
201
|
+
commit?: string | undefined;
|
|
202
|
+
repository?: string | undefined;
|
|
203
|
+
revision?: number | undefined;
|
|
204
|
+
digest?: string | undefined;
|
|
205
|
+
startLine?: number | undefined;
|
|
206
|
+
endLine?: number | undefined;
|
|
207
|
+
}>, {
|
|
208
|
+
id: string;
|
|
209
|
+
model: string;
|
|
210
|
+
store: "url" | "treedx" | "git" | "postgresql";
|
|
211
|
+
path?: string | undefined;
|
|
212
|
+
anchor?: string | undefined;
|
|
213
|
+
url?: string | undefined;
|
|
214
|
+
commit?: string | undefined;
|
|
215
|
+
repository?: string | undefined;
|
|
216
|
+
revision?: number | undefined;
|
|
217
|
+
digest?: string | undefined;
|
|
218
|
+
startLine?: number | undefined;
|
|
219
|
+
endLine?: number | undefined;
|
|
220
|
+
}, {
|
|
221
|
+
id: string;
|
|
222
|
+
model: string;
|
|
223
|
+
store: "url" | "treedx" | "git" | "postgresql";
|
|
224
|
+
path?: string | undefined;
|
|
225
|
+
anchor?: string | undefined;
|
|
226
|
+
url?: string | undefined;
|
|
227
|
+
commit?: string | undefined;
|
|
228
|
+
repository?: string | undefined;
|
|
229
|
+
revision?: number | undefined;
|
|
230
|
+
digest?: string | undefined;
|
|
231
|
+
startLine?: number | undefined;
|
|
232
|
+
endLine?: number | undefined;
|
|
233
|
+
}>;
|
|
234
|
+
publishedAt: z.ZodString;
|
|
235
|
+
}, "strict", z.ZodTypeAny, {
|
|
236
|
+
id: string;
|
|
237
|
+
schemaVersion: "treeseed.treedx-publication-receipt/v1";
|
|
238
|
+
repository: string;
|
|
239
|
+
projectId: string;
|
|
240
|
+
decisionRef: {
|
|
241
|
+
id: string;
|
|
242
|
+
model: string;
|
|
243
|
+
store: "url" | "treedx" | "git" | "postgresql";
|
|
244
|
+
path?: string | undefined;
|
|
245
|
+
anchor?: string | undefined;
|
|
246
|
+
url?: string | undefined;
|
|
247
|
+
commit?: string | undefined;
|
|
248
|
+
repository?: string | undefined;
|
|
249
|
+
revision?: number | undefined;
|
|
250
|
+
digest?: string | undefined;
|
|
251
|
+
startLine?: number | undefined;
|
|
252
|
+
endLine?: number | undefined;
|
|
253
|
+
};
|
|
254
|
+
sourceCommit: string;
|
|
255
|
+
publishedCommit: string;
|
|
256
|
+
destination: string;
|
|
257
|
+
publishedAt: string;
|
|
258
|
+
url?: string | undefined;
|
|
259
|
+
}, {
|
|
260
|
+
id: string;
|
|
261
|
+
schemaVersion: "treeseed.treedx-publication-receipt/v1";
|
|
262
|
+
repository: string;
|
|
263
|
+
projectId: string;
|
|
264
|
+
decisionRef: {
|
|
265
|
+
id: string;
|
|
266
|
+
model: string;
|
|
267
|
+
store: "url" | "treedx" | "git" | "postgresql";
|
|
268
|
+
path?: string | undefined;
|
|
269
|
+
anchor?: string | undefined;
|
|
270
|
+
url?: string | undefined;
|
|
271
|
+
commit?: string | undefined;
|
|
272
|
+
repository?: string | undefined;
|
|
273
|
+
revision?: number | undefined;
|
|
274
|
+
digest?: string | undefined;
|
|
275
|
+
startLine?: number | undefined;
|
|
276
|
+
endLine?: number | undefined;
|
|
277
|
+
};
|
|
278
|
+
sourceCommit: string;
|
|
279
|
+
publishedCommit: string;
|
|
280
|
+
destination: string;
|
|
281
|
+
publishedAt: string;
|
|
282
|
+
url?: string | undefined;
|
|
283
|
+
}>;
|
|
284
|
+
export type TreeDxWorkspaceRecord = z.infer<typeof treeDxWorkspaceSchema>;
|
|
285
|
+
export type TreeDxWorkspaceReviewRecord = z.infer<typeof treeDxWorkspaceReviewSchema>;
|
|
286
|
+
export type TreeDxPublicationReceipt = z.infer<typeof treeDxPublicationReceiptSchema>;
|
|
287
|
+
export type { TreeDxApiErrorPayload, TreeDxCursor, TreeDxJson, TreeDxPage, TreeDxRecord, } from '@treeseed/treedx/treedx/types';
|
|
288
|
+
export interface TreeSeedTreeDxResourceLink {
|
|
289
|
+
type: 'resource_link';
|
|
290
|
+
uri: `treeseed://dx/projects/${string}/${string}`;
|
|
291
|
+
name: string;
|
|
292
|
+
mimeType?: string;
|
|
293
|
+
expiresAt?: string;
|
|
294
|
+
}
|
package/dist/treedx/types.js
CHANGED
|
@@ -1,7 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { assignmentReferenceSchema, exactEntityReferenceSchema, leaseSchema } from "../agent-capacity/contracts/capacity/assignments/agent-execution.js";
|
|
3
|
+
const identifier = leaseSchema.shape.id, timestamp = leaseSchema.shape.acquiredAt;
|
|
4
|
+
const commit = assignmentReferenceSchema.options[0].shape.commit;
|
|
5
|
+
const treeDxWorkspaceSchema = z.object({
|
|
6
|
+
schemaVersion: z.literal("treeseed.treedx-workspace/v1"),
|
|
7
|
+
id: identifier,
|
|
8
|
+
teamId: identifier,
|
|
9
|
+
projectId: identifier,
|
|
10
|
+
repository: z.string().min(1),
|
|
11
|
+
baseCommit: commit,
|
|
12
|
+
headCommit: commit,
|
|
13
|
+
assignmentId: identifier,
|
|
14
|
+
status: z.enum(["open", "submitted", "accepted", "rejected", "abandoned"]),
|
|
15
|
+
createdAt: timestamp,
|
|
16
|
+
submittedAt: timestamp.optional(),
|
|
17
|
+
closedAt: timestamp.optional()
|
|
18
|
+
}).strict();
|
|
19
|
+
const treeDxWorkspaceReviewSchema = z.object({
|
|
20
|
+
schemaVersion: z.literal("treeseed.treedx-workspace-review/v1"),
|
|
21
|
+
id: identifier,
|
|
22
|
+
workspaceId: identifier,
|
|
23
|
+
candidateCommit: commit,
|
|
24
|
+
decisionRef: exactEntityReferenceSchema,
|
|
25
|
+
status: z.enum(["approved", "request-changes"]),
|
|
26
|
+
decidedAt: timestamp
|
|
27
|
+
}).strict();
|
|
28
|
+
const treeDxPublicationReceiptSchema = z.object({
|
|
29
|
+
schemaVersion: z.literal("treeseed.treedx-publication-receipt/v1"),
|
|
30
|
+
id: identifier,
|
|
31
|
+
projectId: identifier,
|
|
32
|
+
repository: z.string().min(1),
|
|
33
|
+
sourceCommit: commit,
|
|
34
|
+
publishedCommit: commit,
|
|
35
|
+
destination: z.string().min(1),
|
|
36
|
+
url: z.string().url().optional(),
|
|
37
|
+
decisionRef: exactEntityReferenceSchema,
|
|
38
|
+
publishedAt: timestamp
|
|
39
|
+
}).strict();
|
|
40
|
+
export {
|
|
41
|
+
treeDxPublicationReceiptSchema,
|
|
42
|
+
treeDxWorkspaceReviewSchema,
|
|
43
|
+
treeDxWorkspaceSchema
|
|
44
|
+
};
|
|
@@ -1,91 +1,57 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { AgentActivityType, AgentReasoningEffort, EngineeringHandlerKind, ExecutionProviderKind, ExecutionProviderPressure, ExecutionProviderQuotaVisibility, ExecutionResourceNeedKind } from './agent-trigger-kinds.js';
|
|
2
|
+
export declare const AGENT_CONTENT_MODELS: readonly ["agent", "book", "knowledge", "objective", "discussion", "discussion-message", "proposal", "question", "note", "decision"];
|
|
3
|
+
export type AgentContentModel = (typeof AGENT_CONTENT_MODELS)[number];
|
|
4
|
+
export declare const AGENT_TOOL_GROUPS: readonly ["discussion", "source.read", "source.write", "verification", "release"];
|
|
5
|
+
export type AgentToolGroup = (typeof AGENT_TOOL_GROUPS)[number];
|
|
6
|
+
export interface AgentDependencySelectors {
|
|
7
|
+
agents?: string[];
|
|
8
|
+
events?: Array<'workday-closing'>;
|
|
9
|
+
}
|
|
10
|
+
export interface AgentPermissionSet {
|
|
11
|
+
content: {
|
|
12
|
+
read: AgentContentModel[];
|
|
13
|
+
write: AgentContentModel[];
|
|
14
|
+
};
|
|
15
|
+
tools: AgentToolGroup[];
|
|
16
|
+
}
|
|
17
|
+
export interface AgentPrompt {
|
|
18
|
+
system: string;
|
|
19
|
+
instructions?: string[];
|
|
6
20
|
}
|
|
7
21
|
export interface AgentActivityProfile {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
prompt:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
authorityPresets?: AgentAuthorityPresetId[];
|
|
15
|
-
contextQueryRefs?: AgentContentRevisionRef[];
|
|
16
|
-
contextQuerySetRefs?: AgentContentRevisionRef[];
|
|
17
|
-
instructionTemplateRefs?: AgentContentRevisionRef[];
|
|
18
|
-
artifactTriggers?: Array<{
|
|
19
|
-
event: string;
|
|
20
|
-
artifactKind: string;
|
|
21
|
-
model?: string;
|
|
22
|
-
required?: boolean;
|
|
23
|
-
}>;
|
|
24
|
-
closeoutPolicy?: {
|
|
25
|
-
warningSeconds?: number;
|
|
26
|
-
summaryRequired?: boolean;
|
|
27
|
-
requiredArtifactKinds?: string[];
|
|
28
|
-
blockOnOpenQuestions?: boolean;
|
|
29
|
-
};
|
|
30
|
-
providerOverrides?: {
|
|
31
|
-
requiredCapabilities?: string[];
|
|
32
|
-
disallowedProviderIds?: string[];
|
|
33
|
-
promptRef?: string;
|
|
34
|
-
instructionTemplateRefs?: AgentContentRevisionRef[];
|
|
35
|
-
maxRuntimeSeconds?: number;
|
|
36
|
-
maxTotalTokens?: number;
|
|
37
|
-
maxCostAmount?: number;
|
|
38
|
-
};
|
|
39
|
-
tools: AgentToolPolicy;
|
|
40
|
-
signals?: AgentSignalPolicy;
|
|
41
|
-
outputs: AgentOutputContract;
|
|
42
|
-
planningIntent?: AgentActivityPlanningIntent;
|
|
43
|
-
questionPolicy?: AgentQuestionPolicy;
|
|
44
|
-
execution?: AgentActivityExecutionConfig;
|
|
22
|
+
handler: string;
|
|
23
|
+
dependsOn?: AgentDependencySelectors;
|
|
24
|
+
permissions: AgentPermissionSet;
|
|
25
|
+
prompt: AgentPrompt;
|
|
26
|
+
additionalContext?: string[];
|
|
27
|
+
parameters?: Record<string, unknown>;
|
|
45
28
|
}
|
|
46
29
|
export type AgentActivityProfilesConfiguration = Partial<Record<AgentActivityType, AgentActivityProfile>>;
|
|
47
|
-
export interface
|
|
48
|
-
|
|
49
|
-
responseStyle?: string;
|
|
50
|
-
promptTask?: string;
|
|
51
|
-
requiredCapabilities?: string[];
|
|
52
|
-
maxRuntimeSeconds?: number;
|
|
53
|
-
maxTotalTokens?: number;
|
|
54
|
-
warningTokens?: number;
|
|
55
|
-
maxCostAmount?: number;
|
|
56
|
-
costCurrency?: string;
|
|
57
|
-
toolAdditions?: string[];
|
|
58
|
-
contextModels?: string[];
|
|
59
|
-
}
|
|
60
|
-
export interface AgentCapability {
|
|
30
|
+
export interface AgentDefinition {
|
|
31
|
+
schemaVersion: 'treeseed.agent/v1';
|
|
61
32
|
id: string;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
reviews?: string[];
|
|
66
|
-
metadata?: Record<string, unknown>;
|
|
67
|
-
}
|
|
68
|
-
export interface AgentDefinitionIdentity {
|
|
33
|
+
name: string;
|
|
34
|
+
agentClass: string;
|
|
35
|
+
groupIds?: string[];
|
|
69
36
|
purpose: string;
|
|
70
37
|
responsibilities: string[];
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
title: string;
|
|
76
|
-
agentClass: string;
|
|
77
|
-
template?: string;
|
|
78
|
-
identity: AgentDefinitionIdentity;
|
|
79
|
-
capabilities: AgentCapability[];
|
|
38
|
+
capabilities: string[];
|
|
39
|
+
context: {
|
|
40
|
+
include: string[];
|
|
41
|
+
};
|
|
80
42
|
activityProfiles: Partial<Record<AgentActivityType, AgentActivityProfile>>;
|
|
81
|
-
|
|
43
|
+
}
|
|
44
|
+
/** @deprecated Transitional read-only shape used only by execution-run receipts. */
|
|
45
|
+
export type AgentDefinitionIdentity = Pick<AgentDefinition, 'purpose' | 'responsibilities'>;
|
|
46
|
+
export interface AgentCapabilityRequirement {
|
|
47
|
+
capabilityId: string;
|
|
48
|
+
versionRange: string;
|
|
49
|
+
requirement: 'required' | 'preferred';
|
|
82
50
|
}
|
|
83
51
|
export interface AgentExecutionConfig {
|
|
84
|
-
provider?: string;
|
|
85
|
-
model?: string;
|
|
86
52
|
approvalPolicy?: 'never' | 'on_request' | 'always' | string;
|
|
87
53
|
sandboxMode?: 'read_only' | 'workspace_write' | string;
|
|
88
|
-
reasoningEffort?:
|
|
54
|
+
reasoningEffort?: AgentReasoningEffort;
|
|
89
55
|
allowedPaths?: string[];
|
|
90
56
|
forbiddenPaths?: string[];
|
|
91
57
|
worktree?: {
|
|
@@ -99,30 +65,10 @@ export interface AgentExecutionConfig {
|
|
|
99
65
|
leaseSeconds: number;
|
|
100
66
|
retryLimit: number;
|
|
101
67
|
branchPrefix: string;
|
|
102
|
-
providerProfile?: AgentProviderProfile;
|
|
103
68
|
}
|
|
104
69
|
export type AgentProviderFallbackPolicy = 'allow_substitution' | 'require_same_model_class' | 'fail_if_unavailable' | 'ask_for_approval';
|
|
105
|
-
export interface AgentExecutionProviderPreference {
|
|
106
|
-
providerId?: string;
|
|
107
|
-
provider?: string;
|
|
108
|
-
model?: string;
|
|
109
|
-
modelClass?: string;
|
|
110
|
-
weight: number;
|
|
111
|
-
reason?: string;
|
|
112
|
-
}
|
|
113
|
-
export interface AgentProviderFallback {
|
|
114
|
-
providerId?: string;
|
|
115
|
-
provider?: string;
|
|
116
|
-
model?: string;
|
|
117
|
-
modelClass?: string;
|
|
118
|
-
maxQualityPenalty?: number;
|
|
119
|
-
}
|
|
120
70
|
export interface AgentProviderProfile {
|
|
121
|
-
|
|
122
|
-
preferredExecutionProviders: AgentExecutionProviderPreference[];
|
|
123
|
-
acceptableFallbacks: AgentProviderFallback[];
|
|
124
|
-
disallowedProviders?: string[];
|
|
125
|
-
disallowedRegions?: string[];
|
|
71
|
+
capabilityRequirements: AgentCapabilityRequirement[];
|
|
126
72
|
fallbackPolicy: AgentProviderFallbackPolicy;
|
|
127
73
|
}
|
|
128
74
|
export interface ExecutionResourceNeed {
|
|
@@ -145,7 +91,6 @@ export interface ExecutionCapabilitySupply {
|
|
|
145
91
|
executionProviderId: string;
|
|
146
92
|
kind: ExecutionProviderKind;
|
|
147
93
|
capabilities: string[];
|
|
148
|
-
aliases?: string[];
|
|
149
94
|
grants: string[];
|
|
150
95
|
availability?: Record<string, unknown>;
|
|
151
96
|
pressure?: ExecutionProviderPressure;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const AGENT_CONTENT_MODELS = [
|
|
2
|
+
"agent",
|
|
3
|
+
"book",
|
|
4
|
+
"knowledge",
|
|
5
|
+
"objective",
|
|
6
|
+
"discussion",
|
|
7
|
+
"discussion-message",
|
|
8
|
+
"proposal",
|
|
9
|
+
"question",
|
|
10
|
+
"note",
|
|
11
|
+
"decision"
|
|
12
|
+
];
|
|
13
|
+
const AGENT_TOOL_GROUPS = [
|
|
14
|
+
"discussion",
|
|
15
|
+
"source.read",
|
|
16
|
+
"source.write",
|
|
17
|
+
"verification",
|
|
18
|
+
"release"
|
|
19
|
+
];
|
|
20
|
+
export {
|
|
21
|
+
AGENT_CONTENT_MODELS,
|
|
22
|
+
AGENT_TOOL_GROUPS
|
|
23
|
+
};
|
|
@@ -7,8 +7,7 @@ export declare const AGENT_ACTIVITY_TYPES: readonly ["planning", "estimating", "
|
|
|
7
7
|
export declare const ENGINEERING_HANDLER_KINDS: readonly ["writer", "actor", "estimate", "releaser", "reporter"];
|
|
8
8
|
export declare const AGENT_CLI_ALLOW_TOOLS: readonly ["shell(git)", "shell(npm)", "web"];
|
|
9
9
|
export declare const EXECUTION_RESOURCE_NEED_KINDS: readonly ["repository", "treedx_workspace", "workflow", "secret", "external_issue", "external_job"];
|
|
10
|
-
export declare const EXECUTION_PROVIDER_KINDS: readonly ["ai_model", "human_issue_queue", "deterministic_workflow"
|
|
11
|
-
export declare const BUILT_IN_AGENT_EXECUTION_PROVIDER_IDS: readonly ["codex", "opencode", "copilot", "jira", "github_issues", "discord", "workflow", "platform-operation"];
|
|
10
|
+
export declare const EXECUTION_PROVIDER_KINDS: readonly ["ai_model", "human_issue_queue", "deterministic_workflow"];
|
|
12
11
|
export declare const EXECUTION_RUN_STATUSES: readonly ["accepted", "running", "waiting", "blocked", "completed", "returned", "failed", "cancelled"];
|
|
13
12
|
export declare const EXECUTION_PROVIDER_PRESSURE_STATES: readonly ["idle", "normal", "busy", "throttled", "exhausted"];
|
|
14
13
|
export declare const EXECUTION_PROVIDER_QUOTA_VISIBILITIES: readonly ["opaque", "partial", "exact"];
|
|
@@ -18,11 +17,11 @@ export type AgentMessageStatus = (typeof AGENT_MESSAGE_STATUSES)[number];
|
|
|
18
17
|
export type AgentRunStatus = (typeof AGENT_RUN_STATUSES)[number];
|
|
19
18
|
export type AgentHandlerKind = string;
|
|
20
19
|
export type AgentActivityType = (typeof AGENT_ACTIVITY_TYPES)[number];
|
|
20
|
+
export type AgentReasoningEffort = 'minimal' | 'low' | 'medium' | 'high' | 'xhigh';
|
|
21
21
|
export type EngineeringHandlerKind = (typeof ENGINEERING_HANDLER_KINDS)[number];
|
|
22
22
|
export type AgentCliAllowTool = (typeof AGENT_CLI_ALLOW_TOOLS)[number];
|
|
23
23
|
export type ExecutionResourceNeedKind = (typeof EXECUTION_RESOURCE_NEED_KINDS)[number] | string;
|
|
24
24
|
export type ExecutionProviderKind = (typeof EXECUTION_PROVIDER_KINDS)[number] | string;
|
|
25
|
-
export type BuiltInAgentExecutionProviderId = (typeof BUILT_IN_AGENT_EXECUTION_PROVIDER_IDS)[number];
|
|
26
25
|
export type ExecutionRunStatus = (typeof EXECUTION_RUN_STATUSES)[number];
|
|
27
26
|
export type ExecutionProviderPressure = (typeof EXECUTION_PROVIDER_PRESSURE_STATES)[number];
|
|
28
27
|
export type ExecutionProviderQuotaVisibility = (typeof EXECUTION_PROVIDER_QUOTA_VISIBILITIES)[number];
|
|
@@ -152,7 +151,7 @@ export interface AgentActivityPromptConfig {
|
|
|
152
151
|
templates?: Record<string, string>;
|
|
153
152
|
}
|
|
154
153
|
export interface AgentActivityExecutionConfig {
|
|
155
|
-
|
|
154
|
+
reasoningEffort?: AgentReasoningEffort;
|
|
156
155
|
maxRuntimeSeconds?: number;
|
|
157
156
|
closeoutWarningSeconds?: number;
|
|
158
157
|
maxRetries?: number;
|
|
@@ -185,5 +184,4 @@ export interface AgentActivityPlanningIntent {
|
|
|
185
184
|
signals?: AgentSignalPolicy;
|
|
186
185
|
}>;
|
|
187
186
|
requiresArtifactKinds?: string[];
|
|
188
|
-
proposalTypes?: string[];
|
|
189
187
|
}
|