@treeseed/sdk 0.13.0-rc.54 → 0.13.0-rc.55

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 (32) hide show
  1. package/dist/agent-capacity/contracts/configuration/configuration.js +1 -1
  2. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +240 -240
  3. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +1 -1
  4. package/dist/capacity-provider/client.d.ts +3 -3
  5. package/dist/capacity-provider/contracts/governance.d.ts +28 -1
  6. package/dist/capacity-provider/index.d.ts +1 -0
  7. package/dist/capacity-provider/index.js +1 -0
  8. package/dist/capacity-provider/sandbox-contracts.d.ts +422 -0
  9. package/dist/capacity-provider/sandbox-contracts.js +71 -0
  10. package/dist/capacity-provider/validation.d.ts +2 -1
  11. package/dist/capacity-provider/validation.js +23 -0
  12. package/dist/content/validation/agent-operational-content-schemas.d.ts +76 -76
  13. package/dist/content/validation/auxiliary-content-schemas.d.ts +16 -16
  14. package/dist/content/validation/content-model-schemas.d.ts +559 -559
  15. package/dist/content/validation/portable-content-data.d.ts +59 -59
  16. package/dist/deployment/ai-mode.d.ts +4 -4
  17. package/dist/deployment/schemas.d.ts +418 -100
  18. package/dist/deployment/schemas.js +23 -1
  19. package/dist/development/schemas.d.ts +22 -22
  20. package/dist/operator-contracts/canonical-command-tree.js +39 -0
  21. package/dist/operator-contracts/catalog/communication-operations.d.ts +50 -50
  22. package/dist/operator-contracts/catalog/inbox-operations.d.ts +25 -25
  23. package/dist/operator-contracts/communication/contracts.d.ts +139 -139
  24. package/dist/operator-contracts/control-plane-operations.d.ts +78 -78
  25. package/dist/operator-contracts/inbox/contracts.d.ts +77 -77
  26. package/dist/security/encrypted-envelope.d.ts +177 -0
  27. package/dist/security/encrypted-envelope.js +34 -0
  28. package/dist/security/envelope-codec.d.ts +38 -0
  29. package/dist/security/envelope-codec.js +96 -0
  30. package/dist/security/index.d.ts +2 -0
  31. package/dist/security/index.js +2 -0
  32. package/package.json +5 -1
@@ -111,7 +111,18 @@ const hostConfigurationSchema = z.object({
111
111
  secrets: z.record(identifier, z.object({
112
112
  provider: z.enum(["file", "systemd-credential", "vault", "aws-secrets-manager"]),
113
113
  reference: z.string().min(1)
114
- }).strict())
114
+ }).strict()),
115
+ security: z.object({
116
+ sandbox: z.object({
117
+ required: z.boolean(),
118
+ runtime: z.literal("kata-runtime-rs-qemu"),
119
+ brokerSocket: z.string().startsWith("/run/treeseed/"),
120
+ modelGateway: z.object({ provider: z.literal("openai"), upstreamBaseUrl: z.literal("https://api.openai.com"), allowedModels: z.array(z.string().min(1)).min(1) }).strict(),
121
+ profiles: z.array(z.object({ id: z.enum(["read", "unit", "integration", "platform", "connected"]), guestImage: z.string().min(1), guestImageDigest: digest }).strict()).min(1)
122
+ }).strict(),
123
+ providerVolume: z.object({ encryption: z.literal("luks2"), backingPath: z.string().startsWith("/"), mountPath: z.string().startsWith("/"), sizeBytes: z.number().int().min(1073741824), unlock: z.enum(["tpm2", "systemd-credential"]), recoveryRequired: z.literal(true) }).strict(),
124
+ applicationEncryption: z.object({ provider: z.literal("systemd-credential"), activeKeyVersion: z.number().int().positive(), diagnosticsKeyVersion: z.number().int().positive() }).strict()
125
+ }).strict().optional()
115
126
  }).strict();
