@tangle-network/agent-interface 5.7.0 → 5.8.0

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 (44) hide show
  1. package/README.md +11 -2
  2. package/dist/agent-candidate-code-schema.d.ts +24 -24
  3. package/dist/agent-candidate-execution-plan-schema.d.ts +245 -245
  4. package/dist/agent-candidate-lineage-schema.d.ts +2 -2
  5. package/dist/agent-candidate-outcome-schema.d.ts +56 -56
  6. package/dist/agent-candidate-profile-schema.d.ts +22 -22
  7. package/dist/agent-candidate-promotion-schema.d.ts +1824 -1824
  8. package/dist/agent-candidate-receipt-schema.d.ts +201 -201
  9. package/dist/agent-candidate-schema-common.d.ts +3 -3
  10. package/dist/agent-candidate-schema.d.ts +36 -36
  11. package/dist/agent-candidate-task-schema.d.ts +16 -16
  12. package/dist/agent-execution-preparation-receipt.d.ts +81 -81
  13. package/dist/agent-improvement-measurement-schema.d.ts +25 -25
  14. package/dist/agent-profile-improvement-schema.d.ts +75 -75
  15. package/dist/agent-profile.d.ts +10 -28
  16. package/dist/agent-workspace-lease.d.ts +4 -4
  17. package/dist/environment-interactive-control.d.ts +473 -473
  18. package/dist/environment-interactive-start.d.ts +38 -29
  19. package/dist/environment-observation.d.ts +32 -32
  20. package/dist/environment-profile-capabilities.d.ts +1 -1
  21. package/dist/environment-runtime.d.ts +171 -144
  22. package/dist/harness-capabilities.d.ts +17 -18
  23. package/dist/harness-capabilities.js +41 -44
  24. package/dist/harness.d.ts +13 -11
  25. package/dist/harness.js +5 -0
  26. package/dist/interaction-envelope.d.ts +26 -26
  27. package/dist/interaction-fields.d.ts +22 -22
  28. package/dist/interaction-permissions.d.ts +2 -2
  29. package/dist/learning-state.d.ts +143 -143
  30. package/dist/portable-context-base.d.ts +1 -1
  31. package/dist/portable-context-commitments.d.ts +8 -8
  32. package/dist/portable-context-continuation.d.ts +4 -4
  33. package/dist/portable-context-plan-request.d.ts +1 -1
  34. package/dist/portable-context-plan-wire.d.ts +2 -2
  35. package/dist/portable-context-plan.d.ts +5 -5
  36. package/dist/portable-context-shared.d.ts +1 -1
  37. package/dist/portable-context-transfer.d.ts +43 -34
  38. package/dist/profile-schema.d.ts +78 -60
  39. package/dist/profile-schema.js +7 -3
  40. package/dist/proxy-secrets.d.ts +12 -12
  41. package/dist/runtime-control.d.ts +5 -5
  42. package/dist/workspace-cleanup.d.ts +3 -3
  43. package/dist/workspace-fork.d.ts +4 -4
  44. package/package.json +5 -5
@@ -9,8 +9,8 @@ export declare const ContextPlanAcceptanceSchema: z.ZodObject<{
9
9
  acceptedAt: z.ZodISODateTime;
10
10
  acceptedBy: z.ZodEnum<{
11
11
  policy: "policy";
12
- system: "system";
13
12
  user: "user";
13
+ system: "system";
14
14
  }>;
15
15
  }, z.core.$strict>;
16
16
  export type ContextPlanAcceptance = z.infer<typeof ContextPlanAcceptanceSchema>;
