@byok-sdk/protocol 0.14.0 → 0.16.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.
@@ -46,6 +46,17 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
46
46
  permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
47
47
  }, z.core.$strip>>;
48
48
  }, z.core.$strip>>>;
49
+ harnesses: z.ZodOptional<z.ZodArray<z.ZodObject<{
50
+ id: z.ZodString;
51
+ version: z.ZodOptional<z.ZodString>;
52
+ capabilities: z.ZodObject<{
53
+ steer: z.ZodOptional<z.ZodBoolean>;
54
+ resume: z.ZodOptional<z.ZodBoolean>;
55
+ approvalInteractive: z.ZodOptional<z.ZodBoolean>;
56
+ mcpToolsets: z.ZodOptional<z.ZodBoolean>;
57
+ permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
58
+ }, z.core.$strip>;
59
+ }, z.core.$strip>>>;
49
60
  configuredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
50
61
  cursor: z.ZodOptional<z.ZodNumber>;
51
62
  }, z.core.$strip>;
@@ -97,6 +108,7 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
97
108
  codex: "codex";
98
109
  pi: "pi";
99
110
  }>>;
111
+ harnessId: z.ZodOptional<z.ZodString>;
100
112
  dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
101
113
  lane: z.ZodLiteral<"subscription">;
102
114
  runtimeId: z.ZodEnum<{
@@ -165,6 +177,7 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
165
177
  codex: "codex";
166
178
  pi: "pi";
167
179
  }>>;
180
+ harnessId: z.ZodOptional<z.ZodString>;
168
181
  dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
169
182
  lane: z.ZodLiteral<"subscription">;
170
183
  runtimeId: z.ZodEnum<{
@@ -239,6 +252,7 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
239
252
  codex: "codex";
240
253
  pi: "pi";
241
254
  }>>;
255
+ harnessId: z.ZodOptional<z.ZodString>;
242
256
  dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
243
257
  lane: z.ZodLiteral<"subscription">;
244
258
  runtimeId: z.ZodEnum<{
@@ -317,6 +331,7 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
317
331
  codex: "codex";
318
332
  pi: "pi";
319
333
  }>>;
334
+ harnessId: z.ZodOptional<z.ZodString>;
320
335
  dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
321
336
  lane: z.ZodLiteral<"subscription">;
322
337
  runtimeId: z.ZodEnum<{
@@ -435,6 +450,7 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
435
450
  codex: "codex";
436
451
  pi: "pi";
437
452
  }>>;
453
+ harnessId: z.ZodOptional<z.ZodString>;
438
454
  dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
439
455
  lane: z.ZodLiteral<"subscription">;
440
456
  runtimeId: z.ZodEnum<{
@@ -685,6 +701,7 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
685
701
  codex: "codex";
686
702
  pi: "pi";
687
703
  }>>;
