@byok-sdk/protocol 0.19.0 → 0.21.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;
@@ -1082,6 +1122,11 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1082
1122
  clientVersion: z.ZodString;
1083
1123
  reportedAt: z.ZodISODateTime;
1084
1124
  }, z.core.$strip>>;
1125
+ preparedObservation: z.ZodOptional<z.ZodObject<{
1126
+ requestDigest: z.ZodString;
1127
+ initialPromptTokens: z.ZodNumber;
1128
+ maxPromptTokens: z.ZodNumber;
1129
+ }, z.core.$strict>>;
1085
1130
  agentRef: z.ZodOptional<z.ZodObject<{
1086
1131
  agentId: z.ZodString;
1087
1132
  profileRevision: z.ZodString;
@@ -1117,6 +1162,11 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1117
1162
  clientVersion: z.ZodString;
1118
1163
  reportedAt: z.ZodISODateTime;
1119
1164
  }, z.core.$strip>>;
1165
+ preparedObservation: z.ZodOptional<z.ZodObject<{
1166
+ requestDigest: z.ZodString;
1167
+ initialPromptTokens: z.ZodNumber;
1168
+ maxPromptTokens: z.ZodNumber;
1169
+ }, z.core.$strict>>;
1120
1170
  agentRef: z.ZodOptional<z.ZodObject<{
1121
1171
  agentId: z.ZodString;
1122
1172
  profileRevision: z.ZodString;
@@ -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;
@@ -1176,6 +1216,11 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
1176
1216
  clientVersion: z.ZodString;
1177
1217
  reportedAt: z.ZodISODateTime;
1178
1218
  }, z.core.$strip>>;
1219
+ preparedObservation: z.ZodOptional<z.ZodObject<{
1220
+ requestDigest: z.ZodString;
1221
+ initialPromptTokens: z.ZodNumber;
1222
+ maxPromptTokens: z.ZodNumber;
1223
+ }, z.core.$strict>>;
1179
1224
  agentRef: z.ZodOptional<z.ZodObject<{
1180
1225
  agentId: z.ZodString;
1181
1226
  profileRevision: z.ZodString;
@@ -1211,6 +1256,11 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
1211
1256
  clientVersion: z.ZodString;
1212
1257
  reportedAt: z.ZodISODateTime;
1213
1258
  }, z.core.$strip>>;
1259
+ preparedObservation: z.ZodOptional<z.ZodObject<{
1260
+ requestDigest: z.ZodString;
1261
+ initialPromptTokens: z.ZodNumber;
1262
+ maxPromptTokens: z.ZodNumber;
1263
+ }, z.core.$strict>>;
1214
1264
  agentRef: z.ZodOptional<z.ZodObject<{
1215
1265
  agentId: z.ZodString;
1216
1266
  profileRevision: z.ZodString;
@@ -2023,6 +2073,46 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
2023
2073
  requestDigest: z.ZodString;
2024
2074
  artifactDigest: z.ZodOptional<z.ZodString>;
2025
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>>;
2026
2116
  }, z.core.$strict>;
2027
2117
  }, z.core.$strip>, z.ZodObject<{
2028
2118
  v: z.ZodNumber;
@@ -2504,6 +2594,11 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
2504
2594
  clientVersion: z.ZodString;
2505
2595
  reportedAt: z.ZodISODateTime;
2506
2596
  }, z.core.$strip>>;
2597
+ preparedObservation: z.ZodOptional<z.ZodObject<{
2598
+ requestDigest: z.ZodString;
2599
+ initialPromptTokens: z.ZodNumber;
2600
+ maxPromptTokens: z.ZodNumber;
2601
+ }, z.core.$strict>>;
2507
2602
  agentRef: z.ZodOptional<z.ZodObject<{
2508
2603
  agentId: z.ZodString;
2509
2604
  profileRevision: z.ZodString;
@@ -2539,6 +2634,11 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
2539
2634
  clientVersion: z.ZodString;
2540
2635
  reportedAt: z.ZodISODateTime;
2541
2636
  }, z.core.$strip>>;
