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

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 (96) hide show
  1. package/dist/.treeseed-build-complete.json +1 -1
  2. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.d.ts +1594 -922
  3. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +22 -1
  4. package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +40 -40
  5. package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +1 -59
  6. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.d.ts +1 -1
  7. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.js +1 -1
  8. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.d.ts +18 -20
  9. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.js +1 -1
  10. package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +0 -67
  11. package/dist/agent-capacity/contracts/configuration/configuration.d.ts +1 -1
  12. package/dist/agent-capacity/contracts/configuration/configuration.js +0 -2
  13. package/dist/agent-capacity/contracts/operations/agent-team-clone.d.ts +8 -8
  14. package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +0 -23
  15. package/dist/agent-capacity/contracts/runtime/runtime-observability.d.ts +2 -154
  16. package/dist/agent-capacity/contracts/support/agent-atlas.d.ts +0 -13
  17. package/dist/agent-capacity/contracts/support/execution-graph.d.ts +176 -176
  18. package/dist/agent-capacity/contracts/support/execution-graph.js +1 -1
  19. package/dist/agent-capacity/contracts/support/financial-records.d.ts +1 -6
  20. package/dist/agent-capacity/contracts/support/planning-records.d.ts +1 -87
  21. package/dist/agent-capacity/grant.d.ts +34 -0
  22. package/dist/agent-capacity/grant.js +4 -0
  23. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +1042 -1042
  24. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +11 -11
  25. package/dist/agent-capacity/validation/agent-lab-forensics-schema.js +0 -1
  26. package/dist/agent-capacity/validation/assignment-records.d.ts +1 -6
  27. package/dist/agent-capacity/validation/assignment-records.js +4 -35
  28. package/dist/agent-capacity/validation/configuration.d.ts +1 -1
  29. package/dist/agent-capacity/validation/configuration.js +2 -6
  30. package/dist/agent-capacity/validation/grant.d.ts +11 -0
  31. package/dist/agent-capacity/validation/grant.js +31 -0
  32. package/dist/capacity/agents/agent-capacity.d.ts +2 -4
  33. package/dist/capacity/agents/agent-capacity.js +1 -3
  34. package/dist/capacity-provider/capability-ontology.d.ts +138 -138
  35. package/dist/capacity-provider/client.d.ts +1 -2
  36. package/dist/capacity-provider/client.js +0 -6
  37. package/dist/capacity-provider/contracts/environment-profiles.d.ts +8 -8
  38. package/dist/capacity-provider/core-capability-catalog.d.ts +4 -4
  39. package/dist/capacity-provider/environment-catalog.d.ts +166 -166
  40. package/dist/capacity-provider/install-configuration.d.ts +2 -2
  41. package/dist/capacity-provider/sandbox-contracts.d.ts +52 -52
  42. package/dist/capacity-provider/source-workspace.d.ts +102 -4
  43. package/dist/capacity-provider/source-workspace.js +5 -1
  44. package/dist/content/validation/agent-operational-content-schemas.d.ts +108 -108
  45. package/dist/content/validation/auxiliary-content-schemas.d.ts +108 -108
  46. package/dist/content/validation/content-model-schemas.d.ts +9473 -6284
  47. package/dist/content/validation/content-model-schemas.js +116 -48
  48. package/dist/content/validation/portable-content-data.d.ts +351 -181
  49. package/dist/content/validation/portable-content-data.js +6 -1
  50. package/dist/deployment/ai/storage.d.ts +14 -14
  51. package/dist/deployment/ai-hosting.d.ts +10 -10
  52. package/dist/deployment/ai-instance.d.ts +14 -14
  53. package/dist/deployment/ai-mode.d.ts +82 -82
  54. package/dist/deployment/hosted-topology-template.d.ts +24 -24
  55. package/dist/deployment/hosted-topology.d.ts +219 -219
  56. package/dist/deployment/postgres/contracts.d.ts +52 -52
  57. package/dist/deployment/postgres/transfer.d.ts +4 -4
  58. package/dist/deployment/schemas.d.ts +780 -780
  59. package/dist/development/schemas.d.ts +439 -439
  60. package/dist/knowledge/contracts.d.ts +9 -2
  61. package/dist/knowledge/contracts.js +2 -2
  62. package/dist/model-registry/discussion-models.js +0 -1
  63. package/dist/operator-contracts/canonical-command-tree.js +3 -1
  64. package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +2 -2
  65. package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +17 -17
  66. package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +4 -4
  67. package/dist/operator-contracts/catalog/communication-operations.d.ts +100 -100
  68. package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +40 -40
  69. package/dist/operator-contracts/catalog/inbox-operations.d.ts +54 -54
  70. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +5 -5
  71. package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +10 -10
  72. package/dist/operator-contracts/catalog/services/secret-operations.d.ts +8 -8
  73. package/dist/operator-contracts/communication/contracts.d.ts +273 -273
  74. package/dist/operator-contracts/control-plane-operations.d.ts +236 -242
  75. package/dist/operator-contracts/control-plane-operations.js +0 -2
  76. package/dist/operator-contracts/inbox/contracts.d.ts +204 -204
  77. package/dist/operator-contracts/knowledge/contracts.d.ts +16 -16
  78. package/dist/platform/agent-schema-verification.d.ts +3 -0
  79. package/dist/platform/agent-schema-verification.js +94 -0
  80. package/dist/platform/verification.js +6 -0
  81. package/dist/sdk-types/support/planning-policy.d.ts +1 -1
  82. package/dist/secrets-capability/shared-access.d.ts +2 -2
  83. package/dist/secrets-capability/shared-resources.d.ts +46 -46
  84. package/dist/secrets-capability/vault-contracts.d.ts +2 -2
  85. package/dist/security/encrypted-envelope.d.ts +8 -8
  86. package/package.json +3 -2
  87. package/dist/agent-capacity/allocation.d.ts +0 -183
  88. package/dist/agent-capacity/allocation.js +0 -5
  89. package/dist/agent-capacity/artifact-mutation-receipt.d.ts +0 -49
  90. package/dist/agent-capacity/artifact-mutation-receipt.js +0 -36
  91. package/dist/agent-capacity/artifacts.d.ts +0 -123
  92. package/dist/agent-capacity/artifacts.js +0 -39
  93. package/dist/agent-capacity/contracts/support/decision-work.d.ts +0 -227
  94. package/dist/agent-capacity/contracts/support/decision-work.js +0 -0
  95. package/dist/agent-capacity/validation/allocation.d.ts +0 -12
  96. package/dist/agent-capacity/validation/allocation.js +0 -115
