@byok-sdk/protocol 0.24.0 → 0.25.0-rc.1
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.
- package/dist/agent-egress.d.ts +13 -16
- package/dist/agent-event.d.ts +1 -1
- package/dist/envelope.d.ts +6 -99
- package/dist/http-api.d.ts +14 -218
- package/dist/index.d.ts +2 -4
- package/dist/index.js +12 -62
- package/dist/index.js.map +1 -1
- package/dist/input-preparation.d.ts +15 -64
- package/dist/messages.d.ts +20 -313
- package/dist/version.d.ts +20 -11
- package/package.json +1 -1
- package/dist/permission.d.ts +0 -39
package/dist/messages.d.ts
CHANGED
|
@@ -16,16 +16,6 @@ export declare const ProtocolVersionNumberSchema: z.ZodNumber;
|
|
|
16
16
|
* end-to-end — older daemons omit `capabilities` entirely — and every field
|
|
17
17
|
* inside it is itself optional, since detection can be partial.
|
|
18
18
|
*
|
|
19
|
-
* Per-tool allow/deny lists are deliberately NOT included here (noise).
|
|
20
|
-
* `permissionModes` mirrors `PERMISSION_MODES` (`permission.ts`) but is kept
|
|
21
|
-
* as a bare `string[]` rather than `z.enum(PERMISSION_MODES)`: this is a
|
|
22
|
-
* runtime's self-reported observability data, not a control/security field,
|
|
23
|
-
* so — per the freeze rule (tolerate unknown for observability, fail closed
|
|
24
|
-
* for control/security; see `agent-event.ts`'s unknown-variant tolerance for
|
|
25
|
-
* the same asymmetry applied to `task.progress` events) — it stays tolerant
|
|
26
|
-
* of a mode string a newer runtime might report that this schema doesn't
|
|
27
|
-
* enumerate yet, rather than rejecting the whole `conn.hello`.
|
|
28
|
-
*
|
|
29
19
|
* Unrecognized keys inside `capabilities` itself, by contrast, are silently
|
|
30
20
|
* stripped (zod's default object behavior — same as every other payload
|
|
31
21
|
* schema in this file) rather than passed through: this is a closed, typed
|
|
@@ -37,7 +27,6 @@ export declare const RuntimeCapabilitiesSchema: z.ZodObject<{
|
|
|
37
27
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
38
28
|
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
39
29
|
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
-
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
30
|
}, z.core.$strip>;
|
|
42
31
|
export type RuntimeCapabilities = z.infer<typeof RuntimeCapabilitiesSchema>;
|
|
43
32
|
/**
|
|
@@ -58,7 +47,6 @@ export declare const RuntimeInfoSchema: z.ZodObject<{
|
|
|
58
47
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
59
48
|
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
60
49
|
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
-
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
62
50
|
}, z.core.$strip>>;
|
|
63
51
|
}, z.core.$strip>;
|
|
64
52
|
export type RuntimeInfo = z.infer<typeof RuntimeInfoSchema>;
|
|
@@ -73,7 +61,6 @@ export declare const HarnessInfoSchema: z.ZodObject<{
|
|
|
73
61
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
74
62
|
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
75
63
|
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
-
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
77
64
|
}, z.core.$strip>;
|
|
78
65
|
}, z.core.$strip>;
|
|
79
66
|
export type HarnessInfo = z.infer<typeof HarnessInfoSchema>;
|
|
@@ -85,7 +72,6 @@ export declare const HarnessInventorySchema: z.ZodArray<z.ZodObject<{
|
|
|
85
72
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
86
73
|
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
87
74
|
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
-
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
89
75
|
}, z.core.$strip>;
|
|
90
76
|
}, z.core.$strip>>;
|
|
91
77
|
/** Maximum logical toolsets one daemon may advertise as locally configured. */
|
|
@@ -140,7 +126,6 @@ export declare const ConnHelloPayloadSchema: z.ZodObject<{
|
|
|
140
126
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
141
127
|
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
142
128
|
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
143
|
-
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
144
129
|
}, z.core.$strip>>;
|
|
145
130
|
}, z.core.$strip>>>;
|
|
146
131
|
harnesses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -151,7 +136,6 @@ export declare const ConnHelloPayloadSchema: z.ZodObject<{
|
|
|
151
136
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
152
137
|
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
153
138
|
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
154
|
-
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
155
139
|
}, z.core.$strip>;
|
|
156
140
|
}, z.core.$strip>>>;
|
|
157
141
|
configuredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -215,18 +199,6 @@ export declare const TaskOfferPayloadSchema: z.ZodObject<{
|
|
|
215
199
|
url: z.ZodOptional<z.ZodString>;
|
|
216
200
|
}, z.core.$strip>;
|
|
217
201
|
}, z.core.$strict>]>;
|
|
218
|
-
policy: z.ZodObject<{
|
|
219
|
-
mode: z.ZodEnum<{
|
|
220
|
-
auto: "auto";
|
|
221
|
-
confirm: "confirm";
|
|
222
|
-
plan: "plan";
|
|
223
|
-
readonly: "readonly";
|
|
224
|
-
}>;
|
|
225
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
226
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
227
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
228
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
229
|
-
}, z.core.$strict>;
|
|
230
202
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
231
203
|
claude: "claude";
|
|
232
204
|
codex: "codex";
|
|
@@ -288,18 +260,6 @@ export declare const TaskOfferWithToolsetsPayloadSchema: z.ZodObject<{
|
|
|
288
260
|
url: z.ZodOptional<z.ZodString>;
|
|
289
261
|
}, z.core.$strip>;
|
|
290
262
|
}, z.core.$strict>]>;
|
|
291
|
-
policy: z.ZodObject<{
|
|
292
|
-
mode: z.ZodEnum<{
|
|
293
|
-
auto: "auto";
|
|
294
|
-
confirm: "confirm";
|
|
295
|
-
plan: "plan";
|
|
296
|
-
readonly: "readonly";
|
|
297
|
-
}>;
|
|
298
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
299
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
300
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
301
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
302
|
-
}, z.core.$strict>;
|
|
303
263
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
304
264
|
claude: "claude";
|
|
305
265
|
codex: "codex";
|
|
@@ -356,18 +316,6 @@ export declare const TaskOfferForAgentPayloadSchema: z.ZodObject<{
|
|
|
356
316
|
url: z.ZodOptional<z.ZodString>;
|
|
357
317
|
}, z.core.$strip>;
|
|
358
318
|
}, z.core.$strict>]>;
|
|
359
|
-
policy: z.ZodObject<{
|
|
360
|
-
mode: z.ZodEnum<{
|
|
361
|
-
auto: "auto";
|
|
362
|
-
confirm: "confirm";
|
|
363
|
-
plan: "plan";
|
|
364
|
-
readonly: "readonly";
|
|
365
|
-
}>;
|
|
366
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
367
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
368
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
369
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
370
|
-
}, z.core.$strict>;
|
|
371
319
|
agentRef: z.ZodObject<{
|
|
372
320
|
agentId: z.ZodString;
|
|
373
321
|
profileRevision: z.ZodString;
|
|
@@ -433,18 +381,6 @@ export declare const TaskOfferForAgentWithEgressPayloadSchema: z.ZodObject<{
|
|
|
433
381
|
url: z.ZodOptional<z.ZodString>;
|
|
434
382
|
}, z.core.$strip>;
|
|
435
383
|
}, z.core.$strict>]>;
|
|
436
|
-
policy: z.ZodObject<{
|
|
437
|
-
mode: z.ZodEnum<{
|
|
438
|
-
auto: "auto";
|
|
439
|
-
confirm: "confirm";
|
|
440
|
-
plan: "plan";
|
|
441
|
-
readonly: "readonly";
|
|
442
|
-
}>;
|
|
443
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
444
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
445
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
446
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
447
|
-
}, z.core.$strict>;
|
|
448
384
|
agentRef: z.ZodObject<{
|
|
449
385
|
agentId: z.ZodString;
|
|
450
386
|
profileRevision: z.ZodString;
|
|
@@ -495,15 +431,11 @@ export declare const TaskOfferForAgentWithEgressPayloadSchema: z.ZodObject<{
|
|
|
495
431
|
sessionRef: z.ZodString;
|
|
496
432
|
egressPolicy: z.ZodObject<{
|
|
497
433
|
policyRevision: z.ZodString;
|
|
498
|
-
activity: z.
|
|
499
|
-
mode: z.ZodLiteral<"metadata-status">;
|
|
500
|
-
delivery: z.ZodLiteral<"latest-value">;
|
|
501
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
502
|
-
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
434
|
+
activity: z.ZodObject<{
|
|
503
435
|
delivery: z.ZodLiteral<"latest-value">;
|
|
504
436
|
maxCoalesceMs: z.ZodNumber;
|
|
505
437
|
maxEventBytes: z.ZodNumber;
|
|
506
|
-
}, z.core.$strict
|
|
438
|
+
}, z.core.$strict>;
|
|
507
439
|
reliable: z.ZodObject<{
|
|
508
440
|
maxPendingEventsPerAgent: z.ZodNumber;
|
|
509
441
|
maxPendingBytesPerAgent: z.ZodNumber;
|
|
@@ -551,18 +483,6 @@ export declare const TaskOfferForAgentWithEgressFreshPayloadSchema: z.ZodObject<
|
|
|
551
483
|
url: z.ZodOptional<z.ZodString>;
|
|
552
484
|
}, z.core.$strip>;
|
|
553
485
|
}, z.core.$strict>]>;
|
|
554
|
-
policy: z.ZodObject<{
|
|
555
|
-
mode: z.ZodEnum<{
|
|
556
|
-
auto: "auto";
|
|
557
|
-
confirm: "confirm";
|
|
558
|
-
plan: "plan";
|
|
559
|
-
readonly: "readonly";
|
|
560
|
-
}>;
|
|
561
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
562
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
563
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
564
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
565
|
-
}, z.core.$strict>;
|
|
566
486
|
agentRef: z.ZodObject<{
|
|
567
487
|
agentId: z.ZodString;
|
|
568
488
|
profileRevision: z.ZodString;
|
|
@@ -612,15 +532,11 @@ export declare const TaskOfferForAgentWithEgressFreshPayloadSchema: z.ZodObject<
|
|
|
612
532
|
}, z.core.$strip>>;
|
|
613
533
|
egressPolicy: z.ZodObject<{
|
|
614
534
|
policyRevision: z.ZodString;
|
|
615
|
-
activity: z.
|
|
616
|
-
mode: z.ZodLiteral<"metadata-status">;
|
|
617
|
-
delivery: z.ZodLiteral<"latest-value">;
|
|
618
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
619
|
-
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
535
|
+
activity: z.ZodObject<{
|
|
620
536
|
delivery: z.ZodLiteral<"latest-value">;
|
|
621
537
|
maxCoalesceMs: z.ZodNumber;
|
|
622
538
|
maxEventBytes: z.ZodNumber;
|
|
623
|
-
}, z.core.$strict
|
|
539
|
+
}, z.core.$strict>;
|
|
624
540
|
reliable: z.ZodObject<{
|
|
625
541
|
maxPendingEventsPerAgent: z.ZodNumber;
|
|
626
542
|
maxPendingBytesPerAgent: z.ZodNumber;
|
|
@@ -673,18 +589,6 @@ export type TaskOfferForAgentWithEgressFreshPayload = z.infer<typeof TaskOfferFo
|
|
|
673
589
|
* and declines non-retryably on any difference; nothing here is authority.
|
|
674
590
|
*/
|
|
675
591
|
export declare const TaskOfferPreparedPayloadSchema: z.ZodObject<{
|
|
676
|
-
policy: z.ZodObject<{
|
|
677
|
-
mode: z.ZodEnum<{
|
|
678
|
-
auto: "auto";
|
|
679
|
-
confirm: "confirm";
|
|
680
|
-
plan: "plan";
|
|
681
|
-
readonly: "readonly";
|
|
682
|
-
}>;
|
|
683
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
684
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
685
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
686
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
687
|
-
}, z.core.$strict>;
|
|
688
592
|
agentRef: z.ZodObject<{
|
|
689
593
|
agentId: z.ZodString;
|
|
690
594
|
profileRevision: z.ZodString;
|
|
@@ -744,15 +648,11 @@ export declare const TaskOfferPreparedPayloadSchema: z.ZodObject<{
|
|
|
744
648
|
}>;
|
|
745
649
|
egressPolicy: z.ZodObject<{
|
|
746
650
|
policyRevision: z.ZodString;
|
|
747
|
-
activity: z.
|
|
748
|
-
mode: z.ZodLiteral<"metadata-status">;
|
|
749
|
-
delivery: z.ZodLiteral<"latest-value">;
|
|
750
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
751
|
-
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
651
|
+
activity: z.ZodObject<{
|
|
752
652
|
delivery: z.ZodLiteral<"latest-value">;
|
|
753
653
|
maxCoalesceMs: z.ZodNumber;
|
|
754
654
|
maxEventBytes: z.ZodNumber;
|
|
755
|
-
}, z.core.$strict
|
|
655
|
+
}, z.core.$strict>;
|
|
756
656
|
reliable: z.ZodObject<{
|
|
757
657
|
maxPendingEventsPerAgent: z.ZodNumber;
|
|
758
658
|
maxPendingBytesPerAgent: z.ZodNumber;
|
|
@@ -784,7 +684,7 @@ export declare const TaskOfferPreparedPayloadSchema: z.ZodObject<{
|
|
|
784
684
|
}, z.core.$strict>>;
|
|
785
685
|
}, z.core.$strict>;
|
|
786
686
|
export type TaskOfferPreparedPayload = z.infer<typeof TaskOfferPreparedPayloadSchema>;
|
|
787
|
-
/** Daemon -> cloud: one durable reliable-lane item
|
|
687
|
+
/** Daemon -> cloud: one durable reliable-lane item, forwarded as the Agent produced it. */
|
|
788
688
|
export declare const AgentEgressReliablePayloadSchema: z.ZodObject<{
|
|
789
689
|
agentRef: z.ZodObject<{
|
|
790
690
|
agentId: z.ZodString;
|
|
@@ -1051,14 +951,6 @@ export type AgentMemoryIntentAvailablePayload = z.infer<typeof AgentMemoryIntent
|
|
|
1051
951
|
* `deadlineAt` may only ever be TIGHTENED locally: the device clamps to
|
|
1052
952
|
* `min(deadlineAt - now, limits.preparationDeadlineMs)`, so a generous Host
|
|
1053
953
|
* deadline cannot enlarge a configured local bound.
|
|
1054
|
-
*
|
|
1055
|
-
* `permissionMode` is DECLARED by the requester and validated by the device;
|
|
1056
|
-
* the device never infers it. A preparation counts tokens for one concrete
|
|
1057
|
-
* tool manifest, and that manifest is the policy-filtered set for exactly one
|
|
1058
|
-
* mode (`mcp/projection.ts`'s `filterMcpObservationForPolicy`) — so a
|
|
1059
|
-
* preparation whose mode is unstated is a count of a manifest nobody named.
|
|
1060
|
-
* The device applies the declared mode to its own observation and records it
|
|
1061
|
-
* in the artifact binding; it is not a grant, and it authorizes nothing.
|
|
1062
954
|
*/
|
|
1063
955
|
export declare const AgentInputPreparationPayloadSchema: z.ZodObject<{
|
|
1064
956
|
agentMemory: z.ZodEnum<{
|
|
@@ -1167,12 +1059,6 @@ export declare const AgentInputPreparationPayloadSchema: z.ZodObject<{
|
|
|
1167
1059
|
contentHash: z.ZodString;
|
|
1168
1060
|
}, z.core.$strict>]>;
|
|
1169
1061
|
requiredToolsets: z.ZodArray<z.ZodString>;
|
|
1170
|
-
permissionMode: z.ZodEnum<{
|
|
1171
|
-
auto: "auto";
|
|
1172
|
-
confirm: "confirm";
|
|
1173
|
-
plan: "plan";
|
|
1174
|
-
readonly: "readonly";
|
|
1175
|
-
}>;
|
|
1176
1062
|
accountingPolicyRef: z.ZodOptional<z.ZodObject<{
|
|
1177
1063
|
revision: z.ZodString;
|
|
1178
1064
|
ruledRuntime: z.ZodString;
|
|
@@ -1300,7 +1186,6 @@ export declare const TaskClaimPayloadSchema: z.ZodObject<{
|
|
|
1300
1186
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
1301
1187
|
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
1302
1188
|
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
1303
|
-
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1304
1189
|
}, z.core.$strip>>;
|
|
1305
1190
|
}, z.core.$strip>;
|
|
1306
1191
|
export type TaskClaimPayload = z.infer<typeof TaskClaimPayloadSchema>;
|
|
@@ -1313,8 +1198,7 @@ export declare const TaskStartedPayloadSchema: z.ZodObject<{}, z.core.$strip>;
|
|
|
1313
1198
|
export type TaskStartedPayload = z.infer<typeof TaskStartedPayloadSchema>;
|
|
1314
1199
|
/**
|
|
1315
1200
|
* daemon -> server: decline an offer *before* claiming it (M1 gap #5) — e.g.
|
|
1316
|
-
* no compatible/available runtime
|
|
1317
|
-
* device's ceiling. Fail-closed rejections must use this instead of silently
|
|
1201
|
+
* no compatible/available runtime. Fail-closed rejections must use this instead of silently
|
|
1318
1202
|
* dropping the offer.
|
|
1319
1203
|
*
|
|
1320
1204
|
* Decision (see docs/protocol.md "Declined vs. Failed" for the full
|
|
@@ -1811,18 +1695,6 @@ declare const TASK_OFFER_PAYLOAD_SCHEMAS: {
|
|
|
1811
1695
|
url: z.ZodOptional<z.ZodString>;
|
|
1812
1696
|
}, z.core.$strip>;
|
|
1813
1697
|
}, z.core.$strict>]>;
|
|
1814
|
-
policy: z.ZodObject<{
|
|
1815
|
-
mode: z.ZodEnum<{
|
|
1816
|
-
auto: "auto";
|
|
1817
|
-
confirm: "confirm";
|
|
1818
|
-
plan: "plan";
|
|
1819
|
-
readonly: "readonly";
|
|
1820
|
-
}>;
|
|
1821
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1822
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1823
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
1824
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
1825
|
-
}, z.core.$strict>;
|
|
1826
1698
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
1827
1699
|
claude: "claude";
|
|
1828
1700
|
codex: "codex";
|
|
@@ -1872,18 +1744,6 @@ declare const TASK_OFFER_PAYLOAD_SCHEMAS: {
|
|
|
1872
1744
|
url: z.ZodOptional<z.ZodString>;
|
|
1873
1745
|
}, z.core.$strip>;
|
|
1874
1746
|
}, z.core.$strict>]>;
|
|
1875
|
-
policy: z.ZodObject<{
|
|
1876
|
-
mode: z.ZodEnum<{
|
|
1877
|
-
auto: "auto";
|
|
1878
|
-
confirm: "confirm";
|
|
1879
|
-
plan: "plan";
|
|
1880
|
-
readonly: "readonly";
|
|
1881
|
-
}>;
|
|
1882
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1883
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1884
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
1885
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
1886
|
-
}, z.core.$strict>;
|
|
1887
1747
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
1888
1748
|
claude: "claude";
|
|
1889
1749
|
codex: "codex";
|
|
@@ -1934,18 +1794,6 @@ declare const TASK_OFFER_PAYLOAD_SCHEMAS: {
|
|
|
1934
1794
|
url: z.ZodOptional<z.ZodString>;
|
|
1935
1795
|
}, z.core.$strip>;
|
|
1936
1796
|
}, z.core.$strict>]>;
|
|
1937
|
-
policy: z.ZodObject<{
|
|
1938
|
-
mode: z.ZodEnum<{
|
|
1939
|
-
auto: "auto";
|
|
1940
|
-
confirm: "confirm";
|
|
1941
|
-
plan: "plan";
|
|
1942
|
-
readonly: "readonly";
|
|
1943
|
-
}>;
|
|
1944
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1945
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1946
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
1947
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
1948
|
-
}, z.core.$strict>;
|
|
1949
1797
|
agentRef: z.ZodObject<{
|
|
1950
1798
|
agentId: z.ZodString;
|
|
1951
1799
|
profileRevision: z.ZodString;
|
|
@@ -2005,18 +1853,6 @@ declare const TASK_OFFER_PAYLOAD_SCHEMAS: {
|
|
|
2005
1853
|
url: z.ZodOptional<z.ZodString>;
|
|
2006
1854
|
}, z.core.$strip>;
|
|
2007
1855
|
}, z.core.$strict>]>;
|
|
2008
|
-
policy: z.ZodObject<{
|
|
2009
|
-
mode: z.ZodEnum<{
|
|
2010
|
-
auto: "auto";
|
|
2011
|
-
confirm: "confirm";
|
|
2012
|
-
plan: "plan";
|
|
2013
|
-
readonly: "readonly";
|
|
2014
|
-
}>;
|
|
2015
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2016
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2017
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
2018
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
2019
|
-
}, z.core.$strict>;
|
|
2020
1856
|
agentRef: z.ZodObject<{
|
|
2021
1857
|
agentId: z.ZodString;
|
|
2022
1858
|
profileRevision: z.ZodString;
|
|
@@ -2067,15 +1903,11 @@ declare const TASK_OFFER_PAYLOAD_SCHEMAS: {
|
|
|
2067
1903
|
sessionRef: z.ZodString;
|
|
2068
1904
|
egressPolicy: z.ZodObject<{
|
|
2069
1905
|
policyRevision: z.ZodString;
|
|
2070
|
-
activity: z.
|
|
2071
|
-
mode: z.ZodLiteral<"metadata-status">;
|
|
2072
|
-
delivery: z.ZodLiteral<"latest-value">;
|
|
2073
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2074
|
-
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
1906
|
+
activity: z.ZodObject<{
|
|
2075
1907
|
delivery: z.ZodLiteral<"latest-value">;
|
|
2076
1908
|
maxCoalesceMs: z.ZodNumber;
|
|
2077
1909
|
maxEventBytes: z.ZodNumber;
|
|
2078
|
-
}, z.core.$strict
|
|
1910
|
+
}, z.core.$strict>;
|
|
2079
1911
|
reliable: z.ZodObject<{
|
|
2080
1912
|
maxPendingEventsPerAgent: z.ZodNumber;
|
|
2081
1913
|
maxPendingBytesPerAgent: z.ZodNumber;
|
|
@@ -2116,18 +1948,6 @@ declare const TASK_OFFER_PAYLOAD_SCHEMAS: {
|
|
|
2116
1948
|
url: z.ZodOptional<z.ZodString>;
|
|
2117
1949
|
}, z.core.$strip>;
|
|
2118
1950
|
}, z.core.$strict>]>;
|
|
2119
|
-
policy: z.ZodObject<{
|
|
2120
|
-
mode: z.ZodEnum<{
|
|
2121
|
-
auto: "auto";
|
|
2122
|
-
confirm: "confirm";
|
|
2123
|
-
plan: "plan";
|
|
2124
|
-
readonly: "readonly";
|
|
2125
|
-
}>;
|
|
2126
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2127
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2128
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
2129
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
2130
|
-
}, z.core.$strict>;
|
|
2131
1951
|
agentRef: z.ZodObject<{
|
|
2132
1952
|
agentId: z.ZodString;
|
|
2133
1953
|
profileRevision: z.ZodString;
|
|
@@ -2177,15 +1997,11 @@ declare const TASK_OFFER_PAYLOAD_SCHEMAS: {
|
|
|
2177
1997
|
}, z.core.$strip>>;
|
|
2178
1998
|
egressPolicy: z.ZodObject<{
|
|
2179
1999
|
policyRevision: z.ZodString;
|
|
2180
|
-
activity: z.
|
|
2181
|
-
mode: z.ZodLiteral<"metadata-status">;
|
|
2182
|
-
delivery: z.ZodLiteral<"latest-value">;
|
|
2183
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2184
|
-
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
2000
|
+
activity: z.ZodObject<{
|
|
2185
2001
|
delivery: z.ZodLiteral<"latest-value">;
|
|
2186
2002
|
maxCoalesceMs: z.ZodNumber;
|
|
2187
2003
|
maxEventBytes: z.ZodNumber;
|
|
2188
|
-
}, z.core.$strict
|
|
2004
|
+
}, z.core.$strict>;
|
|
2189
2005
|
reliable: z.ZodObject<{
|
|
2190
2006
|
maxPendingEventsPerAgent: z.ZodNumber;
|
|
2191
2007
|
maxPendingBytesPerAgent: z.ZodNumber;
|
|
@@ -2217,18 +2033,6 @@ declare const TASK_OFFER_PAYLOAD_SCHEMAS: {
|
|
|
2217
2033
|
}, z.core.$strict>>;
|
|
2218
2034
|
}, z.core.$strict>;
|
|
2219
2035
|
readonly 'task.offer_prepared': z.ZodObject<{
|
|
2220
|
-
policy: z.ZodObject<{
|
|
2221
|
-
mode: z.ZodEnum<{
|
|
2222
|
-
auto: "auto";
|
|
2223
|
-
confirm: "confirm";
|
|
2224
|
-
plan: "plan";
|
|
2225
|
-
readonly: "readonly";
|
|
2226
|
-
}>;
|
|
2227
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2228
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2229
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
2230
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
2231
|
-
}, z.core.$strict>;
|
|
2232
2036
|
agentRef: z.ZodObject<{
|
|
2233
2037
|
agentId: z.ZodString;
|
|
2234
2038
|
profileRevision: z.ZodString;
|
|
@@ -2288,15 +2092,11 @@ declare const TASK_OFFER_PAYLOAD_SCHEMAS: {
|
|
|
2288
2092
|
}>;
|
|
2289
2093
|
egressPolicy: z.ZodObject<{
|
|
2290
2094
|
policyRevision: z.ZodString;
|
|
2291
|
-
activity: z.
|
|
2292
|
-
mode: z.ZodLiteral<"metadata-status">;
|
|
2293
|
-
delivery: z.ZodLiteral<"latest-value">;
|
|
2294
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2295
|
-
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
2095
|
+
activity: z.ZodObject<{
|
|
2296
2096
|
delivery: z.ZodLiteral<"latest-value">;
|
|
2297
2097
|
maxCoalesceMs: z.ZodNumber;
|
|
2298
2098
|
maxEventBytes: z.ZodNumber;
|
|
2299
|
-
}, z.core.$strict
|
|
2099
|
+
}, z.core.$strict>;
|
|
2300
2100
|
reliable: z.ZodObject<{
|
|
2301
2101
|
maxPendingEventsPerAgent: z.ZodNumber;
|
|
2302
2102
|
maxPendingBytesPerAgent: z.ZodNumber;
|
|
@@ -2343,18 +2143,6 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2343
2143
|
url: z.ZodOptional<z.ZodString>;
|
|
2344
2144
|
}, z.core.$strip>;
|
|
2345
2145
|
}, z.core.$strict>]>;
|
|
2346
|
-
policy: z.ZodObject<{
|
|
2347
|
-
mode: z.ZodEnum<{
|
|
2348
|
-
auto: "auto";
|
|
2349
|
-
confirm: "confirm";
|
|
2350
|
-
plan: "plan";
|
|
2351
|
-
readonly: "readonly";
|
|
2352
|
-
}>;
|
|
2353
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2354
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2355
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
2356
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
2357
|
-
}, z.core.$strict>;
|
|
2358
2146
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2359
2147
|
claude: "claude";
|
|
2360
2148
|
codex: "codex";
|
|
@@ -2404,18 +2192,6 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2404
2192
|
url: z.ZodOptional<z.ZodString>;
|
|
2405
2193
|
}, z.core.$strip>;
|
|
2406
2194
|
}, z.core.$strict>]>;
|
|
2407
|
-
policy: z.ZodObject<{
|
|
2408
|
-
mode: z.ZodEnum<{
|
|
2409
|
-
auto: "auto";
|
|
2410
|
-
confirm: "confirm";
|
|
2411
|
-
plan: "plan";
|
|
2412
|
-
readonly: "readonly";
|
|
2413
|
-
}>;
|
|
2414
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2415
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2416
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
2417
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
2418
|
-
}, z.core.$strict>;
|
|
2419
2195
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2420
2196
|
claude: "claude";
|
|
2421
2197
|
codex: "codex";
|
|
@@ -2466,18 +2242,6 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2466
2242
|
url: z.ZodOptional<z.ZodString>;
|
|
2467
2243
|
}, z.core.$strip>;
|
|
2468
2244
|
}, z.core.$strict>]>;
|
|
2469
|
-
policy: z.ZodObject<{
|
|
2470
|
-
mode: z.ZodEnum<{
|
|
2471
|
-
auto: "auto";
|
|
2472
|
-
confirm: "confirm";
|
|
2473
|
-
plan: "plan";
|
|
2474
|
-
readonly: "readonly";
|
|
2475
|
-
}>;
|
|
2476
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2477
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2478
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
2479
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
2480
|
-
}, z.core.$strict>;
|
|
2481
2245
|
agentRef: z.ZodObject<{
|
|
2482
2246
|
agentId: z.ZodString;
|
|
2483
2247
|
profileRevision: z.ZodString;
|
|
@@ -2537,18 +2301,6 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2537
2301
|
url: z.ZodOptional<z.ZodString>;
|
|
2538
2302
|
}, z.core.$strip>;
|
|
2539
2303
|
}, z.core.$strict>]>;
|
|
2540
|
-
policy: z.ZodObject<{
|
|
2541
|
-
mode: z.ZodEnum<{
|
|
2542
|
-
auto: "auto";
|
|
2543
|
-
confirm: "confirm";
|
|
2544
|
-
plan: "plan";
|
|
2545
|
-
readonly: "readonly";
|
|
2546
|
-
}>;
|
|
2547
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2548
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2549
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
2550
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
2551
|
-
}, z.core.$strict>;
|
|
2552
2304
|
agentRef: z.ZodObject<{
|
|
2553
2305
|
agentId: z.ZodString;
|
|
2554
2306
|
profileRevision: z.ZodString;
|
|
@@ -2599,15 +2351,11 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2599
2351
|
sessionRef: z.ZodString;
|
|
2600
2352
|
egressPolicy: z.ZodObject<{
|
|
2601
2353
|
policyRevision: z.ZodString;
|
|
2602
|
-
activity: z.
|
|
2603
|
-
mode: z.ZodLiteral<"metadata-status">;
|
|
2604
|
-
delivery: z.ZodLiteral<"latest-value">;
|
|
2605
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2606
|
-
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
2354
|
+
activity: z.ZodObject<{
|
|
2607
2355
|
delivery: z.ZodLiteral<"latest-value">;
|
|
2608
2356
|
maxCoalesceMs: z.ZodNumber;
|
|
2609
2357
|
maxEventBytes: z.ZodNumber;
|
|
2610
|
-
}, z.core.$strict
|
|
2358
|
+
}, z.core.$strict>;
|
|
2611
2359
|
reliable: z.ZodObject<{
|
|
2612
2360
|
maxPendingEventsPerAgent: z.ZodNumber;
|
|
2613
2361
|
maxPendingBytesPerAgent: z.ZodNumber;
|
|
@@ -2648,18 +2396,6 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2648
2396
|
url: z.ZodOptional<z.ZodString>;
|
|
2649
2397
|
}, z.core.$strip>;
|
|
2650
2398
|
}, z.core.$strict>]>;
|
|
2651
|
-
policy: z.ZodObject<{
|
|
2652
|
-
mode: z.ZodEnum<{
|
|
2653
|
-
auto: "auto";
|
|
2654
|
-
confirm: "confirm";
|
|
2655
|
-
plan: "plan";
|
|
2656
|
-
readonly: "readonly";
|
|
2657
|
-
}>;
|
|
2658
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2659
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2660
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
2661
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
2662
|
-
}, z.core.$strict>;
|
|
2663
2399
|
agentRef: z.ZodObject<{
|
|
2664
2400
|
agentId: z.ZodString;
|
|
2665
2401
|
profileRevision: z.ZodString;
|
|
@@ -2709,15 +2445,11 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2709
2445
|
}, z.core.$strip>>;
|
|
2710
2446
|
egressPolicy: z.ZodObject<{
|
|
2711
2447
|
policyRevision: z.ZodString;
|
|
2712
|
-
activity: z.
|
|
2713
|
-
mode: z.ZodLiteral<"metadata-status">;
|
|
2714
|
-
delivery: z.ZodLiteral<"latest-value">;
|
|
2715
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2716
|
-
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
2448
|
+
activity: z.ZodObject<{
|
|
2717
2449
|
delivery: z.ZodLiteral<"latest-value">;
|
|
2718
2450
|
maxCoalesceMs: z.ZodNumber;
|
|
2719
2451
|
maxEventBytes: z.ZodNumber;
|
|
2720
|
-
}, z.core.$strict
|
|
2452
|
+
}, z.core.$strict>;
|
|
2721
2453
|
reliable: z.ZodObject<{
|
|
2722
2454
|
maxPendingEventsPerAgent: z.ZodNumber;
|
|
2723
2455
|
maxPendingBytesPerAgent: z.ZodNumber;
|
|
@@ -2749,18 +2481,6 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2749
2481
|
}, z.core.$strict>>;
|
|
2750
2482
|
}, z.core.$strict>;
|
|
2751
2483
|
readonly 'task.offer_prepared': z.ZodObject<{
|
|
2752
|
-
policy: z.ZodObject<{
|
|
2753
|
-
mode: z.ZodEnum<{
|
|
2754
|
-
auto: "auto";
|
|
2755
|
-
confirm: "confirm";
|
|
2756
|
-
plan: "plan";
|
|
2757
|
-
readonly: "readonly";
|
|
2758
|
-
}>;
|
|
2759
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2760
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2761
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
2762
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
2763
|
-
}, z.core.$strict>;
|
|
2764
2484
|
agentRef: z.ZodObject<{
|
|
2765
2485
|
agentId: z.ZodString;
|
|
2766
2486
|
profileRevision: z.ZodString;
|
|
@@ -2820,15 +2540,11 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2820
2540
|
}>;
|
|
2821
2541
|
egressPolicy: z.ZodObject<{
|
|
2822
2542
|
policyRevision: z.ZodString;
|
|
2823
|
-
activity: z.
|
|
2824
|
-
mode: z.ZodLiteral<"metadata-status">;
|
|
2825
|
-
delivery: z.ZodLiteral<"latest-value">;
|
|
2826
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2827
|
-
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
2543
|
+
activity: z.ZodObject<{
|
|
2828
2544
|
delivery: z.ZodLiteral<"latest-value">;
|
|
2829
2545
|
maxCoalesceMs: z.ZodNumber;
|
|
2830
2546
|
maxEventBytes: z.ZodNumber;
|
|
2831
|
-
}, z.core.$strict
|
|
2547
|
+
}, z.core.$strict>;
|
|
2832
2548
|
reliable: z.ZodObject<{
|
|
2833
2549
|
maxPendingEventsPerAgent: z.ZodNumber;
|
|
2834
2550
|
maxPendingBytesPerAgent: z.ZodNumber;
|
|
@@ -2878,7 +2594,6 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2878
2594
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
2879
2595
|
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
2880
2596
|
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
2881
|
-
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2882
2597
|
}, z.core.$strip>>;
|
|
2883
2598
|
}, z.core.$strip>>>;
|
|
2884
2599
|
harnesses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2889,7 +2604,6 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2889
2604
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
2890
2605
|
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
2891
2606
|
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
2892
|
-
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2893
2607
|
}, z.core.$strip>;
|
|
2894
2608
|
}, z.core.$strip>>>;
|
|
2895
2609
|
configuredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -3217,12 +2931,6 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
3217
2931
|
contentHash: z.ZodString;
|
|
3218
2932
|
}, z.core.$strict>]>;
|
|
3219
2933
|
requiredToolsets: z.ZodArray<z.ZodString>;
|
|
3220
|
-
permissionMode: z.ZodEnum<{
|
|
3221
|
-
auto: "auto";
|
|
3222
|
-
confirm: "confirm";
|
|
3223
|
-
plan: "plan";
|
|
3224
|
-
readonly: "readonly";
|
|
3225
|
-
}>;
|
|
3226
2934
|
accountingPolicyRef: z.ZodOptional<z.ZodObject<{
|
|
3227
2935
|
revision: z.ZodString;
|
|
3228
2936
|
ruledRuntime: z.ZodString;
|
|
@@ -3274,7 +2982,6 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
3274
2982
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
3275
2983
|
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
3276
2984
|
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
3277
|
-
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3278
2985
|
}, z.core.$strip>>;
|
|
3279
2986
|
}, z.core.$strip>;
|
|
3280
2987
|
readonly 'task.started': z.ZodObject<{}, z.core.$strip>;
|