@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.
@@ -601,6 +601,46 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
601
601
  requestDigest: z.ZodString;
602
602
  artifactDigest: z.ZodOptional<z.ZodString>;
603
603
  }, z.core.$strict>;
604
+ egressPolicy: z.ZodObject<{
605
+ policyRevision: z.ZodString;
606
+ activity: z.ZodDiscriminatedUnion<[z.ZodObject<{
607
+ mode: z.ZodLiteral<"metadata-status">;
608
+ delivery: z.ZodLiteral<"latest-value">;
609
+ }, z.core.$strict>, z.ZodObject<{
610
+ mode: z.ZodLiteral<"contentful-trajectory">;
611
+ delivery: z.ZodLiteral<"latest-value">;
612
+ maxCoalesceMs: z.ZodNumber;
613
+ maxEventBytes: z.ZodNumber;
614
+ }, z.core.$strict>], "mode">;
615
+ reliable: z.ZodObject<{
616
+ maxPendingEventsPerAgent: z.ZodNumber;
617
+ maxPendingBytesPerAgent: z.ZodNumber;
618
+ maxPendingBytesPerTenant: z.ZodNumber;
619
+ }, z.core.$strict>;
620
+ transfers: z.ZodObject<{
621
+ workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
622
+ maxBytes: z.ZodNumber;
623
+ allowedMimeTypes: z.ZodArray<z.ZodString>;
624
+ }, z.core.$strict>]>;
625
+ transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
626
+ maxBytes: z.ZodNumber;
627
+ allowedMimeTypes: z.ZodArray<z.ZodString>;
628
+ }, z.core.$strict>]>;
629
+ artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
630
+ maxBytes: z.ZodNumber;
631
+ allowedMimeTypes: z.ZodArray<z.ZodString>;
632
+ }, z.core.$strict>]>;
633
+ }, z.core.$strict>;
634
+ }, z.core.$strict>;
635
+ messageEgress: z.ZodOptional<z.ZodObject<{
636
+ mode: z.ZodLiteral<"required">;
637
+ contract: z.ZodString;
638
+ contentType: z.ZodEnum<{
639
+ "text/markdown": "text/markdown";
640
+ "text/plain": "text/plain";
641
+ }>;
642
+ maxBytes: z.ZodNumber;
643
+ }, z.core.$strict>>;
604
644
  }, z.core.$strict>;
605
645
  }, z.core.$strip>, z.ZodObject<{
606
646
  v: z.ZodNumber;
@@ -695,6 +695,46 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
695
695
  requestDigest: z.ZodString;
696
696
  artifactDigest: z.ZodOptional<z.ZodString>;
697
697
  }, z.core.$strict>;
698
+ egressPolicy: z.ZodObject<{
699
+ policyRevision: z.ZodString;
700
+ activity: z.ZodDiscriminatedUnion<[z.ZodObject<{
701
+ mode: z.ZodLiteral<"metadata-status">;
702
+ delivery: z.ZodLiteral<"latest-value">;
703
+ }, z.core.$strict>, z.ZodObject<{
704
+ mode: z.ZodLiteral<"contentful-trajectory">;
705
+ delivery: z.ZodLiteral<"latest-value">;
706
+ maxCoalesceMs: z.ZodNumber;
707
+ maxEventBytes: z.ZodNumber;
708
+ }, z.core.$strict>], "mode">;
709
+ reliable: z.ZodObject<{
710
+ maxPendingEventsPerAgent: z.ZodNumber;
711
+ maxPendingBytesPerAgent: z.ZodNumber;
712
+ maxPendingBytesPerTenant: z.ZodNumber;
713
+ }, z.core.$strict>;
714
+ transfers: z.ZodObject<{
715
+ workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
716
+ maxBytes: z.ZodNumber;
717
+ allowedMimeTypes: z.ZodArray<z.ZodString>;
718
+ }, z.core.$strict>]>;
719
+ transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
720
+ maxBytes: z.ZodNumber;
721
+ allowedMimeTypes: z.ZodArray<z.ZodString>;
722
+ }, z.core.$strict>]>;
723
+ artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
724
+ maxBytes: z.ZodNumber;
725
+ allowedMimeTypes: z.ZodArray<z.ZodString>;
726
+ }, z.core.$strict>]>;
727
+ }, z.core.$strict>;
728
+ }, z.core.$strict>;
729
+ messageEgress: z.ZodOptional<z.ZodObject<{
730
+ mode: z.ZodLiteral<"required">;
731
+ contract: z.ZodString;
732
+ contentType: z.ZodEnum<{
733
+ "text/markdown": "text/markdown";
734
+ "text/plain": "text/plain";
735
+ }>;
736
+ maxBytes: z.ZodNumber;
737
+ }, z.core.$strict>>;
698
738
  }, z.core.$strict>;
699
739
  }, z.core.$strip>, z.ZodObject<{
700
740
  v: z.ZodNumber;
@@ -2033,6 +2073,46 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
2033
2073
  requestDigest: z.ZodString;
2034
2074
  artifactDigest: z.ZodOptional<z.ZodString>;
2035
2075
  }, z.core.$strict>;
