@treeseed/sdk 0.13.0-rc.122 → 0.13.0-rc.124

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 (126) hide show
  1. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.d.ts +1392 -974
  2. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +72 -27
  3. package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +34 -34
  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 +1 -0
  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 +1 -3
  10. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.js +21 -15
  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 +227 -66
  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 +214 -5
  16. package/dist/agent-capacity/contracts/capacity/workdays/workday-records.js +19 -0
  17. package/dist/agent-capacity/contracts/operations/agent-team-clone.d.ts +47 -47
  18. package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +119 -0
  19. package/dist/agent-capacity/contracts/projects/agents/project-agent-class.js +16 -0
  20. package/dist/agent-capacity/contracts/support/execution-graph.d.ts +434 -230
  21. package/dist/agent-capacity/contracts/support/execution-graph.js +20 -18
  22. package/dist/agent-capacity/contracts/support/financial-records.d.ts +2 -0
  23. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +286 -254
  24. package/dist/agent-capacity/validation/agent-definition-schema.js +22 -28
  25. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +1 -1
  26. package/dist/agent-capacity/validation/assignment-records.js +45 -0
  27. package/dist/capacity/agents/agent-capacity.d.ts +1 -0
  28. package/dist/capacity/agents/agent-capacity.js +1 -0
  29. package/dist/capacity-provider/capability-ontology.d.ts +102 -102
  30. package/dist/capacity-provider/client.d.ts +14 -7
  31. package/dist/capacity-provider/client.js +1 -4
  32. package/dist/capacity-provider/contracts/capacity-facts.d.ts +0 -1
  33. package/dist/capacity-provider/contracts/environment-profiles.d.ts +40 -40
  34. package/dist/capacity-provider/contracts/governance.d.ts +2 -17
  35. package/dist/capacity-provider/contracts/index.d.ts +2 -0
  36. package/dist/capacity-provider/contracts/index.js +2 -0
  37. package/dist/capacity-provider/core-capability-catalog.d.ts +7 -7
  38. package/dist/capacity-provider/environment-catalog.d.ts +22 -22
  39. package/dist/capacity-provider/environment-catalog.js +1 -1
  40. package/dist/capacity-provider/install-configuration.d.ts +4 -4
  41. package/dist/capacity-provider/sandbox-contracts.d.ts +54 -54
  42. package/dist/capacity-provider/source-workspace.d.ts +76 -76
  43. package/dist/capacity-provider/validation.d.ts +10 -2
  44. package/dist/capacity-provider/validation.js +52 -22
  45. package/dist/content/validation/agent-operational-content-schemas.d.ts +120 -118
  46. package/dist/content/validation/agent-operational-content-schemas.js +2 -0
  47. package/dist/content/validation/auxiliary-content-schemas.d.ts +92 -92
  48. package/dist/content/validation/content-model-schemas.d.ts +3155 -2512
  49. package/dist/content/validation/content-model-schemas.js +97 -87
  50. package/dist/content/validation/portable-content-data.d.ts +173 -168
  51. package/dist/content/validation/schema-constraints.d.ts +78 -0
  52. package/dist/content/validation/schema-constraints.js +149 -0
  53. package/dist/deployment/ai/storage.d.ts +20 -20
  54. package/dist/deployment/ai-hosting.d.ts +12 -12
  55. package/dist/deployment/ai-instance.d.ts +12 -12
  56. package/dist/deployment/ai-mode.d.ts +34 -34
  57. package/dist/deployment/hosted-topology-template.d.ts +25 -25
  58. package/dist/deployment/hosted-topology.d.ts +146 -146
  59. package/dist/deployment/postgres/transfer.d.ts +2 -2
  60. package/dist/deployment/schemas.d.ts +504 -504
  61. package/dist/development/schemas.d.ts +325 -325
  62. package/dist/graph/context-query-contracts.js +1 -1
  63. package/dist/guarantees/index.d.ts +26 -2
  64. package/dist/identity/contracts.js +6 -1
  65. package/dist/operator-contracts/canonical-command-tree.js +22 -8
  66. package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +27 -27
  67. package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +25 -25
  68. package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +11 -9
  69. package/dist/operator-contracts/catalog/communication-operations.d.ts +108 -90
  70. package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +33 -33
  71. package/dist/operator-contracts/catalog/inbox-operations.d.ts +27 -27
  72. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +4 -4
  73. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.js +2 -1
  74. package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +5 -5
  75. package/dist/operator-contracts/catalog/provider-environment-operations.d.ts +3 -3
  76. package/dist/operator-contracts/catalog/services/secret-operations.d.ts +16 -8
  77. package/dist/operator-contracts/catalog/services/secret-operations.js +2 -1
  78. package/dist/operator-contracts/catalog/workdays/profile-operations.d.ts +11 -11
  79. package/dist/operator-contracts/catalog/workdays/selection-commands.js +7 -6
  80. package/dist/operator-contracts/communication/contracts.d.ts +340 -198
  81. package/dist/operator-contracts/communication/contracts.js +6 -1
  82. package/dist/operator-contracts/control-plane-operation.d.ts +7 -0
  83. package/dist/operator-contracts/control-plane-operation.js +6 -0
  84. package/dist/operator-contracts/control-plane-operations.d.ts +469 -442
  85. package/dist/operator-contracts/control-plane-operations.js +26 -10
  86. package/dist/operator-contracts/inbox/contracts.d.ts +100 -100
  87. package/dist/operator-contracts/knowledge/contracts.d.ts +6 -6
  88. package/dist/operator-contracts/mcp.js +4 -3
  89. package/dist/operator-contracts/workday-lifecycle.d.ts +192 -2
  90. package/dist/operator-contracts/workday-lifecycle.js +108 -45
  91. package/dist/platform/agent-schema-verification.js +316 -33
  92. package/dist/platform/contracts.d.ts +72 -72
  93. package/dist/platform/schemas.d.ts +144 -36
  94. package/dist/platform/schemas.js +26 -0
  95. package/dist/platform/verification.js +4 -0
  96. package/dist/sdk-types/support/sdk-search-request.d.ts +2 -2
  97. package/dist/secrets-capability/secret-contracts.d.ts +2 -2
  98. package/dist/secrets-capability/shared-access.d.ts +1 -1
  99. package/dist/secrets-capability/shared-resources.d.ts +30 -30
  100. package/dist/security/encrypted-envelope.d.ts +6 -6
  101. package/dist/treedx/client.d.ts +4 -4
  102. package/dist/treedx/index.d.ts +1 -1
  103. package/dist/treedx/index.js +1 -0
  104. package/dist/treedx/types.d.ts +286 -0
  105. package/dist/treedx/types.js +44 -0
  106. package/dist/types/agents/agent-activity-profile.d.ts +1 -0
  107. package/guarantees/agent/golden/component-boundaries.guarantee.yaml +12 -0
  108. package/guarantees/agent/golden/product-custody.guarantee.yaml +12 -0
  109. package/guarantees/agent/golden/product.guarantee.yaml +12 -0
  110. package/guarantees/agent/golden/scenes/component-boundaries.scene.yaml +837 -0
  111. package/guarantees/agent/golden/scenes/product-custody.scene.yaml +53 -0
  112. package/guarantees/agent/golden/scenes/product.scene.yaml +8 -0
  113. package/guarantees/verifiers/golden.verifiers.yaml +1429 -0
  114. package/package.json +10 -5
  115. package/tests/acceptance/golden-product.test.ts +205 -0
  116. package/tests/acceptance/golden-product.ts +404 -0
  117. package/tests/acceptance/product/base-red.ts +73 -0
  118. package/tests/acceptance/product/documentation-examples.ts +68 -0
  119. package/tests/acceptance/product/intent-runtime.ts +145 -0
  120. package/tests/acceptance/product/release-output.ts +160 -0
  121. package/tests/acceptance/product/research-artifact.ts +87 -0
  122. package/tests/acceptance/product/research-revision.ts +82 -0
  123. package/tests/acceptance/product/research-source.ts +91 -0
  124. package/tests/acceptance/product/test-chain.ts +192 -0
  125. package/treeseed.package.yaml +147 -0
  126. package/dist/.treeseed-build-complete.json +0 -1
