@byok-sdk/protocol 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/codec.d.ts CHANGED
@@ -82,6 +82,10 @@ interface EnvelopeShapeOptions {
82
82
  taskId?: never;
83
83
  seq: number;
84
84
  };
85
+ 'agent.memory.intent.available': {
86
+ taskId?: never;
87
+ seq: number;
88
+ };
85
89
  'agent.content.receipt': {
86
90
  taskId?: string;
87
91
  seq?: number;
@@ -897,6 +897,21 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
897
897
  payload: z.ZodObject<{
898
898
  requestId: z.ZodUUID;
899
899
  }, z.core.$strict>;
900
+ }, z.core.$strip>, z.ZodObject<{
901
+ v: z.ZodNumber;
902
+ id: z.ZodUUID;
903
+ ts: z.ZodISODateTime;
904
+ type: z.ZodLiteral<"agent.memory.intent.available">;
905
+ task_id: z.ZodOptional<z.ZodNever>;
906
+ session_ref: z.ZodOptional<z.ZodString>;
907
+ seq: z.ZodNumber;
908
+ payload: z.ZodObject<{
909
+ intentId: z.ZodUUID;
910
+ agentRef: z.ZodObject<{
911
+ agentId: z.ZodString;
912
+ profileRevision: z.ZodString;
913
+ }, z.core.$strict>;
914
+ }, z.core.$strict>;
900
915
  }, z.core.$strip>, z.ZodObject<{
901
916
  v: z.ZodNumber;
902
917
  id: z.ZodUUID;
@@ -1073,6 +1088,12 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1073
1088
  outputTokens: z.ZodOptional<z.ZodNumber>;
1074
1089
  reasoningTokens: z.ZodOptional<z.ZodNumber>;
1075
1090
  totalTokens: z.ZodOptional<z.ZodNumber>;
1091
+ contextTokens: z.ZodOptional<z.ZodNumber>;
1092
+ contextWindow: z.ZodOptional<z.ZodNumber>;
1093
+ contextSource: z.ZodOptional<z.ZodEnum<{
1094
+ estimate: "estimate";
1095
+ provider: "provider";
1096
+ }>>;
1076
1097
  }, z.core.$strip>], "type">, z.ZodObject<{
1077
1098
  type: z.ZodString;
1078
1099
  }, z.core.$loose>]>>;
@@ -991,6 +991,21 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
991
991
  payload: z.ZodObject<{
992
992
  requestId: z.ZodUUID;
993
993
  }, z.core.$strict>;
994
+ }, z.core.$strip>, z.ZodObject<{
995
+ v: z.ZodNumber;
996
+ id: z.ZodUUID;
997
+ ts: z.ZodISODateTime;
998
+ type: z.ZodLiteral<"agent.memory.intent.available">;
999
+ task_id: z.ZodOptional<z.ZodNever>;
1000
+ session_ref: z.ZodOptional<z.ZodString>;
1001
+ seq: z.ZodNumber;
1002
+ payload: z.ZodObject<{
1003
+ intentId: z.ZodUUID;
1004
+ agentRef: z.ZodObject<{
1005
+ agentId: z.ZodString;
1006
+ profileRevision: z.ZodString;
1007
+ }, z.core.$strict>;
1008
+ }, z.core.$strict>;
994
1009
  }, z.core.$strip>, z.ZodObject<{
995
1010
  v: z.ZodNumber;
996
1011
  id: z.ZodUUID;
@@ -1167,6 +1182,12 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
1167
1182
  outputTokens: z.ZodOptional<z.ZodNumber>;
1168
1183
  reasoningTokens: z.ZodOptional<z.ZodNumber>;
1169
1184
  totalTokens: z.ZodOptional<z.ZodNumber>;
1185
+ contextTokens: z.ZodOptional<z.ZodNumber>;
1186
+ contextWindow: z.ZodOptional<z.ZodNumber>;
1187
+ contextSource: z.ZodOptional<z.ZodEnum<{
1188
+ estimate: "estimate";
1189
+ provider: "provider";
1190
+ }>>;
1170
1191
  }, z.core.$strip>], "type">, z.ZodObject<{
1171
1192
  type: z.ZodString;
1172
1193
  }, z.core.$loose>]>>;
@@ -2390,6 +2411,21 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
2390
2411
  payload: z.ZodObject<{
2391
2412
  requestId: z.ZodUUID;
2392
2413
  }, z.core.$strict>;
