@byok-sdk/protocol 0.23.0 → 0.25.0-rc.1
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/README.md +1 -1
- package/dist/agent-egress.d.ts +13 -16
- package/dist/agent-event.d.ts +13 -1
- package/dist/agent-memory-intent.d.ts +717 -0
- package/dist/codec.d.ts +4 -0
- package/dist/envelope.d.ts +27 -99
- package/dist/http-api.d.ts +56 -218
- package/dist/index.d.ts +6 -6
- package/dist/index.js +223 -97
- package/dist/index.js.map +1 -1
- package/dist/input-preparation.d.ts +15 -64
- package/dist/messages.d.ts +58 -314
- package/dist/version.d.ts +20 -11
- package/package.json +2 -2
- package/dist/permission.d.ts +0 -39
package/dist/index.js
CHANGED
|
@@ -30,18 +30,11 @@ var ContentReadPolicySchema = z.object({
|
|
|
30
30
|
maxBytes: POSITIVE_LIMIT,
|
|
31
31
|
allowedMimeTypes: z.array(AgentContentMimeTypeSchema).min(1).max(32)
|
|
32
32
|
}).strict();
|
|
33
|
-
var AgentEgressActivityPolicySchema = z.
|
|
34
|
-
z.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
z.object({
|
|
39
|
-
mode: z.literal("contentful-trajectory"),
|
|
40
|
-
delivery: z.literal("latest-value"),
|
|
41
|
-
maxCoalesceMs: POSITIVE_LIMIT,
|
|
42
|
-
maxEventBytes: POSITIVE_LIMIT
|
|
43
|
-
}).strict()
|
|
44
|
-
]);
|
|
33
|
+
var AgentEgressActivityPolicySchema = z.object({
|
|
34
|
+
delivery: z.literal("latest-value"),
|
|
35
|
+
maxCoalesceMs: POSITIVE_LIMIT,
|
|
36
|
+
maxEventBytes: POSITIVE_LIMIT
|
|
37
|
+
}).strict();
|
|
45
38
|
var AgentReliableQuotaPolicySchema = z.object({
|
|
46
39
|
maxPendingEventsPerAgent: POSITIVE_LIMIT,
|
|
47
40
|
maxPendingBytesPerAgent: POSITIVE_LIMIT,
|
|
@@ -61,7 +54,6 @@ var AgentEgressLaneSchema = z.enum(["reliable", "latest-value"]);
|
|
|
61
54
|
var AgentEgressDropReasonSchema = z.enum([
|
|
62
55
|
"policy_denied",
|
|
63
56
|
"capability_missing",
|
|
64
|
-
"sanitizer_rejected",
|
|
65
57
|
"quota_exceeded",
|
|
66
58
|
"backpressure",
|
|
67
59
|
"coalesced",
|
|
@@ -113,24 +105,13 @@ var AgentHomeProjectionValueSchema = z.json().refine(
|
|
|
113
105
|
(value) => new TextEncoder().encode(JSON.stringify(value)).byteLength <= AGENT_HOME_PROJECTION_MAX_BYTES,
|
|
114
106
|
`projection must not exceed ${AGENT_HOME_PROJECTION_MAX_BYTES} UTF-8 JSON bytes`
|
|
115
107
|
);
|
|
116
|
-
var
|
|
117
|
-
var PermissionPolicySchema = z.object({
|
|
118
|
-
mode: z.enum(PERMISSION_MODES),
|
|
119
|
-
allowTools: z.array(z.string()).optional(),
|
|
120
|
-
denyTools: z.array(z.string()).optional(),
|
|
121
|
-
workspaceRoot: z.string().optional(),
|
|
122
|
-
network: z.boolean().optional()
|
|
123
|
-
}).strict();
|
|
124
|
-
|
|
125
|
-
// src/input-preparation.ts
|
|
126
|
-
var INPUT_PREPARATION_WIRE_VERSION = 8;
|
|
108
|
+
var INPUT_PREPARATION_WIRE_VERSION = 9;
|
|
127
109
|
var AGENT_INPUT_PREPARATION_CAPABILITY = `agent-input-preparation-v${INPUT_PREPARATION_WIRE_VERSION}`;
|
|
128
110
|
var InputPreparationContentHashSchema = AgentEgressContentHashSchema;
|
|
129
111
|
var OPAQUE_ID = z.string().min(1).max(512).regex(/^[^\u0000-\u001f\u007f]+$/u, "control identifiers must not contain control characters");
|
|
130
112
|
var OPAQUE_TEXT = z.string().min(1).max(2048).regex(/^[^\u0000-\u001f\u007f]+$/u, "control text must not contain control characters");
|
|
131
113
|
var InputPreparationPolicyRevisionSchema = OPAQUE_ID;
|
|
132
114
|
var InputPreparationProfileIdSchema = OPAQUE_ID;
|
|
133
|
-
var InputPreparationPermissionModeSchema = z.enum(PERMISSION_MODES);
|
|
134
115
|
var PreparedAgentMemoryModeSchema = z.enum(["none", "read", "read-write"]);
|
|
135
116
|
var InputPreparationSourceSchema = z.object({ revision: OPAQUE_ID, digest: OPAQUE_ID }).strict();
|
|
136
117
|
var InputPreparationModelCostSchema = z.object({
|
|
@@ -245,7 +226,6 @@ var InputPreparationReadinessReasonSchema = z.enum([
|
|
|
245
226
|
"accounting_policy_missing",
|
|
246
227
|
/** The named policy was ruled for a different runtime, endpoint or model. */
|
|
247
228
|
"accounting_policy_inapplicable",
|
|
248
|
-
"executor_identity_unproven",
|
|
249
229
|
/**
|
|
250
230
|
* The record was prepared against a runtime contract this build no longer
|
|
251
231
|
* speaks: its binding declares a prepared-compiler version other than the one
|
|
@@ -298,7 +278,6 @@ var InputPreparationCounterEvidenceSchema = z.object({
|
|
|
298
278
|
calledAt: z.iso.datetime({ offset: true }),
|
|
299
279
|
completedAt: z.iso.datetime({ offset: true })
|
|
300
280
|
}).strict();
|
|
301
|
-
var InputPreparationToolImplementationKindSchema = z.string().regex(/^(?:attested|unavailable:[a-z_]{1,64})$/u, 'a tool implementation kind is "attested" or "unavailable:<reason>"');
|
|
302
281
|
var InputPreparationResidualValueClassSchema = z.enum([
|
|
303
282
|
"constant",
|
|
304
283
|
"boolean",
|
|
@@ -331,7 +310,7 @@ var InputPreparationArtifactSummarySchema = z.object({
|
|
|
331
310
|
residual: z.array(InputPreparationResidualKeySchema).max(64),
|
|
332
311
|
observationDigest: OPAQUE_ID,
|
|
333
312
|
toolBindingDigest: OPAQUE_ID,
|
|
334
|
-
|
|
313
|
+
toolNames: z.array(OPAQUE_ID)
|
|
335
314
|
}).strict();
|
|
336
315
|
var InputPreparationBindingSchema = z.object({
|
|
337
316
|
agentMemory: PreparedAgentMemoryModeSchema,
|
|
@@ -343,14 +322,6 @@ var InputPreparationBindingSchema = z.object({
|
|
|
343
322
|
source: InputPreparationSourceSchema,
|
|
344
323
|
target: InputPreparationCounterTargetSchema,
|
|
345
324
|
policyRevision: OPAQUE_ID,
|
|
346
|
-
/**
|
|
347
|
-
* The mode the counted manifest was filtered for. Recorded on the binding
|
|
348
|
-
* rather than only inside the request digest so a consumer can COMPARE it
|
|
349
|
-
* without re-deriving the digest: an Execution offered under a different
|
|
350
|
-
* mode is an Execution whose registered tool set differs from the one
|
|
351
|
-
* these tokens were counted for.
|
|
352
|
-
*/
|
|
353
|
-
permissionMode: InputPreparationPermissionModeSchema,
|
|
354
325
|
runtime: InputPreparationRuntimeIdentitySchema,
|
|
355
326
|
requestDigest: OPAQUE_ID,
|
|
356
327
|
/**
|
|
@@ -406,31 +377,14 @@ var InputPreparationRejectionReasonSchema = z.enum([
|
|
|
406
377
|
"context_hash_mismatch",
|
|
407
378
|
"toolsets_unobservable",
|
|
408
379
|
"deadline_elapsed",
|
|
409
|
-
/**
|
|
410
|
-
* The device could not prove a non-writable launch directory (or a trusted
|
|
411
|
-
* launcher) for the MCP toolset servers this preparation names, so it
|
|
412
|
-
* refused rather than observing them in a directory the agent's own uid can
|
|
413
|
-
* write. The specific `TrustedLaunchCwdUnavailableReason` travels in the
|
|
414
|
-
* receipt's `detail`; it is not widened into a spawn.
|
|
415
|
-
*/
|
|
416
|
-
"launch_boundary_unavailable",
|
|
417
380
|
/**
|
|
418
381
|
* A repeat of an already-recorded `requestId` arrived after the facts its
|
|
419
382
|
* executor fingerprints were frozen against changed — a toolset definition
|
|
420
|
-
* revision
|
|
421
|
-
* longer measures the same. The recorded receipt is not re-derived and no
|
|
383
|
+
* revision or a configured server argv. The recorded receipt is not re-derived and no
|
|
422
384
|
* server is re-probed; the repeat is refused so the caller mints a new
|
|
423
385
|
* preparation instead of silently receiving one bound to stale evidence.
|
|
424
386
|
*/
|
|
425
387
|
"observation_drift",
|
|
426
|
-
/**
|
|
427
|
-
* The declared `permissionMode` is not one this device admits: it exceeds
|
|
428
|
-
* the operator's configured ceiling. The requester's declaration is INTENT,
|
|
429
|
-
* not authorization — it goes through the same merge that admits a task
|
|
430
|
-
* offer's `policy.mode` — and an unadmitted mode refuses rather than being
|
|
431
|
-
* silently narrowed to one the device would allow.
|
|
432
|
-
*/
|
|
433
|
-
"permission_mode_denied",
|
|
434
388
|
/**
|
|
435
389
|
* The device compiled the input, then found that the `prompt_prepared` frame
|
|
436
390
|
* the runtime would have to be handed exceeds the single-frame byte cap that
|
|
@@ -614,40 +568,6 @@ var ProviderProvisioningReadbackSchema = z.object({
|
|
|
614
568
|
});
|
|
615
569
|
}
|
|
616
570
|
});
|
|
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
571
|
var CONTENT_HASH_RE = /^sha256:[0-9a-f]{64}$/;
|
|
652
572
|
var BlobRefSchema = z.object({
|
|
653
573
|
blobId: z.string(),
|
|
@@ -709,7 +629,11 @@ var AgentEventSchema = z.discriminatedUnion("type", [
|
|
|
709
629
|
cachedInputTokens: z.number().int().nonnegative().optional(),
|
|
710
630
|
outputTokens: z.number().int().nonnegative().optional(),
|
|
711
631
|
reasoningTokens: z.number().int().nonnegative().optional(),
|
|
712
|
-
totalTokens: z.number().int().nonnegative().optional()
|
|
632
|
+
totalTokens: z.number().int().nonnegative().optional(),
|
|
633
|
+
// Context occupancy is independent of provider cost counters. Unknown stays absent.
|
|
634
|
+
contextTokens: z.number().int().nonnegative().optional(),
|
|
635
|
+
contextWindow: z.number().int().positive().optional(),
|
|
636
|
+
contextSource: z.enum(["provider", "estimate"]).optional()
|
|
713
637
|
})
|
|
714
638
|
]);
|
|
715
639
|
var KNOWN_AGENT_EVENT_TYPES = z.toJSONSchema(AgentEventSchema).oneOf.map((branch) => branch.properties.type.const);
|
|
@@ -733,6 +657,8 @@ function partitionAgentEvents(events) {
|
|
|
733
657
|
}
|
|
734
658
|
return { known, unknown };
|
|
735
659
|
}
|
|
660
|
+
|
|
661
|
+
// src/messages.ts
|
|
736
662
|
var MAX_INLINE_BYTES = 64 * 1024;
|
|
737
663
|
function isWithinInlineByteLimit(value) {
|
|
738
664
|
return new TextEncoder().encode(value).length <= MAX_INLINE_BYTES;
|
|
@@ -744,8 +670,7 @@ var RuntimeCapabilitiesSchema = z.object({
|
|
|
744
670
|
resume: z.boolean().optional(),
|
|
745
671
|
approvalInteractive: z.boolean().optional(),
|
|
746
672
|
/** Whether this runtime can project a locally configured MCP toolset into one task. */
|
|
747
|
-
mcpToolsets: z.boolean().optional()
|
|
748
|
-
permissionModes: z.array(z.string()).optional()
|
|
673
|
+
mcpToolsets: z.boolean().optional()
|
|
749
674
|
});
|
|
750
675
|
var RuntimeInfoSchema = z.object({
|
|
751
676
|
id: RuntimeIdSchema,
|
|
@@ -839,7 +764,6 @@ var DispatchSelectionSchema = z.discriminatedUnion("lane", [
|
|
|
839
764
|
]);
|
|
840
765
|
var TaskOfferPayloadSchema = z.object({
|
|
841
766
|
instruction: z.union([z.string(), InstructionBlobRefSchema]),
|
|
842
|
-
policy: PermissionPolicySchema,
|
|
843
767
|
runtime: RuntimeIdSchema.optional(),
|
|
844
768
|
harnessId: HarnessIdSchema.optional(),
|
|
845
769
|
dispatchSelection: DispatchSelectionSchema.optional(),
|
|
@@ -856,7 +780,6 @@ var TaskOfferWithToolsetsPayloadSchema = TaskOfferPayloadSchema.extend({
|
|
|
856
780
|
}).strict();
|
|
857
781
|
var TaskOfferForAgentPayloadSchema = z.object({
|
|
858
782
|
instruction: z.union([z.string(), InstructionBlobRefSchema]),
|
|
859
|
-
policy: PermissionPolicySchema,
|
|
860
783
|
agentRef: AgentRefSchema,
|
|
861
784
|
requiredToolsets: RequiredToolsetsSchema.optional(),
|
|
862
785
|
runtime: RuntimeIdSchema.optional(),
|
|
@@ -891,7 +814,7 @@ var TaskOfferPreparedPayloadSchema = TaskOfferForAgentPayloadSchema.omit({
|
|
|
891
814
|
}).strict();
|
|
892
815
|
var EGRESS_SAFE_VALUE = z.json().refine(
|
|
893
816
|
(value) => new TextEncoder().encode(JSON.stringify(value)).byteLength <= 256 * 1024,
|
|
894
|
-
"
|
|
817
|
+
"egress payload exceeds 256KiB"
|
|
895
818
|
);
|
|
896
819
|
var EGRESS_SESSION_REF = z.string().min(1).max(512);
|
|
897
820
|
var AgentEgressReliablePayloadSchema = z.object({
|
|
@@ -1020,6 +943,10 @@ var AgentHomeProjectionPayloadSchema = z.object({
|
|
|
1020
943
|
projectionHash: AgentHomeProjectionHashSchema,
|
|
1021
944
|
projection: AgentHomeProjectionValueSchema
|
|
1022
945
|
}).strict();
|
|
946
|
+
var AgentMemoryIntentAvailablePayloadSchema = z.object({
|
|
947
|
+
intentId: z.uuid(),
|
|
948
|
+
agentRef: AgentHomeProjectionAgentRefSchema
|
|
949
|
+
}).strict();
|
|
1023
950
|
var InputPreparationInlineContextSchema = z.object({
|
|
1024
951
|
inline: z.string().refine(isWithinInlineByteLimit, `inline context must not exceed ${MAX_INLINE_BYTES} UTF-8 bytes`)
|
|
1025
952
|
}).strict();
|
|
@@ -1043,7 +970,6 @@ var AgentInputPreparationPayloadSchema = z.object({
|
|
|
1043
970
|
deadlineAt: z.iso.datetime({ offset: true }),
|
|
1044
971
|
context: z.union([InputPreparationInlineContextSchema, InputPreparationBlobContextSchema]),
|
|
1045
972
|
requiredToolsets: z.array(ToolsetIdSchema).max(16).superRefine((ids, ctx) => rejectDuplicateToolsets(ids, ctx, "required")),
|
|
1046
|
-
permissionMode: InputPreparationPermissionModeSchema,
|
|
1047
973
|
/**
|
|
1048
974
|
* The Host's accounting ruling for this preparation, carried verbatim onto
|
|
1049
975
|
* the receipt's binding. Optional and defaulted NOWHERE: a payload that
|
|
@@ -1240,6 +1166,7 @@ var MESSAGE_PAYLOAD_SCHEMAS = {
|
|
|
1240
1166
|
"agent.home.projection": AgentHomeProjectionPayloadSchema,
|
|
1241
1167
|
"agent.input.preparation": AgentInputPreparationPayloadSchema,
|
|
1242
1168
|
"provider.provisioning.available": ProviderProvisioningAvailablePayloadSchema,
|
|
1169
|
+
"agent.memory.intent.available": AgentMemoryIntentAvailablePayloadSchema,
|
|
1243
1170
|
"task.approve": TaskApprovePayloadSchema,
|
|
1244
1171
|
"task.reject": TaskRejectPayloadSchema,
|
|
1245
1172
|
"task.cancel": TaskCancelPayloadSchema,
|
|
@@ -1270,6 +1197,7 @@ var SERVER_TO_DAEMON_TYPES = [
|
|
|
1270
1197
|
"agent.home.projection",
|
|
1271
1198
|
"agent.input.preparation",
|
|
1272
1199
|
"provider.provisioning.available",
|
|
1200
|
+
"agent.memory.intent.available",
|
|
1273
1201
|
"task.approve",
|
|
1274
1202
|
"task.reject",
|
|
1275
1203
|
"task.cancel",
|
|
@@ -1291,7 +1219,204 @@ var DAEMON_TO_SERVER_TYPES = [
|
|
|
1291
1219
|
"agent.content.receipt"
|
|
1292
1220
|
];
|
|
1293
1221
|
|
|
1294
|
-
// src/agent-memory-
|
|
1222
|
+
// src/agent-memory-intent.ts
|
|
1223
|
+
var AGENT_MEMORY_INTENT_CAPABILITY = "agent-memory-intent.v1";
|
|
1224
|
+
var AGENT_MEMORY_INTENT_CONTENT_MAX_BYTES = 262144;
|
|
1225
|
+
var AGENT_MEMORY_INTENT_PATH_MAX_BYTES = 1024;
|
|
1226
|
+
var AGENT_MEMORY_INTENT_APPROVAL_REF_MAX_BYTES = 128;
|
|
1227
|
+
var SHA256_REVISION = /^sha256:[0-9a-f]{64}$/u;
|
|
1228
|
+
var AgentMemoryIntentRevisionSchema = z.string().regex(SHA256_REVISION, "revision must be lowercase sha256:<64 hex>");
|
|
1229
|
+
var AgentMemoryIntentOperationDigestSchema = z.string().regex(SHA256_REVISION, "operationDigest must be lowercase sha256:<64 hex>");
|
|
1230
|
+
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");
|
|
1231
|
+
var AgentMemoryIntentApprovalRefSchema = z.string().regex(
|
|
1232
|
+
new RegExp(`^[A-Za-z0-9._:-]{1,${AGENT_MEMORY_INTENT_APPROVAL_REF_MAX_BYTES}}$`, "u"),
|
|
1233
|
+
`approvalRef must be 1..${AGENT_MEMORY_INTENT_APPROVAL_REF_MAX_BYTES} characters of [A-Za-z0-9._:-]`
|
|
1234
|
+
);
|
|
1235
|
+
var LONE_SURROGATE = /[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?<![\uD800-\uDBFF])[\uDC00-\uDFFF]/u;
|
|
1236
|
+
var utf8 = new TextEncoder();
|
|
1237
|
+
var AgentMemoryIntentContentSchema = z.string().refine((value) => !LONE_SURROGATE.test(value), "content must be well-formed Unicode (encodable as UTF-8)").refine(
|
|
1238
|
+
(value) => utf8.encode(value).byteLength <= AGENT_MEMORY_INTENT_CONTENT_MAX_BYTES,
|
|
1239
|
+
`content must not exceed ${AGENT_MEMORY_INTENT_CONTENT_MAX_BYTES} UTF-8 bytes`
|
|
1240
|
+
);
|
|
1241
|
+
var AGENT_MEMORY_INTENT_OPERATIONS = ["replace", "delete"];
|
|
1242
|
+
var AgentMemoryIntentOperationSchema = z.enum(AGENT_MEMORY_INTENT_OPERATIONS);
|
|
1243
|
+
var AgentMemoryIntentV1Schema = z.object({
|
|
1244
|
+
intentId: z.uuid(),
|
|
1245
|
+
agentRef: AgentHomeProjectionAgentRefSchema,
|
|
1246
|
+
path: AgentMemoryIntentPathSchema,
|
|
1247
|
+
operation: AgentMemoryIntentOperationSchema,
|
|
1248
|
+
baseRevision: AgentMemoryIntentRevisionSchema,
|
|
1249
|
+
targetRevision: AgentMemoryIntentRevisionSchema.nullable(),
|
|
1250
|
+
content: AgentMemoryIntentContentSchema.optional(),
|
|
1251
|
+
approvalRef: AgentMemoryIntentApprovalRefSchema,
|
|
1252
|
+
operationDigest: AgentMemoryIntentOperationDigestSchema
|
|
1253
|
+
}).strict().superRefine((intent, ctx) => {
|
|
1254
|
+
if (intent.operation === "delete") {
|
|
1255
|
+
if (intent.targetRevision !== null) {
|
|
1256
|
+
ctx.addIssue({ code: "custom", path: ["targetRevision"], message: "a delete intent has a null targetRevision" });
|
|
1257
|
+
}
|
|
1258
|
+
if (intent.content !== void 0) {
|
|
1259
|
+
ctx.addIssue({ code: "custom", path: ["content"], message: "a delete intent never carries content" });
|
|
1260
|
+
}
|
|
1261
|
+
return;
|
|
1262
|
+
}
|
|
1263
|
+
if (intent.targetRevision === null) {
|
|
1264
|
+
ctx.addIssue({ code: "custom", path: ["targetRevision"], message: "a replace intent requires a targetRevision" });
|
|
1265
|
+
} else if (intent.targetRevision === intent.baseRevision) {
|
|
1266
|
+
ctx.addIssue({ code: "custom", path: ["targetRevision"], message: "targetRevision must differ from baseRevision" });
|
|
1267
|
+
}
|
|
1268
|
+
});
|
|
1269
|
+
var AGENT_MEMORY_INTENT_HOST_TERMINAL_CODES = [
|
|
1270
|
+
"intent_revoked",
|
|
1271
|
+
"intent_expired",
|
|
1272
|
+
"placement_changed",
|
|
1273
|
+
"profile_revision_changed"
|
|
1274
|
+
];
|
|
1275
|
+
var AgentMemoryIntentHostTerminalCodeSchema = z.enum(AGENT_MEMORY_INTENT_HOST_TERMINAL_CODES);
|
|
1276
|
+
var AGENT_MEMORY_INTENT_REJECTION_CODES = [
|
|
1277
|
+
"intent_invalid",
|
|
1278
|
+
"path_invalid",
|
|
1279
|
+
"memory_md_not_deletable",
|
|
1280
|
+
"content_invalid",
|
|
1281
|
+
"intent_digest_mismatch",
|
|
1282
|
+
"agent_ref_mismatch",
|
|
1283
|
+
"agent_home_unavailable",
|
|
1284
|
+
...AGENT_MEMORY_INTENT_HOST_TERMINAL_CODES
|
|
1285
|
+
];
|
|
1286
|
+
var AgentMemoryIntentRejectionCodeSchema = z.enum(AGENT_MEMORY_INTENT_REJECTION_CODES);
|
|
1287
|
+
var AgentMemoryIntentFileObservationSchema = z.object({
|
|
1288
|
+
exists: z.boolean(),
|
|
1289
|
+
revision: AgentMemoryIntentRevisionSchema
|
|
1290
|
+
}).strict();
|
|
1291
|
+
var completionIdentity2 = {
|
|
1292
|
+
intentId: z.uuid(),
|
|
1293
|
+
agentRef: AgentHomeProjectionAgentRefSchema,
|
|
1294
|
+
path: AgentMemoryIntentPathSchema,
|
|
1295
|
+
operation: AgentMemoryIntentOperationSchema,
|
|
1296
|
+
operationDigest: AgentMemoryIntentOperationDigestSchema
|
|
1297
|
+
};
|
|
1298
|
+
var AppliedCompletionSchema2 = z.object({ ...completionIdentity2, outcome: z.literal("applied"), result: AgentMemoryIntentFileObservationSchema }).strict();
|
|
1299
|
+
var ConflictCompletionSchema = z.object({ ...completionIdentity2, outcome: z.literal("conflict"), observed: AgentMemoryIntentFileObservationSchema }).strict();
|
|
1300
|
+
var RejectedCompletionSchema2 = z.object({ ...completionIdentity2, outcome: z.literal("rejected"), code: AgentMemoryIntentRejectionCodeSchema }).strict();
|
|
1301
|
+
var UncertainCompletionSchema = z.object({ ...completionIdentity2, outcome: z.literal("uncertain"), observed: AgentMemoryIntentFileObservationSchema }).strict();
|
|
1302
|
+
var AgentMemoryIntentCompletionSchema = z.discriminatedUnion("outcome", [
|
|
1303
|
+
AppliedCompletionSchema2,
|
|
1304
|
+
ConflictCompletionSchema,
|
|
1305
|
+
RejectedCompletionSchema2,
|
|
1306
|
+
UncertainCompletionSchema
|
|
1307
|
+
]);
|
|
1308
|
+
var AGENT_MEMORY_INTENT_READBACK_DISPOSITIONS = ["recorded", "idempotent", "conflict", "host_terminal"];
|
|
1309
|
+
var AgentMemoryIntentReadbackDispositionSchema = z.enum(AGENT_MEMORY_INTENT_READBACK_DISPOSITIONS);
|
|
1310
|
+
var AgentMemoryIntentReadbackSchema = z.object({
|
|
1311
|
+
tenantId: z.string().min(1),
|
|
1312
|
+
deviceId: z.string().min(1),
|
|
1313
|
+
intentId: z.uuid(),
|
|
1314
|
+
disposition: AgentMemoryIntentReadbackDispositionSchema,
|
|
1315
|
+
completion: AgentMemoryIntentCompletionSchema,
|
|
1316
|
+
recordedAt: z.iso.datetime({ offset: true })
|
|
1317
|
+
}).strict().superRefine((readback, ctx) => {
|
|
1318
|
+
if (readback.completion.intentId !== readback.intentId) {
|
|
1319
|
+
ctx.addIssue({ code: "custom", path: ["completion", "intentId"], message: "completion intentId must equal readback intentId" });
|
|
1320
|
+
}
|
|
1321
|
+
if (readback.disposition === "host_terminal" && (readback.completion.outcome !== "rejected" || !AGENT_MEMORY_INTENT_HOST_TERMINAL_CODES.includes(readback.completion.code))) {
|
|
1322
|
+
ctx.addIssue({
|
|
1323
|
+
code: "custom",
|
|
1324
|
+
path: ["completion"],
|
|
1325
|
+
message: `a host_terminal readback must carry a rejected completion with one of: ${AGENT_MEMORY_INTENT_HOST_TERMINAL_CODES.join(", ")}`
|
|
1326
|
+
});
|
|
1327
|
+
}
|
|
1328
|
+
});
|
|
1329
|
+
var AGENT_MEMORY_INTENT_RESERVATIONS = ["held", "none"];
|
|
1330
|
+
var AgentMemoryIntentReservationSchema = z.enum(AGENT_MEMORY_INTENT_RESERVATIONS);
|
|
1331
|
+
var AgentMemoryIntentFetchRequestSchema = z.object({
|
|
1332
|
+
intentId: z.uuid(),
|
|
1333
|
+
reservation: AgentMemoryIntentReservationSchema
|
|
1334
|
+
}).strict();
|
|
1335
|
+
var AGENT_MEMORY_INTENT_FETCH_DISPOSITIONS = ["release", "withheld", "terminal", "deferred"];
|
|
1336
|
+
var AGENT_MEMORY_INTENT_FETCH_DISPOSITIONS_BY_RESERVATION = {
|
|
1337
|
+
held: ["release", "withheld", "terminal"],
|
|
1338
|
+
none: ["terminal", "deferred"]
|
|
1339
|
+
};
|
|
1340
|
+
function requireNoContent(intent, ctx, disposition) {
|
|
1341
|
+
if (intent.content !== void 0) {
|
|
1342
|
+
ctx.addIssue({ code: "custom", path: ["intent", "content"], message: `a ${disposition} fetch response never carries content` });
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
var ReleaseFetchResponseSchema = z.object({ disposition: z.literal("release"), intent: AgentMemoryIntentV1Schema }).strict().superRefine((response, ctx) => {
|
|
1346
|
+
if (response.intent.operation === "replace" && response.intent.content === void 0) {
|
|
1347
|
+
ctx.addIssue({ code: "custom", path: ["intent", "content"], message: "a replace release must carry content" });
|
|
1348
|
+
}
|
|
1349
|
+
});
|
|
1350
|
+
var WithheldFetchResponseSchema = z.object({ disposition: z.literal("withheld"), intent: AgentMemoryIntentV1Schema, code: AgentMemoryIntentHostTerminalCodeSchema }).strict().superRefine((response, ctx) => requireNoContent(response.intent, ctx, "withheld"));
|
|
1351
|
+
var TerminalFetchResponseSchema = z.object({ disposition: z.literal("terminal"), intent: AgentMemoryIntentV1Schema, readback: AgentMemoryIntentReadbackSchema }).strict().superRefine((response, ctx) => {
|
|
1352
|
+
requireNoContent(response.intent, ctx, "terminal");
|
|
1353
|
+
const { intent, readback } = response;
|
|
1354
|
+
if (readback.intentId !== intent.intentId) {
|
|
1355
|
+
ctx.addIssue({ code: "custom", path: ["readback", "intentId"], message: "readback intentId must equal intent intentId" });
|
|
1356
|
+
}
|
|
1357
|
+
const completion = readback.completion;
|
|
1358
|
+
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) {
|
|
1359
|
+
ctx.addIssue({
|
|
1360
|
+
code: "custom",
|
|
1361
|
+
path: ["readback", "completion"],
|
|
1362
|
+
message: "readback completion identity must equal the intent identity and operationDigest"
|
|
1363
|
+
});
|
|
1364
|
+
}
|
|
1365
|
+
});
|
|
1366
|
+
var DeferredFetchResponseSchema = z.object({ disposition: z.literal("deferred"), intent: AgentMemoryIntentV1Schema }).strict().superRefine((response, ctx) => requireNoContent(response.intent, ctx, "deferred"));
|
|
1367
|
+
var AgentMemoryIntentFetchResponseSchema = z.discriminatedUnion("disposition", [
|
|
1368
|
+
ReleaseFetchResponseSchema,
|
|
1369
|
+
WithheldFetchResponseSchema,
|
|
1370
|
+
TerminalFetchResponseSchema,
|
|
1371
|
+
DeferredFetchResponseSchema
|
|
1372
|
+
]);
|
|
1373
|
+
function agentMemoryIntentFetchResponseSchemaFor(reservation) {
|
|
1374
|
+
const allowed = AGENT_MEMORY_INTENT_FETCH_DISPOSITIONS_BY_RESERVATION[AgentMemoryIntentReservationSchema.parse(reservation)];
|
|
1375
|
+
return AgentMemoryIntentFetchResponseSchema.superRefine((response, ctx) => {
|
|
1376
|
+
if (!allowed.includes(response.disposition)) {
|
|
1377
|
+
ctx.addIssue({
|
|
1378
|
+
code: "custom",
|
|
1379
|
+
path: ["disposition"],
|
|
1380
|
+
message: `a ${reservation} reservation allows only: ${allowed.join(", ")}`
|
|
1381
|
+
});
|
|
1382
|
+
}
|
|
1383
|
+
});
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
// src/version.ts
|
|
1387
|
+
var MAILBOX_READ_AHEAD_MAX_SEQS = 4096;
|
|
1388
|
+
var MAILBOX_READ_AHEAD_CAPABILITY = "mailbox-read-ahead";
|
|
1389
|
+
var PROTOCOL_VERSION = 2;
|
|
1390
|
+
var STRICT_AGENT_ONLY_CAPABILITY = "strict-agent-only";
|
|
1391
|
+
var CUSTOM_HARNESS_CAPABILITY = "custom-harness";
|
|
1392
|
+
var CAPABILITY_FLAGS = [
|
|
1393
|
+
"steer",
|
|
1394
|
+
"blob-upload",
|
|
1395
|
+
"interactive-approval",
|
|
1396
|
+
"approval_resolved",
|
|
1397
|
+
"approval-targeting",
|
|
1398
|
+
"result-document",
|
|
1399
|
+
"dispatch-selection",
|
|
1400
|
+
PROVIDER_PROFILE_BINDING_CAPABILITY,
|
|
1401
|
+
"toolset-selection",
|
|
1402
|
+
"agent-home-contract",
|
|
1403
|
+
STRICT_AGENT_ONLY_CAPABILITY,
|
|
1404
|
+
AGENT_EGRESS_POLICY_CAPABILITY,
|
|
1405
|
+
AGENT_EGRESS_RELIABLE_ACK_CAPABILITY,
|
|
1406
|
+
AGENT_MESSAGE_EGRESS_CAPABILITY,
|
|
1407
|
+
AGENT_EGRESS_FRESH_SESSION_CAPABILITY,
|
|
1408
|
+
AGENT_CONTENT_WORKSPACE_READ_CAPABILITY,
|
|
1409
|
+
AGENT_CONTENT_TRANSCRIPT_READ_CAPABILITY,
|
|
1410
|
+
AGENT_CONTENT_ARTIFACT_READ_CAPABILITY,
|
|
1411
|
+
AGENT_HOME_PROJECTION_CAPABILITY,
|
|
1412
|
+
AGENT_INPUT_PREPARATION_CAPABILITY,
|
|
1413
|
+
TERMINAL_PROJECTION_SELECTION_CAPABILITY,
|
|
1414
|
+
HOST_MCP_TASK_CONTEXT_CAPABILITY,
|
|
1415
|
+
CUSTOM_HARNESS_CAPABILITY,
|
|
1416
|
+
MAILBOX_READ_AHEAD_CAPABILITY,
|
|
1417
|
+
PROVIDER_PROVISIONING_CAPABILITY,
|
|
1418
|
+
AGENT_MEMORY_INTENT_CAPABILITY
|
|
1419
|
+
];
|
|
1295
1420
|
var AGENT_MEMORY_PROJECTION_CAPABILITY = "agent.memory.projection";
|
|
1296
1421
|
var AGENT_MEMORY_PROJECTION_MAX_REDACTED_BYTES = 512 * 1024;
|
|
1297
1422
|
var AGENT_MEMORY_PROJECTION_MAX_ORDERING_VALUE = 2147483647;
|
|
@@ -1426,6 +1551,7 @@ var EnvelopeSchema = z.discriminatedUnion("type", [
|
|
|
1426
1551
|
envelopeShape("agent.home.projection", FORBIDDEN_TASK_ID, REQUIRED_SEQ),
|
|
1427
1552
|
envelopeShape("agent.input.preparation", FORBIDDEN_TASK_ID, REQUIRED_SEQ),
|
|
1428
1553
|
envelopeShape("provider.provisioning.available", FORBIDDEN_TASK_ID, REQUIRED_SEQ),
|
|
1554
|
+
envelopeShape("agent.memory.intent.available", FORBIDDEN_TASK_ID, REQUIRED_SEQ),
|
|
1429
1555
|
envelopeShape("task.approve", REQUIRED_TASK_ID, REQUIRED_SEQ),
|
|
1430
1556
|
envelopeShape("task.reject", REQUIRED_TASK_ID, REQUIRED_SEQ),
|
|
1431
1557
|
envelopeShape("task.cancel", REQUIRED_TASK_ID, REQUIRED_SEQ),
|
|
@@ -1756,6 +1882,6 @@ function byokBlobContentPath(blobId) {
|
|
|
1756
1882
|
return `/byok/blobs/${blobId}/content`;
|
|
1757
1883
|
}
|
|
1758
1884
|
|
|
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,
|
|
1885
|
+
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, InputPreparationPolicyRevisionSchema, InputPreparationProfileIdSchema, InputPreparationProjectionSchema, InputPreparationPromptSnapshotSchema, InputPreparationReadbackSchema, InputPreparationReadinessReasonSchema, InputPreparationReceiptSummarySchema, InputPreparationReferenceSchema, InputPreparationRejectionReasonSchema, InputPreparationResidualKeySchema, InputPreparationResidualValueClassSchema, InputPreparationRuntimeIdentitySchema, InputPreparationSelectionSchema, InputPreparationSourceSchema, InputPreparationStateSchema, InputPreparationStatusQuerySchema, InputPreparationStatusSchema, 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, 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, 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
1886
|
//# sourceMappingURL=index.js.map
|
|
1761
1887
|
//# sourceMappingURL=index.js.map
|