@treeseed/sdk 0.13.0-rc.53 → 0.13.0-rc.55

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.
Files changed (43) hide show
  1. package/README.md +4 -0
  2. package/dist/agent-capacity/authority/agent-authority-presets.js +2 -1
  3. package/dist/agent-capacity/contracts/configuration/configuration.js +1 -1
  4. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +240 -240
  5. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +1 -1
  6. package/dist/capacity-provider/client.d.ts +18 -3
  7. package/dist/capacity-provider/client.js +6 -0
  8. package/dist/capacity-provider/contracts/governance.d.ts +28 -1
  9. package/dist/capacity-provider/index.d.ts +1 -0
  10. package/dist/capacity-provider/index.js +1 -0
  11. package/dist/capacity-provider/sandbox-contracts.d.ts +422 -0
  12. package/dist/capacity-provider/sandbox-contracts.js +71 -0
  13. package/dist/capacity-provider/validation.d.ts +2 -1
  14. package/dist/capacity-provider/validation.js +23 -0
  15. package/dist/content/validation/agent-operational-content-schemas.d.ts +76 -76
  16. package/dist/content/validation/auxiliary-content-schemas.d.ts +20 -20
  17. package/dist/content/validation/content-model-schemas.d.ts +570 -570
  18. package/dist/content/validation/portable-content-data.d.ts +61 -61
  19. package/dist/deployment/ai-mode.d.ts +4 -4
  20. package/dist/deployment/schemas.d.ts +418 -100
  21. package/dist/deployment/schemas.js +23 -1
  22. package/dist/development/schemas.d.ts +22 -22
  23. package/dist/operator-contracts/canonical-command-tree.js +63 -3
  24. package/dist/operator-contracts/catalog/communication-operations.d.ts +300 -33
  25. package/dist/operator-contracts/catalog/communication-operations.js +56 -2
  26. package/dist/operator-contracts/catalog/inbox-operations.d.ts +261 -0
  27. package/dist/operator-contracts/catalog/inbox-operations.js +36 -0
  28. package/dist/operator-contracts/communication/contracts.d.ts +1261 -71
  29. package/dist/operator-contracts/communication/contracts.js +99 -7
  30. package/dist/operator-contracts/control-plane-operations.d.ts +592 -66
  31. package/dist/operator-contracts/control-plane-operations.js +4 -1
  32. package/dist/operator-contracts/inbox/contracts.d.ts +1099 -0
  33. package/dist/operator-contracts/inbox/contracts.js +134 -0
  34. package/dist/operator-contracts/index.d.ts +1 -0
  35. package/dist/operator-contracts/index.js +1 -0
  36. package/dist/operator-contracts/mcp.js +1 -1
  37. package/dist/security/encrypted-envelope.d.ts +177 -0
  38. package/dist/security/encrypted-envelope.js +34 -0
  39. package/dist/security/envelope-codec.d.ts +38 -0
  40. package/dist/security/envelope-codec.js +96 -0
  41. package/dist/security/index.d.ts +2 -0
  42. package/dist/security/index.js +2 -0
  43. package/package.json +5 -1
@@ -1,5 +1,266 @@
1
1
  import { type ControlPlaneOperationBinding, type ControlPlaneOperationDescriptor } from './control-plane-operation.js';