2414
+ }, z.core.$strip>, z.ZodObject<{
2415
+ v: z.ZodNumber;
2416
+ id: z.ZodUUID;
2417
+ ts: z.ZodISODateTime;
2418
+ type: z.ZodLiteral<"agent.memory.intent.available">;
2419
+ task_id: z.ZodOptional<z.ZodNever>;
2420
+ session_ref: z.ZodOptional<z.ZodString>;
2421
+ seq: z.ZodNumber;
2422
+ payload: z.ZodObject<{
2423
+ intentId: z.ZodUUID;
2424
+ agentRef: z.ZodObject<{
2425
+ agentId: z.ZodString;
2426
+ profileRevision: z.ZodString;
2427
+ }, z.core.$strict>;
2428
+ }, z.core.$strict>;
2393
2429
  }, z.core.$strip>, z.ZodObject<{
2394
2430
  v: z.ZodNumber;
2395
2431
  id: z.ZodUUID;
@@ -2566,6 +2602,12 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
2566
2602
  outputTokens: z.ZodOptional<z.ZodNumber>;
2567
2603
  reasoningTokens: z.ZodOptional<z.ZodNumber>;
2568
2604
  totalTokens: z.ZodOptional<z.ZodNumber>;
2605
+ contextTokens: z.ZodOptional<z.ZodNumber>;
2606
+ contextWindow: z.ZodOptional<z.ZodNumber>;
2607
+ contextSource: z.ZodOptional<z.ZodEnum<{
2608
+ estimate: "estimate";
2609
+ provider: "provider";
2610
+ }>>;
2569
2611
  }, z.core.$strip>], "type">, z.ZodObject<{
2570
2612
  type: z.ZodString;
2571
2613
  }, z.core.$loose>]>>;
package/dist/index.d.ts CHANGED
@@ -9,6 +9,8 @@ export { PROVIDER_PROFILE_BINDING_CAPABILITY, PROVIDER_MODEL_CAPABILITIES, Provi
9
9
  export type { ProviderProfileRef, ProviderProfileRevision, ProviderProfileHash, ProviderModelCapability, ProviderProfileBinding, } from './provider-profile-binding';
10
10
  export { PROVIDER_PROVISIONING_CAPABILITY, PROVIDER_SECRET_SEALING_KEY_REGISTER_OPERATION, PROVIDER_PROVISIONING_OPERATIONS, PROVIDER_PROVISIONING_OPERATION_GENERATION_MAXIMUM, PROVIDER_PROVISIONING_REJECTION_CODES, PROVIDER_PROVISIONING_HOST_TERMINAL_CODES, PROVIDER_PROVISIONING_DISPOSITIONS, PROVIDER_PROVISIONING_KEY_CHECK_RESULTS, ProviderProvisioningAvailablePayloadSchema, ProviderProvisioningKeyCheckResultSchema, ProviderProvisioningKeyCheckSchema, ProviderProvisioningOperationSchema, ProviderProvisioningOperationGenerationSchema, ProviderProvisioningOperationDigestSchema, ProviderProvisioningRejectionCodeSchema, ProviderProvisioningProviderStatusSchema, ProviderProvisioningCompletionSchema, ProviderProvisioningDispositionSchema, ProviderProvisioningReadbackSchema, } from './provider-provisioning';
11
11
  export type { ProviderProvisioningAvailablePayload, ProviderProvisioningOperation, ProviderProvisioningOperationGeneration, ProviderProvisioningOperationDigest, ProviderProvisioningRejectionCode, ProviderProvisioningProviderStatus, ProviderProvisioningCompletion, ProviderProvisioningDisposition, ProviderProvisioningReadback, ProviderProvisioningKeyCheckResult, ProviderProvisioningKeyCheck, } from './provider-provisioning';
12
+ export { AGENT_MEMORY_INTENT_CAPABILITY, AGENT_MEMORY_INTENT_CONTENT_MAX_BYTES, AGENT_MEMORY_INTENT_PATH_MAX_BYTES, AGENT_MEMORY_INTENT_APPROVAL_REF_MAX_BYTES, AGENT_MEMORY_INTENT_OPERATIONS, AGENT_MEMORY_INTENT_HOST_TERMINAL_CODES, AGENT_MEMORY_INTENT_REJECTION_CODES, AGENT_MEMORY_INTENT_READBACK_DISPOSITIONS, AGENT_MEMORY_INTENT_RESERVATIONS, AGENT_MEMORY_INTENT_FETCH_DISPOSITIONS, AGENT_MEMORY_INTENT_FETCH_DISPOSITIONS_BY_RESERVATION, AgentMemoryIntentRevisionSchema, AgentMemoryIntentOperationDigestSchema, AgentMemoryIntentPathSchema, AgentMemoryIntentApprovalRefSchema, AgentMemoryIntentContentSchema, AgentMemoryIntentOperationSchema, AgentMemoryIntentV1Schema, AgentMemoryIntentHostTerminalCodeSchema, AgentMemoryIntentRejectionCodeSchema, AgentMemoryIntentFileObservationSchema, AgentMemoryIntentCompletionSchema, AgentMemoryIntentReadbackDispositionSchema, AgentMemoryIntentReadbackSchema, AgentMemoryIntentReservationSchema, AgentMemoryIntentFetchRequestSchema, AgentMemoryIntentFetchResponseSchema, agentMemoryIntentFetchResponseSchemaFor, } from './agent-memory-intent';
13
+ export type { AgentMemoryIntentRevision, AgentMemoryIntentOperationDigest, AgentMemoryIntentPath, AgentMemoryIntentApprovalRef, AgentMemoryIntentContent, AgentMemoryIntentOperation, AgentMemoryIntentV1, AgentMemoryIntentHostTerminalCode, AgentMemoryIntentRejectionCode, AgentMemoryIntentFileObservation, AgentMemoryIntentCompletion, AgentMemoryIntentReadbackDisposition, AgentMemoryIntentReadback, AgentMemoryIntentReservation, AgentMemoryIntentFetchRequest, AgentMemoryIntentFetchDisposition, AgentMemoryIntentFetchResponse, } from './agent-memory-intent';
12
14
  export { AgentEventSchema, AgentEventSpillSchema, AGENT_EVENT_SPILL_UNSTORED_REASON_MAX_LENGTH, UnknownAgentEventSchema, AgentEventOrUnknownSchema, KNOWN_AGENT_EVENT_TYPES, isKnownAgentEvent, partitionAgentEvents, } from './agent-event';
13
15
  export type { AgentEvent, AgentEventSpill, UnknownAgentEvent, AgentEventOrUnknown } from './agent-event';
14
16
  export { AgentEgressPolicySchema, AgentEgressActivityPolicySchema, AgentReliableQuotaPolicySchema, ContentReadPolicySchema, AgentEgressLaneSchema, AgentEgressDropReasonSchema, AgentContentReadSurfaceSchema, AgentContentActorKindSchema, AgentContentActorSchema, AgentContentDecodeAsSchema, AgentContentMimeTypeSchema, AgentContentReadDecisionSchema, AgentContentReadDenialReasonSchema, AgentEgressContentHashSchema, AgentEgressPolicyRevisionSchema, AgentMessageContractSchema, AgentMessageContentTypeSchema, AgentMessageDestinationBindingSchema, AgentMessageFreshnessCursorSchema, AgentMessageServerContextSchema, AgentMessageEgressRequirementSchema, AGENT_MESSAGE_MAX_BYTES, AGENT_MESSAGE_EGRESS_CAPABILITY, AGENT_EGRESS_POLICY_CAPABILITY, AGENT_EGRESS_RELIABLE_ACK_CAPABILITY, AGENT_EGRESS_FRESH_SESSION_CAPABILITY, AGENT_CONTENT_WORKSPACE_READ_CAPABILITY, AGENT_CONTENT_TRANSCRIPT_READ_CAPABILITY, AGENT_CONTENT_ARTIFACT_READ_CAPABILITY, } from './agent-egress';
@@ -24,8 +26,8 @@ export { TERMINAL_PROJECTION_SELECTION_CAPABILITY, TerminalProjectionContractSch
24
26
  export type { TerminalProjectionSelection } from './terminal-projection';
25
27
  export { TASK_STATES, TASK_TRANSITIONS, canTransition } from './task-state';
26
28
  export type { TaskState } from './task-state';
27
- 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';
28
- 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';
29
+ 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, AgentMemoryIntentAvailablePayloadSchema, 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';
30
+ 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, AgentMemoryIntentAvailablePayload, AgentInputPreparationPayload, TaskApprovePayload, TaskRejectPayload, TaskCancelPayload, TaskSteerPayload, TaskClaimPayload, TaskStartedPayload, TaskDeclinePayload, TaskProgressPayload, TaskArtifactPayload, TaskAwaitApprovalPayload, TaskCompletePayload, TaskFailPayload, TaskCancelledPayload, TaskApprovalResolvedPayload, TerminalInferenceUsage, TerminalPreparedObservation, } from './messages';
29
31
  export { EnvelopeSchema, isServerToDaemonType } from './envelope';
30
32
  export type { Envelope } from './envelope';
31
33
  export { ProtocolError, EnvelopeParseError, UnknownMessageTypeError, EnvelopeValidationError, } from './errors';
package/dist/index.js CHANGED
@@ -614,40 +614,6 @@ var ProviderProvisioningReadbackSchema = z.object({
614
614
  });
615
615
  }