@@ -1,5 +1,5 @@
1
- export declare const BOOK_SCHEMA_VERSION: "treeseed.book/v2";
2
- export declare const KNOWLEDGE_PAGE_SCHEMA_VERSION: "treeseed.knowledge-page/v1";
1
+ export declare const BOOK_SCHEMA_VERSION: "treeseed.book/v3";
2
+ export declare const KNOWLEDGE_PAGE_SCHEMA_VERSION: "treeseed.knowledge-page/v2";
3
3
  export declare const BOOK_COLLECTION_SCHEMA_VERSION: "treeseed.book-collection/v1";
4
4
  export declare const KNOWLEDGE_PACK_SCHEMA_VERSION: "treeseed.knowledge-pack/v2";
5
5
  export declare const EDITORIAL_CONTEXT_SCHEMA_VERSION: "treeseed.editorial-context/v1";
@@ -13,6 +13,10 @@ export type SanitizedKnowledgeHtml = string & {
13
13
  export interface BookDefinition {
14
14
  schemaVersion: typeof BOOK_SCHEMA_VERSION;
15
15
  id: string;
16
+ projectId: string;
17
+ revision: number;
18
+ sourceDigest?: string;
19
+ sourcePath?: string;
16
20
  slug: string;
17
21
  title: string;
18
22
  summary: string;
@@ -46,6 +50,8 @@ export interface KnowledgeContextBindings {
46
50
  export interface KnowledgePageDefinition {
47
51
  schemaVersion: typeof KNOWLEDGE_PAGE_SCHEMA_VERSION;
48
52
  id: string;
53
+ projectId: string;
54
+ bookRef: import('../agent-capacity/contracts/capacity/assignments/agent-execution.js').ExactEntityReference;
49
55
  bookId: string;
50
56
  slug: string;
51
57
  title: string;
@@ -63,6 +69,7 @@ export interface KnowledgePageDefinition {
63
69
  relatedObjectiveIds: string[];
64
70
  relatedProposalIds: string[];
65
71
  relatedDecisionIds: string[];
72
+ relatedRefs?: import('../agent-capacity/contracts/capacity/assignments/agent-execution.js').ExactEntityReference[];
66
73
  guaranteeIds: string[];
67
74
  audiences: KnowledgeAudienceDeclaration;
68
75
  context: KnowledgeContextBindings;
@@ -1,5 +1,5 @@
1
- const BOOK_SCHEMA_VERSION = "treeseed.book/v2";
2
- const KNOWLEDGE_PAGE_SCHEMA_VERSION = "treeseed.knowledge-page/v1";
1
+ const BOOK_SCHEMA_VERSION = "treeseed.book/v3";
2
+ const KNOWLEDGE_PAGE_SCHEMA_VERSION = "treeseed.knowledge-page/v2";
3
3
  const BOOK_COLLECTION_SCHEMA_VERSION = "treeseed.book-collection/v1";
4
4
  const KNOWLEDGE_PACK_SCHEMA_VERSION = "treeseed.knowledge-pack/v2";
5
5
  const EDITORIAL_CONTEXT_SCHEMA_VERSION = "treeseed.editorial-context/v1";
@@ -61,7 +61,6 @@ function buildDiscussionModelRegistry(repoRoot) {
61
61
  sequence: field("sequence", { filterable: true, sortable: true, comparableAs: "number", contentKeys: ["sequence"], writeContentKey: "sequence" }),
62
62
  agent_id: field("agent_id", { aliases: ["agentId"], filterable: true, contentKeys: ["agent_id", "agentId"], writeContentKey: "agent_id" }),
63
63
  assignment_id: field("assignment_id", { aliases: ["assignmentId"], filterable: true, contentKeys: ["assignment_id", "assignmentId"], writeContentKey: "assignment_id" }),
64
- mode_run_id: field("mode_run_id", { aliases: ["modeRunId"], filterable: true, contentKeys: ["mode_run_id", "modeRunId"], writeContentKey: "mode_run_id" }),
65
64
  provider_id: field("provider_id", { aliases: ["providerId"], filterable: true, contentKeys: ["provider_id", "providerId"], writeContentKey: "provider_id" }),
66
65
  group_ids: field("group_ids", { aliases: ["groupIds"], filterable: true, comparableAs: "string_array", contentKeys: ["group_ids", "groupIds"], writeContentKey: "groupIds" }),
67
66
  occurred_at: field("occurred_at", { aliases: ["occurredAt"], filterable: true, sortable: true, comparableAs: "date", contentKeys: ["occurred_at", "occurredAt"], writeContentKey: "occurred_at" }),
@@ -356,7 +356,9 @@ const commandTree = {
356
356
  leaf("audit")
357
357
  ]),
358
358
  branch("workdays", [
359
- branch("profiles", [leaf("list"), leaf("show", "read", "profile"), leaf("update", "mutation", "profile", "authority")]),
359
+ branch("profiles", [leaf("list"), leaf("show", "read", "profile"), addOptions(leaf("update", "mutation", "profile", "authority"), [
360
+ { name: "--input", description: "YAML or JSON workday policy document.", type: "string", required: true }
361
+ ])]),
360
362
  { ...leaf("plan", "mutation"), nodeType: "leaf", segment: "plan", kind: "mutation", description: "Plan a workday with optional targeted cooperative planning; acting stays decision-governed.", resultSchemaId: "treeseed.command.workdays.plan/v1", options: WORKDAY_PLAN_OPTIONS },
361
363
  leaf("start", "mutation", void 0, "authority"),
362
364
  leaf("list"),
@@ -16,8 +16,8 @@ export declare const AGENT_TEAM_CLONE_OPERATIONS: {
16
16
  projectId: string;
17
17
  definitions: {
18
18
  path: string;
19
- desiredDigest: string;
20
19
  agentClass: string;
20
+ desiredDigest: string;
21
21
  sourceDigest: string;
22
22
  }[];
23
23
  }[];
@@ -44,8 +44,8 @@ export declare const AGENT_TEAM_CLONE_OPERATIONS: {
44
44
  projectId: string;
45
45
  definitions: {
46
46
  path: string;
47
- desiredDigest: string;
48
47
  agentClass: string;
48
+ desiredDigest: string;
49
49
  sourceDigest: string;
50
50
  }[];
51
51
  }[];
@@ -20,13 +20,16 @@ export declare function capabilityOntologyOperations(): {
20
20
  mediaTypes?: string[] | undefined;
21
21
  }[];
22
22
  createdAt: string;
23
+ title: string;
24
+ description: string;
25
+ family: "research" | "coordination" | "data" | "engineering" | "publishing" | "external-work";
26
+ features: string[];
23
27
  outputs: {
24
28
  id: string;
25
29
  version: string;
26
30
  digest: string;
27
31
  mediaTypes?: string[] | undefined;
28
32
  }[];
29
- description: string;
30
33
  configuration: {
31
34
  key: string;
32
35
  description: string;
@@ -34,9 +37,6 @@ export declare function capabilityOntologyOperations(): {
34
37
  requirementSupport: ("required" | "preferred")[];
35
38
  securityCritical?: boolean | undefined;
36
39
  }[];
37
- family: "research" | "coordination" | "data" | "engineering" | "publishing" | "external-work";
38
- title: string;
39
- features: string[];
40
40
  permissionClasses: string[];
41
41
  contextModes: string[];
42
42
  interactionModes: string[];
@@ -72,13 +72,16 @@ export declare function capabilityOntologyOperations(): {
72
72
  mediaTypes?: string[] | undefined;
73
73
  }[];
74
74
  createdAt: string;
75
+ title: string;
76
+ description: string;
77
+ family: "research" | "coordination" | "data" | "engineering" | "publishing" | "external-work";
78
+ features: string[];
75
79
  outputs: {
76
80
  id: string;
77
81
  version: string;
78
82
  digest: string;
79
83
  mediaTypes?: string[] | undefined;
80
84
  }[];
81
- description: string;
82
85
  configuration: {
83
86
  key: string;
84
87
  description: string;
@@ -86,9 +89,6 @@ export declare function capabilityOntologyOperations(): {
86
89
  requirementSupport: ("required" | "preferred")[];
87
90
  securityCritical?: boolean | undefined;
88
91
  }[];
89
- family: "research" | "coordination" | "data" | "engineering" | "publishing" | "external-work";
90
- title: string;
91
- features: string[];
92
92
  permissionClasses: string[];
93
93
  contextModes: string[];
94
94
  interactionModes: string[];
@@ -109,11 +109,6 @@ export declare function capabilityOntologyOperations(): {
109
109
  digest: string;
110
110
  createdAt: string;
111
111
  generation: number;
112
- signature: {
113
- value: string;
114
- algorithm: "Ed25519" | "release-catalog";
115
- keyId: string;
116
- };
117
112
  definitions: {
118
113
  status: "active" | "revoked" | "deprecated";
119
114
  id: string;
@@ -127,13 +122,16 @@ export declare function capabilityOntologyOperations(): {
127
122
  mediaTypes?: string[] | undefined;
128
123
  }[];
129
124
  createdAt: string;
125
+ title: string;
126
+ description: string;
127
+ family: "research" | "coordination" | "data" | "engineering" | "publishing" | "external-work";
128
+ features: string[];
130
129
  outputs: {
131
130
  id: string;
132
131
  version: string;
133
132
  digest: string;
134
133
  mediaTypes?: string[] | undefined;
135
134
  }[];
136
- description: string;
137
135
  configuration: {
138
136
  key: string;
139
137
  description: string;
@@ -141,9 +139,6 @@ export declare function capabilityOntologyOperations(): {
141
139
  requirementSupport: ("required" | "preferred")[];
142
140
  securityCritical?: boolean | undefined;
143
141
  }[];
144
- family: "research" | "coordination" | "data" | "engineering" | "publishing" | "external-work";
145
- title: string;
146
- features: string[];
147
142
  permissionClasses: string[];
148
143
  contextModes: string[];
149
144
  interactionModes: string[];
@@ -159,5 +154,10 @@ export declare function capabilityOntologyOperations(): {
159
154
  }[];
160
155
  qualificationTier: "signed-attestation" | "automated-suite" | "reviewed-certification";
161
156
  }[];
157
+ signature: {
158
+ value: string;
159
+ keyId: string;
160
+ algorithm: "Ed25519" | "release-catalog";
161
+ };
162
162
  }>;
163
163
  };
@@ -6,7 +6,7 @@ export declare const local: (handlerId: `local.${string}`) => Execution;
6
6
  export declare const field: (target: "path" | "query" | "body", name: string, source: "argument" | "context" | "option", sourceName?: string, required?: boolean, transform?: "identity" | "integer" | "csv") => {
7
7
  target: "path" | "query" | "body";
8
8
  field: string;
9
- source: "argument" | "context" | "option";
9
+ source: "context" | "argument" | "option";
10
10
  name: string;
11
11
  required: boolean;
12
12
  transform: "integer" | "identity" | "csv";
@@ -15,7 +15,7 @@ export declare const operation: (operationId: `${string}.${string}`, input?: Ret
15
15
  export declare const page: () => {
16
16
  target: "path" | "query" | "body";
17
17
  field: string;
18
- source: "argument" | "context" | "option";
18
+ source: "context" | "argument" | "option";
19
19
  name: string;
20
20
  required: boolean;
21
21
  transform: "integer" | "identity" | "csv";
@@ -23,7 +23,7 @@ export declare const page: () => {
23
23
  export declare const aiNode: () => {
24
24
  target: "path" | "query" | "body";
25
25
  field: string;
26
- source: "argument" | "context" | "option";
26
+ source: "context" | "argument" | "option";
27
27
  name: string;
28
28
  required: boolean;
29
29
  transform: "integer" | "identity" | "csv";
@@ -31,7 +31,7 @@ export declare const aiNode: () => {
31
31
  export declare const aiInstance: () => {
32
32
  target: "path" | "query" | "body";
33
33
  field: string;
34
- source: "argument" | "context" | "option";
34
+ source: "context" | "argument" | "option";
35
35
  name: string;
36
36
  required: boolean;
37
37
  transform: "integer" | "identity" | "csv";
@@ -4,33 +4,20 @@ export declare function communicationOperations(): {
4
4
  channel: string;
5
5
  }, {}, {
6
6
  message: string;
7
+ parentWorkdayId?: string | undefined;
7
8
  timeoutSeconds?: number | undefined;
8
9
  recipients?: string[] | undefined;
9
10
  proposalId?: string | undefined;
10
- parentWorkdayId?: string | undefined;
11
11
  }, {
12
- status: "failed" | "running" | "partial" | "complete" | "queued";
12
+ status: "failed" | "running" | "partial" | "queued" | "complete";
13
13
  schemaVersion: "treeseed.communication-send-receipt/v4";
14
14
  targets: {
15
15
  status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
16
16
  projectId: string;
17
- invocationId: string | null;
18
- completedAt: string | null;
19
- requirement: "required" | "optional";
17
+ updatedAt: string;
20
18
  agentSlug: string;
21
- capacity: {
22
- status: string | null;
23
- providerId: string | null;
24
- assignmentId: string | null;
25
- completedAt: string | null;
26
- executionProviderId: string | null;
27
- laneId: string | null;
28
- lanePurpose: string | null;
29
- assignedAt: string | null;
30
- claimedAt: string | null;
31
- returnedAt: string | null;
32
- failedAt: string | null;
33
- };
19
+ requirement: "required" | "optional";
20
+ depth: number;
34
21
  diagnostics: {
35
22
  provider: {
36
23
  providerId: string | null;
@@ -43,15 +30,30 @@ export declare function communicationOperations(): {
43
30
  model: string | null;
44
31
  parameters: Record<string, unknown>;
45
32
  };
46
- reason: string | null;
47
33
  usage: Record<string, unknown>[];
48
- availability: "available" | "unavailable" | "partial";
34
+ reason: string | null;
35
+ availability: "available" | "partial" | "unavailable";
49
36
  identityManifest: Record<string, unknown>;
50
37
  contextManifest: Record<string, unknown>[];
51
38
  timing: Record<string, unknown>;
52
39
  traceEvents: Record<string, unknown>[];
53
40
  fullPayload?: Record<string, unknown> | undefined;
54
41
  };
42
+ completedAt: string | null;
43
+ invocationId: string | null;
44
+ capacity: {
45
+ status: string | null;
46
+ providerId: string | null;
47
+ assignmentId: string | null;
48
+ claimedAt: string | null;
49
+ executionProviderId: string | null;
50
+ completedAt: string | null;
51
+ laneId: string | null;
52
+ lanePurpose: string | null;
53
+ assignedAt: string | null;
54
+ returnedAt: string | null;
55
+ failedAt: string | null;
56
+ };
55
57
  projectSlug: string;
56
58
  definitionRevision: string;
57
59
  revisions: {
@@ -61,9 +63,7 @@ export declare function communicationOperations(): {
61
63
  chatProfile: string;
62
64
  };
63
65
  parentInvocationId: string | null;
64
- depth: number;
65
66
  requestedAt: string;
66
- updatedAt: string;
67
67
  failure: {
68
68
  code: string;
69
69
  message: string | null;
@@ -73,50 +73,50 @@ export declare function communicationOperations(): {
73
73
  }[];
74
74
  teamId: string;
75
75
  createdAt: string;
76
- sendId: string;
76
+ updatedAt: string;
77
77
  responses: {
78
78
  status: "failed" | "cancelled" | "responded" | "abstained";
79
79
  projectId: string;
80
80
  createdAt: string;
81
81
  assignmentId: string | null;
82
- invocationId: string;
83
- requirement: "required" | "optional";
84
82
  agentSlug: string;
83
+ requirement: "required" | "optional";
84
+ invocationId: string;
85
85
  projectSlug: string;
86
86
  messageRef: string;
87
87
  markdown: string;
88
88
  }[];
89
- channel: string;
90
- topic: {
91
- id: string;
92
- slug: string;
93
- };
94
89
  events: {
95
90
  type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
96
91
  actor: {
97
- kind: "provider" | "agent" | "control-plane" | "user";
92
+ kind: "provider" | "agent" | "user" | "control-plane";
98
93
  id: string;
99
94
  handle: string | null;
100
95
  };
101
96
  id: string;
102
97
  teamId: string;
103
98
  assignmentId: string | null;
99
+ summary: string;
100
+ sequence: number;
104
101
  topicId: string;
105
102
  sendId: string | null;
106
103
  invocationId: string | null;
107
- sequence: number;
108
104
  payload: Record<string, unknown>;
109
- summary: string;
110
105
  channel: string;
111
106
  occurredAt: string;
112
107
  }[];
113
- updatedAt: string;
108
+ topic: {
109
+ id: string;
110
+ slug: string;
111
+ };
112
+ sendId: string;
113
+ channel: string;
114
114
  projectStreams: {
115
115
  id: string;
116
116
  projectId: string;
117
+ discussionId: string;
117
118
  projectSlug: string;
118
119
  messageRef: string;
119
- discussionId: string;
120
120
  }[];
121
121
  replayed: boolean;
122
122
  }>;
@@ -126,28 +126,15 @@ export declare function communicationOperations(): {
126
126
  }, {
127
127
  diagnostics?: "metadata" | "full" | undefined;
128
128
  }, undefined, {
129
- status: "failed" | "running" | "partial" | "complete" | "queued";
129
+ status: "failed" | "running" | "partial" | "queued" | "complete";
130
130
  schemaVersion: "treeseed.communication-send-receipt/v4";
131
131
  targets: {
132
132
  status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
133
133
  projectId: string;
134
- invocationId: string | null;
135
- completedAt: string | null;
136
- requirement: "required" | "optional";
134
+ updatedAt: string;
137
135
  agentSlug: string;
138
- capacity: {
139
- status: string | null;
140
- providerId: string | null;
141
- assignmentId: string | null;
142
- completedAt: string | null;
143
- executionProviderId: string | null;
144
- laneId: string | null;
145
- lanePurpose: string | null;
146
- assignedAt: string | null;
147
- claimedAt: string | null;
148
- returnedAt: string | null;
149
- failedAt: string | null;
150
- };
136
+ requirement: "required" | "optional";
137
+ depth: number;
151
138
  diagnostics: {
152
139
  provider: {
153
140
  providerId: string | null;
@@ -160,15 +147,30 @@ export declare function communicationOperations(): {
160
147
  model: string | null;
161
148
  parameters: Record<string, unknown>;
162
149
  };
163
- reason: string | null;
164
150
  usage: Record<string, unknown>[];
165
- availability: "available" | "unavailable" | "partial";
151
+ reason: string | null;
152
+ availability: "available" | "partial" | "unavailable";
166
153
  identityManifest: Record<string, unknown>;
167
154
  contextManifest: Record<string, unknown>[];
168
155
  timing: Record<string, unknown>;
169
156
  traceEvents: Record<string, unknown>[];
170
157
  fullPayload?: Record<string, unknown> | undefined;
171
158
  };
159
+ completedAt: string | null;
160
+ invocationId: string | null;
161
+ capacity: {
162
+ status: string | null;
163
+ providerId: string | null;
164
+ assignmentId: string | null;
165
+ claimedAt: string | null;
166
+ executionProviderId: string | null;
167
+ completedAt: string | null;
168
+ laneId: string | null;
169
+ lanePurpose: string | null;
170
+ assignedAt: string | null;
171
+ returnedAt: string | null;
172
+ failedAt: string | null;
173
+ };
172
174
  projectSlug: string;
173
175
  definitionRevision: string;
174
176
  revisions: {
@@ -178,9 +180,7 @@ export declare function communicationOperations(): {
178
180
  chatProfile: string;
179
181
  };
180
182
  parentInvocationId: string | null;
181
- depth: number;
182
183
  requestedAt: string;
183
- updatedAt: string;
184
184
  failure: {
185
185
  code: string;
186
186
  message: string | null;
@@ -190,50 +190,50 @@ export declare function communicationOperations(): {
190
190
  }[];
191
191
  teamId: string;
192
192
  createdAt: string;
193
- sendId: string;
193
+ updatedAt: string;
194
194
  responses: {
195
195
  status: "failed" | "cancelled" | "responded" | "abstained";
196
196
  projectId: string;
197
197
  createdAt: string;
198
198
  assignmentId: string | null;
199
- invocationId: string;
200
- requirement: "required" | "optional";
201
199
  agentSlug: string;
200
+ requirement: "required" | "optional";
201
+ invocationId: string;
202
202
  projectSlug: string;
203
203
  messageRef: string;
204
204
  markdown: string;
205
205
  }[];
206
- channel: string;
207
- topic: {
208
- id: string;
209
- slug: string;
210
- };
211
206
  events: {
212
207
  type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
213
208
  actor: {
214
- kind: "provider" | "agent" | "control-plane" | "user";
209
+ kind: "provider" | "agent" | "user" | "control-plane";
215
210
  id: string;
216
211
  handle: string | null;
217
212
  };
218
213
  id: string;
219
214
  teamId: string;
220
215
  assignmentId: string | null;
216
+ summary: string;
217
+ sequence: number;
221
218
  topicId: string;
222
219
  sendId: string | null;
223
220
  invocationId: string | null;
224
- sequence: number;
225
221
  payload: Record<string, unknown>;
226
- summary: string;
227
222
  channel: string;
228
223
  occurredAt: string;
229
224
  }[];
230
- updatedAt: string;
225
+ topic: {
226
+ id: string;
227
+ slug: string;
228
+ };
229
+ sendId: string;
230
+ channel: string;
231
231
  projectStreams: {
232
232
  id: string;
233
233
  projectId: string;
234
+ discussionId: string;
234
235
  projectSlug: string;
235
236
  messageRef: string;
236
- discussionId: string;
237
237
  }[];
238
238
  replayed: boolean;
239
239
  }>;
@@ -254,16 +254,16 @@ export declare function communicationOperations(): {
254
254
  streams: {
255
255
  id: string;
256
256
  projectId: string;
257
- projectSlug: string;
258
257
  discussionId: string;
258
+ projectSlug: string;
259
259
  }[];
260
260
  listeners: {
261
261
  status: "active" | "removed";
262
262
  projectId: string;
263
263
  source: "seed" | "operator" | "mention";
264
+ updatedAt: string;
264
265
  agentSlug: string;
265
266
  projectSlug: string;
266
- updatedAt: string;
267
267
  agentHandle: string;
268
268
  subscribedAt: string;
269
269
  }[];
@@ -283,16 +283,16 @@ export declare function communicationOperations(): {
283
283
  streams: {
284
284
  id: string;
285
285
  projectId: string;
286
- projectSlug: string;
287
286
  discussionId: string;
287
+ projectSlug: string;
288
288
  }[];
289
289
  listeners: {
290
290
  status: "active" | "removed";
291
291
  projectId: string;
292
292
  source: "seed" | "operator" | "mention";
293
+ updatedAt: string;
293
294
  agentSlug: string;
294
295
  projectSlug: string;
295
- updatedAt: string;
296
296
  agentHandle: string;
297
297
  subscribedAt: string;
298
298
  }[];
@@ -301,12 +301,30 @@ export declare function communicationOperations(): {
301
301
  teamId: string;
302
302
  channel: string;
303
303
  }, {
304
+ diagnostics?: "metadata" | "full" | undefined;
304
305
  limit?: number | undefined;
305
306
  waitSeconds?: number | undefined;
306
- diagnostics?: "metadata" | "full" | undefined;
307
307
  after?: string | undefined;
308
308
  }, undefined, {
309
- cursor: string | null;
309
+ events: {
310
+ type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
311
+ actor: {
312
+ kind: "provider" | "agent" | "user" | "control-plane";
313
+ id: string;
314
+ handle: string | null;
315
+ };
316
+ id: string;
317
+ teamId: string;
318
+ assignmentId: string | null;
319
+ summary: string;
320
+ sequence: number;
321
+ topicId: string;
322
+ sendId: string | null;
323
+ invocationId: string | null;
324
+ payload: Record<string, unknown>;
325
+ channel: string;
326
+ occurredAt: string;
327
+ }[];
310
328
  topic: {
311
329
  status: "active" | "archived";
312
330
  id: string;
@@ -317,39 +335,21 @@ export declare function communicationOperations(): {
317
335
  streams: {
318
336
  id: string;
319
337
  projectId: string;
320
- projectSlug: string;
321
338
  discussionId: string;
339
+ projectSlug: string;
322
340
  }[];
323
341
  listeners: {
324
342
  status: "active" | "removed";
325
343
  projectId: string;
326
344
  source: "seed" | "operator" | "mention";
345
+ updatedAt: string;
327
346
  agentSlug: string;
328
347
  projectSlug: string;
329
- updatedAt: string;
330
348
  agentHandle: string;
331
349
  subscribedAt: string;
332
350
  }[];
333
351
  };
334
- events: {
335
- type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
336
- actor: {
337
- kind: "provider" | "agent" | "control-plane" | "user";
338
- id: string;
339
- handle: string | null;
340
- };
341
- id: string;
342
- teamId: string;
343
- assignmentId: string | null;
344
- topicId: string;
345
- sendId: string | null;
346
- invocationId: string | null;
347
- sequence: number;
348
- payload: Record<string, unknown>;
349
- summary: string;
350
- channel: string;
351
- occurredAt: string;
352
- }[];
352
+ cursor: string | null;
353
353
  }>;
354
354
  topicsSubscribe: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
355
355
  teamId: string;
@@ -363,9 +363,9 @@ export declare function communicationOperations(): {
363
363
  status: "active" | "removed";
364
364
  projectId: string;
365
365
  source: "seed" | "operator" | "mention";
366
+ updatedAt: string;
366
367
  agentSlug: string;
367
368
  projectSlug: string;
368
- updatedAt: string;
369
369
  agentHandle: string;
370
370
  subscribedAt: string;
371
371
  };
@@ -382,9 +382,9 @@ export declare function communicationOperations(): {
382
382
  status: "active" | "removed";
383
383
  projectId: string;
384
384
  source: "seed" | "operator" | "mention";
385
+ updatedAt: string;
385
386
  agentSlug: string;
386
387
  projectSlug: string;
387
- updatedAt: string;
388
388
  agentHandle: string;
389
389
  subscribedAt: string;
390
390
  };
@@ -397,8 +397,8 @@ export declare function providerDiscussionResponseOperation(): import("../contro
397
397
  leaseToken: string;
398
398
  summary?: string | undefined;
399
399
  usage?: Record<string, unknown> | undefined;
400
- markdown?: string | undefined;
401
400
  outcome?: "responded" | "abstained" | undefined;
401
+ markdown?: string | undefined;
402
402
  }, {
403
403
  status: "responded" | "abstained";
404
404
  schemaVersion: "treeseed.provider-discussion-response-receipt/v1";
@@ -423,9 +423,9 @@ export declare function providerCommunicationLifecycleOperations(): {
423
423
  assignmentId: string;
424
424
  }, {}, {
425
425
  type: string;
426
+ summary: string;
426
427
  sequence: number;
427
428
  payload: Record<string, unknown>;
428
- summary: string;
429
429
  occurredAt: string;
430
430
  runnerId: string;
431
431
  leaseToken: string;