2
2
  export declare const CONTROL_PLANE_OPERATIONS: {
3
+ readonly inbox: {
4
+ list: ControlPlaneOperationBinding<{
5
+ teamId: string;
6
+ }, {
7
+ kind?: "all" | "proposal" | "question" | undefined;
8
+ projectId?: string | undefined;
9
+ state?: "all" | "outstanding" | undefined;
10
+ cursor?: string | undefined;
11
+ limit?: number | undefined;
12
+ }, undefined, {
13
+ schemaVersion: "treeseed.inbox-page/v1";
14
+ items: {
15
+ teamId: string;
16
+ status: "approved" | "rejected" | "outstanding" | "answered" | "closed" | "deleted";
17
+ createdAt: string;
18
+ kind: "proposal" | "question";
19
+ id: string;
20
+ projectId: string;
21
+ version: number;
22
+ projectSlug: string;
23
+ updatedAt: string;
24
+ authorId: string;
25
+ authorLabel: string;
26
+ title: string;
27
+ etag: string;
28
+ }[];
29
+ cursor: string | null;
30
+ }>;
31
+ show: ControlPlaneOperationBinding<{
32
+ teamId: string;
33
+ itemId: string;
34
+ }, {}, undefined, {
35
+ teamId: string;
36
+ schemaVersion: "treeseed.inbox-item/v1";
37
+ status: "approved" | "rejected" | "outstanding" | "answered" | "closed" | "deleted";
38
+ createdAt: string;
39
+ kind: "proposal" | "question";
40
+ id: string;
41
+ projectId: string;
42
+ provenance: {
43
+ digest: string | null;
44
+ repositoryId: string | null;
45
+ contentPath: string | null;
46
+ commitSha: string | null;
47
+ };
48
+ version: number;
49
+ projectSlug: string;
50
+ updatedAt: string;
51
+ markdown: string;
52
+ discussionId: string | null;
53
+ authorId: string;
54
+ authorLabel: string;
55
+ title: string;
56
+ availableActions: {
57
+ reason: string | null;
58
+ enabled: boolean;
59
+ action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
60
+ confirmation: "never" | "input_required";
61
+ label: string;
62
+ requiresFeedback: boolean;
63
+ }[];
64
+ comments: {
65
+ createdAt: string;
66
+ kind: "comment" | "answer" | "reply";
67
+ id: string;
68
+ provenance: {
69
+ digest: string | null;
70
+ repositoryId: string | null;
71
+ contentPath: string | null;
72
+ commitSha: string | null;
73
+ };
74
+ markdown: string;
75
+ parentId: string | null;
76
+ authorId: string;
77
+ authorLabel: string;
78
+ }[];
79
+ etag: string;
80
+ }>;
81
+ events: ControlPlaneOperationBinding<{
82
+ teamId: string;
83
+ }, {
84
+ limit?: number | undefined;
85
+ after?: string | undefined;
86
+ waitSeconds?: number | undefined;
87
+ }, undefined, {
88
+ cursor: string;
89
+ events: {
90
+ teamId: string;
91
+ sequence: string;
92
+ schemaVersion: "treeseed.inbox-event/v1";
93
+ type: "item.created" | "item.updated" | "item.deleted" | "draft.updated" | "comment.created" | "question.answered" | "question.reopened" | "proposal.revised" | "proposal.decided";
94
+ payload: Record<string, unknown>;
95
+ id: string;
96
+ summary: string;
97
+ occurredAt: string;
98
+ itemId: string | null;
99
+ actorId: string;
100
+ }[];
101
+ }>;
102
+ createQuestion: ControlPlaneOperationBinding<{
103
+ teamId: string;
104
+ }, {}, {
105
+ projectId: string;
106
+ markdown: string;
107
+ title: string;
108
+ recipients?: string[] | undefined;
109
+ relatedObjectives?: string[] | undefined;
110
+ }, {
111
+ schemaVersion: "treeseed.inbox-mutation-receipt/v1";
112
+ item: {
113
+ teamId: string;
114
+ schemaVersion: "treeseed.inbox-item/v1";
115
+ status: "approved" | "rejected" | "outstanding" | "answered" | "closed" | "deleted";
116
+ createdAt: string;
117
+ kind: "proposal" | "question";
118
+ id: string;
119
+ projectId: string;
120
+ provenance: {
121
+ digest: string | null;
122
+ repositoryId: string | null;
123
+ contentPath: string | null;
124
+ commitSha: string | null;
125
+ };
126
+ version: number;
127
+ projectSlug: string;
128
+ updatedAt: string;
129
+ markdown: string;
130
+ discussionId: string | null;
131
+ authorId: string;
132
+ authorLabel: string;
133
+ title: string;
134
+ availableActions: {
135
+ reason: string | null;
136
+ enabled: boolean;
137
+ action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
138
+ confirmation: "never" | "input_required";
139
+ label: string;
140
+ requiresFeedback: boolean;
141
+ }[];
142
+ comments: {
143
+ createdAt: string;
144
+ kind: "comment" | "answer" | "reply";
145
+ id: string;
146
+ provenance: {
147
+ digest: string | null;
148
+ repositoryId: string | null;
149
+ contentPath: string | null;
150
+ commitSha: string | null;
151
+ };
152
+ markdown: string;
153
+ parentId: string | null;
154
+ authorId: string;
155
+ authorLabel: string;
156
+ }[];
157
+ etag: string;
158
+ };
159
+ replayed: boolean;
160
+ action?: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen" | undefined;
161
+ receipts?: Record<string, unknown>[] | undefined;
162
+ }>;
163
+ getDraft: ControlPlaneOperationBinding<{
164
+ purpose: "feedback" | "proposal_revision";
165
+ teamId: string;
166
+ itemId: string;
167
+ }, {}, undefined, {
168
+ purpose: "feedback" | "proposal_revision";
169
+ schemaVersion: "treeseed.inbox-draft/v1";
170
+ revision: number;
171
+ updatedAt: string;
172
+ markdown: string;
173
+ etag: string;
174
+ itemId: string;
175
+ baseVersion: number;
176
+ } | null>;
177
+ putDraft: ControlPlaneOperationBinding<{
178
+ purpose: "feedback" | "proposal_revision";
179
+ teamId: string;
180
+ itemId: string;
181
+ }, {}, {
182
+ markdown: string;
183
+ baseVersion: number;
184
+ }, {
185
+ purpose: "feedback" | "proposal_revision";
186
+ schemaVersion: "treeseed.inbox-draft/v1";
187
+ revision: number;
188
+ updatedAt: string;
189
+ markdown: string;
190
+ etag: string;
191
+ itemId: string;
192
+ baseVersion: number;
193
+ }>;
194
+ deleteDraft: ControlPlaneOperationBinding<{
195
+ purpose: "feedback" | "proposal_revision";
196
+ teamId: string;
197
+ itemId: string;
198
+ }, {}, {}, {
199
+ deleted: boolean;
200
+ }>;
201
+ action: ControlPlaneOperationBinding<{
202
+ teamId: string;
203
+ itemId: string;
204
+ }, {}, {
205
+ action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
206
+ markdown?: string | undefined;
207
+ parentId?: string | undefined;
208
+ changeReason?: string | undefined;
209
+ draftRevision?: number | undefined;
210
+ }, {
211
+ schemaVersion: "treeseed.inbox-mutation-receipt/v1";
212
+ item: {
213
+ teamId: string;
214
+ schemaVersion: "treeseed.inbox-item/v1";
215
+ status: "approved" | "rejected" | "outstanding" | "answered" | "closed" | "deleted";
216
+ createdAt: string;
217
+ kind: "proposal" | "question";
218
+ id: string;
219
+ projectId: string;
220
+ provenance: {
221
+ digest: string | null;
222
+ repositoryId: string | null;
223
+ contentPath: string | null;
224
+ commitSha: string | null;
225
+ };
226
+ version: number;
227
+ projectSlug: string;
228
+ updatedAt: string;
229
+ markdown: string;
230
+ discussionId: string | null;
231
+ authorId: string;
232
+ authorLabel: string;
233
+ title: string;
234
+ availableActions: {
235
+ reason: string | null;
236
+ enabled: boolean;
237
+ action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
238
+ confirmation: "never" | "input_required";
239
+ label: string;
240
+ requiresFeedback: boolean;
241
+ }[];
242
+ comments: {
243
+ createdAt: string;
244
+ kind: "comment" | "answer" | "reply";
245
+ id: string;
246
+ provenance: {
247
+ digest: string | null;
248
+ repositoryId: string | null;
249
+ contentPath: string | null;
250
+ commitSha: string | null;
251
+ };
252
+ markdown: string;
253
+ parentId: string | null;
254
+ authorId: string;
255
+ authorLabel: string;
256
+ }[];
257
+ etag: string;
258
+ };
259
+ replayed: boolean;
260
+ action?: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen" | undefined;
261
+ receipts?: Record<string, unknown>[] | undefined;
262
+ }>;
263
+ };
3
264
  readonly treeai: Readonly<Record<string, ControlPlaneOperationBinding<any, any, any, any>>>;
4
265
  readonly status: {
5
266
  readonly show: ControlPlaneOperationBinding<{}, {}, undefined, Record<string, unknown>>;
@@ -10,8 +271,8 @@ export declare const CONTROL_PLANE_OPERATIONS: {
10
271
  };
11
272
  readonly projects: {
12
273
  readonly list: ControlPlaneOperationBinding<{}, {
13
- cursor?: string | undefined;
14
274
  teamId?: string | undefined;
275
+ cursor?: string | undefined;
15
276
  limit?: number | undefined;
16
277
  }, undefined, Record<string, unknown>>;
17
278
  readonly show: ControlPlaneOperationBinding<{
@@ -499,22 +760,25 @@ export declare const CONTROL_PLANE_OPERATIONS: {
499
760
  channel: string;
500
761
  }, {}, {
501
762
  message: string;
502
- projectId: string;
503
763
  timeoutSeconds?: number | undefined;
504
764
  recipients?: string[] | undefined;
505
765
  }, {
766
+ teamId: string;
767
+ sendId: string;
768
+ schemaVersion: "treeseed.communication-send-receipt/v4";
506
769
  status: "failed" | "running" | "partial" | "complete" | "queued";
507
- schemaVersion: "treeseed.communication-send-receipt/v2";
770
+ createdAt: string;
508
771
  targets: {
772
+ invocationId: string | null;
509
773
  status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
510
774
  projectId: string;
511
775
  completedAt: string | null;
512
776
  agentSlug: string;
513
777
  capacity: {
778
+ assignmentId: string | null;
514
779
  status: string | null;
515
780
  completedAt: string | null;
516
781
  providerId: string | null;
517
- assignmentId: string | null;
518
782
  executionProviderId: string | null;
519
783
  laneId: string | null;
520
784
  lanePurpose: string | null;
@@ -523,6 +787,27 @@ export declare const CONTROL_PLANE_OPERATIONS: {
523
787
  returnedAt: string | null;
524
788
  failedAt: string | null;
525
789
  };
790
+ diagnostics: {
791
+ resources: Record<string, unknown>;
792
+ reason: string | null;
793
+ provider: {
794
+ providerId: string | null;
795
+ executionProviderId: string | null;
796
+ runtimeVersion: string | null;
797
+ };
798
+ selection: {
799
+ parameters: Record<string, unknown>;
800
+ capabilities: string[];
801
+ model: string | null;
802
+ };
803
+ usage: Record<string, unknown>[];
804
+ availability: "available" | "unavailable" | "partial";
805
+ identityManifest: Record<string, unknown>;
806
+ contextManifest: Record<string, unknown>[];
807
+ timing: Record<string, unknown>;
808
+ traceEvents: Record<string, unknown>[];
809
+ fullPayload?: Record<string, unknown> | undefined;
810
+ };
526
811
  projectSlug: string;
527
812
  definitionRevision: string;
528
813
  revisions: {
@@ -531,7 +816,6 @@ export declare const CONTROL_PLANE_OPERATIONS: {
531
816
  agentDefinition: string;
532
817
  chatProfile: string;
533
818
  };
534
- invocationId: string | null;
535
819
  requirement: "required" | "optional";
536
820
  parentInvocationId: string | null;
537
821
  depth: number;
@@ -541,53 +825,77 @@ export declare const CONTROL_PLANE_OPERATIONS: {
541
825
  code: string;
542
826
  message: string | null;
543
827
  } | null;
828
+ acknowledgedAt: string | null;
829
+ leaseAcceptedAt: string | null;
544
830
  }[];
545
- createdAt: string;
546
831
  responses: {
832
+ invocationId: string;
833
+ assignmentId: string | null;
547
834
  status: "failed" | "cancelled" | "responded" | "abstained";
548
- projectId: string;
549
835
  createdAt: string;
836
+ projectId: string;
550
837
  agentSlug: string;
551
- assignmentId: string | null;
552
- invocationId: string;
838
+ projectSlug: string;
553
839
  requirement: "required" | "optional";
554
840
  messageRef: string;
555
841
  markdown: string;
556
842
  }[];
557
- teamId: string;
558
843
  channel: string;
559
- updatedAt: string;
560
- messageRef: string;
561
- sendId: string;
562
844
  topic: {
563
845
  id: string;
564
846
  slug: string;
565
847
  };
566
- projectStream: {
848
+ events: {
849
+ teamId: string;
850
+ topicId: string;
851
+ sendId: string | null;
852
+ invocationId: string | null;
853
+ assignmentId: string | null;
854
+ sequence: number;
855
+ type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
856
+ payload: Record<string, unknown>;
857
+ id: string;
858
+ actor: {
859
+ kind: "control-plane" | "provider" | "agent" | "user";
860
+ id: string;
861
+ handle: string | null;
862
+ };
863
+ summary: string;
864
+ channel: string;
865
+ occurredAt: string;
866
+ }[];
867
+ updatedAt: string;
868
+ projectStreams: {
567
869
  id: string;
568
870
  projectId: string;
569
871
  projectSlug: string;
570
- };
571
- discussionId: string;
572
- sourceMessage: string;
872
+ messageRef: string;
873
+ discussionId: string;
874
+ }[];
573
875
  replayed: boolean;
574
876
  }>;
575
877
  readonly sendStatus: ControlPlaneOperationBinding<{
576
878
  teamId: string;
577
879
  sendId: string;
578
- }, {}, undefined, {
880
+ }, {
881
+ diagnostics?: "metadata" | "full" | undefined;
882
+ }, undefined, {
883
+ teamId: string;
884
+ sendId: string;
885
+ schemaVersion: "treeseed.communication-send-receipt/v4";
579
886
  status: "failed" | "running" | "partial" | "complete" | "queued";
580
- schemaVersion: "treeseed.communication-send-receipt/v2";
887
+ createdAt: string;
581
888
  targets: {
889
+ invocationId: string | null;
582
890
  status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
583
891
  projectId: string;
584
892
  completedAt: string | null;
585
893
  agentSlug: string;
586
894
  capacity: {
895
+ assignmentId: string | null;
587
896
  status: string | null;
588
897
  completedAt: string | null;
589
898
  providerId: string | null;
590
- assignmentId: string | null;
591
899
  executionProviderId: string | null;
592
900
  laneId: string | null;
593
901
  lanePurpose: string | null;
@@ -596,6 +904,27 @@ export declare const CONTROL_PLANE_OPERATIONS: {
596
904
  returnedAt: string | null;
597
905
  failedAt: string | null;
598
906
  };
907
+ diagnostics: {
908
+ resources: Record<string, unknown>;
909
+ reason: string | null;
910
+ provider: {
911
+ providerId: string | null;
912
+ executionProviderId: string | null;
913
+ runtimeVersion: string | null;
914
+ };
915
+ selection: {
916
+ parameters: Record<string, unknown>;
917
+ capabilities: string[];
918
+ model: string | null;
919
+ };
920
+ usage: Record<string, unknown>[];
921
+ availability: "available" | "unavailable" | "partial";
922
+ identityManifest: Record<string, unknown>;
923
+ contextManifest: Record<string, unknown>[];
924
+ timing: Record<string, unknown>;
925
+ traceEvents: Record<string, unknown>[];
926
+ fullPayload?: Record<string, unknown> | undefined;
927
+ };
599
928
  projectSlug: string;
600
929
  definitionRevision: string;
601
930
  revisions: {
@@ -604,7 +933,6 @@ export declare const CONTROL_PLANE_OPERATIONS: {
604
933
  agentDefinition: string;
605
934
  chatProfile: string;
606
935
  };
607
- invocationId: string | null;
608
936
  requirement: "required" | "optional";
609
937
  parentInvocationId: string | null;
610
938
  depth: number;
@@ -614,36 +942,206 @@ export declare const CONTROL_PLANE_OPERATIONS: {
614
942
  code: string;
615
943
  message: string | null;
616
944
  } | null;
945
+ acknowledgedAt: string | null;
946
+ leaseAcceptedAt: string | null;
617
947
  }[];
618
- createdAt: string;
619
948
  responses: {
949
+ invocationId: string;
950
+ assignmentId: string | null;
620
951
  status: "failed" | "cancelled" | "responded" | "abstained";
621
- projectId: string;
622
952
  createdAt: string;
953
+ projectId: string;
623
954
  agentSlug: string;
624
- assignmentId: string | null;
625
- invocationId: string;
955
+ projectSlug: string;
626
956
  requirement: "required" | "optional";
627
957
  messageRef: string;
628
958
  markdown: string;
629
959
  }[];
960
+ channel: string;
961
+ topic: {
962
+ id: string;
963
+ slug: string;
964
+ };
965
+ events: {
966
+ teamId: string;
967
+ topicId: string;
968
+ sendId: string | null;
969
+ invocationId: string | null;
970
+ assignmentId: string | null;
971
+ sequence: number;
972
+ type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
973
+ payload: Record<string, unknown>;
974
+ id: string;
975
+ actor: {
976
+ kind: "control-plane" | "provider" | "agent" | "user";
977
+ id: string;
978
+ handle: string | null;
979
+ };
980
+ summary: string;
981
+ channel: string;
982
+ occurredAt: string;
983
+ }[];
984
+ updatedAt: string;
985
+ projectStreams: {
986
+ id: string;
987
+ projectId: string;
988
+ projectSlug: string;
989
+ messageRef: string;
990
+ discussionId: string;
991
+ }[];
992
+ replayed: boolean;
993
+ }>;
994
+ readonly topicsList: ControlPlaneOperationBinding<{
995
+ teamId: string;
996
+ }, {
997
+ status?: "active" | "archived" | undefined;
998
+ cursor?: string | undefined;
999
+ limit?: number | undefined;
1000
+ }, undefined, {
1001
+ items: {
1002
+ teamId: string;
1003
+ status: "active" | "archived";
1004
+ createdAt: string;
1005
+ id: string;
1006
+ updatedAt: string;
1007
+ slug: string;
1008
+ streams: {
1009
+ id: string;
1010
+ projectId: string;
1011
+ projectSlug: string;
1012
+ discussionId: string;
1013
+ }[];
1014
+ listeners: {
1015
+ status: "active" | "removed";
1016
+ projectId: string;
1017
+ source: "operator" | "seed" | "mention";
1018
+ agentSlug: string;
1019
+ projectSlug: string;
1020
+ updatedAt: string;
1021
+ agentHandle: string;
1022
+ subscribedAt: string;
1023
+ }[];
1024
+ }[];
1025
+ cursor: string | null;
1026
+ }>;
1027
+ readonly topicsShow: ControlPlaneOperationBinding<{
630
1028
  teamId: string;
631
1029
  channel: string;
1030
+ }, {}, undefined, {
1031
+ teamId: string;
1032
+ status: "active" | "archived";
1033
+ createdAt: string;
1034
+ id: string;
632
1035
  updatedAt: string;
633
- messageRef: string;
634
- sendId: string;
1036
+ slug: string;
1037
+ streams: {
1038
+ id: string;
1039
+ projectId: string;
1040
+ projectSlug: string;
1041
+ discussionId: string;
1042
+ }[];
1043
+ listeners: {
1044
+ status: "active" | "removed";
1045
+ projectId: string;
1046
+ source: "operator" | "seed" | "mention";
1047
+ agentSlug: string;
1048
+ projectSlug: string;
1049
+ updatedAt: string;
1050
+ agentHandle: string;
1051
+ subscribedAt: string;
1052
+ }[];
1053
+ }>;
1054
+ readonly topicsTimeline: ControlPlaneOperationBinding<{
1055
+ teamId: string;
1056
+ channel: string;
1057
+ }, {
1058
+ limit?: number | undefined;
1059
+ diagnostics?: "metadata" | "full" | undefined;
1060
+ after?: string | undefined;
1061
+ waitSeconds?: number | undefined;
1062
+ }, undefined, {
1063
+ cursor: string | null;
635
1064
  topic: {
1065
+ teamId: string;
1066
+ status: "active" | "archived";
1067
+ createdAt: string;
636
1068
  id: string;
1069
+ updatedAt: string;
637
1070
  slug: string;
1071
+ streams: {
1072
+ id: string;
1073
+ projectId: string;
1074
+ projectSlug: string;
1075
+ discussionId: string;
1076
+ }[];
1077
+ listeners: {
1078
+ status: "active" | "removed";
1079
+ projectId: string;
1080
+ source: "operator" | "seed" | "mention";
1081
+ agentSlug: string;
1082
+ projectSlug: string;
1083
+ updatedAt: string;
1084
+ agentHandle: string;
1085
+ subscribedAt: string;
1086
+ }[];
638
1087
  };
639
- projectStream: {
1088
+ events: {
1089
+ teamId: string;
1090
+ topicId: string;
1091
+ sendId: string | null;
1092
+ invocationId: string | null;
1093
+ assignmentId: string | null;
1094
+ sequence: number;
1095
+ type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
1096
+ payload: Record<string, unknown>;
640
1097
  id: string;
1098
+ actor: {
1099
+ kind: "control-plane" | "provider" | "agent" | "user";
1100
+ id: string;
1101
+ handle: string | null;
1102
+ };
1103
+ summary: string;
1104
+ channel: string;
1105
+ occurredAt: string;
1106
+ }[];
1107
+ }>;
1108
+ readonly topicsSubscribe: ControlPlaneOperationBinding<{
1109
+ teamId: string;
1110
+ channel: string;
1111
+ }, {}, {
1112
+ agent: string;
1113
+ }, {
1114
+ topicId: string;
1115
+ replayed: boolean;
1116
+ listener: {
1117
+ status: "active" | "removed";
641
1118
  projectId: string;
1119
+ source: "operator" | "seed" | "mention";
1120
+ agentSlug: string;
642
1121
  projectSlug: string;
1122
+ updatedAt: string;
1123
+ agentHandle: string;
1124
+ subscribedAt: string;
643
1125
  };
644
- discussionId: string;
645
- sourceMessage: string;
1126
+ }>;
1127
+ readonly topicsUnsubscribe: ControlPlaneOperationBinding<{
1128
+ teamId: string;
1129
+ channel: string;
1130
+ }, {}, {
1131
+ agent: string;
1132
+ }, {
1133
+ topicId: string;
646
1134
  replayed: boolean;
1135
+ listener: {
1136
+ status: "active" | "removed";
1137
+ projectId: string;
1138
+ source: "operator" | "seed" | "mention";
1139
+ agentSlug: string;
1140
+ projectSlug: string;
1141
+ updatedAt: string;
1142
+ agentHandle: string;
1143
+ subscribedAt: string;
1144
+ };
647
1145
  }>;
648
1146
  };
649
1147
  readonly capacity: {
@@ -1087,6 +1585,66 @@ export declare const CONTROL_PLANE_OPERATIONS: {
1087
1585
  };
1088
1586
  };
1089
1587
  readonly providers: {
1588
+ readonly returnAssignment: ControlPlaneOperationBinding<{
1589
+ assignmentId: string;
1590
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
1591
+ readonly completeAssignment: ControlPlaneOperationBinding<{
1592
+ assignmentId: string;
1593
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
1594
+ readonly failAssignment: ControlPlaneOperationBinding<{
1595
+ assignmentId: string;
1596
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
1597
+ readonly reportUsage: ControlPlaneOperationBinding<{
1598
+ assignmentId: string;
1599
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
1600
+ readonly settleAssignment: ControlPlaneOperationBinding<{
1601
+ assignmentId: string;
1602
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
1603
+ readonly createModeRun: ControlPlaneOperationBinding<{
1604
+ assignmentId: string;
1605
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
1606
+ readonly createEvent: ControlPlaneOperationBinding<{
1607
+ assignmentId: string;
1608
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
1609
+ readonly publishSignal: ControlPlaneOperationBinding<{
1610
+ assignmentId: string;
1611
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
1612
+ readonly dispatchWorkflow: ControlPlaneOperationBinding<{
1613
+ assignmentId: string;
1614
+ operationId: string;
1615
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
1616
+ readonly workflowRun: ControlPlaneOperationBinding<{
1617
+ assignmentId: string;
1618
+ runId: string;
1619
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
1620
+ readonly notificationAcknowledge: ControlPlaneOperationBinding<{
1621
+ assignmentId: string;
1622
+ }, {}, {
1623
+ providerId: string;
1624
+ runnerId: string;
1625
+ observedAt: string;
1626
+ }, {
1627
+ assignmentId: string;
1628
+ acknowledgedAt: string;
1629
+ replayed: boolean;
1630
+ }>;
1631
+ readonly traceEvent: ControlPlaneOperationBinding<{
1632
+ assignmentId: string;
1633
+ }, {}, {
1634
+ sequence: number;
1635
+ type: string;
1636
+ payload: Record<string, unknown>;
1637
+ summary: string;
1638
+ occurredAt: string;
1639
+ runnerId: string;
1640
+ leaseToken: string;
1641
+ protectedPayload?: Record<string, unknown> | undefined;
1642
+ }, {
1643
+ assignmentId: string;
1644
+ sequence: number;
1645
+ replayed: boolean;
1646
+ acceptedAt: string;
1647
+ }>;
1090
1648
  readonly list: ControlPlaneOperationBinding<{
1091
1649
  teamId: string;
1092
1650
  }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
@@ -1180,52 +1738,20 @@ export declare const CONTROL_PLANE_OPERATIONS: {
1180
1738
  readonly discussionResponse: ControlPlaneOperationBinding<{
1181
1739
  assignmentId: string;
1182
1740
  }, {}, {
1183
- leaseToken: string;
1184
1741
  runnerId: string;
1742
+ leaseToken: string;
1185
1743
  summary?: string | undefined;
1186
1744
  usage?: Record<string, unknown> | undefined;
1187
1745
  markdown?: string | undefined;
1188
1746
  outcome?: "responded" | "abstained" | undefined;
1189
1747
  }, {
1190
- status: "responded" | "abstained";
1191
- schemaVersion: "treeseed.provider-discussion-response-receipt/v1";
1192
- assignmentId: string;
1193
1748
  invocationId: string;
1749
+ assignmentId: string;
1750
+ schemaVersion: "treeseed.provider-discussion-response-receipt/v1";
1751
+ status: "responded" | "abstained";
1194
1752
  messageRef: string;
1195
1753
  settledAt: string;
1196
1754
  }>;
1197
- readonly returnAssignment: ControlPlaneOperationBinding<{
1198
- assignmentId: string;
1199
- }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
1200
- readonly completeAssignment: ControlPlaneOperationBinding<{
1201
- assignmentId: string;
1202
- }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
1203
- readonly failAssignment: ControlPlaneOperationBinding<{
1204
- assignmentId: string;
1205
- }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
1206
- readonly reportUsage: ControlPlaneOperationBinding<{
1207
- assignmentId: string;
1208
- }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
1209
- readonly settleAssignment: ControlPlaneOperationBinding<{
1210
- assignmentId: string;
1211
- }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
1212
- readonly createModeRun: ControlPlaneOperationBinding<{
1213
- assignmentId: string;
1214
- }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
1215
- readonly createEvent: ControlPlaneOperationBinding<{
1216
- assignmentId: string;
1217
- }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
1218
- readonly publishSignal: ControlPlaneOperationBinding<{
1219
- assignmentId: string;
1220
- }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
1221
- readonly dispatchWorkflow: ControlPlaneOperationBinding<{
1222
- operationId: string;
1223
- assignmentId: string;
1224
- }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
1225
- readonly workflowRun: ControlPlaneOperationBinding<{
1226
- runId: string;
1227
- assignmentId: string;
1228
- }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
1229
1755
  };
1230
1756
  };
1231
1757
  export declare const CONTROL_PLANE_OPERATION_LIST: readonly ControlPlaneOperationBinding<any, any, any, any>[];