@byok-sdk/protocol 0.13.0 → 0.15.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/agent-event.d.ts +126 -0
- package/dist/envelope.d.ts +58 -0
- package/dist/http-api.d.ts +117 -0
- package/dist/index.d.ts +7 -3
- package/dist/index.js +68 -10
- package/dist/index.js.map +1 -1
- package/dist/messages.d.ts +704 -139
- package/dist/version.d.ts +5 -1
- package/package.json +1 -1
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({
|
|
@@ -181,20 +186,42 @@ var PermissionPolicySchema = z.object({
|
|
|
181
186
|
workspaceRoot: z.string().optional(),
|
|
182
187
|
network: z.boolean().optional()
|
|
183
188
|
}).strict();
|
|
189
|
+
var AGENT_EVENT_SPILL_UNSTORED_REASON_MAX_LENGTH = 512;
|
|
190
|
+
var AgentEventSpillSchema = z.object({
|
|
191
|
+
/** Which field of the event was replaced by a preview. */
|
|
192
|
+
field: z.enum(["input", "output"]),
|
|
193
|
+
/** UTF-8 byte length of the full `JSON.stringify(<field>)` that was spilled. */
|
|
194
|
+
totalBytes: z.number().int().nonnegative(),
|
|
195
|
+
/** `totalBytes` minus the UTF-8 bytes of the retained preview head + tail. */
|
|
196
|
+
omittedBytes: z.number().int().nonnegative(),
|
|
197
|
+
/** Always the JSON serialization of the field — never the tool's own notion of a content type. */
|
|
198
|
+
contentType: z.literal("application/json"),
|
|
199
|
+
/** Where the omitted bytes are readable. Mutually exclusive with `unstoredReason`. */
|
|
200
|
+
blob: BlobRefSchema.optional(),
|
|
201
|
+
/** Why the omitted bytes are NOT readable. Mutually exclusive with `blob`. */
|
|
202
|
+
unstoredReason: z.string().min(1).max(AGENT_EVENT_SPILL_UNSTORED_REASON_MAX_LENGTH).optional()
|
|
203
|
+
}).strict().refine(
|
|
204
|
+
(spill) => spill.blob === void 0 !== (spill.unstoredReason === void 0),
|
|
205
|
+
"spill must carry exactly one of blob (the omitted bytes are readable) or unstoredReason (they are not)"
|
|
206
|
+
);
|
|
184
207
|
var AgentEventSchema = z.discriminatedUnion("type", [
|
|
185
208
|
z.object({ type: z.literal("progress"), text: z.string() }),
|
|
186
209
|
z.object({
|
|
187
210
|
type: z.literal("tool_use"),
|
|
188
211
|
tool: z.string(),
|
|
189
212
|
input: z.unknown().optional(),
|
|
190
|
-
toolCallId: z.string().regex(/\S/, "toolCallId must contain a non-whitespace character").optional()
|
|
213
|
+
toolCallId: z.string().regex(/\S/, "toolCallId must contain a non-whitespace character").optional(),
|
|
214
|
+
/** Present only when `input` is a preview of a spilled value — see {@link AgentEventSpillSchema}. */
|
|
215
|
+
spill: AgentEventSpillSchema.optional()
|
|
191
216
|
}),
|
|
192
217
|
z.object({
|
|
193
218
|
type: z.literal("tool_result"),
|
|
194
219
|
tool: z.string(),
|
|
195
220
|
output: z.unknown().optional(),
|
|
196
221
|
toolCallId: z.string().regex(/\S/, "toolCallId must contain a non-whitespace character").optional(),
|
|
197
|
-
isError: z.boolean().optional()
|
|
222
|
+
isError: z.boolean().optional(),
|
|
223
|
+
/** Present only when `output` is a preview of a spilled value — see {@link AgentEventSpillSchema}. */
|
|
224
|
+
spill: AgentEventSpillSchema.optional()
|
|
198
225
|
}),
|
|
199
226
|
z.object({ type: z.literal("artifact"), name: z.string(), contentType: z.string() }),
|
|
200
227
|
z.object({ type: z.literal("needs_approval"), summary: z.string() }),
|
|
@@ -257,6 +284,13 @@ var RuntimeInfoSchema = z.object({
|
|
|
257
284
|
/** Optional: older daemons omit this entirely (pre-freeze addition). */
|
|
258
285
|
capabilities: RuntimeCapabilitiesSchema.optional()
|
|
259
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");
|
|
260
294
|
var CONFIGURED_TOOLSETS_MAX_ITEMS = 64;
|
|
261
295
|
var ToolsetIdSchema = z.string().min(1).max(128).regex(/^[a-z0-9]+(?:[._-][a-z0-9]+)*$/u, "toolset ids must be lowercase logical identifiers");
|
|
262
296
|
var AGENT_REF_MAX_BYTES = 160;
|
|
@@ -296,6 +330,7 @@ var ConnHelloPayloadSchema = z.object({
|
|
|
296
330
|
clientVersion: z.string().min(1).max(128).optional(),
|
|
297
331
|
/** Runtimes detected on this device (M1 gap #4; replaces `agents`). */
|
|
298
332
|
runtimes: z.array(RuntimeInfoSchema).optional(),
|
|
333
|
+
harnesses: HarnessInventorySchema.optional(),
|
|
299
334
|
/** Validated logical IDs configured on this device; definitions and secrets stay local. */
|
|
300
335
|
configuredToolsets: ConfiguredToolsetsSchema.optional(),
|
|
301
336
|
/**
|
|
@@ -336,6 +371,7 @@ var TaskOfferPayloadSchema = z.object({
|
|
|
336
371
|
instruction: z.union([z.string(), InstructionBlobRefSchema]),
|
|
337
372
|
policy: PermissionPolicySchema,
|
|
338
373
|
runtime: RuntimeIdSchema.optional(),
|
|
374
|
+
harnessId: HarnessIdSchema.optional(),
|
|
339
375
|
dispatchSelection: DispatchSelectionSchema.optional(),
|
|
340
376
|
sessionRef: z.string().optional(),
|
|
341
377
|
workspaceHint: z.string().optional(),
|
|
@@ -354,6 +390,7 @@ var TaskOfferForAgentPayloadSchema = z.object({
|
|
|
354
390
|
agentRef: AgentRefSchema,
|
|
355
391
|
requiredToolsets: RequiredToolsetsSchema.optional(),
|
|
356
392
|
runtime: RuntimeIdSchema.optional(),
|
|
393
|
+
harnessId: HarnessIdSchema.optional(),
|
|
357
394
|
dispatchSelection: DispatchSelectionSchema.optional(),
|
|
358
395
|
terminalProjection: TerminalProjectionSelectionSchema.optional(),
|
|
359
396
|
sessionRef: z.string().optional(),
|
|
@@ -522,6 +559,7 @@ var TaskClaimPayloadSchema = z.object({
|
|
|
522
559
|
agentId: z.string().optional(),
|
|
523
560
|
agentRef: AgentRefSchema.optional(),
|
|
524
561
|
runtime: RuntimeIdSchema.optional(),
|
|
562
|
+
harnessId: HarnessIdSchema.optional(),
|
|
525
563
|
capabilities: RuntimeCapabilitiesSchema.optional()
|
|
526
564
|
});
|
|
527
565
|
var TaskStartedPayloadSchema = z.object({});
|
|
@@ -621,6 +659,7 @@ var TerminalInferenceUsageSchema = z.object({
|
|
|
621
659
|
reportedAt: TerminalInferenceReportedAtSchema
|
|
622
660
|
});
|
|
623
661
|
var TaskCompletePayloadSchema = z.object({
|
|
662
|
+
harnessId: HarnessIdSchema.optional(),
|
|
624
663
|
summary: z.string(),
|
|
625
664
|
sessionRef: z.string(),
|
|
626
665
|
artifactRefs: z.array(BlobRefSchema).optional(),
|
|
@@ -631,12 +670,16 @@ var TaskCompletePayloadSchema = z.object({
|
|
|
631
670
|
agentRef: AgentRefSchema.optional()
|
|
632
671
|
});
|
|
633
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(),
|
|
634
676
|
reason: z.string(),
|
|
635
677
|
retryable: z.boolean().optional(),
|
|
636
678
|
usage: TerminalInferenceUsageSchema.optional(),
|
|
637
679
|
agentRef: AgentRefSchema.optional()
|
|
638
680
|
});
|
|
639
681
|
var TaskCancelledPayloadSchema = z.object({
|
|
682
|
+
harnessId: HarnessIdSchema.optional(),
|
|
640
683
|
reason: z.string().optional(),
|
|
641
684
|
usage: TerminalInferenceUsageSchema.optional(),
|
|
642
685
|
agentRef: AgentRefSchema.optional()
|
|
@@ -647,14 +690,23 @@ var TaskApprovalResolvedPayloadSchema = z.object({
|
|
|
647
690
|
resolvedBy: z.enum(["local"]),
|
|
648
691
|
at: z.iso.datetime({ offset: true })
|
|
649
692
|
});
|
|
650
|
-
var
|
|
651
|
-
"conn.hello": ConnHelloPayloadSchema,
|
|
652
|
-
"conn.ack": ConnAckPayloadSchema,
|
|
693
|
+
var TASK_OFFER_PAYLOAD_SCHEMAS = {
|
|
653
694
|
"task.offer": TaskOfferPayloadSchema,
|
|
654
695
|
"task.offer_with_toolsets": TaskOfferWithToolsetsPayloadSchema,
|
|
655
696
|
"task.offer_for_agent": TaskOfferForAgentPayloadSchema,
|
|
656
697
|
"task.offer_for_agent_with_egress": TaskOfferForAgentWithEgressPayloadSchema,
|
|
657
|
-
"task.offer_for_agent_with_egress_fresh": TaskOfferForAgentWithEgressFreshPayloadSchema
|
|
698
|
+
"task.offer_for_agent_with_egress_fresh": TaskOfferForAgentWithEgressFreshPayloadSchema
|
|
699
|
+
};
|
|
700
|
+
var TASK_OFFER_TYPES = Object.freeze(
|
|
701
|
+
Object.keys(TASK_OFFER_PAYLOAD_SCHEMAS)
|
|
702
|
+
);
|
|
703
|
+
function isTaskOfferType(type) {
|
|
704
|
+
return Object.hasOwn(TASK_OFFER_PAYLOAD_SCHEMAS, type);
|
|
705
|
+
}
|
|
706
|
+
var MESSAGE_PAYLOAD_SCHEMAS = {
|
|
707
|
+
"conn.hello": ConnHelloPayloadSchema,
|
|
708
|
+
"conn.ack": ConnAckPayloadSchema,
|
|
709
|
+
...TASK_OFFER_PAYLOAD_SCHEMAS,
|
|
658
710
|
"agent.egress.reliable": AgentEgressReliablePayloadSchema,
|
|
659
711
|
"agent.egress.ack": AgentEgressAckPayloadSchema,
|
|
660
712
|
"agent.message.publish": AgentMessagePublishPayloadSchema,
|
|
@@ -811,7 +863,11 @@ var REQUIRED_SEQ = z.number().int();
|
|
|
811
863
|
var OPTIONAL_SEQ = REQUIRED_SEQ.optional();
|
|
812
864
|
function envelopeShape(type, taskId, seq) {
|
|
813
865
|
return z.object({
|
|
814
|
-
|
|
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
|
+
}),
|
|
815
871
|
id: z.uuid(),
|
|
816
872
|
ts: z.iso.datetime({ offset: true }),
|
|
817
873
|
type: z.literal(type),
|
|
@@ -1021,7 +1077,9 @@ var BlobDownloadUrlResponseSchema = z.object({
|
|
|
1021
1077
|
downloadUrl: z.string()
|
|
1022
1078
|
});
|
|
1023
1079
|
var EventsPollQuerySchema = z.object({
|
|
1024
|
-
/**
|
|
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. */
|
|
1025
1083
|
cursor: z.number().int().nonnegative().optional()
|
|
1026
1084
|
});
|
|
1027
1085
|
var EventsPollResponseSchema = z.object({
|
|
@@ -1110,6 +1168,6 @@ function byokBlobContentPath(blobId) {
|
|
|
1110
1168
|
return `/byok/blobs/${blobId}/content`;
|
|
1111
1169
|
}
|
|
1112
1170
|
|
|
1113
|
-
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_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, 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_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, 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 };
|
|
1114
1172
|
//# sourceMappingURL=index.js.map
|
|
1115
1173
|
//# sourceMappingURL=index.js.map
|