@byok-sdk/protocol 0.19.0 → 0.20.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.
@@ -1082,6 +1082,11 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1082
1082
  clientVersion: z.ZodString;
1083
1083
  reportedAt: z.ZodISODateTime;
1084
1084
  }, z.core.$strip>>;
1085
+ preparedObservation: z.ZodOptional<z.ZodObject<{
1086
+ requestDigest: z.ZodString;
1087
+ initialPromptTokens: z.ZodNumber;
1088
+ maxPromptTokens: z.ZodNumber;
1089
+ }, z.core.$strict>>;
1085
1090
  agentRef: z.ZodOptional<z.ZodObject<{
1086
1091
  agentId: z.ZodString;
1087
1092
  profileRevision: z.ZodString;
@@ -1117,6 +1122,11 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1117
1122
  clientVersion: z.ZodString;
1118
1123
  reportedAt: z.ZodISODateTime;
1119
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>>;
1120
1130
  agentRef: z.ZodOptional<z.ZodObject<{
1121
1131
  agentId: z.ZodString;
1122
1132
  profileRevision: z.ZodString;
@@ -1176,6 +1176,11 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
1176
1176
  clientVersion: z.ZodString;
1177
1177
  reportedAt: z.ZodISODateTime;
1178
1178
  }, z.core.$strip>>;
1179
+ preparedObservation: z.ZodOptional<z.ZodObject<{
1180
+ requestDigest: z.ZodString;
1181
+ initialPromptTokens: z.ZodNumber;
1182
+ maxPromptTokens: z.ZodNumber;
1183
+ }, z.core.$strict>>;
1179
1184
  agentRef: z.ZodOptional<z.ZodObject<{
1180
1185
  agentId: z.ZodString;
1181
1186
  profileRevision: z.ZodString;
@@ -1211,6 +1216,11 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
1211
1216
  clientVersion: z.ZodString;
1212
1217
  reportedAt: z.ZodISODateTime;
1213
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>>;
1214
1224
  agentRef: z.ZodOptional<z.ZodObject<{
1215
1225
  agentId: z.ZodString;
1216
1226
  profileRevision: z.ZodString;
@@ -2504,6 +2514,11 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
2504
2514
  clientVersion: z.ZodString;
2505
2515
  reportedAt: z.ZodISODateTime;
2506
2516
  }, z.core.$strip>>;
2517
+ preparedObservation: z.ZodOptional<z.ZodObject<{
2518
+ requestDigest: z.ZodString;
2519
+ initialPromptTokens: z.ZodNumber;
2520
+ maxPromptTokens: z.ZodNumber;
2521
+ }, z.core.$strict>>;
2507
2522
  agentRef: z.ZodOptional<z.ZodObject<{
2508
2523
  agentId: z.ZodString;
2509
2524
  profileRevision: z.ZodString;
@@ -2539,6 +2554,11 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
2539
2554
  clientVersion: z.ZodString;
2540
2555
  reportedAt: z.ZodISODateTime;
2541
2556
  }, z.core.$strip>>;
2557
+ preparedObservation: z.ZodOptional<z.ZodObject<{
2558
+ requestDigest: z.ZodString;
2559
+ initialPromptTokens: z.ZodNumber;
2560
+ maxPromptTokens: z.ZodNumber;
2561
+ }, z.core.$strict>>;
2542
2562
  agentRef: z.ZodOptional<z.ZodObject<{
2543
2563
  agentId: z.ZodString;
2544
2564
  profileRevision: z.ZodString;
@@ -2821,10 +2841,10 @@ export declare const InputPreparationCompletionRequestSchema: z.ZodDiscriminated
2821
2841
  reference: z.ZodString;
2822
2842
  state: z.ZodEnum<{
2823
2843
  cancelled: "cancelled";
2824
- counted: "counted";
2825
2844
  counter_interrupted: "counter_interrupted";
2826
2845
  counting: "counting";
2827
2846
  failed: "failed";
2847
+ prepared: "prepared";
2828
2848
  reserved: "reserved";
2829
2849
  }>;
2830
2850
  binding: z.ZodObject<{
@@ -2907,10 +2927,6 @@ export declare const InputPreparationCompletionRequestSchema: z.ZodDiscriminated
2907
2927
  provider: "provider";
2908
2928
  test_fixture: "test_fixture";
2909
2929
  }>;
2910
- kind: z.ZodEnum<{
2911
- bound: "bound";
2912
- count: "count";
2913
- }>;
2914
2930
  value: z.ZodNumber;
2915
2931
  coverage: z.ZodObject<{
2916
2932
  covered: z.ZodBoolean;
@@ -2942,11 +2958,11 @@ export declare const InputPreparationCompletionRequestSchema: z.ZodDiscriminated
2942
2958
  counter_authority_not_production: "counter_authority_not_production";
2943
2959
  counter_coverage_incomplete: "counter_coverage_incomplete";
2944
2960
  counter_interrupted: "counter_interrupted";
2945
- counter_missing: "counter_missing";
2946
2961
  executor_identity_unproven: "executor_identity_unproven";
2947
2962
  failed: "failed";
2948
- not_counted: "not_counted";
2963
+ not_prepared: "not_prepared";
2949
2964
  projection_unknown: "projection_unknown";
2965
+ request_content_not_text: "request_content_not_text";
2950
2966
  residual_not_ruled: "residual_not_ruled";
2951
2967
  runtime_contract_superseded: "runtime_contract_superseded";
2952
2968
  }>>;
@@ -2972,6 +2988,7 @@ export declare const InputPreparationCompletionRequestSchema: z.ZodDiscriminated
2972
2988
  counter_unavailable: "counter_unavailable";
2973
2989
  deadline_elapsed: "deadline_elapsed";
2974
2990
  durable_write_failed: "durable_write_failed";
2991
+ input_preparation_record_log_unsupported: "input_preparation_record_log_unsupported";
2975
2992
  input_preparation_unconfigured: "input_preparation_unconfigured";
2976
2993
  launch_boundary_unavailable: "launch_boundary_unavailable";
2977
2994
  limit_exceeded: "limit_exceeded";
@@ -3019,10 +3036,10 @@ export declare const InputPreparationReadbackSchema: z.ZodObject<{
3019
3036
  reference: z.ZodString;
3020
3037
  state: z.ZodEnum<{
3021
3038
  cancelled: "cancelled";
3022
- counted: "counted";
3023
3039
  counter_interrupted: "counter_interrupted";
3024
3040
  counting: "counting";
3025
3041
  failed: "failed";
3042
+ prepared: "prepared";
3026
3043
  reserved: "reserved";
3027
3044
  }>;
3028
3045
  binding: z.ZodObject<{
@@ -3105,10 +3122,6 @@ export declare const InputPreparationReadbackSchema: z.ZodObject<{
3105
3122
  provider: "provider";
3106
3123
  test_fixture: "test_fixture";
3107
3124
  }>;
3108
- kind: z.ZodEnum<{
3109
- bound: "bound";
3110
- count: "count";
3111
- }>;
3112
3125
  value: z.ZodNumber;
3113
3126
  coverage: z.ZodObject<{
3114
3127
  covered: z.ZodBoolean;
@@ -3140,11 +3153,11 @@ export declare const InputPreparationReadbackSchema: z.ZodObject<{
3140
3153
  counter_authority_not_production: "counter_authority_not_production";
3141
3154
  counter_coverage_incomplete: "counter_coverage_incomplete";
3142
3155
  counter_interrupted: "counter_interrupted";
3143
- counter_missing: "counter_missing";
3144
3156
  executor_identity_unproven: "executor_identity_unproven";
3145
3157
  failed: "failed";
3146
- not_counted: "not_counted";
3158
+ not_prepared: "not_prepared";
3147
3159
  projection_unknown: "projection_unknown";
3160
+ request_content_not_text: "request_content_not_text";
3148
3161
  residual_not_ruled: "residual_not_ruled";
3149
3162
  runtime_contract_superseded: "runtime_contract_superseded";
3150
3163
  }>>;
@@ -3161,6 +3174,7 @@ export declare const InputPreparationReadbackSchema: z.ZodObject<{
3161
3174
  counter_unavailable: "counter_unavailable";
3162
3175
  deadline_elapsed: "deadline_elapsed";
3163
3176
  durable_write_failed: "durable_write_failed";
3177
+ input_preparation_record_log_unsupported: "input_preparation_record_log_unsupported";
3164
3178
  input_preparation_unconfigured: "input_preparation_unconfigured";
3165
3179
  launch_boundary_unavailable: "launch_boundary_unavailable";
3166
3180
  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 = 5;
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");
@@ -1020,6 +1040,14 @@ var TerminalInferenceUsageSchema = z.object({
1020
1040
  /** Device observation time, never server receipt time. */
1021
1041
  reportedAt: TerminalInferenceReportedAtSchema
1022
1042
  });
1043
+ var TerminalPreparedObservationSchema = z.object({
1044
+ requestDigest: InputPreparationArtifactSummarySchema.shape.requestDigest,
1045
+ initialPromptTokens: TerminalInferenceUsageNumberSchema,
1046
+ maxPromptTokens: TerminalInferenceUsageNumberSchema
1047
+ }).strict().refine((value) => value.maxPromptTokens >= value.initialPromptTokens, {
1048
+ message: "maxPromptTokens must not be below initialPromptTokens",
1049
+ path: ["maxPromptTokens"]
1050
+ });
1023
1051
  var TaskCompletePayloadSchema = z.object({
1024
1052
  harnessId: HarnessIdSchema.optional(),
1025
1053
  summary: z.string(),
@@ -1029,6 +1057,8 @@ var TaskCompletePayloadSchema = z.object({
1029
1057
  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
1058
  }),
1031
1059
  usage: TerminalInferenceUsageSchema.optional(),
1060
+ /** Present on a prepared Execution only — see {@link TerminalPreparedObservationSchema}. */
1061
+ preparedObservation: TerminalPreparedObservationSchema.optional(),
1032
1062
  agentRef: AgentRefSchema.optional()
1033
1063
  });
1034
1064
  var TaskFailPayloadSchema = z.object({
@@ -1038,6 +1068,8 @@ var TaskFailPayloadSchema = z.object({
1038
1068
  reason: z.string(),
1039
1069
  retryable: z.boolean().optional(),
1040
1070
  usage: TerminalInferenceUsageSchema.optional(),
1071
+ /** Present on a prepared Execution that observed provider usage before failing. */
1072
+ preparedObservation: TerminalPreparedObservationSchema.optional(),
1041
1073
  agentRef: AgentRefSchema.optional()
1042
1074
  });
1043
1075
  var TaskCancelledPayloadSchema = z.object({
@@ -1592,6 +1624,6 @@ function byokBlobContentPath(blobId) {
1592
1624
  return `/byok/blobs/${blobId}/content`;
1593
1625
  }
1594
1626
 
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 };
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 };
1596
1628
  //# sourceMappingURL=index.js.map
1597
1629
  //# sourceMappingURL=index.js.map