@treeseed/sdk 0.13.0-rc.121 → 0.13.0-rc.123

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