@treeseed/sdk 0.13.0-rc.23 → 0.13.0-rc.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-capacity/validation/agent-definition-schema.d.ts +48 -48
- package/dist/capacity-provider/client.d.ts +9 -0
- package/dist/capacity-provider/client.js +5 -1
- package/dist/content/validation/agent-operational-content-schemas.d.ts +48 -48
- package/dist/content/validation/auxiliary-content-schemas.d.ts +8 -8
- package/dist/content/validation/content-model-schemas.d.ts +159 -159
- package/dist/content/validation/portable-content-data.d.ts +19 -19
- package/dist/operator-contracts/canonical-command-tree.js +2 -0
- package/dist/operator-contracts/catalog/communication-operations.d.ts +90 -0
- package/dist/operator-contracts/catalog/communication-operations.js +38 -0
- package/dist/operator-contracts/communication/contracts.d.ts +250 -0
- package/dist/operator-contracts/communication/contracts.js +64 -0
- package/dist/operator-contracts/control-plane-operations.d.ts +89 -1
- package/dist/operator-contracts/control-plane-operations.js +3 -0
- package/dist/operator-contracts/index.d.ts +1 -0
- package/dist/operator-contracts/index.js +1 -0
- package/package.json +1 -1
|
@@ -10,8 +10,8 @@ export declare const CONTROL_PLANE_OPERATIONS: {
|
|
|
10
10
|
readonly projects: {
|
|
11
11
|
readonly list: ControlPlaneOperationBinding<{}, {
|
|
12
12
|
cursor?: string | undefined;
|
|
13
|
-
limit?: number | undefined;
|
|
14
13
|
teamId?: string | undefined;
|
|
14
|
+
limit?: number | undefined;
|
|
15
15
|
}, undefined, Record<string, unknown>>;
|
|
16
16
|
readonly show: ControlPlaneOperationBinding<{
|
|
17
17
|
projectId: string;
|
|
@@ -461,6 +461,78 @@ export declare const CONTROL_PLANE_OPERATIONS: {
|
|
|
461
461
|
teamId: string;
|
|
462
462
|
invocationId: string;
|
|
463
463
|
}, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
|
|
464
|
+
readonly send: ControlPlaneOperationBinding<{
|
|
465
|
+
teamId: string;
|
|
466
|
+
channel: string;
|
|
467
|
+
}, {}, {
|
|
468
|
+
message: string;
|
|
469
|
+
projectId?: string | undefined;
|
|
470
|
+
recipients?: string[] | undefined;
|
|
471
|
+
topic?: string | undefined;
|
|
472
|
+
waitSeconds?: number | undefined;
|
|
473
|
+
}, {
|
|
474
|
+
schemaVersion: "treeseed.communication-send-receipt/v1";
|
|
475
|
+
responses: {
|
|
476
|
+
status: "cancelled" | "failed" | "responded";
|
|
477
|
+
projectId: string;
|
|
478
|
+
agentSlug: string;
|
|
479
|
+
assignmentId: string | null;
|
|
480
|
+
invocationId: string;
|
|
481
|
+
messageRef: string;
|
|
482
|
+
markdown: string;
|
|
483
|
+
createdAt: string;
|
|
484
|
+
}[];
|
|
485
|
+
status: "failed" | "queued" | "running" | "complete" | "partial";
|
|
486
|
+
teamId: string;
|
|
487
|
+
channel: string;
|
|
488
|
+
topic: string | null;
|
|
489
|
+
messageRef: string;
|
|
490
|
+
createdAt: string;
|
|
491
|
+
sendId: string;
|
|
492
|
+
discussionId: string;
|
|
493
|
+
targets: {
|
|
494
|
+
status: "cancelled" | "failed" | "queued" | "running" | "responded";
|
|
495
|
+
projectId: string;
|
|
496
|
+
agentSlug: string;
|
|
497
|
+
projectSlug: string;
|
|
498
|
+
definitionRevision: string;
|
|
499
|
+
invocationId: string | null;
|
|
500
|
+
}[];
|
|
501
|
+
updatedAt: string;
|
|
502
|
+
}>;
|
|
503
|
+
readonly sendStatus: ControlPlaneOperationBinding<{
|
|
504
|
+
teamId: string;
|
|
505
|
+
sendId: string;
|
|
506
|
+
}, {}, undefined, {
|
|
507
|
+
schemaVersion: "treeseed.communication-send-receipt/v1";
|
|
508
|
+
responses: {
|
|
509
|
+
status: "cancelled" | "failed" | "responded";
|
|
510
|
+
projectId: string;
|
|
511
|
+
agentSlug: string;
|
|
512
|
+
assignmentId: string | null;
|
|
513
|
+
invocationId: string;
|
|
514
|
+
messageRef: string;
|
|
515
|
+
markdown: string;
|
|
516
|
+
createdAt: string;
|
|
517
|
+
}[];
|
|
518
|
+
status: "failed" | "queued" | "running" | "complete" | "partial";
|
|
519
|
+
teamId: string;
|
|
520
|
+
channel: string;
|
|
521
|
+
topic: string | null;
|
|
522
|
+
messageRef: string;
|
|
523
|
+
createdAt: string;
|
|
524
|
+
sendId: string;
|
|
525
|
+
discussionId: string;
|
|
526
|
+
targets: {
|
|
527
|
+
status: "cancelled" | "failed" | "queued" | "running" | "responded";
|
|
528
|
+
projectId: string;
|
|
529
|
+
agentSlug: string;
|
|
530
|
+
projectSlug: string;
|
|
531
|
+
definitionRevision: string;
|
|
532
|
+
invocationId: string | null;
|
|
533
|
+
}[];
|
|
534
|
+
updatedAt: string;
|
|
535
|
+
}>;
|
|
464
536
|
};
|
|
465
537
|
readonly capacity: {
|
|
466
538
|
readonly availability: ControlPlaneOperationBinding<{
|
|
@@ -993,6 +1065,22 @@ export declare const CONTROL_PLANE_OPERATIONS: {
|
|
|
993
1065
|
readonly completionPreflight: ControlPlaneOperationBinding<{
|
|
994
1066
|
assignmentId: string;
|
|
995
1067
|
}, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
|
|
1068
|
+
readonly discussionResponse: ControlPlaneOperationBinding<{
|
|
1069
|
+
assignmentId: string;
|
|
1070
|
+
}, {}, {
|
|
1071
|
+
markdown: string;
|
|
1072
|
+
leaseToken: string;
|
|
1073
|
+
runnerId: string;
|
|
1074
|
+
summary?: string | undefined;
|
|
1075
|
+
usage?: Record<string, unknown> | undefined;
|
|
1076
|
+
}, {
|
|
1077
|
+
schemaVersion: "treeseed.provider-discussion-response-receipt/v1";
|
|
1078
|
+
status: "responded";
|
|
1079
|
+
assignmentId: string;
|
|
1080
|
+
invocationId: string;
|
|
1081
|
+
messageRef: string;
|
|
1082
|
+
settledAt: string;
|
|
1083
|
+
}>;
|
|
996
1084
|
readonly returnAssignment: ControlPlaneOperationBinding<{
|
|
997
1085
|
assignmentId: string;
|
|
998
1086
|
}, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { defineOperation as define, defineTreeDxProxyOperation as treedxProxy } from "./operation-builder.js";
|
|
3
|
+
import { communicationOperations, providerDiscussionResponseOperation } from "./catalog/communication-operations.js";
|
|
3
4
|
const empty = z.object({}).strict();
|
|
4
5
|
const none = z.undefined();
|
|
5
6
|
const record = z.record(z.unknown());
|
|
@@ -282,6 +283,7 @@ const CONTROL_PLANE_OPERATIONS = {
|
|
|
282
283
|
artifact: resource("agents.artifacts.show", "GET", "/v1/projects/{projectId}/agent-artifacts/{artifactId}", { projectId: z.string().min(1), artifactId: z.string().min(1) }, { capability: "agents.read" })
|
|
283
284
|
},
|
|
284
285
|
communications: {
|
|
286
|
+
...communicationOperations(),
|
|
285
287
|
invocations: resource("communications.invocations.list", "GET", "/v1/teams/{teamId}/agent-invocations", { teamId: z.string().min(1) }, { capability: "agents.read", surfaces: ["rest", "mcp_tool", "mcp_resource"], pagination: "cursor" }),
|
|
286
288
|
invocation: resource("communications.invocations.show", "GET", "/v1/teams/{teamId}/agent-invocations/{invocationId}", { teamId: z.string().min(1), invocationId: z.string().min(1) }, { capability: "agents.read", surfaces: ["rest", "mcp_resource"] }),
|
|
287
289
|
status: resource("communications.status.show", "GET", "/v1/teams/{teamId}/communication-status", { teamId: z.string().min(1) }, { capability: "agents.read", surfaces: ["rest", "mcp_tool", "mcp_resource"] }),
|
|
@@ -478,6 +480,7 @@ const CONTROL_PLANE_OPERATIONS = {
|
|
|
478
480
|
startExecution: providerPath("providers.assignments.execution.start", "POST", "/v1/provider/assignments/{assignmentId}/execution-start", { assignmentId: z.string().min(1) }),
|
|
479
481
|
startCloseout: providerPath("providers.assignments.closeout.start", "POST", "/v1/provider/assignments/{assignmentId}/closeout-start", { assignmentId: z.string().min(1) }),
|
|
480
482
|
completionPreflight: providerPath("providers.assignments.completion.preflight", "POST", "/v1/provider/assignments/{assignmentId}/completion-preflight", { assignmentId: z.string().min(1) }),
|
|
483
|
+
discussionResponse: providerDiscussionResponseOperation(),
|
|
481
484
|
returnAssignment: providerPath("providers.assignments.return", "POST", "/v1/provider/assignments/{assignmentId}/return", { assignmentId: z.string().min(1) }),
|
|
482
485
|
completeAssignment: providerPath("providers.assignments.complete", "POST", "/v1/provider/assignments/{assignmentId}/complete", { assignmentId: z.string().min(1) }),
|
|
483
486
|
failAssignment: providerPath("providers.assignments.fail", "POST", "/v1/provider/assignments/{assignmentId}/fail", { assignmentId: z.string().min(1) }),
|