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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.d.ts +2365 -1275
  2. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +94 -28
  3. package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +38 -38
  4. package/dist/agent-capacity/contracts/capacity/assignments/assignment-path.d.ts +2 -0
  5. package/dist/agent-capacity/contracts/capacity/assignments/assignment-path.js +13 -0
  6. package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +2 -59
  7. package/dist/agent-capacity/contracts/capacity/providers/supply-policy.d.ts +126 -1
  8. package/dist/agent-capacity/contracts/capacity/providers/supply-policy.js +35 -1
  9. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.d.ts +2 -4
  10. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.js +22 -16
  11. package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.d.ts +3 -42
  12. package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.js +8 -8
  13. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.d.ts +244 -85
  14. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.js +54 -19
  15. package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +216 -70
  16. package/dist/agent-capacity/contracts/capacity/workdays/workday-records.js +19 -0
  17. package/dist/agent-capacity/contracts/configuration/configuration.d.ts +1 -1
  18. package/dist/agent-capacity/contracts/configuration/configuration.js +0 -2
  19. package/dist/agent-capacity/contracts/operations/agent-team-clone.d.ts +55 -55
  20. package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +119 -23
  21. package/dist/agent-capacity/contracts/projects/agents/project-agent-class.js +16 -0
  22. package/dist/agent-capacity/contracts/runtime/runtime-observability.d.ts +2 -154
  23. package/dist/agent-capacity/contracts/support/agent-atlas.d.ts +0 -13
  24. package/dist/agent-capacity/contracts/support/execution-graph.d.ts +496 -292
  25. package/dist/agent-capacity/contracts/support/execution-graph.js +21 -19
  26. package/dist/agent-capacity/contracts/support/financial-records.d.ts +3 -6
  27. package/dist/agent-capacity/contracts/support/planning-records.d.ts +1 -87
  28. package/dist/agent-capacity/grant.d.ts +34 -0
  29. package/dist/agent-capacity/grant.js +4 -0
  30. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +1178 -1152
  31. package/dist/agent-capacity/validation/agent-definition-schema.js +21 -28
  32. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +10 -10
  33. package/dist/agent-capacity/validation/agent-lab-forensics-schema.js +0 -1
  34. package/dist/agent-capacity/validation/assignment-records.d.ts +1 -6
  35. package/dist/agent-capacity/validation/assignment-records.js +49 -35
  36. package/dist/agent-capacity/validation/configuration.d.ts +1 -1
  37. package/dist/agent-capacity/validation/configuration.js +2 -6
  38. package/dist/agent-capacity/validation/grant.d.ts +11 -0
  39. package/dist/agent-capacity/validation/grant.js +31 -0
  40. package/dist/capacity/agents/agent-capacity.d.ts +3 -4
  41. package/dist/capacity/agents/agent-capacity.js +2 -3
  42. package/dist/capacity-provider/capability-ontology.d.ts +150 -150
  43. package/dist/capacity-provider/client.d.ts +15 -9
  44. package/dist/capacity-provider/client.js +1 -10
  45. package/dist/capacity-provider/contracts/capacity-facts.d.ts +0 -1
  46. package/dist/capacity-provider/contracts/environment-profiles.d.ts +44 -44
  47. package/dist/capacity-provider/contracts/governance.d.ts +2 -17
  48. package/dist/capacity-provider/contracts/index.d.ts +2 -0
  49. package/dist/capacity-provider/contracts/index.js +2 -0
  50. package/dist/capacity-provider/core-capability-catalog.d.ts +7 -7
  51. package/dist/capacity-provider/environment-catalog.d.ts +188 -188
  52. package/dist/capacity-provider/environment-catalog.js +1 -1
  53. package/dist/capacity-provider/install-configuration.d.ts +2 -2
  54. package/dist/capacity-provider/sandbox-contracts.d.ts +92 -92
  55. package/dist/capacity-provider/source-workspace.d.ts +166 -68
  56. package/dist/capacity-provider/source-workspace.js +5 -1
  57. package/dist/capacity-provider/validation.d.ts +10 -2
  58. package/dist/capacity-provider/validation.js +52 -22
  59. package/dist/content/validation/agent-operational-content-schemas.d.ts +144 -142
  60. package/dist/content/validation/agent-operational-content-schemas.js +2 -0
  61. package/dist/content/validation/auxiliary-content-schemas.d.ts +158 -158
  62. package/dist/content/validation/content-model-schemas.d.ts +9105 -5295
  63. package/dist/content/validation/content-model-schemas.js +192 -115
  64. package/dist/content/validation/portable-content-data.d.ts +411 -238
  65. package/dist/content/validation/portable-content-data.js +6 -1
  66. package/dist/content/validation/schema-constraints.d.ts +78 -0
  67. package/dist/content/validation/schema-constraints.js +149 -0
  68. package/dist/deployment/ai/storage.d.ts +24 -24
  69. package/dist/deployment/ai-hosting.d.ts +18 -18
  70. package/dist/deployment/ai-instance.d.ts +16 -16
  71. package/dist/deployment/ai-mode.d.ts +92 -92
  72. package/dist/deployment/hosted-topology-template.d.ts +44 -44
  73. package/dist/deployment/hosted-topology.d.ts +335 -335
  74. package/dist/deployment/postgres/contracts.d.ts +52 -52
  75. package/dist/deployment/postgres/transfer.d.ts +6 -6
  76. package/dist/deployment/schemas.d.ts +1114 -1114
  77. package/dist/development/schemas.d.ts +633 -633
  78. package/dist/graph/context-query-contracts.js +1 -1
  79. package/dist/guarantees/index.d.ts +26 -2
  80. package/dist/identity/contracts.js +6 -1
  81. package/dist/knowledge/contracts.d.ts +9 -2
  82. package/dist/knowledge/contracts.js +2 -2
  83. package/dist/model-registry/discussion-models.js +0 -1
  84. package/dist/operator-contracts/canonical-command-tree.js +25 -9
  85. package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +29 -29
  86. package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +30 -30
  87. package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +15 -13
  88. package/dist/operator-contracts/catalog/communication-operations.d.ts +176 -158
  89. package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +67 -67
  90. package/dist/operator-contracts/catalog/inbox-operations.d.ts +65 -65
  91. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +6 -6
  92. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.js +2 -1
  93. package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +10 -10
  94. package/dist/operator-contracts/catalog/provider-environment-operations.d.ts +3 -3
  95. package/dist/operator-contracts/catalog/services/secret-operations.d.ts +16 -8
  96. package/dist/operator-contracts/catalog/services/secret-operations.js +2 -1
  97. package/dist/operator-contracts/catalog/workdays/profile-operations.d.ts +11 -11
  98. package/dist/operator-contracts/catalog/workdays/selection-commands.js +3 -0
  99. package/dist/operator-contracts/communication/contracts.d.ts +537 -395
  100. package/dist/operator-contracts/communication/contracts.js +6 -1
  101. package/dist/operator-contracts/control-plane-operation.d.ts +7 -0
  102. package/dist/operator-contracts/control-plane-operation.js +6 -0
  103. package/dist/operator-contracts/control-plane-operations.d.ts +631 -610
  104. package/dist/operator-contracts/control-plane-operations.js +26 -12
  105. package/dist/operator-contracts/inbox/contracts.d.ts +229 -229
  106. package/dist/operator-contracts/knowledge/contracts.d.ts +16 -16
  107. package/dist/operator-contracts/mcp.js +4 -3
  108. package/dist/operator-contracts/workday-lifecycle.d.ts +192 -0
  109. package/dist/operator-contracts/workday-lifecycle.js +109 -45
  110. package/dist/platform/agent-schema-verification.d.ts +3 -0
  111. package/dist/platform/agent-schema-verification.js +377 -0
  112. package/dist/platform/contracts.d.ts +72 -72
  113. package/dist/platform/schemas.d.ts +144 -36
  114. package/dist/platform/schemas.js +26 -0
  115. package/dist/platform/verification.js +10 -0
  116. package/dist/sdk-types/support/planning-policy.d.ts +1 -1
  117. package/dist/sdk-types/support/sdk-search-request.d.ts +2 -2
  118. package/dist/secrets-capability/secret-contracts.d.ts +2 -2
  119. package/dist/secrets-capability/shared-access.d.ts +3 -3
  120. package/dist/secrets-capability/shared-resources.d.ts +50 -50
  121. package/dist/secrets-capability/vault-contracts.d.ts +2 -2
  122. package/dist/security/encrypted-envelope.d.ts +14 -14
  123. package/dist/treedx/client.d.ts +4 -4
  124. package/dist/treedx/index.d.ts +1 -1
  125. package/dist/treedx/index.js +1 -0
  126. package/dist/treedx/types.d.ts +286 -0
  127. package/dist/treedx/types.js +44 -0
  128. package/guarantees/agent/golden/component-boundaries.guarantee.yaml +12 -0
  129. package/guarantees/agent/golden/product-custody.guarantee.yaml +12 -0
  130. package/guarantees/agent/golden/product.guarantee.yaml +12 -0
  131. package/guarantees/agent/golden/scenes/component-boundaries.scene.yaml +837 -0
  132. package/guarantees/agent/golden/scenes/product-custody.scene.yaml +53 -0
  133. package/guarantees/agent/golden/scenes/product.scene.yaml +8 -0
  134. package/guarantees/verifiers/golden.verifiers.yaml +1429 -0
  135. package/package.json +9 -3
  136. package/tests/acceptance/golden-product.test.ts +205 -0
  137. package/tests/acceptance/golden-product.ts +404 -0
  138. package/tests/acceptance/product/base-red.ts +73 -0
  139. package/tests/acceptance/product/documentation-examples.ts +68 -0
  140. package/tests/acceptance/product/intent-runtime.ts +145 -0
  141. package/tests/acceptance/product/release-output.ts +160 -0
  142. package/tests/acceptance/product/research-artifact.ts +87 -0
  143. package/tests/acceptance/product/research-revision.ts +82 -0
  144. package/tests/acceptance/product/research-source.ts +91 -0
  145. package/tests/acceptance/product/test-chain.ts +192 -0
  146. package/treeseed.package.yaml +147 -0
  147. package/dist/.treeseed-build-complete.json +0 -1
  148. package/dist/agent-capacity/allocation.d.ts +0 -183
  149. package/dist/agent-capacity/allocation.js +0 -5
  150. package/dist/agent-capacity/artifact-mutation-receipt.d.ts +0 -49
  151. package/dist/agent-capacity/artifact-mutation-receipt.js +0 -36
  152. package/dist/agent-capacity/artifacts.d.ts +0 -123
  153. package/dist/agent-capacity/artifacts.js +0 -39
  154. package/dist/agent-capacity/contracts/support/decision-work.d.ts +0 -227
  155. package/dist/agent-capacity/contracts/support/decision-work.js +0 -0
  156. package/dist/agent-capacity/validation/allocation.d.ts +0 -12
  157. package/dist/agent-capacity/validation/allocation.js +0 -115
