@treeseed/sdk 0.13.0-rc.118 → 0.13.0-rc.119

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 (73) hide show
  1. package/dist/.treeseed-build-complete.json +1 -1
  2. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.d.ts +4199 -0
  3. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +155 -0
  4. package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +7 -1
  5. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.d.ts +199 -0
  6. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.js +96 -0
  7. package/dist/agent-capacity/contracts/operations/agent-team-clone.d.ts +218 -0
  8. package/dist/agent-capacity/contracts/operations/agent-team-clone.js +57 -0
  9. package/dist/agent-capacity/contracts/support/decision-work.d.ts +1 -24
  10. package/dist/agent-capacity/contracts/support/execution-graph.d.ts +1087 -0
  11. package/dist/agent-capacity/contracts/support/execution-graph.js +120 -0
  12. package/dist/agent-capacity/validation/activity-profile.d.ts +1 -1
  13. package/dist/agent-capacity/validation/activity-profile.js +3 -272
  14. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +2699 -8867
  15. package/dist/agent-capacity/validation/agent-definition-schema.js +67 -159
  16. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +3 -3
  17. package/dist/agent-capacity/validation/assignment-records.js +1 -1
  18. package/dist/agent-capacity/validation/execution/execution-graph.d.ts +1 -0
  19. package/dist/agent-capacity/validation/execution/execution-graph.js +16 -0
  20. package/dist/agent-capacity/validation/index.d.ts +2 -1
  21. package/dist/agent-capacity/validation/index.js +2 -1
  22. package/dist/capacity/agents/agent-capacity.d.ts +5 -1
  23. package/dist/capacity/agents/agent-capacity.js +4 -1
  24. package/dist/capacity-provider/client.d.ts +1 -43
  25. package/dist/capacity-provider/client.js +1 -22
  26. package/dist/capacity-provider/sandbox-contracts.d.ts +4 -4
  27. package/dist/capacity-provider/sandbox.d.ts +0 -1
  28. package/dist/capacity-provider/sandbox.js +0 -1
  29. package/dist/capacity-provider/source-workspace.d.ts +19 -171
  30. package/dist/capacity-provider/source-workspace.js +7 -24
  31. package/dist/content/contracts.d.ts +1 -1
  32. package/dist/content/validation/agent-operational-content-schemas.d.ts +24 -695
  33. package/dist/content/validation/agent-operational-content-schemas.js +11 -54
  34. package/dist/content/validation/auxiliary-content-schemas.d.ts +58 -58
  35. package/dist/content/validation/content-model-schemas.d.ts +8617 -18610
  36. package/dist/content/validation/content-model-schemas.js +160 -43
  37. package/dist/content/validation/portable-content-data.d.ts +369 -1681
  38. package/dist/content/validation/portable-content-data.js +5 -4
  39. package/dist/model-registry/agent-operational-models.d.ts +1 -1
  40. package/dist/model-registry/agent-operational-models.js +0 -3
  41. package/dist/model-registry/build-builtin-model-registry.js +44 -72
  42. package/dist/operator-contracts/canonical-command-tree.js +62 -179
  43. package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +75 -0
  44. package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.js +42 -0
  45. package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +60 -0
  46. package/dist/operator-contracts/catalog/commands/command-tree-builders.js +191 -0
  47. package/dist/operator-contracts/catalog/communication-operations.d.ts +1 -1
  48. package/dist/operator-contracts/catalog/execution/execution-operations.d.ts +36 -0
  49. package/dist/operator-contracts/catalog/execution/execution-operations.js +39 -0
  50. package/dist/operator-contracts/catalog/inbox-operations.d.ts +5 -1
  51. package/dist/operator-contracts/command-tree.js +1 -0
  52. package/dist/operator-contracts/control-plane-operations.d.ts +136 -73
  53. package/dist/operator-contracts/control-plane-operations.js +19 -40
  54. package/dist/operator-contracts/inbox/contracts.d.ts +12 -0
  55. package/dist/operator-contracts/inbox/contracts.js +5 -1
  56. package/dist/operator-contracts/mcp.js +1 -1
  57. package/dist/operator-contracts/workday-lifecycle.d.ts +6 -8
  58. package/dist/operator-contracts/workday-lifecycle.js +3 -3
  59. package/dist/sdk-types/support/sdk-model-names.d.ts +1 -1
  60. package/dist/sdk-types/support/sdk-model-names.js +0 -3
  61. package/dist/secrets-capability/shared-resources.d.ts +6 -6
  62. package/dist/types/agents/agent-activity-profile.d.ts +39 -77
  63. package/dist/types/agents/agent-activity-profile.js +23 -0
  64. package/dist/types/agents/execution-run-ref.d.ts +1 -8
  65. package/package.json +1 -1
  66. package/dist/agent-capacity/authority/agent-authority-presets.d.ts +0 -13
  67. package/dist/agent-capacity/authority/agent-authority-presets.js +0 -107
  68. package/dist/agent-capacity/contracts/operations/workflow-promotion.d.ts +0 -24
  69. package/dist/agent-capacity/contracts/operations/workflow-promotion.js +0 -0
  70. package/dist/agent-capacity/validation/workflow-promotion.d.ts +0 -2
  71. package/dist/agent-capacity/validation/workflow-promotion.js +0 -34
  72. package/dist/capacity-provider/source/candidate.d.ts +0 -1275
  73. package/dist/capacity-provider/source/candidate.js +0 -72