616
616
  });
617
-
618
- // src/version.ts
619
- var MAILBOX_READ_AHEAD_MAX_SEQS = 4096;
620
- var MAILBOX_READ_AHEAD_CAPABILITY = "mailbox-read-ahead";
621
- var PROTOCOL_VERSION = 1;
622
- var STRICT_AGENT_ONLY_CAPABILITY = "strict-agent-only";
623
- var CUSTOM_HARNESS_CAPABILITY = "custom-harness";
624
- var CAPABILITY_FLAGS = [
625
- "steer",
626
- "blob-upload",
627
- "interactive-approval",
628
- "approval_resolved",
629
- "approval-targeting",
630
- "result-document",
631
- "dispatch-selection",
632
- PROVIDER_PROFILE_BINDING_CAPABILITY,
633
- "toolset-selection",
634
- "agent-home-contract",
635
- STRICT_AGENT_ONLY_CAPABILITY,
636
- AGENT_EGRESS_POLICY_CAPABILITY,
637
- AGENT_EGRESS_RELIABLE_ACK_CAPABILITY,
638
- AGENT_MESSAGE_EGRESS_CAPABILITY,
639
- AGENT_EGRESS_FRESH_SESSION_CAPABILITY,
640
- AGENT_CONTENT_WORKSPACE_READ_CAPABILITY,
641
- AGENT_CONTENT_TRANSCRIPT_READ_CAPABILITY,
642
- AGENT_CONTENT_ARTIFACT_READ_CAPABILITY,
643
- AGENT_HOME_PROJECTION_CAPABILITY,
644
- AGENT_INPUT_PREPARATION_CAPABILITY,
645
- TERMINAL_PROJECTION_SELECTION_CAPABILITY,
646
- HOST_MCP_TASK_CONTEXT_CAPABILITY,
647
- CUSTOM_HARNESS_CAPABILITY,
648
- MAILBOX_READ_AHEAD_CAPABILITY,
649
- PROVIDER_PROVISIONING_CAPABILITY
650
- ];
651
617
  var CONTENT_HASH_RE = /^sha256:[0-9a-f]{64}$/;
