@treeseed/sdk 0.13.0-rc.18 → 0.13.0-rc.19
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 +19 -9
- package/dist/agent-capacity/artifacts.d.ts +17 -1
- package/dist/content/validation/agent-operational-content-schemas.d.ts +8 -8
- package/dist/content/validation/auxiliary-content-schemas.d.ts +12 -12
- package/dist/content/validation/content-model-schemas.d.ts +28 -28
- package/dist/content/validation/portable-content-data.d.ts +4 -4
- package/dist/operator-contracts/canonical-command-tree.js +16 -0
- package/dist/operator-contracts/control-plane-operation.d.ts +7 -0
- package/dist/operator-contracts/control-plane-operation.js +3 -0
- package/dist/operator-contracts/control-plane-operations.d.ts +280 -39
- package/dist/operator-contracts/control-plane-operations.js +89 -38
- package/dist/operator-contracts/operation-builder.d.ts +17 -0
- package/dist/operator-contracts/operation-builder.js +60 -0
- package/dist/treedx/client.d.ts +589 -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 +2 -0
- package/dist/treedx/types.d.ts +8 -7
- package/dist/treedx/types.js +0 -7
- package/package.json +8 -10
- 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/README.md
CHANGED
|
@@ -19,32 +19,42 @@ import {
|
|
|
19
19
|
ControlPlaneClient,
|
|
20
20
|
defaultLocalControlPlaneServer,
|
|
21
21
|
} from '@treeseed/sdk/control-plane-client';
|
|
22
|
+
import { CONTROL_PLANE_OPERATIONS } from '@treeseed/sdk/operator-contracts';
|
|
22
23
|
|
|
23
24
|
const client = new ControlPlaneClient({
|
|
24
25
|
profile: defaultLocalControlPlaneServer(),
|
|
25
26
|
accessToken: process.env.TREESEED_ACCESS_TOKEN,
|
|
26
27
|
});
|
|
27
28
|
|
|
28
|
-
const health = await client.
|
|
29
|
+
const health = await client.invoke(CONTROL_PLANE_OPERATIONS.health.readiness, {
|
|
30
|
+
path: {},
|
|
31
|
+
query: {},
|
|
32
|
+
body: undefined,
|
|
33
|
+
});
|
|
29
34
|
```
|
|
30
35
|
|
|
31
|
-
The client provides typed operation dispatch, RFC 9457 problem handling, OAuth device and refresh flows, server-profile normalization, idempotency keys, optimistic-concurrency headers, and request cancellation.
|
|
36
|
+
The client provides typed operation dispatch, RFC 9457 problem handling, OAuth device and refresh flows, server-profile normalization, idempotency keys, optimistic-concurrency headers, and request cancellation. Operation bindings come from the versioned operation catalog; callers do not construct control-plane paths. Token and profile persistence belong to the consuming CLI, application, or host credential store.
|
|
32
37
|
|
|
33
38
|
## TreeDX API
|
|
34
39
|
|
|
35
40
|
```ts
|
|
36
|
-
import {
|
|
41
|
+
import { ControlPlaneClient } from '@treeseed/sdk/control-plane-client';
|
|
42
|
+
import { TreeSeedTreeDxClient } from '@treeseed/sdk/treedx';
|
|
37
43
|
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
repoId: 'repo_123',
|
|
44
|
+
const controlPlane = new ControlPlaneClient({
|
|
45
|
+
profile: defaultLocalControlPlaneServer(),
|
|
46
|
+
accessToken: process.env.TREESEED_ACCESS_TOKEN,
|
|
42
47
|
});
|
|
48
|
+
const treeDx = new TreeSeedTreeDxClient(controlPlane);
|
|
43
49
|
|
|
44
|
-
const result = await treeDx.
|
|
50
|
+
const result = await treeDx.proxy.repositories.searchFiles({
|
|
51
|
+
path: { projectId: 'project_123', repositoryId: 'repository_123' },
|
|
52
|
+
query: { query: 'release' },
|
|
53
|
+
body: undefined,
|
|
54
|
+
});
|
|
45
55
|
```
|
|
46
56
|
|
|
47
|
-
TreeDX remains
|
|
57
|
+
TreeDX remains an independently released remote service. This package imports its authoritative payload types but exposes only the project-scoped TreeSeed proxy facade. Direct TreeDX transport, endpoints, topology, and credentials remain confined to trusted control-plane infrastructure.
|
|
48
58
|
|
|
49
59
|
## Public boundaries
|
|
50
60
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ExecutionUsageActual } from '../types/agents.js';
|
|
2
2
|
import type { ResearchCitation } from './contracts/support/research-citation.js';
|
|
3
|
-
import type { ArtifactRef } from '../treedx/types.js';
|
|
4
3
|
import { type ArtifactMutationReceipt } from './artifact-mutation-receipt.js';
|
|
5
4
|
export interface AgentToolEventReference {
|
|
6
5
|
id: string;
|
|
@@ -62,6 +61,23 @@ export interface AgentDiagnosticReference {
|
|
|
62
61
|
retryable?: boolean | null;
|
|
63
62
|
evidenceRef?: string | null;
|
|
64
63
|
}
|
|
64
|
+
export interface ArtifactRef {
|
|
65
|
+
contract: 'treeseed.artifact-ref/v1';
|
|
66
|
+
kind: 'treedx-content' | 'repository-file' | 'r2-object' | 'verification-evidence' | 'provider-input' | 'provider-output' | 'citation' | 'source-commit';
|
|
67
|
+
repositoryId?: string;
|
|
68
|
+
workspaceId?: string;
|
|
69
|
+
path?: string;
|
|
70
|
+
commitSha?: string | null;
|
|
71
|
+
objectKey?: string;
|
|
72
|
+
sha256: string | null;
|
|
73
|
+
byteLength?: number;
|
|
74
|
+
mediaType?: string;
|
|
75
|
+
visibility: 'private' | 'assignment' | 'project' | 'team' | 'public';
|
|
76
|
+
assignmentId?: string;
|
|
77
|
+
toolCallId?: string;
|
|
78
|
+
eventId?: string;
|
|
79
|
+
provenance?: Record<string, string>;
|
|
80
|
+
}
|
|
65
81
|
/** Portable, secret-free terminal evidence emitted by AgentKernel. */
|
|
66
82
|
export interface AgentArtifactManifest {
|
|
67
83
|
schemaVersion: 1;
|
|
@@ -54,8 +54,8 @@ export declare const agentContextQueryContentSchema: z.ZodObject<{
|
|
|
54
54
|
};
|
|
55
55
|
depth: number;
|
|
56
56
|
purpose: string;
|
|
57
|
-
relations: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[];
|
|
58
57
|
maturity: "draft" | "validated" | "simulated" | "proven";
|
|
58
|
+
relations: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[];
|
|
59
59
|
resultLimit: number;
|
|
60
60
|
contextBudget: {
|
|
61
61
|
maxItems: number;
|
|
@@ -88,8 +88,8 @@ export declare const agentContextQueryContentSchema: z.ZodObject<{
|
|
|
88
88
|
scope?: string | undefined;
|
|
89
89
|
filters?: Record<string, unknown> | undefined;
|
|
90
90
|
depth?: number | undefined;
|
|
91
|
-
relations?: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[] | undefined;
|
|
92
91
|
codeScopes?: string[] | undefined;
|
|
92
|
+
relations?: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[] | undefined;
|
|
93
93
|
format?: "map" | "summary" | "list" | "brief" | "full" | "sources" | undefined;
|
|
94
94
|
}>;
|
|
95
95
|
export declare const agentContextQuerySetContentSchema: z.ZodObject<{
|
|
@@ -445,8 +445,8 @@ export declare const assignmentSummaryContentSchema: z.ZodObject<{
|
|
|
445
445
|
outcome: z.ZodString;
|
|
446
446
|
metrics: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
447
447
|
}, "strict", z.ZodTypeAny, {
|
|
448
|
-
metrics: Record<string, number>;
|
|
449
448
|
outcome: string;
|
|
449
|
+
metrics: Record<string, number>;
|
|
450
450
|
}, {
|
|
451
451
|
outcome: string;
|
|
452
452
|
metrics?: Record<string, number> | undefined;
|
|
@@ -479,8 +479,8 @@ export declare const assignmentSummaryContentSchema: z.ZodObject<{
|
|
|
479
479
|
artifactRefs: string[];
|
|
480
480
|
lessons: string[];
|
|
481
481
|
performance: {
|
|
482
|
-
metrics: Record<string, number>;
|
|
483
482
|
outcome: string;
|
|
483
|
+
metrics: Record<string, number>;
|
|
484
484
|
};
|
|
485
485
|
verificationRefs: string[];
|
|
486
486
|
description?: string | undefined;
|
|
@@ -724,8 +724,8 @@ export declare const agentOperationalContentSchemas: {
|
|
|
724
724
|
};
|
|
725
725
|
depth: number;
|
|
726
726
|
purpose: string;
|
|
727
|
-
relations: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[];
|
|
728
727
|
maturity: "draft" | "validated" | "simulated" | "proven";
|
|
728
|
+
relations: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[];
|
|
729
729
|
resultLimit: number;
|
|
730
730
|
contextBudget: {
|
|
731
731
|
maxItems: number;
|
|
@@ -758,8 +758,8 @@ export declare const agentOperationalContentSchemas: {
|
|
|
758
758
|
scope?: string | undefined;
|
|
759
759
|
filters?: Record<string, unknown> | undefined;
|
|
760
760
|
depth?: number | undefined;
|
|
761
|
-
relations?: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[] | undefined;
|
|
762
761
|
codeScopes?: string[] | undefined;
|
|
762
|
+
relations?: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[] | undefined;
|
|
763
763
|
format?: "map" | "summary" | "list" | "brief" | "full" | "sources" | undefined;
|
|
764
764
|
}>;
|
|
765
765
|
agent_context_query_set: z.ZodObject<{
|
|
@@ -1115,8 +1115,8 @@ export declare const agentOperationalContentSchemas: {
|
|
|
1115
1115
|
outcome: z.ZodString;
|
|
1116
1116
|
metrics: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1117
1117
|
}, "strict", z.ZodTypeAny, {
|
|
1118
|
-
metrics: Record<string, number>;
|
|
1119
1118
|
outcome: string;
|
|
1119
|
+
metrics: Record<string, number>;
|
|
1120
1120
|
}, {
|
|
1121
1121
|
outcome: string;
|
|
1122
1122
|
metrics?: Record<string, number> | undefined;
|
|
@@ -1149,8 +1149,8 @@ export declare const agentOperationalContentSchemas: {
|
|
|
1149
1149
|
artifactRefs: string[];
|
|
1150
1150
|
lessons: string[];
|
|
1151
1151
|
performance: {
|
|
1152
|
-
metrics: Record<string, number>;
|
|
1153
1152
|
outcome: string;
|
|
1153
|
+
metrics: Record<string, number>;
|
|
1154
1154
|
};
|
|
1155
1155
|
verificationRefs: string[];
|
|
1156
1156
|
description?: string | undefined;
|
|
@@ -316,15 +316,15 @@ export declare const templateProductContentSchema: z.ZodObject<{
|
|
|
316
316
|
integrity: z.ZodOptional<z.ZodString>;
|
|
317
317
|
}, "strip", z.ZodTypeAny, {
|
|
318
318
|
kind: "git";
|
|
319
|
-
ref: string;
|
|
320
319
|
repoUrl: string;
|
|
321
320
|
directory: string;
|
|
321
|
+
ref: string;
|
|
322
322
|
integrity?: string | undefined;
|
|
323
323
|
}, {
|
|
324
324
|
kind: "git";
|
|
325
|
-
ref: string;
|
|
326
325
|
repoUrl: string;
|
|
327
326
|
directory: string;
|
|
327
|
+
ref: string;
|
|
328
328
|
integrity?: string | undefined;
|
|
329
329
|
}>, z.ZodObject<{
|
|
330
330
|
kind: z.ZodLiteral<"r2">;
|
|
@@ -353,9 +353,9 @@ export declare const templateProductContentSchema: z.ZodObject<{
|
|
|
353
353
|
}, "strip", z.ZodTypeAny, {
|
|
354
354
|
source: {
|
|
355
355
|
kind: "git";
|
|
356
|
-
ref: string;
|
|
357
356
|
repoUrl: string;
|
|
358
357
|
directory: string;
|
|
358
|
+
ref: string;
|
|
359
359
|
integrity?: string | undefined;
|
|
360
360
|
} | {
|
|
361
361
|
version: string;
|
|
@@ -371,9 +371,9 @@ export declare const templateProductContentSchema: z.ZodObject<{
|
|
|
371
371
|
}, {
|
|
372
372
|
source: {
|
|
373
373
|
kind: "git";
|
|
374
|
-
ref: string;
|
|
375
374
|
repoUrl: string;
|
|
376
375
|
directory: string;
|
|
376
|
+
ref: string;
|
|
377
377
|
integrity?: string | undefined;
|
|
378
378
|
} | {
|
|
379
379
|
version: string;
|
|
@@ -427,9 +427,9 @@ export declare const templateProductContentSchema: z.ZodObject<{
|
|
|
427
427
|
fulfillment: {
|
|
428
428
|
source: {
|
|
429
429
|
kind: "git";
|
|
430
|
-
ref: string;
|
|
431
430
|
repoUrl: string;
|
|
432
431
|
directory: string;
|
|
432
|
+
ref: string;
|
|
433
433
|
integrity?: string | undefined;
|
|
434
434
|
} | {
|
|
435
435
|
version: string;
|
|
@@ -472,9 +472,9 @@ export declare const templateProductContentSchema: z.ZodObject<{
|
|
|
472
472
|
fulfillment: {
|
|
473
473
|
source: {
|
|
474
474
|
kind: "git";
|
|
475
|
-
ref: string;
|
|
476
475
|
repoUrl: string;
|
|
477
476
|
directory: string;
|
|
477
|
+
ref: string;
|
|
478
478
|
integrity?: string | undefined;
|
|
479
479
|
} | {
|
|
480
480
|
version: string;
|
|
@@ -1524,15 +1524,15 @@ export declare const auxiliaryContentSchemas: {
|
|
|
1524
1524
|
integrity: z.ZodOptional<z.ZodString>;
|
|
1525
1525
|
}, "strip", z.ZodTypeAny, {
|
|
1526
1526
|
kind: "git";
|
|
1527
|
-
ref: string;
|
|
1528
1527
|
repoUrl: string;
|
|
1529
1528
|
directory: string;
|
|
1529
|
+
ref: string;
|
|
1530
1530
|
integrity?: string | undefined;
|
|
1531
1531
|
}, {
|
|
1532
1532
|
kind: "git";
|
|
1533
|
-
ref: string;
|
|
1534
1533
|
repoUrl: string;
|
|
1535
1534
|
directory: string;
|
|
1535
|
+
ref: string;
|
|
1536
1536
|
integrity?: string | undefined;
|
|
1537
1537
|
}>, z.ZodObject<{
|
|
1538
1538
|
kind: z.ZodLiteral<"r2">;
|
|
@@ -1561,9 +1561,9 @@ export declare const auxiliaryContentSchemas: {
|
|
|
1561
1561
|
}, "strip", z.ZodTypeAny, {
|
|
1562
1562
|
source: {
|
|
1563
1563
|
kind: "git";
|
|
1564
|
-
ref: string;
|
|
1565
1564
|
repoUrl: string;
|
|
1566
1565
|
directory: string;
|
|
1566
|
+
ref: string;
|
|
1567
1567
|
integrity?: string | undefined;
|
|
1568
1568
|
} | {
|
|
1569
1569
|
version: string;
|
|
@@ -1579,9 +1579,9 @@ export declare const auxiliaryContentSchemas: {
|
|
|
1579
1579
|
}, {
|
|
1580
1580
|
source: {
|
|
1581
1581
|
kind: "git";
|
|
1582
|
-
ref: string;
|
|
1583
1582
|
repoUrl: string;
|
|
1584
1583
|
directory: string;
|
|
1584
|
+
ref: string;
|
|
1585
1585
|
integrity?: string | undefined;
|
|
1586
1586
|
} | {
|
|
1587
1587
|
version: string;
|
|
@@ -1635,9 +1635,9 @@ export declare const auxiliaryContentSchemas: {
|
|
|
1635
1635
|
fulfillment: {
|
|
1636
1636
|
source: {
|
|
1637
1637
|
kind: "git";
|
|
1638
|
-
ref: string;
|
|
1639
1638
|
repoUrl: string;
|
|
1640
1639
|
directory: string;
|
|
1640
|
+
ref: string;
|
|
1641
1641
|
integrity?: string | undefined;
|
|
1642
1642
|
} | {
|
|
1643
1643
|
version: string;
|
|
@@ -1680,9 +1680,9 @@ export declare const auxiliaryContentSchemas: {
|
|
|
1680
1680
|
fulfillment: {
|
|
1681
1681
|
source: {
|
|
1682
1682
|
kind: "git";
|
|
1683
|
-
ref: string;
|
|
1684
1683
|
repoUrl: string;
|
|
1685
1684
|
directory: string;
|
|
1685
|
+
ref: string;
|
|
1686
1686
|
integrity?: string | undefined;
|
|
1687
1687
|
} | {
|
|
1688
1688
|
version: string;
|
|
@@ -57,8 +57,8 @@ declare const schemas: {
|
|
|
57
57
|
};
|
|
58
58
|
depth: number;
|
|
59
59
|
purpose: string;
|
|
60
|
-
relations: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[];
|
|
61
60
|
maturity: "draft" | "validated" | "simulated" | "proven";
|
|
61
|
+
relations: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[];
|
|
62
62
|
resultLimit: number;
|
|
63
63
|
contextBudget: {
|
|
64
64
|
maxItems: number;
|
|
@@ -91,8 +91,8 @@ declare const schemas: {
|
|
|
91
91
|
scope?: string | undefined;
|
|
92
92
|
filters?: Record<string, unknown> | undefined;
|
|
93
93
|
depth?: number | undefined;
|
|
94
|
-
relations?: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[] | undefined;
|
|
95
94
|
codeScopes?: string[] | undefined;
|
|
95
|
+
relations?: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[] | undefined;
|
|
96
96
|
format?: "map" | "summary" | "list" | "brief" | "full" | "sources" | undefined;
|
|
97
97
|
}>;
|
|
98
98
|
agent_context_query_set: z.ZodObject<{
|
|
@@ -448,8 +448,8 @@ declare const schemas: {
|
|
|
448
448
|
outcome: z.ZodString;
|
|
449
449
|
metrics: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
450
450
|
}, "strict", z.ZodTypeAny, {
|
|
451
|
-
metrics: Record<string, number>;
|
|
452
451
|
outcome: string;
|
|
452
|
+
metrics: Record<string, number>;
|
|
453
453
|
}, {
|
|
454
454
|
outcome: string;
|
|
455
455
|
metrics?: Record<string, number> | undefined;
|
|
@@ -482,8 +482,8 @@ declare const schemas: {
|
|
|
482
482
|
artifactRefs: string[];
|
|
483
483
|
lessons: string[];
|
|
484
484
|
performance: {
|
|
485
|
-
metrics: Record<string, number>;
|
|
486
485
|
outcome: string;
|
|
486
|
+
metrics: Record<string, number>;
|
|
487
487
|
};
|
|
488
488
|
verificationRefs: string[];
|
|
489
489
|
description?: string | undefined;
|
|
@@ -1339,15 +1339,15 @@ declare const schemas: {
|
|
|
1339
1339
|
integrity: z.ZodOptional<z.ZodString>;
|
|
1340
1340
|
}, "strip", z.ZodTypeAny, {
|
|
1341
1341
|
kind: "git";
|
|
1342
|
-
ref: string;
|
|
1343
1342
|
repoUrl: string;
|
|
1344
1343
|
directory: string;
|
|
1344
|
+
ref: string;
|
|
1345
1345
|
integrity?: string | undefined;
|
|
1346
1346
|
}, {
|
|
1347
1347
|
kind: "git";
|
|
1348
|
-
ref: string;
|
|
1349
1348
|
repoUrl: string;
|
|
1350
1349
|
directory: string;
|
|
1350
|
+
ref: string;
|
|
1351
1351
|
integrity?: string | undefined;
|
|
1352
1352
|
}>, z.ZodObject<{
|
|
1353
1353
|
kind: z.ZodLiteral<"r2">;
|
|
@@ -1376,9 +1376,9 @@ declare const schemas: {
|
|
|
1376
1376
|
}, "strip", z.ZodTypeAny, {
|
|
1377
1377
|
source: {
|
|
1378
1378
|
kind: "git";
|
|
1379
|
-
ref: string;
|
|
1380
1379
|
repoUrl: string;
|
|
1381
1380
|
directory: string;
|
|
1381
|
+
ref: string;
|
|
1382
1382
|
integrity?: string | undefined;
|
|
1383
1383
|
} | {
|
|
1384
1384
|
version: string;
|
|
@@ -1394,9 +1394,9 @@ declare const schemas: {
|
|
|
1394
1394
|
}, {
|
|
1395
1395
|
source: {
|
|
1396
1396
|
kind: "git";
|
|
1397
|
-
ref: string;
|
|
1398
1397
|
repoUrl: string;
|
|
1399
1398
|
directory: string;
|
|
1399
|
+
ref: string;
|
|
1400
1400
|
integrity?: string | undefined;
|
|
1401
1401
|
} | {
|
|
1402
1402
|
version: string;
|
|
@@ -1450,9 +1450,9 @@ declare const schemas: {
|
|
|
1450
1450
|
fulfillment: {
|
|
1451
1451
|
source: {
|
|
1452
1452
|
kind: "git";
|
|
1453
|
-
ref: string;
|
|
1454
1453
|
repoUrl: string;
|
|
1455
1454
|
directory: string;
|
|
1455
|
+
ref: string;
|
|
1456
1456
|
integrity?: string | undefined;
|
|
1457
1457
|
} | {
|
|
1458
1458
|
version: string;
|
|
@@ -1495,9 +1495,9 @@ declare const schemas: {
|
|
|
1495
1495
|
fulfillment: {
|
|
1496
1496
|
source: {
|
|
1497
1497
|
kind: "git";
|
|
1498
|
-
ref: string;
|
|
1499
1498
|
repoUrl: string;
|
|
1500
1499
|
directory: string;
|
|
1500
|
+
ref: string;
|
|
1501
1501
|
integrity?: string | undefined;
|
|
1502
1502
|
} | {
|
|
1503
1503
|
version: string;
|
|
@@ -9769,19 +9769,19 @@ declare const schemas: {
|
|
|
9769
9769
|
}, "strip", z.ZodTypeAny, {
|
|
9770
9770
|
title: string;
|
|
9771
9771
|
sequence?: number | undefined;
|
|
9772
|
-
refs?: string[] | undefined;
|
|
9773
9772
|
phase?: string | undefined;
|
|
9774
9773
|
group_ids?: string[] | undefined;
|
|
9775
9774
|
discussion_id?: string | undefined;
|
|
9776
9775
|
occurred_at?: Date | undefined;
|
|
9776
|
+
refs?: string[] | undefined;
|
|
9777
9777
|
}, {
|
|
9778
9778
|
title: string;
|
|
9779
9779
|
sequence?: number | undefined;
|
|
9780
|
-
refs?: string[] | undefined;
|
|
9781
9780
|
phase?: string | undefined;
|
|
9782
9781
|
group_ids?: string[] | undefined;
|
|
9783
9782
|
discussion_id?: string | undefined;
|
|
9784
9783
|
occurred_at?: Date | undefined;
|
|
9784
|
+
refs?: string[] | undefined;
|
|
9785
9785
|
}>;
|
|
9786
9786
|
group: z.ZodObject<{
|
|
9787
9787
|
contract: z.ZodLiteral<"treeseed.group/v1">;
|
|
@@ -11453,9 +11453,9 @@ export declare function validateContentFrontmatter(model: PortableContentModel,
|
|
|
11453
11453
|
fulfillment: {
|
|
11454
11454
|
source: {
|
|
11455
11455
|
kind: "git";
|
|
11456
|
-
ref: string;
|
|
11457
11456
|
repoUrl: string;
|
|
11458
11457
|
directory: string;
|
|
11458
|
+
ref: string;
|
|
11459
11459
|
integrity?: string | undefined;
|
|
11460
11460
|
} | {
|
|
11461
11461
|
version: string;
|
|
@@ -11538,8 +11538,8 @@ export declare function validateContentFrontmatter(model: PortableContentModel,
|
|
|
11538
11538
|
};
|
|
11539
11539
|
depth: number;
|
|
11540
11540
|
purpose: string;
|
|
11541
|
-
relations: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[];
|
|
11542
11541
|
maturity: "draft" | "validated" | "simulated" | "proven";
|
|
11542
|
+
relations: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[];
|
|
11543
11543
|
resultLimit: number;
|
|
11544
11544
|
contextBudget: {
|
|
11545
11545
|
maxItems: number;
|
|
@@ -11643,8 +11643,8 @@ export declare function validateContentFrontmatter(model: PortableContentModel,
|
|
|
11643
11643
|
artifactRefs: string[];
|
|
11644
11644
|
lessons: string[];
|
|
11645
11645
|
performance: {
|
|
11646
|
-
metrics: Record<string, number>;
|
|
11647
11646
|
outcome: string;
|
|
11647
|
+
metrics: Record<string, number>;
|
|
11648
11648
|
};
|
|
11649
11649
|
verificationRefs: string[];
|
|
11650
11650
|
description?: string | undefined;
|
|
@@ -11884,11 +11884,11 @@ export declare function validateContentFrontmatter(model: PortableContentModel,
|
|
|
11884
11884
|
} | {
|
|
11885
11885
|
title: string;
|
|
11886
11886
|
sequence?: number | undefined;
|
|
11887
|
-
refs?: string[] | undefined;
|
|
11888
11887
|
phase?: string | undefined;
|
|
11889
11888
|
group_ids?: string[] | undefined;
|
|
11890
11889
|
discussion_id?: string | undefined;
|
|
11891
11890
|
occurred_at?: Date | undefined;
|
|
11891
|
+
refs?: string[] | undefined;
|
|
11892
11892
|
} | {
|
|
11893
11893
|
id: string;
|
|
11894
11894
|
classification: string;
|
|
@@ -19839,15 +19839,15 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
19839
19839
|
integrity: z.ZodOptional<z.ZodString>;
|
|
19840
19840
|
}, "strip", z.ZodTypeAny, {
|
|
19841
19841
|
kind: "git";
|
|
19842
|
-
ref: string;
|
|
19843
19842
|
repoUrl: string;
|
|
19844
19843
|
directory: string;
|
|
19844
|
+
ref: string;
|
|
19845
19845
|
integrity?: string | undefined;
|
|
19846
19846
|
}, {
|
|
19847
19847
|
kind: "git";
|
|
19848
|
-
ref: string;
|
|
19849
19848
|
repoUrl: string;
|
|
19850
19849
|
directory: string;
|
|
19850
|
+
ref: string;
|
|
19851
19851
|
integrity?: string | undefined;
|
|
19852
19852
|
}>, z.ZodObject<{
|
|
19853
19853
|
kind: z.ZodLiteral<"r2">;
|
|
@@ -19876,9 +19876,9 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
19876
19876
|
}, "strip", z.ZodTypeAny, {
|
|
19877
19877
|
source: {
|
|
19878
19878
|
kind: "git";
|
|
19879
|
-
ref: string;
|
|
19880
19879
|
repoUrl: string;
|
|
19881
19880
|
directory: string;
|
|
19881
|
+
ref: string;
|
|
19882
19882
|
integrity?: string | undefined;
|
|
19883
19883
|
} | {
|
|
19884
19884
|
version: string;
|
|
@@ -19894,9 +19894,9 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
19894
19894
|
}, {
|
|
19895
19895
|
source: {
|
|
19896
19896
|
kind: "git";
|
|
19897
|
-
ref: string;
|
|
19898
19897
|
repoUrl: string;
|
|
19899
19898
|
directory: string;
|
|
19899
|
+
ref: string;
|
|
19900
19900
|
integrity?: string | undefined;
|
|
19901
19901
|
} | {
|
|
19902
19902
|
version: string;
|
|
@@ -19950,9 +19950,9 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
19950
19950
|
fulfillment: {
|
|
19951
19951
|
source: {
|
|
19952
19952
|
kind: "git";
|
|
19953
|
-
ref: string;
|
|
19954
19953
|
repoUrl: string;
|
|
19955
19954
|
directory: string;
|
|
19955
|
+
ref: string;
|
|
19956
19956
|
integrity?: string | undefined;
|
|
19957
19957
|
} | {
|
|
19958
19958
|
version: string;
|
|
@@ -19995,9 +19995,9 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
19995
19995
|
fulfillment: {
|
|
19996
19996
|
source: {
|
|
19997
19997
|
kind: "git";
|
|
19998
|
-
ref: string;
|
|
19999
19998
|
repoUrl: string;
|
|
20000
19999
|
directory: string;
|
|
20000
|
+
ref: string;
|
|
20001
20001
|
integrity?: string | undefined;
|
|
20002
20002
|
} | {
|
|
20003
20003
|
version: string;
|
|
@@ -20431,8 +20431,8 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
20431
20431
|
};
|
|
20432
20432
|
depth: number;
|
|
20433
20433
|
purpose: string;
|
|
20434
|
-
relations: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[];
|
|
20435
20434
|
maturity: "draft" | "validated" | "simulated" | "proven";
|
|
20435
|
+
relations: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[];
|
|
20436
20436
|
resultLimit: number;
|
|
20437
20437
|
contextBudget: {
|
|
20438
20438
|
maxItems: number;
|
|
@@ -20465,8 +20465,8 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
20465
20465
|
scope?: string | undefined;
|
|
20466
20466
|
filters?: Record<string, unknown> | undefined;
|
|
20467
20467
|
depth?: number | undefined;
|
|
20468
|
-
relations?: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[] | undefined;
|
|
20469
20468
|
codeScopes?: string[] | undefined;
|
|
20469
|
+
relations?: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[] | undefined;
|
|
20470
20470
|
format?: "map" | "summary" | "list" | "brief" | "full" | "sources" | undefined;
|
|
20471
20471
|
}> | z.ZodObject<{
|
|
20472
20472
|
id: z.ZodString;
|
|
@@ -20816,8 +20816,8 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
20816
20816
|
outcome: z.ZodString;
|
|
20817
20817
|
metrics: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
20818
20818
|
}, "strict", z.ZodTypeAny, {
|
|
20819
|
-
metrics: Record<string, number>;
|
|
20820
20819
|
outcome: string;
|
|
20820
|
+
metrics: Record<string, number>;
|
|
20821
20821
|
}, {
|
|
20822
20822
|
outcome: string;
|
|
20823
20823
|
metrics?: Record<string, number> | undefined;
|
|
@@ -20850,8 +20850,8 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
20850
20850
|
artifactRefs: string[];
|
|
20851
20851
|
lessons: string[];
|
|
20852
20852
|
performance: {
|
|
20853
|
-
metrics: Record<string, number>;
|
|
20854
20853
|
outcome: string;
|
|
20854
|
+
metrics: Record<string, number>;
|
|
20855
20855
|
};
|
|
20856
20856
|
verificationRefs: string[];
|
|
20857
20857
|
description?: string | undefined;
|
|
@@ -21657,19 +21657,19 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
21657
21657
|
}, "strip", z.ZodTypeAny, {
|
|
21658
21658
|
title: string;
|
|
21659
21659
|
sequence?: number | undefined;
|
|
21660
|
-
refs?: string[] | undefined;
|
|
21661
21660
|
phase?: string | undefined;
|
|
21662
21661
|
group_ids?: string[] | undefined;
|
|
21663
21662
|
discussion_id?: string | undefined;
|
|
21664
21663
|
occurred_at?: Date | undefined;
|
|
21664
|
+
refs?: string[] | undefined;
|
|
21665
21665
|
}, {
|
|
21666
21666
|
title: string;
|
|
21667
21667
|
sequence?: number | undefined;
|
|
21668
|
-
refs?: string[] | undefined;
|
|
21669
21668
|
phase?: string | undefined;
|
|
21670
21669
|
group_ids?: string[] | undefined;
|
|
21671
21670
|
discussion_id?: string | undefined;
|
|
21672
21671
|
occurred_at?: Date | undefined;
|
|
21672
|
+
refs?: string[] | undefined;
|
|
21673
21673
|
}> | z.ZodObject<{
|
|
21674
21674
|
contract: z.ZodLiteral<"treeseed.group/v1">;
|
|
21675
21675
|
id: z.ZodString;
|
|
@@ -1635,9 +1635,9 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
1635
1635
|
fulfillment: {
|
|
1636
1636
|
source: {
|
|
1637
1637
|
kind: "git";
|
|
1638
|
-
ref: string;
|
|
1639
1638
|
repoUrl: string;
|
|
1640
1639
|
directory: string;
|
|
1640
|
+
ref: string;
|
|
1641
1641
|
integrity?: string | undefined;
|
|
1642
1642
|
} | {
|
|
1643
1643
|
version: string;
|
|
@@ -1720,8 +1720,8 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
1720
1720
|
};
|
|
1721
1721
|
depth: number;
|
|
1722
1722
|
purpose: string;
|
|
1723
|
-
relations: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[];
|
|
1724
1723
|
maturity: "draft" | "validated" | "simulated" | "proven";
|
|
1724
|
+
relations: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[];
|
|
1725
1725
|
resultLimit: number;
|
|
1726
1726
|
contextBudget: {
|
|
1727
1727
|
maxItems: number;
|
|
@@ -1825,8 +1825,8 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
1825
1825
|
artifactRefs: string[];
|
|
1826
1826
|
lessons: string[];
|
|
1827
1827
|
performance: {
|
|
1828
|
-
metrics: Record<string, number>;
|
|
1829
1828
|
outcome: string;
|
|
1829
|
+
metrics: Record<string, number>;
|
|
1830
1830
|
};
|
|
1831
1831
|
verificationRefs: string[];
|
|
1832
1832
|
description?: string | undefined;
|
|
@@ -2066,11 +2066,11 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
2066
2066
|
} | {
|
|
2067
2067
|
title: string;
|
|
2068
2068
|
sequence?: number | undefined;
|
|
2069
|
-
refs?: string[] | undefined;
|
|
2070
2069
|
phase?: string | undefined;
|
|
2071
2070
|
group_ids?: string[] | undefined;
|
|
2072
2071
|
discussion_id?: string | undefined;
|
|
2073
2072
|
occurred_at?: Date | undefined;
|
|
2073
|
+
refs?: string[] | undefined;
|
|
2074
2074
|
} | {
|
|
2075
2075
|
id: string;
|
|
2076
2076
|
classification: string;
|
|
@@ -43,6 +43,14 @@ const operationBindings = {
|
|
|
43
43
|
"assignments explain": operation("assignments.explain", [field("path", "teamId", "context", "team", true), field("path", "assignmentId", "argument", "assignment", true)]),
|
|
44
44
|
"assignments retry": operation("assignments.retry", [field("path", "teamId", "context", "team", true), field("path", "assignmentId", "argument", "assignment", true), field("body", "reason", "option")]),
|
|
45
45
|
"assignments cancel": operation("assignments.cancel", [field("path", "teamId", "context", "team", true), field("path", "assignmentId", "argument", "assignment", true), field("body", "reason", "option")]),
|
|
46
|
+
"projects treedx show": operation("treedx.library.show", [field("path", "projectId", "argument", "project", true)]),
|
|
47
|
+
"projects treedx bind": operation("treedx.library.bind", [field("path", "projectId", "argument", "project", true), field("body", "connectionId", "option", "connection", true)]),
|
|
48
|
+
"projects treedx status": operation("treedx.health.show", [field("path", "projectId", "argument", "project", true)]),
|
|
49
|
+
"projects treedx diagnose": operation("treedx.service.contract", [field("path", "projectId", "argument", "project", true)]),
|
|
50
|
+
"projects treedx capabilities": operation("treedx.capabilities.list", [field("path", "projectId", "argument", "project", true)]),
|
|
51
|
+
"projects treedx workspaces list": operation("treedx.workspaces.list", [field("path", "projectId", "argument", "project", true), ...page()]),
|
|
52
|
+
"projects treedx workspaces show": operation("treedx.workspaces.show", [field("path", "projectId", "context", "project", true), field("path", "workspaceId", "argument", "workspace", true)]),
|
|
53
|
+
"projects treedx workspaces abandon": operation("treedx.workspaces.abandon", [field("path", "projectId", "context", "project", true), field("path", "workspaceId", "argument", "workspace", true)]),
|
|
46
54
|
"status": operation("status.show"),
|
|
47
55
|
"save": unavailable("Unified GitHub-backed save is intentionally fail-closed during this cutover."),
|
|
48
56
|
"stage": unavailable("Unified GitHub-backed stage is intentionally fail-closed during this cutover."),
|
|
@@ -107,6 +115,14 @@ const commandTree = {
|
|
|
107
115
|
branch("schedules", [leaf("list"), leaf("show", "read", "schedule"), leaf("plan"), leaf("start", "mutation", void 0, "authority"), leaf("pause", "mutation", "schedule", "authority"), leaf("resume", "mutation", "schedule", "authority"), leaf("retire", "mutation", "schedule", "destructive")])
|
|
108
116
|
]),
|
|
109
117
|
branch("assignments", [leaf("list"), leaf("show", "read", "assignment"), leaf("explain", "read", "assignment"), leaf("watch", "read", "assignment"), leaf("retry", "mutation", "assignment", "authority"), leaf("cancel", "mutation", "assignment", "destructive"), leaf("artifacts", "read", "assignment")]),
|
|
118
|
+
branch("projects", [branch("treedx", [
|
|
119
|
+
leaf("show", "read", "project"),
|
|
120
|
+
leaf("bind", "mutation", "project"),
|
|
121
|
+
leaf("status", "read", "project"),
|
|
122
|
+
leaf("diagnose", "read", "project"),
|
|
123
|
+
leaf("capabilities", "read", "project"),
|
|
124
|
+
branch("workspaces", [leaf("list", "read", "project"), leaf("show", "read", "workspace"), leaf("abandon", "mutation", "workspace", "destructive")])
|
|
125
|
+
])]),
|
|
110
126
|
leaf("save", "mutation"),
|
|
111
127
|
leaf("stage", "mutation", void 0, "authority"),
|
|
112
128
|
leaf("release", "mutation", void 0, "production"),
|
|
@@ -27,6 +27,12 @@ export interface ControlPlaneConcurrencyContract {
|
|
|
27
27
|
readHeader: 'ETag';
|
|
28
28
|
writeHeader: 'If-Match';
|
|
29
29
|
}
|
|
30
|
+
export interface ControlPlaneUpstreamBinding {
|
|
31
|
+
service: 'treedx';
|
|
32
|
+
operationId: string;
|
|
33
|
+
contractVersion: string;
|
|
34
|
+
contractDigest: `sha256:${string}`;
|
|
35
|
+
}
|
|
30
36
|
export interface ControlPlaneOperationDescriptor {
|
|
31
37
|
schemaVersion: typeof CONTROL_PLANE_OPERATION_SCHEMA_VERSION;
|
|
32
38
|
operationId: `${string}.${string}`;
|
|
@@ -47,6 +53,7 @@ export interface ControlPlaneOperationDescriptor {
|
|
|
47
53
|
audited: boolean;
|
|
48
54
|
receipt: boolean;
|
|
49
55
|
redactedPaths: string[];
|
|
56
|
+
upstream?: ControlPlaneUpstreamBinding;
|
|
50
57
|
}
|
|
51
58
|
export interface ControlPlaneOperationInput<TPath = Record<string, never>, TQuery = Record<string, never>, TBody = undefined> {
|
|
52
59
|
path: TPath;
|