@byok-sdk/protocol 0.20.0 → 0.22.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.
- package/dist/envelope.d.ts +40 -0
- package/dist/http-api.d.ts +86 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12 -26
- package/dist/index.js.map +1 -1
- package/dist/input-preparation.d.ts +14 -99
- package/dist/messages.d.ts +135 -14
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -36,7 +36,7 @@ import { z } from 'zod';
|
|
|
36
36
|
* below. See `INPUT_PREPARATION_VERSION` in the client for what each version
|
|
37
37
|
* changed.
|
|
38
38
|
*/
|
|
39
|
-
export declare const INPUT_PREPARATION_WIRE_VERSION:
|
|
39
|
+
export declare const INPUT_PREPARATION_WIRE_VERSION: 7;
|
|
40
40
|
/**
|
|
41
41
|
* Capability required before a task-free remote input preparation — or a
|
|
42
42
|
* prepared Execution — is admitted: `agent-input-preparation-v<N>`, where
|
|
@@ -59,7 +59,7 @@ export declare const INPUT_PREPARATION_WIRE_VERSION: 5;
|
|
|
59
59
|
* devices as a pair is the operator precondition for the cut (`docs/spec.md`,
|
|
60
60
|
* bounded admission); nothing here parses an older receipt.
|
|
61
61
|
*/
|
|
62
|
-
export declare const AGENT_INPUT_PREPARATION_CAPABILITY: "agent-input-preparation-
|
|
62
|
+
export declare const AGENT_INPUT_PREPARATION_CAPABILITY: "agent-input-preparation-v7";
|
|
63
63
|
/** The preparation surface uses the package-wide lowercase `sha256:<hex>` transport form. */
|
|
64
64
|
export declare const InputPreparationContentHashSchema: z.ZodString;
|
|
65
65
|
/**
|
|
@@ -296,77 +296,9 @@ export declare const InputPreparationSelectionSchema: z.ZodObject<{
|
|
|
296
296
|
}, z.core.$strict>;
|
|
297
297
|
}, z.core.$strict>;
|
|
298
298
|
export type InputPreparationSelection = z.infer<typeof InputPreparationSelectionSchema>;
|
|
299
|
-
|
|
300
|
-
path: z.ZodString;
|
|
301
|
-
content: z.ZodString;
|
|
302
|
-
}, z.core.$strict>;
|
|
303
|
-
/**
|
|
304
|
-
* The three documentation locations the native prompt renderer names.
|
|
305
|
-
*
|
|
306
|
-
* The wire field names are this SDK's own and do not track upstream Pi's
|
|
307
|
-
* (`readme`/`docs`/`examples`): the contract a Host integrates against is this
|
|
308
|
-
* one, and renaming a frozen wire field because a runtime renamed a parameter
|
|
309
|
-
* would be a breaking change to every Host for no gain. The device adapter maps
|
|
310
|
-
* these onto whatever the pinned runtime calls them.
|
|
311
|
-
*/
|
|
312
|
-
export declare const InputPreparationDocsPathsSchema: z.ZodObject<{
|
|
313
|
-
readmePath: z.ZodString;
|
|
314
|
-
docsPath: z.ZodString;
|
|
315
|
-
examplesPath: z.ZodString;
|
|
316
|
-
}, z.core.$strict>;
|
|
317
|
-
/**
|
|
318
|
-
* One skill the system prompt renders, stated as the closed set of fields the
|
|
319
|
-
* renderer actually reads.
|
|
320
|
-
*
|
|
321
|
-
* Not a preformatted string: the native renderer owns the skill block's
|
|
322
|
-
* markup, and a Host-rendered one would be a second renderer that could drift
|
|
323
|
-
* from what a live session emits. Loader bookkeeping the prompt never reads
|
|
324
|
-
* (`baseDir`, source info) is deliberately absent — the Host cannot know it and
|
|
325
|
-
* the device must never invent it.
|
|
326
|
-
*/
|
|
327
|
-
export declare const InputPreparationSkillSchema: z.ZodObject<{
|
|
328
|
-
name: z.ZodString;
|
|
329
|
-
description: z.ZodString;
|
|
330
|
-
filePath: z.ZodString;
|
|
331
|
-
disableModelInvocation: z.ZodBoolean;
|
|
332
|
-
}, z.core.$strict>;
|
|
333
|
-
export type InputPreparationSkill = z.infer<typeof InputPreparationSkillSchema>;
|
|
334
|
-
/**
|
|
335
|
-
* Explicit, already-authorized inputs for the native system prompt renderer.
|
|
336
|
-
*
|
|
337
|
-
* `toolSnippets` is PROMPT TEXT the Host authored — it is not the
|
|
338
|
-
* model-visible tool schemas, which the device observes locally and the Host
|
|
339
|
-
* never states (see this module's rule 1). `toolGuidelines` is the same kind of
|
|
340
|
-
* value one level down: the guideline bullets a tool contributes, keyed by tool
|
|
341
|
-
* name and bounded exactly like `toolSnippets` and `promptGuidelines`.
|
|
342
|
-
*
|
|
343
|
-
* `selectedTools` is deliberately absent for the same reason one level up: the
|
|
344
|
-
* native contract requires that list to equal the model-visible manifest
|
|
345
|
-
* exactly, so a Host stating it would be stating the manifest. The device
|
|
346
|
-
* fills it from its own assembled tool surface.
|
|
347
|
-
*/
|
|
299
|
+
/** Complete Host-authored prompt. No Pi renderer or device-local input is consulted. */
|
|
348
300
|
export declare const InputPreparationPromptSnapshotSchema: z.ZodObject<{
|
|
349
|
-
|
|
350
|
-
appendSystemPrompt: z.ZodOptional<z.ZodString>;
|
|
351
|
-
cwd: z.ZodString;
|
|
352
|
-
toolSnippets: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
353
|
-
toolGuidelines: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
354
|
-
promptGuidelines: z.ZodArray<z.ZodString>;
|
|
355
|
-
contextFiles: z.ZodArray<z.ZodObject<{
|
|
356
|
-
path: z.ZodString;
|
|
357
|
-
content: z.ZodString;
|
|
358
|
-
}, z.core.$strict>>;
|
|
359
|
-
skills: z.ZodArray<z.ZodObject<{
|
|
360
|
-
name: z.ZodString;
|
|
361
|
-
description: z.ZodString;
|
|
362
|
-
filePath: z.ZodString;
|
|
363
|
-
disableModelInvocation: z.ZodBoolean;
|
|
364
|
-
}, z.core.$strict>>;
|
|
365
|
-
docsPaths: z.ZodObject<{
|
|
366
|
-
readmePath: z.ZodString;
|
|
367
|
-
docsPath: z.ZodString;
|
|
368
|
-
examplesPath: z.ZodString;
|
|
369
|
-
}, z.core.$strict>;
|
|
301
|
+
systemPrompt: z.ZodString;
|
|
370
302
|
}, z.core.$strict>;
|
|
371
303
|
/**
|
|
372
304
|
* One model-visible user message. Text-only: multimodal content and any extra
|
|
@@ -423,27 +355,7 @@ export type InputPreparationMessage = z.infer<typeof InputPreparationMessageSche
|
|
|
423
355
|
*/
|
|
424
356
|
export declare const InputPreparationContextDocumentSchema: z.ZodObject<{
|
|
425
357
|
prompt: z.ZodObject<{
|
|
426
|
-
|
|
427
|
-
appendSystemPrompt: z.ZodOptional<z.ZodString>;
|
|
428
|
-
cwd: z.ZodString;
|
|
429
|
-
toolSnippets: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
430
|
-
toolGuidelines: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
431
|
-
promptGuidelines: z.ZodArray<z.ZodString>;
|
|
432
|
-
contextFiles: z.ZodArray<z.ZodObject<{
|
|
433
|
-
path: z.ZodString;
|
|
434
|
-
content: z.ZodString;
|
|
435
|
-
}, z.core.$strict>>;
|
|
436
|
-
skills: z.ZodArray<z.ZodObject<{
|
|
437
|
-
name: z.ZodString;
|
|
438
|
-
description: z.ZodString;
|
|
439
|
-
filePath: z.ZodString;
|
|
440
|
-
disableModelInvocation: z.ZodBoolean;
|
|
441
|
-
}, z.core.$strict>>;
|
|
442
|
-
docsPaths: z.ZodObject<{
|
|
443
|
-
readmePath: z.ZodString;
|
|
444
|
-
docsPath: z.ZodString;
|
|
445
|
-
examplesPath: z.ZodString;
|
|
446
|
-
}, z.core.$strict>;
|
|
358
|
+
systemPrompt: z.ZodString;
|
|
447
359
|
}, z.core.$strict>;
|
|
448
360
|
messages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
449
361
|
role: z.ZodLiteral<"user">;
|
|
@@ -513,9 +425,10 @@ export type InputPreparationReadinessReason = z.infer<typeof InputPreparationRea
|
|
|
513
425
|
export declare const InputPreparationRuntimeIdentitySchema: z.ZodObject<{
|
|
514
426
|
packageName: z.ZodString;
|
|
515
427
|
packageVersion: z.ZodString;
|
|
516
|
-
|
|
428
|
+
tarballIntegrity: z.ZodString;
|
|
429
|
+
provenanceDigest: z.ZodString;
|
|
430
|
+
closureDigest: z.ZodString;
|
|
517
431
|
upstreamCommit: z.ZodString;
|
|
518
|
-
forkBuild: z.ZodNumber;
|
|
519
432
|
envelopeFormat: z.ZodString;
|
|
520
433
|
requestFormat: z.ZodString;
|
|
521
434
|
compilerVersion: z.ZodNumber;
|
|
@@ -751,9 +664,10 @@ export declare const InputPreparationBindingSchema: z.ZodObject<{
|
|
|
751
664
|
runtime: z.ZodObject<{
|
|
752
665
|
packageName: z.ZodString;
|
|
753
666
|
packageVersion: z.ZodString;
|
|
754
|
-
|
|
667
|
+
tarballIntegrity: z.ZodString;
|
|
668
|
+
provenanceDigest: z.ZodString;
|
|
669
|
+
closureDigest: z.ZodString;
|
|
755
670
|
upstreamCommit: z.ZodString;
|
|
756
|
-
forkBuild: z.ZodNumber;
|
|
757
671
|
envelopeFormat: z.ZodString;
|
|
758
672
|
requestFormat: z.ZodString;
|
|
759
673
|
compilerVersion: z.ZodNumber;
|
|
@@ -810,9 +724,10 @@ export declare const InputPreparationReceiptSummarySchema: z.ZodObject<{
|
|
|
810
724
|
runtime: z.ZodObject<{
|
|
811
725
|
packageName: z.ZodString;
|
|
812
726
|
packageVersion: z.ZodString;
|
|
813
|
-
|
|
727
|
+
tarballIntegrity: z.ZodString;
|
|
728
|
+
provenanceDigest: z.ZodString;
|
|
729
|
+
closureDigest: z.ZodString;
|
|
814
730
|
upstreamCommit: z.ZodString;
|
|
815
|
-
forkBuild: z.ZodNumber;
|
|
816
731
|
envelopeFormat: z.ZodString;
|
|
817
732
|
requestFormat: z.ZodString;
|
|
818
733
|
compilerVersion: z.ZodNumber;
|
package/dist/messages.d.ts
CHANGED
|
@@ -272,10 +272,11 @@ export declare const RequiredToolsetsSchema: z.ZodArray<z.ZodString>;
|
|
|
272
272
|
/**
|
|
273
273
|
* Additive v1 offer variant for tasks whose semantics require local MCP
|
|
274
274
|
* tools. This is a distinct message type rather than an optional field on
|
|
275
|
-
* `task.offer
|
|
276
|
-
*
|
|
277
|
-
*
|
|
278
|
-
*
|
|
275
|
+
* `task.offer`, so an older daemon can never strip an unknown optional control
|
|
276
|
+
* field and run the task without its required tools. An unknown type is not
|
|
277
|
+
* silently skipped either: on long-poll it freezes the cursor, so the enqueue
|
|
278
|
+
* capability gate is the real compatibility boundary. The whole payload is
|
|
279
|
+
* strict because every field here affects execution authority.
|
|
279
280
|
*/
|
|
280
281
|
export declare const TaskOfferWithToolsetsPayloadSchema: z.ZodObject<{
|
|
281
282
|
instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -656,11 +657,10 @@ export type TaskOfferForAgentWithEgressFreshPayload = z.infer<typeof TaskOfferFo
|
|
|
656
657
|
*
|
|
657
658
|
* A DISTINCT message type, not a `preparation` field added to
|
|
658
659
|
* `task.offer_for_agent`, for the same N/N-1 reason the toolset and egress
|
|
659
|
-
* variants are distinct
|
|
660
|
-
*
|
|
661
|
-
*
|
|
662
|
-
*
|
|
663
|
-
* against tokens that were already counted for a different one.
|
|
660
|
+
* variants are distinct. On long-poll, both an unknown message type and an
|
|
661
|
+
* unknown key on a strict payload freeze the cursor. The enqueue capability
|
|
662
|
+
* gate is the compatibility boundary: v6 requires a drain and paired upgrade,
|
|
663
|
+
* with no dual token or dual read.
|
|
664
664
|
*
|
|
665
665
|
* It carries no `instruction`: the user request is already inside the frozen
|
|
666
666
|
* envelope the referenced record retained, and an offer that carried both would
|
|
@@ -737,6 +737,46 @@ export declare const TaskOfferPreparedPayloadSchema: z.ZodObject<{
|
|
|
737
737
|
requestDigest: z.ZodString;
|
|
738
738
|
artifactDigest: z.ZodOptional<z.ZodString>;
|
|
739
739
|
}, z.core.$strict>;
|
|
740
|
+
egressPolicy: z.ZodObject<{
|
|
741
|
+
policyRevision: z.ZodString;
|
|
742
|
+
activity: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
743
|
+
mode: z.ZodLiteral<"metadata-status">;
|
|
744
|
+
delivery: z.ZodLiteral<"latest-value">;
|
|
745
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
746
|
+
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
747
|
+
delivery: z.ZodLiteral<"latest-value">;
|
|
748
|
+
maxCoalesceMs: z.ZodNumber;
|
|
749
|
+
maxEventBytes: z.ZodNumber;
|
|
750
|
+
}, z.core.$strict>], "mode">;
|
|
751
|
+
reliable: z.ZodObject<{
|
|
752
|
+
maxPendingEventsPerAgent: z.ZodNumber;
|
|
753
|
+
maxPendingBytesPerAgent: z.ZodNumber;
|
|
754
|
+
maxPendingBytesPerTenant: z.ZodNumber;
|
|
755
|
+
}, z.core.$strict>;
|
|
756
|
+
transfers: z.ZodObject<{
|
|
757
|
+
workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
758
|
+
maxBytes: z.ZodNumber;
|
|
759
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
760
|
+
}, z.core.$strict>]>;
|
|
761
|
+
transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
762
|
+
maxBytes: z.ZodNumber;
|
|
763
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
764
|
+
}, z.core.$strict>]>;
|
|
765
|
+
artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
766
|
+
maxBytes: z.ZodNumber;
|
|
767
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
768
|
+
}, z.core.$strict>]>;
|
|
769
|
+
}, z.core.$strict>;
|
|
770
|
+
}, z.core.$strict>;
|
|
771
|
+
messageEgress: z.ZodOptional<z.ZodObject<{
|
|
772
|
+
mode: z.ZodLiteral<"required">;
|
|
773
|
+
contract: z.ZodString;
|
|
774
|
+
contentType: z.ZodEnum<{
|
|
775
|
+
"text/markdown": "text/markdown";
|
|
776
|
+
"text/plain": "text/plain";
|
|
777
|
+
}>;
|
|
778
|
+
maxBytes: z.ZodNumber;
|
|
779
|
+
}, z.core.$strict>>;
|
|
740
780
|
}, z.core.$strict>;
|
|
741
781
|
export type TaskOfferPreparedPayload = z.infer<typeof TaskOfferPreparedPayloadSchema>;
|
|
742
782
|
/** Daemon -> cloud: one durable reliable-lane item after local sanitization. */
|
|
@@ -972,11 +1012,12 @@ export type AgentHomeProjectionPayload = z.infer<typeof AgentHomeProjectionPaylo
|
|
|
972
1012
|
* Server -> daemon: one task-free, exact-device remote input preparation.
|
|
973
1013
|
*
|
|
974
1014
|
* Distinct message type rather than an optional field on an existing one, for
|
|
975
|
-
* the same N/N-1 reason `task.offer_with_toolsets` is:
|
|
976
|
-
*
|
|
977
|
-
*
|
|
978
|
-
*
|
|
979
|
-
*
|
|
1015
|
+
* the same N/N-1 reason `task.offer_with_toolsets` is: an optional field could be
|
|
1016
|
+
* legally STRIPPED by a daemon that predates this contract, which would then
|
|
1017
|
+
* answer as though a preparation it never performed had somehow been handled.
|
|
1018
|
+
* An unknown type (`parseMessage` -> `UnknownMessageTypeError`) is not skipped
|
|
1019
|
+
* cleanly either: on long-poll it freezes the cursor, so the enqueue capability
|
|
1020
|
+
* gate is the compatibility boundary.
|
|
980
1021
|
*
|
|
981
1022
|
* What is deliberately NOT here (§17 B): `tools`, `toolExecutors`, runtime or
|
|
982
1023
|
* compiler identity, `tenantId` and `deviceId`. The first three are local
|
|
@@ -2206,6 +2247,46 @@ declare const TASK_OFFER_PAYLOAD_SCHEMAS: {
|
|
|
2206
2247
|
requestDigest: z.ZodString;
|
|
2207
2248
|
artifactDigest: z.ZodOptional<z.ZodString>;
|
|
2208
2249
|
}, z.core.$strict>;
|
|
2250
|
+
egressPolicy: z.ZodObject<{
|
|
2251
|
+
policyRevision: z.ZodString;
|
|
2252
|
+
activity: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2253
|
+
mode: z.ZodLiteral<"metadata-status">;
|
|
2254
|
+
delivery: z.ZodLiteral<"latest-value">;
|
|
2255
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2256
|
+
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
2257
|
+
delivery: z.ZodLiteral<"latest-value">;
|
|
2258
|
+
maxCoalesceMs: z.ZodNumber;
|
|
2259
|
+
maxEventBytes: z.ZodNumber;
|
|
2260
|
+
}, z.core.$strict>], "mode">;
|
|
2261
|
+
reliable: z.ZodObject<{
|
|
2262
|
+
maxPendingEventsPerAgent: z.ZodNumber;
|
|
2263
|
+
maxPendingBytesPerAgent: z.ZodNumber;
|
|
2264
|
+
maxPendingBytesPerTenant: z.ZodNumber;
|
|
2265
|
+
}, z.core.$strict>;
|
|
2266
|
+
transfers: z.ZodObject<{
|
|
2267
|
+
workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2268
|
+
maxBytes: z.ZodNumber;
|
|
2269
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2270
|
+
}, z.core.$strict>]>;
|
|
2271
|
+
transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2272
|
+
maxBytes: z.ZodNumber;
|
|
2273
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2274
|
+
}, z.core.$strict>]>;
|
|
2275
|
+
artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2276
|
+
maxBytes: z.ZodNumber;
|
|
2277
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2278
|
+
}, z.core.$strict>]>;
|
|
2279
|
+
}, z.core.$strict>;
|
|
2280
|
+
}, z.core.$strict>;
|
|
2281
|
+
messageEgress: z.ZodOptional<z.ZodObject<{
|
|
2282
|
+
mode: z.ZodLiteral<"required">;
|
|
2283
|
+
contract: z.ZodString;
|
|
2284
|
+
contentType: z.ZodEnum<{
|
|
2285
|
+
"text/markdown": "text/markdown";
|
|
2286
|
+
"text/plain": "text/plain";
|
|
2287
|
+
}>;
|
|
2288
|
+
maxBytes: z.ZodNumber;
|
|
2289
|
+
}, z.core.$strict>>;
|
|
2209
2290
|
}, z.core.$strict>;
|
|
2210
2291
|
};
|
|
2211
2292
|
export type TaskOfferType = keyof typeof TASK_OFFER_PAYLOAD_SCHEMAS;
|
|
@@ -2693,6 +2774,46 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2693
2774
|
requestDigest: z.ZodString;
|
|
2694
2775
|
artifactDigest: z.ZodOptional<z.ZodString>;
|
|
2695
2776
|
}, z.core.$strict>;
|
|
2777
|
+
egressPolicy: z.ZodObject<{
|
|
2778
|
+
policyRevision: z.ZodString;
|
|
2779
|
+
activity: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2780
|
+
mode: z.ZodLiteral<"metadata-status">;
|
|
2781
|
+
delivery: z.ZodLiteral<"latest-value">;
|
|
2782
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2783
|
+
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
2784
|
+
delivery: z.ZodLiteral<"latest-value">;
|
|
2785
|
+
maxCoalesceMs: z.ZodNumber;
|
|
2786
|
+
maxEventBytes: z.ZodNumber;
|
|
2787
|
+
}, z.core.$strict>], "mode">;
|
|
2788
|
+
reliable: z.ZodObject<{
|
|
2789
|
+
maxPendingEventsPerAgent: z.ZodNumber;
|
|
2790
|
+
maxPendingBytesPerAgent: z.ZodNumber;
|
|
2791
|
+
maxPendingBytesPerTenant: z.ZodNumber;
|
|
2792
|
+
}, z.core.$strict>;
|
|
2793
|
+
transfers: z.ZodObject<{
|
|
2794
|
+
workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2795
|
+
maxBytes: z.ZodNumber;
|
|
2796
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2797
|
+
}, z.core.$strict>]>;
|
|
2798
|
+
transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2799
|
+
maxBytes: z.ZodNumber;
|
|
2800
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2801
|
+
}, z.core.$strict>]>;
|
|
2802
|
+
artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2803
|
+
maxBytes: z.ZodNumber;
|
|
2804
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2805
|
+
}, z.core.$strict>]>;
|
|
2806
|
+
}, z.core.$strict>;
|
|
2807
|
+
}, z.core.$strict>;
|
|
2808
|
+
messageEgress: z.ZodOptional<z.ZodObject<{
|
|
2809
|
+
mode: z.ZodLiteral<"required">;
|
|
2810
|
+
contract: z.ZodString;
|
|
2811
|
+
contentType: z.ZodEnum<{
|
|
2812
|
+
"text/markdown": "text/markdown";
|
|
2813
|
+
"text/plain": "text/plain";
|
|
2814
|
+
}>;
|
|
2815
|
+
maxBytes: z.ZodNumber;
|
|
2816
|
+
}, z.core.$strict>>;
|
|
2696
2817
|
}, z.core.$strict>;
|
|
2697
2818
|
readonly 'conn.hello': z.ZodObject<{
|
|
2698
2819
|
protocolVersions: z.ZodArray<z.ZodNumber>;
|
package/dist/version.d.ts
CHANGED
|
@@ -107,5 +107,5 @@ export declare const STRICT_AGENT_ONLY_CAPABILITY: 'strict-agent-only';
|
|
|
107
107
|
* cannot accidentally execute the instruction without the required tools.
|
|
108
108
|
*/
|
|
109
109
|
export declare const CUSTOM_HARNESS_CAPABILITY: 'custom-harness';
|
|
110
|
-
export declare const CAPABILITY_FLAGS: readonly ['steer', 'blob-upload', 'interactive-approval', 'approval_resolved', 'approval-targeting', 'result-document', 'dispatch-selection', "provider-profile-binding", 'toolset-selection', 'agent-home-contract', "strict-agent-only", "agent-egress-policy", "agent-egress-reliable-ack", "agent-message-egress", "agent-egress-fresh-session", "agent-content-workspace-read", "agent-content-transcript-read", "agent-content-artifact-read", "agent-home-projection", "agent-input-preparation-
|
|
110
|
+
export declare const CAPABILITY_FLAGS: readonly ['steer', 'blob-upload', 'interactive-approval', 'approval_resolved', 'approval-targeting', 'result-document', 'dispatch-selection', "provider-profile-binding", 'toolset-selection', 'agent-home-contract', "strict-agent-only", "agent-egress-policy", "agent-egress-reliable-ack", "agent-message-egress", "agent-egress-fresh-session", "agent-content-workspace-read", "agent-content-transcript-read", "agent-content-artifact-read", "agent-home-projection", "agent-input-preparation-v7", "terminal-projection-selection", "host-mcp-task-context", "custom-harness", "mailbox-read-ahead"];
|
|
111
111
|
export type CapabilityFlag = (typeof CAPABILITY_FLAGS)[number];
|