@@ -79,9 +79,9 @@ export declare const ContextTransferRequestSchema: z.ZodObject<{
79
79
  parts: z.ZodArray<z.ZodObject<{
80
80
  partIndex: z.ZodNumber;
81
81
  action: z.ZodEnum<{
82
+ transform: "transform";
82
83
  include: "include";
83
84
  omit: "omit";
84
- transform: "transform";
85
85
  }>;
86
86
  outputDigest: z.ZodOptional<z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>>;
87
87
  }, z.core.$strict>>;
@@ -104,9 +104,9 @@ export declare const ContextTransferRequestSchema: z.ZodObject<{
104
104
  messages: z.ZodArray<z.ZodObject<{
105
105
  id: z.ZodString;
106
106
  role: z.ZodEnum<{
107
+ user: "user";
107
108
  assistant: "assistant";
108
109
  system: "system";
109
- user: "user";
110
110
  }>;
111
111
  parts: z.ZodArray<z.ZodCustom<unknown, unknown>>;
112
112
  timestamp: z.ZodISODateTime;
@@ -130,8 +130,8 @@ export declare const ContextTransferRequestSchema: z.ZodObject<{
130
130
  acceptedAt: z.ZodISODateTime;
131
131
  acceptedBy: z.ZodEnum<{
132
132
  policy: "policy";
133
- system: "system";
134
133
  user: "user";
134
+ system: "system";
135
135
  }>;
136
136
  }, z.core.$strict>;
137
137
  profile: z.ZodOptional<z.ZodObject<{
@@ -149,13 +149,13 @@ export declare const ContextTransferRequestSchema: z.ZodObject<{
149
149
  small: z.ZodOptional<z.ZodString>;
150
150
  provider: z.ZodOptional<z.ZodString>;
151
151
  reasoningEffort: z.ZodOptional<z.ZodEnum<{
152
- high: "high";
152
+ none: "none";
153
+ minimal: "minimal";
153
154
  low: "low";
154
155
  medium: "medium";
155
- minimal: "minimal";
156
- none: "none";
157
- ultracode: "ultracode";
156
+ high: "high";
158
157
  xhigh: "xhigh";
158
+ ultracode: "ultracode";
159
159
  }>>;
160
160
  maxVisibleOutputTokens: z.ZodOptional<z.ZodNumber>;
161
161
  maxReasoningTokens: z.ZodOptional<z.ZodNumber>;
@@ -163,44 +163,53 @@ export declare const ContextTransferRequestSchema: z.ZodObject<{
163
163
  metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
164
164
  }, z.core.$strict>>;
165
165
  harness: z.ZodOptional<z.ZodEnum<{
166
- acp: "acp";
167
- amp: "amp";
168
166
  "claude-code": "claude-code";
169
- "cli-base": "cli-base";
170
- codex: "codex";
171
- cursor: "cursor";
172
- "factory-droids": "factory-droids";
173
- forge: "forge";
174
- gemini: "gemini";
175
- hermes: "hermes";
176
- "kimi-code": "kimi-code";
177
167
  nanoclaw: "nanoclaw";
178
- openclaw: "openclaw";
168
+ codex: "codex";
179
169
  opencode: "opencode";
170
+ "kimi-code": "kimi-code";
180
171
  pi: "pi";
181
172
  prime: "prime";
173
+ gemini: "gemini";
174
+ hermes: "hermes";
175
+ openclaw: "openclaw";
176
+ amp: "amp";
177
+ "factory-droids": "factory-droids";
178
+ forge: "forge";
179
+ cursor: "cursor";
180
+ acp: "acp";
181
+ "cli-base": "cli-base";
182
182
  }>>;
183
183
  seats: z.ZodOptional<z.ZodArray<z.ZodObject<{
184
184
  harness: z.ZodEnum<{
185
- acp: "acp";
186
- amp: "amp";
187
185
  "claude-code": "claude-code";
188
- "cli-base": "cli-base";
189
- codex: "codex";
190
- cursor: "cursor";
191
- "factory-droids": "factory-droids";
192
- forge: "forge";
193
- gemini: "gemini";
194
- hermes: "hermes";
195
- "kimi-code": "kimi-code";
196
186
  nanoclaw: "nanoclaw";
197
- openclaw: "openclaw";
187
+ codex: "codex";
198
188
  opencode: "opencode";
189
+ "kimi-code": "kimi-code";
199
190
  pi: "pi";
200
191
  prime: "prime";
192
+ gemini: "gemini";
193
+ hermes: "hermes";
194
+ openclaw: "openclaw";
195
+ amp: "amp";
196
+ "factory-droids": "factory-droids";
197
+ forge: "forge";
198
+ cursor: "cursor";
199
+ acp: "acp";
200
+ "cli-base": "cli-base";
201
201
  }>;
202
202
  provider: z.ZodString;
203
203
  model: z.ZodString;
204
+ reasoningEffort: z.ZodOptional<z.ZodEnum<{
205
+ none: "none";
206
+ minimal: "minimal";
207
+ low: "low";
208
+ medium: "medium";
209
+ high: "high";
210
+ xhigh: "xhigh";
211
+ ultracode: "ultracode";
212
+ }>>;
204
213
  selector: z.ZodUnion<readonly [z.ZodObject<{
205
214
  kind: z.ZodLiteral<"all-eligible">;
206
215
  }, z.core.$strict>, z.ZodObject<{
@@ -216,8 +225,8 @@ export declare const ContextTransferRequestSchema: z.ZodObject<{
216
225
  paths: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
217
226
  envName: z.ZodString;
218
227
  secretRef: z.ZodObject<{
219
- kind: z.ZodLiteral<"secret-ref">;
220
228
  key: z.ZodString;
229
+ kind: z.ZodLiteral<"secret-ref">;
221
230
  }, z.core.$strict>;
222
231
  presentation: z.ZodDiscriminatedUnion<[z.ZodObject<{
223
232
  type: z.ZodLiteral<"bearer">;
@@ -347,7 +356,7 @@ export declare const ContextTransferRequestSchema: z.ZodObject<{
347
356
  env?: Record<string, {
348
357
  kind: "secret-ref";
349
358
  key: string;
350
- format?: "bearer" | "raw" | undefined;
359
+ format?: "raw" | "bearer" | undefined;
351
360
  } | {
352
361
  kind: "public";
353
362
  value: string;
@@ -360,7 +369,7 @@ export declare const ContextTransferRequestSchema: z.ZodObject<{
360
369
  env?: Record<string, {
361
370
  kind: "secret-ref";
362
371
  key: string;
363
- format?: "bearer" | "raw" | undefined;
372
+ format?: "raw" | "bearer" | undefined;
364
373
  } | {
365
374
  kind: "public";
366
375
  value: string;
@@ -644,8 +653,8 @@ export declare const ContextTransferResultSchema: z.ZodDiscriminatedUnion<[z.Zod
644
653
  existingRequestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
645
654
  }, z.core.$strict>, z.ZodObject<{
646
655
  status: z.ZodEnum<{
647
- transport_failure: "transport_failure";
648
656
  unknown: "unknown";
657
+ transport_failure: "transport_failure";
649
658
  }>;
650
659
  operationId: z.ZodString;
651
660
  requestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
@@ -117,13 +117,13 @@ export declare const agentProfileResourcesSchema: z.ZodObject<{
117
117
  failOnError: z.ZodOptional<z.ZodBoolean>;
118
118
  }, z.core.$strict>;
119
119
  export declare const reasoningEffortSchema: z.ZodEnum<{
120
- high: "high";
120
+ none: "none";
121
+ minimal: "minimal";
121
122
  low: "low";
122
123
  medium: "medium";
123
- minimal: "minimal";
124
- none: "none";
125
- ultracode: "ultracode";
124
+ high: "high";
126
125
  xhigh: "xhigh";
126
+ ultracode: "ultracode";
127
127
  }>;
128
128
  /**
129
129
  * Enforce the token ceilings that live together: each single ceiling must not
@@ -140,13 +140,13 @@ export declare const agentProfileModelHintsBaseSchema: z.ZodObject<{
140
140
  small: z.ZodOptional<z.ZodString>;
141
141
  provider: z.ZodOptional<z.ZodString>;
142
142
  reasoningEffort: z.ZodOptional<z.ZodEnum<{
143
- high: "high";
143
+ none: "none";
144
+ minimal: "minimal";
144
145
  low: "low";
145
146
  medium: "medium";
146
- minimal: "minimal";
147
- none: "none";
148
- ultracode: "ultracode";
147
+ high: "high";
149
148
  xhigh: "xhigh";
149
+ ultracode: "ultracode";
150
150
  }>>;
151
151
  maxVisibleOutputTokens: z.ZodOptional<z.ZodNumber>;
152
152
  maxReasoningTokens: z.ZodOptional<z.ZodNumber>;
@@ -158,13 +158,13 @@ export declare const agentProfileModelHintsSchema: z.ZodObject<{
158
158
  small: z.ZodOptional<z.ZodString>;
159
159
  provider: z.ZodOptional<z.ZodString>;
160
160
  reasoningEffort: z.ZodOptional<z.ZodEnum<{
161
- high: "high";
161
+ none: "none";
162
+ minimal: "minimal";
162
163
  low: "low";
163
164
  medium: "medium";
164
- minimal: "minimal";
165
- none: "none";
166
- ultracode: "ultracode";
165
+ high: "high";
167
166
  xhigh: "xhigh";
167
+ ultracode: "ultracode";
168
168
  }>>;
169
169
  maxVisibleOutputTokens: z.ZodOptional<z.ZodNumber>;
170
170
  maxReasoningTokens: z.ZodOptional<z.ZodNumber>;
@@ -174,25 +174,34 @@ export declare const agentProfileModelHintsSchema: z.ZodObject<{
174
174
  /** Ordered account selection policy, without credentials or ambient model defaults. */
175
175
  export declare const agentProfileSeatSchema: z.ZodObject<{
176
176
  harness: z.ZodEnum<{
177
- acp: "acp";
178
- amp: "amp";
179
177
  "claude-code": "claude-code";
180
- "cli-base": "cli-base";
181
- codex: "codex";
182
- cursor: "cursor";
183
- "factory-droids": "factory-droids";
184
- forge: "forge";
185
- gemini: "gemini";
186
- hermes: "hermes";
187
- "kimi-code": "kimi-code";
188
178
  nanoclaw: "nanoclaw";
189
- openclaw: "openclaw";
179
+ codex: "codex";
190
180
  opencode: "opencode";
181
+ "kimi-code": "kimi-code";
191
182
  pi: "pi";
192
183
  prime: "prime";
184
+ gemini: "gemini";
185
+ hermes: "hermes";
186
+ openclaw: "openclaw";
187
+ amp: "amp";
188
+ "factory-droids": "factory-droids";
189
+ forge: "forge";
190
+ cursor: "cursor";
191
+ acp: "acp";
192
+ "cli-base": "cli-base";
193
193
  }>;
194
194
  provider: z.ZodString;
195
195
  model: z.ZodString;
196
+ reasoningEffort: z.ZodOptional<z.ZodEnum<{
197
+ none: "none";
198
+ minimal: "minimal";
199
+ low: "low";
200
+ medium: "medium";
201
+ high: "high";
202
+ xhigh: "xhigh";
203
+ ultracode: "ultracode";
204
+ }>>;
196
205
  selector: z.ZodUnion<readonly [z.ZodObject<{
197
206
  kind: z.ZodLiteral<"all-eligible">;
198
207
  }, z.core.$strict>, z.ZodObject<{
@@ -223,8 +232,8 @@ export declare const agentProfileSecretRefSchema: z.ZodObject<{
223
232
  kind: z.ZodLiteral<"secret-ref">;
224
233
  key: z.ZodString;
225
234
  format: z.ZodOptional<z.ZodEnum<{
226
- bearer: "bearer";
227
235
  raw: "raw";
236
+ bearer: "bearer";
228
237
  }>>;
229
238
  }, z.core.$strict>;
230
239
  export declare const agentProfileConfigValueSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -234,21 +243,21 @@ export declare const agentProfileConfigValueSchema: z.ZodDiscriminatedUnion<[z.Z
234
243
  kind: z.ZodLiteral<"secret-ref">;
235
244
  key: z.ZodString;
236
245
  format: z.ZodOptional<z.ZodEnum<{
237
- bearer: "bearer";
238
246
  raw: "raw";
247
+ bearer: "bearer";
239
248
  }>>;
240
249
  }, z.core.$strict>], "kind">;
241
250
  export declare const agentProfileEnvironmentSchema: z.ZodType<Record<string, {
242
251
  kind: "secret-ref";
243
252
  key: string;
244
- format?: "bearer" | "raw" | undefined;
253
+ format?: "raw" | "bearer" | undefined;
245
254
  } | {
246
255
  kind: "public";
247
256
  value: string;
248
257
  }>, unknown, z.core.$ZodTypeInternals<Record<string, {
249
258
  kind: "secret-ref";
250
259
  key: string;
251
- format?: "bearer" | "raw" | undefined;
260
+ format?: "raw" | "bearer" | undefined;
252
261
  } | {
253
262
  kind: "public";
254
263
  value: string;
@@ -256,14 +265,14 @@ export declare const agentProfileEnvironmentSchema: z.ZodType<Record<string, {
256
265
  export declare const agentProfileHeaderSchema: z.ZodType<Record<string, {
257
266
  kind: "secret-ref";
258
267
  key: string;
259
- format?: "bearer" | "raw" | undefined;
268
+ format?: "raw" | "bearer" | undefined;
260
269
  } | {
261
270
  kind: "public";
262
271
  value: string;
263
272
  }>, unknown, z.core.$ZodTypeInternals<Record<string, {
264
273
  kind: "secret-ref";
265
274
  key: string;
266
- format?: "bearer" | "raw" | undefined;
275
+ format?: "raw" | "bearer" | undefined;
267
276
  } | {
268
277
  kind: "public";
269
278
  value: string;
@@ -285,14 +294,14 @@ export declare const agentProfileHookCommandSchema: z.ZodObject<{
285
294
  env: z.ZodOptional<z.ZodType<Record<string, {
286
295
  kind: "secret-ref";
287
296
  key: string;
288
- format?: "bearer" | "raw" | undefined;
297
+ format?: "raw" | "bearer" | undefined;
289
298
  } | {
290
299
  kind: "public";
291
300
  value: string;
292
301
  }>, unknown, z.core.$ZodTypeInternals<Record<string, {
293
302
  kind: "secret-ref";
294
303
  key: string;
295
- format?: "bearer" | "raw" | undefined;
304
+ format?: "raw" | "bearer" | undefined;
296
305
  } | {
297
306
  kind: "public";
298
307
  value: string;
@@ -496,13 +505,13 @@ export declare const agentProfileSchema: z.ZodObject<{
496
505
  small: z.ZodOptional<z.ZodString>;
497
506
  provider: z.ZodOptional<z.ZodString>;
498
507
  reasoningEffort: z.ZodOptional<z.ZodEnum<{
499
- high: "high";
508
+ none: "none";
509
+ minimal: "minimal";
500
510
  low: "low";
501
511
  medium: "medium";
502
- minimal: "minimal";
503
- none: "none";
504
- ultracode: "ultracode";
512
+ high: "high";
505
513
  xhigh: "xhigh";
514
+ ultracode: "ultracode";
506
515
  }>>;
507
516
  maxVisibleOutputTokens: z.ZodOptional<z.ZodNumber>;
508
517
  maxReasoningTokens: z.ZodOptional<z.ZodNumber>;
@@ -510,44 +519,53 @@ export declare const agentProfileSchema: z.ZodObject<{
510
519
  metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
511
520
  }, z.core.$strict>>;
512
521
  harness: z.ZodOptional<z.ZodEnum<{
513
- acp: "acp";
514
- amp: "amp";
515
522
  "claude-code": "claude-code";
516
- "cli-base": "cli-base";
517
- codex: "codex";
518
- cursor: "cursor";
519
- "factory-droids": "factory-droids";
520
- forge: "forge";
521
- gemini: "gemini";
522
- hermes: "hermes";
523
- "kimi-code": "kimi-code";
524
523
  nanoclaw: "nanoclaw";
525
- openclaw: "openclaw";
524
+ codex: "codex";
526
525
  opencode: "opencode";
526
+ "kimi-code": "kimi-code";
527
527
  pi: "pi";
528
528
  prime: "prime";
529
+ gemini: "gemini";
530
+ hermes: "hermes";
531
+ openclaw: "openclaw";
532
+ amp: "amp";
533
+ "factory-droids": "factory-droids";
534
+ forge: "forge";
535
+ cursor: "cursor";
536
+ acp: "acp";
537
+ "cli-base": "cli-base";
529
538
  }>>;
530
539
  seats: z.ZodOptional<z.ZodArray<z.ZodObject<{
531
540
  harness: z.ZodEnum<{
532
- acp: "acp";
533
- amp: "amp";
534
541
  "claude-code": "claude-code";
535
- "cli-base": "cli-base";
536
- codex: "codex";
537
- cursor: "cursor";
538
- "factory-droids": "factory-droids";
539
- forge: "forge";
540
- gemini: "gemini";
541
- hermes: "hermes";
542
- "kimi-code": "kimi-code";
543
542
  nanoclaw: "nanoclaw";
544
- openclaw: "openclaw";
543
+ codex: "codex";
545
544
  opencode: "opencode";
545
+ "kimi-code": "kimi-code";
546
546
  pi: "pi";
547
547
  prime: "prime";
548
+ gemini: "gemini";
549
+ hermes: "hermes";
550
+ openclaw: "openclaw";
551
+ amp: "amp";
552
+ "factory-droids": "factory-droids";
553
+ forge: "forge";
554
+ cursor: "cursor";
555
+ acp: "acp";
556
+ "cli-base": "cli-base";
548
557
  }>;
549
558
  provider: z.ZodString;
550
559
  model: z.ZodString;
560
+ reasoningEffort: z.ZodOptional<z.ZodEnum<{
561
+ none: "none";
562
+ minimal: "minimal";
563
+ low: "low";
564
+ medium: "medium";
565
+ high: "high";
566
+ xhigh: "xhigh";
567
+ ultracode: "ultracode";
568
+ }>>;
551
569
  selector: z.ZodUnion<readonly [z.ZodObject<{
552
570
  kind: z.ZodLiteral<"all-eligible">;
553
571
  }, z.core.$strict>, z.ZodObject<{
@@ -563,8 +581,8 @@ export declare const agentProfileSchema: z.ZodObject<{
563
581
  paths: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
564
582
  envName: z.ZodString;
565
583
  secretRef: z.ZodObject<{
566
- kind: z.ZodLiteral<"secret-ref">;
567
584
  key: z.ZodString;
585
+ kind: z.ZodLiteral<"secret-ref">;
568
586
  }, z.core.$strict>;
569
587
  presentation: z.ZodDiscriminatedUnion<[z.ZodObject<{
570
588
  type: z.ZodLiteral<"bearer">;
@@ -694,7 +712,7 @@ export declare const agentProfileSchema: z.ZodObject<{
694
712
  env?: Record<string, {
695
713
  kind: "secret-ref";
696
714
  key: string;
697
- format?: "bearer" | "raw" | undefined;
715
+ format?: "raw" | "bearer" | undefined;
698
716
  } | {
699
717
  kind: "public";
700
718
  value: string;
@@ -707,7 +725,7 @@ export declare const agentProfileSchema: z.ZodObject<{
707
725
  env?: Record<string, {
708
726
  kind: "secret-ref";
709
727
  key: string;
710
- format?: "bearer" | "raw" | undefined;
728
+ format?: "raw" | "bearer" | undefined;
711
729
  } | {
712
730
  kind: "public";
713
731
  value: string;
@@ -96,6 +96,7 @@ export const agentProfileSeatSchema = z.strictObject({
96
96
  harness: harnessTypeSchema,
97
97
  provider: z.string().regex(/^[a-z][a-z0-9-]*$/),
98
98
  model: z.string().min(1).refine((value) => value.trim() === value, "model must be canonical"),
99
+ reasoningEffort: reasoningEffortSchema.optional(),
99
100
  selector: z.union([
100
101
  z.strictObject({ kind: z.literal("all-eligible") }),
101
102
  z.strictObject({ kind: z.literal("seat"), id: z.string().min(1).refine((value) => value.trim() === value, "seat id must be canonical") }),
@@ -404,6 +405,9 @@ export const agentProfileSchema = z
404
405
  first.model !== profile.model?.default) {
405
406
  context.addIssue({ code: "custom", path: ["seats", 0], message: "first seat must match profile harness, model.provider, and model.default" });
406
407
  }
408
+ if (first.reasoningEffort !== undefined && first.reasoningEffort !== profile.model?.reasoningEffort) {
409
+ context.addIssue({ code: "custom", path: ["seats", 0, "reasoningEffort"], message: "first seat reasoningEffort must match profile model.reasoningEffort" });
410
+ }
407
411
  if (first.tools !== undefined &&
408
412
  canonicalAgentProfileJson(first.tools) !== canonicalAgentProfileJson(profile.tools)) {
409
413
  context.addIssue({ code: "custom", path: ["seats", 0, "tools"], message: "first seat tools must match profile tools" });
@@ -420,14 +424,14 @@ export const agentProfileSchema = z
420
424
  if (!harnessHonorsModel(seat.harness)) {
421
425
  context.addIssue({ code: "custom", path: ["seats", index, "harness"], message: "seat harness does not honor an exact model choice" });
422
426
  }
423
- const support = harnessModelSupport(seat.harness, seat.model, { reasoningEffort: profile.model?.reasoningEffort });
427
+ const effort = seat.reasoningEffort ?? profile.model?.reasoningEffort;
428
+ const support = harnessModelSupport(seat.harness, seat.model, { reasoningEffort: effort });
424
429
  if (!support.supported) {
425
430
  context.addIssue({ code: "custom", path: ["seats", index, "model"], message: support.message });
426
431
  }
427
- const effort = profile.model?.reasoningEffort;
428
432
  if (effort !== undefined && (!harnessHonorsEffort(seat.harness) ||
429
433
  !harnessReasoningEfforts(seat.harness).includes(effort))) {
430
- context.addIssue({ code: "custom", path: ["seats", index, "harness"], message: "seat harness cannot honor profile reasoning effort" });
434
+ context.addIssue({ code: "custom", path: ["seats", index, "reasoningEffort"], message: "seat harness cannot honor the stage reasoning effort" });
431
435
  }
432
436
  const prompt = harnessSystemPromptIntents(seat.harness);
433
437
  if (profile.prompt?.systemPrompt !== undefined && !prompt.replace) {
@@ -32,8 +32,8 @@ export declare const ProxySecretBindingSchema: z.ZodObject<{
32
32
  paths: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
33
33
  envName: z.ZodString;
34
34
  secretRef: z.ZodObject<{
35
- kind: z.ZodLiteral<"secret-ref">;
36
35
  key: z.ZodString;
36
+ kind: z.ZodLiteral<"secret-ref">;
37
37
  }, z.core.$strict>;
38
38
  presentation: z.ZodDiscriminatedUnion<[z.ZodObject<{
39
39
  type: z.ZodLiteral<"bearer">;
@@ -60,8 +60,8 @@ export declare const ProxySecretsSchema: z.ZodArray<z.ZodObject<{
60
60
  paths: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
61
61
  envName: z.ZodString;
62
62
  secretRef: z.ZodObject<{
63
- kind: z.ZodLiteral<"secret-ref">;
64
63
  key: z.ZodString;
64
+ kind: z.ZodLiteral<"secret-ref">;
65
65
  }, z.core.$strict>;
66
66
  presentation: z.ZodDiscriminatedUnion<[z.ZodObject<{
67
67
  type: z.ZodLiteral<"bearer">;
@@ -141,14 +141,16 @@ export type ProxySecretGrant = z.infer<typeof ProxySecretGrantSchema>;
141
141
  * credential revocation. Receipts contain metadata only, never secret or placeholder bytes.
142
142
  */
143
143
  export declare const ProxySecretReceiptSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
144
+ status: z.ZodLiteral<"proxy-installed">;
145
+ materializationAcknowledged: z.ZodLiteral<false>;
144
146
  protocolVersion: z.ZodLiteral<1>;
145
147
  sandboxId: z.ZodString;
146
148
  generation: z.ZodNumber;
147
149
  bindings: z.ZodArray<z.ZodObject<{
148
150
  envName: z.ZodString;
149
151
  secretRef: z.ZodObject<{
150
- kind: z.ZodLiteral<"secret-ref">;
151
152
  key: z.ZodString;
153
+ kind: z.ZodLiteral<"secret-ref">;
152
154
  }, z.core.$strict>;
153
155
  grant: z.ZodObject<{
154
156
  protocolVersion: z.ZodLiteral<1>;
@@ -189,17 +191,17 @@ export declare const ProxySecretReceiptSchema: z.ZodDiscriminatedUnion<[z.ZodObj
189
191
  }, z.core.$strict>;
190
192
  }, z.core.$strict>>;
191
193
  proxyAcknowledged: z.ZodLiteral<true>;
192
- status: z.ZodLiteral<"proxy-installed">;
193
- materializationAcknowledged: z.ZodLiteral<false>;
194
194
  }, z.core.$strict>, z.ZodObject<{
195
+ status: z.ZodLiteral<"installed">;
196
+ materializationAcknowledged: z.ZodLiteral<true>;
195
197
  protocolVersion: z.ZodLiteral<1>;
196
198
  sandboxId: z.ZodString;
197
199
  generation: z.ZodNumber;
198
200
  bindings: z.ZodArray<z.ZodObject<{
199
201
  envName: z.ZodString;
200
202
  secretRef: z.ZodObject<{
201
- kind: z.ZodLiteral<"secret-ref">;
202
203
  key: z.ZodString;
204
+ kind: z.ZodLiteral<"secret-ref">;
203
205
  }, z.core.$strict>;
204
206
  grant: z.ZodObject<{
205
207
  protocolVersion: z.ZodLiteral<1>;
@@ -240,17 +242,17 @@ export declare const ProxySecretReceiptSchema: z.ZodDiscriminatedUnion<[z.ZodObj
240
242
  }, z.core.$strict>;
241
243
  }, z.core.$strict>>;
242
244
  proxyAcknowledged: z.ZodLiteral<true>;
243
- status: z.ZodLiteral<"installed">;
244
- materializationAcknowledged: z.ZodLiteral<true>;
245
245
  }, z.core.$strict>, z.ZodObject<{
246
+ status: z.ZodLiteral<"revoked">;
247
+ materializationAcknowledged: z.ZodLiteral<true>;
246
248
  protocolVersion: z.ZodLiteral<1>;
247
249
  sandboxId: z.ZodString;
248
250
  generation: z.ZodNumber;
249
251
  bindings: z.ZodArray<z.ZodObject<{
250
252
  envName: z.ZodString;
251
253
  secretRef: z.ZodObject<{
252
- kind: z.ZodLiteral<"secret-ref">;
253
254
  key: z.ZodString;
255
+ kind: z.ZodLiteral<"secret-ref">;
254
256
  }, z.core.$strict>;
255
257
  grant: z.ZodObject<{
256
258
  protocolVersion: z.ZodLiteral<1>;
@@ -291,8 +293,6 @@ export declare const ProxySecretReceiptSchema: z.ZodDiscriminatedUnion<[z.ZodObj
291
293
  }, z.core.$strict>;
292
294
  }, z.core.$strict>>;
293
295
  proxyAcknowledged: z.ZodLiteral<true>;
294
- status: z.ZodLiteral<"revoked">;
295
- materializationAcknowledged: z.ZodLiteral<true>;
296
296
  }, z.core.$strict>], "status">;
297
297
  export type ProxySecretReceipt = z.infer<typeof ProxySecretReceiptSchema>;
298
298
  /** Advertise only when served API, driver, host, proxy and materializer agree. Absence,
@@ -302,8 +302,8 @@ export declare const ProxySecretCapabilitiesSchema: z.ZodObject<{
302
302
  protocolVersion: z.ZodLiteral<1>;
303
303
  supportedDrivers: z.ZodArray<z.ZodString>;
304
304
  presentations: z.ZodArray<z.ZodEnum<{
305
- basic: "basic";
306
305
  bearer: "bearer";
306
+ basic: "basic";
307
307
  header: "header";
308
308
  query: "query";
309
309
  }>>;
@@ -53,6 +53,7 @@ export interface AgentRunCancellationRequest extends AgentRunCancellationRequest
53
53
  }
54
54
  export declare function agentRunCancellationRequestDigest(request: AgentRunCancellationRequestMaterial): Sha256Digest;
55
55
  export declare const AgentRunCancellationRequestSchema: z.ZodObject<{
56
+ requestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
56
57
  operationId: z.ZodString;
57
58
  run: z.ZodObject<{
58
59
  runId: z.ZodString;
@@ -63,7 +64,6 @@ export declare const AgentRunCancellationRequestSchema: z.ZodObject<{
63
64
  requestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
64
65
  }, z.core.$strict>;
65
66
  reason: z.ZodOptional<z.ZodString>;
66
- requestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
67
67
  }, z.core.$strict>;
68
68
  export interface AgentRunCancellationAcknowledgement {
69
69
  operationId: string;
@@ -87,16 +87,16 @@ export declare const AgentRunCancellationAcknowledgementSchema: z.ZodObject<{
87
87
  requestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
88
88
  }, z.core.$strict>;
89
89
  status: z.ZodEnum<{
90
- accepted: "accepted";
90
+ unknown: "unknown";
91
91
  conflict: "conflict";
92
+ accepted: "accepted";
92
93
  replayed: "replayed";
93
- unknown: "unknown";
94
94
  }>;
95
95
  effect: z.ZodEnum<{
96
- cancel_requested: "cancel_requested";
96
+ unknown: "unknown";
97
97
  cancelled: "cancelled";
98
+ cancel_requested: "cancel_requested";
98
99
  not_live: "not_live";
99
- unknown: "unknown";
100
100
  }>;
101
101
  message: z.ZodOptional<z.ZodString>;
102
102
  retryable: z.ZodOptional<z.ZodBoolean>;
@@ -43,12 +43,12 @@ export declare const WorkspaceCleanupAcknowledgementSchema: z.ZodObject<{
43
43
  provider: z.ZodString;
44
44
  requestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
45
45
  status: z.ZodEnum<{
46
- already_absent: "already_absent";
46
+ unknown: "unknown";
47
47
  conflict: "conflict";
48
+ transport_failure: "transport_failure";
48
49
  deleted: "deleted";
50
+ already_absent: "already_absent";
49
51
  in_use: "in_use";
50
- transport_failure: "transport_failure";
51
- unknown: "unknown";
52
52
  }>;
53
53
  existingRequestDigest: z.ZodOptional<z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>>;
54
54
  message: z.ZodOptional<z.ZodString>;
@@ -39,10 +39,10 @@ export declare const WorkspaceForkRequestSchema: z.ZodObject<{
39
39
  metadata: z.ZodOptional<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>>;
40
40
  placement: z.ZodObject<{
41
41
  kind: z.ZodEnum<{
42
- fleet: "fleet";
43
- local: "local";
44
42
  provider: "provider";
43
+ local: "local";
45
44
  sandbox: "sandbox";
45
+ fleet: "fleet";
46
46
  }>;
47
47
  sandboxId: z.ZodOptional<z.ZodString>;
48
48
  fleetId: z.ZodOptional<z.ZodString>;
@@ -102,10 +102,10 @@ export declare const ForkedEnvironmentRefSchema: z.ZodObject<{
102
102
  createdAt: z.ZodISODateTime;
103
103
  placement: z.ZodObject<{
104
104
  kind: z.ZodEnum<{
105
- fleet: "fleet";
106
- local: "local";
107
105
  provider: "provider";
106
+ local: "local";
108
107
  sandbox: "sandbox";
108
+ fleet: "fleet";
109
109
  }>;
110
110
  sandboxId: z.ZodOptional<z.ZodString>;
111
111
  fleetId: z.ZodOptional<z.ZodString>;