@byok-sdk/protocol 0.23.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/README.md +1 -1
- package/dist/agent-egress.d.ts +13 -16
- package/dist/agent-event.d.ts +13 -1
- package/dist/agent-memory-intent.d.ts +717 -0
- package/dist/codec.d.ts +4 -0
- package/dist/envelope.d.ts +27 -99
- package/dist/http-api.d.ts +56 -218
- package/dist/index.d.ts +6 -6
- package/dist/index.js +223 -97
- package/dist/index.js.map +1 -1
- package/dist/input-preparation.d.ts +15 -64
- package/dist/messages.d.ts +58 -314
- package/dist/version.d.ts +20 -11
- package/package.json +2 -2
- package/dist/permission.d.ts +0 -39
package/dist/codec.d.ts
CHANGED
package/dist/envelope.d.ts
CHANGED
|
@@ -43,7 +43,6 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
43
43
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
44
44
|
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
45
45
|
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
-
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
47
46
|
}, z.core.$strip>>;
|
|
48
47
|
}, z.core.$strip>>>;
|
|
49
48
|
harnesses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -54,7 +53,6 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
54
53
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
55
54
|
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
56
55
|
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
-
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
58
56
|
}, z.core.$strip>;
|
|
59
57
|
}, z.core.$strip>>>;
|
|
60
58
|
configuredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -91,18 +89,6 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
91
89
|
url: z.ZodOptional<z.ZodString>;
|
|
92
90
|
}, z.core.$strip>;
|
|
93
91
|
}, z.core.$strict>]>;
|
|
94
|
-
policy: z.ZodObject<{
|
|
95
|
-
mode: z.ZodEnum<{
|
|
96
|
-
auto: "auto";
|
|
97
|
-
confirm: "confirm";
|
|
98
|
-
plan: "plan";
|
|
99
|
-
readonly: "readonly";
|
|
100
|
-
}>;
|
|
101
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
102
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
103
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
104
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
-
}, z.core.$strict>;
|
|
106
92
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
107
93
|
claude: "claude";
|
|
108
94
|
codex: "codex";
|
|
@@ -160,18 +146,6 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
160
146
|
url: z.ZodOptional<z.ZodString>;
|
|
161
147
|
}, z.core.$strip>;
|
|
162
148
|
}, z.core.$strict>]>;
|
|
163
|
-
policy: z.ZodObject<{
|
|
164
|
-
mode: z.ZodEnum<{
|
|
165
|
-
auto: "auto";
|
|
166
|
-
confirm: "confirm";
|
|
167
|
-
plan: "plan";
|
|
168
|
-
readonly: "readonly";
|
|
169
|
-
}>;
|
|
170
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
171
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
172
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
173
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
174
|
-
}, z.core.$strict>;
|
|
175
149
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
176
150
|
claude: "claude";
|
|
177
151
|
codex: "codex";
|
|
@@ -230,18 +204,6 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
230
204
|
url: z.ZodOptional<z.ZodString>;
|
|
231
205
|
}, z.core.$strip>;
|
|
232
206
|
}, z.core.$strict>]>;
|
|
233
|
-
policy: z.ZodObject<{
|
|
234
|
-
mode: z.ZodEnum<{
|
|
235
|
-
auto: "auto";
|
|
236
|
-
confirm: "confirm";
|
|
237
|
-
plan: "plan";
|
|
238
|
-
readonly: "readonly";
|
|
239
|
-
}>;
|
|
240
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
241
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
242
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
243
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
244
|
-
}, z.core.$strict>;
|
|
245
207
|
agentRef: z.ZodObject<{
|
|
246
208
|
agentId: z.ZodString;
|
|
247
209
|
profileRevision: z.ZodString;
|
|
@@ -309,18 +271,6 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
309
271
|
url: z.ZodOptional<z.ZodString>;
|
|
310
272
|
}, z.core.$strip>;
|
|
311
273
|
}, z.core.$strict>]>;
|
|
312
|
-
policy: z.ZodObject<{
|
|
313
|
-
mode: z.ZodEnum<{
|
|
314
|
-
auto: "auto";
|
|
315
|
-
confirm: "confirm";
|
|
316
|
-
plan: "plan";
|
|
317
|
-
readonly: "readonly";
|
|
318
|
-
}>;
|
|
319
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
320
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
321
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
322
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
323
|
-
}, z.core.$strict>;
|
|
324
274
|
agentRef: z.ZodObject<{
|
|
325
275
|
agentId: z.ZodString;
|
|
326
276
|
profileRevision: z.ZodString;
|
|
@@ -371,15 +321,11 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
371
321
|
sessionRef: z.ZodString;
|
|
372
322
|
egressPolicy: z.ZodObject<{
|
|
373
323
|
policyRevision: z.ZodString;
|
|
374
|
-
activity: z.
|
|
375
|
-
mode: z.ZodLiteral<"metadata-status">;
|
|
376
|
-
delivery: z.ZodLiteral<"latest-value">;
|
|
377
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
378
|
-
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
324
|
+
activity: z.ZodObject<{
|
|
379
325
|
delivery: z.ZodLiteral<"latest-value">;
|
|
380
326
|
maxCoalesceMs: z.ZodNumber;
|
|
381
327
|
maxEventBytes: z.ZodNumber;
|
|
382
|
-
}, z.core.$strict
|
|
328
|
+
}, z.core.$strict>;
|
|
383
329
|
reliable: z.ZodObject<{
|
|
384
330
|
maxPendingEventsPerAgent: z.ZodNumber;
|
|
385
331
|
maxPendingBytesPerAgent: z.ZodNumber;
|
|
@@ -428,18 +374,6 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
428
374
|
url: z.ZodOptional<z.ZodString>;
|
|
429
375
|
}, z.core.$strip>;
|
|
430
376
|
}, z.core.$strict>]>;
|
|
431
|
-
policy: z.ZodObject<{
|
|
432
|
-
mode: z.ZodEnum<{
|
|
433
|
-
auto: "auto";
|
|
434
|
-
confirm: "confirm";
|
|
435
|
-
plan: "plan";
|
|
436
|
-
readonly: "readonly";
|
|
437
|
-
}>;
|
|
438
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
439
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
440
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
441
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
442
|
-
}, z.core.$strict>;
|
|
443
377
|
agentRef: z.ZodObject<{
|
|
444
378
|
agentId: z.ZodString;
|
|
445
379
|
profileRevision: z.ZodString;
|
|
@@ -489,15 +423,11 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
489
423
|
}, z.core.$strip>>;
|
|
490
424
|
egressPolicy: z.ZodObject<{
|
|
491
425
|
policyRevision: z.ZodString;
|
|
492
|
-
activity: z.
|
|
493
|
-
mode: z.ZodLiteral<"metadata-status">;
|
|
494
|
-
delivery: z.ZodLiteral<"latest-value">;
|
|
495
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
496
|
-
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
426
|
+
activity: z.ZodObject<{
|
|
497
427
|
delivery: z.ZodLiteral<"latest-value">;
|
|
498
428
|
maxCoalesceMs: z.ZodNumber;
|
|
499
429
|
maxEventBytes: z.ZodNumber;
|
|
500
|
-
}, z.core.$strict
|
|
430
|
+
}, z.core.$strict>;
|
|
501
431
|
reliable: z.ZodObject<{
|
|
502
432
|
maxPendingEventsPerAgent: z.ZodNumber;
|
|
503
433
|
maxPendingBytesPerAgent: z.ZodNumber;
|
|
@@ -537,18 +467,6 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
537
467
|
session_ref: z.ZodOptional<z.ZodString>;
|
|
538
468
|
seq: z.ZodNumber;
|
|
539
469
|
payload: z.ZodObject<{
|
|
540
|
-
policy: z.ZodObject<{
|
|
541
|
-
mode: z.ZodEnum<{
|
|
542
|
-
auto: "auto";
|
|
543
|
-
confirm: "confirm";
|
|
544
|
-
plan: "plan";
|
|
545
|
-
readonly: "readonly";
|
|
546
|
-
}>;
|
|
547
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
548
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
549
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
550
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
551
|
-
}, z.core.$strict>;
|
|
552
470
|
agentRef: z.ZodObject<{
|
|
553
471
|
agentId: z.ZodString;
|
|
554
472
|
profileRevision: z.ZodString;
|
|
@@ -608,15 +526,11 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
608
526
|
}>;
|
|
609
527
|
egressPolicy: z.ZodObject<{
|
|
610
528
|
policyRevision: z.ZodString;
|
|
611
|
-
activity: z.
|
|
612
|
-
mode: z.ZodLiteral<"metadata-status">;
|
|
613
|
-
delivery: z.ZodLiteral<"latest-value">;
|
|
614
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
615
|
-
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
529
|
+
activity: z.ZodObject<{
|
|
616
530
|
delivery: z.ZodLiteral<"latest-value">;
|
|
617
531
|
maxCoalesceMs: z.ZodNumber;
|
|
618
532
|
maxEventBytes: z.ZodNumber;
|
|
619
|
-
}, z.core.$strict
|
|
533
|
+
}, z.core.$strict>;
|
|
620
534
|
reliable: z.ZodObject<{
|
|
621
535
|
maxPendingEventsPerAgent: z.ZodNumber;
|
|
622
536
|
maxPendingBytesPerAgent: z.ZodNumber;
|
|
@@ -870,12 +784,6 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
870
784
|
contentHash: z.ZodString;
|
|
871
785
|
}, z.core.$strict>]>;
|
|
872
786
|
requiredToolsets: z.ZodArray<z.ZodString>;
|
|
873
|
-
permissionMode: z.ZodEnum<{
|
|
874
|
-
auto: "auto";
|
|
875
|
-
confirm: "confirm";
|
|
876
|
-
plan: "plan";
|
|
877
|
-
readonly: "readonly";
|
|
878
|
-
}>;
|
|
879
787
|
accountingPolicyRef: z.ZodOptional<z.ZodObject<{
|
|
880
788
|
revision: z.ZodString;
|
|
881
789
|
ruledRuntime: z.ZodString;
|
|
@@ -897,6 +805,21 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
897
805
|
payload: z.ZodObject<{
|
|
898
806
|
requestId: z.ZodUUID;
|
|
899
807
|
}, z.core.$strict>;
|
|
808
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
809
|
+
v: z.ZodNumber;
|
|
810
|
+
id: z.ZodUUID;
|
|
811
|
+
ts: z.ZodISODateTime;
|
|
812
|
+
type: z.ZodLiteral<"agent.memory.intent.available">;
|
|
813
|
+
task_id: z.ZodOptional<z.ZodNever>;
|
|
814
|
+
session_ref: z.ZodOptional<z.ZodString>;
|
|
815
|
+
seq: z.ZodNumber;
|
|
816
|
+
payload: z.ZodObject<{
|
|
817
|
+
intentId: z.ZodUUID;
|
|
818
|
+
agentRef: z.ZodObject<{
|
|
819
|
+
agentId: z.ZodString;
|
|
820
|
+
profileRevision: z.ZodString;
|
|
821
|
+
}, z.core.$strict>;
|
|
822
|
+
}, z.core.$strict>;
|
|
900
823
|
}, z.core.$strip>, z.ZodObject<{
|
|
901
824
|
v: z.ZodNumber;
|
|
902
825
|
id: z.ZodUUID;
|
|
@@ -968,7 +891,6 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
968
891
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
969
892
|
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
970
893
|
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
971
|
-
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
972
894
|
}, z.core.$strip>>;
|
|
973
895
|
}, z.core.$strip>;
|
|
974
896
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1073,6 +995,12 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1073
995
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1074
996
|
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
1075
997
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
998
|
+
contextTokens: z.ZodOptional<z.ZodNumber>;
|
|
999
|
+
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
1000
|
+
contextSource: z.ZodOptional<z.ZodEnum<{
|
|
1001
|
+
estimate: "estimate";
|
|
1002
|
+
provider: "provider";
|
|
1003
|
+
}>>;
|
|
1076
1004
|
}, z.core.$strip>], "type">, z.ZodObject<{
|
|
1077
1005
|
type: z.ZodString;
|
|
1078
1006
|
}, z.core.$loose>]>>;
|