@@ -5,9 +5,15 @@ export declare const HOSTED_TOPOLOGY_OPERATIONS: {
5
5
  declaration: {
6
6
  id: string;
7
7
  schemaVersion: "treeseed.hosted-topology/v1";
8
+ teamId: string;
9
+ platform: {
10
+ commit: string;
11
+ repository: "treeseed-ai/platform";
12
+ };
13
+ environment: "staging" | "production";
8
14
  resources: {
9
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
10
- provider: "cloudflare" | "railway";
15
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
16
+ provider: "railway" | "cloudflare";
11
17
  id: string;
12
18
  adoption: {
13
19
  mode: "adopt-or-create";
@@ -28,22 +34,16 @@ export declare const HOSTED_TOPOLOGY_OPERATIONS: {
28
34
  literal: string | number | boolean;
29
35
  }> | undefined;
30
36
  }[];
31
- teamId: string;
32
- platform: {
33
- repository: "treeseed-ai/platform";
34
- commit: string;
35
- };
36
37
  mutation: "agent-authorized";
37
- environment: "production" | "staging";
38
38
  artifacts: Record<string, {
39
39
  kind: "archive";
40
- digest: string;
41
- source: string;
42
40
  format: "tar+gzip";
41
+ source: string;
42
+ digest: string;
43
43
  } | {
44
44
  kind: "file";
45
- digest: string;
46
45
  source: string;
46
+ digest: string;
47
47
  mediaType: string;
48
48
  } | {
49
49
  identity: string;
@@ -55,7 +55,7 @@ export declare const HOSTED_TOPOLOGY_OPERATIONS: {
55
55
  stateBackend: {
56
56
  connectionRef: string;
57
57
  };
58
- providerConnections: Partial<Record<"cloudflare" | "railway", {
58
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
59
59
  connectionRef: string;
60
60
  }>>;
61
61
  };
@@ -65,6 +65,8 @@ export declare const HOSTED_TOPOLOGY_OPERATIONS: {
65
65
  }, {}, {
66
66
  plan: {
67
67
  schemaVersion: "treeseed.hosted-topology-plan/v1";
68
+ teamId: string;
69
+ environment: "staging" | "production";
68
70
  blockers: {
69
71
  code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
70
72
  message: string;
@@ -72,14 +74,14 @@ export declare const HOSTED_TOPOLOGY_OPERATIONS: {
72
74
  }[];
73
75
  planDigest: string;
74
76
  actions: {
75
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
76
- provider: "cloudflare" | "railway";
77
- action: "noop" | "create" | "adopt" | "update";
77
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
78
+ provider: "railway" | "cloudflare";
79
+ action: "create" | "update" | "noop" | "adopt";
78
80
  resourceId: string;
79
81
  providerResourceId: string | null;
80
82
  desiredResource: {
81
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
82
- provider: "cloudflare" | "railway";
83
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
84
+ provider: "railway" | "cloudflare";
83
85
  id: string;
84
86
  adoption: {
85
87
  mode: "adopt-or-create";
@@ -103,18 +105,16 @@ export declare const HOSTED_TOPOLOGY_OPERATIONS: {
103
105
  desiredDigest: string;
104
106
  previousDigest: string | null;
105
107
  }[];
106
- teamId: string;
107
- environment: "production" | "staging";
108
108
  executable: false;
109
109
  artifacts: Record<string, {
110
110
  kind: "archive";
111
- digest: string;
112
- source: string;
113
111
  format: "tar+gzip";
112
+ source: string;
113
+ digest: string;
114
114
  } | {
115
115
  kind: "file";
116
- digest: string;
117
116
  source: string;
117
+ digest: string;
118
118
  mediaType: string;
119
119
  } | {
120
120
  identity: string;
@@ -129,18 +129,18 @@ export declare const HOSTED_TOPOLOGY_OPERATIONS: {
129
129
  schemaVersion: "treeseed.hosted-state-backend/v1";
130
130
  key: string;
131
131
  teamId: string;
132
- environment: "production" | "staging";
133
- deploymentId: string;
132
+ region: string;
133
+ environment: "staging" | "production";
134
134
  bucket: string;
135
+ deploymentId: string;
135
136
  stackId: string;
136
137
  connectionRef: string;
137
- region: string;
138
138
  encryptionKeyRef: string;
139
139
  bindingDigest: string;
140
140
  endpoint?: string | undefined;
141
141
  usePathStyle?: boolean | undefined;
142
142
  } | null;
143
- providerConnections: Partial<Record<"cloudflare" | "railway", {
143
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
144
144
  connectionRef: string;
145
145
  nonSecretConfig: Record<string, string | number | boolean>;
146
146
  }>>;
@@ -157,20 +157,20 @@ export declare const HOSTED_TOPOLOGY_OPERATIONS: {
157
157
  receipt: {
158
158
  state: "known-good";
159
159
  schemaVersion: "treeseed.hosted-topology-receipt/v1";
160
+ teamId: string;
161
+ environment: "staging" | "production";
162
+ completedAt: string;
160
163
  resources: {
161
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
162
- provider: "cloudflare" | "railway";
163
- state: "missing" | "degraded" | "healthy";
164
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
165
+ provider: "railway" | "cloudflare";
166
+ state: "degraded" | "missing" | "healthy";
167
+ observedAt: string;
164
168
  resourceId: string;
165
169
  providerResourceId: string | null;
166
170
  managedBy: "external" | "treeseed" | null;
167
171
  observedDigest: string | null;
168
- observedAt: string;
169
172
  }[];
170
173
  planDigest: string;
171
- teamId: string;
172
- environment: "production" | "staging";
173
- completedAt: string;
174
174
  receiptId: string;
175
175
  deploymentId: string;
176
176
  stackId: string;
@@ -179,14 +179,14 @@ export declare const HOSTED_TOPOLOGY_OPERATIONS: {
179
179
  platformCommit: string;
180
180
  backendBindingDigest: string;
181
181
  previousResources: {
182
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
183
- provider: "cloudflare" | "railway";
184
- state: "missing" | "degraded" | "healthy";
182
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
183
+ provider: "railway" | "cloudflare";
184
+ state: "degraded" | "missing" | "healthy";
185
+ observedAt: string;
185
186
  resourceId: string;
186
187
  providerResourceId: string | null;
187
188
  managedBy: "external" | "treeseed" | null;
188
189
  observedDigest: string | null;
189
- observedAt: string;
190
190
  }[];
191
191
  } | null;
192
192
  }>;
@@ -196,17 +196,17 @@ export declare const HOSTED_TOPOLOGY_OPERATIONS: {
196
196
  execution: {
197
197
  schemaVersion: "treeseed.hosted-topology-rollback-execution/v1";
198
198
  teamId: string;
199
- environment: "production" | "staging";
199
+ environment: "staging" | "production";
200
200
  rollback: {
201
201
  schemaVersion: "treeseed.hosted-topology-rollback/v1";
202
202
  teamId: string;
203
- environment: "production" | "staging";
204
203
  operations: {
205
204
  action: "noop" | "restore" | "delete-created";
206
205
  resourceId: string;
207
206
  providerResourceId: string;
208
207
  targetDigest: string | null;
209
208
  }[];
209
+ environment: "staging" | "production";
210
210
  deploymentId: string;
211
211
  stackId: string;
212
212
  backendBindingDigest: string;
@@ -225,6 +225,8 @@ export declare const HOSTED_TOPOLOGY_OPERATIONS: {
225
225
  };
226
226
  sourcePlan: {
227
227
  schemaVersion: "treeseed.hosted-topology-plan/v1";
228
+ teamId: string;
229
+ environment: "staging" | "production";
228
230
  blockers: {
229
231
  code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
230
232
  message: string;
@@ -232,14 +234,14 @@ export declare const HOSTED_TOPOLOGY_OPERATIONS: {
232
234
  }[];
233
235
  planDigest: string;
234
236
  actions: {
235
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
236
- provider: "cloudflare" | "railway";
237
- action: "noop" | "create" | "adopt" | "update";
237
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
238
+ provider: "railway" | "cloudflare";
239
+ action: "create" | "update" | "noop" | "adopt";
238
240
  resourceId: string;
239
241
  providerResourceId: string | null;
240
242
  desiredResource: {
241
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
242
- provider: "cloudflare" | "railway";
243
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
244
+ provider: "railway" | "cloudflare";
243
245
  id: string;
244
246
  adoption: {
245
247
  mode: "adopt-or-create";
@@ -263,18 +265,16 @@ export declare const HOSTED_TOPOLOGY_OPERATIONS: {
263
265
  desiredDigest: string;
264
266
  previousDigest: string | null;
265
267
  }[];
266
- teamId: string;
267
- environment: "production" | "staging";
268
268
  executable: false;
269
269
  artifacts: Record<string, {
270
270
  kind: "archive";
271
- digest: string;
272
- source: string;
273
271
  format: "tar+gzip";
272
+ source: string;
273
+ digest: string;
274
274
  } | {
275
275
  kind: "file";
276
- digest: string;
277
276
  source: string;
277
+ digest: string;
278
278
  mediaType: string;
279
279
  } | {
280
280
  identity: string;
@@ -289,18 +289,18 @@ export declare const HOSTED_TOPOLOGY_OPERATIONS: {
289
289
  schemaVersion: "treeseed.hosted-state-backend/v1";
290
290
  key: string;
291
291
  teamId: string;
292
- environment: "production" | "staging";
293
- deploymentId: string;
292
+ region: string;
293
+ environment: "staging" | "production";
294
294
  bucket: string;
295
+ deploymentId: string;
295
296
  stackId: string;
296
297
  connectionRef: string;
297
- region: string;
298
298
  encryptionKeyRef: string;
299
299
  bindingDigest: string;
300
300
  endpoint?: string | undefined;
301
301
  usePathStyle?: boolean | undefined;
302
302
  } | null;
303
- providerConnections: Partial<Record<"cloudflare" | "railway", {
303
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
304
304
  connectionRef: string;
305
305
  nonSecretConfig: Record<string, string | number | boolean>;
306
306
  }>>;
@@ -311,6 +311,8 @@ export declare const HOSTED_TOPOLOGY_OPERATIONS: {
311
311
  };
312
312
  targetPlan: {
313
313
  schemaVersion: "treeseed.hosted-topology-plan/v1";
314
+ teamId: string;
315
+ environment: "staging" | "production";
314
316
  blockers: {
315
317
  code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
316
318
  message: string;
@@ -318,14 +320,14 @@ export declare const HOSTED_TOPOLOGY_OPERATIONS: {
318
320
  }[];
319
321
  planDigest: string;
320
322
  actions: {
321
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
322
- provider: "cloudflare" | "railway";
323
- action: "noop" | "create" | "adopt" | "update";
323
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
324
+ provider: "railway" | "cloudflare";
325
+ action: "create" | "update" | "noop" | "adopt";
324
326
  resourceId: string;
325
327
  providerResourceId: string | null;
326
328
  desiredResource: {
327
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
328
- provider: "cloudflare" | "railway";
329
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
330
+ provider: "railway" | "cloudflare";
329
331
  id: string;
330
332
  adoption: {
331
333
  mode: "adopt-or-create";
@@ -349,18 +351,16 @@ export declare const HOSTED_TOPOLOGY_OPERATIONS: {
349
351
  desiredDigest: string;
350
352
  previousDigest: string | null;
351
353
  }[];
352
- teamId: string;
353
- environment: "production" | "staging";
354
354
  executable: false;
355
355
  artifacts: Record<string, {
356
356
  kind: "archive";
357
- digest: string;
358
- source: string;
359
357
  format: "tar+gzip";
358
+ source: string;
359
+ digest: string;
360
360
  } | {
361
361
  kind: "file";
362
- digest: string;
363
362
  source: string;
363
+ digest: string;
364
364
  mediaType: string;
365
365
  } | {
366
366
  identity: string;
@@ -375,18 +375,18 @@ export declare const HOSTED_TOPOLOGY_OPERATIONS: {
375
375
  schemaVersion: "treeseed.hosted-state-backend/v1";
376
376
  key: string;
377
377
  teamId: string;
378
- environment: "production" | "staging";
379
- deploymentId: string;
378
+ region: string;
379
+ environment: "staging" | "production";
380
380
  bucket: string;
381
+ deploymentId: string;
381
382
  stackId: string;
382
383
  connectionRef: string;
383
- region: string;
384
384
  encryptionKeyRef: string;
385
385
  bindingDigest: string;
386
386
  endpoint?: string | undefined;
387
387
  usePathStyle?: boolean | undefined;
388
388
  } | null;
389
- providerConnections: Partial<Record<"cloudflare" | "railway", {
389
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
390
390
  connectionRef: string;
391
391
  nonSecretConfig: Record<string, string | number | boolean>;
392
392
  }>>;
@@ -2,7 +2,7 @@ export declare function inboxOperations(): {
2
2
  list: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
3
3
  teamId: string;
4
4
  }, {
5
- kind?: "all" | "proposal" | "question" | undefined;
5
+ kind?: "question" | "proposal" | "all" | undefined;
6
6
  state?: "all" | "outstanding" | undefined;
7
7
  projectId?: string | undefined;
8
8
  cursor?: string | undefined;
@@ -10,18 +10,18 @@ export declare function inboxOperations(): {
10
10
  }, undefined, {
11
11
  schemaVersion: "treeseed.inbox-page/v1";
12
12
  items: {
13
- status: "approved" | "rejected" | "outstanding" | "answered" | "closed" | "deleted";
14
- kind: "proposal" | "question";
13
+ status: "rejected" | "approved" | "closed" | "answered" | "outstanding" | "deleted";
14
+ kind: "question" | "proposal";
15
15
  id: string;
16
16
  version: number;
17
- projectId: string;
18
- teamId: string;
17
+ title: string;
19
18
  createdAt: string;
20
- projectSlug: string;
21
19
  updatedAt: string;
20
+ teamId: string;
21
+ projectId: string;
22
22
  authorId: string;
23
+ projectSlug: string;
23
24
  authorLabel: string;
24
- title: string;
25
25
  etag: string;
26
26
  }[];
27
27
  cursor: string | null;
@@ -30,48 +30,48 @@ export declare function inboxOperations(): {
30
30
  teamId: string;
31
31
  itemId: string;
32
32
  }, {}, undefined, {
33
- status: "approved" | "rejected" | "outstanding" | "answered" | "closed" | "deleted";
34
- kind: "proposal" | "question";
33
+ status: "rejected" | "approved" | "closed" | "answered" | "outstanding" | "deleted";
34
+ kind: "question" | "proposal";
35
35
  id: string;
36
36
  version: number;
37
37
  schemaVersion: "treeseed.inbox-item/v1";
38
- projectId: string;
39
- teamId: string;
38
+ title: string;
40
39
  createdAt: string;
40
+ updatedAt: string;
41
+ teamId: string;
42
+ projectId: string;
43
+ discussionId: string | null;
44
+ authorId: string;
41
45
  provenance: {
46
+ commitSha: string | null;
42
47
  digest: string | null;
43
48
  repositoryId: string | null;
44
49
  contentPath: string | null;
45
- commitSha: string | null;
46
50
  };
47
51
  projectSlug: string;
48
- updatedAt: string;
49
52
  markdown: string;
50
- discussionId: string | null;
51
- authorId: string;
52
53
  authorLabel: string;
53
- title: string;
54
54
  availableActions: {
55
55
  enabled: boolean;
56
- action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
57
- reason: string | null;
56
+ action: "answer" | "approve" | "reject" | "comment" | "reply" | "publish_revision" | "reopen";
58
57
  label: string;
58
+ reason: string | null;
59
59
  confirmation: "never" | "input_required";
60
60
  requiresFeedback: boolean;
61
61
  }[];
62
62
  comments: {
63
- kind: "comment" | "answer" | "reply";
63
+ kind: "answer" | "comment" | "reply";
64
64
  id: string;
65
65
  createdAt: string;
66
+ parentId: string | null;
67
+ authorId: string;
66
68
  provenance: {
69
+ commitSha: string | null;
67
70
  digest: string | null;
68
71
  repositoryId: string | null;
69
72
  contentPath: string | null;
70
- commitSha: string | null;
71
73
  };
72
74
  markdown: string;
73
- parentId: string | null;
74
- authorId: string;
75
75
  authorLabel: string;
76
76
  }[];
77
77
  etag: string;
@@ -83,93 +83,93 @@ export declare function inboxOperations(): {
83
83
  waitSeconds?: number | undefined;
84
84
  after?: string | undefined;
85
85
  }, undefined, {
86
- cursor: string;
87
86
  events: {
88
87
  type: "item.created" | "item.updated" | "item.deleted" | "draft.updated" | "comment.created" | "question.answered" | "question.reopened" | "proposal.revised" | "proposal.decided";
89
88
  id: string;
90
89
  schemaVersion: "treeseed.inbox-event/v1";
90
+ summary: string;
91
91
  teamId: string;
92
92
  sequence: string;
93
93
  payload: Record<string, unknown>;
94
- summary: string;
95
94
  occurredAt: string;
96
95
  itemId: string | null;
97
96
  actorId: string;
98
97
  }[];
98
+ cursor: string;
99
99
  }>;
100
100
  createQuestion: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
101
101
  teamId: string;
102
102
  }, {}, {
103
+ title: string;
103
104
  projectId: string;
104
105
  markdown: string;
105
- title: string;
106
- recipients?: string[] | undefined;
107
106
  severity?: "blocking" | "advisory" | undefined;
108
107
  relatedObjectives?: string[] | undefined;
108
+ recipients?: string[] | undefined;
109
109
  relatedProposals?: string[] | undefined;
110
110
  relatedDecisions?: string[] | undefined;
111
111
  relatedWorkItems?: string[] | undefined;
112
112
  }, {
113
113
  schemaVersion: "treeseed.inbox-mutation-receipt/v1";
114
114
  item: {
115
- status: "approved" | "rejected" | "outstanding" | "answered" | "closed" | "deleted";
116
- kind: "proposal" | "question";
115
+ status: "rejected" | "approved" | "closed" | "answered" | "outstanding" | "deleted";
116
+ kind: "question" | "proposal";
117
117
  id: string;
118
118
  version: number;
119
119
  schemaVersion: "treeseed.inbox-item/v1";
120
- projectId: string;
121
- teamId: string;
120
+ title: string;
122
121
  createdAt: string;
122
+ updatedAt: string;
123
+ teamId: string;
124
+ projectId: string;
125
+ discussionId: string | null;
126
+ authorId: string;
123
127
  provenance: {
128
+ commitSha: string | null;
124
129
  digest: string | null;
125
130
  repositoryId: string | null;
126
131
  contentPath: string | null;
127
- commitSha: string | null;
128
132
  };
129
133
  projectSlug: string;
130
- updatedAt: string;
131
134
  markdown: string;
132
- discussionId: string | null;
133
- authorId: string;
134
135
  authorLabel: string;
135
- title: string;
136
136
  availableActions: {
137
137
  enabled: boolean;
138
- action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
139
- reason: string | null;
138
+ action: "answer" | "approve" | "reject" | "comment" | "reply" | "publish_revision" | "reopen";
140
139
  label: string;
140
+ reason: string | null;
141
141
  confirmation: "never" | "input_required";
142
142
  requiresFeedback: boolean;
143
143
  }[];
144
144
  comments: {
145
- kind: "comment" | "answer" | "reply";
145
+ kind: "answer" | "comment" | "reply";
146
146
  id: string;
147
147
  createdAt: string;
148
+ parentId: string | null;
149
+ authorId: string;
148
150
  provenance: {
151
+ commitSha: string | null;
149
152
  digest: string | null;
150
153
  repositoryId: string | null;
151
154
  contentPath: string | null;
152
- commitSha: string | null;
153
155
  };
154
156
  markdown: string;
155
- parentId: string | null;
156
- authorId: string;
157
157
  authorLabel: string;
158
158
  }[];
159
159
  etag: string;
160
160
  };
161
161
  replayed: boolean;
162
- action?: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen" | undefined;
162
+ action?: "answer" | "approve" | "reject" | "comment" | "reply" | "publish_revision" | "reopen" | undefined;
163
163
  receipts?: Record<string, unknown>[] | undefined;
164
164
  }>;
165
165
  getDraft: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
166
- teamId: string;
167
166
  purpose: "feedback" | "proposal_revision";
167
+ teamId: string;
168
168
  itemId: string;
169
169
  }, {}, undefined, {
170
170
  schemaVersion: "treeseed.inbox-draft/v1";
171
- purpose: "feedback" | "proposal_revision";
172
171
  revision: number;
172
+ purpose: "feedback" | "proposal_revision";
173
173
  updatedAt: string;
174
174
  markdown: string;
175
175
  etag: string;
@@ -177,16 +177,16 @@ export declare function inboxOperations(): {
177
177
  baseVersion: number;
178
178
  } | null>;
179
179
  putDraft: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
180
- teamId: string;
181
180
  purpose: "feedback" | "proposal_revision";
181
+ teamId: string;
182
182
  itemId: string;
183
183
  }, {}, {
184
184
  markdown: string;
185
185
  baseVersion: number;
186
186
  }, {
187
187
  schemaVersion: "treeseed.inbox-draft/v1";
188
- purpose: "feedback" | "proposal_revision";
189
188
  revision: number;
189
+ purpose: "feedback" | "proposal_revision";
190
190
  updatedAt: string;
191
191
  markdown: string;
192
192
  etag: string;
@@ -194,8 +194,8 @@ export declare function inboxOperations(): {
194
194
  baseVersion: number;
195
195
  }>;
196
196
  deleteDraft: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
197
- teamId: string;
198
197
  purpose: "feedback" | "proposal_revision";
198
+ teamId: string;
199
199
  itemId: string;
200
200
  }, {}, {}, {
201
201
  deleted: boolean;
@@ -204,62 +204,62 @@ export declare function inboxOperations(): {
204
204
  teamId: string;
205
205
  itemId: string;
206
206
  }, {}, {
207
- action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
208
- markdown?: string | undefined;
207
+ action: "answer" | "approve" | "reject" | "comment" | "reply" | "publish_revision" | "reopen";
209
208
  parentId?: string | undefined;
209
+ markdown?: string | undefined;
210
210
  changeReason?: string | undefined;
211
211
  draftRevision?: number | undefined;
212
212
  }, {
213
213
  schemaVersion: "treeseed.inbox-mutation-receipt/v1";
214
214
  item: {
215
- status: "approved" | "rejected" | "outstanding" | "answered" | "closed" | "deleted";
216
- kind: "proposal" | "question";
215
+ status: "rejected" | "approved" | "closed" | "answered" | "outstanding" | "deleted";
216
+ kind: "question" | "proposal";
217
217
  id: string;
218
218
  version: number;
219
219
  schemaVersion: "treeseed.inbox-item/v1";
220
- projectId: string;
221
- teamId: string;
220
+ title: string;
222
221
  createdAt: string;
222
+ updatedAt: string;
223
+ teamId: string;
224
+ projectId: string;
225
+ discussionId: string | null;
226
+ authorId: string;
223
227
  provenance: {
228
+ commitSha: string | null;
224
229
  digest: string | null;
225
230
  repositoryId: string | null;
226
231
  contentPath: string | null;
227
- commitSha: string | null;
228
232
  };
229
233
  projectSlug: string;
230
- updatedAt: string;
231
234
  markdown: string;
232
- discussionId: string | null;
233
- authorId: string;
234
235
  authorLabel: string;
235
- title: string;
236
236
  availableActions: {
237
237
  enabled: boolean;
238
- action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
239
- reason: string | null;
238
+ action: "answer" | "approve" | "reject" | "comment" | "reply" | "publish_revision" | "reopen";
240
239
  label: string;
240
+ reason: string | null;
241
241
  confirmation: "never" | "input_required";
242
242
  requiresFeedback: boolean;
243
243
  }[];
244
244
  comments: {
245
- kind: "comment" | "answer" | "reply";
245
+ kind: "answer" | "comment" | "reply";
246
246
  id: string;
247
247
  createdAt: string;
248
+ parentId: string | null;
249
+ authorId: string;
248
250
  provenance: {
251
+ commitSha: string | null;
249
252
  digest: string | null;
250
253
  repositoryId: string | null;
251
254
  contentPath: string | null;
252
- commitSha: string | null;
253
255
  };
254
256
  markdown: string;
255
- parentId: string | null;
256
- authorId: string;
257
257
  authorLabel: string;
258
258
  }[];
259
259
  etag: string;
260
260
  };
261
261
  replayed: boolean;
262
- action?: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen" | undefined;
262
+ action?: "answer" | "approve" | "reject" | "comment" | "reply" | "publish_revision" | "reopen" | undefined;
263
263
  receipts?: Record<string, unknown>[] | undefined;
264
264
  }>;
265
265
  };