@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
@@ -24,147 +24,147 @@ export declare function validatePortableContentData(model: string, value: unknow
24
24
  id: string;
25
25
  name: string;
26
26
  schemaVersion: "treeseed.agent/v1";
27
- capabilities: string[];
28
27
  purpose: string;
28
+ responsibilities: string[];
29
+ agentClass: string;
30
+ capabilities: string[];
29
31
  context: {
30
32
  include: string[];
31
33
  };
32
- agentClass: string;
33
- responsibilities: string[];
34
34
  activityProfiles: {
35
35
  planning?: {
36
- prompt: {
37
- system: string;
38
- instructions?: string[] | undefined;
39
- };
40
- handler: string;
41
36
  permissions: {
42
37
  content: {
43
- read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
44
- write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
38
+ read: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
39
+ write: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
45
40
  };
46
- tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
41
+ tools: ("discussion" | "source.read" | "source.write" | "verification" | "release")[];
42
+ };
43
+ handler: string;
44
+ prompt: {
45
+ system: string;
46
+ instructions?: string[] | undefined;
47
47
  };
48
48
  dependsOn?: {
49
49
  agents?: string[] | undefined;
50
50
  events?: "workday-closing"[] | undefined;
51
51
  } | undefined;
52
- parameters?: Record<string, unknown> | undefined;
53
52
  additionalContext?: string[] | undefined;
53
+ parameters?: Record<string, unknown> | undefined;
54
54
  } | undefined;
55
- acting?: {
56
- prompt: {
57
- system: string;
58
- instructions?: string[] | undefined;
59
- };
60
- handler: string;
55
+ estimating?: {
61
56
  permissions: {
62
57
  content: {
63
- read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
64
- write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
58
+ read: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
59
+ write: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
65
60
  };
66
- tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
61
+ tools: ("discussion" | "source.read" | "source.write" | "verification" | "release")[];
62
+ };
63
+ handler: string;
64
+ prompt: {
65
+ system: string;
66
+ instructions?: string[] | undefined;
67
67
  };
68
68
  dependsOn?: {
69
69
  agents?: string[] | undefined;
70
70
  events?: "workday-closing"[] | undefined;
71
71
  } | undefined;
72
- parameters?: Record<string, unknown> | undefined;
73
72
  additionalContext?: string[] | undefined;
73
+ parameters?: Record<string, unknown> | undefined;
74
74
  } | undefined;
75
- estimating?: {
76
- prompt: {
77
- system: string;
78
- instructions?: string[] | undefined;
79
- };
80
- handler: string;
75
+ acting?: {
81
76
  permissions: {
82
77
  content: {
83
- read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
84
- write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
78
+ read: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
79
+ write: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
85
80
  };
86
- tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
81
+ tools: ("discussion" | "source.read" | "source.write" | "verification" | "release")[];
82
+ };
83
+ handler: string;
84
+ prompt: {
85
+ system: string;
86
+ instructions?: string[] | undefined;
87
87
  };
88
88
  dependsOn?: {
89
89
  agents?: string[] | undefined;
90
90
  events?: "workday-closing"[] | undefined;
91
91
  } | undefined;
92
- parameters?: Record<string, unknown> | undefined;
93
92
  additionalContext?: string[] | undefined;
93
+ parameters?: Record<string, unknown> | undefined;
94
94
  } | undefined;
95
95
  reviewing?: {
96
- prompt: {
97
- system: string;
98
- instructions?: string[] | undefined;
99
- };
100
- handler: string;
101
96
  permissions: {
102
97
  content: {
103
- read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
104
- write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
98
+ read: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
99
+ write: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
105
100
  };
106
- tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
101
+ tools: ("discussion" | "source.read" | "source.write" | "verification" | "release")[];
102
+ };
103
+ handler: string;
104
+ prompt: {
105
+ system: string;
106
+ instructions?: string[] | undefined;
107
107
  };
108
108
  dependsOn?: {
109
109
  agents?: string[] | undefined;
110
110
  events?: "workday-closing"[] | undefined;
111
111
  } | undefined;
112
- parameters?: Record<string, unknown> | undefined;
113
112
  additionalContext?: string[] | undefined;
113
+ parameters?: Record<string, unknown> | undefined;
114
114
  } | undefined;
115
115
  reporting?: {
116
- prompt: {
117
- system: string;
118
- instructions?: string[] | undefined;
119
- };
120
- handler: string;
121
116
  permissions: {
122
117
  content: {
123
- read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
124
- write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
118
+ read: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
119
+ write: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
125
120
  };
126
- tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
121
+ tools: ("discussion" | "source.read" | "source.write" | "verification" | "release")[];
122
+ };
123
+ handler: string;
124
+ prompt: {
125
+ system: string;
126
+ instructions?: string[] | undefined;
127
127
  };
128
128
  dependsOn?: {
129
129
  agents?: string[] | undefined;
130
130
  events?: "workday-closing"[] | undefined;
131
131
  } | undefined;
132
- parameters?: Record<string, unknown> | undefined;
133
132
  additionalContext?: string[] | undefined;
133
+ parameters?: Record<string, unknown> | undefined;
134
134
  } | undefined;
135
135
  chat?: {
136
- prompt: {
137
- system: string;
138
- instructions?: string[] | undefined;
139
- };
140
- handler: string;
141
136
  permissions: {
142
137
  content: {
143
- read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
144
- write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
138
+ read: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
139
+ write: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
145
140
  };
146
- tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
141
+ tools: ("discussion" | "source.read" | "source.write" | "verification" | "release")[];
142
+ };
143
+ handler: string;
144
+ prompt: {
145
+ system: string;
146
+ instructions?: string[] | undefined;
147
147
  };
148
148
  dependsOn?: {
149
149
  agents?: string[] | undefined;
150
150
  events?: "workday-closing"[] | undefined;
151
151
  } | undefined;
152
- parameters?: Record<string, unknown> | undefined;
153
152
  additionalContext?: string[] | undefined;
153
+ parameters?: Record<string, unknown> | undefined;
154
154
  } | undefined;
155
155
  };
156
156
  } | {
157
157
  status: string;
158
+ title: string;
159
+ summary: string;
160
+ startedAt: Date;
158
161
  slug: string;
159
- visibility: "team" | "public" | "private" | "authenticated";
160
162
  projectId: string;
161
- environment: string;
162
- startedAt: Date;
163
- summary: string;
164
- workDayId: string;
165
163
  metadata: Record<string, unknown>;
166
- title: string;
164
+ environment: string;
165
+ visibility: "team" | "private" | "public" | "authenticated";
167
166
  changedFiles: string[];
167
+ workDayId: string;
168
168
  reportVersion: string;
169
169
  reportKind: string;
170
170
  workdayState: string;
@@ -176,13 +176,13 @@ export declare function validatePortableContentData(model: string, value: unknow
176
176
  priorityItemCount: number;
177
177
  priorityItems: {
178
178
  id: string;
179
- model: string;
180
179
  priority: number;
180
+ model: string;
181
181
  status?: string | undefined;
182
- slug?: string | undefined;
183
- reason?: string | undefined;
184
182
  title?: string | undefined;
183
+ slug?: string | undefined;
185
184
  estimatedCredits?: number | undefined;
185
+ reason?: string | undefined;
186
186
  }[];
187
187
  totalTasks: number;
188
188
  completedTasks: number;
@@ -194,11 +194,11 @@ export declare function validatePortableContentData(model: string, value: unknow
194
194
  changedFiles: string[];
195
195
  type?: string | undefined;
196
196
  state?: string | undefined;
197
+ priority?: number | undefined;
197
198
  createdAt?: Date | undefined;
198
- completedAt?: Date | undefined;
199
- idempotencyKey?: string | undefined;
200
199
  startedAt?: Date | undefined;
201
- priority?: number | undefined;
200
+ idempotencyKey?: string | undefined;
201
+ completedAt?: Date | undefined;
202
202
  agentId?: string | undefined;
203
203
  lastErrorCode?: string | null | undefined;
204
204
  lastErrorMessage?: string | null | undefined;
@@ -210,26 +210,30 @@ export declare function validatePortableContentData(model: string, value: unknow
210
210
  deploymentKind: string;
211
211
  id?: string | undefined;
212
212
  createdAt?: Date | undefined;
213
- startedAt?: Date | undefined;
214
213
  commitSha?: string | null | undefined;
214
+ startedAt?: Date | undefined;
215
215
  finishedAt?: Date | undefined;
216
216
  sourceRef?: string | null | undefined;
217
217
  releaseTag?: string | null | undefined;
218
218
  }[];
219
219
  scaleDecision: Record<string, unknown>;
220
220
  scaleResult: Record<string, unknown>;
221
- teamId?: string | undefined;
222
221
  createdAt?: Date | undefined;
222
+ teamId?: string | undefined;
223
223
  endedAt?: Date | null | undefined;
224
224
  prioritySnapshotId?: string | null | undefined;
225
225
  } | {
226
- status: "live" | "archived" | "draft";
226
+ status: "archived" | "draft" | "live";
227
227
  audience: string[];
228
- slug: string;
228
+ title: string;
229
229
  description: string;
230
230
  summary: string;
231
- title: string;
232
- relatedObjectives: string[];
231
+ slug: string;
232
+ offer: {
233
+ priceModel: "subscription" | "free" | "private" | "contact" | "one_time" | "one_time_current_version" | "subscription_updates" | "professional_hosting" | "scoped_contract" | "external";
234
+ license?: string | undefined;
235
+ support?: string | undefined;
236
+ };
233
237
  featured: boolean;
234
238
  listingEnabled: boolean;
235
239
  category: string;
@@ -259,25 +263,21 @@ export declare function validatePortableContentData(model: string, value: unknow
259
263
  bucket?: string | undefined;
260
264
  publicUrl?: string | undefined;
261
265
  };
262
- mode: "git" | "packaged" | "r2";
266
+ mode: "packaged" | "git" | "r2";
263
267
  hooksPolicy: "disabled" | "builtin_only" | "trusted_only";
264
268
  supportsReconcile: boolean;
265
269
  };
266
- offer: {
267
- priceModel: "private" | "external" | "free" | "contact" | "one_time" | "one_time_current_version" | "subscription" | "subscription_updates" | "professional_hosting" | "scoped_contract";
268
- support?: string | undefined;
269
- license?: string | undefined;
270
- };
271
270
  relatedBooks: string[];
272
271
  relatedKnowledge: string[];
272
+ relatedObjectives: string[];
273
273
  teamId?: string | undefined;
274
274
  sourceRef?: string | undefined;
275
275
  } | {
276
- kind: "workday" | "handler" | "api" | "spec" | "message_chain" | "manager_worker" | "ui" | "context-query" | "context-query-set";
276
+ kind: "workday" | "handler" | "spec" | "message_chain" | "manager_worker" | "api" | "ui" | "context-query" | "context-query-set";
277
277
  agent: string;
278
278
  id: string;
279
- trigger: Record<string, unknown>;
280
279
  groupIds: string[];
280
+ trigger: Record<string, unknown>;
281
281
  expect: {
282
282
  semanticArtifacts?: {
283
283
  id: string;
@@ -293,11 +293,11 @@ export declare function validatePortableContentData(model: string, value: unknow
293
293
  [k: string]: unknown;
294
294
  };
295
295
  contextQueryRefs: string[];
296
- fixture?: string | undefined;
297
296
  budget?: {
298
297
  maxTokens: number;
299
298
  maxContextItems: number;
300
299
  } | undefined;
300
+ fixture?: string | undefined;
301
301
  queryRef?: {
302
302
  id: string;
303
303
  revision: number;
@@ -318,6 +318,19 @@ export declare function validatePortableContentData(model: string, value: unknow
318
318
  maxLatencyMs?: number | undefined;
319
319
  } | {
320
320
  id: string;
321
+ format: "map" | "summary" | "list" | "brief" | "full" | "sources";
322
+ title: string;
323
+ description: string;
324
+ target: {
325
+ kind: "code" | "content" | "mixed" | "graph";
326
+ models?: string[] | undefined;
327
+ paths?: string[] | undefined;
328
+ };
329
+ query: string;
330
+ revision: number;
331
+ purpose: string;
332
+ priority: number;
333
+ requirement: "required" | "preferred";
321
334
  sources: ({
322
335
  scope: "current-project";
323
336
  } | {
@@ -331,20 +344,7 @@ export declare function validatePortableContentData(model: string, value: unknow
331
344
  scope: "shared-team";
332
345
  projectIds: string[];
333
346
  })[];
334
- purpose: string;
335
- target: {
336
- kind: "code" | "content" | "graph" | "mixed";
337
- models?: string[] | undefined;
338
- paths?: string[] | undefined;
339
- };
340
- description: string;
341
- revision: number;
342
- requirement: "required" | "preferred";
343
- format: "map" | "sources" | "list" | "summary" | "full" | "brief";
344
- query: string;
345
347
  depth: number;
346
- title: string;
347
- priority: number;
348
348
  maturity: "draft" | "validated" | "simulated" | "proven";
349
349
  relations: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[];
350
350
  resultLimit: number;
@@ -361,9 +361,9 @@ export declare function validatePortableContentData(model: string, value: unknow
361
361
  maximumBudget?: number | undefined;
362
362
  } | {
363
363
  id: string;
364
+ title: string;
364
365
  description: string;
365
366
  revision: number;
366
- title: string;
367
367
  queryRefs: {
368
368
  id: string;
369
369
  revision: number;
@@ -372,29 +372,28 @@ export declare function validatePortableContentData(model: string, value: unknow
372
372
  } | {
373
373
  kind: "message" | "status" | "summary" | "plan";
374
374
  id: string;
375
- variables: string[];
375
+ title: string;
376
376
  description: string;
377
377
  revision: number;
378
- title: string;
378
+ variables: string[];
379
379
  instructions: string;
380
380
  appliesToProfiles: string[];
381
381
  outputSkeleton?: string | undefined;
382
382
  } | {
383
383
  status: "active" | "archived";
384
384
  id: string;
385
- slug: string;
386
- description: string;
387
385
  title: string;
386
+ description: string;
387
+ slug: string;
388
388
  groupIds: string[];
389
389
  parentTopicId?: string | undefined;
390
390
  } | {
391
391
  status: string;
392
392
  id: string;
393
- projectId: string;
394
- teamId: string;
395
- createdAt: Date;
396
- outcome: "passed" | "failed" | "needs-revision";
397
393
  title: string;
394
+ createdAt: Date;
395
+ teamId: string;
396
+ projectId: string;
398
397
  agentId: string;
399
398
  contextQueryRefs: {
400
399
  id: string;
@@ -414,199 +413,239 @@ export declare function validatePortableContentData(model: string, value: unknow
414
413
  revision: number;
415
414
  }[];
416
415
  evaluatorId: string;
416
+ outcome: "failed" | "passed" | "needs-revision";
417
417
  criteria: {
418
418
  id: string;
419
- outcome: "passed" | "failed" | "not-applicable";
419
+ outcome: "failed" | "passed" | "not-applicable";
420
420
  evidenceRefs: string[];
421
421
  notes?: string | undefined;
422
422
  }[];
423
- assignmentId?: string | undefined;
424
423
  description?: string | undefined;
425
424
  updatedAt?: Date | undefined;
425
+ assignmentId?: string | undefined;
426
426
  workdayId?: string | undefined;
427
427
  score?: number | undefined;
428
428
  } | {
429
429
  status: "ready" | "draft" | "discussing" | "decided" | "withdrawn";
430
430
  id: string;
431
431
  schemaVersion: "treeseed.proposal/v1";
432
- projectId: string;
433
- request: string;
434
432
  title: string;
433
+ request: string;
434
+ projectId: string;
435
435
  summary?: string | undefined;
436
436
  evidenceRefs?: {
437
437
  id: string;
438
438
  model: string;
439
- store: "git" | "url" | "postgresql" | "treedx";
439
+ store: "treedx" | "git" | "postgresql" | "url";
440
440
  path?: string | undefined;
441
- repository?: string | undefined;
441
+ anchor?: string | undefined;
442
442
  commit?: string | undefined;
443
+ repository?: string | undefined;
444
+ revision?: number | undefined;
443
445
  digest?: string | undefined;
444
- anchor?: string | undefined;
445
446
  url?: string | undefined;
446
- revision?: number | undefined;
447
447
  startLine?: number | undefined;
448
448
  endLine?: number | undefined;
449
449
  }[] | undefined;
450
450
  objectiveRefs?: {
451
451
  id: string;
452
452
  model: string;
453
- store: "git" | "url" | "postgresql" | "treedx";
453
+ store: "treedx" | "git" | "postgresql" | "url";
454
454
  path?: string | undefined;
455
- repository?: string | undefined;
455
+ anchor?: string | undefined;
456
456
  commit?: string | undefined;
457
+ repository?: string | undefined;
458
+ revision?: number | undefined;
457
459
  digest?: string | undefined;
458
- anchor?: string | undefined;
459
460
  url?: string | undefined;
460
- revision?: number | undefined;
461
461
  startLine?: number | undefined;
462
462
  endLine?: number | undefined;
463
463
  }[] | undefined;
464
464
  discussionRef?: {
465
465
  id: string;
466
466
  model: string;
467
- store: "git" | "url" | "postgresql" | "treedx";
467
+ store: "treedx" | "git" | "postgresql" | "url";
468
468
  path?: string | undefined;
469
- repository?: string | undefined;
469
+ anchor?: string | undefined;
470
470
  commit?: string | undefined;
471
+ repository?: string | undefined;
472
+ revision?: number | undefined;
471
473
  digest?: string | undefined;
472
- anchor?: string | undefined;
473
474
  url?: string | undefined;
474
- revision?: number | undefined;
475
475
  startLine?: number | undefined;
476
476
  endLine?: number | undefined;
477
477
  } | undefined;
478
478
  executionPlan?: {
479
479
  workItems: {
480
480
  id: string;
481
- requiredCapabilities: string[];
482
- dependsOn: string[];
483
- activity: "acting";
484
481
  objective: string;
485
- workspace: "git" | "treedx" | "read-only";
486
- review: "required" | "none";
487
482
  agentClass: string;
483
+ review: "required" | "none";
484
+ dependsOn: string[];
485
+ activity: "acting";
488
486
  acceptanceCriteria: string[];
487
+ workspace: "read-only" | "treedx" | "git";
489
488
  requestedPermissions: {
490
489
  content: {
491
- read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
492
- write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
490
+ read: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
491
+ write: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
493
492
  };
494
- tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
493
+ tools: ("discussion" | "source.read" | "source.write" | "verification" | "release")[];
495
494
  };
496
495
  estimate?: {
497
- minimumSeconds: number;
498
496
  expectedSeconds: number;
499
497
  maximumSeconds: number;
500
498
  rationale?: string | undefined;
501
499
  } | undefined;
500
+ priority?: number | undefined;
501
+ requiredCapabilities?: string[] | undefined;
502
502
  contextRefs?: {
503
503
  id: string;
504
504
  model: string;
505
- store: "git" | "url" | "postgresql" | "treedx";
505
+ store: "treedx" | "git" | "postgresql" | "url";
506
506
  path?: string | undefined;
507
- repository?: string | undefined;
507
+ anchor?: string | undefined;
508
508
  commit?: string | undefined;
509
+ repository?: string | undefined;
510
+ revision?: number | undefined;
509
511
  digest?: string | undefined;
510
- anchor?: string | undefined;
511
512
  url?: string | undefined;
512
- revision?: number | undefined;
513
513
  startLine?: number | undefined;
514
514
  endLine?: number | undefined;
515
515
  }[] | undefined;
516
- maximumReviewCycles?: number | undefined;
517
516
  reviewEstimate?: {
518
- minimumSeconds: number;
519
517
  expectedSeconds: number;
520
518
  maximumSeconds: number;
521
519
  rationale?: string | undefined;
522
520
  } | undefined;
521
+ maximumReviewCycles?: number | undefined;
523
522
  }[];
524
523
  } | undefined;
525
524
  } | {
526
525
  title: string;
527
- status?: "live" | "planned" | "in progress" | "exploratory" | "speculative" | undefined;
526
+ status?: "planned" | "live" | "in progress" | "exploratory" | "speculative" | undefined;
528
527
  audience?: string[] | undefined;
529
- slug?: string | undefined;
530
528
  description?: string | undefined;
531
- stage?: string | undefined;
532
529
  summary?: string | undefined;
533
530
  updated_at?: Date | undefined;
531
+ slug?: string | undefined;
534
532
  page_layout?: "article" | "bridge" | undefined;
533
+ stage?: string | undefined;
535
534
  } | {
536
535
  id: string;
537
536
  schemaVersion: "treeseed.note/v1";
538
- projectId: string;
539
537
  createdAt: string;
540
- classification: "research" | "feedback" | "workday-report" | "general";
541
538
  body: string;
539
+ projectId: string;
542
540
  subjectRefs: {
543
541
  id: string;
544
542
  model: string;
545
- store: "git" | "url" | "postgresql" | "treedx";
543
+ store: "treedx" | "git" | "postgresql" | "url";
546
544
  path?: string | undefined;
547
- repository?: string | undefined;
545
+ anchor?: string | undefined;
548
546
  commit?: string | undefined;
547
+ repository?: string | undefined;
548
+ revision?: number | undefined;
549
549
  digest?: string | undefined;
550
- anchor?: string | undefined;
551
550
  url?: string | undefined;
552
- revision?: number | undefined;
553
551
  startLine?: number | undefined;
554
552
  endLine?: number | undefined;
555
553
  }[];
554
+ classification: "research" | "general" | "feedback" | "workday-report";
555
+ links?: {
556
+ relation: "depends_on";
557
+ from: {
558
+ id: string;
559
+ model: string;
560
+ store: "treedx" | "git" | "postgresql" | "url";
561
+ path?: string | undefined;
562
+ anchor?: string | undefined;
563
+ commit?: string | undefined;
564
+ repository?: string | undefined;
565
+ revision?: number | undefined;
566
+ digest?: string | undefined;
567
+ url?: string | undefined;
568
+ startLine?: number | undefined;
569
+ endLine?: number | undefined;
570
+ } & {
571
+ [x: string]: any;
572
+ };
573
+ to: {
574
+ id: string;
575
+ model: string;
576
+ store: "treedx" | "git" | "postgresql" | "url";
577
+ path?: string | undefined;
578
+ anchor?: string | undefined;
579
+ commit?: string | undefined;
580
+ repository?: string | undefined;
581
+ revision?: number | undefined;
582
+ digest?: string | undefined;
583
+ url?: string | undefined;
584
+ startLine?: number | undefined;
585
+ endLine?: number | undefined;
586
+ } & {
587
+ [x: string]: any;
588
+ };
589
+ }[] | undefined;
556
590
  } | {
557
- status: "open" | "answered" | "withdrawn";
591
+ status: "open" | "withdrawn" | "answered";
558
592
  id: string;
559
593
  schemaVersion: "treeseed.question/v1";
560
- projectId: string;
561
594
  question: string;
595
+ projectId: string;
562
596
  subjectRef: {
563
597
  id: string;
564
598
  model: string;
565
- store: "git" | "url" | "postgresql" | "treedx";
599
+ store: "treedx" | "git" | "postgresql" | "url";
566
600
  path?: string | undefined;
567
- repository?: string | undefined;
601
+ anchor?: string | undefined;
568
602
  commit?: string | undefined;
603
+ repository?: string | undefined;
604
+ revision?: number | undefined;
569
605
  digest?: string | undefined;
570
- anchor?: string | undefined;
571
606
  url?: string | undefined;
572
- revision?: number | undefined;
573
607
  startLine?: number | undefined;
574
608
  endLine?: number | undefined;
575
609
  };
576
610
  askedAt: string;
577
- answer?: string | undefined;
578
611
  addressedTo?: string[] | undefined;
612
+ answer?: string | undefined;
579
613
  answerRefs?: {
580
614
  id: string;
581
615
  model: string;
582
- store: "git" | "url" | "postgresql" | "treedx";
616
+ store: "treedx" | "git" | "postgresql" | "url";
583
617
  path?: string | undefined;
584
- repository?: string | undefined;
618
+ anchor?: string | undefined;
585
619
  commit?: string | undefined;
620
+ repository?: string | undefined;
621
+ revision?: number | undefined;
586
622
  digest?: string | undefined;
587
- anchor?: string | undefined;
588
623
  url?: string | undefined;
589
- revision?: number | undefined;
590
624
  startLine?: number | undefined;
591
625
  endLine?: number | undefined;
592
626
  }[] | undefined;
593
627
  answeredAt?: string | undefined;
594
628
  } | {
629
+ status: "active" | "achieved" | "abandoned";
630
+ id: string;
631
+ schemaVersion: "treeseed.objective/v1";
595
632
  title: string;
596
- status?: "live" | "planned" | "in progress" | "exploratory" | "speculative" | undefined;
597
- date?: Date | undefined;
598
- description?: string | undefined;
599
- summary?: string | undefined;
600
- draft?: boolean | undefined;
601
- time_horizon?: "near-term" | "mid-term" | "long-term" | undefined;
602
- motivation?: string | undefined;
603
- primary_contributor?: string | undefined;
604
- group_ids?: string[] | undefined;
605
- related_objectives?: string[] | undefined;
606
- related_questions?: string[] | undefined;
607
- related_proposals?: string[] | undefined;
608
- related_decisions?: string[] | undefined;
609
- related_books?: string[] | undefined;
633
+ projectId: string;
634
+ outcome: string;
635
+ evidenceRefs?: {
636
+ id: string;
637
+ model: string;
638
+ store: "treedx" | "git" | "postgresql" | "url";
639
+ path?: string | undefined;
640
+ anchor?: string | undefined;
641
+ commit?: string | undefined;
642
+ repository?: string | undefined;
643
+ revision?: number | undefined;
644
+ digest?: string | undefined;
645
+ url?: string | undefined;
646
+ startLine?: number | undefined;
647
+ endLine?: number | undefined;
648
+ }[] | undefined;
610
649
  } | {
611
650
  id: string;
612
651
  schemaVersion: "treeseed.decision/v1";
@@ -615,45 +654,45 @@ export declare function validatePortableContentData(model: string, value: unknow
615
654
  authorityRefs: {
616
655
  id: string;
617
656
  model: string;
618
- store: "git" | "url" | "postgresql" | "treedx";
657
+ store: "treedx" | "git" | "postgresql" | "url";
619
658
  path?: string | undefined;
620
- repository?: string | undefined;
659
+ anchor?: string | undefined;
621
660
  commit?: string | undefined;
661
+ repository?: string | undefined;
662
+ revision?: number | undefined;
622
663
  digest?: string | undefined;
623
- anchor?: string | undefined;
624
664
  url?: string | undefined;
625
- revision?: number | undefined;
626
665
  startLine?: number | undefined;
627
666
  endLine?: number | undefined;
628
667
  }[];
629
668
  subjectRef: {
630
669
  id: string;
631
670
  model: string;
632
- store: "git" | "url" | "postgresql" | "treedx";
671
+ store: "treedx" | "git" | "postgresql" | "url";
633
672
  path?: string | undefined;
634
- repository?: string | undefined;
673
+ anchor?: string | undefined;
635
674
  commit?: string | undefined;
675
+ repository?: string | undefined;
676
+ revision?: number | undefined;
636
677
  digest?: string | undefined;
637
- anchor?: string | undefined;
638
678
  url?: string | undefined;
639
- revision?: number | undefined;
640
679
  startLine?: number | undefined;
641
680
  endLine?: number | undefined;
642
681
  };
643
- disposition: "approved" | "rejected" | "deferred" | "superseded" | "request-changes";
644
682
  decisionClass: "proposal" | "work-review" | "publication";
645
- decisionMethod: "authority" | "vote" | "approval";
683
+ decisionMethod: "authority" | "approval" | "vote";
684
+ disposition: "rejected" | "approved" | "deferred" | "superseded" | "request-changes";
646
685
  decidedByRefs: {
647
686
  id: string;
648
687
  model: string;
649
- store: "git" | "url" | "postgresql" | "treedx";
688
+ store: "treedx" | "git" | "postgresql" | "url";
650
689
  path?: string | undefined;
651
- repository?: string | undefined;
690
+ anchor?: string | undefined;
652
691
  commit?: string | undefined;
692
+ repository?: string | undefined;
693
+ revision?: number | undefined;
653
694
  digest?: string | undefined;
654
- anchor?: string | undefined;
655
695
  url?: string | undefined;
656
- revision?: number | undefined;
657
696
  startLine?: number | undefined;
658
697
  endLine?: number | undefined;
659
698
  }[];
@@ -661,14 +700,14 @@ export declare function validatePortableContentData(model: string, value: unknow
661
700
  findingRefs?: {
662
701
  id: string;
663
702
  model: string;
664
- store: "git" | "url" | "postgresql" | "treedx";
703
+ store: "treedx" | "git" | "postgresql" | "url";
665
704
  path?: string | undefined;
666
- repository?: string | undefined;
705
+ anchor?: string | undefined;
667
706
  commit?: string | undefined;
707
+ repository?: string | undefined;
708
+ revision?: number | undefined;
668
709
  digest?: string | undefined;
669
- anchor?: string | undefined;
670
710
  url?: string | undefined;
671
- revision?: number | undefined;
672
711
  startLine?: number | undefined;
673
712
  endLine?: number | undefined;
674
713
  }[] | undefined;
@@ -676,14 +715,14 @@ export declare function validatePortableContentData(model: string, value: unknow
676
715
  actorRef: {
677
716
  id: string;
678
717
  model: string;
679
- store: "git" | "url" | "postgresql" | "treedx";
718
+ store: "treedx" | "git" | "postgresql" | "url";
680
719
  path?: string | undefined;
681
- repository?: string | undefined;
720
+ anchor?: string | undefined;
682
721
  commit?: string | undefined;
722
+ repository?: string | undefined;
723
+ revision?: number | undefined;
683
724
  digest?: string | undefined;
684
- anchor?: string | undefined;
685
725
  url?: string | undefined;
686
- revision?: number | undefined;
687
726
  startLine?: number | undefined;
688
727
  endLine?: number | undefined;
689
728
  };
@@ -692,82 +731,216 @@ export declare function validatePortableContentData(model: string, value: unknow
692
731
  rationale?: string | undefined;
693
732
  }[] | undefined;
694
733
  } | {
695
- status: "review" | "archived" | "draft" | "published";
734
+ status: "archived" | "review" | "published" | "draft";
696
735
  id: string;
697
- schemaVersion: "treeseed.book/v2";
736
+ schemaVersion: "treeseed.book/v3";
737
+ title: string;
738
+ revision: number;
739
+ summary: string;
698
740
  slug: string;
699
- visibility: "project" | "team" | "public" | "admin" | "authenticated";
741
+ projectId: string;
742
+ visibility: "project" | "team" | "public" | "authenticated" | "admin";
700
743
  order: number;
701
- summary: string;
702
- title: string;
703
744
  audience?: string[] | undefined;
704
745
  description?: string | undefined;
705
746
  groupIds?: string[] | undefined;
706
747
  relatedBookIds?: string[] | undefined;
748
+ packPolicy?: "disabled" | "allowed" | "restricted" | undefined;
749
+ editorialCoreNoteId?: string | undefined;
750
+ cover?: {
751
+ image?: string | undefined;
752
+ alt?: string | undefined;
753
+ } | undefined;
707
754
  } | {
708
- status: "review" | "archived" | "draft" | "published";
755
+ status: "archived" | "review" | "published" | "draft";
709
756
  id: string;
710
- schemaVersion: "treeseed.knowledge-page/v1";
711
- slug: string;
712
- visibility: "project" | "team" | "public" | "admin" | "authenticated";
713
- summary: string;
757
+ schemaVersion: "treeseed.knowledge-page/v2";
714
758
  title: string;
715
- bookId: string;
759
+ slug: string;
760
+ body: string;
761
+ projectId: string;
762
+ visibility: "project" | "team" | "public" | "authenticated" | "admin";
763
+ bookRef: {
764
+ id: string;
765
+ model: string;
766
+ store: "treedx" | "git" | "postgresql" | "url";
767
+ path?: string | undefined;
768
+ anchor?: string | undefined;
769
+ commit?: string | undefined;
770
+ repository?: string | undefined;
771
+ revision?: number | undefined;
772
+ digest?: string | undefined;
773
+ url?: string | undefined;
774
+ startLine?: number | undefined;
775
+ endLine?: number | undefined;
776
+ };
716
777
  description?: string | undefined;
717
- order?: number | undefined;
778
+ summary?: string | undefined;
718
779
  groupIds?: string[] | undefined;
780
+ order?: number | undefined;
781
+ relatedBookIds?: string[] | undefined;
782
+ parentId?: string | undefined;
783
+ contributors?: string[] | undefined;
784
+ relatedKnowledgeIds?: string[] | undefined;
785
+ relatedNoteIds?: string[] | undefined;
786
+ relatedQuestionIds?: string[] | undefined;
787
+ relatedObjectiveIds?: string[] | undefined;
788
+ relatedProposalIds?: string[] | undefined;
789
+ relatedDecisionIds?: string[] | undefined;
790
+ guaranteeIds?: string[] | undefined;
791
+ audiences?: {
792
+ primary?: string[] | undefined;
793
+ secondary?: string[] | undefined;
794
+ excluded?: string[] | undefined;
795
+ } | undefined;
796
+ relatedRefs?: {
797
+ id: string;
798
+ model: string;
799
+ store: "treedx" | "git" | "postgresql" | "url";
800
+ path?: string | undefined;
801
+ anchor?: string | undefined;
802
+ commit?: string | undefined;
803
+ repository?: string | undefined;
804
+ revision?: number | undefined;
805
+ digest?: string | undefined;
806
+ url?: string | undefined;
807
+ startLine?: number | undefined;
808
+ endLine?: number | undefined;
809
+ }[] | undefined;
810
+ capabilityIds?: string[] | undefined;
811
+ routePatterns?: string[] | undefined;
812
+ resourceTypes?: string[] | undefined;
813
+ actionIds?: string[] | undefined;
814
+ keywords?: string[] | undefined;
815
+ documentationUrls?: string[] | undefined;
719
816
  } | {
720
817
  name: string;
721
- status?: "live" | "planned" | "in progress" | "exploratory" | "speculative" | undefined;
722
- role?: string | undefined;
818
+ status?: "planned" | "live" | "in progress" | "exploratory" | "speculative" | undefined;
723
819
  description?: string | undefined;
724
820
  summary?: string | undefined;
821
+ role?: string | undefined;
822
+ affiliation?: string | undefined;
725
823
  group_ids?: string[] | undefined;
726
- related_objectives?: string[] | undefined;
727
824
  related_questions?: string[] | undefined;
728
- affiliation?: string | undefined;
825
+ related_objectives?: string[] | undefined;
729
826
  } | {
827
+ status: "resolved" | "open" | "closed";
828
+ id: string;
829
+ schemaVersion: "treeseed.discussion/v1";
730
830
  title: string;
731
- status?: "active" | "archived" | undefined;
831
+ createdAt: string;
832
+ teamId: string;
833
+ projectId: string;
834
+ subjectRef: {
835
+ id: string;
836
+ model: string;
837
+ store: "treedx" | "git" | "postgresql" | "url";
838
+ path?: string | undefined;
839
+ anchor?: string | undefined;
840
+ commit?: string | undefined;
841
+ repository?: string | undefined;
842
+ revision?: number | undefined;
843
+ digest?: string | undefined;
844
+ url?: string | undefined;
845
+ startLine?: number | undefined;
846
+ endLine?: number | undefined;
847
+ };
848
+ participantClasses: string[];
849
+ updatedAt?: string | undefined;
850
+ visibility?: "project" | "team" | "public" | "authenticated" | "admin" | undefined;
851
+ groupIds?: string[] | undefined;
732
852
  topic?: string | undefined;
733
- created_at?: Date | undefined;
734
- updated_at?: Date | undefined;
735
- group_ids?: string[] | undefined;
736
- team_id?: string | undefined;
737
- project_id?: string | undefined;
738
- participant_ids?: string[] | undefined;
739
- agent_ids?: string[] | undefined;
740
- parent_workday_id?: string | undefined;
741
- legacy_status?: "open" | "resolved" | undefined;
853
+ participantIds?: string[] | undefined;
854
+ agentIds?: string[] | undefined;
855
+ parentWorkdayId?: string | undefined;
742
856
  } | {
743
- title: string;
744
- created_at?: Date | undefined;
857
+ id: string;
858
+ schemaVersion: "treeseed.discussion-message/v1";
859
+ createdAt: string;
860
+ body: string;
861
+ discussionRef: {
862
+ id: string;
863
+ model: string;
864
+ store: "treedx" | "git" | "postgresql" | "url";
865
+ path?: string | undefined;
866
+ anchor?: string | undefined;
867
+ commit?: string | undefined;
868
+ repository?: string | undefined;
869
+ revision?: number | undefined;
870
+ digest?: string | undefined;
871
+ url?: string | undefined;
872
+ startLine?: number | undefined;
873
+ endLine?: number | undefined;
874
+ };
875
+ authorRef: {
876
+ id: string;
877
+ model: string;
878
+ store: "treedx" | "git" | "postgresql" | "url";
879
+ path?: string | undefined;
880
+ anchor?: string | undefined;
881
+ commit?: string | undefined;
882
+ repository?: string | undefined;
883
+ revision?: number | undefined;
884
+ digest?: string | undefined;
885
+ url?: string | undefined;
886
+ startLine?: number | undefined;
887
+ endLine?: number | undefined;
888
+ };
889
+ title?: string | undefined;
745
890
  intent?: "discuss" | "propose" | undefined;
746
- group_ids?: string[] | undefined;
747
- parent_workday_id?: string | undefined;
748
- discussion_id?: string | undefined;
749
- author_id?: string | undefined;
750
- author_type?: "agent" | "system" | "user" | undefined;
751
- reply_to?: string | undefined;
752
- source_message_refs?: string[] | undefined;
753
- mentioned_agents?: string[] | undefined;
754
- recipient_ids?: string[] | undefined;
755
- author_agent_id?: string | undefined;
756
- handoff_id?: string | undefined;
757
- resulting_operation_id?: string | undefined;
891
+ contextRefs?: Record<string, unknown>[] | undefined;
892
+ parentWorkdayId?: string | undefined;
893
+ replyToRef?: {
894
+ id: string;
895
+ model: string;
896
+ store: "treedx" | "git" | "postgresql" | "url";
897
+ path?: string | undefined;
898
+ anchor?: string | undefined;
899
+ commit?: string | undefined;
900
+ repository?: string | undefined;
901
+ revision?: number | undefined;
902
+ digest?: string | undefined;
903
+ url?: string | undefined;
904
+ startLine?: number | undefined;
905
+ endLine?: number | undefined;
906
+ } | undefined;
907
+ discussionId?: string | undefined;
908
+ authorId?: string | undefined;
909
+ authorType?: "agent" | "user" | "system" | undefined;
910
+ mentionedAgents?: string[] | undefined;
911
+ recipientIds?: string[] | undefined;
912
+ fileRefs?: Record<string, unknown>[] | undefined;
913
+ inboxIntent?: "answer" | "comment" | "reply" | undefined;
914
+ sourceMessageRefs?: {
915
+ id: string;
916
+ model: string;
917
+ store: "treedx" | "git" | "postgresql" | "url";
918
+ path?: string | undefined;
919
+ anchor?: string | undefined;
920
+ commit?: string | undefined;
921
+ repository?: string | undefined;
922
+ revision?: number | undefined;
923
+ digest?: string | undefined;
924
+ url?: string | undefined;
925
+ startLine?: number | undefined;
926
+ endLine?: number | undefined;
927
+ }[] | undefined;
928
+ authorAgentId?: string | undefined;
929
+ handoffId?: string | undefined;
930
+ resultingOperationId?: string | undefined;
758
931
  } | {
759
932
  title: string;
760
- sequence?: number | undefined;
761
- phase?: string | undefined;
762
933
  group_ids?: string[] | undefined;
763
934
  discussion_id?: string | undefined;
935
+ phase?: string | undefined;
936
+ sequence?: number | undefined;
764
937
  occurred_at?: Date | undefined;
765
938
  refs?: string[] | undefined;
766
939
  } | {
767
940
  id: string;
768
941
  name: string;
769
- slug: string;
770
942
  description: string;
943
+ slug: string;
771
944
  classification: string;
772
945
  contract: "treeseed.group/v1";
773
946
  status?: "active" | "archived" | undefined;