2637
+ preparedObservation: z.ZodOptional<z.ZodObject<{
2638
+ requestDigest: z.ZodString;
2639
+ initialPromptTokens: z.ZodNumber;
2640
+ maxPromptTokens: z.ZodNumber;
2641
+ }, z.core.$strict>>;
2542
2642
  agentRef: z.ZodOptional<z.ZodObject<{
2543
2643
  agentId: z.ZodString;
2544
2644
  profileRevision: z.ZodString;
@@ -2821,10 +2921,10 @@ export declare const InputPreparationCompletionRequestSchema: z.ZodDiscriminated
2821
2921
  reference: z.ZodString;
2822
2922
  state: z.ZodEnum<{
2823
2923
  cancelled: "cancelled";
2824
- counted: "counted";
2825
2924
  counter_interrupted: "counter_interrupted";
2826
2925
  counting: "counting";
2827
2926
  failed: "failed";
2927
+ prepared: "prepared";
2828
2928
  reserved: "reserved";
2829
2929
  }>;
2830
2930
  binding: z.ZodObject<{
@@ -2907,10 +3007,6 @@ export declare const InputPreparationCompletionRequestSchema: z.ZodDiscriminated
2907
3007
  provider: "provider";
2908
3008
  test_fixture: "test_fixture";
2909
3009
  }>;
2910
- kind: z.ZodEnum<{
2911
- bound: "bound";
2912
- count: "count";
2913
- }>;
2914
3010
  value: z.ZodNumber;
2915
3011
  coverage: z.ZodObject<{
2916
3012
  covered: z.ZodBoolean;
@@ -2942,11 +3038,11 @@ export declare const InputPreparationCompletionRequestSchema: z.ZodDiscriminated
2942
3038
  counter_authority_not_production: "counter_authority_not_production";
2943
3039
  counter_coverage_incomplete: "counter_coverage_incomplete";
2944
3040
  counter_interrupted: "counter_interrupted";
2945
- counter_missing: "counter_missing";
2946
3041
  executor_identity_unproven: "executor_identity_unproven";
2947
3042
  failed: "failed";
2948
- not_counted: "not_counted";
3043
+ not_prepared: "not_prepared";
2949
3044
  projection_unknown: "projection_unknown";
3045
+ request_content_not_text: "request_content_not_text";
2950
3046
  residual_not_ruled: "residual_not_ruled";
2951
3047
  runtime_contract_superseded: "runtime_contract_superseded";
2952
3048
  }>>;
@@ -2972,6 +3068,7 @@ export declare const InputPreparationCompletionRequestSchema: z.ZodDiscriminated
2972
3068
  counter_unavailable: "counter_unavailable";
2973
3069
  deadline_elapsed: "deadline_elapsed";
2974
3070
  durable_write_failed: "durable_write_failed";
3071
+ input_preparation_record_log_unsupported: "input_preparation_record_log_unsupported";
2975
3072
  input_preparation_unconfigured: "input_preparation_unconfigured";
2976
3073
  launch_boundary_unavailable: "launch_boundary_unavailable";
2977
3074
  limit_exceeded: "limit_exceeded";
@@ -3019,10 +3116,10 @@ export declare const InputPreparationReadbackSchema: z.ZodObject<{
3019
3116
  reference: z.ZodString;
3020
3117
  state: z.ZodEnum<{
3021
3118
  cancelled: "cancelled";
3022
- counted: "counted";
3023
3119
  counter_interrupted: "counter_interrupted";
3024
3120
  counting: "counting";
3025
3121
  failed: "failed";
3122
+ prepared: "prepared";
3026
3123
  reserved: "reserved";
3027
3124
  }>;
3028
3125
  binding: z.ZodObject<{
@@ -3105,10 +3202,6 @@ export declare const InputPreparationReadbackSchema: z.ZodObject<{
3105
3202
  provider: "provider";
3106
3203
  test_fixture: "test_fixture";
3107
3204
  }>;
3108
- kind: z.ZodEnum<{
3109
- bound: "bound";
3110
- count: "count";
3111
- }>;
3112
3205
  value: z.ZodNumber;
3113
3206
  coverage: z.ZodObject<{
3114
3207
  covered: z.ZodBoolean;
@@ -3140,11 +3233,11 @@ export declare const InputPreparationReadbackSchema: z.ZodObject<{
3140
3233
  counter_authority_not_production: "counter_authority_not_production";
3141
3234
  counter_coverage_incomplete: "counter_coverage_incomplete";
3142
3235
  counter_interrupted: "counter_interrupted";
3143
- counter_missing: "counter_missing";
3144
3236
  executor_identity_unproven: "executor_identity_unproven";
3145
3237
  failed: "failed";
3146
- not_counted: "not_counted";
3238
+ not_prepared: "not_prepared";
3147
3239
  projection_unknown: "projection_unknown";
3240
+ request_content_not_text: "request_content_not_text";
3148
3241
  residual_not_ruled: "residual_not_ruled";
3149
3242
  runtime_contract_superseded: "runtime_contract_superseded";
3150
3243
  }>>;
@@ -3161,6 +3254,7 @@ export declare const InputPreparationReadbackSchema: z.ZodObject<{
3161
3254
  counter_unavailable: "counter_unavailable";
3162
3255
  deadline_elapsed: "deadline_elapsed";
3163
3256
  durable_write_failed: "durable_write_failed";
3257
+ input_preparation_record_log_unsupported: "input_preparation_record_log_unsupported";
3164
3258
  input_preparation_unconfigured: "input_preparation_unconfigured";
3165
3259
  launch_boundary_unavailable: "launch_boundary_unavailable";
3166
3260
  limit_exceeded: "limit_exceeded";
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ 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, 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';
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
17
  export type { InputPreparationPermissionMode, InputPreparationSource, InputPreparationModel, InputPreparationOptions, InputPreparationSelection, InputPreparationSkill, 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';
@@ -22,8 +22,8 @@ export { TERMINAL_PROJECTION_SELECTION_CAPABILITY, TerminalProjectionContractSch
22
22
  export type { TerminalProjectionSelection } from './terminal-projection';
23
23
  export { TASK_STATES, TASK_TRANSITIONS, canTransition } from './task-state';
24
24
  export type { TaskState } from './task-state';
25
- export { MESSAGE_TYPES, TASK_OFFER_TYPES, isTaskOfferType, MESSAGE_PAYLOAD_SCHEMAS, SERVER_TO_DAEMON_TYPES, DAEMON_TO_SERVER_TYPES, RuntimeIdSchema, ProtocolVersionNumberSchema, RuntimeInfoSchema, HarnessIdSchema, HarnessInfoSchema, HarnessInventorySchema, RuntimeCapabilitiesSchema, AgentRefSchema, AgentHomeProjectionAgentRefSchema, AGENT_REF_MAX_BYTES, DispatchSelectionSchema, ToolsetIdSchema, ConfiguredToolsetsSchema, RequiredToolsetsSchema, CONFIGURED_TOOLSETS_MAX_ITEMS, ConnHelloPayloadSchema, ConnAckPayloadSchema, TaskOfferPayloadSchema, TaskOfferWithToolsetsPayloadSchema, TaskOfferForAgentPayloadSchema, TaskOfferForAgentWithEgressPayloadSchema, TaskOfferForAgentWithEgressFreshPayloadSchema, TaskOfferPreparedPayloadSchema, AgentEgressReliablePayloadSchema, AgentEgressAckPayloadSchema, AgentMessagePublishPayloadSchema, AgentMessageDispositionPayloadSchema, AgentContentReadPayloadSchema, AgentContentReceiptPayloadSchema, AgentHomeProjectionPayloadSchema, AgentInputPreparationPayloadSchema, TaskApprovePayloadSchema, TaskRejectPayloadSchema, TaskCancelPayloadSchema, TaskSteerPayloadSchema, TaskClaimPayloadSchema, TaskStartedPayloadSchema, TaskDeclinePayloadSchema, TaskProgressPayloadSchema, TaskArtifactPayloadSchema, TaskAwaitApprovalPayloadSchema, TaskCompletePayloadSchema, TaskFailPayloadSchema, TaskCancelledPayloadSchema, TaskApprovalResolvedPayloadSchema, RESULT_DOCUMENT_MAX_BYTES, checkResultDocument, TerminalInferenceUsageSchema, TERMINAL_INFERENCE_USAGE_MAX_TOKENS, TERMINAL_INFERENCE_USAGE_MAX_DURATION_MS, TERMINAL_INFERENCE_USAGE_PROVIDER_MAX_LENGTH, TERMINAL_INFERENCE_USAGE_MODEL_MAX_LENGTH, TERMINAL_INFERENCE_USAGE_CLIENT_VERSION_MAX_LENGTH, } from './messages';
26
- export type { ResultDocumentCheck, MessageType, RuntimeId, RuntimeInfo, RuntimeCapabilities, AgentRef, AgentHomeProjectionAgentRef, DispatchSelection, ToolsetId, ConnHelloPayload, ConnAckPayload, TaskOfferPayload, TaskOfferWithToolsetsPayload, TaskOfferForAgentPayload, TaskOfferForAgentWithEgressPayload, TaskOfferForAgentWithEgressFreshPayload, TaskOfferPreparedPayload, AgentEgressReliablePayload, AgentEgressAckPayload, AgentMessagePublishPayload, AgentMessageDispositionPayload, AgentContentReadPayload, AgentContentReceiptPayload, AgentHomeProjectionPayload, AgentInputPreparationPayload, TaskApprovePayload, TaskRejectPayload, TaskCancelPayload, TaskSteerPayload, TaskClaimPayload, TaskStartedPayload, TaskDeclinePayload, TaskProgressPayload, TaskArtifactPayload, TaskAwaitApprovalPayload, TaskCompletePayload, TaskFailPayload, TaskCancelledPayload, TaskApprovalResolvedPayload, TerminalInferenceUsage, } from './messages';
25
+ export { MESSAGE_TYPES, TASK_OFFER_TYPES, isTaskOfferType, MESSAGE_PAYLOAD_SCHEMAS, SERVER_TO_DAEMON_TYPES, DAEMON_TO_SERVER_TYPES, RuntimeIdSchema, ProtocolVersionNumberSchema, RuntimeInfoSchema, HarnessIdSchema, HarnessInfoSchema, HarnessInventorySchema, RuntimeCapabilitiesSchema, AgentRefSchema, AgentHomeProjectionAgentRefSchema, AGENT_REF_MAX_BYTES, DispatchSelectionSchema, ToolsetIdSchema, ConfiguredToolsetsSchema, RequiredToolsetsSchema, CONFIGURED_TOOLSETS_MAX_ITEMS, ConnHelloPayloadSchema, ConnAckPayloadSchema, TaskOfferPayloadSchema, TaskOfferWithToolsetsPayloadSchema, TaskOfferForAgentPayloadSchema, TaskOfferForAgentWithEgressPayloadSchema, TaskOfferForAgentWithEgressFreshPayloadSchema, TaskOfferPreparedPayloadSchema, AgentEgressReliablePayloadSchema, AgentEgressAckPayloadSchema, AgentMessagePublishPayloadSchema, AgentMessageDispositionPayloadSchema, AgentContentReadPayloadSchema, AgentContentReceiptPayloadSchema, AgentHomeProjectionPayloadSchema, AgentInputPreparationPayloadSchema, TaskApprovePayloadSchema, TaskRejectPayloadSchema, TaskCancelPayloadSchema, TaskSteerPayloadSchema, TaskClaimPayloadSchema, TaskStartedPayloadSchema, TaskDeclinePayloadSchema, TaskProgressPayloadSchema, TaskArtifactPayloadSchema, TaskAwaitApprovalPayloadSchema, TaskCompletePayloadSchema, TaskFailPayloadSchema, TaskCancelledPayloadSchema, TaskApprovalResolvedPayloadSchema, RESULT_DOCUMENT_MAX_BYTES, checkResultDocument, TerminalInferenceUsageSchema, TerminalPreparedObservationSchema, TERMINAL_INFERENCE_USAGE_MAX_TOKENS, TERMINAL_INFERENCE_USAGE_MAX_DURATION_MS, TERMINAL_INFERENCE_USAGE_PROVIDER_MAX_LENGTH, TERMINAL_INFERENCE_USAGE_MODEL_MAX_LENGTH, TERMINAL_INFERENCE_USAGE_CLIENT_VERSION_MAX_LENGTH, } from './messages';
26
+ export type { ResultDocumentCheck, MessageType, RuntimeId, RuntimeInfo, RuntimeCapabilities, AgentRef, AgentHomeProjectionAgentRef, DispatchSelection, ToolsetId, ConnHelloPayload, ConnAckPayload, TaskOfferPayload, TaskOfferWithToolsetsPayload, TaskOfferForAgentPayload, TaskOfferForAgentWithEgressPayload, TaskOfferForAgentWithEgressFreshPayload, TaskOfferPreparedPayload, AgentEgressReliablePayload, AgentEgressAckPayload, AgentMessagePublishPayload, AgentMessageDispositionPayload, AgentContentReadPayload, AgentContentReceiptPayload, AgentHomeProjectionPayload, AgentInputPreparationPayload, TaskApprovePayload, TaskRejectPayload, TaskCancelPayload, TaskSteerPayload, TaskClaimPayload, TaskStartedPayload, TaskDeclinePayload, TaskProgressPayload, TaskArtifactPayload, TaskAwaitApprovalPayload, TaskCompletePayload, TaskFailPayload, TaskCancelledPayload, TaskApprovalResolvedPayload, TerminalInferenceUsage, TerminalPreparedObservation, } from './messages';
27
27
  export { EnvelopeSchema, isServerToDaemonType } from './envelope';
28
28
  export type { Envelope } from './envelope';
29
29
  export { ProtocolError, EnvelopeParseError, UnknownMessageTypeError, EnvelopeValidationError, } from './errors';
package/dist/index.js CHANGED
@@ -123,7 +123,8 @@ var PermissionPolicySchema = z.object({
123
123
  }).strict();
124
124
 
125
125
  // src/input-preparation.ts
126
- var AGENT_INPUT_PREPARATION_CAPABILITY = "agent-input-preparation";
126
+ var INPUT_PREPARATION_WIRE_VERSION = 6;
127
+ var AGENT_INPUT_PREPARATION_CAPABILITY = `agent-input-preparation-v${INPUT_PREPARATION_WIRE_VERSION}`;
127
128
  var InputPreparationContentHashSchema = AgentEgressContentHashSchema;
128
129
  var OPAQUE_ID = z.string().min(1).max(512).regex(/^[^\u0000-\u001f\u007f]+$/u, "control identifiers must not contain control characters");
129
130
  var OPAQUE_TEXT = z.string().min(1).max(2048).regex(/^[^\u0000-\u001f\u007f]+$/u, "control text must not contain control characters");
@@ -232,21 +233,28 @@ var InputPreparationContextDocumentSchema = z.object({
232
233
  var InputPreparationStateSchema = z.enum([
233
234
  "reserved",
234
235
  "counting",
235
- "counted",
236
+ "prepared",
236
237
  "cancelled",
237
238
  "failed",
238
239
  "counter_interrupted"
239
240
  ]);
240
241
  var InputPreparationReadinessReasonSchema = z.enum([
241
- "not_counted",
242
+ /** The record has not reached `prepared` (it is `reserved` or `counting`). */
243
+ "not_prepared",
242
244
  "counter_interrupted",
243
245
  "cancelled",
244
246
  "failed",
245
247
  "artifact_expired",
248
+ /** A counter IS present and its authority is not `provider` (a fixture never reaches ready). */
246
249
  "counter_authority_not_production",
250
+ /** A counter IS present and it reported its projection as not covered. */
247
251
  "counter_coverage_incomplete",
248
- /** No counter evidence is persisted on the record. */
249
- "counter_missing",
252
+ /**
253
+ * D, the frozen provider request, carries a message content part whose
254
+ * `type` is not `text`. The first release admits text-only D; a multimodal
255
+ * part is not sized by `requestBytes` in any way the Host's ruling covers.
256
+ */
257
+ "request_content_not_text",
250
258
  /** The native compiler's projection kind is not `content_complete`. */
251
259
  "projection_unknown",
252
260
  /** The artifact carries a residual key the accounting policy does not rule on. */
@@ -300,7 +308,6 @@ var InputPreparationCounterEvidenceSchema = z.object({
300
308
  method: OPAQUE_ID,
301
309
  methodVersion: OPAQUE_ID,
302
310
  authority: z.enum(["provider", "test_fixture"]),
303
- kind: z.enum(["count", "bound"]),
304
311
  value: z.number().int().nonnegative(),
305
312
  coverage: z.object({ covered: z.boolean(), reason: z.string().max(512).optional() }).strict(),
306
313
  providerEvidence: InputPreparationCounterProviderEvidenceSchema,
@@ -329,6 +336,12 @@ var InputPreparationArtifactSummarySchema = z.object({
329
336
  requestDigest: OPAQUE_ID,
330
337
  envelopeDigest: OPAQUE_ID,
331
338
  toolManifestDigest: OPAQUE_ID,
339
+ /**
340
+ * The exact UTF-8 byte length of the frozen provider request D, measured
341
+ * by the device's own compiler. The ONE size evidence a receipt carries:
342
+ * the Host rules the budget (`requestBytes + C + max_tokens <= window`)
343
+ * against it. Never a token count and never an estimate.
344
+ */
332
345
  requestBytes: z.number().int().nonnegative(),
333
346
  projectionBytes: z.number().int().nonnegative(),
334
347
  projection: InputPreparationProjectionSchema,
@@ -441,7 +454,14 @@ var InputPreparationRejectionReasonSchema = z.enum([
441
454
  * retention policy, so it is decided first and nothing is retained: a
442
455
  * preparation that could never be delivered is not a smaller preparation.
443
456
  */
444
- "rpc_frame_too_large"
457
+ "rpc_frame_too_large",
458
+ /**
459
+ * The device's input-preparation lane is off because its durable record log
460
+ * holds a record from an older record schema version. The rest of the
461
+ * device runs; this lane refuses until an operator archives that log. No
462
+ * record is migrated, read forward or deleted.
463
+ */
464
+ "input_preparation_record_log_unsupported"
445
465
  ]);
446
466
  var TERMINAL_PROJECTION_SELECTION_CAPABILITY = "terminal-projection-selection";
447
467
  var TerminalProjectionContractSchema = z.string().min(1).max(128).regex(/^[a-z0-9]+(?:[._-][a-z0-9]+)*$/u, "terminal projection contracts must be opaque lowercase ids");
@@ -740,7 +760,11 @@ var TaskOfferForAgentWithEgressFreshPayloadSchema = TaskOfferForAgentPayloadSche
740
760
  var TaskOfferPreparedPayloadSchema = TaskOfferForAgentPayloadSchema.omit({
741
761
  instruction: true,
742
762
  sessionRef: true
743
- }).extend({ preparation: InputPreparationOfferBindingSchema }).strict();
763
+ }).extend({
764
+ preparation: InputPreparationOfferBindingSchema,
765
+ egressPolicy: AgentEgressPolicySchema,
766
+ messageEgress: AgentMessageEgressRequirementSchema.optional()
767
+ }).strict();
744
768
  var EGRESS_SAFE_VALUE = z.json().refine(
745
769
  (value) => new TextEncoder().encode(JSON.stringify(value)).byteLength <= 256 * 1024,
746
770
  "sanitized egress payload exceeds 256KiB"
@@ -1020,6 +1044,14 @@ var TerminalInferenceUsageSchema = z.object({
1020
1044
  /** Device observation time, never server receipt time. */
1021
1045
  reportedAt: TerminalInferenceReportedAtSchema
1022
1046
  });
1047
+ var TerminalPreparedObservationSchema = z.object({
1048
+ requestDigest: InputPreparationArtifactSummarySchema.shape.requestDigest,
1049
+ initialPromptTokens: TerminalInferenceUsageNumberSchema,
1050
+ maxPromptTokens: TerminalInferenceUsageNumberSchema
1051
+ }).strict().refine((value) => value.maxPromptTokens >= value.initialPromptTokens, {
1052
+ message: "maxPromptTokens must not be below initialPromptTokens",
1053
+ path: ["maxPromptTokens"]
1054
+ });
1023
1055
  var TaskCompletePayloadSchema = z.object({
1024
1056
  harnessId: HarnessIdSchema.optional(),
1025
1057
  summary: z.string(),
@@ -1029,6 +1061,8 @@ var TaskCompletePayloadSchema = z.object({
1029
1061
  message: `task.complete.document must be plain JSON data (equal to its own JSON round trip) and at most ${RESULT_DOCUMENT_MAX_BYTES} bytes as canonical JSON (UTF-8)`
1030
1062
  }),
1031
1063
  usage: TerminalInferenceUsageSchema.optional(),
1064
+ /** Present on a prepared Execution only — see {@link TerminalPreparedObservationSchema}. */
1065
+ preparedObservation: TerminalPreparedObservationSchema.optional(),
1032
1066
  agentRef: AgentRefSchema.optional()
1033
1067
  });
1034
1068
  var TaskFailPayloadSchema = z.object({
@@ -1038,6 +1072,8 @@ var TaskFailPayloadSchema = z.object({
1038
1072
  reason: z.string(),
1039
1073
  retryable: z.boolean().optional(),
1040
1074
  usage: TerminalInferenceUsageSchema.optional(),
1075
+ /** Present on a prepared Execution that observed provider usage before failing. */
1076
+ preparedObservation: TerminalPreparedObservationSchema.optional(),
1041
1077
  agentRef: AgentRefSchema.optional()
1042
1078
  });
1043
1079
  var TaskCancelledPayloadSchema = z.object({
@@ -1592,6 +1628,6 @@ function byokBlobContentPath(blobId) {
1592
1628
  return `/byok/blobs/${blobId}/content`;
1593
1629
  }
1594
1630
 
1595
- 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, 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, 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 };
1631
+ 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 };
1596
1632
  //# sourceMappingURL=index.js.map
1597
1633
  //# sourceMappingURL=index.js.map