@@ -24,23 +24,23 @@ 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;
29
28
  responsibilities: string[];
30
29
  agentClass: string;
30
+ capabilities: string[];
31
31
  context: {
32
32
  include: string[];
33
33
  };
34
34
  activityProfiles: {
35
35
  planning?: {
36
- handler: string;
37
36
  permissions: {
38
37
  content: {
39
38
  read: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
40
39
  write: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
41
40
  };
42
- tools: ("release" | "discussion" | "source.read" | "source.write" | "verification")[];
41
+ tools: ("discussion" | "source.read" | "source.write" | "verification" | "release")[];
43
42
  };
43
+ handler: string;
44
44
  prompt: {
45
45
  system: string;
46
46
  instructions?: string[] | undefined;
@@ -53,14 +53,14 @@ export declare function validatePortableContentData(model: string, value: unknow
53
53
  parameters?: Record<string, unknown> | undefined;
54
54
  } | undefined;
55
55
  estimating?: {
56
- handler: string;
57
56
  permissions: {
58
57
  content: {
59
58
  read: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
60
59
  write: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
61
60
  };
62
- tools: ("release" | "discussion" | "source.read" | "source.write" | "verification")[];
61
+ tools: ("discussion" | "source.read" | "source.write" | "verification" | "release")[];
63
62
  };
63
+ handler: string;
64
64
  prompt: {
65
65
  system: string;
66
66
  instructions?: string[] | undefined;
@@ -73,14 +73,14 @@ export declare function validatePortableContentData(model: string, value: unknow
73
73
  parameters?: Record<string, unknown> | undefined;
74
74
  } | undefined;
75
75
  acting?: {
76
- handler: string;
77
76
  permissions: {
78
77
  content: {
79
78
  read: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
80
79
  write: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
81
80
  };
82
- tools: ("release" | "discussion" | "source.read" | "source.write" | "verification")[];
81
+ tools: ("discussion" | "source.read" | "source.write" | "verification" | "release")[];
83
82
  };
83
+ handler: string;
84
84
  prompt: {
85
85
  system: string;
86
86
  instructions?: string[] | undefined;
@@ -93,14 +93,14 @@ export declare function validatePortableContentData(model: string, value: unknow
93
93
  parameters?: Record<string, unknown> | undefined;
94
94
  } | undefined;
95
95
  reviewing?: {
96
- handler: string;
97
96
  permissions: {
98
97
  content: {
99
98
  read: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
100
99
  write: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
101
100
  };
102
- tools: ("release" | "discussion" | "source.read" | "source.write" | "verification")[];
101
+ tools: ("discussion" | "source.read" | "source.write" | "verification" | "release")[];
103
102
  };
103
+ handler: string;
104
104
  prompt: {
105
105
  system: string;
106
106
  instructions?: string[] | undefined;
@@ -113,14 +113,14 @@ export declare function validatePortableContentData(model: string, value: unknow
113
113
  parameters?: Record<string, unknown> | undefined;
114
114
  } | undefined;
115
115
  reporting?: {
116
- handler: string;
117
116
  permissions: {
118
117
  content: {
119
118
  read: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
120
119
  write: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
121
120
  };
122
- tools: ("release" | "discussion" | "source.read" | "source.write" | "verification")[];
121
+ tools: ("discussion" | "source.read" | "source.write" | "verification" | "release")[];
123
122
  };
123
+ handler: string;
124
124
  prompt: {
125
125
  system: string;
126
126
  instructions?: string[] | undefined;
@@ -133,14 +133,14 @@ export declare function validatePortableContentData(model: string, value: unknow
133
133
  parameters?: Record<string, unknown> | undefined;
134
134
  } | undefined;
135
135
  chat?: {
136
- handler: string;
137
136
  permissions: {
138
137
  content: {
139
138
  read: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
140
139
  write: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
141
140
  };
142
- tools: ("release" | "discussion" | "source.read" | "source.write" | "verification")[];
141
+ tools: ("discussion" | "source.read" | "source.write" | "verification" | "release")[];
143
142
  };
143
+ handler: string;
144
144
  prompt: {
145
145
  system: string;
146
146
  instructions?: string[] | undefined;
@@ -153,16 +153,17 @@ export declare function validatePortableContentData(model: string, value: unknow
153
153
  parameters?: Record<string, unknown> | undefined;
154
154
  } | undefined;
155
155
  };
156
+ groupIds?: string[] | undefined;
156
157
  } | {
157
158
  status: string;
158
- slug: string;
159
- visibility: "team" | "public" | "private" | "authenticated";
160
- projectId: string;
159
+ title: string;
161
160
  summary: string;
162
161
  startedAt: Date;
163
- title: string;
162
+ slug: string;
163
+ projectId: string;
164
164
  metadata: Record<string, unknown>;
165
165
  environment: string;
166
+ visibility: "team" | "private" | "public" | "authenticated";
166
167
  changedFiles: string[];
167
168
  workDayId: string;
168
169
  reportVersion: string;
@@ -179,8 +180,8 @@ export declare function validatePortableContentData(model: string, value: unknow
179
180
  priority: number;
180
181
  model: string;
181
182
  status?: string | undefined;
182
- slug?: string | undefined;
183
183
  title?: string | undefined;
184
+ slug?: string | undefined;
184
185
  estimatedCredits?: number | undefined;
185
186
  reason?: string | undefined;
186
187
  }[];
@@ -194,8 +195,8 @@ export declare function validatePortableContentData(model: string, value: unknow
194
195
  changedFiles: string[];
195
196
  type?: string | undefined;
196
197
  state?: string | undefined;
197
- createdAt?: Date | undefined;
198
198
  priority?: number | undefined;
199
+ createdAt?: Date | undefined;
199
200
  startedAt?: Date | undefined;
200
201
  idempotencyKey?: string | undefined;
201
202
  completedAt?: Date | undefined;
@@ -218,21 +219,26 @@ export declare function validatePortableContentData(model: string, value: unknow
218
219
  }[];
219
220
  scaleDecision: Record<string, unknown>;
220
221
  scaleResult: Record<string, unknown>;
221
- teamId?: string | undefined;
222
222
  createdAt?: Date | undefined;
223
+ teamId?: string | undefined;
223
224
  endedAt?: Date | null | undefined;
224
225
  prioritySnapshotId?: string | null | undefined;
225
226
  } | {
226
227
  status: "archived" | "draft" | "live";
227
228
  audience: string[];
228
- slug: string;
229
- summary: string;
230
229
  title: string;
231
230
  description: string;
231
+ groupIds: string[];
232
+ summary: string;
233
+ slug: string;
234
+ offer: {
235
+ priceModel: "subscription" | "free" | "private" | "contact" | "one_time" | "one_time_current_version" | "subscription_updates" | "professional_hosting" | "scoped_contract" | "external";
236
+ license?: string | undefined;
237
+ support?: string | undefined;
238
+ };
232
239
  featured: boolean;
233
240
  listingEnabled: boolean;
234
241
  category: string;
235
- groupIds: string[];
236
242
  publisher: {
237
243
  id: string;
238
244
  name: string;
@@ -258,15 +264,10 @@ export declare function validatePortableContentData(model: string, value: unknow
258
264
  bucket?: string | undefined;
259
265
  publicUrl?: string | undefined;
260
266
  };
261
- mode: "git" | "packaged" | "r2";
267
+ mode: "packaged" | "git" | "r2";
262
268
  hooksPolicy: "disabled" | "builtin_only" | "trusted_only";
263
269
  supportsReconcile: boolean;
264
270
  };
265
- offer: {
266
- priceModel: "private" | "subscription" | "free" | "contact" | "one_time" | "one_time_current_version" | "subscription_updates" | "professional_hosting" | "scoped_contract" | "external";
267
- license?: string | undefined;
268
- support?: string | undefined;
269
- };
270
271
  relatedBooks: string[];
271
272
  relatedKnowledge: string[];
272
273
  relatedObjectives: string[];
@@ -293,11 +294,11 @@ export declare function validatePortableContentData(model: string, value: unknow
293
294
  [k: string]: unknown;
294
295
  };
295
296
  contextQueryRefs: string[];
296
- fixture?: string | undefined;
297
297
  budget?: {
298
298
  maxTokens: number;
299
299
  maxContextItems: number;
300
300
  } | undefined;
301
+ fixture?: string | undefined;
301
302
  queryRef?: {
302
303
  id: string;
303
304
  revision: number;
@@ -318,6 +319,19 @@ export declare function validatePortableContentData(model: string, value: unknow
318
319
  maxLatencyMs?: number | undefined;
319
320
  } | {
320
321
  id: string;
322
+ format: "map" | "summary" | "list" | "brief" | "full" | "sources";
323
+ title: string;
324
+ description: string;
325
+ target: {
326
+ kind: "code" | "content" | "mixed" | "graph";
327
+ models?: string[] | undefined;
328
+ paths?: string[] | undefined;
329
+ };
330
+ query: string;
331
+ revision: number;
332
+ purpose: string;
333
+ priority: number;
334
+ requirement: "required" | "preferred";
321
335
  sources: ({
322
336
  scope: "current-project";
323
337
  } | {
@@ -331,20 +345,8 @@ export declare function validatePortableContentData(model: string, value: unknow
331
345
  scope: "shared-team";
332
346
  projectIds: string[];
333
347
  })[];
334
- query: string;
335
- revision: number;
336
- purpose: string;
337
- priority: number;
338
- title: string;
339
- description: string;
340
- requirement: "required" | "preferred";
341
348
  depth: number;
342
349
  maturity: "draft" | "validated" | "simulated" | "proven";
343
- target: {
344
- kind: "code" | "content" | "mixed" | "graph";
345
- models?: string[] | undefined;
346
- paths?: string[] | undefined;
347
- };
348
350
  relations: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[];
349
351
  resultLimit: number;
350
352
  contextBudget: {
@@ -352,7 +354,6 @@ export declare function validatePortableContentData(model: string, value: unknow
352
354
  maxCharacters?: number | undefined;
353
355
  };
354
356
  tokenBudget: number;
355
- format: "map" | "sources" | "summary" | "list" | "brief" | "full";
356
357
  summarization: "provider" | "none" | "deterministic";
357
358
  filters: Record<string, unknown>;
358
359
  scope?: string | undefined;
@@ -361,9 +362,9 @@ export declare function validatePortableContentData(model: string, value: unknow
361
362
  maximumBudget?: number | undefined;
362
363
  } | {
363
364
  id: string;
364
- revision: number;
365
365
  title: string;
366
366
  description: string;
367
+ revision: number;
367
368
  queryRefs: {
368
369
  id: string;
369
370
  revision: number;
@@ -372,28 +373,28 @@ export declare function validatePortableContentData(model: string, value: unknow
372
373
  } | {
373
374
  kind: "message" | "status" | "summary" | "plan";
374
375
  id: string;
375
- variables: string[];
376
- revision: number;
377
376
  title: string;
378
377
  description: string;
378
+ revision: number;
379
+ variables: string[];
379
380
  instructions: string;
380
381
  appliesToProfiles: string[];
381
382
  outputSkeleton?: string | undefined;
382
383
  } | {
383
384
  status: "active" | "archived";
384
385
  id: string;
385
- slug: string;
386
386
  title: string;
387
387
  description: string;
388
388
  groupIds: string[];
389
+ slug: string;
389
390
  parentTopicId?: string | undefined;
390
391
  } | {
391
392
  status: string;
392
393
  id: string;
393
- projectId: string;
394
- teamId: string;
395
- createdAt: Date;
396
394
  title: string;
395
+ createdAt: Date;
396
+ teamId: string;
397
+ projectId: string;
397
398
  agentId: string;
398
399
  contextQueryRefs: {
399
400
  id: string;
@@ -420,29 +421,30 @@ export declare function validatePortableContentData(model: string, value: unknow
420
421
  evidenceRefs: string[];
421
422
  notes?: string | undefined;
422
423
  }[];
423
- assignmentId?: string | undefined;
424
- updatedAt?: Date | undefined;
425
424
  description?: string | undefined;
425
+ updatedAt?: Date | undefined;
426
+ assignmentId?: string | undefined;
426
427
  workdayId?: string | undefined;
427
428
  score?: number | undefined;
428
429
  } | {
429
430
  status: "ready" | "draft" | "discussing" | "decided" | "withdrawn";
430
431
  id: string;
431
432
  schemaVersion: "treeseed.proposal/v1";
432
- projectId: string;
433
433
  title: string;
434
434
  request: string;
435
+ projectId: string;
436
+ groupIds?: string[] | undefined;
435
437
  summary?: string | undefined;
436
438
  evidenceRefs?: {
437
439
  id: string;
438
440
  model: string;
439
- store: "git" | "treedx" | "postgresql" | "url";
441
+ store: "treedx" | "git" | "postgresql" | "url";
440
442
  path?: string | undefined;
441
- repository?: string | undefined;
442
- commit?: string | undefined;
443
- digest?: string | undefined;
444
443
  anchor?: string | undefined;
444
+ commit?: string | undefined;
445
+ repository?: string | undefined;
445
446
  revision?: number | undefined;
447
+ digest?: string | undefined;
446
448
  url?: string | undefined;
447
449
  startLine?: number | undefined;
448
450
  endLine?: number | undefined;
@@ -450,13 +452,13 @@ export declare function validatePortableContentData(model: string, value: unknow
450
452
  objectiveRefs?: {
451
453
  id: string;
452
454
  model: string;
453
- store: "git" | "treedx" | "postgresql" | "url";
455
+ store: "treedx" | "git" | "postgresql" | "url";
454
456
  path?: string | undefined;
455
- repository?: string | undefined;
456
- commit?: string | undefined;
457
- digest?: string | undefined;
458
457
  anchor?: string | undefined;
458
+ commit?: string | undefined;
459
+ repository?: string | undefined;
459
460
  revision?: number | undefined;
461
+ digest?: string | undefined;
460
462
  url?: string | undefined;
461
463
  startLine?: number | undefined;
462
464
  endLine?: number | undefined;
@@ -464,13 +466,13 @@ export declare function validatePortableContentData(model: string, value: unknow
464
466
  discussionRef?: {
465
467
  id: string;
466
468
  model: string;
467
- store: "git" | "treedx" | "postgresql" | "url";
469
+ store: "treedx" | "git" | "postgresql" | "url";
468
470
  path?: string | undefined;
469
- repository?: string | undefined;
470
- commit?: string | undefined;
471
- digest?: string | undefined;
472
471
  anchor?: string | undefined;
472
+ commit?: string | undefined;
473
+ repository?: string | undefined;
473
474
  revision?: number | undefined;
475
+ digest?: string | undefined;
474
476
  url?: string | undefined;
475
477
  startLine?: number | undefined;
476
478
  endLine?: number | undefined;
@@ -483,38 +485,37 @@ export declare function validatePortableContentData(model: string, value: unknow
483
485
  review: "required" | "none";
484
486
  dependsOn: string[];
485
487
  activity: "acting";
486
- requiredCapabilities: string[];
487
488
  acceptanceCriteria: string[];
488
- workspace: "git" | "read-only" | "treedx";
489
+ workspace: "read-only" | "treedx" | "git";
489
490
  requestedPermissions: {
490
491
  content: {
491
492
  read: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
492
493
  write: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
493
494
  };
494
- tools: ("release" | "discussion" | "source.read" | "source.write" | "verification")[];
495
+ tools: ("discussion" | "source.read" | "source.write" | "verification" | "release")[];
495
496
  };
496
497
  estimate?: {
497
- minimumSeconds: number;
498
498
  expectedSeconds: number;
499
499
  maximumSeconds: number;
500
500
  rationale?: string | undefined;
501
501
  } | undefined;
502
+ priority?: number | undefined;
503
+ requiredCapabilities?: string[] | undefined;
502
504
  contextRefs?: {
503
505
  id: string;
504
506
  model: string;
505
- store: "git" | "treedx" | "postgresql" | "url";
507
+ store: "treedx" | "git" | "postgresql" | "url";
506
508
  path?: string | undefined;
507
- repository?: string | undefined;
508
- commit?: string | undefined;
509
- digest?: string | undefined;
510
509
  anchor?: string | undefined;
510
+ commit?: string | undefined;
511
+ repository?: string | undefined;
511
512
  revision?: number | undefined;
513
+ digest?: string | undefined;
512
514
  url?: string | undefined;
513
515
  startLine?: number | undefined;
514
516
  endLine?: number | undefined;
515
517
  }[] | undefined;
516
518
  reviewEstimate?: {
517
- minimumSeconds: number;
518
519
  expectedSeconds: number;
519
520
  maximumSeconds: number;
520
521
  rationale?: string | undefined;
@@ -526,28 +527,28 @@ export declare function validatePortableContentData(model: string, value: unknow
526
527
  title: string;
527
528
  status?: "planned" | "live" | "in progress" | "exploratory" | "speculative" | undefined;
528
529
  audience?: string[] | undefined;
529
- slug?: string | undefined;
530
+ description?: string | undefined;
530
531
  summary?: string | undefined;
531
532
  updated_at?: Date | undefined;
532
- description?: string | undefined;
533
+ slug?: string | undefined;
533
534
  page_layout?: "article" | "bridge" | undefined;
534
535
  stage?: string | undefined;
535
536
  } | {
536
537
  id: string;
537
538
  schemaVersion: "treeseed.note/v1";
538
- projectId: string;
539
539
  createdAt: string;
540
540
  body: string;
541
+ projectId: string;
541
542
  subjectRefs: {
542
543
  id: string;
543
544
  model: string;
544
- store: "git" | "treedx" | "postgresql" | "url";
545
+ store: "treedx" | "git" | "postgresql" | "url";
545
546
  path?: string | undefined;
546
- repository?: string | undefined;
547
- commit?: string | undefined;
548
- digest?: string | undefined;
549
547
  anchor?: string | undefined;
548
+ commit?: string | undefined;
549
+ repository?: string | undefined;
550
550
  revision?: number | undefined;
551
+ digest?: string | undefined;
551
552
  url?: string | undefined;
552
553
  startLine?: number | undefined;
553
554
  endLine?: number | undefined;
@@ -558,48 +559,52 @@ export declare function validatePortableContentData(model: string, value: unknow
558
559
  from: {
559
560
  id: string;
560
561
  model: string;
561
- store: "git" | "treedx" | "postgresql" | "url";
562
+ store: "treedx" | "git" | "postgresql" | "url";
562
563
  path?: string | undefined;
563
- repository?: string | undefined;
564
- commit?: string | undefined;
565
- digest?: string | undefined;
566
564
  anchor?: string | undefined;
565
+ commit?: string | undefined;
566
+ repository?: string | undefined;
567
567
  revision?: number | undefined;
568
+ digest?: string | undefined;
568
569
  url?: string | undefined;
569
570
  startLine?: number | undefined;
570
571
  endLine?: number | undefined;
572
+ } & {
573
+ [x: string]: any;
571
574
  };
572
575
  to: {
573
576
  id: string;
574
577
  model: string;
575
- store: "git" | "treedx" | "postgresql" | "url";
578
+ store: "treedx" | "git" | "postgresql" | "url";
576
579
  path?: string | undefined;
577
- repository?: string | undefined;
578
- commit?: string | undefined;
579
- digest?: string | undefined;
580
580
  anchor?: string | undefined;
581
+ commit?: string | undefined;
582
+ repository?: string | undefined;
581
583
  revision?: number | undefined;
584
+ digest?: string | undefined;
582
585
  url?: string | undefined;
583
586
  startLine?: number | undefined;
584
587
  endLine?: number | undefined;
588
+ } & {
589
+ [x: string]: any;
585
590
  };
586
591
  }[] | undefined;
587
592
  } | {
588
593
  status: "open" | "withdrawn" | "answered";
589
594
  id: string;
590
595
  schemaVersion: "treeseed.question/v1";
591
- projectId: string;
592
596
  question: string;
597
+ projectId: string;
593
598
  subjectRef: {
594
599
  id: string;
595
600
  model: string;
596
- store: "git" | "treedx" | "postgresql" | "url";
601
+ store: "treedx" | "git" | "postgresql" | "url";
597
602
  path?: string | undefined;
598
- repository?: string | undefined;
599
- commit?: string | undefined;
600
- digest?: string | undefined;
601
603
  anchor?: string | undefined;
604
+ commit?: string | undefined;
605
+ repository?: string | undefined;
602
606
  revision?: number | undefined;
607
+ digest?: string | undefined;
603
608
  url?: string | undefined;
604
609
  startLine?: number | undefined;
605
610
  endLine?: number | undefined;
@@ -610,13 +615,13 @@ export declare function validatePortableContentData(model: string, value: unknow
610
615
  answerRefs?: {
611
616
  id: string;
612
617
  model: string;
613
- store: "git" | "treedx" | "postgresql" | "url";
618
+ store: "treedx" | "git" | "postgresql" | "url";
614
619
  path?: string | undefined;
615
- repository?: string | undefined;
616
- commit?: string | undefined;
617
- digest?: string | undefined;
618
620
  anchor?: string | undefined;
621
+ commit?: string | undefined;
622
+ repository?: string | undefined;
619
623
  revision?: number | undefined;
624
+ digest?: string | undefined;
620
625
  url?: string | undefined;
621
626
  startLine?: number | undefined;
622
627
  endLine?: number | undefined;
@@ -626,19 +631,19 @@ export declare function validatePortableContentData(model: string, value: unknow
626
631
  status: "active" | "achieved" | "abandoned";
627
632
  id: string;
628
633
  schemaVersion: "treeseed.objective/v1";
629
- projectId: string;
630
634
  title: string;
635
+ projectId: string;
631
636
  outcome: string;
632
637
  evidenceRefs?: {
633
638
  id: string;
634
639
  model: string;
635
- store: "git" | "treedx" | "postgresql" | "url";
640
+ store: "treedx" | "git" | "postgresql" | "url";
636
641
  path?: string | undefined;
637
- repository?: string | undefined;
638
- commit?: string | undefined;
639
- digest?: string | undefined;
640
642
  anchor?: string | undefined;
643
+ commit?: string | undefined;
644
+ repository?: string | undefined;
641
645
  revision?: number | undefined;
646
+ digest?: string | undefined;
642
647
  url?: string | undefined;
643
648
  startLine?: number | undefined;
644
649
  endLine?: number | undefined;
@@ -651,13 +656,13 @@ export declare function validatePortableContentData(model: string, value: unknow
651
656
  authorityRefs: {
652
657
  id: string;
653
658
  model: string;
654
- store: "git" | "treedx" | "postgresql" | "url";
659
+ store: "treedx" | "git" | "postgresql" | "url";
655
660
  path?: string | undefined;
656
- repository?: string | undefined;
657
- commit?: string | undefined;
658
- digest?: string | undefined;
659
661
  anchor?: string | undefined;
662
+ commit?: string | undefined;
663
+ repository?: string | undefined;
660
664
  revision?: number | undefined;
665
+ digest?: string | undefined;
661
666
  url?: string | undefined;
662
667
  startLine?: number | undefined;
663
668
  endLine?: number | undefined;
@@ -665,30 +670,30 @@ export declare function validatePortableContentData(model: string, value: unknow
665
670
  subjectRef: {
666
671
  id: string;
667
672
  model: string;
668
- store: "git" | "treedx" | "postgresql" | "url";
673
+ store: "treedx" | "git" | "postgresql" | "url";
669
674
  path?: string | undefined;
670
- repository?: string | undefined;
671
- commit?: string | undefined;
672
- digest?: string | undefined;
673
675
  anchor?: string | undefined;
676
+ commit?: string | undefined;
677
+ repository?: string | undefined;
674
678
  revision?: number | undefined;
679
+ digest?: string | undefined;
675
680
  url?: string | undefined;
676
681
  startLine?: number | undefined;
677
682
  endLine?: number | undefined;
678
683
  };
679
684
  decisionClass: "proposal" | "work-review" | "publication";
680
685
  decisionMethod: "authority" | "approval" | "vote";
681
- disposition: "approved" | "rejected" | "deferred" | "superseded" | "request-changes";
686
+ disposition: "rejected" | "approved" | "deferred" | "superseded" | "request-changes";
682
687
  decidedByRefs: {
683
688
  id: string;
684
689
  model: string;
685
- store: "git" | "treedx" | "postgresql" | "url";
690
+ store: "treedx" | "git" | "postgresql" | "url";
686
691
  path?: string | undefined;
687
- repository?: string | undefined;
688
- commit?: string | undefined;
689
- digest?: string | undefined;
690
692
  anchor?: string | undefined;
693
+ commit?: string | undefined;
694
+ repository?: string | undefined;
691
695
  revision?: number | undefined;
696
+ digest?: string | undefined;
692
697
  url?: string | undefined;
693
698
  startLine?: number | undefined;
694
699
  endLine?: number | undefined;
@@ -697,13 +702,13 @@ export declare function validatePortableContentData(model: string, value: unknow
697
702
  findingRefs?: {
698
703
  id: string;
699
704
  model: string;
700
- store: "git" | "treedx" | "postgresql" | "url";
705
+ store: "treedx" | "git" | "postgresql" | "url";
701
706
  path?: string | undefined;
702
- repository?: string | undefined;
703
- commit?: string | undefined;
704
- digest?: string | undefined;
705
707
  anchor?: string | undefined;
708
+ commit?: string | undefined;
709
+ repository?: string | undefined;
706
710
  revision?: number | undefined;
711
+ digest?: string | undefined;
707
712
  url?: string | undefined;
708
713
  startLine?: number | undefined;
709
714
  endLine?: number | undefined;
@@ -712,13 +717,13 @@ export declare function validatePortableContentData(model: string, value: unknow
712
717
  actorRef: {
713
718
  id: string;
714
719
  model: string;
715
- store: "git" | "treedx" | "postgresql" | "url";
720
+ store: "treedx" | "git" | "postgresql" | "url";
716
721
  path?: string | undefined;
717
- repository?: string | undefined;
718
- commit?: string | undefined;
719
- digest?: string | undefined;
720
722
  anchor?: string | undefined;
723
+ commit?: string | undefined;
724
+ repository?: string | undefined;
721
725
  revision?: number | undefined;
726
+ digest?: string | undefined;
722
727
  url?: string | undefined;
723
728
  startLine?: number | undefined;
724
729
  endLine?: number | undefined;
@@ -731,12 +736,12 @@ export declare function validatePortableContentData(model: string, value: unknow
731
736
  status: "archived" | "review" | "published" | "draft";
732
737
  id: string;
733
738
  schemaVersion: "treeseed.book/v3";
734
- slug: string;
735
- visibility: "project" | "team" | "public" | "authenticated" | "admin";
736
- projectId: string;
739
+ title: string;
737
740
  revision: number;
738
741
  summary: string;
739
- title: string;
742
+ slug: string;
743
+ projectId: string;
744
+ visibility: "project" | "team" | "public" | "authenticated" | "admin";
740
745
  order: number;
741
746
  audience?: string[] | undefined;
742
747
  description?: string | undefined;
@@ -752,28 +757,28 @@ export declare function validatePortableContentData(model: string, value: unknow
752
757
  status: "archived" | "review" | "published" | "draft";
753
758
  id: string;
754
759
  schemaVersion: "treeseed.knowledge-page/v2";
755
- slug: string;
756
- visibility: "project" | "team" | "public" | "authenticated" | "admin";
757
- projectId: string;
758
760
  title: string;
761
+ slug: string;
759
762
  body: string;
763
+ projectId: string;
764
+ visibility: "project" | "team" | "public" | "authenticated" | "admin";
760
765
  bookRef: {
761
766
  id: string;
762
767
  model: string;
763
- store: "git" | "treedx" | "postgresql" | "url";
768
+ store: "treedx" | "git" | "postgresql" | "url";
764
769
  path?: string | undefined;
765
- repository?: string | undefined;
766
- commit?: string | undefined;
767
- digest?: string | undefined;
768
770
  anchor?: string | undefined;
771
+ commit?: string | undefined;
772
+ repository?: string | undefined;
769
773
  revision?: number | undefined;
774
+ digest?: string | undefined;
770
775
  url?: string | undefined;
771
776
  startLine?: number | undefined;
772
777
  endLine?: number | undefined;
773
778
  };
774
- summary?: string | undefined;
775
779
  description?: string | undefined;
776
780
  groupIds?: string[] | undefined;
781
+ summary?: string | undefined;
777
782
  order?: number | undefined;
778
783
  relatedBookIds?: string[] | undefined;
779
784
  parentId?: string | undefined;
@@ -793,13 +798,13 @@ export declare function validatePortableContentData(model: string, value: unknow
793
798
  relatedRefs?: {
794
799
  id: string;
795
800
  model: string;
796
- store: "git" | "treedx" | "postgresql" | "url";
801
+ store: "treedx" | "git" | "postgresql" | "url";
797
802
  path?: string | undefined;
798
- repository?: string | undefined;
799
- commit?: string | undefined;
800
- digest?: string | undefined;
801
803
  anchor?: string | undefined;
804
+ commit?: string | undefined;
805
+ repository?: string | undefined;
802
806
  revision?: number | undefined;
807
+ digest?: string | undefined;
803
808
  url?: string | undefined;
804
809
  startLine?: number | undefined;
805
810
  endLine?: number | undefined;
@@ -813,9 +818,9 @@ export declare function validatePortableContentData(model: string, value: unknow
813
818
  } | {
814
819
  name: string;
815
820
  status?: "planned" | "live" | "in progress" | "exploratory" | "speculative" | undefined;
816
- role?: string | undefined;
817
- summary?: string | undefined;
818
821
  description?: string | undefined;
822
+ summary?: string | undefined;
823
+ role?: string | undefined;
819
824
  affiliation?: string | undefined;
820
825
  group_ids?: string[] | undefined;
821
826
  related_questions?: string[] | undefined;
@@ -824,28 +829,28 @@ export declare function validatePortableContentData(model: string, value: unknow
824
829
  status: "resolved" | "open" | "closed";
825
830
  id: string;
826
831
  schemaVersion: "treeseed.discussion/v1";
827
- projectId: string;
828
- teamId: string;
829
- createdAt: string;
830
832
  title: string;
833
+ createdAt: string;
834
+ teamId: string;
835
+ projectId: string;
831
836
  subjectRef: {
832
837
  id: string;
833
838
  model: string;
834
- store: "git" | "treedx" | "postgresql" | "url";
839
+ store: "treedx" | "git" | "postgresql" | "url";
835
840
  path?: string | undefined;
836
- repository?: string | undefined;
837
- commit?: string | undefined;
838
- digest?: string | undefined;
839
841
  anchor?: string | undefined;
842
+ commit?: string | undefined;
843
+ repository?: string | undefined;
840
844
  revision?: number | undefined;
845
+ digest?: string | undefined;
841
846
  url?: string | undefined;
842
847
  startLine?: number | undefined;
843
848
  endLine?: number | undefined;
844
849
  };
845
850
  participantClasses: string[];
846
- visibility?: "project" | "team" | "public" | "authenticated" | "admin" | undefined;
847
- updatedAt?: string | undefined;
848
851
  groupIds?: string[] | undefined;
852
+ updatedAt?: string | undefined;
853
+ visibility?: "project" | "team" | "public" | "authenticated" | "admin" | undefined;
849
854
  topic?: string | undefined;
850
855
  participantIds?: string[] | undefined;
851
856
  agentIds?: string[] | undefined;
@@ -858,13 +863,13 @@ export declare function validatePortableContentData(model: string, value: unknow
858
863
  discussionRef: {
859
864
  id: string;
860
865
  model: string;
861
- store: "git" | "treedx" | "postgresql" | "url";
866
+ store: "treedx" | "git" | "postgresql" | "url";
862
867
  path?: string | undefined;
863
- repository?: string | undefined;
864
- commit?: string | undefined;
865
- digest?: string | undefined;
866
868
  anchor?: string | undefined;
869
+ commit?: string | undefined;
870
+ repository?: string | undefined;
867
871
  revision?: number | undefined;
872
+ digest?: string | undefined;
868
873
  url?: string | undefined;
869
874
  startLine?: number | undefined;
870
875
  endLine?: number | undefined;
@@ -872,13 +877,13 @@ export declare function validatePortableContentData(model: string, value: unknow
872
877
  authorRef: {
873
878
  id: string;
874
879
  model: string;
875
- store: "git" | "treedx" | "postgresql" | "url";
880
+ store: "treedx" | "git" | "postgresql" | "url";
876
881
  path?: string | undefined;
877
- repository?: string | undefined;
878
- commit?: string | undefined;
879
- digest?: string | undefined;
880
882
  anchor?: string | undefined;
883
+ commit?: string | undefined;
884
+ repository?: string | undefined;
881
885
  revision?: number | undefined;
886
+ digest?: string | undefined;
882
887
  url?: string | undefined;
883
888
  startLine?: number | undefined;
884
889
  endLine?: number | undefined;
@@ -890,13 +895,13 @@ export declare function validatePortableContentData(model: string, value: unknow
890
895
  replyToRef?: {
891
896
  id: string;
892
897
  model: string;
893
- store: "git" | "treedx" | "postgresql" | "url";
898
+ store: "treedx" | "git" | "postgresql" | "url";
894
899
  path?: string | undefined;
895
- repository?: string | undefined;
896
- commit?: string | undefined;
897
- digest?: string | undefined;
898
900
  anchor?: string | undefined;
901
+ commit?: string | undefined;
902
+ repository?: string | undefined;
899
903
  revision?: number | undefined;
904
+ digest?: string | undefined;
900
905
  url?: string | undefined;
901
906
  startLine?: number | undefined;
902
907
  endLine?: number | undefined;
@@ -911,13 +916,13 @@ export declare function validatePortableContentData(model: string, value: unknow
911
916
  sourceMessageRefs?: {
912
917
  id: string;
913
918
  model: string;
914
- store: "git" | "treedx" | "postgresql" | "url";
919
+ store: "treedx" | "git" | "postgresql" | "url";
915
920
  path?: string | undefined;
916
- repository?: string | undefined;
917
- commit?: string | undefined;
918
- digest?: string | undefined;
919
921
  anchor?: string | undefined;
922
+ commit?: string | undefined;
923
+ repository?: string | undefined;
920
924
  revision?: number | undefined;
925
+ digest?: string | undefined;
921
926
  url?: string | undefined;
922
927
  startLine?: number | undefined;
923
928
  endLine?: number | undefined;
@@ -936,8 +941,8 @@ export declare function validatePortableContentData(model: string, value: unknow
936
941
  } | {
937
942
  id: string;
938
943
  name: string;
939
- slug: string;
940
944
  description: string;
945
+ slug: string;
941
946
  classification: string;
942
947
  contract: "treeseed.group/v1";
943
948
  status?: "active" | "archived" | undefined;