2076
+ egressPolicy: z.ZodObject<{
2077
+ policyRevision: z.ZodString;
2078
+ activity: z.ZodDiscriminatedUnion<[z.ZodObject<{
2079
+ mode: z.ZodLiteral<"metadata-status">;
2080
+ delivery: z.ZodLiteral<"latest-value">;
2081
+ }, z.core.$strict>, z.ZodObject<{
2082
+ mode: z.ZodLiteral<"contentful-trajectory">;
2083
+ delivery: z.ZodLiteral<"latest-value">;
2084
+ maxCoalesceMs: z.ZodNumber;
2085
+ maxEventBytes: z.ZodNumber;
2086
+ }, z.core.$strict>], "mode">;
2087
+ reliable: z.ZodObject<{
2088
+ maxPendingEventsPerAgent: z.ZodNumber;
2089
+ maxPendingBytesPerAgent: z.ZodNumber;
2090
+ maxPendingBytesPerTenant: z.ZodNumber;
2091
+ }, z.core.$strict>;
2092
+ transfers: z.ZodObject<{
2093
+ workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
2094
+ maxBytes: z.ZodNumber;
2095
+ allowedMimeTypes: z.ZodArray<z.ZodString>;
2096
+ }, z.core.$strict>]>;
2097
+ transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
2098
+ maxBytes: z.ZodNumber;
2099
+ allowedMimeTypes: z.ZodArray<z.ZodString>;
2100
+ }, z.core.$strict>]>;
2101
+ artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
2102
+ maxBytes: z.ZodNumber;
2103
+ allowedMimeTypes: z.ZodArray<z.ZodString>;
2104
+ }, z.core.$strict>]>;
2105
+ }, z.core.$strict>;
2106
+ }, z.core.$strict>;
2107
+ messageEgress: z.ZodOptional<z.ZodObject<{
2108
+ mode: z.ZodLiteral<"required">;
2109
+ contract: z.ZodString;
2110
+ contentType: z.ZodEnum<{
2111
+ "text/markdown": "text/markdown";
2112
+ "text/plain": "text/plain";
2113
+ }>;
2114
+ maxBytes: z.ZodNumber;
2115
+ }, z.core.$strict>>;
2036
2116
  }, z.core.$strict>;