652
618
  var BlobRefSchema = z.object({
653
619
  blobId: z.string(),
@@ -709,7 +675,11 @@ var AgentEventSchema = z.discriminatedUnion("type", [
709
675
  cachedInputTokens: z.number().int().nonnegative().optional(),
710
676
  outputTokens: z.number().int().nonnegative().optional(),
711
677
  reasoningTokens: z.number().int().nonnegative().optional(),
712
- totalTokens: z.number().int().nonnegative().optional()
678
+ totalTokens: z.number().int().nonnegative().optional(),
679
+ // Context occupancy is independent of provider cost counters. Unknown stays absent.
680
+ contextTokens: z.number().int().nonnegative().optional(),
681
+ contextWindow: z.number().int().positive().optional(),
682
+ contextSource: z.enum(["provider", "estimate"]).optional()
713
683
  })
714
684
  ]);
715
685
  var KNOWN_AGENT_EVENT_TYPES = z.toJSONSchema(AgentEventSchema).oneOf.map((branch) => branch.properties.type.const);
@@ -733,6 +703,8 @@ function partitionAgentEvents(events) {
733
703
  }
734
704
  return { known, unknown };
735
705
  }
706
+
707
+ // src/messages.ts
736
708
  var MAX_INLINE_BYTES = 64 * 1024;