704
+ harnessId: z.ZodOptional<z.ZodString>;
688
705
  capabilities: z.ZodOptional<z.ZodObject<{
689
706
  steer: z.ZodOptional<z.ZodBoolean>;
690
707
  resume: z.ZodOptional<z.ZodBoolean>;
@@ -840,6 +857,7 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
840
857
  session_ref: z.ZodOptional<z.ZodString>;
841
858
  seq: z.ZodOptional<z.ZodNumber>;
842
859
  payload: z.ZodObject<{
860
+ harnessId: z.ZodOptional<z.ZodString>;
843
861
  summary: z.ZodString;
844
862
  sessionRef: z.ZodString;
845
863
  artifactRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -878,6 +896,11 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
878
896
  session_ref: z.ZodOptional<z.ZodString>;
879
897
  seq: z.ZodOptional<z.ZodNumber>;
880
898
  payload: z.ZodObject<{
899
+ recovery: z.ZodOptional<z.ZodObject<{
900
+ kind: z.ZodLiteral<"daemon_interrupted">;
901
+ offerId: z.ZodUUID;
902
+ }, z.core.$strict>>;
903
+ harnessId: z.ZodOptional<z.ZodString>;
881
904
  reason: z.ZodString;
882
905
  retryable: z.ZodOptional<z.ZodBoolean>;
883
906
  usage: z.ZodOptional<z.ZodObject<{
@@ -908,6 +931,7 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
908
931
  session_ref: z.ZodOptional<z.ZodString>;
909
932
  seq: z.ZodOptional<z.ZodNumber>;
910
933
  payload: z.ZodObject<{
934
+ harnessId: z.ZodOptional<z.ZodString>;
911
935
  reason: z.ZodOptional<z.ZodString>;
912
936
  usage: z.ZodOptional<z.ZodObject<{
913
937
  runtime: z.ZodEnum<{
@@ -105,6 +105,7 @@ export declare const BlobDownloadUrlResponseSchema: z.ZodObject<{
105
105
  }, z.core.$strip>;
106
106
  export type BlobDownloadUrlResponse = z.infer<typeof BlobDownloadUrlResponseSchema>;
107
107
  export declare const EventsPollQuerySchema: z.ZodObject<{
108
+ afterSeq: z.ZodOptional<z.ZodNumber>;
108
109
  cursor: z.ZodOptional<z.ZodNumber>;
109
110
  }, z.core.$strip>;
110
111
  export type EventsPollQuery = z.infer<typeof EventsPollQuerySchema>;
@@ -139,6 +140,17 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
139
140
  permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
140
141
  }, z.core.$strip>>;
141
142
  }, z.core.$strip>>>;
143
+ harnesses: z.ZodOptional<z.ZodArray<z.ZodObject<{
144
+ id: z.ZodString;
145
+ version: z.ZodOptional<z.ZodString>;
146
+ capabilities: z.ZodObject<{
147
+ steer: z.ZodOptional<z.ZodBoolean>;
148
+ resume: z.ZodOptional<z.ZodBoolean>;
149
+ approvalInteractive: z.ZodOptional<z.ZodBoolean>;
150
+ mcpToolsets: z.ZodOptional<z.ZodBoolean>;
151
+ permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
152
+ }, z.core.$strip>;
153
+ }, z.core.$strip>>>;
142
154
  configuredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
143
155
  cursor: z.ZodOptional<z.ZodNumber>;
144
156
  }, z.core.$strip>;
@@ -190,6 +202,7 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
190
202
  codex: "codex";
191
203
  pi: "pi";
192
204
  }>>;
205
+ harnessId: z.ZodOptional<z.ZodString>;
193
206
  dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
194
207
  lane: z.ZodLiteral<"subscription">;
195
208
  runtimeId: z.ZodEnum<{
@@ -258,6 +271,7 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
258
271
  codex: "codex";
259
272
  pi: "pi";
260
273
  }>>;
274
+ harnessId: z.ZodOptional<z.ZodString>;
261
275
  dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
262
276
  lane: z.ZodLiteral<"subscription">;
263
277
  runtimeId: z.ZodEnum<{
@@ -332,6 +346,7 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
332
346
  codex: "codex";
333
347
  pi: "pi";
334
348
  }>>;
349
+ harnessId: z.ZodOptional<z.ZodString>;
335
350
  dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
336
351
  lane: z.ZodLiteral<"subscription">;
337
352
  runtimeId: z.ZodEnum<{
@@ -410,6 +425,7 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
410
425
  codex: "codex";
411
426
  pi: "pi";
412
427
  }>>;
428
+ harnessId: z.ZodOptional<z.ZodString>;
413
429
  dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
414
430
  lane: z.ZodLiteral<"subscription">;
415
431
  runtimeId: z.ZodEnum<{
@@ -528,6 +544,7 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
528
544
  codex: "codex";
529
545
  pi: "pi";
530
546
  }>>;
547
+ harnessId: z.ZodOptional<z.ZodString>;
531
548
  dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
532
549
  lane: z.ZodLiteral<"subscription">;
533
550
  runtimeId: z.ZodEnum<{
@@ -778,6 +795,7 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
778
795
  codex: "codex";
779
796
  pi: "pi";
780
797
  }>>;
798
+ harnessId: z.ZodOptional<z.ZodString>;
781
799
  capabilities: z.ZodOptional<z.ZodObject<{
782
800
  steer: z.ZodOptional<z.ZodBoolean>;
783
801
  resume: z.ZodOptional<z.ZodBoolean>;
@@ -933,6 +951,7 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
933
951
  session_ref: z.ZodOptional<z.ZodString>;
934
952
  seq: z.ZodOptional<z.ZodNumber>;
935
953
  payload: z.ZodObject<{
954
+ harnessId: z.ZodOptional<z.ZodString>;
936
955
  summary: z.ZodString;
937
956
  sessionRef: z.ZodString;
938
957
  artifactRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -971,6 +990,11 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
971
990
  session_ref: z.ZodOptional<z.ZodString>;
972
991
  seq: z.ZodOptional<z.ZodNumber>;
973
992
  payload: z.ZodObject<{
993
+ recovery: z.ZodOptional<z.ZodObject<{
994
+ kind: z.ZodLiteral<"daemon_interrupted">;
995
+ offerId: z.ZodUUID;
996
+ }, z.core.$strict>>;
997
+ harnessId: z.ZodOptional<z.ZodString>;
974
998
  reason: z.ZodString;
975
999
  retryable: z.ZodOptional<z.ZodBoolean>;
976
1000
  usage: z.ZodOptional<z.ZodObject<{
@@ -1001,6 +1025,7 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
1001
1025
  session_ref: z.ZodOptional<z.ZodString>;
1002
1026
  seq: z.ZodOptional<z.ZodNumber>;
1003
1027
  payload: z.ZodObject<{
1028
+ harnessId: z.ZodOptional<z.ZodString>;
1004
1029
  reason: z.ZodOptional<z.ZodString>;
1005
1030
  usage: z.ZodOptional<z.ZodObject<{
1006
1031
  runtime: z.ZodEnum<{
@@ -1243,6 +1268,17 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
1243
1268
  permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1244
1269
  }, z.core.$strip>>;
1245
1270
  }, z.core.$strip>>>;
1271
+ harnesses: z.ZodOptional<z.ZodArray<z.ZodObject<{
1272
+ id: z.ZodString;
1273
+ version: z.ZodOptional<z.ZodString>;
1274
+ capabilities: z.ZodObject<{
1275
+ steer: z.ZodOptional<z.ZodBoolean>;
1276
+ resume: z.ZodOptional<z.ZodBoolean>;
1277
+ approvalInteractive: z.ZodOptional<z.ZodBoolean>;
1278
+ mcpToolsets: z.ZodOptional<z.ZodBoolean>;
1279
+ permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1280
+ }, z.core.$strip>;
1281
+ }, z.core.$strip>>>;
1246
1282
  configuredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
1247
1283
  cursor: z.ZodOptional<z.ZodNumber>;
1248
1284
  }, z.core.$strip>;
@@ -1294,6 +1330,7 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
1294
1330
  codex: "codex";
1295
1331
  pi: "pi";
1296
1332
  }>>;
1333
+ harnessId: z.ZodOptional<z.ZodString>;
1297
1334
  dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1298
1335
  lane: z.ZodLiteral<"subscription">;
1299
1336
  runtimeId: z.ZodEnum<{
@@ -1362,6 +1399,7 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
1362
1399
  codex: "codex";
1363
1400
  pi: "pi";
1364
1401
  }>>;
1402
+ harnessId: z.ZodOptional<z.ZodString>;
1365
1403
  dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1366
1404
  lane: z.ZodLiteral<"subscription">;
1367
1405
  runtimeId: z.ZodEnum<{
@@ -1436,6 +1474,7 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
1436
1474
  codex: "codex";
1437
1475
  pi: "pi";
1438
1476
  }>>;
1477
+ harnessId: z.ZodOptional<z.ZodString>;
1439
1478
  dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1440
1479
  lane: z.ZodLiteral<"subscription">;
1441
1480
  runtimeId: z.ZodEnum<{
@@ -1514,6 +1553,7 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
1514
1553
  codex: "codex";
1515
1554
  pi: "pi";
1516
1555
  }>>;
1556
+ harnessId: z.ZodOptional<z.ZodString>;
1517
1557
  dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1518
1558
  lane: z.ZodLiteral<"subscription">;
1519
1559
  runtimeId: z.ZodEnum<{
@@ -1632,6 +1672,7 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
1632
1672
  codex: "codex";
1633
1673
  pi: "pi";
1634
1674
  }>>;
1675
+ harnessId: z.ZodOptional<z.ZodString>;
1635
1676
  dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1636
1677
  lane: z.ZodLiteral<"subscription">;
1637
1678
  runtimeId: z.ZodEnum<{
@@ -1882,6 +1923,7 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
1882
1923
  codex: "codex";
1883
1924
  pi: "pi";
1884
1925
  }>>;
1926
+ harnessId: z.ZodOptional<z.ZodString>;
1885
1927
  capabilities: z.ZodOptional<z.ZodObject<{
1886
1928
  steer: z.ZodOptional<z.ZodBoolean>;
1887
1929
  resume: z.ZodOptional<z.ZodBoolean>;
@@ -2037,6 +2079,7 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
2037
2079
  session_ref: z.ZodOptional<z.ZodString>;
2038
2080
  seq: z.ZodOptional<z.ZodNumber>;
2039
2081
  payload: z.ZodObject<{
2082
+ harnessId: z.ZodOptional<z.ZodString>;
2040
2083
  summary: z.ZodString;
2041
2084
  sessionRef: z.ZodString;
2042
2085
  artifactRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2075,6 +2118,11 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
2075
2118
  session_ref: z.ZodOptional<z.ZodString>;
2076
2119
  seq: z.ZodOptional<z.ZodNumber>;
2077
2120
  payload: z.ZodObject<{
2121
+ recovery: z.ZodOptional<z.ZodObject<{
2122
+ kind: z.ZodLiteral<"daemon_interrupted">;
2123
+ offerId: z.ZodUUID;
2124
+ }, z.core.$strict>>;
2125
+ harnessId: z.ZodOptional<z.ZodString>;
2078
2126
  reason: z.ZodString;
2079
2127
  retryable: z.ZodOptional<z.ZodBoolean>;
2080
2128
  usage: z.ZodOptional<z.ZodObject<{
@@ -2105,6 +2153,7 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
2105
2153
  session_ref: z.ZodOptional<z.ZodString>;
2106
2154
  seq: z.ZodOptional<z.ZodNumber>;
2107
2155
  payload: z.ZodObject<{
2156
+ harnessId: z.ZodOptional<z.ZodString>;
2108
2157
  reason: z.ZodOptional<z.ZodString>;
2109
2158
  usage: z.ZodOptional<z.ZodObject<{
2110
2159
  runtime: z.ZodEnum<{
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { MAILBOX_READ_AHEAD_MAX_SEQS, MAILBOX_READ_AHEAD_CAPABILITY } from './version';
1
2
  export { PROTOCOL_VERSION, CAPABILITY_FLAGS, STRICT_AGENT_ONLY_CAPABILITY } from './version';
2
3
  export type { CapabilityFlag } from './version';
3
4
  export { BlobRefSchema, CONTENT_HASH_RE } from './blob';
@@ -18,7 +19,7 @@ export { TERMINAL_PROJECTION_SELECTION_CAPABILITY, TerminalProjectionContractSch
18
19
  export type { TerminalProjectionSelection } from './terminal-projection';
19
20
  export { TASK_STATES, TASK_TRANSITIONS, canTransition } from './task-state';
20
21
  export type { TaskState } from './task-state';
21
- export { MESSAGE_TYPES, TASK_OFFER_TYPES, isTaskOfferType, MESSAGE_PAYLOAD_SCHEMAS, SERVER_TO_DAEMON_TYPES, DAEMON_TO_SERVER_TYPES, RuntimeIdSchema, ProtocolVersionNumberSchema, RuntimeInfoSchema, RuntimeCapabilitiesSchema, AgentRefSchema, AgentHomeProjectionAgentRefSchema, AGENT_REF_MAX_BYTES, DispatchSelectionSchema, ToolsetIdSchema, ConfiguredToolsetsSchema, RequiredToolsetsSchema, CONFIGURED_TOOLSETS_MAX_ITEMS, ConnHelloPayloadSchema, ConnAckPayloadSchema, TaskOfferPayloadSchema, TaskOfferWithToolsetsPayloadSchema, TaskOfferForAgentPayloadSchema, TaskOfferForAgentWithEgressPayloadSchema, TaskOfferForAgentWithEgressFreshPayloadSchema, AgentEgressReliablePayloadSchema, AgentEgressAckPayloadSchema, AgentMessagePublishPayloadSchema, AgentMessageDispositionPayloadSchema, AgentContentReadPayloadSchema, AgentContentReceiptPayloadSchema, AgentHomeProjectionPayloadSchema, 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';
22
+ 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, AgentEgressReliablePayloadSchema, AgentEgressAckPayloadSchema, AgentMessagePublishPayloadSchema, AgentMessageDispositionPayloadSchema, AgentContentReadPayloadSchema, AgentContentReceiptPayloadSchema, AgentHomeProjectionPayloadSchema, 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';
22
23
  export type { ResultDocumentCheck, MessageType, RuntimeId, RuntimeInfo, RuntimeCapabilities, AgentRef, AgentHomeProjectionAgentRef, DispatchSelection, ToolsetId, ConnHelloPayload, ConnAckPayload, TaskOfferPayload, TaskOfferWithToolsetsPayload, TaskOfferForAgentPayload, TaskOfferForAgentWithEgressPayload, TaskOfferForAgentWithEgressFreshPayload, AgentEgressReliablePayload, AgentEgressAckPayload, AgentMessagePublishPayload, AgentMessageDispositionPayload, AgentContentReadPayload, AgentContentReceiptPayload, AgentHomeProjectionPayload, TaskApprovePayload, TaskRejectPayload, TaskCancelPayload, TaskSteerPayload, TaskClaimPayload, TaskStartedPayload, TaskDeclinePayload, TaskProgressPayload, TaskArtifactPayload, TaskAwaitApprovalPayload, TaskCompletePayload, TaskFailPayload, TaskCancelledPayload, TaskApprovalResolvedPayload, TerminalInferenceUsage, } from './messages';
23
24
  export { EnvelopeSchema, isServerToDaemonType } from './envelope';
24
25
  export type { Envelope } from './envelope';
@@ -28,3 +29,5 @@ export type { CreateEnvelopeOptions } from './codec';
28
29
  export { PairRequestSchema, PairResponseTenantIdSchema, PAIR_RESPONSE_TENANT_ID_MAX_LENGTH, PairResponseSchema, ChallengeRequestSchema, ChallengeResponseSchema, TokenRequestSchema, TokenResponseSchema, PresencePublishRequestSchema, CreateBlobRequestSchema, CreateBlobResponseSchema, BlobDownloadUrlResponseSchema, EventsPollQuerySchema, EventsPollResponseSchema, MessagesSendRequestSchema, MessagesSendResponseSchema, AgentHomeProjectionCompletionRequestSchema, AgentHomeProjectionStatusSchema, AgentHomeProjectionReadbackSchema, AgentMemoryProjectionCommitRequestSchema, AgentMemoryProjectionCommitResponseSchema, MAX_MESSAGES_PER_BATCH, BYOK_PAIR_PATH, BYOK_CHALLENGE_PATH, BYOK_TOKEN_PATH, BYOK_CAPABILITIES_PATH, BYOK_EVENTS_PATH, BYOK_MESSAGES_PATH, BYOK_AGENT_HOME_PROJECTIONS_PATH, BYOK_AGENT_HOME_PROJECTION_COMPLETION_ROUTE, byokAgentHomeProjectionCompletionPath, BYOK_AGENT_MEMORY_PROJECTIONS_PATH, BYOK_PRESENCE_PATH, BYOK_ACTIVITY_PATH, BYOK_BOARD_PATH, BYOK_BOARD_STREAM_PATH, BYOK_BOARD_CLAIM_ROUTE, BYOK_BOARD_UNCLAIM_ROUTE, BYOK_BOARD_STATUS_ROUTE, BYOK_RECORDS_PATH, BYOK_RECORD_ROUTE, byokRecordPath, BYOK_SKILL_PACKS_PATH, BYOK_SKILL_PACK_FILE_ROUTE, byokSkillPackFilePath, BYOK_BLOBS_PATH, BYOK_BLOB_FINALIZE_ROUTE, BYOK_BLOB_URL_ROUTE, BYOK_BLOB_CONTENT_ROUTE, byokBlobFinalizePath, byokBlobUrlPath, byokBlobContentPath, } from './http-api';
29
30
  export type { PairRequest, PairResponse, ChallengeRequest, ChallengeResponse, TokenRequest, TokenResponse, PresencePublishRequest, CreateBlobRequest, CreateBlobResponse, BlobDownloadUrlResponse, EventsPollQuery, EventsPollResponse, MessagesSendRequest, MessagesSendResponse, AgentHomeProjectionCompletionRequest, AgentHomeProjectionStatus, AgentHomeProjectionReadback, AgentMemoryProjectionCommitRequest, AgentMemoryProjectionCommitResponse, } from './http-api';
30
31
  export type { TaskOfferType } from './messages';
32
+ export type { HarnessId, HarnessInfo } from './messages';
33
+ export { CUSTOM_HARNESS_CAPABILITY } from './version';
package/dist/index.js CHANGED
@@ -141,8 +141,11 @@ var ProviderProfileBindingSchema = z.object({
141
141
  });
142
142
 
143
143
  // src/version.ts
144
+ var MAILBOX_READ_AHEAD_MAX_SEQS = 4096;
145
+ var MAILBOX_READ_AHEAD_CAPABILITY = "mailbox-read-ahead";
144
146
  var PROTOCOL_VERSION = 1;
145
147
  var STRICT_AGENT_ONLY_CAPABILITY = "strict-agent-only";
148
+ var CUSTOM_HARNESS_CAPABILITY = "custom-harness";
146
149
  var CAPABILITY_FLAGS = [
147
150
  "steer",
148
151
  "blob-upload",
@@ -163,7 +166,9 @@ var CAPABILITY_FLAGS = [
163
166
  AGENT_CONTENT_TRANSCRIPT_READ_CAPABILITY,
164
167
  AGENT_CONTENT_ARTIFACT_READ_CAPABILITY,
165
168
  AGENT_HOME_PROJECTION_CAPABILITY,
166
- TERMINAL_PROJECTION_SELECTION_CAPABILITY
169
+ TERMINAL_PROJECTION_SELECTION_CAPABILITY,
170
+ CUSTOM_HARNESS_CAPABILITY,
171
+ MAILBOX_READ_AHEAD_CAPABILITY
167
172
  ];
168
173
  var CONTENT_HASH_RE = /^sha256:[0-9a-f]{64}$/;
169
174
  var BlobRefSchema = z.object({
@@ -279,6 +284,13 @@ var RuntimeInfoSchema = z.object({
279
284
  /** Optional: older daemons omit this entirely (pre-freeze addition). */
280
285
  capabilities: RuntimeCapabilitiesSchema.optional()
281
286
  });
287
+ var HarnessIdSchema = z.string().min(1).max(128).regex(/^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/).refine((value) => !["pi", "claude", "codex"].includes(value), "built-in runtime must use runtime");
288
+ var HarnessInfoSchema = z.object({
289
+ id: HarnessIdSchema,
290
+ version: z.string().min(1).max(128).optional(),
291
+ capabilities: RuntimeCapabilitiesSchema
292
+ });
293
+ var HarnessInventorySchema = z.array(HarnessInfoSchema).max(64).refine((values) => new Set(values.map((value) => value.id)).size === values.length, "duplicate harness identity");
282
294
  var CONFIGURED_TOOLSETS_MAX_ITEMS = 64;
283
295
  var ToolsetIdSchema = z.string().min(1).max(128).regex(/^[a-z0-9]+(?:[._-][a-z0-9]+)*$/u, "toolset ids must be lowercase logical identifiers");
284
296
  var AGENT_REF_MAX_BYTES = 160;
@@ -318,6 +330,7 @@ var ConnHelloPayloadSchema = z.object({
318
330
  clientVersion: z.string().min(1).max(128).optional(),
319
331
  /** Runtimes detected on this device (M1 gap #4; replaces `agents`). */
320
332
  runtimes: z.array(RuntimeInfoSchema).optional(),
333
+ harnesses: HarnessInventorySchema.optional(),
321
334
  /** Validated logical IDs configured on this device; definitions and secrets stay local. */
322
335
  configuredToolsets: ConfiguredToolsetsSchema.optional(),
323
336
  /**
@@ -358,6 +371,7 @@ var TaskOfferPayloadSchema = z.object({
358
371
  instruction: z.union([z.string(), InstructionBlobRefSchema]),
359
372
  policy: PermissionPolicySchema,
360
373
  runtime: RuntimeIdSchema.optional(),
374
+ harnessId: HarnessIdSchema.optional(),
361
375
  dispatchSelection: DispatchSelectionSchema.optional(),
362
376
  sessionRef: z.string().optional(),
363
377
  workspaceHint: z.string().optional(),
@@ -376,6 +390,7 @@ var TaskOfferForAgentPayloadSchema = z.object({
376
390
  agentRef: AgentRefSchema,
377
391
  requiredToolsets: RequiredToolsetsSchema.optional(),
378
392
  runtime: RuntimeIdSchema.optional(),
393
+ harnessId: HarnessIdSchema.optional(),
379
394
  dispatchSelection: DispatchSelectionSchema.optional(),
380
395
  terminalProjection: TerminalProjectionSelectionSchema.optional(),
381
396
  sessionRef: z.string().optional(),
@@ -544,6 +559,7 @@ var TaskClaimPayloadSchema = z.object({
544
559
  agentId: z.string().optional(),
545
560
  agentRef: AgentRefSchema.optional(),
546
561
  runtime: RuntimeIdSchema.optional(),
562
+ harnessId: HarnessIdSchema.optional(),
547
563
  capabilities: RuntimeCapabilitiesSchema.optional()
548
564
  });
549
565
  var TaskStartedPayloadSchema = z.object({});
@@ -643,6 +659,7 @@ var TerminalInferenceUsageSchema = z.object({
643
659
  reportedAt: TerminalInferenceReportedAtSchema
644
660
  });
645
661
  var TaskCompletePayloadSchema = z.object({
662
+ harnessId: HarnessIdSchema.optional(),
646
663
  summary: z.string(),
647
664
  sessionRef: z.string(),
648
665
  artifactRefs: z.array(BlobRefSchema).optional(),
@@ -653,12 +670,16 @@ var TaskCompletePayloadSchema = z.object({
653
670
  agentRef: AgentRefSchema.optional()
654
671
  });
655
672
  var TaskFailPayloadSchema = z.object({
673
+ /** Local interruption observation bound to the immutable offer; does not assert a cloud claim. */
674
+ recovery: z.object({ kind: z.literal("daemon_interrupted"), offerId: z.uuid() }).strict().optional(),
675
+ harnessId: HarnessIdSchema.optional(),
656
676
  reason: z.string(),
657
677
  retryable: z.boolean().optional(),
658
678
  usage: TerminalInferenceUsageSchema.optional(),
659
679
  agentRef: AgentRefSchema.optional()
660
680
  });
661
681
  var TaskCancelledPayloadSchema = z.object({
682
+ harnessId: HarnessIdSchema.optional(),
662
683
  reason: z.string().optional(),
663
684
  usage: TerminalInferenceUsageSchema.optional(),
664
685
  agentRef: AgentRefSchema.optional()
@@ -842,7 +863,11 @@ var REQUIRED_SEQ = z.number().int();
842
863
  var OPTIONAL_SEQ = REQUIRED_SEQ.optional();
843
864
  function envelopeShape(type, taskId, seq) {
844
865
  return z.object({
845
- v: z.number().int(),
866
+ // A known payload shape does not authorize interpreting another wire major
867
+ // as v1. Keep the public number type and all supported v1 bytes unchanged.
868
+ v: z.number().int().refine((version) => version === PROTOCOL_VERSION, {
869
+ message: "unsupported protocol version"
870
+ }),
846
871
  id: z.uuid(),
847
872
  ts: z.iso.datetime({ offset: true }),
848
873
  type: z.literal(type),
@@ -1052,7 +1077,9 @@ var BlobDownloadUrlResponseSchema = z.object({
1052
1077
  downloadUrl: z.string()
1053
1078
  });
1054
1079
  var EventsPollQuerySchema = z.object({
1055
- /** Last `seq` this client has seen; omitted on a client's first-ever poll. Never negative — `seq` is a monotonically increasing counter starting at 1. */
1080
+ /** Volatile navigation within the advertised read-ahead window; never acknowledges work. */
1081
+ afterSeq: z.number().int().nonnegative().optional(),
1082
+ /** Last reliably processed seq; the only acknowledgement. Omitted on the first poll. */
1056
1083
  cursor: z.number().int().nonnegative().optional()
1057
1084
  });
1058
1085
  var EventsPollResponseSchema = z.object({
@@ -1141,6 +1168,6 @@ function byokBlobContentPath(blobId) {
1141
1168
  return `/byok/blobs/${blobId}/content`;
1142
1169
  }
1143
1170
 
1144
- 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_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, 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_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, ChallengeRequestSchema, ChallengeResponseSchema, ConfiguredToolsetsSchema, ConnAckPayloadSchema, ConnHelloPayloadSchema, ContentReadPolicySchema, CreateBlobRequestSchema, CreateBlobResponseSchema, DAEMON_TO_SERVER_TYPES, DispatchSelectionSchema, EnvelopeParseError, EnvelopeSchema, EnvelopeValidationError, EventsPollQuerySchema, EventsPollResponseSchema, KNOWN_AGENT_EVENT_TYPES, 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, TaskOfferWithToolsetsPayloadSchema, TaskProgressPayloadSchema, TaskRejectPayloadSchema, TaskStartedPayloadSchema, TaskSteerPayloadSchema, TerminalInferenceUsageSchema, TerminalProjectionContractSchema, TerminalProjectionSelectionSchema, TokenRequestSchema, TokenResponseSchema, ToolsetIdSchema, UnknownAgentEventSchema, UnknownMessageTypeError, agentMemoryProjectionBase64UrlByteLength, byokAgentHomeProjectionCompletionPath, byokBlobContentPath, byokBlobFinalizePath, byokBlobUrlPath, byokRecordPath, byokSkillPackFilePath, canTransition, checkResultDocument, createEnvelope, decodeEnvelope, encodeEnvelope, isKnownAgentEvent, isServerToDaemonType, isTaskOfferType, parseMessage, partitionAgentEvents };
1171
+ 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_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, 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_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, HarnessIdSchema, HarnessInfoSchema, HarnessInventorySchema, 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, TaskOfferWithToolsetsPayloadSchema, TaskProgressPayloadSchema, TaskRejectPayloadSchema, TaskStartedPayloadSchema, TaskSteerPayloadSchema, TerminalInferenceUsageSchema, TerminalProjectionContractSchema, TerminalProjectionSelectionSchema, TokenRequestSchema, TokenResponseSchema, ToolsetIdSchema, UnknownAgentEventSchema, UnknownMessageTypeError, agentMemoryProjectionBase64UrlByteLength, byokAgentHomeProjectionCompletionPath, byokBlobContentPath, byokBlobFinalizePath, byokBlobUrlPath, byokRecordPath, byokSkillPackFilePath, canTransition, checkResultDocument, createEnvelope, decodeEnvelope, encodeEnvelope, isKnownAgentEvent, isServerToDaemonType, isTaskOfferType, parseMessage, partitionAgentEvents };
1145
1172
  //# sourceMappingURL=index.js.map
1146
1173
  //# sourceMappingURL=index.js.map