2037
2117
  }, z.core.$strip>, z.ZodObject<{
2038
2118
  v: z.ZodNumber;
@@ -2871,9 +2951,10 @@ export declare const InputPreparationCompletionRequestSchema: z.ZodDiscriminated
2871
2951
  runtime: z.ZodObject<{
2872
2952
  packageName: z.ZodString;
2873
2953
  packageVersion: z.ZodString;
2874
- upstreamBase: z.ZodString;
2954
+ tarballIntegrity: z.ZodString;
2955
+ provenanceDigest: z.ZodString;
2956
+ closureDigest: z.ZodString;
2875
2957
  upstreamCommit: z.ZodString;
2876
- forkBuild: z.ZodNumber;
2877
2958
  envelopeFormat: z.ZodString;
2878
2959
  requestFormat: z.ZodString;
2879
2960
  compilerVersion: z.ZodNumber;
@@ -3066,9 +3147,10 @@ export declare const InputPreparationReadbackSchema: z.ZodObject<{
3066
3147
  runtime: z.ZodObject<{
3067
3148
  packageName: z.ZodString;
3068
3149
  packageVersion: z.ZodString;
3069
- upstreamBase: z.ZodString;
3150
+ tarballIntegrity: z.ZodString;
3151
+ provenanceDigest: z.ZodString;
3152
+ closureDigest: z.ZodString;
3070
3153
  upstreamCommit: z.ZodString;
3071
- forkBuild: z.ZodNumber;
3072
3154
  envelopeFormat: z.ZodString;
3073
3155
  requestFormat: z.ZodString;
3074
3156
  compilerVersion: z.ZodNumber;
package/dist/index.d.ts CHANGED
@@ -13,8 +13,8 @@ export { AgentEgressPolicySchema, AgentEgressActivityPolicySchema, AgentReliable
13
13
  export type { AgentEgressPolicy, AgentEgressActivityPolicy, AgentReliableQuotaPolicy, ContentReadPolicy, AgentEgressLane, AgentEgressDropReason, AgentMessageContentType, AgentMessageEgressRequirement, AgentMessageServerContext, AgentContentReadSurface, AgentContentActorKind, AgentContentActor, AgentContentDecodeAs, AgentContentReadDecision, AgentContentReadDenialReason, } from './agent-egress';
14
14
  export { AGENT_HOME_PROJECTION_CAPABILITY, AGENT_HOME_PROJECTION_MAX_BYTES, AGENT_HOME_PROJECTION_PROFILE_REVISION_MAXIMUM, AgentHomeProjectionProfileRevisionSchema, AgentHomeProjectionHashSchema, AgentHomeProjectionOutcomeSchema, AgentHomeProjectionValueSchema, } from './agent-home-projection';
15
15
  export type { AgentHomeProjectionProfileRevision, AgentHomeProjectionHash, AgentHomeProjectionOutcome, AgentHomeProjectionValue, } from './agent-home-projection';
16
- export { AGENT_INPUT_PREPARATION_CAPABILITY, INPUT_PREPARATION_WIRE_VERSION, InputPreparationContentHashSchema, InputPreparationPermissionModeSchema, InputPreparationPolicyRevisionSchema, InputPreparationProfileIdSchema, InputPreparationSourceSchema, InputPreparationModelCostSchema, InputPreparationModelSchema, InputPreparationOptionsSchema, InputPreparationSelectionSchema, InputPreparationContextFileSchema, InputPreparationDocsPathsSchema, InputPreparationSkillSchema, InputPreparationPromptSnapshotSchema, InputPreparationUserMessageSchema, InputPreparationHostCanonicalAssistantMessageSchema, InputPreparationMessageSchema, InputPreparationContextDocumentSchema, InputPreparationStateSchema, InputPreparationReadinessReasonSchema, InputPreparationRuntimeIdentitySchema, InputPreparationCounterTargetSchema, InputPreparationAccountingPolicyRefSchema, InputPreparationCounterProviderEvidenceSchema, InputPreparationCounterEvidenceSchema, InputPreparationResidualValueClassSchema, InputPreparationResidualKeySchema, InputPreparationProjectionSchema, InputPreparationToolImplementationKindSchema, InputPreparationArtifactSummarySchema, InputPreparationBindingSchema, InputPreparationReceiptSummarySchema, InputPreparationReferenceSchema, InputPreparationOfferBindingSchema, InputPreparationRejectionReasonSchema, } from './input-preparation';
17
- export type { InputPreparationPermissionMode, InputPreparationSource, InputPreparationModel, InputPreparationOptions, InputPreparationSelection, InputPreparationSkill, InputPreparationMessage, InputPreparationContextDocument, InputPreparationState, InputPreparationReadinessReason, InputPreparationAccountingPolicyRef, InputPreparationResidualValueClass, InputPreparationRuntimeIdentity, InputPreparationReceiptSummary, InputPreparationOfferBinding, InputPreparationRejectionReason, } from './input-preparation';
16
+ export { AGENT_INPUT_PREPARATION_CAPABILITY, INPUT_PREPARATION_WIRE_VERSION, InputPreparationContentHashSchema, InputPreparationPermissionModeSchema, InputPreparationPolicyRevisionSchema, InputPreparationProfileIdSchema, InputPreparationSourceSchema, InputPreparationModelCostSchema, InputPreparationModelSchema, InputPreparationOptionsSchema, InputPreparationSelectionSchema, InputPreparationPromptSnapshotSchema, InputPreparationUserMessageSchema, InputPreparationHostCanonicalAssistantMessageSchema, InputPreparationMessageSchema, InputPreparationContextDocumentSchema, InputPreparationStateSchema, InputPreparationReadinessReasonSchema, InputPreparationRuntimeIdentitySchema, InputPreparationCounterTargetSchema, InputPreparationAccountingPolicyRefSchema, InputPreparationCounterProviderEvidenceSchema, InputPreparationCounterEvidenceSchema, InputPreparationResidualValueClassSchema, InputPreparationResidualKeySchema, InputPreparationProjectionSchema, InputPreparationToolImplementationKindSchema, InputPreparationArtifactSummarySchema, InputPreparationBindingSchema, InputPreparationReceiptSummarySchema, InputPreparationReferenceSchema, InputPreparationOfferBindingSchema, InputPreparationRejectionReasonSchema, } from './input-preparation';
17
+ export type { InputPreparationPermissionMode, InputPreparationSource, InputPreparationModel, InputPreparationOptions, InputPreparationSelection, InputPreparationMessage, InputPreparationContextDocument, InputPreparationState, InputPreparationReadinessReason, InputPreparationAccountingPolicyRef, InputPreparationResidualValueClass, InputPreparationRuntimeIdentity, InputPreparationReceiptSummary, InputPreparationOfferBinding, InputPreparationRejectionReason, } from './input-preparation';
18
18
  export { AGENT_MEMORY_PROJECTION_CAPABILITY, AGENT_MEMORY_PROJECTION_MAX_REDACTED_BYTES, AGENT_MEMORY_PROJECTION_MAX_ORDERING_VALUE, AgentMemoryProjectionGrantRefSchema, AgentMemoryProjectionSessionRefSchema, AgentMemoryProjectionWriterEpochSchema, AgentMemoryProjectionSourceSeqSchema, AgentMemoryProjectionSnapshotSchema, AgentMemoryProjectionMeteringReceiptSchema, AgentMemoryProjectionMutationSchema, AgentMemoryProjectionReceiptSchema, AgentMemoryProjectionEraseResultSchema, agentMemoryProjectionBase64UrlByteLength, } from './agent-memory-projection';
19
19
  export type { AgentMemoryProjectionGrantRef, AgentMemoryProjectionSessionRef, AgentMemoryProjectionWriterEpoch, AgentMemoryProjectionSourceSeq, AgentMemoryProjectionSnapshot, AgentMemoryProjectionMeteringReceipt, AgentMemoryProjectionMutation, AgentMemoryProjectionReceipt, AgentMemoryProjectionEraseResult, } from './agent-memory-projection';
20
20
  export { HOST_MCP_TASK_CONTEXT_CAPABILITY } from './task-assertion';
package/dist/index.js CHANGED
@@ -123,7 +123,7 @@ var PermissionPolicySchema = z.object({
123
123
  }).strict();
124
124
 
125
125
  // src/input-preparation.ts
126
- var INPUT_PREPARATION_WIRE_VERSION = 5;
126
+ var INPUT_PREPARATION_WIRE_VERSION = 7;
127
127
  var AGENT_INPUT_PREPARATION_CAPABILITY = `agent-input-preparation-v${INPUT_PREPARATION_WIRE_VERSION}`;
128
128
  var InputPreparationContentHashSchema = AgentEgressContentHashSchema;
129
129
  var OPAQUE_ID = z.string().min(1).max(512).regex(/^[^\u0000-\u001f\u007f]+$/u, "control identifiers must not contain control characters");
@@ -191,26 +191,7 @@ var InputPreparationOptionsSchema = z.object({
191
191
  reasoningEffort: z.enum(["minimal", "low", "medium", "high", "xhigh", "max"]).optional()
192
192
  }).strict();
193
193
  var InputPreparationSelectionSchema = z.object({ model: InputPreparationModelSchema, options: InputPreparationOptionsSchema }).strict();
194
- var CONTEXT_PATH = z.string().max(4096).regex(/^[^\u0000]*$/u, "paths must not contain a NUL character");
195
- var InputPreparationContextFileSchema = z.object({ path: CONTEXT_PATH, content: z.string() }).strict();
196
- var InputPreparationDocsPathsSchema = z.object({ readmePath: CONTEXT_PATH, docsPath: CONTEXT_PATH, examplesPath: CONTEXT_PATH }).strict();
197
- var InputPreparationSkillSchema = z.object({
198
- name: OPAQUE_ID,
199
- description: z.string().max(4096),
200
- filePath: CONTEXT_PATH,
201
- disableModelInvocation: z.boolean()
202
- }).strict();
203
- var InputPreparationPromptSnapshotSchema = z.object({
204
- customPrompt: z.string().optional(),
205
- appendSystemPrompt: z.string().optional(),
206
- cwd: CONTEXT_PATH,
207
- toolSnippets: z.record(z.string(), z.string()),
208
- toolGuidelines: z.record(z.string(), z.array(z.string()).max(512)),
209
- promptGuidelines: z.array(z.string()).max(512),
210
- contextFiles: z.array(InputPreparationContextFileSchema).max(512),
211
- skills: z.array(InputPreparationSkillSchema).max(512),
212
- docsPaths: InputPreparationDocsPathsSchema
213
- }).strict();
194
+ var InputPreparationPromptSnapshotSchema = z.object({ systemPrompt: z.string() }).strict();
214
195
  var InputPreparationUserMessageSchema = z.object({
215
196
  role: z.literal("user"),
216
197
  content: z.string(),
@@ -277,9 +258,10 @@ var InputPreparationReadinessReasonSchema = z.enum([
277
258
  var InputPreparationRuntimeIdentitySchema = z.object({
278
259
  packageName: OPAQUE_ID,
279
260
  packageVersion: OPAQUE_ID,
280
- upstreamBase: OPAQUE_ID,
261
+ tarballIntegrity: z.string().regex(/^sha512-[A-Za-z0-9+/]+={0,2}$/u),
262
+ provenanceDigest: z.string().regex(/^[0-9a-f]{64}$/u),
263
+ closureDigest: z.string().regex(/^[0-9a-f]{64}$/u),
281
264
  upstreamCommit: OPAQUE_ID,
282
- forkBuild: z.number().int().nonnegative(),
283
265
  envelopeFormat: OPAQUE_ID,
284
266
  requestFormat: OPAQUE_ID,
285
267
  compilerVersion: z.number().int().nonnegative()
@@ -760,7 +742,11 @@ var TaskOfferForAgentWithEgressFreshPayloadSchema = TaskOfferForAgentPayloadSche
760
742
  var TaskOfferPreparedPayloadSchema = TaskOfferForAgentPayloadSchema.omit({
761
743
  instruction: true,
762
744
  sessionRef: true
763
- }).extend({ preparation: InputPreparationOfferBindingSchema }).strict();
745
+ }).extend({
746
+ preparation: InputPreparationOfferBindingSchema,
747
+ egressPolicy: AgentEgressPolicySchema,
748
+ messageEgress: AgentMessageEgressRequirementSchema.optional()
749
+ }).strict();
764
750
  var EGRESS_SAFE_VALUE = z.json().refine(
765
751
  (value) => new TextEncoder().encode(JSON.stringify(value)).byteLength <= 256 * 1024,
766
752
  "sanitized egress payload exceeds 256KiB"
@@ -913,7 +899,7 @@ var AgentInputPreparationPayloadSchema = z.object({
913
899
  selection: InputPreparationSelectionSchema,
914
900
  deadlineAt: z.iso.datetime({ offset: true }),
915
901
  context: z.union([InputPreparationInlineContextSchema, InputPreparationBlobContextSchema]),
916
- requiredToolsets: RequiredToolsetsSchema,
902
+ requiredToolsets: z.array(ToolsetIdSchema).max(16).superRefine((ids, ctx) => rejectDuplicateToolsets(ids, ctx, "required")),
917
903
  permissionMode: InputPreparationPermissionModeSchema,
918
904
  /**
919
905
  * The Host's accounting ruling for this preparation, carried verbatim onto
@@ -1624,6 +1610,6 @@ function byokBlobContentPath(blobId) {
1624
1610
  return `/byok/blobs/${blobId}/content`;
1625
1611
  }
1626
1612
 
1627
- export { AGENT_CONTENT_ARTIFACT_READ_CAPABILITY, AGENT_CONTENT_TRANSCRIPT_READ_CAPABILITY, AGENT_CONTENT_WORKSPACE_READ_CAPABILITY, AGENT_EGRESS_FRESH_SESSION_CAPABILITY, AGENT_EGRESS_POLICY_CAPABILITY, AGENT_EGRESS_RELIABLE_ACK_CAPABILITY, AGENT_EVENT_SPILL_UNSTORED_REASON_MAX_LENGTH, AGENT_HOME_PROJECTION_CAPABILITY, AGENT_HOME_PROJECTION_MAX_BYTES, AGENT_HOME_PROJECTION_PROFILE_REVISION_MAXIMUM, AGENT_INPUT_PREPARATION_CAPABILITY, AGENT_MEMORY_PROJECTION_CAPABILITY, AGENT_MEMORY_PROJECTION_MAX_ORDERING_VALUE, AGENT_MEMORY_PROJECTION_MAX_REDACTED_BYTES, AGENT_MESSAGE_EGRESS_CAPABILITY, AGENT_MESSAGE_MAX_BYTES, AGENT_REF_MAX_BYTES, AgentContentActorKindSchema, AgentContentActorSchema, AgentContentDecodeAsSchema, AgentContentMimeTypeSchema, AgentContentReadDecisionSchema, AgentContentReadDenialReasonSchema, AgentContentReadPayloadSchema, AgentContentReadSurfaceSchema, AgentContentReceiptPayloadSchema, AgentEgressAckPayloadSchema, AgentEgressActivityPolicySchema, AgentEgressContentHashSchema, AgentEgressDropReasonSchema, AgentEgressLaneSchema, AgentEgressPolicyRevisionSchema, AgentEgressPolicySchema, AgentEgressReliablePayloadSchema, AgentEventOrUnknownSchema, AgentEventSchema, AgentEventSpillSchema, AgentHomeProjectionAgentRefSchema, AgentHomeProjectionCompletionRequestSchema, AgentHomeProjectionHashSchema, AgentHomeProjectionOutcomeSchema, AgentHomeProjectionPayloadSchema, AgentHomeProjectionProfileRevisionSchema, AgentHomeProjectionReadbackSchema, AgentHomeProjectionStatusSchema, AgentHomeProjectionValueSchema, AgentInputPreparationPayloadSchema, AgentMemoryProjectionCommitRequestSchema, AgentMemoryProjectionCommitResponseSchema, AgentMemoryProjectionEraseResultSchema, AgentMemoryProjectionGrantRefSchema, AgentMemoryProjectionMeteringReceiptSchema, AgentMemoryProjectionMutationSchema, AgentMemoryProjectionReceiptSchema, AgentMemoryProjectionSessionRefSchema, AgentMemoryProjectionSnapshotSchema, AgentMemoryProjectionSourceSeqSchema, AgentMemoryProjectionWriterEpochSchema, AgentMessageContentTypeSchema, AgentMessageContractSchema, AgentMessageDestinationBindingSchema, AgentMessageDispositionPayloadSchema, AgentMessageEgressRequirementSchema, AgentMessageFreshnessCursorSchema, AgentMessagePublishPayloadSchema, AgentMessageServerContextSchema, AgentRefSchema, AgentReliableQuotaPolicySchema, BYOK_ACTIVITY_PATH, BYOK_AGENT_HOME_PROJECTIONS_PATH, BYOK_AGENT_HOME_PROJECTION_COMPLETION_ROUTE, BYOK_AGENT_MEMORY_PROJECTIONS_PATH, BYOK_BLOBS_PATH, BYOK_BLOB_CONTENT_ROUTE, BYOK_BLOB_FINALIZE_ROUTE, BYOK_BLOB_URL_ROUTE, BYOK_BOARD_CLAIM_ROUTE, BYOK_BOARD_PATH, BYOK_BOARD_STATUS_ROUTE, BYOK_BOARD_STREAM_PATH, BYOK_BOARD_UNCLAIM_ROUTE, BYOK_CAPABILITIES_PATH, BYOK_CHALLENGE_PATH, BYOK_EVENTS_PATH, BYOK_INPUT_PREPARATIONS_PATH, BYOK_INPUT_PREPARATION_COMPLETION_ROUTE, BYOK_INPUT_PREPARATION_STATUS_ROUTE, BYOK_MESSAGES_PATH, BYOK_PAIR_PATH, BYOK_PRESENCE_PATH, BYOK_RECORDS_PATH, BYOK_RECORD_ROUTE, BYOK_SKILL_PACKS_PATH, BYOK_SKILL_PACK_FILE_ROUTE, BYOK_TOKEN_PATH, BlobDownloadUrlResponseSchema, BlobRefSchema, CAPABILITY_FLAGS, CONFIGURED_TOOLSETS_MAX_ITEMS, CONTENT_HASH_RE, CUSTOM_HARNESS_CAPABILITY, ChallengeRequestSchema, ChallengeResponseSchema, ConfiguredToolsetsSchema, ConnAckPayloadSchema, ConnHelloPayloadSchema, ContentReadPolicySchema, CreateBlobRequestSchema, CreateBlobResponseSchema, DAEMON_TO_SERVER_TYPES, DispatchSelectionSchema, EnvelopeParseError, EnvelopeSchema, EnvelopeValidationError, EventsPollQuerySchema, EventsPollResponseSchema, HOST_MCP_TASK_CONTEXT_CAPABILITY, HarnessIdSchema, HarnessInfoSchema, HarnessInventorySchema, INPUT_PREPARATION_WIRE_VERSION, InputPreparationAccountingPolicyRefSchema, InputPreparationArtifactSummarySchema, InputPreparationBindingSchema, InputPreparationCompletionRequestSchema, InputPreparationContentHashSchema, InputPreparationContextDocumentSchema, InputPreparationContextFileSchema, InputPreparationCounterEvidenceSchema, InputPreparationCounterProviderEvidenceSchema, InputPreparationCounterTargetSchema, InputPreparationDocsPathsSchema, InputPreparationHostCanonicalAssistantMessageSchema, InputPreparationMessageSchema, InputPreparationModelCostSchema, InputPreparationModelSchema, InputPreparationOfferBindingSchema, InputPreparationOptionsSchema, InputPreparationPermissionModeSchema, InputPreparationPolicyRevisionSchema, InputPreparationProfileIdSchema, InputPreparationProjectionSchema, InputPreparationPromptSnapshotSchema, InputPreparationReadbackSchema, InputPreparationReadinessReasonSchema, InputPreparationReceiptSummarySchema, InputPreparationReferenceSchema, InputPreparationRejectionReasonSchema, InputPreparationResidualKeySchema, InputPreparationResidualValueClassSchema, InputPreparationRuntimeIdentitySchema, InputPreparationSelectionSchema, InputPreparationSkillSchema, InputPreparationSourceSchema, InputPreparationStateSchema, InputPreparationStatusQuerySchema, InputPreparationStatusSchema, InputPreparationToolImplementationKindSchema, InputPreparationUserMessageSchema, KNOWN_AGENT_EVENT_TYPES, MAILBOX_READ_AHEAD_CAPABILITY, MAILBOX_READ_AHEAD_MAX_SEQS, MAX_MESSAGES_PER_BATCH, MESSAGE_PAYLOAD_SCHEMAS, MESSAGE_TYPES, MessagesSendRequestSchema, MessagesSendResponseSchema, PAIR_RESPONSE_TENANT_ID_MAX_LENGTH, PERMISSION_MODES, PROTOCOL_VERSION, PROVIDER_MODEL_CAPABILITIES, PROVIDER_PROFILE_BINDING_CAPABILITY, PairRequestSchema, PairResponseSchema, PairResponseTenantIdSchema, PermissionPolicySchema, PresencePublishRequestSchema, ProtocolError, ProtocolVersionNumberSchema, ProviderModelCapabilitySchema, ProviderProfileBindingSchema, ProviderProfileHashSchema, ProviderProfileRefSchema, ProviderProfileRevisionSchema, RESULT_DOCUMENT_MAX_BYTES, RequiredToolsetsSchema, RuntimeCapabilitiesSchema, RuntimeIdSchema, RuntimeInfoSchema, SERVER_TO_DAEMON_TYPES, STRICT_AGENT_ONLY_CAPABILITY, TASK_OFFER_TYPES, TASK_STATES, TASK_TRANSITIONS, TERMINAL_INFERENCE_USAGE_CLIENT_VERSION_MAX_LENGTH, TERMINAL_INFERENCE_USAGE_MAX_DURATION_MS, TERMINAL_INFERENCE_USAGE_MAX_TOKENS, TERMINAL_INFERENCE_USAGE_MODEL_MAX_LENGTH, TERMINAL_INFERENCE_USAGE_PROVIDER_MAX_LENGTH, TERMINAL_PROJECTION_SELECTION_CAPABILITY, TaskApprovalResolvedPayloadSchema, TaskApprovePayloadSchema, TaskArtifactPayloadSchema, TaskAwaitApprovalPayloadSchema, TaskCancelPayloadSchema, TaskCancelledPayloadSchema, TaskClaimPayloadSchema, TaskCompletePayloadSchema, TaskDeclinePayloadSchema, TaskFailPayloadSchema, TaskOfferForAgentPayloadSchema, TaskOfferForAgentWithEgressFreshPayloadSchema, TaskOfferForAgentWithEgressPayloadSchema, TaskOfferPayloadSchema, TaskOfferPreparedPayloadSchema, TaskOfferWithToolsetsPayloadSchema, TaskProgressPayloadSchema, TaskRejectPayloadSchema, TaskStartedPayloadSchema, TaskSteerPayloadSchema, TerminalInferenceUsageSchema, TerminalPreparedObservationSchema, TerminalProjectionContractSchema, TerminalProjectionSelectionSchema, TokenRequestSchema, TokenResponseSchema, ToolsetIdSchema, UnknownAgentEventSchema, UnknownMessageTypeError, agentMemoryProjectionBase64UrlByteLength, byokAgentHomeProjectionCompletionPath, byokBlobContentPath, byokBlobFinalizePath, byokBlobUrlPath, byokInputPreparationCompletionPath, byokInputPreparationStatusPath, byokRecordPath, byokSkillPackFilePath, canTransition, checkResultDocument, createEnvelope, decodeEnvelope, encodeEnvelope, isKnownAgentEvent, isServerToDaemonType, isTaskOfferType, parseMessage, partitionAgentEvents };
1613
+ export { AGENT_CONTENT_ARTIFACT_READ_CAPABILITY, AGENT_CONTENT_TRANSCRIPT_READ_CAPABILITY, AGENT_CONTENT_WORKSPACE_READ_CAPABILITY, AGENT_EGRESS_FRESH_SESSION_CAPABILITY, AGENT_EGRESS_POLICY_CAPABILITY, AGENT_EGRESS_RELIABLE_ACK_CAPABILITY, AGENT_EVENT_SPILL_UNSTORED_REASON_MAX_LENGTH, AGENT_HOME_PROJECTION_CAPABILITY, AGENT_HOME_PROJECTION_MAX_BYTES, AGENT_HOME_PROJECTION_PROFILE_REVISION_MAXIMUM, AGENT_INPUT_PREPARATION_CAPABILITY, AGENT_MEMORY_PROJECTION_CAPABILITY, AGENT_MEMORY_PROJECTION_MAX_ORDERING_VALUE, AGENT_MEMORY_PROJECTION_MAX_REDACTED_BYTES, AGENT_MESSAGE_EGRESS_CAPABILITY, AGENT_MESSAGE_MAX_BYTES, AGENT_REF_MAX_BYTES, AgentContentActorKindSchema, AgentContentActorSchema, AgentContentDecodeAsSchema, AgentContentMimeTypeSchema, AgentContentReadDecisionSchema, AgentContentReadDenialReasonSchema, AgentContentReadPayloadSchema, AgentContentReadSurfaceSchema, AgentContentReceiptPayloadSchema, AgentEgressAckPayloadSchema, AgentEgressActivityPolicySchema, AgentEgressContentHashSchema, AgentEgressDropReasonSchema, AgentEgressLaneSchema, AgentEgressPolicyRevisionSchema, AgentEgressPolicySchema, AgentEgressReliablePayloadSchema, AgentEventOrUnknownSchema, AgentEventSchema, AgentEventSpillSchema, AgentHomeProjectionAgentRefSchema, AgentHomeProjectionCompletionRequestSchema, AgentHomeProjectionHashSchema, AgentHomeProjectionOutcomeSchema, AgentHomeProjectionPayloadSchema, AgentHomeProjectionProfileRevisionSchema, AgentHomeProjectionReadbackSchema, AgentHomeProjectionStatusSchema, AgentHomeProjectionValueSchema, AgentInputPreparationPayloadSchema, AgentMemoryProjectionCommitRequestSchema, AgentMemoryProjectionCommitResponseSchema, AgentMemoryProjectionEraseResultSchema, AgentMemoryProjectionGrantRefSchema, AgentMemoryProjectionMeteringReceiptSchema, AgentMemoryProjectionMutationSchema, AgentMemoryProjectionReceiptSchema, AgentMemoryProjectionSessionRefSchema, AgentMemoryProjectionSnapshotSchema, AgentMemoryProjectionSourceSeqSchema, AgentMemoryProjectionWriterEpochSchema, AgentMessageContentTypeSchema, AgentMessageContractSchema, AgentMessageDestinationBindingSchema, AgentMessageDispositionPayloadSchema, AgentMessageEgressRequirementSchema, AgentMessageFreshnessCursorSchema, AgentMessagePublishPayloadSchema, AgentMessageServerContextSchema, AgentRefSchema, AgentReliableQuotaPolicySchema, BYOK_ACTIVITY_PATH, BYOK_AGENT_HOME_PROJECTIONS_PATH, BYOK_AGENT_HOME_PROJECTION_COMPLETION_ROUTE, BYOK_AGENT_MEMORY_PROJECTIONS_PATH, BYOK_BLOBS_PATH, BYOK_BLOB_CONTENT_ROUTE, BYOK_BLOB_FINALIZE_ROUTE, BYOK_BLOB_URL_ROUTE, BYOK_BOARD_CLAIM_ROUTE, BYOK_BOARD_PATH, BYOK_BOARD_STATUS_ROUTE, BYOK_BOARD_STREAM_PATH, BYOK_BOARD_UNCLAIM_ROUTE, BYOK_CAPABILITIES_PATH, BYOK_CHALLENGE_PATH, BYOK_EVENTS_PATH, BYOK_INPUT_PREPARATIONS_PATH, BYOK_INPUT_PREPARATION_COMPLETION_ROUTE, BYOK_INPUT_PREPARATION_STATUS_ROUTE, BYOK_MESSAGES_PATH, BYOK_PAIR_PATH, BYOK_PRESENCE_PATH, BYOK_RECORDS_PATH, BYOK_RECORD_ROUTE, BYOK_SKILL_PACKS_PATH, BYOK_SKILL_PACK_FILE_ROUTE, BYOK_TOKEN_PATH, BlobDownloadUrlResponseSchema, BlobRefSchema, CAPABILITY_FLAGS, CONFIGURED_TOOLSETS_MAX_ITEMS, CONTENT_HASH_RE, CUSTOM_HARNESS_CAPABILITY, ChallengeRequestSchema, ChallengeResponseSchema, ConfiguredToolsetsSchema, ConnAckPayloadSchema, ConnHelloPayloadSchema, ContentReadPolicySchema, CreateBlobRequestSchema, CreateBlobResponseSchema, DAEMON_TO_SERVER_TYPES, DispatchSelectionSchema, EnvelopeParseError, EnvelopeSchema, EnvelopeValidationError, EventsPollQuerySchema, EventsPollResponseSchema, HOST_MCP_TASK_CONTEXT_CAPABILITY, HarnessIdSchema, HarnessInfoSchema, HarnessInventorySchema, INPUT_PREPARATION_WIRE_VERSION, InputPreparationAccountingPolicyRefSchema, InputPreparationArtifactSummarySchema, InputPreparationBindingSchema, InputPreparationCompletionRequestSchema, InputPreparationContentHashSchema, InputPreparationContextDocumentSchema, InputPreparationCounterEvidenceSchema, InputPreparationCounterProviderEvidenceSchema, InputPreparationCounterTargetSchema, InputPreparationHostCanonicalAssistantMessageSchema, InputPreparationMessageSchema, InputPreparationModelCostSchema, InputPreparationModelSchema, InputPreparationOfferBindingSchema, InputPreparationOptionsSchema, InputPreparationPermissionModeSchema, InputPreparationPolicyRevisionSchema, InputPreparationProfileIdSchema, InputPreparationProjectionSchema, InputPreparationPromptSnapshotSchema, InputPreparationReadbackSchema, InputPreparationReadinessReasonSchema, InputPreparationReceiptSummarySchema, InputPreparationReferenceSchema, InputPreparationRejectionReasonSchema, InputPreparationResidualKeySchema, InputPreparationResidualValueClassSchema, InputPreparationRuntimeIdentitySchema, InputPreparationSelectionSchema, InputPreparationSourceSchema, InputPreparationStateSchema, InputPreparationStatusQuerySchema, InputPreparationStatusSchema, InputPreparationToolImplementationKindSchema, InputPreparationUserMessageSchema, KNOWN_AGENT_EVENT_TYPES, MAILBOX_READ_AHEAD_CAPABILITY, MAILBOX_READ_AHEAD_MAX_SEQS, MAX_MESSAGES_PER_BATCH, MESSAGE_PAYLOAD_SCHEMAS, MESSAGE_TYPES, MessagesSendRequestSchema, MessagesSendResponseSchema, PAIR_RESPONSE_TENANT_ID_MAX_LENGTH, PERMISSION_MODES, PROTOCOL_VERSION, PROVIDER_MODEL_CAPABILITIES, PROVIDER_PROFILE_BINDING_CAPABILITY, PairRequestSchema, PairResponseSchema, PairResponseTenantIdSchema, PermissionPolicySchema, PresencePublishRequestSchema, ProtocolError, ProtocolVersionNumberSchema, ProviderModelCapabilitySchema, ProviderProfileBindingSchema, ProviderProfileHashSchema, ProviderProfileRefSchema, ProviderProfileRevisionSchema, RESULT_DOCUMENT_MAX_BYTES, RequiredToolsetsSchema, RuntimeCapabilitiesSchema, RuntimeIdSchema, RuntimeInfoSchema, SERVER_TO_DAEMON_TYPES, STRICT_AGENT_ONLY_CAPABILITY, TASK_OFFER_TYPES, TASK_STATES, TASK_TRANSITIONS, TERMINAL_INFERENCE_USAGE_CLIENT_VERSION_MAX_LENGTH, TERMINAL_INFERENCE_USAGE_MAX_DURATION_MS, TERMINAL_INFERENCE_USAGE_MAX_TOKENS, TERMINAL_INFERENCE_USAGE_MODEL_MAX_LENGTH, TERMINAL_INFERENCE_USAGE_PROVIDER_MAX_LENGTH, TERMINAL_PROJECTION_SELECTION_CAPABILITY, TaskApprovalResolvedPayloadSchema, TaskApprovePayloadSchema, TaskArtifactPayloadSchema, TaskAwaitApprovalPayloadSchema, TaskCancelPayloadSchema, TaskCancelledPayloadSchema, TaskClaimPayloadSchema, TaskCompletePayloadSchema, TaskDeclinePayloadSchema, TaskFailPayloadSchema, TaskOfferForAgentPayloadSchema, TaskOfferForAgentWithEgressFreshPayloadSchema, TaskOfferForAgentWithEgressPayloadSchema, TaskOfferPayloadSchema, TaskOfferPreparedPayloadSchema, TaskOfferWithToolsetsPayloadSchema, TaskProgressPayloadSchema, TaskRejectPayloadSchema, TaskStartedPayloadSchema, TaskSteerPayloadSchema, TerminalInferenceUsageSchema, TerminalPreparedObservationSchema, TerminalProjectionContractSchema, TerminalProjectionSelectionSchema, TokenRequestSchema, TokenResponseSchema, ToolsetIdSchema, UnknownAgentEventSchema, UnknownMessageTypeError, agentMemoryProjectionBase64UrlByteLength, byokAgentHomeProjectionCompletionPath, byokBlobContentPath, byokBlobFinalizePath, byokBlobUrlPath, byokInputPreparationCompletionPath, byokInputPreparationStatusPath, byokRecordPath, byokSkillPackFilePath, canTransition, checkResultDocument, createEnvelope, decodeEnvelope, encodeEnvelope, isKnownAgentEvent, isServerToDaemonType, isTaskOfferType, parseMessage, partitionAgentEvents };
1628
1614
  //# sourceMappingURL=index.js.map
1629
1615
  //# sourceMappingURL=index.js.map