737
709
  function isWithinInlineByteLimit(value) {
738
710
  return new TextEncoder().encode(value).length <= MAX_INLINE_BYTES;
@@ -1020,6 +992,10 @@ var AgentHomeProjectionPayloadSchema = z.object({
1020
992
  projectionHash: AgentHomeProjectionHashSchema,
1021
993
  projection: AgentHomeProjectionValueSchema
1022
994
  }).strict();
995
+ var AgentMemoryIntentAvailablePayloadSchema = z.object({
996
+ intentId: z.uuid(),
997
+ agentRef: AgentHomeProjectionAgentRefSchema
998
+ }).strict();
1023
999
  var InputPreparationInlineContextSchema = z.object({
1024
1000
  inline: z.string().refine(isWithinInlineByteLimit, `inline context must not exceed ${MAX_INLINE_BYTES} UTF-8 bytes`)
1025
1001
  }).strict();
@@ -1240,6 +1216,7 @@ var MESSAGE_PAYLOAD_SCHEMAS = {
1240
1216
  "agent.home.projection": AgentHomeProjectionPayloadSchema,
1241
1217
  "agent.input.preparation": AgentInputPreparationPayloadSchema,
1242
1218
  "provider.provisioning.available": ProviderProvisioningAvailablePayloadSchema,
1219
+ "agent.memory.intent.available": AgentMemoryIntentAvailablePayloadSchema,
1243
1220
  "task.approve": TaskApprovePayloadSchema,
1244
1221
  "task.reject": TaskRejectPayloadSchema,
1245
1222
  "task.cancel": TaskCancelPayloadSchema,
@@ -1270,6 +1247,7 @@ var SERVER_TO_DAEMON_TYPES = [
1270
1247
  "agent.home.projection",
1271
1248
  "agent.input.preparation",
1272
1249
  "provider.provisioning.available",
1250
+ "agent.memory.intent.available",
1273
1251
  "task.approve",
1274
1252
  "task.reject",
1275
1253
  "task.cancel",
@@ -1291,7 +1269,204 @@ var DAEMON_TO_SERVER_TYPES = [
1291
1269
  "agent.content.receipt"
1292
1270
  ];
1293
1271
 
1294
- // src/agent-memory-projection.ts
1272
+ // src/agent-memory-intent.ts
1273
+ var AGENT_MEMORY_INTENT_CAPABILITY = "agent-memory-intent.v1";
1274
+ var AGENT_MEMORY_INTENT_CONTENT_MAX_BYTES = 262144;
1275
+ var AGENT_MEMORY_INTENT_PATH_MAX_BYTES = 1024;
1276
+ var AGENT_MEMORY_INTENT_APPROVAL_REF_MAX_BYTES = 128;
1277
+ var SHA256_REVISION = /^sha256:[0-9a-f]{64}$/u;
1278
+ var AgentMemoryIntentRevisionSchema = z.string().regex(SHA256_REVISION, "revision must be lowercase sha256:<64 hex>");
1279
+ var AgentMemoryIntentOperationDigestSchema = z.string().regex(SHA256_REVISION, "operationDigest must be lowercase sha256:<64 hex>");
1280
+ var AgentMemoryIntentPathSchema = z.string().min(1).max(AGENT_MEMORY_INTENT_PATH_MAX_BYTES).regex(/^[\x20\x21\x23-\x5b\x5d-\x7e]+$/u, "path must be printable ASCII without quote or backslash");
1281
+ var AgentMemoryIntentApprovalRefSchema = z.string().regex(
1282
+ new RegExp(`^[A-Za-z0-9._:-]{1,${AGENT_MEMORY_INTENT_APPROVAL_REF_MAX_BYTES}}$`, "u"),
1283
+ `approvalRef must be 1..${AGENT_MEMORY_INTENT_APPROVAL_REF_MAX_BYTES} characters of [A-Za-z0-9._:-]`
1284
+ );
1285
+ var LONE_SURROGATE = /[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?<![\uD800-\uDBFF])[\uDC00-\uDFFF]/u;
1286
+ var utf8 = new TextEncoder();
1287
+ var AgentMemoryIntentContentSchema = z.string().refine((value) => !LONE_SURROGATE.test(value), "content must be well-formed Unicode (encodable as UTF-8)").refine(
1288
+ (value) => utf8.encode(value).byteLength <= AGENT_MEMORY_INTENT_CONTENT_MAX_BYTES,
1289
+ `content must not exceed ${AGENT_MEMORY_INTENT_CONTENT_MAX_BYTES} UTF-8 bytes`
1290
+ );
1291
+ var AGENT_MEMORY_INTENT_OPERATIONS = ["replace", "delete"];
1292
+ var AgentMemoryIntentOperationSchema = z.enum(AGENT_MEMORY_INTENT_OPERATIONS);
1293
+ var AgentMemoryIntentV1Schema = z.object({
1294
+ intentId: z.uuid(),
1295
+ agentRef: AgentHomeProjectionAgentRefSchema,
1296
+ path: AgentMemoryIntentPathSchema,
1297
+ operation: AgentMemoryIntentOperationSchema,
1298
+ baseRevision: AgentMemoryIntentRevisionSchema,
1299
+ targetRevision: AgentMemoryIntentRevisionSchema.nullable(),
1300
+ content: AgentMemoryIntentContentSchema.optional(),
1301
+ approvalRef: AgentMemoryIntentApprovalRefSchema,
1302
+ operationDigest: AgentMemoryIntentOperationDigestSchema
1303
+ }).strict().superRefine((intent, ctx) => {
1304
+ if (intent.operation === "delete") {
1305
+ if (intent.targetRevision !== null) {
1306
+ ctx.addIssue({ code: "custom", path: ["targetRevision"], message: "a delete intent has a null targetRevision" });
1307
+ }
1308
+ if (intent.content !== void 0) {
1309
+ ctx.addIssue({ code: "custom", path: ["content"], message: "a delete intent never carries content" });
1310
+ }
1311
+ return;
1312
+ }
1313
+ if (intent.targetRevision === null) {
1314
+ ctx.addIssue({ code: "custom", path: ["targetRevision"], message: "a replace intent requires a targetRevision" });
1315
+ } else if (intent.targetRevision === intent.baseRevision) {
1316
+ ctx.addIssue({ code: "custom", path: ["targetRevision"], message: "targetRevision must differ from baseRevision" });
1317
+ }
1318
+ });
1319
+ var AGENT_MEMORY_INTENT_HOST_TERMINAL_CODES = [
1320
+ "intent_revoked",
1321
+ "intent_expired",
1322
+ "placement_changed",
1323
+ "profile_revision_changed"
1324
+ ];
1325
+ var AgentMemoryIntentHostTerminalCodeSchema = z.enum(AGENT_MEMORY_INTENT_HOST_TERMINAL_CODES);
1326
+ var AGENT_MEMORY_INTENT_REJECTION_CODES = [
1327
+ "intent_invalid",
1328
+ "path_invalid",
1329
+ "memory_md_not_deletable",
1330
+ "content_invalid",
1331
+ "intent_digest_mismatch",
1332
+ "agent_ref_mismatch",
1333
+ "agent_home_unavailable",
1334
+ ...AGENT_MEMORY_INTENT_HOST_TERMINAL_CODES
1335
+ ];
1336
+ var AgentMemoryIntentRejectionCodeSchema = z.enum(AGENT_MEMORY_INTENT_REJECTION_CODES);
1337
+ var AgentMemoryIntentFileObservationSchema = z.object({
1338
+ exists: z.boolean(),
1339
+ revision: AgentMemoryIntentRevisionSchema
1340
+ }).strict();
1341
+ var completionIdentity2 = {
1342
+ intentId: z.uuid(),
1343
+ agentRef: AgentHomeProjectionAgentRefSchema,
1344
+ path: AgentMemoryIntentPathSchema,
1345
+ operation: AgentMemoryIntentOperationSchema,
1346
+ operationDigest: AgentMemoryIntentOperationDigestSchema
1347
+ };
1348
+ var AppliedCompletionSchema2 = z.object({ ...completionIdentity2, outcome: z.literal("applied"), result: AgentMemoryIntentFileObservationSchema }).strict();
1349
+ var ConflictCompletionSchema = z.object({ ...completionIdentity2, outcome: z.literal("conflict"), observed: AgentMemoryIntentFileObservationSchema }).strict();
1350
+ var RejectedCompletionSchema2 = z.object({ ...completionIdentity2, outcome: z.literal("rejected"), code: AgentMemoryIntentRejectionCodeSchema }).strict();
1351
+ var UncertainCompletionSchema = z.object({ ...completionIdentity2, outcome: z.literal("uncertain"), observed: AgentMemoryIntentFileObservationSchema }).strict();
1352
+ var AgentMemoryIntentCompletionSchema = z.discriminatedUnion("outcome", [
1353
+ AppliedCompletionSchema2,
1354
+ ConflictCompletionSchema,
1355
+ RejectedCompletionSchema2,
1356
+ UncertainCompletionSchema
1357
+ ]);
1358
+ var AGENT_MEMORY_INTENT_READBACK_DISPOSITIONS = ["recorded", "idempotent", "conflict", "host_terminal"];
1359
+ var AgentMemoryIntentReadbackDispositionSchema = z.enum(AGENT_MEMORY_INTENT_READBACK_DISPOSITIONS);
1360
+ var AgentMemoryIntentReadbackSchema = z.object({
1361
+ tenantId: z.string().min(1),
1362
+ deviceId: z.string().min(1),
1363
+ intentId: z.uuid(),
1364
+ disposition: AgentMemoryIntentReadbackDispositionSchema,
1365
+ completion: AgentMemoryIntentCompletionSchema,
1366
+ recordedAt: z.iso.datetime({ offset: true })
1367
+ }).strict().superRefine((readback, ctx) => {
1368
+ if (readback.completion.intentId !== readback.intentId) {
1369
+ ctx.addIssue({ code: "custom", path: ["completion", "intentId"], message: "completion intentId must equal readback intentId" });
1370
+ }
1371
+ if (readback.disposition === "host_terminal" && (readback.completion.outcome !== "rejected" || !AGENT_MEMORY_INTENT_HOST_TERMINAL_CODES.includes(readback.completion.code))) {
1372
+ ctx.addIssue({
1373
+ code: "custom",
1374
+ path: ["completion"],
1375
+ message: `a host_terminal readback must carry a rejected completion with one of: ${AGENT_MEMORY_INTENT_HOST_TERMINAL_CODES.join(", ")}`
1376
+ });
1377
+ }
1378
+ });
1379
+ var AGENT_MEMORY_INTENT_RESERVATIONS = ["held", "none"];
1380
+ var AgentMemoryIntentReservationSchema = z.enum(AGENT_MEMORY_INTENT_RESERVATIONS);
1381
+ var AgentMemoryIntentFetchRequestSchema = z.object({
1382
+ intentId: z.uuid(),
1383
+ reservation: AgentMemoryIntentReservationSchema
1384
+ }).strict();
1385
+ var AGENT_MEMORY_INTENT_FETCH_DISPOSITIONS = ["release", "withheld", "terminal", "deferred"];
1386
+ var AGENT_MEMORY_INTENT_FETCH_DISPOSITIONS_BY_RESERVATION = {
1387
+ held: ["release", "withheld", "terminal"],
1388
+ none: ["terminal", "deferred"]
1389
+ };
1390
+ function requireNoContent(intent, ctx, disposition) {
1391
+ if (intent.content !== void 0) {
1392
+ ctx.addIssue({ code: "custom", path: ["intent", "content"], message: `a ${disposition} fetch response never carries content` });
1393
+ }
1394
+ }
1395
+ var ReleaseFetchResponseSchema = z.object({ disposition: z.literal("release"), intent: AgentMemoryIntentV1Schema }).strict().superRefine((response, ctx) => {
1396
+ if (response.intent.operation === "replace" && response.intent.content === void 0) {
1397
+ ctx.addIssue({ code: "custom", path: ["intent", "content"], message: "a replace release must carry content" });
1398
+ }
1399
+ });
1400
+ var WithheldFetchResponseSchema = z.object({ disposition: z.literal("withheld"), intent: AgentMemoryIntentV1Schema, code: AgentMemoryIntentHostTerminalCodeSchema }).strict().superRefine((response, ctx) => requireNoContent(response.intent, ctx, "withheld"));
1401
+ var TerminalFetchResponseSchema = z.object({ disposition: z.literal("terminal"), intent: AgentMemoryIntentV1Schema, readback: AgentMemoryIntentReadbackSchema }).strict().superRefine((response, ctx) => {
1402
+ requireNoContent(response.intent, ctx, "terminal");
1403
+ const { intent, readback } = response;
1404
+ if (readback.intentId !== intent.intentId) {
1405
+ ctx.addIssue({ code: "custom", path: ["readback", "intentId"], message: "readback intentId must equal intent intentId" });
1406
+ }
1407
+ const completion = readback.completion;
1408
+ if (completion.agentRef.agentId !== intent.agentRef.agentId || completion.agentRef.profileRevision !== intent.agentRef.profileRevision || completion.path !== intent.path || completion.operation !== intent.operation || completion.operationDigest !== intent.operationDigest) {
1409
+ ctx.addIssue({
1410
+ code: "custom",
1411
+ path: ["readback", "completion"],
1412
+ message: "readback completion identity must equal the intent identity and operationDigest"
1413
+ });
1414
+ }
1415
+ });
1416
+ var DeferredFetchResponseSchema = z.object({ disposition: z.literal("deferred"), intent: AgentMemoryIntentV1Schema }).strict().superRefine((response, ctx) => requireNoContent(response.intent, ctx, "deferred"));
1417
+ var AgentMemoryIntentFetchResponseSchema = z.discriminatedUnion("disposition", [
1418
+ ReleaseFetchResponseSchema,
1419
+ WithheldFetchResponseSchema,
1420
+ TerminalFetchResponseSchema,
1421
+ DeferredFetchResponseSchema
1422
+ ]);
1423
+ function agentMemoryIntentFetchResponseSchemaFor(reservation) {
1424
+ const allowed = AGENT_MEMORY_INTENT_FETCH_DISPOSITIONS_BY_RESERVATION[AgentMemoryIntentReservationSchema.parse(reservation)];
1425
+ return AgentMemoryIntentFetchResponseSchema.superRefine((response, ctx) => {
1426
+ if (!allowed.includes(response.disposition)) {
1427
+ ctx.addIssue({
1428
+ code: "custom",
1429
+ path: ["disposition"],
1430
+ message: `a ${reservation} reservation allows only: ${allowed.join(", ")}`
1431
+ });
1432
+ }
1433
+ });
1434
+ }
1435
+
1436
+ // src/version.ts
1437
+ var MAILBOX_READ_AHEAD_MAX_SEQS = 4096;
1438
+ var MAILBOX_READ_AHEAD_CAPABILITY = "mailbox-read-ahead";
1439
+ var PROTOCOL_VERSION = 1;
1440
+ var STRICT_AGENT_ONLY_CAPABILITY = "strict-agent-only";
1441
+ var CUSTOM_HARNESS_CAPABILITY = "custom-harness";
1442
+ var CAPABILITY_FLAGS = [
1443
+ "steer",
1444
+ "blob-upload",
1445
+ "interactive-approval",
1446
+ "approval_resolved",
1447
+ "approval-targeting",
1448
+ "result-document",
1449
+ "dispatch-selection",
1450
+ PROVIDER_PROFILE_BINDING_CAPABILITY,
1451
+ "toolset-selection",
1452
+ "agent-home-contract",
1453
+ STRICT_AGENT_ONLY_CAPABILITY,
1454
+ AGENT_EGRESS_POLICY_CAPABILITY,
1455
+ AGENT_EGRESS_RELIABLE_ACK_CAPABILITY,
1456
+ AGENT_MESSAGE_EGRESS_CAPABILITY,
1457
+ AGENT_EGRESS_FRESH_SESSION_CAPABILITY,
1458
+ AGENT_CONTENT_WORKSPACE_READ_CAPABILITY,
1459
+ AGENT_CONTENT_TRANSCRIPT_READ_CAPABILITY,
1460
+ AGENT_CONTENT_ARTIFACT_READ_CAPABILITY,
1461
+ AGENT_HOME_PROJECTION_CAPABILITY,
1462
+ AGENT_INPUT_PREPARATION_CAPABILITY,
1463
+ TERMINAL_PROJECTION_SELECTION_CAPABILITY,
1464
+ HOST_MCP_TASK_CONTEXT_CAPABILITY,
1465
+ CUSTOM_HARNESS_CAPABILITY,
1466
+ MAILBOX_READ_AHEAD_CAPABILITY,
1467
+ PROVIDER_PROVISIONING_CAPABILITY,
1468
+ AGENT_MEMORY_INTENT_CAPABILITY
1469
+ ];
1295
1470
  var AGENT_MEMORY_PROJECTION_CAPABILITY = "agent.memory.projection";
1296
1471
  var AGENT_MEMORY_PROJECTION_MAX_REDACTED_BYTES = 512 * 1024;
1297
1472
  var AGENT_MEMORY_PROJECTION_MAX_ORDERING_VALUE = 2147483647;
@@ -1426,6 +1601,7 @@ var EnvelopeSchema = z.discriminatedUnion("type", [
1426
1601
  envelopeShape("agent.home.projection", FORBIDDEN_TASK_ID, REQUIRED_SEQ),
1427
1602
  envelopeShape("agent.input.preparation", FORBIDDEN_TASK_ID, REQUIRED_SEQ),
1428
1603
  envelopeShape("provider.provisioning.available", FORBIDDEN_TASK_ID, REQUIRED_SEQ),
1604
+ envelopeShape("agent.memory.intent.available", FORBIDDEN_TASK_ID, REQUIRED_SEQ),
1429
1605
  envelopeShape("task.approve", REQUIRED_TASK_ID, REQUIRED_SEQ),
1430
1606
  envelopeShape("task.reject", REQUIRED_TASK_ID, REQUIRED_SEQ),
1431
1607
  envelopeShape("task.cancel", REQUIRED_TASK_ID, REQUIRED_SEQ),
@@ -1756,6 +1932,6 @@ function byokBlobContentPath(blobId) {
1756
1932
  return `/byok/blobs/${blobId}/content`;
1757
1933
  }
1758
1934
 
1759
- 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, PROVIDER_PROVISIONING_CAPABILITY, PROVIDER_PROVISIONING_DISPOSITIONS, PROVIDER_PROVISIONING_HOST_TERMINAL_CODES, PROVIDER_PROVISIONING_KEY_CHECK_RESULTS, PROVIDER_PROVISIONING_OPERATIONS, PROVIDER_PROVISIONING_OPERATION_GENERATION_MAXIMUM, PROVIDER_PROVISIONING_REJECTION_CODES, PROVIDER_SECRET_SEALING_KEY_REGISTER_OPERATION, PairRequestSchema, PairResponseSchema, PairResponseTenantIdSchema, PermissionPolicySchema, PreparedAgentMemoryModeSchema, PresencePublishRequestSchema, ProtocolError, ProtocolVersionNumberSchema, ProviderModelCapabilitySchema, ProviderProfileBindingSchema, ProviderProfileHashSchema, ProviderProfileRefSchema, ProviderProfileRevisionSchema, ProviderProvisioningAvailablePayloadSchema, ProviderProvisioningCompletionSchema, ProviderProvisioningDispositionSchema, ProviderProvisioningKeyCheckResultSchema, ProviderProvisioningKeyCheckSchema, ProviderProvisioningOperationDigestSchema, ProviderProvisioningOperationGenerationSchema, ProviderProvisioningOperationSchema, ProviderProvisioningProviderStatusSchema, ProviderProvisioningReadbackSchema, ProviderProvisioningRejectionCodeSchema, 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 };
1935
+ 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_INTENT_APPROVAL_REF_MAX_BYTES, AGENT_MEMORY_INTENT_CAPABILITY, AGENT_MEMORY_INTENT_CONTENT_MAX_BYTES, AGENT_MEMORY_INTENT_FETCH_DISPOSITIONS, AGENT_MEMORY_INTENT_FETCH_DISPOSITIONS_BY_RESERVATION, AGENT_MEMORY_INTENT_HOST_TERMINAL_CODES, AGENT_MEMORY_INTENT_OPERATIONS, AGENT_MEMORY_INTENT_PATH_MAX_BYTES, AGENT_MEMORY_INTENT_READBACK_DISPOSITIONS, AGENT_MEMORY_INTENT_REJECTION_CODES, AGENT_MEMORY_INTENT_RESERVATIONS, 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, AgentMemoryIntentApprovalRefSchema, AgentMemoryIntentAvailablePayloadSchema, AgentMemoryIntentCompletionSchema, AgentMemoryIntentContentSchema, AgentMemoryIntentFetchRequestSchema, AgentMemoryIntentFetchResponseSchema, AgentMemoryIntentFileObservationSchema, AgentMemoryIntentHostTerminalCodeSchema, AgentMemoryIntentOperationDigestSchema, AgentMemoryIntentOperationSchema, AgentMemoryIntentPathSchema, AgentMemoryIntentReadbackDispositionSchema, AgentMemoryIntentReadbackSchema, AgentMemoryIntentRejectionCodeSchema, AgentMemoryIntentReservationSchema, AgentMemoryIntentRevisionSchema, AgentMemoryIntentV1Schema, 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, PROVIDER_PROVISIONING_CAPABILITY, PROVIDER_PROVISIONING_DISPOSITIONS, PROVIDER_PROVISIONING_HOST_TERMINAL_CODES, PROVIDER_PROVISIONING_KEY_CHECK_RESULTS, PROVIDER_PROVISIONING_OPERATIONS, PROVIDER_PROVISIONING_OPERATION_GENERATION_MAXIMUM, PROVIDER_PROVISIONING_REJECTION_CODES, PROVIDER_SECRET_SEALING_KEY_REGISTER_OPERATION, PairRequestSchema, PairResponseSchema, PairResponseTenantIdSchema, PermissionPolicySchema, PreparedAgentMemoryModeSchema, PresencePublishRequestSchema, ProtocolError, ProtocolVersionNumberSchema, ProviderModelCapabilitySchema, ProviderProfileBindingSchema, ProviderProfileHashSchema, ProviderProfileRefSchema, ProviderProfileRevisionSchema, ProviderProvisioningAvailablePayloadSchema, ProviderProvisioningCompletionSchema, ProviderProvisioningDispositionSchema, ProviderProvisioningKeyCheckResultSchema, ProviderProvisioningKeyCheckSchema, ProviderProvisioningOperationDigestSchema, ProviderProvisioningOperationGenerationSchema, ProviderProvisioningOperationSchema, ProviderProvisioningProviderStatusSchema, ProviderProvisioningReadbackSchema, ProviderProvisioningRejectionCodeSchema, 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, agentMemoryIntentFetchResponseSchemaFor, agentMemoryProjectionBase64UrlByteLength, byokAgentHomeProjectionCompletionPath, byokBlobContentPath, byokBlobFinalizePath, byokBlobUrlPath, byokInputPreparationCompletionPath, byokInputPreparationStatusPath, byokRecordPath, byokSkillPackFilePath, canTransition, checkResultDocument, createEnvelope, decodeEnvelope, encodeEnvelope, isKnownAgentEvent, isServerToDaemonType, isTaskOfferType, parseMessage, partitionAgentEvents };
1760
1936
  //# sourceMappingURL=index.js.map
1761
1937
  //# sourceMappingURL=index.js.map