116
127
  const packageEndpointSchema = z.object({
117
128
  id: identifier,
@@ -313,6 +324,16 @@ const hostRecoverySchema = z.object({
313
324
  backupId: identifier.nullable(),
314
325
  completedAt: z.string().datetime().nullable()
315
326
  }).strict();
327
+ const hostSecurityReceiptSchema = z.object({
328
+ schemaVersion: z.literal("treeseed.host-security-receipt/v1"),
329
+ receiptId: identifier,
330
+ hostId: identifier,
331
+ sandbox: z.object({ runtime: z.literal("kata-runtime-rs-qemu"), kvmReady: z.boolean(), brokerReady: z.boolean(), guestImageDigests: z.array(digest) }).strict(),
332
+ providerVolume: z.object({ encrypted: z.boolean(), format: z.literal("luks2"), mountPath: z.string().startsWith("/"), unlock: z.enum(["tpm2", "systemd-credential"]) }).strict(),
333
+ keys: z.object({ provider: z.literal("systemd-credential"), activeCredentialVersion: z.number().int().positive(), activeDiagnosticsVersion: z.number().int().positive(), recoveryBundleVerified: z.boolean() }).strict(),
334
+ state: z.enum(["planned", "migrating", "known-good", "blocked"]),
335
+ completedAt: z.string().datetime()
336
+ }).strict();
316
337
  export {
317
338
  componentReleaseSchema,
318
339
  deploymentTrackSchema,
@@ -326,6 +347,7 @@ export {
326
347
  hostReceiptSchema,
327
348
  hostRecoverySchema,
328
349
  hostRoleSchema,
350
+ hostSecurityReceiptSchema,
329
351
  hostUpdateSchema,
330
352
  integrationReleaseSchema,
331
353
  packageEndpointSchema,
@@ -2829,8 +2829,9 @@ export declare const developmentSessionSchema: z.ZodObject<{
2829
2829
  targetId?: string | undefined;
2830
2830
  }>, "many">;
2831
2831
  }, "strict", z.ZodTypeAny, {
2832
- status: "planning" | "active" | "degraded" | "restoring" | "stopped" | "expired";
2833
2832
  schemaVersion: "treeseed.development-session/v1";
2833
+ status: "planning" | "active" | "degraded" | "restoring" | "stopped" | "expired";
2834
+ createdAt: string;
2834
2835
  targets: {
2835
2836
  projectId: string;
2836
2837
  targetId: string;
@@ -2842,7 +2843,6 @@ export declare const developmentSessionSchema: z.ZodObject<{
2842
2843
  sessionId: string;
2843
2844
  actor: string;
2844
2845
  hostId: string;
2845
- createdAt: string;
2846
2846
  expiresAt: string;
2847
2847
  repositories: {
2848
2848
  dirty: boolean;
@@ -2867,8 +2867,9 @@ export declare const developmentSessionSchema: z.ZodObject<{
2867
2867
  targetId?: string | undefined;
2868
2868
  }[];
2869
2869
  }, {
2870
- status: "planning" | "active" | "degraded" | "restoring" | "stopped" | "expired";
2871
2870
  schemaVersion: "treeseed.development-session/v1";
2871
+ status: "planning" | "active" | "degraded" | "restoring" | "stopped" | "expired";
2872
+ createdAt: string;
2872
2873
  targets: {
2873
2874
  projectId: string;
2874
2875
  targetId: string;
@@ -2880,7 +2881,6 @@ export declare const developmentSessionSchema: z.ZodObject<{
2880
2881
  sessionId: string;
2881
2882
  actor: string;
2882
2883
  hostId: string;
2883
- createdAt: string;
2884
2884
  expiresAt: string;
2885
2885
  repositories: {
2886
2886
  dirty: boolean;
@@ -2993,6 +2993,8 @@ export declare const developmentCandidateSchema: z.ZodEffects<z.ZodObject<{
2993
2993
  }>;
2994
2994
  promotable: z.ZodBoolean;
2995
2995
  }, "strict", z.ZodTypeAny, {
2996
+ schemaVersion: "treeseed.development-candidate/v1";
2997
+ createdAt: string;
2996
2998
  artifacts: {
2997
2999
  kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle";
2998
3000
  projectId: string;
@@ -3001,9 +3003,7 @@ export declare const developmentCandidateSchema: z.ZodEffects<z.ZodObject<{
3001
3003
  digest: string;
3002
3004
  integrity?: string | undefined;
3003
3005
  }[];
3004
- schemaVersion: "treeseed.development-candidate/v1";
3005
3006
  sessionId: string;
3006
- createdAt: string;
3007
3007
  candidateId: string;
3008
3008
  source: {
3009
3009
  dirty: boolean;
@@ -3030,6 +3030,8 @@ export declare const developmentCandidateSchema: z.ZodEffects<z.ZodObject<{
3030
3030
  };
3031
3031
  promotable: boolean;
3032
3032
  }, {
3033
+ schemaVersion: "treeseed.development-candidate/v1";
3034
+ createdAt: string;
3033
3035
  artifacts: {
3034
3036
  kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle";
3035
3037
  projectId: string;
@@ -3038,9 +3040,7 @@ export declare const developmentCandidateSchema: z.ZodEffects<z.ZodObject<{
3038
3040
  digest: string;
3039
3041
  integrity?: string | undefined;
3040
3042
  }[];
3041
- schemaVersion: "treeseed.development-candidate/v1";
3042
3043
  sessionId: string;
3043
- createdAt: string;
3044
3044
  candidateId: string;
3045
3045
  source: {
3046
3046
  dirty: boolean;
@@ -3067,6 +3067,8 @@ export declare const developmentCandidateSchema: z.ZodEffects<z.ZodObject<{
3067
3067
  };
3068
3068
  promotable: boolean;
3069
3069
  }>, {
3070
+ schemaVersion: "treeseed.development-candidate/v1";
3071
+ createdAt: string;
3070
3072
  artifacts: {
3071
3073
  kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle";
3072
3074
  projectId: string;
@@ -3075,9 +3077,7 @@ export declare const developmentCandidateSchema: z.ZodEffects<z.ZodObject<{
3075
3077
  digest: string;
3076
3078
  integrity?: string | undefined;
3077
3079
  }[];
3078
- schemaVersion: "treeseed.development-candidate/v1";
3079
3080
  sessionId: string;
3080
- createdAt: string;
3081
3081
  candidateId: string;
3082
3082
  source: {
3083
3083
  dirty: boolean;
@@ -3104,6 +3104,8 @@ export declare const developmentCandidateSchema: z.ZodEffects<z.ZodObject<{
3104
3104
  };
3105
3105
  promotable: boolean;
3106
3106
  }, {
3107
+ schemaVersion: "treeseed.development-candidate/v1";
3108
+ createdAt: string;
3107
3109
  artifacts: {
3108
3110
  kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle";
3109
3111
  projectId: string;
@@ -3112,9 +3114,7 @@ export declare const developmentCandidateSchema: z.ZodEffects<z.ZodObject<{
3112
3114
  digest: string;
3113
3115
  integrity?: string | undefined;
3114
3116
  }[];
3115
- schemaVersion: "treeseed.development-candidate/v1";
3116
3117
  sessionId: string;
3117
- createdAt: string;
3118
3118
  candidateId: string;
3119
3119
  source: {
3120
3120
  dirty: boolean;
@@ -3152,15 +3152,15 @@ export declare const releaseEvidenceSchema: z.ZodEffects<z.ZodObject<{
3152
3152
  workflowRunId: z.ZodString;
3153
3153
  createdAt: z.ZodString;
3154
3154
  }, "strict", z.ZodTypeAny, {
3155
- id: string;
3156
3155
  createdAt: string;
3156
+ id: string;
3157
3157
  receiptDigest: string;
3158
3158
  sourceCommit: string;
3159
3159
  stagingRef: string;
3160
3160
  workflowRunId: string;
3161
3161
  }, {
3162
- id: string;
3163
3162
  createdAt: string;
3163
+ id: string;
3164
3164
  receiptDigest: string;
3165
3165
  sourceCommit: string;
3166
3166
  stagingRef: string;
@@ -3244,9 +3244,10 @@ export declare const releaseEvidenceSchema: z.ZodEffects<z.ZodObject<{
3244
3244
  completedAt: string;
3245
3245
  }>;
3246
3246
  }, "strict", z.ZodTypeAny, {
3247
+ schemaVersion: "treeseed.release-evidence/v1";
3247
3248
  candidate: {
3248
- id: string;
3249
3249
  createdAt: string;
3250
+ id: string;
3250
3251
  receiptDigest: string;
3251
3252
  sourceCommit: string;
3252
3253
  stagingRef: string;
@@ -3260,7 +3261,6 @@ export declare const releaseEvidenceSchema: z.ZodEffects<z.ZodObject<{
3260
3261
  digest: string;
3261
3262
  size?: number | undefined;
3262
3263
  }[];
3263
- schemaVersion: "treeseed.release-evidence/v1";
3264
3264
  compatibilityAttestations: {
3265
3265
  digest: string;
3266
3266
  contractId: string;
@@ -3283,9 +3283,10 @@ export declare const releaseEvidenceSchema: z.ZodEffects<z.ZodObject<{
3283
3283
  digest: string;
3284
3284
  }[];
3285
3285
  }, {
3286
+ schemaVersion: "treeseed.release-evidence/v1";
3286
3287
  candidate: {
3287
- id: string;
3288
3288
  createdAt: string;
3289
+ id: string;
3289
3290
  receiptDigest: string;
3290
3291
  sourceCommit: string;
3291
3292
  stagingRef: string;
@@ -3299,7 +3300,6 @@ export declare const releaseEvidenceSchema: z.ZodEffects<z.ZodObject<{
3299
3300
  digest: string;
3300
3301
  size?: number | undefined;
3301
3302
  }[];
3302
- schemaVersion: "treeseed.release-evidence/v1";
3303
3303
  verification: {
3304
3304
  status: "passed";
3305
3305
  operations: string[];
@@ -3322,9 +3322,10 @@ export declare const releaseEvidenceSchema: z.ZodEffects<z.ZodObject<{
3322
3322
  digest: string;
3323
3323
  }[] | undefined;
3324
3324
  }>, {
3325
+ schemaVersion: "treeseed.release-evidence/v1";
3325
3326
  candidate: {
3326
- id: string;
3327
3327
  createdAt: string;
3328
+ id: string;
3328
3329
  receiptDigest: string;
3329
3330
  sourceCommit: string;
3330
3331
  stagingRef: string;
@@ -3338,7 +3339,6 @@ export declare const releaseEvidenceSchema: z.ZodEffects<z.ZodObject<{
3338
3339
  digest: string;
3339
3340
  size?: number | undefined;
3340
3341
  }[];
3341
- schemaVersion: "treeseed.release-evidence/v1";
3342
3342
  compatibilityAttestations: {
3343
3343
  digest: string;
3344
3344
  contractId: string;
@@ -3361,9 +3361,10 @@ export declare const releaseEvidenceSchema: z.ZodEffects<z.ZodObject<{
3361
3361
  digest: string;
3362
3362
  }[];
3363
3363
  }, {
3364
+ schemaVersion: "treeseed.release-evidence/v1";
3364
3365
  candidate: {
3365
- id: string;
3366
3366
  createdAt: string;
3367
+ id: string;
3367
3368
  receiptDigest: string;
3368
3369
  sourceCommit: string;
3369
3370
  stagingRef: string;
@@ -3377,7 +3378,6 @@ export declare const releaseEvidenceSchema: z.ZodEffects<z.ZodObject<{
3377
3378
  digest: string;
3378
3379
  size?: number | undefined;
3379
3380
  }[];
3380
- schemaVersion: "treeseed.release-evidence/v1";
3381
3381
  verification: {
3382
3382
  status: "passed";
3383
3383
  operations: string[];
@@ -55,6 +55,14 @@ const operationBindings = {
55
55
  "host storage connect": local("local.host.storage.connect"),
56
56
  "host storage reconcile": local("local.host.storage.reconcile"),
57
57
  "host storage rotate": local("local.host.storage.rotate"),
58
+ "host security plan": local("local.host.security.plan"),
59
+ "host security initialize": local("local.host.security.initialize"),
60
+ "host security status": local("local.host.security.status"),
61
+ "host security verify": local("local.host.security.verify"),
62
+ "host security rotate": local("local.host.security.rotate"),
63
+ "host security recovery verify": local("local.host.security.recovery.verify"),
64
+ "host sandbox status": local("local.host.sandbox.status"),
65
+ "host sandbox doctor": local("local.host.sandbox.doctor"),
58
66
  "host fleet status": local("local.host.fleet.status"),
59
67
  "host recovery status": local("local.host.recovery.status"),
60
68
  "host recovery retry": local("local.host.recovery.retry"),
@@ -186,6 +194,35 @@ function hostReset() {
186
194
  value.options = [...value.options ?? [], { name: "--confirm", description: "Confirm deletion of all manager-owned component data and receipts.", type: "boolean" }];
187
195
  return value;
188
196
  }
197
+ function hostSecurityInitialize() {
198
+ const value = leaf("initialize", "mutation", void 0, "credential");
199
+ if (value.nodeType !== "leaf") throw new Error("Host security initialization must be a leaf command.");
200
+ value.description = "Initialize the encrypted provider volume, application keys, and offline recovery bundle.";
201
+ value.options = [...value.options ?? [], { name: "--recovery-bundle", description: "Absolute path for the new encrypted offline recovery bundle.", type: "string", required: true }, { name: "--confirm", description: "Confirm provider-state migration and volume formatting.", type: "boolean", required: true }];
202
+ return value;
203
+ }
204
+ function hostSecurityRotate() {
205
+ const value = leaf("rotate", "mutation", "target", "credential");
206
+ if (value.nodeType !== "leaf") throw new Error("Host security rotation must be a leaf command.");
207
+ value.options = [
208
+ ...value.options ?? [],
209
+ { name: "--recovery-bundle", description: "Absolute path to the currently authenticated recovery bundle.", type: "string", required: true },
210
+ { name: "--new-recovery-bundle", description: "Absolute non-existing path for the replacement recovery bundle.", type: "string", required: true },
211
+ { name: "--confirm", description: "Confirm creation and activation of a new key generation.", type: "boolean", required: true }
212
+ ];
213
+ return value;
214
+ }
215
+ function hostRecoveryVerify() {
216
+ return {
217
+ nodeType: "leaf",
218
+ segment: "verify",
219
+ description: "Authenticate and inventory an offline recovery bundle without revealing secrets.",
220
+ kind: "read",
221
+ options: [{ name: "--bundle", description: "Absolute recovery bundle path.", type: "string", required: true }],
222
+ resultSchemaId: "treeseed.host-recovery-verification/v1",
223
+ execution: unavailable()
224
+ };
225
+ }
189
226
  function aiModeSet() {
190
227
  const value = leaf("set", "mutation", "mode", "authority");
191
228
  if (value.nodeType !== "leaf") throw new Error("AI mode set must be a leaf command.");
@@ -296,6 +333,8 @@ const commandTree = {
296
333
  leaf("reconcile", "mutation", void 0, "authority"),
297
334
  leaf("rotate", "mutation", "backend", "credential")
298
335
  ]),
336
+ branch("security", [leaf("plan"), hostSecurityInitialize(), leaf("status"), leaf("verify"), hostSecurityRotate(), branch("recovery", [hostRecoveryVerify()])]),
337
+ branch("sandbox", [leaf("status"), leaf("doctor")]),
299
338
  branch("fleet", [leaf("status")]),
300
339
  branch("update", [leaf("status"), leaf("check", "mutation"), leaf("apply", "mutation", void 0, "authority"), leaf("channel", "mutation", "track", "authority"), leaf("pause", "mutation", void 0, "authority"), leaf("resume", "mutation", void 0, "authority")]),
301
340
  branch("component", [leaf("list"), leaf("status", "read", "component"), leaf("enable", "mutation", "component", "authority"), leaf("disable", "mutation", "component", "destructive")]),
@@ -7,18 +7,22 @@ export declare function communicationOperations(): {
7
7
  timeoutSeconds?: number | undefined;
8
8
  recipients?: string[] | undefined;
9
9
  }, {
10
- status: "failed" | "running" | "partial" | "complete" | "queued";
10
+ teamId: string;
11
+ sendId: string;
11
12
  schemaVersion: "treeseed.communication-send-receipt/v4";
13
+ status: "failed" | "running" | "partial" | "complete" | "queued";
14
+ createdAt: string;
12
15
  targets: {
16
+ invocationId: string | null;
13
17
  status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
14
18
  projectId: string;
15
19
  completedAt: string | null;
16
20
  agentSlug: string;
17
21
  capacity: {
22
+ assignmentId: string | null;
18
23
  status: string | null;
19
24
  completedAt: string | null;
20
25
  providerId: string | null;
21
- assignmentId: string | null;
22
26
  executionProviderId: string | null;
23
27
  laneId: string | null;
24
28
  lanePurpose: string | null;
@@ -48,7 +52,6 @@ export declare function communicationOperations(): {
48
52
  traceEvents: Record<string, unknown>[];
49
53
  fullPayload?: Record<string, unknown> | undefined;
50
54
  };
51
- invocationId: string | null;
52
55
  projectSlug: string;
53
56
  definitionRevision: string;
54
57
  revisions: {
@@ -69,27 +72,32 @@ export declare function communicationOperations(): {
69
72
  acknowledgedAt: string | null;
70
73
  leaseAcceptedAt: string | null;
71
74
  }[];
72
- createdAt: string;
73
75
  responses: {
76
+ invocationId: string;
77
+ assignmentId: string | null;
74
78
  status: "failed" | "cancelled" | "responded" | "abstained";
75
- projectId: string;
76
79
  createdAt: string;
80
+ projectId: string;
77
81
  agentSlug: string;
78
- assignmentId: string | null;
79
- invocationId: string;
80
82
  projectSlug: string;
81
83
  requirement: "required" | "optional";
82
84
  messageRef: string;
83
85
  markdown: string;
84
86
  }[];
85
- teamId: string;
86
87
  channel: string;
87
88
  topic: {
88
89
  id: string;
89
90
  slug: string;
90
91
  };
91
92
  events: {
93
+ teamId: string;
94
+ topicId: string;
95
+ sendId: string | null;
96
+ invocationId: string | null;
97
+ assignmentId: string | null;
98
+ sequence: number;
92
99
  type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
100
+ payload: Record<string, unknown>;
93
101
  id: string;
94
102
  actor: {
95
103
  kind: "control-plane" | "provider" | "agent" | "user";
@@ -97,17 +105,9 @@ export declare function communicationOperations(): {
97
105
  handle: string | null;
98
106
  };
99
107
  summary: string;
100
- teamId: string;
101
108
  channel: string;
102
- assignmentId: string | null;
103
- sequence: number;
104
- topicId: string;
105
109
  occurredAt: string;
106
- sendId: string | null;
107
- invocationId: string | null;
108
- payload: Record<string, unknown>;
109
110
  }[];
110
- sendId: string;
111
111
  updatedAt: string;
112
112
  projectStreams: {
113
113
  id: string;
@@ -124,18 +124,22 @@ export declare function communicationOperations(): {
124
124
  }, {
125
125
  diagnostics?: "metadata" | "full" | undefined;
126
126
  }, undefined, {
127
- status: "failed" | "running" | "partial" | "complete" | "queued";
127
+ teamId: string;
128
+ sendId: string;
128
129
  schemaVersion: "treeseed.communication-send-receipt/v4";
130
+ status: "failed" | "running" | "partial" | "complete" | "queued";
131
+ createdAt: string;
129
132
  targets: {
133
+ invocationId: string | null;
130
134
  status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
131
135
  projectId: string;
132
136
  completedAt: string | null;
133
137
  agentSlug: string;
134
138
  capacity: {
139
+ assignmentId: string | null;
135
140
  status: string | null;
136
141
  completedAt: string | null;
137
142
  providerId: string | null;
138
- assignmentId: string | null;
139
143
  executionProviderId: string | null;
140
144
  laneId: string | null;
141
145
  lanePurpose: string | null;
@@ -165,7 +169,6 @@ export declare function communicationOperations(): {
165
169
  traceEvents: Record<string, unknown>[];
166
170
  fullPayload?: Record<string, unknown> | undefined;
167
171
  };
168
- invocationId: string | null;
169
172
  projectSlug: string;
170
173
  definitionRevision: string;
171
174
  revisions: {
@@ -186,27 +189,32 @@ export declare function communicationOperations(): {
186
189
  acknowledgedAt: string | null;
187
190
  leaseAcceptedAt: string | null;
188
191
  }[];
189
- createdAt: string;
190
192
  responses: {
193
+ invocationId: string;
194
+ assignmentId: string | null;
191
195
  status: "failed" | "cancelled" | "responded" | "abstained";
192
- projectId: string;
193
196
  createdAt: string;
197
+ projectId: string;
194
198
  agentSlug: string;
195
- assignmentId: string | null;
196
- invocationId: string;
197
199
  projectSlug: string;
198
200
  requirement: "required" | "optional";
199
201
  messageRef: string;
200
202
  markdown: string;
201
203
  }[];
202
- teamId: string;
203
204
  channel: string;
204
205
  topic: {
205
206
  id: string;
206
207
  slug: string;
207
208
  };
208
209
  events: {
210
+ teamId: string;
211
+ topicId: string;
212
+ sendId: string | null;
213
+ invocationId: string | null;
214
+ assignmentId: string | null;
215
+ sequence: number;
209
216
  type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
217
+ payload: Record<string, unknown>;
210
218
  id: string;
211
219
  actor: {
212
220
  kind: "control-plane" | "provider" | "agent" | "user";
@@ -214,17 +222,9 @@ export declare function communicationOperations(): {
214
222
  handle: string | null;
215
223
  };
216
224
  summary: string;
217
- teamId: string;
218
225
  channel: string;
219
- assignmentId: string | null;
220
- sequence: number;
221
- topicId: string;
222
226
  occurredAt: string;
223
- sendId: string | null;
224
- invocationId: string | null;
225
- payload: Record<string, unknown>;
226
227
  }[];
227
- sendId: string;
228
228
  updatedAt: string;
229
229
  projectStreams: {
230
230
  id: string;
@@ -243,10 +243,10 @@ export declare function communicationOperations(): {
243
243
  limit?: number | undefined;
244
244
  }, undefined, {
245
245
  items: {
246
+ teamId: string;
246
247
  status: "active" | "archived";
247
- id: string;
248
248
  createdAt: string;
249
- teamId: string;
249
+ id: string;
250
250
  updatedAt: string;
251
251
  slug: string;
252
252
  streams: {
@@ -272,10 +272,10 @@ export declare function communicationOperations(): {
272
272
  teamId: string;
273
273
  channel: string;
274
274
  }, {}, undefined, {
275
+ teamId: string;
275
276
  status: "active" | "archived";
276
- id: string;
277
277
  createdAt: string;
278
- teamId: string;
278
+ id: string;
279
279
  updatedAt: string;
280
280
  slug: string;
281
281
  streams: {
@@ -306,10 +306,10 @@ export declare function communicationOperations(): {
306
306
  }, undefined, {
307
307
  cursor: string | null;
308
308
  topic: {
309
+ teamId: string;
309
310
  status: "active" | "archived";
310
- id: string;
311
311
  createdAt: string;
312
- teamId: string;
312
+ id: string;
313
313
  updatedAt: string;
314
314
  slug: string;
315
315
  streams: {
@@ -330,7 +330,14 @@ export declare function communicationOperations(): {
330
330
  }[];
331
331
  };
332
332
  events: {
333
+ teamId: string;
334
+ topicId: string;
335
+ sendId: string | null;
336
+ invocationId: string | null;
337
+ assignmentId: string | null;
338
+ sequence: number;
333
339
  type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
340
+ payload: Record<string, unknown>;
334
341
  id: string;
335
342
  actor: {
336
343
  kind: "control-plane" | "provider" | "agent" | "user";
@@ -338,15 +345,8 @@ export declare function communicationOperations(): {
338
345
  handle: string | null;
339
346
  };
340
347
  summary: string;
341
- teamId: string;
342
348
  channel: string;
343
- assignmentId: string | null;
344
- sequence: number;
345
- topicId: string;
346
349
  occurredAt: string;
347
- sendId: string | null;
348
- invocationId: string | null;
349
- payload: Record<string, unknown>;
350
350
  }[];
351
351
  }>;
352
352
  topicsSubscribe: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
@@ -398,10 +398,10 @@ export declare function providerDiscussionResponseOperation(): import("../contro
398
398
  markdown?: string | undefined;
399
399
  outcome?: "responded" | "abstained" | undefined;
400
400
  }, {
401
- status: "responded" | "abstained";
402
- schemaVersion: "treeseed.provider-discussion-response-receipt/v1";
403
- assignmentId: string;
404
401
  invocationId: string;
402
+ assignmentId: string;
403
+ schemaVersion: "treeseed.provider-discussion-response-receipt/v1";
404
+ status: "responded" | "abstained";
405
405
  messageRef: string;
406
406
  settledAt: string;
407
407
  }>;
@@ -420,11 +420,11 @@ export declare function providerCommunicationLifecycleOperations(): {
420
420
  traceEvent: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
421
421
  assignmentId: string;
422
422
  }, {}, {
423
+ sequence: number;
423
424
  type: string;
425
+ payload: Record<string, unknown>;
424
426
  summary: string;
425
- sequence: number;
426
427
  occurredAt: string;
427
- payload: Record<string, unknown>;
428
428
  runnerId: string;
429
429
  leaseToken: string;
430
430
  protectedPayload?: Record<string, unknown> | undefined;