@@ -0,0 +1,1087 @@
1
+ import { z } from 'zod';
2
+ export declare const conditionDefinitionSchema: z.ZodObject<{
3
+ conditionType: z.ZodEnum<["question", "external", "authority", "lifecycle"]>;
4
+ subjectRef: z.ZodEffects<z.ZodObject<{
5
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
6
+ model: z.ZodString;
7
+ id: z.ZodString;
8
+ revision: z.ZodOptional<z.ZodNumber>;
9
+ digest: z.ZodOptional<z.ZodString>;
10
+ repository: z.ZodOptional<z.ZodString>;
11
+ commit: z.ZodOptional<z.ZodString>;
12
+ path: z.ZodOptional<z.ZodString>;
13
+ anchor: z.ZodOptional<z.ZodString>;
14
+ startLine: z.ZodOptional<z.ZodNumber>;
15
+ endLine: z.ZodOptional<z.ZodNumber>;
16
+ url: z.ZodOptional<z.ZodString>;
17
+ }, "strict", z.ZodTypeAny, {
18
+ id: string;
19
+ model: string;
20
+ store: "git" | "url" | "postgresql" | "treedx";
21
+ path?: string | undefined;
22
+ repository?: string | undefined;
23
+ commit?: string | undefined;
24
+ digest?: string | undefined;
25
+ anchor?: string | undefined;
26
+ url?: string | undefined;
27
+ revision?: number | undefined;
28
+ startLine?: number | undefined;
29
+ endLine?: number | undefined;
30
+ }, {
31
+ id: string;
32
+ model: string;
33
+ store: "git" | "url" | "postgresql" | "treedx";
34
+ path?: string | undefined;
35
+ repository?: string | undefined;
36
+ commit?: string | undefined;
37
+ digest?: string | undefined;
38
+ anchor?: string | undefined;
39
+ url?: string | undefined;
40
+ revision?: number | undefined;
41
+ startLine?: number | undefined;
42
+ endLine?: number | undefined;
43
+ }>, {
44
+ id: string;
45
+ model: string;
46
+ store: "git" | "url" | "postgresql" | "treedx";
47
+ path?: string | undefined;
48
+ repository?: string | undefined;
49
+ commit?: string | undefined;
50
+ digest?: string | undefined;
51
+ anchor?: string | undefined;
52
+ url?: string | undefined;
53
+ revision?: number | undefined;
54
+ startLine?: number | undefined;
55
+ endLine?: number | undefined;
56
+ }, {
57
+ id: string;
58
+ model: string;
59
+ store: "git" | "url" | "postgresql" | "treedx";
60
+ path?: string | undefined;
61
+ repository?: string | undefined;
62
+ commit?: string | undefined;
63
+ digest?: string | undefined;
64
+ anchor?: string | undefined;
65
+ url?: string | undefined;
66
+ revision?: number | undefined;
67
+ startLine?: number | undefined;
68
+ endLine?: number | undefined;
69
+ }>;
70
+ expectedState: z.ZodString;
71
+ }, "strict", z.ZodTypeAny, {
72
+ conditionType: "external" | "authority" | "question" | "lifecycle";
73
+ subjectRef: {
74
+ id: string;
75
+ model: string;
76
+ store: "git" | "url" | "postgresql" | "treedx";
77
+ path?: string | undefined;
78
+ repository?: string | undefined;
79
+ commit?: string | undefined;
80
+ digest?: string | undefined;
81
+ anchor?: string | undefined;
82
+ url?: string | undefined;
83
+ revision?: number | undefined;
84
+ startLine?: number | undefined;
85
+ endLine?: number | undefined;
86
+ };
87
+ expectedState: string;
88
+ }, {
89
+ conditionType: "external" | "authority" | "question" | "lifecycle";
90
+ subjectRef: {
91
+ id: string;
92
+ model: string;
93
+ store: "git" | "url" | "postgresql" | "treedx";
94
+ path?: string | undefined;
95
+ repository?: string | undefined;
96
+ commit?: string | undefined;
97
+ digest?: string | undefined;
98
+ anchor?: string | undefined;
99
+ url?: string | undefined;
100
+ revision?: number | undefined;
101
+ startLine?: number | undefined;
102
+ endLine?: number | undefined;
103
+ };
104
+ expectedState: string;
105
+ }>;
106
+ export declare const executionNodeSchema: z.ZodEffects<z.ZodObject<{
107
+ schemaVersion: z.ZodLiteral<"treeseed.execution-node/v1">;
108
+ id: z.ZodString;
109
+ teamId: z.ZodString;
110
+ projectId: z.ZodString;
111
+ workdayId: z.ZodOptional<z.ZodString>;
112
+ workItemId: z.ZodOptional<z.ZodString>;
113
+ kind: z.ZodEnum<["planning", "estimating", "acting", "reviewing", "reporting", "communication", "condition"]>;
114
+ pairRole: z.ZodNullable<z.ZodEnum<["actor", "reviewer"]>>;
115
+ sourceRef: z.ZodEffects<z.ZodObject<{
116
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
117
+ model: z.ZodString;
118
+ id: z.ZodString;
119
+ revision: z.ZodOptional<z.ZodNumber>;
120
+ digest: z.ZodOptional<z.ZodString>;
121
+ repository: z.ZodOptional<z.ZodString>;
122
+ commit: z.ZodOptional<z.ZodString>;
123
+ path: z.ZodOptional<z.ZodString>;
124
+ anchor: z.ZodOptional<z.ZodString>;
125
+ startLine: z.ZodOptional<z.ZodNumber>;
126
+ endLine: z.ZodOptional<z.ZodNumber>;
127
+ url: z.ZodOptional<z.ZodString>;
128
+ }, "strict", z.ZodTypeAny, {
129
+ id: string;
130
+ model: string;
131
+ store: "git" | "url" | "postgresql" | "treedx";
132
+ path?: string | undefined;
133
+ repository?: string | undefined;
134
+ commit?: string | undefined;
135
+ digest?: string | undefined;
136
+ anchor?: string | undefined;
137
+ url?: string | undefined;
138
+ revision?: number | undefined;
139
+ startLine?: number | undefined;
140
+ endLine?: number | undefined;
141
+ }, {
142
+ id: string;
143
+ model: string;
144
+ store: "git" | "url" | "postgresql" | "treedx";
145
+ path?: string | undefined;
146
+ repository?: string | undefined;
147
+ commit?: string | undefined;
148
+ digest?: string | undefined;
149
+ anchor?: string | undefined;
150
+ url?: string | undefined;
151
+ revision?: number | undefined;
152
+ startLine?: number | undefined;
153
+ endLine?: number | undefined;
154
+ }>, {
155
+ id: string;
156
+ model: string;
157
+ store: "git" | "url" | "postgresql" | "treedx";
158
+ path?: string | undefined;
159
+ repository?: string | undefined;
160
+ commit?: string | undefined;
161
+ digest?: string | undefined;
162
+ anchor?: string | undefined;
163
+ url?: string | undefined;
164
+ revision?: number | undefined;
165
+ startLine?: number | undefined;
166
+ endLine?: number | undefined;
167
+ }, {
168
+ id: string;
169
+ model: string;
170
+ store: "git" | "url" | "postgresql" | "treedx";
171
+ path?: string | undefined;
172
+ repository?: string | undefined;
173
+ commit?: string | undefined;
174
+ digest?: string | undefined;
175
+ anchor?: string | undefined;
176
+ url?: string | undefined;
177
+ revision?: number | undefined;
178
+ startLine?: number | undefined;
179
+ endLine?: number | undefined;
180
+ }>;
181
+ authorityRefs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
182
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
183
+ model: z.ZodString;
184
+ id: z.ZodString;
185
+ revision: z.ZodOptional<z.ZodNumber>;
186
+ digest: z.ZodOptional<z.ZodString>;
187
+ repository: z.ZodOptional<z.ZodString>;
188
+ commit: z.ZodOptional<z.ZodString>;
189
+ path: z.ZodOptional<z.ZodString>;
190
+ anchor: z.ZodOptional<z.ZodString>;
191
+ startLine: z.ZodOptional<z.ZodNumber>;
192
+ endLine: z.ZodOptional<z.ZodNumber>;
193
+ url: z.ZodOptional<z.ZodString>;
194
+ }, "strict", z.ZodTypeAny, {
195
+ id: string;
196
+ model: string;
197
+ store: "git" | "url" | "postgresql" | "treedx";
198
+ path?: string | undefined;
199
+ repository?: string | undefined;
200
+ commit?: string | undefined;
201
+ digest?: string | undefined;
202
+ anchor?: string | undefined;
203
+ url?: string | undefined;
204
+ revision?: number | undefined;
205
+ startLine?: number | undefined;
206
+ endLine?: number | undefined;
207
+ }, {
208
+ id: string;
209
+ model: string;
210
+ store: "git" | "url" | "postgresql" | "treedx";
211
+ path?: string | undefined;
212
+ repository?: string | undefined;
213
+ commit?: string | undefined;
214
+ digest?: string | undefined;
215
+ anchor?: string | undefined;
216
+ url?: string | undefined;
217
+ revision?: number | undefined;
218
+ startLine?: number | undefined;
219
+ endLine?: number | undefined;
220
+ }>, {
221
+ id: string;
222
+ model: string;
223
+ store: "git" | "url" | "postgresql" | "treedx";
224
+ path?: string | undefined;
225
+ repository?: string | undefined;
226
+ commit?: string | undefined;
227
+ digest?: string | undefined;
228
+ anchor?: string | undefined;
229
+ url?: string | undefined;
230
+ revision?: number | undefined;
231
+ startLine?: number | undefined;
232
+ endLine?: number | undefined;
233
+ }, {
234
+ id: string;
235
+ model: string;
236
+ store: "git" | "url" | "postgresql" | "treedx";
237
+ path?: string | undefined;
238
+ repository?: string | undefined;
239
+ commit?: string | undefined;
240
+ digest?: string | undefined;
241
+ anchor?: string | undefined;
242
+ url?: string | undefined;
243
+ revision?: number | undefined;
244
+ startLine?: number | undefined;
245
+ endLine?: number | undefined;
246
+ }>, "many">>;
247
+ ruleRevision: z.ZodNumber;
248
+ nodeRevision: z.ZodNumber;
249
+ agentClass: z.ZodOptional<z.ZodString>;
250
+ status: z.ZodEnum<["proposed", "blocked", "ready", "assigned", "running", "completed", "failed", "cancelled", "stale"]>;
251
+ estimate: z.ZodOptional<z.ZodEffects<z.ZodObject<{
252
+ minimumSeconds: z.ZodNumber;
253
+ expectedSeconds: z.ZodNumber;
254
+ maximumSeconds: z.ZodNumber;
255
+ rationale: z.ZodOptional<z.ZodString>;
256
+ }, "strict", z.ZodTypeAny, {
257
+ minimumSeconds: number;
258
+ expectedSeconds: number;
259
+ maximumSeconds: number;
260
+ rationale?: string | undefined;
261
+ }, {
262
+ minimumSeconds: number;
263
+ expectedSeconds: number;
264
+ maximumSeconds: number;
265
+ rationale?: string | undefined;
266
+ }>, {
267
+ minimumSeconds: number;
268
+ expectedSeconds: number;
269
+ maximumSeconds: number;
270
+ rationale?: string | undefined;
271
+ }, {
272
+ minimumSeconds: number;
273
+ expectedSeconds: number;
274
+ maximumSeconds: number;
275
+ rationale?: string | undefined;
276
+ }>>;
277
+ requiredCapabilities: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
278
+ requestedPermissions: z.ZodOptional<z.ZodObject<{
279
+ content: z.ZodObject<{
280
+ read: z.ZodEffects<z.ZodArray<z.ZodEnum<["agent", "book", "knowledge", "objective", "discussion", "discussion-message", "proposal", "question", "note", "decision"]>, "many">, ("agent" | "knowledge" | "decision" | "proposal" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[], ("agent" | "knowledge" | "decision" | "proposal" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[]>;
281
+ write: z.ZodEffects<z.ZodArray<z.ZodEnum<["agent", "book", "knowledge", "objective", "discussion", "discussion-message", "proposal", "question", "note", "decision"]>, "many">, ("agent" | "knowledge" | "decision" | "proposal" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[], ("agent" | "knowledge" | "decision" | "proposal" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[]>;
282
+ }, "strict", z.ZodTypeAny, {
283
+ read: ("agent" | "knowledge" | "decision" | "proposal" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
284
+ write: ("agent" | "knowledge" | "decision" | "proposal" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
285
+ }, {
286
+ read: ("agent" | "knowledge" | "decision" | "proposal" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
287
+ write: ("agent" | "knowledge" | "decision" | "proposal" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
288
+ }>;
289
+ tools: z.ZodEffects<z.ZodArray<z.ZodEnum<["discussion", "source.read", "source.write", "verification", "release"]>, "many">, ("release" | "verification" | "discussion" | "source.read" | "source.write")[], ("release" | "verification" | "discussion" | "source.read" | "source.write")[]>;
290
+ }, "strict", z.ZodTypeAny, {
291
+ content: {
292
+ read: ("agent" | "knowledge" | "decision" | "proposal" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
293
+ write: ("agent" | "knowledge" | "decision" | "proposal" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
294
+ };
295
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
296
+ }, {
297
+ content: {
298
+ read: ("agent" | "knowledge" | "decision" | "proposal" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
299
+ write: ("agent" | "knowledge" | "decision" | "proposal" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
300
+ };
301
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
302
+ }>>;
303
+ workspace: z.ZodOptional<z.ZodEnum<["read-only", "treedx", "git"]>>;
304
+ acceptanceCriteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
305
+ maximumReviewCycles: z.ZodOptional<z.ZodNumber>;
306
+ condition: z.ZodOptional<z.ZodObject<{
307
+ conditionType: z.ZodEnum<["question", "external", "authority", "lifecycle"]>;
308
+ subjectRef: z.ZodEffects<z.ZodObject<{
309
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
310
+ model: z.ZodString;
311
+ id: z.ZodString;
312
+ revision: z.ZodOptional<z.ZodNumber>;
313
+ digest: z.ZodOptional<z.ZodString>;
314
+ repository: z.ZodOptional<z.ZodString>;
315
+ commit: z.ZodOptional<z.ZodString>;
316
+ path: z.ZodOptional<z.ZodString>;
317
+ anchor: z.ZodOptional<z.ZodString>;
318
+ startLine: z.ZodOptional<z.ZodNumber>;
319
+ endLine: z.ZodOptional<z.ZodNumber>;
320
+ url: z.ZodOptional<z.ZodString>;
321
+ }, "strict", z.ZodTypeAny, {
322
+ id: string;
323
+ model: string;
324
+ store: "git" | "url" | "postgresql" | "treedx";
325
+ path?: string | undefined;
326
+ repository?: string | undefined;
327
+ commit?: string | undefined;
328
+ digest?: string | undefined;
329
+ anchor?: string | undefined;
330
+ url?: string | undefined;
331
+ revision?: number | undefined;
332
+ startLine?: number | undefined;
333
+ endLine?: number | undefined;
334
+ }, {
335
+ id: string;
336
+ model: string;
337
+ store: "git" | "url" | "postgresql" | "treedx";
338
+ path?: string | undefined;
339
+ repository?: string | undefined;
340
+ commit?: string | undefined;
341
+ digest?: string | undefined;
342
+ anchor?: string | undefined;
343
+ url?: string | undefined;
344
+ revision?: number | undefined;
345
+ startLine?: number | undefined;
346
+ endLine?: number | undefined;
347
+ }>, {
348
+ id: string;
349
+ model: string;
350
+ store: "git" | "url" | "postgresql" | "treedx";
351
+ path?: string | undefined;
352
+ repository?: string | undefined;
353
+ commit?: string | undefined;
354
+ digest?: string | undefined;
355
+ anchor?: string | undefined;
356
+ url?: string | undefined;
357
+ revision?: number | undefined;
358
+ startLine?: number | undefined;
359
+ endLine?: number | undefined;
360
+ }, {
361
+ id: string;
362
+ model: string;
363
+ store: "git" | "url" | "postgresql" | "treedx";
364
+ path?: string | undefined;
365
+ repository?: string | undefined;
366
+ commit?: string | undefined;
367
+ digest?: string | undefined;
368
+ anchor?: string | undefined;
369
+ url?: string | undefined;
370
+ revision?: number | undefined;
371
+ startLine?: number | undefined;
372
+ endLine?: number | undefined;
373
+ }>;
374
+ expectedState: z.ZodString;
375
+ }, "strict", z.ZodTypeAny, {
376
+ conditionType: "external" | "authority" | "question" | "lifecycle";
377
+ subjectRef: {
378
+ id: string;
379
+ model: string;
380
+ store: "git" | "url" | "postgresql" | "treedx";
381
+ path?: string | undefined;
382
+ repository?: string | undefined;
383
+ commit?: string | undefined;
384
+ digest?: string | undefined;
385
+ anchor?: string | undefined;
386
+ url?: string | undefined;
387
+ revision?: number | undefined;
388
+ startLine?: number | undefined;
389
+ endLine?: number | undefined;
390
+ };
391
+ expectedState: string;
392
+ }, {
393
+ conditionType: "external" | "authority" | "question" | "lifecycle";
394
+ subjectRef: {
395
+ id: string;
396
+ model: string;
397
+ store: "git" | "url" | "postgresql" | "treedx";
398
+ path?: string | undefined;
399
+ repository?: string | undefined;
400
+ commit?: string | undefined;
401
+ digest?: string | undefined;
402
+ anchor?: string | undefined;
403
+ url?: string | undefined;
404
+ revision?: number | undefined;
405
+ startLine?: number | undefined;
406
+ endLine?: number | undefined;
407
+ };
408
+ expectedState: string;
409
+ }>>;
410
+ graphRevisionCreated: z.ZodNumber;
411
+ graphRevisionUpdated: z.ZodNumber;
412
+ }, "strict", z.ZodTypeAny, {
413
+ status: "blocked" | "ready" | "stale" | "failed" | "running" | "completed" | "cancelled" | "proposed" | "assigned";
414
+ kind: "planning" | "acting" | "estimating" | "reviewing" | "reporting" | "communication" | "condition";
415
+ id: string;
416
+ schemaVersion: "treeseed.execution-node/v1";
417
+ projectId: string;
418
+ teamId: string;
419
+ nodeRevision: number;
420
+ sourceRef: {
421
+ id: string;
422
+ model: string;
423
+ store: "git" | "url" | "postgresql" | "treedx";
424
+ path?: string | undefined;
425
+ repository?: string | undefined;
426
+ commit?: string | undefined;
427
+ digest?: string | undefined;
428
+ anchor?: string | undefined;
429
+ url?: string | undefined;
430
+ revision?: number | undefined;
431
+ startLine?: number | undefined;
432
+ endLine?: number | undefined;
433
+ };
434
+ pairRole: "actor" | "reviewer" | null;
435
+ ruleRevision: number;
436
+ graphRevisionCreated: number;
437
+ graphRevisionUpdated: number;
438
+ requiredCapabilities?: string[] | undefined;
439
+ workspace?: "git" | "treedx" | "read-only" | undefined;
440
+ agentClass?: string | undefined;
441
+ estimate?: {
442
+ minimumSeconds: number;
443
+ expectedSeconds: number;
444
+ maximumSeconds: number;
445
+ rationale?: string | undefined;
446
+ } | undefined;
447
+ workdayId?: string | undefined;
448
+ workItemId?: string | undefined;
449
+ authorityRefs?: {
450
+ id: string;
451
+ model: string;
452
+ store: "git" | "url" | "postgresql" | "treedx";
453
+ path?: string | undefined;
454
+ repository?: string | undefined;
455
+ commit?: string | undefined;
456
+ digest?: string | undefined;
457
+ anchor?: string | undefined;
458
+ url?: string | undefined;
459
+ revision?: number | undefined;
460
+ startLine?: number | undefined;
461
+ endLine?: number | undefined;
462
+ }[] | undefined;
463
+ acceptanceCriteria?: string[] | undefined;
464
+ condition?: {
465
+ conditionType: "external" | "authority" | "question" | "lifecycle";
466
+ subjectRef: {
467
+ id: string;
468
+ model: string;
469
+ store: "git" | "url" | "postgresql" | "treedx";
470
+ path?: string | undefined;
471
+ repository?: string | undefined;
472
+ commit?: string | undefined;
473
+ digest?: string | undefined;
474
+ anchor?: string | undefined;
475
+ url?: string | undefined;
476
+ revision?: number | undefined;
477
+ startLine?: number | undefined;
478
+ endLine?: number | undefined;
479
+ };
480
+ expectedState: string;
481
+ } | undefined;
482
+ requestedPermissions?: {
483
+ content: {
484
+ read: ("agent" | "knowledge" | "decision" | "proposal" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
485
+ write: ("agent" | "knowledge" | "decision" | "proposal" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
486
+ };
487
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
488
+ } | undefined;
489
+ maximumReviewCycles?: number | undefined;
490
+ }, {
491
+ status: "blocked" | "ready" | "stale" | "failed" | "running" | "completed" | "cancelled" | "proposed" | "assigned";
492
+ kind: "planning" | "acting" | "estimating" | "reviewing" | "reporting" | "communication" | "condition";
493
+ id: string;
494
+ schemaVersion: "treeseed.execution-node/v1";
495
+ projectId: string;
496
+ teamId: string;
497
+ nodeRevision: number;
498
+ sourceRef: {
499
+ id: string;
500
+ model: string;
501
+ store: "git" | "url" | "postgresql" | "treedx";
502
+ path?: string | undefined;
503
+ repository?: string | undefined;
504
+ commit?: string | undefined;
505
+ digest?: string | undefined;
506
+ anchor?: string | undefined;
507
+ url?: string | undefined;
508
+ revision?: number | undefined;
509
+ startLine?: number | undefined;
510
+ endLine?: number | undefined;
511
+ };
512
+ pairRole: "actor" | "reviewer" | null;
513
+ ruleRevision: number;
514
+ graphRevisionCreated: number;
515
+ graphRevisionUpdated: number;
516
+ requiredCapabilities?: string[] | undefined;
517
+ workspace?: "git" | "treedx" | "read-only" | undefined;
518
+ agentClass?: string | undefined;
519
+ estimate?: {
520
+ minimumSeconds: number;
521
+ expectedSeconds: number;
522
+ maximumSeconds: number;
523
+ rationale?: string | undefined;
524
+ } | undefined;
525
+ workdayId?: string | undefined;
526
+ workItemId?: string | undefined;
527
+ authorityRefs?: {
528
+ id: string;
529
+ model: string;
530
+ store: "git" | "url" | "postgresql" | "treedx";
531
+ path?: string | undefined;
532
+ repository?: string | undefined;
533
+ commit?: string | undefined;
534
+ digest?: string | undefined;
535
+ anchor?: string | undefined;
536
+ url?: string | undefined;
537
+ revision?: number | undefined;
538
+ startLine?: number | undefined;
539
+ endLine?: number | undefined;
540
+ }[] | undefined;
541
+ acceptanceCriteria?: string[] | undefined;
542
+ condition?: {
543
+ conditionType: "external" | "authority" | "question" | "lifecycle";
544
+ subjectRef: {
545
+ id: string;
546
+ model: string;
547
+ store: "git" | "url" | "postgresql" | "treedx";
548
+ path?: string | undefined;
549
+ repository?: string | undefined;
550
+ commit?: string | undefined;
551
+ digest?: string | undefined;
552
+ anchor?: string | undefined;
553
+ url?: string | undefined;
554
+ revision?: number | undefined;
555
+ startLine?: number | undefined;
556
+ endLine?: number | undefined;
557
+ };
558
+ expectedState: string;
559
+ } | undefined;
560
+ requestedPermissions?: {
561
+ content: {
562
+ read: ("agent" | "knowledge" | "decision" | "proposal" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
563
+ write: ("agent" | "knowledge" | "decision" | "proposal" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
564
+ };
565
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
566
+ } | undefined;
567
+ maximumReviewCycles?: number | undefined;
568
+ }>, {
569
+ status: "blocked" | "ready" | "stale" | "failed" | "running" | "completed" | "cancelled" | "proposed" | "assigned";
570
+ kind: "planning" | "acting" | "estimating" | "reviewing" | "reporting" | "communication" | "condition";
571
+ id: string;
572
+ schemaVersion: "treeseed.execution-node/v1";
573
+ projectId: string;
574
+ teamId: string;
575
+ nodeRevision: number;
576
+ sourceRef: {
577
+ id: string;
578
+ model: string;
579
+ store: "git" | "url" | "postgresql" | "treedx";
580
+ path?: string | undefined;
581
+ repository?: string | undefined;
582
+ commit?: string | undefined;
583
+ digest?: string | undefined;
584
+ anchor?: string | undefined;
585
+ url?: string | undefined;
586
+ revision?: number | undefined;
587
+ startLine?: number | undefined;
588
+ endLine?: number | undefined;
589
+ };
590
+ pairRole: "actor" | "reviewer" | null;
591
+ ruleRevision: number;
592
+ graphRevisionCreated: number;
593
+ graphRevisionUpdated: number;
594
+ requiredCapabilities?: string[] | undefined;
595
+ workspace?: "git" | "treedx" | "read-only" | undefined;
596
+ agentClass?: string | undefined;
597
+ estimate?: {
598
+ minimumSeconds: number;
599
+ expectedSeconds: number;
600
+ maximumSeconds: number;
601
+ rationale?: string | undefined;
602
+ } | undefined;
603
+ workdayId?: string | undefined;
604
+ workItemId?: string | undefined;
605
+ authorityRefs?: {
606
+ id: string;
607
+ model: string;
608
+ store: "git" | "url" | "postgresql" | "treedx";
609
+ path?: string | undefined;
610
+ repository?: string | undefined;
611
+ commit?: string | undefined;
612
+ digest?: string | undefined;
613
+ anchor?: string | undefined;
614
+ url?: string | undefined;
615
+ revision?: number | undefined;
616
+ startLine?: number | undefined;
617
+ endLine?: number | undefined;
618
+ }[] | undefined;
619
+ acceptanceCriteria?: string[] | undefined;
620
+ condition?: {
621
+ conditionType: "external" | "authority" | "question" | "lifecycle";
622
+ subjectRef: {
623
+ id: string;
624
+ model: string;
625
+ store: "git" | "url" | "postgresql" | "treedx";
626
+ path?: string | undefined;
627
+ repository?: string | undefined;
628
+ commit?: string | undefined;
629
+ digest?: string | undefined;
630
+ anchor?: string | undefined;
631
+ url?: string | undefined;
632
+ revision?: number | undefined;
633
+ startLine?: number | undefined;
634
+ endLine?: number | undefined;
635
+ };
636
+ expectedState: string;
637
+ } | undefined;
638
+ requestedPermissions?: {
639
+ content: {
640
+ read: ("agent" | "knowledge" | "decision" | "proposal" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
641
+ write: ("agent" | "knowledge" | "decision" | "proposal" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
642
+ };
643
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
644
+ } | undefined;
645
+ maximumReviewCycles?: number | undefined;
646
+ }, {
647
+ status: "blocked" | "ready" | "stale" | "failed" | "running" | "completed" | "cancelled" | "proposed" | "assigned";
648
+ kind: "planning" | "acting" | "estimating" | "reviewing" | "reporting" | "communication" | "condition";
649
+ id: string;
650
+ schemaVersion: "treeseed.execution-node/v1";
651
+ projectId: string;
652
+ teamId: string;
653
+ nodeRevision: number;
654
+ sourceRef: {
655
+ id: string;
656
+ model: string;
657
+ store: "git" | "url" | "postgresql" | "treedx";
658
+ path?: string | undefined;
659
+ repository?: string | undefined;
660
+ commit?: string | undefined;
661
+ digest?: string | undefined;
662
+ anchor?: string | undefined;
663
+ url?: string | undefined;
664
+ revision?: number | undefined;
665
+ startLine?: number | undefined;
666
+ endLine?: number | undefined;
667
+ };
668
+ pairRole: "actor" | "reviewer" | null;
669
+ ruleRevision: number;
670
+ graphRevisionCreated: number;
671
+ graphRevisionUpdated: number;
672
+ requiredCapabilities?: string[] | undefined;
673
+ workspace?: "git" | "treedx" | "read-only" | undefined;
674
+ agentClass?: string | undefined;
675
+ estimate?: {
676
+ minimumSeconds: number;
677
+ expectedSeconds: number;
678
+ maximumSeconds: number;
679
+ rationale?: string | undefined;
680
+ } | undefined;
681
+ workdayId?: string | undefined;
682
+ workItemId?: string | undefined;
683
+ authorityRefs?: {
684
+ id: string;
685
+ model: string;
686
+ store: "git" | "url" | "postgresql" | "treedx";
687
+ path?: string | undefined;
688
+ repository?: string | undefined;
689
+ commit?: string | undefined;
690
+ digest?: string | undefined;
691
+ anchor?: string | undefined;
692
+ url?: string | undefined;
693
+ revision?: number | undefined;
694
+ startLine?: number | undefined;
695
+ endLine?: number | undefined;
696
+ }[] | undefined;
697
+ acceptanceCriteria?: string[] | undefined;
698
+ condition?: {
699
+ conditionType: "external" | "authority" | "question" | "lifecycle";
700
+ subjectRef: {
701
+ id: string;
702
+ model: string;
703
+ store: "git" | "url" | "postgresql" | "treedx";
704
+ path?: string | undefined;
705
+ repository?: string | undefined;
706
+ commit?: string | undefined;
707
+ digest?: string | undefined;
708
+ anchor?: string | undefined;
709
+ url?: string | undefined;
710
+ revision?: number | undefined;
711
+ startLine?: number | undefined;
712
+ endLine?: number | undefined;
713
+ };
714
+ expectedState: string;
715
+ } | undefined;
716
+ requestedPermissions?: {
717
+ content: {
718
+ read: ("agent" | "knowledge" | "decision" | "proposal" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
719
+ write: ("agent" | "knowledge" | "decision" | "proposal" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
720
+ };
721
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
722
+ } | undefined;
723
+ maximumReviewCycles?: number | undefined;
724
+ }>;
725
+ export declare const executionEdgeSchema: z.ZodEffects<z.ZodObject<{
726
+ schemaVersion: z.ZodLiteral<"treeseed.execution-edge/v1">;
727
+ id: z.ZodString;
728
+ teamId: z.ZodString;
729
+ fromNodeId: z.ZodString;
730
+ toNodeId: z.ZodString;
731
+ provenance: z.ZodEnum<["profile-agent", "profile-event", "work-item", "review-pair", "governance"]>;
732
+ sourceRef: z.ZodOptional<z.ZodEffects<z.ZodObject<{
733
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
734
+ model: z.ZodString;
735
+ id: z.ZodString;
736
+ revision: z.ZodOptional<z.ZodNumber>;
737
+ digest: z.ZodOptional<z.ZodString>;
738
+ repository: z.ZodOptional<z.ZodString>;
739
+ commit: z.ZodOptional<z.ZodString>;
740
+ path: z.ZodOptional<z.ZodString>;
741
+ anchor: z.ZodOptional<z.ZodString>;
742
+ startLine: z.ZodOptional<z.ZodNumber>;
743
+ endLine: z.ZodOptional<z.ZodNumber>;
744
+ url: z.ZodOptional<z.ZodString>;
745
+ }, "strict", z.ZodTypeAny, {
746
+ id: string;
747
+ model: string;
748
+ store: "git" | "url" | "postgresql" | "treedx";
749
+ path?: string | undefined;
750
+ repository?: string | undefined;
751
+ commit?: string | undefined;
752
+ digest?: string | undefined;
753
+ anchor?: string | undefined;
754
+ url?: string | undefined;
755
+ revision?: number | undefined;
756
+ startLine?: number | undefined;
757
+ endLine?: number | undefined;
758
+ }, {
759
+ id: string;
760
+ model: string;
761
+ store: "git" | "url" | "postgresql" | "treedx";
762
+ path?: string | undefined;
763
+ repository?: string | undefined;
764
+ commit?: string | undefined;
765
+ digest?: string | undefined;
766
+ anchor?: string | undefined;
767
+ url?: string | undefined;
768
+ revision?: number | undefined;
769
+ startLine?: number | undefined;
770
+ endLine?: number | undefined;
771
+ }>, {
772
+ id: string;
773
+ model: string;
774
+ store: "git" | "url" | "postgresql" | "treedx";
775
+ path?: string | undefined;
776
+ repository?: string | undefined;
777
+ commit?: string | undefined;
778
+ digest?: string | undefined;
779
+ anchor?: string | undefined;
780
+ url?: string | undefined;
781
+ revision?: number | undefined;
782
+ startLine?: number | undefined;
783
+ endLine?: number | undefined;
784
+ }, {
785
+ id: string;
786
+ model: string;
787
+ store: "git" | "url" | "postgresql" | "treedx";
788
+ path?: string | undefined;
789
+ repository?: string | undefined;
790
+ commit?: string | undefined;
791
+ digest?: string | undefined;
792
+ anchor?: string | undefined;
793
+ url?: string | undefined;
794
+ revision?: number | undefined;
795
+ startLine?: number | undefined;
796
+ endLine?: number | undefined;
797
+ }>>;
798
+ graphRevisionCreated: z.ZodNumber;
799
+ graphRevisionRemoved: z.ZodOptional<z.ZodNumber>;
800
+ }, "strict", z.ZodTypeAny, {
801
+ id: string;
802
+ schemaVersion: "treeseed.execution-edge/v1";
803
+ teamId: string;
804
+ provenance: "governance" | "profile-agent" | "profile-event" | "work-item" | "review-pair";
805
+ graphRevisionCreated: number;
806
+ fromNodeId: string;
807
+ toNodeId: string;
808
+ sourceRef?: {
809
+ id: string;
810
+ model: string;
811
+ store: "git" | "url" | "postgresql" | "treedx";
812
+ path?: string | undefined;
813
+ repository?: string | undefined;
814
+ commit?: string | undefined;
815
+ digest?: string | undefined;
816
+ anchor?: string | undefined;
817
+ url?: string | undefined;
818
+ revision?: number | undefined;
819
+ startLine?: number | undefined;
820
+ endLine?: number | undefined;
821
+ } | undefined;
822
+ graphRevisionRemoved?: number | undefined;
823
+ }, {
824
+ id: string;
825
+ schemaVersion: "treeseed.execution-edge/v1";
826
+ teamId: string;
827
+ provenance: "governance" | "profile-agent" | "profile-event" | "work-item" | "review-pair";
828
+ graphRevisionCreated: number;
829
+ fromNodeId: string;
830
+ toNodeId: string;
831
+ sourceRef?: {
832
+ id: string;
833
+ model: string;
834
+ store: "git" | "url" | "postgresql" | "treedx";
835
+ path?: string | undefined;
836
+ repository?: string | undefined;
837
+ commit?: string | undefined;
838
+ digest?: string | undefined;
839
+ anchor?: string | undefined;
840
+ url?: string | undefined;
841
+ revision?: number | undefined;
842
+ startLine?: number | undefined;
843
+ endLine?: number | undefined;
844
+ } | undefined;
845
+ graphRevisionRemoved?: number | undefined;
846
+ }>, {
847
+ id: string;
848
+ schemaVersion: "treeseed.execution-edge/v1";
849
+ teamId: string;
850
+ provenance: "governance" | "profile-agent" | "profile-event" | "work-item" | "review-pair";
851
+ graphRevisionCreated: number;
852
+ fromNodeId: string;
853
+ toNodeId: string;
854
+ sourceRef?: {
855
+ id: string;
856
+ model: string;
857
+ store: "git" | "url" | "postgresql" | "treedx";
858
+ path?: string | undefined;
859
+ repository?: string | undefined;
860
+ commit?: string | undefined;
861
+ digest?: string | undefined;
862
+ anchor?: string | undefined;
863
+ url?: string | undefined;
864
+ revision?: number | undefined;
865
+ startLine?: number | undefined;
866
+ endLine?: number | undefined;
867
+ } | undefined;
868
+ graphRevisionRemoved?: number | undefined;
869
+ }, {
870
+ id: string;
871
+ schemaVersion: "treeseed.execution-edge/v1";
872
+ teamId: string;
873
+ provenance: "governance" | "profile-agent" | "profile-event" | "work-item" | "review-pair";
874
+ graphRevisionCreated: number;
875
+ fromNodeId: string;
876
+ toNodeId: string;
877
+ sourceRef?: {
878
+ id: string;
879
+ model: string;
880
+ store: "git" | "url" | "postgresql" | "treedx";
881
+ path?: string | undefined;
882
+ repository?: string | undefined;
883
+ commit?: string | undefined;
884
+ digest?: string | undefined;
885
+ anchor?: string | undefined;
886
+ url?: string | undefined;
887
+ revision?: number | undefined;
888
+ startLine?: number | undefined;
889
+ endLine?: number | undefined;
890
+ } | undefined;
891
+ graphRevisionRemoved?: number | undefined;
892
+ }>;
893
+ export declare const graphChangeSetSchema: z.ZodObject<{
894
+ added: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
895
+ changed: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
896
+ completed: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
897
+ blocked: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
898
+ stale: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
899
+ removedEdges: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
900
+ addedEdges: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
901
+ }, "strict", z.ZodTypeAny, {
902
+ blocked: string[];
903
+ stale: string[];
904
+ completed: string[];
905
+ added: string[];
906
+ changed: string[];
907
+ removedEdges: string[];
908
+ addedEdges: string[];
909
+ }, {
910
+ blocked: string[];
911
+ stale: string[];
912
+ completed: string[];
913
+ added: string[];
914
+ changed: string[];
915
+ removedEdges: string[];
916
+ addedEdges: string[];
917
+ }>;
918
+ export declare const graphRevisionSchema: z.ZodObject<{
919
+ schemaVersion: z.ZodLiteral<"treeseed.graph-revision/v1">;
920
+ teamId: z.ZodString;
921
+ revision: z.ZodNumber;
922
+ ruleRevision: z.ZodNumber;
923
+ changedSourceRefs: z.ZodArray<z.ZodEffects<z.ZodObject<{
924
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
925
+ model: z.ZodString;
926
+ id: z.ZodString;
927
+ revision: z.ZodOptional<z.ZodNumber>;
928
+ digest: z.ZodOptional<z.ZodString>;
929
+ repository: z.ZodOptional<z.ZodString>;
930
+ commit: z.ZodOptional<z.ZodString>;
931
+ path: z.ZodOptional<z.ZodString>;
932
+ anchor: z.ZodOptional<z.ZodString>;
933
+ startLine: z.ZodOptional<z.ZodNumber>;
934
+ endLine: z.ZodOptional<z.ZodNumber>;
935
+ url: z.ZodOptional<z.ZodString>;
936
+ }, "strict", z.ZodTypeAny, {
937
+ id: string;
938
+ model: string;
939
+ store: "git" | "url" | "postgresql" | "treedx";
940
+ path?: string | undefined;
941
+ repository?: string | undefined;
942
+ commit?: string | undefined;
943
+ digest?: string | undefined;
944
+ anchor?: string | undefined;
945
+ url?: string | undefined;
946
+ revision?: number | undefined;
947
+ startLine?: number | undefined;
948
+ endLine?: number | undefined;
949
+ }, {
950
+ id: string;
951
+ model: string;
952
+ store: "git" | "url" | "postgresql" | "treedx";
953
+ path?: string | undefined;
954
+ repository?: string | undefined;
955
+ commit?: string | undefined;
956
+ digest?: string | undefined;
957
+ anchor?: string | undefined;
958
+ url?: string | undefined;
959
+ revision?: number | undefined;
960
+ startLine?: number | undefined;
961
+ endLine?: number | undefined;
962
+ }>, {
963
+ id: string;
964
+ model: string;
965
+ store: "git" | "url" | "postgresql" | "treedx";
966
+ path?: string | undefined;
967
+ repository?: string | undefined;
968
+ commit?: string | undefined;
969
+ digest?: string | undefined;
970
+ anchor?: string | undefined;
971
+ url?: string | undefined;
972
+ revision?: number | undefined;
973
+ startLine?: number | undefined;
974
+ endLine?: number | undefined;
975
+ }, {
976
+ id: string;
977
+ model: string;
978
+ store: "git" | "url" | "postgresql" | "treedx";
979
+ path?: string | undefined;
980
+ repository?: string | undefined;
981
+ commit?: string | undefined;
982
+ digest?: string | undefined;
983
+ anchor?: string | undefined;
984
+ url?: string | undefined;
985
+ revision?: number | undefined;
986
+ startLine?: number | undefined;
987
+ endLine?: number | undefined;
988
+ }>, "many">;
989
+ graphDigest: z.ZodString;
990
+ changes: z.ZodObject<{
991
+ added: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
992
+ changed: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
993
+ completed: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
994
+ blocked: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
995
+ stale: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
996
+ removedEdges: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
997
+ addedEdges: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
998
+ }, "strict", z.ZodTypeAny, {
999
+ blocked: string[];
1000
+ stale: string[];
1001
+ completed: string[];
1002
+ added: string[];
1003
+ changed: string[];
1004
+ removedEdges: string[];
1005
+ addedEdges: string[];
1006
+ }, {
1007
+ blocked: string[];
1008
+ stale: string[];
1009
+ completed: string[];
1010
+ added: string[];
1011
+ changed: string[];
1012
+ removedEdges: string[];
1013
+ addedEdges: string[];
1014
+ }>;
1015
+ createdAt: z.ZodString;
1016
+ }, "strict", z.ZodTypeAny, {
1017
+ schemaVersion: "treeseed.graph-revision/v1";
1018
+ teamId: string;
1019
+ createdAt: string;
1020
+ revision: number;
1021
+ changes: {
1022
+ blocked: string[];
1023
+ stale: string[];
1024
+ completed: string[];
1025
+ added: string[];
1026
+ changed: string[];
1027
+ removedEdges: string[];
1028
+ addedEdges: string[];
1029
+ };
1030
+ ruleRevision: number;
1031
+ changedSourceRefs: {
1032
+ id: string;
1033
+ model: string;
1034
+ store: "git" | "url" | "postgresql" | "treedx";
1035
+ path?: string | undefined;
1036
+ repository?: string | undefined;
1037
+ commit?: string | undefined;
1038
+ digest?: string | undefined;
1039
+ anchor?: string | undefined;
1040
+ url?: string | undefined;
1041
+ revision?: number | undefined;
1042
+ startLine?: number | undefined;
1043
+ endLine?: number | undefined;
1044
+ }[];
1045
+ graphDigest: string;
1046
+ }, {
1047
+ schemaVersion: "treeseed.graph-revision/v1";
1048
+ teamId: string;
1049
+ createdAt: string;
1050
+ revision: number;
1051
+ changes: {
1052
+ blocked: string[];
1053
+ stale: string[];
1054
+ completed: string[];
1055
+ added: string[];
1056
+ changed: string[];
1057
+ removedEdges: string[];
1058
+ addedEdges: string[];
1059
+ };
1060
+ ruleRevision: number;
1061
+ changedSourceRefs: {
1062
+ id: string;
1063
+ model: string;
1064
+ store: "git" | "url" | "postgresql" | "treedx";
1065
+ path?: string | undefined;
1066
+ repository?: string | undefined;
1067
+ commit?: string | undefined;
1068
+ digest?: string | undefined;
1069
+ anchor?: string | undefined;
1070
+ url?: string | undefined;
1071
+ revision?: number | undefined;
1072
+ startLine?: number | undefined;
1073
+ endLine?: number | undefined;
1074
+ }[];
1075
+ graphDigest: string;
1076
+ }>;
1077
+ export type ExecutionNode = z.infer<typeof executionNodeSchema>;
1078
+ export type ExecutionEdge = z.infer<typeof executionEdgeSchema>;
1079
+ export type GraphRevision = z.infer<typeof graphRevisionSchema>;
1080
+ export declare function validateExecutionGraph(nodes: ExecutionNode[], edges: ExecutionEdge[]): {
1081
+ ok: boolean;
1082
+ diagnostics: {
1083
+ code: string;
1084
+ path: string;
1085
+ message: string;
1086
+ }[];
1087
+ };