@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
@@ -3,11 +3,11 @@ export declare const communicationRecipientSchema: z.ZodObject<{
3
3
  projectId: z.ZodString;
4
4
  agentSlug: z.ZodString;
5
5
  }, "strict", z.ZodTypeAny, {
6
- projectId: string;
7
6
  agentSlug: string;
8
- }, {
9
7
  projectId: string;
8
+ }, {
10
9
  agentSlug: string;
10
+ projectId: string;
11
11
  }>;
12
12
  export declare const communicationSendRequestSchema: z.ZodObject<{
13
13
  message: z.ZodString;
@@ -63,9 +63,9 @@ export declare const communicationTopicEventSchema: z.ZodObject<{
63
63
  handle: string | null;
64
64
  };
65
65
  id: string;
66
- teamId: string;
67
- assignmentId: string | null;
68
66
  summary: string;
67
+ assignmentId: string | null;
68
+ teamId: string;
69
69
  sequence: number;
70
70
  topicId: string;
71
71
  sendId: string | null;
@@ -81,9 +81,9 @@ export declare const communicationTopicEventSchema: z.ZodObject<{
81
81
  handle: string | null;
82
82
  };
83
83
  id: string;
84
- teamId: string;
85
- assignmentId: string | null;
86
84
  summary: string;
85
+ assignmentId: string | null;
86
+ teamId: string;
87
87
  sequence: number;
88
88
  topicId: string;
89
89
  sendId: string | null;
@@ -134,15 +134,15 @@ export declare const communicationDiagnosticSchema: z.ZodObject<{
134
134
  executionProviderId: string | null;
135
135
  runtimeVersion: string | null;
136
136
  };
137
+ usage: Record<string, unknown>[];
137
138
  resources: Record<string, unknown>;
138
139
  selection: {
139
140
  capabilities: string[];
140
141
  model: string | null;
141
142
  parameters: Record<string, unknown>;
142
143
  };
143
- usage: Record<string, unknown>[];
144
144
  reason: string | null;
145
- availability: "available" | "partial" | "unavailable";
145
+ availability: "partial" | "unavailable" | "available";
146
146
  identityManifest: Record<string, unknown>;
147
147
  contextManifest: Record<string, unknown>[];
148
148
  timing: Record<string, unknown>;
@@ -154,15 +154,15 @@ export declare const communicationDiagnosticSchema: z.ZodObject<{
154
154
  executionProviderId: string | null;
155
155
  runtimeVersion: string | null;
156
156
  };
157
+ usage: Record<string, unknown>[];
157
158
  resources: Record<string, unknown>;
158
159
  selection: {
159
160
  capabilities: string[];
160
161
  model: string | null;
161
162
  parameters: Record<string, unknown>;
162
163
  };
163
- usage: Record<string, unknown>[];
164
164
  reason: string | null;
165
- availability: "available" | "partial" | "unavailable";
165
+ availability: "partial" | "unavailable" | "available";
166
166
  identityManifest: Record<string, unknown>;
167
167
  contextManifest: Record<string, unknown>[];
168
168
  timing: Record<string, unknown>;
@@ -223,9 +223,9 @@ export declare const communicationTargetSchema: z.ZodObject<{
223
223
  failedAt: z.ZodNullable<z.ZodString>;
224
224
  }, "strict", z.ZodTypeAny, {
225
225
  status: string | null;
226
- providerId: string | null;
227
- assignmentId: string | null;
228
226
  claimedAt: string | null;
227
+ assignmentId: string | null;
228
+ providerId: string | null;
229
229
  executionProviderId: string | null;
230
230
  completedAt: string | null;
231
231
  laneId: string | null;
@@ -235,9 +235,9 @@ export declare const communicationTargetSchema: z.ZodObject<{
235
235
  failedAt: string | null;
236
236
  }, {
237
237
  status: string | null;
238
- providerId: string | null;
239
- assignmentId: string | null;
240
238
  claimedAt: string | null;
239
+ assignmentId: string | null;
240
+ providerId: string | null;
241
241
  executionProviderId: string | null;
242
242
  completedAt: string | null;
243
243
  laneId: string | null;
@@ -290,15 +290,15 @@ export declare const communicationTargetSchema: z.ZodObject<{
290
290
  executionProviderId: string | null;
291
291
  runtimeVersion: string | null;
292
292
  };
293
+ usage: Record<string, unknown>[];
293
294
  resources: Record<string, unknown>;
294
295
  selection: {
295
296
  capabilities: string[];
296
297
  model: string | null;
297
298
  parameters: Record<string, unknown>;
298
299
  };
299
- usage: Record<string, unknown>[];
300
300
  reason: string | null;
301
- availability: "available" | "partial" | "unavailable";
301
+ availability: "partial" | "unavailable" | "available";
302
302
  identityManifest: Record<string, unknown>;
303
303
  contextManifest: Record<string, unknown>[];
304
304
  timing: Record<string, unknown>;
@@ -310,15 +310,15 @@ export declare const communicationTargetSchema: z.ZodObject<{
310
310
  executionProviderId: string | null;
311
311
  runtimeVersion: string | null;
312
312
  };
313
+ usage: Record<string, unknown>[];
313
314
  resources: Record<string, unknown>;
314
315
  selection: {
315
316
  capabilities: string[];
316
317
  model: string | null;
317
318
  parameters: Record<string, unknown>;
318
319
  };
319
- usage: Record<string, unknown>[];
320
320
  reason: string | null;
321
- availability: "available" | "partial" | "unavailable";
321
+ availability: "partial" | "unavailable" | "available";
322
322
  identityManifest: Record<string, unknown>;
323
323
  contextManifest: Record<string, unknown>[];
324
324
  timing: Record<string, unknown>;
@@ -327,9 +327,9 @@ export declare const communicationTargetSchema: z.ZodObject<{
327
327
  }>;
328
328
  }, "strict", z.ZodTypeAny, {
329
329
  status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
330
- projectId: string;
331
330
  updatedAt: string;
332
331
  agentSlug: string;
332
+ projectId: string;
333
333
  requirement: "required" | "optional";
334
334
  depth: number;
335
335
  diagnostics: {
@@ -338,15 +338,15 @@ export declare const communicationTargetSchema: z.ZodObject<{
338
338
  executionProviderId: string | null;
339
339
  runtimeVersion: string | null;
340
340
  };
341
+ usage: Record<string, unknown>[];
341
342
  resources: Record<string, unknown>;
342
343
  selection: {
343
344
  capabilities: string[];
344
345
  model: string | null;
345
346
  parameters: Record<string, unknown>;
346
347
  };
347
- usage: Record<string, unknown>[];
348
348
  reason: string | null;
349
- availability: "available" | "partial" | "unavailable";
349
+ availability: "partial" | "unavailable" | "available";
350
350
  identityManifest: Record<string, unknown>;
351
351
  contextManifest: Record<string, unknown>[];
352
352
  timing: Record<string, unknown>;
@@ -357,9 +357,9 @@ export declare const communicationTargetSchema: z.ZodObject<{
357
357
  invocationId: string | null;
358
358
  capacity: {
359
359
  status: string | null;
360
- providerId: string | null;
361
- assignmentId: string | null;
362
360
  claimedAt: string | null;
361
+ assignmentId: string | null;
362
+ providerId: string | null;
363
363
  executionProviderId: string | null;
364
364
  completedAt: string | null;
365
365
  laneId: string | null;
@@ -386,9 +386,9 @@ export declare const communicationTargetSchema: z.ZodObject<{
386
386
  leaseAcceptedAt: string | null;
387
387
  }, {
388
388
  status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
389
- projectId: string;
390
389
  updatedAt: string;
391
390
  agentSlug: string;
391
+ projectId: string;
392
392
  requirement: "required" | "optional";
393
393
  depth: number;
394
394
  diagnostics: {
@@ -397,15 +397,15 @@ export declare const communicationTargetSchema: z.ZodObject<{
397
397
  executionProviderId: string | null;
398
398
  runtimeVersion: string | null;
399
399
  };
400
+ usage: Record<string, unknown>[];
400
401
  resources: Record<string, unknown>;
401
402
  selection: {
402
403
  capabilities: string[];
403
404
  model: string | null;
404
405
  parameters: Record<string, unknown>;
405
406
  };
406
- usage: Record<string, unknown>[];
407
407
  reason: string | null;
408
- availability: "available" | "partial" | "unavailable";
408
+ availability: "partial" | "unavailable" | "available";
409
409
  identityManifest: Record<string, unknown>;
410
410
  contextManifest: Record<string, unknown>[];
411
411
  timing: Record<string, unknown>;
@@ -416,9 +416,9 @@ export declare const communicationTargetSchema: z.ZodObject<{
416
416
  invocationId: string | null;
417
417
  capacity: {
418
418
  status: string | null;
419
- providerId: string | null;
420
- assignmentId: string | null;
421
419
  claimedAt: string | null;
420
+ assignmentId: string | null;
421
+ providerId: string | null;
422
422
  executionProviderId: string | null;
423
423
  completedAt: string | null;
424
424
  laneId: string | null;
@@ -458,10 +458,10 @@ export declare const communicationResponseSchema: z.ZodObject<{
458
458
  createdAt: z.ZodString;
459
459
  }, "strict", z.ZodTypeAny, {
460
460
  status: "failed" | "cancelled" | "responded" | "abstained";
461
- projectId: string;
462
461
  createdAt: string;
463
- assignmentId: string | null;
464
462
  agentSlug: string;
463
+ assignmentId: string | null;
464
+ projectId: string;
465
465
  requirement: "required" | "optional";
466
466
  invocationId: string;
467
467
  projectSlug: string;
@@ -469,10 +469,10 @@ export declare const communicationResponseSchema: z.ZodObject<{
469
469
  markdown: string;
470
470
  }, {
471
471
  status: "failed" | "cancelled" | "responded" | "abstained";
472
- projectId: string;
473
472
  createdAt: string;
474
- assignmentId: string | null;
475
473
  agentSlug: string;
474
+ assignmentId: string | null;
475
+ projectId: string;
476
476
  requirement: "required" | "optional";
477
477
  invocationId: string;
478
478
  projectSlug: string;
@@ -568,9 +568,9 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
568
568
  failedAt: z.ZodNullable<z.ZodString>;
569
569
  }, "strict", z.ZodTypeAny, {
570
570
  status: string | null;
571
- providerId: string | null;
572
- assignmentId: string | null;
573
571
  claimedAt: string | null;
572
+ assignmentId: string | null;
573
+ providerId: string | null;
574
574
  executionProviderId: string | null;
575
575
  completedAt: string | null;
576
576
  laneId: string | null;
@@ -580,9 +580,9 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
580
580
  failedAt: string | null;
581
581
  }, {
582
582
  status: string | null;
583
- providerId: string | null;
584
- assignmentId: string | null;
585
583
  claimedAt: string | null;
584
+ assignmentId: string | null;
585
+ providerId: string | null;
586
586
  executionProviderId: string | null;
587
587
  completedAt: string | null;
588
588
  laneId: string | null;
@@ -635,15 +635,15 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
635
635
  executionProviderId: string | null;
636
636
  runtimeVersion: string | null;
637
637
  };
638
+ usage: Record<string, unknown>[];
638
639
  resources: Record<string, unknown>;
639
640
  selection: {
640
641
  capabilities: string[];
641
642
  model: string | null;
642
643
  parameters: Record<string, unknown>;
643
644
  };
644
- usage: Record<string, unknown>[];
645
645
  reason: string | null;
646
- availability: "available" | "partial" | "unavailable";
646
+ availability: "partial" | "unavailable" | "available";
647
647
  identityManifest: Record<string, unknown>;
648
648
  contextManifest: Record<string, unknown>[];
649
649
  timing: Record<string, unknown>;
@@ -655,15 +655,15 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
655
655
  executionProviderId: string | null;
656
656
  runtimeVersion: string | null;
657
657
  };
658
+ usage: Record<string, unknown>[];
658
659
  resources: Record<string, unknown>;
659
660
  selection: {
660
661
  capabilities: string[];
661
662
  model: string | null;
662
663
  parameters: Record<string, unknown>;
663
664
  };
664
- usage: Record<string, unknown>[];
665
665
  reason: string | null;
666
- availability: "available" | "partial" | "unavailable";
666
+ availability: "partial" | "unavailable" | "available";
667
667
  identityManifest: Record<string, unknown>;
668
668
  contextManifest: Record<string, unknown>[];
669
669
  timing: Record<string, unknown>;
@@ -672,9 +672,9 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
672
672
  }>;
673
673
  }, "strict", z.ZodTypeAny, {
674
674
  status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
675
- projectId: string;
676
675
  updatedAt: string;
677
676
  agentSlug: string;
677
+ projectId: string;
678
678
  requirement: "required" | "optional";
679
679
  depth: number;
680
680
  diagnostics: {
@@ -683,15 +683,15 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
683
683
  executionProviderId: string | null;
684
684
  runtimeVersion: string | null;
685
685
  };
686
+ usage: Record<string, unknown>[];
686
687
  resources: Record<string, unknown>;
687
688
  selection: {
688
689
  capabilities: string[];
689
690
  model: string | null;
690
691
  parameters: Record<string, unknown>;
691
692
  };
692
- usage: Record<string, unknown>[];
693
693
  reason: string | null;
694
- availability: "available" | "partial" | "unavailable";
694
+ availability: "partial" | "unavailable" | "available";
695
695
  identityManifest: Record<string, unknown>;
696
696
  contextManifest: Record<string, unknown>[];
697
697
  timing: Record<string, unknown>;
@@ -702,9 +702,9 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
702
702
  invocationId: string | null;
703
703
  capacity: {
704
704
  status: string | null;
705
- providerId: string | null;
706
- assignmentId: string | null;
707
705
  claimedAt: string | null;
706
+ assignmentId: string | null;
707
+ providerId: string | null;
708
708
  executionProviderId: string | null;
709
709
  completedAt: string | null;
710
710
  laneId: string | null;
@@ -731,9 +731,9 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
731
731
  leaseAcceptedAt: string | null;
732
732
  }, {
733
733
  status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
734
- projectId: string;
735
734
  updatedAt: string;
736
735
  agentSlug: string;
736
+ projectId: string;
737
737
  requirement: "required" | "optional";
738
738
  depth: number;
739
739
  diagnostics: {
@@ -742,15 +742,15 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
742
742
  executionProviderId: string | null;
743
743
  runtimeVersion: string | null;
744
744
  };
745
+ usage: Record<string, unknown>[];
745
746
  resources: Record<string, unknown>;
746
747
  selection: {
747
748
  capabilities: string[];
748
749
  model: string | null;
749
750
  parameters: Record<string, unknown>;
750
751
  };
751
- usage: Record<string, unknown>[];
752
752
  reason: string | null;
753
- availability: "available" | "partial" | "unavailable";
753
+ availability: "partial" | "unavailable" | "available";
754
754
  identityManifest: Record<string, unknown>;
755
755
  contextManifest: Record<string, unknown>[];
756
756
  timing: Record<string, unknown>;
@@ -761,9 +761,9 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
761
761
  invocationId: string | null;
762
762
  capacity: {
763
763
  status: string | null;
764
- providerId: string | null;
765
- assignmentId: string | null;
766
764
  claimedAt: string | null;
765
+ assignmentId: string | null;
766
+ providerId: string | null;
767
767
  executionProviderId: string | null;
768
768
  completedAt: string | null;
769
769
  laneId: string | null;
@@ -803,10 +803,10 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
803
803
  createdAt: z.ZodString;
804
804
  }, "strict", z.ZodTypeAny, {
805
805
  status: "failed" | "cancelled" | "responded" | "abstained";
806
- projectId: string;
807
806
  createdAt: string;
808
- assignmentId: string | null;
809
807
  agentSlug: string;
808
+ assignmentId: string | null;
809
+ projectId: string;
810
810
  requirement: "required" | "optional";
811
811
  invocationId: string;
812
812
  projectSlug: string;
@@ -814,10 +814,10 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
814
814
  markdown: string;
815
815
  }, {
816
816
  status: "failed" | "cancelled" | "responded" | "abstained";
817
- projectId: string;
818
817
  createdAt: string;
819
- assignmentId: string | null;
820
818
  agentSlug: string;
819
+ assignmentId: string | null;
820
+ projectId: string;
821
821
  requirement: "required" | "optional";
822
822
  invocationId: string;
823
823
  projectSlug: string;
@@ -858,9 +858,9 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
858
858
  handle: string | null;
859
859
  };
860
860
  id: string;
861
- teamId: string;
862
- assignmentId: string | null;
863
861
  summary: string;
862
+ assignmentId: string | null;
863
+ teamId: string;
864
864
  sequence: number;
865
865
  topicId: string;
866
866
  sendId: string | null;
@@ -876,9 +876,9 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
876
876
  handle: string | null;
877
877
  };
878
878
  id: string;
879
- teamId: string;
880
- assignmentId: string | null;
881
879
  summary: string;
880
+ assignmentId: string | null;
881
+ teamId: string;
882
882
  sequence: number;
883
883
  topicId: string;
884
884
  sendId: string | null;
@@ -893,11 +893,45 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
893
893
  }, "strict", z.ZodTypeAny, {
894
894
  status: "failed" | "running" | "partial" | "queued" | "complete";
895
895
  schemaVersion: "treeseed.communication-send-receipt/v4";
896
+ createdAt: string;
897
+ updatedAt: string;
898
+ teamId: string;
899
+ responses: {
900
+ status: "failed" | "cancelled" | "responded" | "abstained";
901
+ createdAt: string;
902
+ agentSlug: string;
903
+ assignmentId: string | null;
904
+ projectId: string;
905
+ requirement: "required" | "optional";
906
+ invocationId: string;
907
+ projectSlug: string;
908
+ messageRef: string;
909
+ markdown: string;
910
+ }[];
911
+ events: {
912
+ type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
913
+ actor: {
914
+ kind: "provider" | "agent" | "user" | "control-plane";
915
+ id: string;
916
+ handle: string | null;
917
+ };
918
+ id: string;
919
+ summary: string;
920
+ assignmentId: string | null;
921
+ teamId: string;
922
+ sequence: number;
923
+ topicId: string;
924
+ sendId: string | null;
925
+ invocationId: string | null;
926
+ payload: Record<string, unknown>;
927
+ channel: string;
928
+ occurredAt: string;
929
+ }[];
896
930
  targets: {
897
931
  status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
898
- projectId: string;
899
932
  updatedAt: string;
900
933
  agentSlug: string;
934
+ projectId: string;
901
935
  requirement: "required" | "optional";
902
936
  depth: number;
903
937
  diagnostics: {
@@ -906,15 +940,15 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
906
940
  executionProviderId: string | null;
907
941
  runtimeVersion: string | null;
908
942
  };
943
+ usage: Record<string, unknown>[];
909
944
  resources: Record<string, unknown>;
910
945
  selection: {
911
946
  capabilities: string[];
912
947
  model: string | null;
913
948
  parameters: Record<string, unknown>;
914
949
  };
915
- usage: Record<string, unknown>[];
916
950
  reason: string | null;
917
- availability: "available" | "partial" | "unavailable";
951
+ availability: "partial" | "unavailable" | "available";
918
952
  identityManifest: Record<string, unknown>;
919
953
  contextManifest: Record<string, unknown>[];
920
954
  timing: Record<string, unknown>;
@@ -925,9 +959,9 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
925
959
  invocationId: string | null;
926
960
  capacity: {
927
961
  status: string | null;
928
- providerId: string | null;
929
- assignmentId: string | null;
930
962
  claimedAt: string | null;
963
+ assignmentId: string | null;
964
+ providerId: string | null;
931
965
  executionProviderId: string | null;
932
966
  completedAt: string | null;
933
967
  laneId: string | null;
@@ -953,15 +987,32 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
953
987
  acknowledgedAt: string | null;
954
988
  leaseAcceptedAt: string | null;
955
989
  }[];
956
- teamId: string;
990
+ topic: {
991
+ id: string;
992
+ slug: string;
993
+ };
994
+ sendId: string;
995
+ channel: string;
996
+ projectStreams: {
997
+ id: string;
998
+ projectId: string;
999
+ discussionId: string;
1000
+ projectSlug: string;
1001
+ messageRef: string;
1002
+ }[];
1003
+ replayed: boolean;
1004
+ }, {
1005
+ status: "failed" | "running" | "partial" | "queued" | "complete";
1006
+ schemaVersion: "treeseed.communication-send-receipt/v4";
957
1007
  createdAt: string;
958
1008
  updatedAt: string;
1009
+ teamId: string;
959
1010
  responses: {
960
1011
  status: "failed" | "cancelled" | "responded" | "abstained";
961
- projectId: string;
962
1012
  createdAt: string;
963
- assignmentId: string | null;
964
1013
  agentSlug: string;
1014
+ assignmentId: string | null;
1015
+ projectId: string;
965
1016
  requirement: "required" | "optional";
966
1017
  invocationId: string;
967
1018
  projectSlug: string;
@@ -976,9 +1027,9 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
976
1027
  handle: string | null;
977
1028
  };
978
1029
  id: string;
979
- teamId: string;
980
- assignmentId: string | null;
981
1030
  summary: string;
1031
+ assignmentId: string | null;
1032
+ teamId: string;
982
1033
  sequence: number;
983
1034
  topicId: string;
984
1035
  sendId: string | null;
@@ -987,28 +1038,11 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
987
1038
  channel: string;
988
1039
  occurredAt: string;
989
1040
  }[];
990
- topic: {
991
- id: string;
992
- slug: string;
993
- };
994
- sendId: string;
995
- channel: string;
996
- projectStreams: {
997
- id: string;
998
- projectId: string;
999
- discussionId: string;
1000
- projectSlug: string;
1001
- messageRef: string;
1002
- }[];
1003
- replayed: boolean;
1004
- }, {
1005
- status: "failed" | "running" | "partial" | "queued" | "complete";
1006
- schemaVersion: "treeseed.communication-send-receipt/v4";
1007
1041
  targets: {
1008
1042
  status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
1009
- projectId: string;
1010
1043
  updatedAt: string;
1011
1044
  agentSlug: string;
1045
+ projectId: string;
1012
1046
  requirement: "required" | "optional";
1013
1047
  depth: number;
1014
1048
  diagnostics: {
@@ -1017,15 +1051,15 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
1017
1051
  executionProviderId: string | null;
1018
1052
  runtimeVersion: string | null;
1019
1053
  };
1054
+ usage: Record<string, unknown>[];
1020
1055
  resources: Record<string, unknown>;
1021
1056
  selection: {
1022
1057
  capabilities: string[];
1023
1058
  model: string | null;
1024
1059
  parameters: Record<string, unknown>;
1025
1060
  };
1026
- usage: Record<string, unknown>[];
1027
1061
  reason: string | null;
1028
- availability: "available" | "partial" | "unavailable";
1062
+ availability: "partial" | "unavailable" | "available";
1029
1063
  identityManifest: Record<string, unknown>;
1030
1064
  contextManifest: Record<string, unknown>[];
1031
1065
  timing: Record<string, unknown>;
@@ -1036,9 +1070,9 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
1036
1070
  invocationId: string | null;
1037
1071
  capacity: {
1038
1072
  status: string | null;
1039
- providerId: string | null;
1040
- assignmentId: string | null;
1041
1073
  claimedAt: string | null;
1074
+ assignmentId: string | null;
1075
+ providerId: string | null;
1042
1076
  executionProviderId: string | null;
1043
1077
  completedAt: string | null;
1044
1078
  laneId: string | null;
@@ -1064,40 +1098,6 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
1064
1098
  acknowledgedAt: string | null;
1065
1099
  leaseAcceptedAt: string | null;
1066
1100
  }[];
1067
- teamId: string;
1068
- createdAt: string;
1069
- updatedAt: string;
1070
- responses: {
1071
- status: "failed" | "cancelled" | "responded" | "abstained";
1072
- projectId: string;
1073
- createdAt: string;
1074
- assignmentId: string | null;
1075
- agentSlug: string;
1076
- requirement: "required" | "optional";
1077
- invocationId: string;
1078
- projectSlug: string;
1079
- messageRef: string;
1080
- markdown: string;
1081
- }[];
1082
- events: {
1083
- type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
1084
- actor: {
1085
- kind: "provider" | "agent" | "user" | "control-plane";
1086
- id: string;
1087
- handle: string | null;
1088
- };
1089
- id: string;
1090
- teamId: string;
1091
- assignmentId: string | null;
1092
- summary: string;
1093
- sequence: number;
1094
- topicId: string;
1095
- sendId: string | null;
1096
- invocationId: string | null;
1097
- payload: Record<string, unknown>;
1098
- channel: string;
1099
- occurredAt: string;
1100
- }[];
1101
1101
  topic: {
1102
1102
  id: string;
1103
1103
  slug: string;
@@ -1125,19 +1125,19 @@ export declare const communicationTopicListenerSchema: z.ZodObject<{
1125
1125
  source: z.ZodEnum<["mention", "operator", "seed"]>;
1126
1126
  }, "strict", z.ZodTypeAny, {
1127
1127
  status: "active" | "removed";
1128
- projectId: string;
1129
- source: "seed" | "operator" | "mention";
1130
1128
  updatedAt: string;
1131
1129
  agentSlug: string;
1130
+ source: "seed" | "operator" | "mention";
1131
+ projectId: string;
1132
1132
  projectSlug: string;
1133
1133
  agentHandle: string;
1134
1134
  subscribedAt: string;
1135
1135
  }, {
1136
1136
  status: "active" | "removed";
1137
- projectId: string;
1138
- source: "seed" | "operator" | "mention";
1139
1137
  updatedAt: string;
1140
1138
  agentSlug: string;
1139
+ source: "seed" | "operator" | "mention";
1140
+ projectId: string;
1141
1141
  projectSlug: string;
1142
1142
  agentHandle: string;
1143
1143
  subscribedAt: string;
@@ -1177,19 +1177,19 @@ export declare const communicationTopicSchema: z.ZodObject<{
1177
1177
  source: z.ZodEnum<["mention", "operator", "seed"]>;
1178
1178
  }, "strict", z.ZodTypeAny, {
1179
1179
  status: "active" | "removed";
1180
- projectId: string;
1181
- source: "seed" | "operator" | "mention";
1182
1180
  updatedAt: string;
1183
1181
  agentSlug: string;
1182
+ source: "seed" | "operator" | "mention";
1183
+ projectId: string;
1184
1184
  projectSlug: string;
1185
1185
  agentHandle: string;
1186
1186
  subscribedAt: string;
1187
1187
  }, {
1188
1188
  status: "active" | "removed";
1189
- projectId: string;
1190
- source: "seed" | "operator" | "mention";
1191
1189
  updatedAt: string;
1192
1190
  agentSlug: string;
1191
+ source: "seed" | "operator" | "mention";
1192
+ projectId: string;
1193
1193
  projectSlug: string;
1194
1194
  agentHandle: string;
1195
1195
  subscribedAt: string;
@@ -1197,10 +1197,10 @@ export declare const communicationTopicSchema: z.ZodObject<{
1197
1197
  }, "strict", z.ZodTypeAny, {
1198
1198
  status: "active" | "archived";
1199
1199
  id: string;
1200
- slug: string;
1201
- teamId: string;
1202
1200
  createdAt: string;
1203
1201
  updatedAt: string;
1202
+ slug: string;
1203
+ teamId: string;
1204
1204
  streams: {
1205
1205
  id: string;
1206
1206
  projectId: string;
@@ -1209,10 +1209,10 @@ export declare const communicationTopicSchema: z.ZodObject<{
1209
1209
  }[];
1210
1210
  listeners: {
1211
1211
  status: "active" | "removed";
1212
- projectId: string;
1213
- source: "seed" | "operator" | "mention";
1214
1212
  updatedAt: string;
1215
1213
  agentSlug: string;
1214
+ source: "seed" | "operator" | "mention";
1215
+ projectId: string;
1216
1216
  projectSlug: string;
1217
1217
  agentHandle: string;
1218
1218
  subscribedAt: string;
@@ -1220,10 +1220,10 @@ export declare const communicationTopicSchema: z.ZodObject<{
1220
1220
  }, {
1221
1221
  status: "active" | "archived";
1222
1222
  id: string;
1223
- slug: string;
1224
- teamId: string;
1225
1223
  createdAt: string;
1226
1224
  updatedAt: string;
1225
+ slug: string;
1226
+ teamId: string;
1227
1227
  streams: {
1228
1228
  id: string;
1229
1229
  projectId: string;
@@ -1232,10 +1232,10 @@ export declare const communicationTopicSchema: z.ZodObject<{
1232
1232
  }[];
1233
1233
  listeners: {
1234
1234
  status: "active" | "removed";
1235
- projectId: string;
1236
- source: "seed" | "operator" | "mention";
1237
1235
  updatedAt: string;
1238
1236
  agentSlug: string;
1237
+ source: "seed" | "operator" | "mention";
1238
+ projectId: string;
1239
1239
  projectSlug: string;
1240
1240
  agentHandle: string;
1241
1241
  subscribedAt: string;
@@ -1277,19 +1277,19 @@ export declare const communicationTopicPageSchema: z.ZodObject<{
1277
1277
  source: z.ZodEnum<["mention", "operator", "seed"]>;
1278
1278
  }, "strict", z.ZodTypeAny, {
1279
1279
  status: "active" | "removed";
1280
- projectId: string;
1281
- source: "seed" | "operator" | "mention";
1282
1280
  updatedAt: string;
1283
1281
  agentSlug: string;
1282
+ source: "seed" | "operator" | "mention";
1283
+ projectId: string;
1284
1284
  projectSlug: string;
1285
1285
  agentHandle: string;
1286
1286
  subscribedAt: string;
1287
1287
  }, {
1288
1288
  status: "active" | "removed";
1289
- projectId: string;
1290
- source: "seed" | "operator" | "mention";
1291
1289
  updatedAt: string;
1292
1290
  agentSlug: string;
1291
+ source: "seed" | "operator" | "mention";
1292
+ projectId: string;
1293
1293
  projectSlug: string;
1294
1294
  agentHandle: string;
1295
1295
  subscribedAt: string;
@@ -1297,10 +1297,10 @@ export declare const communicationTopicPageSchema: z.ZodObject<{
1297
1297
  }, "strict", z.ZodTypeAny, {
1298
1298
  status: "active" | "archived";
1299
1299
  id: string;
1300
- slug: string;
1301
- teamId: string;
1302
1300
  createdAt: string;
1303
1301
  updatedAt: string;
1302
+ slug: string;
1303
+ teamId: string;
1304
1304
  streams: {
1305
1305
  id: string;
1306
1306
  projectId: string;
@@ -1309,10 +1309,10 @@ export declare const communicationTopicPageSchema: z.ZodObject<{
1309
1309
  }[];
1310
1310
  listeners: {
1311
1311
  status: "active" | "removed";
1312
- projectId: string;
1313
- source: "seed" | "operator" | "mention";
1314
1312
  updatedAt: string;
1315
1313
  agentSlug: string;
1314
+ source: "seed" | "operator" | "mention";
1315
+ projectId: string;
1316
1316
  projectSlug: string;
1317
1317
  agentHandle: string;
1318
1318
  subscribedAt: string;
@@ -1320,10 +1320,10 @@ export declare const communicationTopicPageSchema: z.ZodObject<{
1320
1320
  }, {
1321
1321
  status: "active" | "archived";
1322
1322
  id: string;
1323
- slug: string;
1324
- teamId: string;
1325
1323
  createdAt: string;
1326
1324
  updatedAt: string;
1325
+ slug: string;
1326
+ teamId: string;
1327
1327
  streams: {
1328
1328
  id: string;
1329
1329
  projectId: string;
@@ -1332,10 +1332,10 @@ export declare const communicationTopicPageSchema: z.ZodObject<{
1332
1332
  }[];
1333
1333
  listeners: {
1334
1334
  status: "active" | "removed";
1335
- projectId: string;
1336
- source: "seed" | "operator" | "mention";
1337
1335
  updatedAt: string;
1338
1336
  agentSlug: string;
1337
+ source: "seed" | "operator" | "mention";
1338
+ projectId: string;
1339
1339
  projectSlug: string;
1340
1340
  agentHandle: string;
1341
1341
  subscribedAt: string;
@@ -1346,10 +1346,10 @@ export declare const communicationTopicPageSchema: z.ZodObject<{
1346
1346
  items: {
1347
1347
  status: "active" | "archived";
1348
1348
  id: string;
1349
- slug: string;
1350
- teamId: string;
1351
1349
  createdAt: string;
1352
1350
  updatedAt: string;
1351
+ slug: string;
1352
+ teamId: string;
1353
1353
  streams: {
1354
1354
  id: string;
1355
1355
  projectId: string;
@@ -1358,10 +1358,10 @@ export declare const communicationTopicPageSchema: z.ZodObject<{
1358
1358
  }[];
1359
1359
  listeners: {
1360
1360
  status: "active" | "removed";
1361
- projectId: string;
1362
- source: "seed" | "operator" | "mention";
1363
1361
  updatedAt: string;
1364
1362
  agentSlug: string;
1363
+ source: "seed" | "operator" | "mention";
1364
+ projectId: string;
1365
1365
  projectSlug: string;
1366
1366
  agentHandle: string;
1367
1367
  subscribedAt: string;
@@ -1372,10 +1372,10 @@ export declare const communicationTopicPageSchema: z.ZodObject<{
1372
1372
  items: {
1373
1373
  status: "active" | "archived";
1374
1374
  id: string;
1375
- slug: string;
1376
- teamId: string;
1377
1375
  createdAt: string;
1378
1376
  updatedAt: string;
1377
+ slug: string;
1378
+ teamId: string;
1379
1379
  streams: {
1380
1380
  id: string;
1381
1381
  projectId: string;
@@ -1384,10 +1384,10 @@ export declare const communicationTopicPageSchema: z.ZodObject<{
1384
1384
  }[];
1385
1385
  listeners: {
1386
1386
  status: "active" | "removed";
1387
- projectId: string;
1388
- source: "seed" | "operator" | "mention";
1389
1387
  updatedAt: string;
1390
1388
  agentSlug: string;
1389
+ source: "seed" | "operator" | "mention";
1390
+ projectId: string;
1391
1391
  projectSlug: string;
1392
1392
  agentHandle: string;
1393
1393
  subscribedAt: string;
@@ -1431,19 +1431,19 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
1431
1431
  source: z.ZodEnum<["mention", "operator", "seed"]>;
1432
1432
  }, "strict", z.ZodTypeAny, {
1433
1433
  status: "active" | "removed";
1434
- projectId: string;
1435
- source: "seed" | "operator" | "mention";
1436
1434
  updatedAt: string;
1437
1435
  agentSlug: string;
1436
+ source: "seed" | "operator" | "mention";
1437
+ projectId: string;
1438
1438
  projectSlug: string;
1439
1439
  agentHandle: string;
1440
1440
  subscribedAt: string;
1441
1441
  }, {
1442
1442
  status: "active" | "removed";
1443
- projectId: string;
1444
- source: "seed" | "operator" | "mention";
1445
1443
  updatedAt: string;
1446
1444
  agentSlug: string;
1445
+ source: "seed" | "operator" | "mention";
1446
+ projectId: string;
1447
1447
  projectSlug: string;
1448
1448
  agentHandle: string;
1449
1449
  subscribedAt: string;
@@ -1451,10 +1451,10 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
1451
1451
  }, "strict", z.ZodTypeAny, {
1452
1452
  status: "active" | "archived";
1453
1453
  id: string;
1454
- slug: string;
1455
- teamId: string;
1456
1454
  createdAt: string;
1457
1455
  updatedAt: string;
1456
+ slug: string;
1457
+ teamId: string;
1458
1458
  streams: {
1459
1459
  id: string;
1460
1460
  projectId: string;
@@ -1463,10 +1463,10 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
1463
1463
  }[];
1464
1464
  listeners: {
1465
1465
  status: "active" | "removed";
1466
- projectId: string;
1467
- source: "seed" | "operator" | "mention";
1468
1466
  updatedAt: string;
1469
1467
  agentSlug: string;
1468
+ source: "seed" | "operator" | "mention";
1469
+ projectId: string;
1470
1470
  projectSlug: string;
1471
1471
  agentHandle: string;
1472
1472
  subscribedAt: string;
@@ -1474,10 +1474,10 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
1474
1474
  }, {
1475
1475
  status: "active" | "archived";
1476
1476
  id: string;
1477
- slug: string;
1478
- teamId: string;
1479
1477
  createdAt: string;
1480
1478
  updatedAt: string;
1479
+ slug: string;
1480
+ teamId: string;
1481
1481
  streams: {
1482
1482
  id: string;
1483
1483
  projectId: string;
@@ -1486,10 +1486,10 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
1486
1486
  }[];
1487
1487
  listeners: {
1488
1488
  status: "active" | "removed";
1489
- projectId: string;
1490
- source: "seed" | "operator" | "mention";
1491
1489
  updatedAt: string;
1492
1490
  agentSlug: string;
1491
+ source: "seed" | "operator" | "mention";
1492
+ projectId: string;
1493
1493
  projectSlug: string;
1494
1494
  agentHandle: string;
1495
1495
  subscribedAt: string;
@@ -1529,9 +1529,9 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
1529
1529
  handle: string | null;
1530
1530
  };
1531
1531
  id: string;
1532
- teamId: string;
1533
- assignmentId: string | null;
1534
1532
  summary: string;
1533
+ assignmentId: string | null;
1534
+ teamId: string;
1535
1535
  sequence: number;
1536
1536
  topicId: string;
1537
1537
  sendId: string | null;
@@ -1547,9 +1547,9 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
1547
1547
  handle: string | null;
1548
1548
  };
1549
1549
  id: string;
1550
- teamId: string;
1551
- assignmentId: string | null;
1552
1550
  summary: string;
1551
+ assignmentId: string | null;
1552
+ teamId: string;
1553
1553
  sequence: number;
1554
1554
  topicId: string;
1555
1555
  sendId: string | null;
@@ -1568,9 +1568,9 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
1568
1568
  handle: string | null;
1569
1569
  };
1570
1570
  id: string;
1571
- teamId: string;
1572
- assignmentId: string | null;
1573
1571
  summary: string;
1572
+ assignmentId: string | null;
1573
+ teamId: string;
1574
1574
  sequence: number;
1575
1575
  topicId: string;
1576
1576
  sendId: string | null;
@@ -1582,10 +1582,10 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
1582
1582
  topic: {
1583
1583
  status: "active" | "archived";
1584
1584
  id: string;
1585
- slug: string;
1586
- teamId: string;
1587
1585
  createdAt: string;
1588
1586
  updatedAt: string;
1587
+ slug: string;
1588
+ teamId: string;
1589
1589
  streams: {
1590
1590
  id: string;
1591
1591
  projectId: string;
@@ -1594,10 +1594,10 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
1594
1594
  }[];
1595
1595
  listeners: {
1596
1596
  status: "active" | "removed";
1597
- projectId: string;
1598
- source: "seed" | "operator" | "mention";
1599
1597
  updatedAt: string;
1600
1598
  agentSlug: string;
1599
+ source: "seed" | "operator" | "mention";
1600
+ projectId: string;
1601
1601
  projectSlug: string;
1602
1602
  agentHandle: string;
1603
1603
  subscribedAt: string;
@@ -1613,9 +1613,9 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
1613
1613
  handle: string | null;
1614
1614
  };
1615
1615
  id: string;
1616
- teamId: string;
1617
- assignmentId: string | null;
1618
1616
  summary: string;
1617
+ assignmentId: string | null;
1618
+ teamId: string;
1619
1619
  sequence: number;
1620
1620
  topicId: string;
1621
1621
  sendId: string | null;
@@ -1627,10 +1627,10 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
1627
1627
  topic: {
1628
1628
  status: "active" | "archived";
1629
1629
  id: string;
1630
- slug: string;
1631
- teamId: string;
1632
1630
  createdAt: string;
1633
1631
  updatedAt: string;
1632
+ slug: string;
1633
+ teamId: string;
1634
1634
  streams: {
1635
1635
  id: string;
1636
1636
  projectId: string;
@@ -1639,10 +1639,10 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
1639
1639
  }[];
1640
1640
  listeners: {
1641
1641
  status: "active" | "removed";
1642
- projectId: string;
1643
- source: "seed" | "operator" | "mention";
1644
1642
  updatedAt: string;
1645
1643
  agentSlug: string;
1644
+ source: "seed" | "operator" | "mention";
1645
+ projectId: string;
1646
1646
  projectSlug: string;
1647
1647
  agentHandle: string;
1648
1648
  subscribedAt: string;
@@ -1671,19 +1671,19 @@ export declare const communicationTopicSubscriptionReceiptSchema: z.ZodObject<{
1671
1671
  source: z.ZodEnum<["mention", "operator", "seed"]>;
1672
1672
  }, "strict", z.ZodTypeAny, {
1673
1673
  status: "active" | "removed";
1674
- projectId: string;
1675
- source: "seed" | "operator" | "mention";
1676
1674
  updatedAt: string;
1677
1675
  agentSlug: string;
1676
+ source: "seed" | "operator" | "mention";
1677
+ projectId: string;
1678
1678
  projectSlug: string;
1679
1679
  agentHandle: string;
1680
1680
  subscribedAt: string;
1681
1681
  }, {
1682
1682
  status: "active" | "removed";
1683
- projectId: string;
1684
- source: "seed" | "operator" | "mention";
1685
1683
  updatedAt: string;
1686
1684
  agentSlug: string;
1685
+ source: "seed" | "operator" | "mention";
1686
+ projectId: string;
1687
1687
  projectSlug: string;
1688
1688
  agentHandle: string;
1689
1689
  subscribedAt: string;
@@ -1694,10 +1694,10 @@ export declare const communicationTopicSubscriptionReceiptSchema: z.ZodObject<{
1694
1694
  replayed: boolean;
1695
1695
  listener: {
1696
1696
  status: "active" | "removed";
1697
- projectId: string;
1698
- source: "seed" | "operator" | "mention";
1699
1697
  updatedAt: string;
1700
1698
  agentSlug: string;
1699
+ source: "seed" | "operator" | "mention";
1700
+ projectId: string;
1701
1701
  projectSlug: string;
1702
1702
  agentHandle: string;
1703
1703
  subscribedAt: string;
@@ -1707,10 +1707,10 @@ export declare const communicationTopicSubscriptionReceiptSchema: z.ZodObject<{
1707
1707
  replayed: boolean;
1708
1708
  listener: {
1709
1709
  status: "active" | "removed";
1710
- projectId: string;
1711
- source: "seed" | "operator" | "mention";
1712
1710
  updatedAt: string;
1713
1711
  agentSlug: string;
1712
+ source: "seed" | "operator" | "mention";
1713
+ projectId: string;
1714
1714
  projectSlug: string;
1715
1715
  agentHandle: string;
1716
1716
  subscribedAt: string;
@@ -1793,27 +1793,169 @@ export declare const providerDiscussionResponseRequestSchema: z.ZodEffects<z.Zod
1793
1793
  outcome?: "responded" | "abstained" | undefined;
1794
1794
  markdown?: string | undefined;
1795
1795
  }>;
1796
- export declare const providerDiscussionResponseReceiptSchema: z.ZodObject<{
1796
+ export declare const providerDiscussionResponseReceiptSchema: z.ZodEffects<z.ZodObject<{
1797
1797
  schemaVersion: z.ZodLiteral<"treeseed.provider-discussion-response-receipt/v1">;
1798
1798
  assignmentId: z.ZodString;
1799
1799
  invocationId: z.ZodString;
1800
1800
  messageRef: z.ZodString;
1801
+ reference: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1802
+ kind: z.ZodLiteral<"git">;
1803
+ repository: z.ZodString;
1804
+ commit: z.ZodString;
1805
+ branch: z.ZodOptional<z.ZodString>;
1806
+ path: z.ZodOptional<z.ZodString>;
1807
+ }, "strict", z.ZodTypeAny, {
1808
+ kind: "git";
1809
+ commit: string;
1810
+ repository: string;
1811
+ path?: string | undefined;
1812
+ branch?: string | undefined;
1813
+ }, {
1814
+ kind: "git";
1815
+ commit: string;
1816
+ repository: string;
1817
+ path?: string | undefined;
1818
+ branch?: string | undefined;
1819
+ }>, z.ZodObject<{
1820
+ kind: z.ZodLiteral<"treedx">;
1821
+ projectId: z.ZodString;
1822
+ repository: z.ZodString;
1823
+ commit: z.ZodString;
1824
+ path: z.ZodString;
1825
+ workspaceId: z.ZodOptional<z.ZodString>;
1826
+ }, "strict", z.ZodTypeAny, {
1827
+ path: string;
1828
+ kind: "treedx";
1829
+ commit: string;
1830
+ repository: string;
1831
+ projectId: string;
1832
+ workspaceId?: string | undefined;
1833
+ }, {
1834
+ path: string;
1835
+ kind: "treedx";
1836
+ commit: string;
1837
+ repository: string;
1838
+ projectId: string;
1839
+ workspaceId?: string | undefined;
1840
+ }>, z.ZodObject<{
1841
+ kind: z.ZodLiteral<"url">;
1842
+ url: z.ZodString;
1843
+ digest: z.ZodOptional<z.ZodString>;
1844
+ }, "strict", z.ZodTypeAny, {
1845
+ kind: "url";
1846
+ url: string;
1847
+ digest?: string | undefined;
1848
+ }, {
1849
+ kind: "url";
1850
+ url: string;
1851
+ digest?: string | undefined;
1852
+ }>]>, {
1853
+ path: string;
1854
+ kind: "treedx";
1855
+ commit: string;
1856
+ repository: string;
1857
+ projectId: string;
1858
+ workspaceId?: string | undefined;
1859
+ }, {
1860
+ kind: "git";
1861
+ commit: string;
1862
+ repository: string;
1863
+ path?: string | undefined;
1864
+ branch?: string | undefined;
1865
+ } | {
1866
+ path: string;
1867
+ kind: "treedx";
1868
+ commit: string;
1869
+ repository: string;
1870
+ projectId: string;
1871
+ workspaceId?: string | undefined;
1872
+ } | {
1873
+ kind: "url";
1874
+ url: string;
1875
+ digest?: string | undefined;
1876
+ }>;
1801
1877
  status: z.ZodEnum<["responded", "abstained"]>;
1802
1878
  settledAt: z.ZodString;
1803
1879
  }, "strict", z.ZodTypeAny, {
1804
1880
  status: "responded" | "abstained";
1805
1881
  schemaVersion: "treeseed.provider-discussion-response-receipt/v1";
1806
1882
  assignmentId: string;
1883
+ settledAt: string;
1807
1884
  invocationId: string;
1885
+ reference: {
1886
+ path: string;
1887
+ kind: "treedx";
1888
+ commit: string;
1889
+ repository: string;
1890
+ projectId: string;
1891
+ workspaceId?: string | undefined;
1892
+ };
1808
1893
  messageRef: string;
1809
- settledAt: string;
1810
1894
  }, {
1811
1895
  status: "responded" | "abstained";
1812
1896
  schemaVersion: "treeseed.provider-discussion-response-receipt/v1";
1813
1897
  assignmentId: string;
1898
+ settledAt: string;
1814
1899
  invocationId: string;
1900
+ reference: {
1901
+ kind: "git";
1902
+ commit: string;
1903
+ repository: string;
1904
+ path?: string | undefined;
1905
+ branch?: string | undefined;
1906
+ } | {
1907
+ path: string;
1908
+ kind: "treedx";
1909
+ commit: string;
1910
+ repository: string;
1911
+ projectId: string;
1912
+ workspaceId?: string | undefined;
1913
+ } | {
1914
+ kind: "url";
1915
+ url: string;
1916
+ digest?: string | undefined;
1917
+ };
1815
1918
  messageRef: string;
1919
+ }>, {
1920
+ status: "responded" | "abstained";
1921
+ schemaVersion: "treeseed.provider-discussion-response-receipt/v1";
1922
+ assignmentId: string;
1816
1923
  settledAt: string;
1924
+ invocationId: string;
1925
+ reference: {
1926
+ path: string;
1927
+ kind: "treedx";
1928
+ commit: string;
1929
+ repository: string;
1930
+ projectId: string;
1931
+ workspaceId?: string | undefined;
1932
+ };
1933
+ messageRef: string;
1934
+ }, {
1935
+ status: "responded" | "abstained";
1936
+ schemaVersion: "treeseed.provider-discussion-response-receipt/v1";
1937
+ assignmentId: string;
1938
+ settledAt: string;
1939
+ invocationId: string;
1940
+ reference: {
1941
+ kind: "git";
1942
+ commit: string;
1943
+ repository: string;
1944
+ path?: string | undefined;
1945
+ branch?: string | undefined;
1946
+ } | {
1947
+ path: string;
1948
+ kind: "treedx";
1949
+ commit: string;
1950
+ repository: string;
1951
+ projectId: string;
1952
+ workspaceId?: string | undefined;
1953
+ } | {
1954
+ kind: "url";
1955
+ url: string;
1956
+ digest?: string | undefined;
1957
+ };
1958
+ messageRef: string;
1817
1959
  }>;
1818
1960
  export type CommunicationSendRequest = z.infer<typeof communicationSendRequestSchema>;
1819
1961
  export type CommunicationSendReceipt = z.infer<typeof communicationSendReceiptSchema>;