@byok-sdk/protocol 0.22.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/agent-event.d.ts +12 -0
- package/dist/agent-memory-intent.d.ts +717 -0
- package/dist/codec.d.ts +8 -0
- package/dist/envelope.d.ts +42 -0
- package/dist/http-api.d.ts +94 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.js +358 -36
- package/dist/index.js.map +1 -1
- package/dist/input-preparation.d.ts +19 -2
- package/dist/messages.d.ts +66 -1
- package/dist/provider-provisioning.d.ts +372 -0
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -123,7 +123,7 @@ var PermissionPolicySchema = z.object({
|
|
|
123
123
|
}).strict();
|
|
124
124
|
|
|
125
125
|
// src/input-preparation.ts
|
|
126
|
-
var INPUT_PREPARATION_WIRE_VERSION =
|
|
126
|
+
var INPUT_PREPARATION_WIRE_VERSION = 8;
|
|
127
127
|
var AGENT_INPUT_PREPARATION_CAPABILITY = `agent-input-preparation-v${INPUT_PREPARATION_WIRE_VERSION}`;
|
|
128
128
|
var InputPreparationContentHashSchema = AgentEgressContentHashSchema;
|
|
129
129
|
var OPAQUE_ID = z.string().min(1).max(512).regex(/^[^\u0000-\u001f\u007f]+$/u, "control identifiers must not contain control characters");
|
|
@@ -131,6 +131,7 @@ var OPAQUE_TEXT = z.string().min(1).max(2048).regex(/^[^\u0000-\u001f\u007f]+$/u
|
|
|
131
131
|
var InputPreparationPolicyRevisionSchema = OPAQUE_ID;
|
|
132
132
|
var InputPreparationProfileIdSchema = OPAQUE_ID;
|
|
133
133
|
var InputPreparationPermissionModeSchema = z.enum(PERMISSION_MODES);
|
|
134
|
+
var PreparedAgentMemoryModeSchema = z.enum(["none", "read", "read-write"]);
|
|
134
135
|
var InputPreparationSourceSchema = z.object({ revision: OPAQUE_ID, digest: OPAQUE_ID }).strict();
|
|
135
136
|
var InputPreparationModelCostSchema = z.object({
|
|
136
137
|
input: z.number().finite(),
|
|
@@ -333,6 +334,7 @@ var InputPreparationArtifactSummarySchema = z.object({
|
|
|
333
334
|
toolImplementationKinds: z.record(OPAQUE_ID, InputPreparationToolImplementationKindSchema)
|
|
334
335
|
}).strict();
|
|
335
336
|
var InputPreparationBindingSchema = z.object({
|
|
337
|
+
agentMemory: PreparedAgentMemoryModeSchema,
|
|
336
338
|
scopeId: OPAQUE_ID,
|
|
337
339
|
deviceId: OPAQUE_ID,
|
|
338
340
|
agentRef: OPAQUE_ID,
|
|
@@ -474,39 +476,144 @@ var ProviderProfileBindingSchema = z.object({
|
|
|
474
476
|
ctx.addIssue({ code: "custom", path: ["requiredCapabilities"], message: "duplicate provider capability" });
|
|
475
477
|
}
|
|
476
478
|
});
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
var
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
var
|
|
483
|
-
var
|
|
484
|
-
var
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
"
|
|
492
|
-
|
|
493
|
-
"
|
|
494
|
-
"
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
479
|
+
var PROVIDER_PROVISIONING_CAPABILITY = "provider-provisioning.v1";
|
|
480
|
+
var PROVIDER_SECRET_SEALING_KEY_REGISTER_OPERATION = "provider-secret-sealing-key.register";
|
|
481
|
+
var ProviderProvisioningAvailablePayloadSchema = z.object({
|
|
482
|
+
requestId: z.uuid()
|
|
483
|
+
}).strict();
|
|
484
|
+
var PROVIDER_PROVISIONING_OPERATIONS = ["configure", "update_model", "replace_secret", "delete"];
|
|
485
|
+
var ProviderProvisioningOperationSchema = z.enum(PROVIDER_PROVISIONING_OPERATIONS);
|
|
486
|
+
var PROVIDER_PROVISIONING_OPERATION_GENERATION_MAXIMUM = "9223372036854775807";
|
|
487
|
+
var ProviderProvisioningOperationGenerationSchema = z.string().regex(/^[1-9][0-9]{0,18}$/u, "operationGeneration must be a canonical positive decimal string").refine(
|
|
488
|
+
(value) => value.length < PROVIDER_PROVISIONING_OPERATION_GENERATION_MAXIMUM.length || value <= PROVIDER_PROVISIONING_OPERATION_GENERATION_MAXIMUM,
|
|
489
|
+
`operationGeneration must not exceed ${PROVIDER_PROVISIONING_OPERATION_GENERATION_MAXIMUM}`
|
|
490
|
+
);
|
|
491
|
+
var ProviderProvisioningOperationDigestSchema = z.string().regex(/^sha256:[0-9a-f]{64}$/u, "operationDigest must be lowercase sha256");
|
|
492
|
+
var PROVIDER_PROVISIONING_REJECTION_CODES = [
|
|
493
|
+
"request_invalid",
|
|
494
|
+
"request_conflict",
|
|
495
|
+
"request_expired",
|
|
496
|
+
"request_not_yet_valid",
|
|
497
|
+
"request_window_invalid",
|
|
498
|
+
"sealing_key_rotated",
|
|
499
|
+
"enrollment_mismatch",
|
|
500
|
+
"agent_not_placed",
|
|
501
|
+
"config_digest_mismatch",
|
|
502
|
+
"operation_generation_stale",
|
|
503
|
+
"profile_changed",
|
|
504
|
+
"profile_not_found",
|
|
505
|
+
"credential_scope_mismatch",
|
|
506
|
+
"provider_kind_unsupported",
|
|
507
|
+
"pi_model_invalid",
|
|
508
|
+
"capabilities_invalid",
|
|
509
|
+
"seal_open_failed",
|
|
510
|
+
"secret_invalid",
|
|
511
|
+
"local_commit_interrupted",
|
|
512
|
+
"secret_store_unavailable"
|
|
509
513
|
];
|
|
514
|
+
var ProviderProvisioningRejectionCodeSchema = z.enum(PROVIDER_PROVISIONING_REJECTION_CODES);
|
|
515
|
+
var PROVIDER_PROVISIONING_HOST_TERMINAL_CODES = ["request_expired", "sealing_key_rotated"];
|
|
516
|
+
var ProviderProvisioningProviderStatusSchema = z.object({
|
|
517
|
+
profileRef: ProviderProfileRefSchema,
|
|
518
|
+
providerKind: z.string().min(1).max(64).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/u, "providerKind must be a lowercase portable identifier"),
|
|
519
|
+
modelId: z.string().min(1).max(160).regex(/^[^\u0000\r\n]+$/u),
|
|
520
|
+
capabilities: z.array(ProviderModelCapabilitySchema).max(8),
|
|
521
|
+
secretConfigured: z.boolean()
|
|
522
|
+
}).strict().superRefine((status, ctx) => {
|
|
523
|
+
if (new Set(status.capabilities).size !== status.capabilities.length) {
|
|
524
|
+
ctx.addIssue({ code: "custom", path: ["capabilities"], message: "duplicate provider capability" });
|
|
525
|
+
}
|
|
526
|
+
});
|
|
527
|
+
var PROVIDER_PROVISIONING_KEY_CHECK_RESULTS = [
|
|
528
|
+
"ok",
|
|
529
|
+
"credential_rejected",
|
|
530
|
+
"rate_limited",
|
|
531
|
+
"quota_or_billing",
|
|
532
|
+
"model_not_permitted",
|
|
533
|
+
"provider_error",
|
|
534
|
+
"unreachable",
|
|
535
|
+
"timeout",
|
|
536
|
+
"not_run"
|
|
537
|
+
];
|
|
538
|
+
var ProviderProvisioningKeyCheckResultSchema = z.enum(PROVIDER_PROVISIONING_KEY_CHECK_RESULTS);
|
|
539
|
+
var ProviderProvisioningKeyCheckSchema = z.object({
|
|
540
|
+
result: ProviderProvisioningKeyCheckResultSchema
|
|
541
|
+
}).strict();
|
|
542
|
+
var completionIdentity = {
|
|
543
|
+
requestId: z.uuid(),
|
|
544
|
+
operation: ProviderProvisioningOperationSchema,
|
|
545
|
+
operationGeneration: ProviderProvisioningOperationGenerationSchema,
|
|
546
|
+
operationDigest: ProviderProvisioningOperationDigestSchema
|
|
547
|
+
};
|
|
548
|
+
var AppliedCompletionSchema = z.object({
|
|
549
|
+
outcome: z.literal("applied"),
|
|
550
|
+
...completionIdentity,
|
|
551
|
+
providerStatus: ProviderProvisioningProviderStatusSchema.nullable(),
|
|
552
|
+
binding: ProviderProfileBindingSchema.nullable(),
|
|
553
|
+
keyCheck: ProviderProvisioningKeyCheckSchema
|
|
554
|
+
}).strict();
|
|
555
|
+
var RejectedCompletionSchema = z.object({
|
|
556
|
+
outcome: z.literal("rejected"),
|
|
557
|
+
...completionIdentity,
|
|
558
|
+
code: ProviderProvisioningRejectionCodeSchema
|
|
559
|
+
}).strict();
|
|
560
|
+
var ProviderProvisioningCompletionSchema = z.discriminatedUnion("outcome", [AppliedCompletionSchema, RejectedCompletionSchema]).superRefine((completion, ctx) => {
|
|
561
|
+
if (completion.outcome !== "applied") return;
|
|
562
|
+
const { operation, providerStatus, binding } = completion;
|
|
563
|
+
if (operation === "delete") {
|
|
564
|
+
if (completion.keyCheck.result !== "not_run") {
|
|
565
|
+
ctx.addIssue({ code: "custom", path: ["keyCheck", "result"], message: "an applied delete must report keyCheck not_run" });
|
|
566
|
+
}
|
|
567
|
+
if (providerStatus !== null) {
|
|
568
|
+
ctx.addIssue({ code: "custom", path: ["providerStatus"], message: "an applied delete reports no provider status" });
|
|
569
|
+
}
|
|
570
|
+
if (binding !== null) {
|
|
571
|
+
ctx.addIssue({ code: "custom", path: ["binding"], message: "an applied delete reports no binding" });
|
|
572
|
+
}
|
|
573
|
+
return;
|
|
574
|
+
}
|
|
575
|
+
if (providerStatus === null) {
|
|
576
|
+
ctx.addIssue({ code: "custom", path: ["providerStatus"], message: `an applied ${operation} must report provider status` });
|
|
577
|
+
}
|
|
578
|
+
if (binding === null) {
|
|
579
|
+
ctx.addIssue({ code: "custom", path: ["binding"], message: `an applied ${operation} must report its exact binding` });
|
|
580
|
+
}
|
|
581
|
+
if (providerStatus === null || binding === null) return;
|
|
582
|
+
if (providerStatus.profileRef !== binding.profileRef) {
|
|
583
|
+
ctx.addIssue({ code: "custom", path: ["binding", "profileRef"], message: "binding profileRef must equal providerStatus profileRef" });
|
|
584
|
+
}
|
|
585
|
+
if (providerStatus.modelId !== binding.modelId) {
|
|
586
|
+
ctx.addIssue({ code: "custom", path: ["binding", "modelId"], message: "binding modelId must equal providerStatus modelId" });
|
|
587
|
+
}
|
|
588
|
+
if ((operation === "configure" || operation === "replace_secret") && !providerStatus.secretConfigured) {
|
|
589
|
+
ctx.addIssue({
|
|
590
|
+
code: "custom",
|
|
591
|
+
path: ["providerStatus", "secretConfigured"],
|
|
592
|
+
message: `an applied ${operation} must report a configured secret`
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
});
|
|
596
|
+
var PROVIDER_PROVISIONING_DISPOSITIONS = ["recorded", "idempotent", "conflict", "host_terminal"];
|
|
597
|
+
var ProviderProvisioningDispositionSchema = z.enum(PROVIDER_PROVISIONING_DISPOSITIONS);
|
|
598
|
+
var ProviderProvisioningReadbackSchema = z.object({
|
|
599
|
+
tenantId: z.string().min(1),
|
|
600
|
+
deviceId: z.string().min(1),
|
|
601
|
+
requestId: z.uuid(),
|
|
602
|
+
disposition: ProviderProvisioningDispositionSchema,
|
|
603
|
+
completion: ProviderProvisioningCompletionSchema,
|
|
604
|
+
completedAt: z.iso.datetime({ offset: true })
|
|
605
|
+
}).strict().superRefine((readback, ctx) => {
|
|
606
|
+
if (readback.completion.requestId !== readback.requestId) {
|
|
607
|
+
ctx.addIssue({ code: "custom", path: ["completion", "requestId"], message: "completion requestId must equal readback requestId" });
|
|
608
|
+
}
|
|
609
|
+
if (readback.disposition === "host_terminal" && (readback.completion.outcome !== "rejected" || !PROVIDER_PROVISIONING_HOST_TERMINAL_CODES.includes(readback.completion.code))) {
|
|
610
|
+
ctx.addIssue({
|
|
611
|
+
code: "custom",
|
|
612
|
+
path: ["completion"],
|
|
613
|
+
message: `a host_terminal readback must carry a rejected completion with one of: ${PROVIDER_PROVISIONING_HOST_TERMINAL_CODES.join(", ")}`
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
});
|
|
510
617
|
var CONTENT_HASH_RE = /^sha256:[0-9a-f]{64}$/;
|
|
511
618
|
var BlobRefSchema = z.object({
|
|
512
619
|
blobId: z.string(),
|
|
@@ -568,7 +675,11 @@ var AgentEventSchema = z.discriminatedUnion("type", [
|
|
|
568
675
|
cachedInputTokens: z.number().int().nonnegative().optional(),
|
|
569
676
|
outputTokens: z.number().int().nonnegative().optional(),
|
|
570
677
|
reasoningTokens: z.number().int().nonnegative().optional(),
|
|
571
|
-
totalTokens: z.number().int().nonnegative().optional()
|
|
678
|
+
totalTokens: z.number().int().nonnegative().optional(),
|
|
679
|
+
// Context occupancy is independent of provider cost counters. Unknown stays absent.
|
|
680
|
+
contextTokens: z.number().int().nonnegative().optional(),
|
|
681
|
+
contextWindow: z.number().int().positive().optional(),
|
|
682
|
+
contextSource: z.enum(["provider", "estimate"]).optional()
|
|
572
683
|
})
|
|
573
684
|
]);
|
|
574
685
|
var KNOWN_AGENT_EVENT_TYPES = z.toJSONSchema(AgentEventSchema).oneOf.map((branch) => branch.properties.type.const);
|
|
@@ -592,6 +703,8 @@ function partitionAgentEvents(events) {
|
|
|
592
703
|
}
|
|
593
704
|
return { known, unknown };
|
|
594
705
|
}
|
|
706
|
+
|
|
707
|
+
// src/messages.ts
|
|
595
708
|
var MAX_INLINE_BYTES = 64 * 1024;
|
|
596
709
|
function isWithinInlineByteLimit(value) {
|
|
597
710
|
return new TextEncoder().encode(value).length <= MAX_INLINE_BYTES;
|
|
@@ -744,6 +857,7 @@ var TaskOfferPreparedPayloadSchema = TaskOfferForAgentPayloadSchema.omit({
|
|
|
744
857
|
sessionRef: true
|
|
745
858
|
}).extend({
|
|
746
859
|
preparation: InputPreparationOfferBindingSchema,
|
|
860
|
+
agentMemory: PreparedAgentMemoryModeSchema,
|
|
747
861
|
egressPolicy: AgentEgressPolicySchema,
|
|
748
862
|
messageEgress: AgentMessageEgressRequirementSchema.optional()
|
|
749
863
|
}).strict();
|
|
@@ -878,6 +992,10 @@ var AgentHomeProjectionPayloadSchema = z.object({
|
|
|
878
992
|
projectionHash: AgentHomeProjectionHashSchema,
|
|
879
993
|
projection: AgentHomeProjectionValueSchema
|
|
880
994
|
}).strict();
|
|
995
|
+
var AgentMemoryIntentAvailablePayloadSchema = z.object({
|
|
996
|
+
intentId: z.uuid(),
|
|
997
|
+
agentRef: AgentHomeProjectionAgentRefSchema
|
|
998
|
+
}).strict();
|
|
881
999
|
var InputPreparationInlineContextSchema = z.object({
|
|
882
1000
|
inline: z.string().refine(isWithinInlineByteLimit, `inline context must not exceed ${MAX_INLINE_BYTES} UTF-8 bytes`)
|
|
883
1001
|
}).strict();
|
|
@@ -891,6 +1009,7 @@ var InputPreparationBlobContextSchema = z.object({ blobRef: BlobRefSchema, conte
|
|
|
891
1009
|
}
|
|
892
1010
|
});
|
|
893
1011
|
var AgentInputPreparationPayloadSchema = z.object({
|
|
1012
|
+
agentMemory: PreparedAgentMemoryModeSchema,
|
|
894
1013
|
requestId: z.uuid(),
|
|
895
1014
|
agentRef: AgentRefSchema,
|
|
896
1015
|
profileId: InputPreparationProfileIdSchema,
|
|
@@ -1096,6 +1215,8 @@ var MESSAGE_PAYLOAD_SCHEMAS = {
|
|
|
1096
1215
|
"agent.content.receipt": AgentContentReceiptPayloadSchema,
|
|
1097
1216
|
"agent.home.projection": AgentHomeProjectionPayloadSchema,
|
|
1098
1217
|
"agent.input.preparation": AgentInputPreparationPayloadSchema,
|
|
1218
|
+
"provider.provisioning.available": ProviderProvisioningAvailablePayloadSchema,
|
|
1219
|
+
"agent.memory.intent.available": AgentMemoryIntentAvailablePayloadSchema,
|
|
1099
1220
|
"task.approve": TaskApprovePayloadSchema,
|
|
1100
1221
|
"task.reject": TaskRejectPayloadSchema,
|
|
1101
1222
|
"task.cancel": TaskCancelPayloadSchema,
|
|
@@ -1125,6 +1246,8 @@ var SERVER_TO_DAEMON_TYPES = [
|
|
|
1125
1246
|
"agent.content.read",
|
|
1126
1247
|
"agent.home.projection",
|
|
1127
1248
|
"agent.input.preparation",
|
|
1249
|
+
"provider.provisioning.available",
|
|
1250
|
+
"agent.memory.intent.available",
|
|
1128
1251
|
"task.approve",
|
|
1129
1252
|
"task.reject",
|
|
1130
1253
|
"task.cancel",
|
|
@@ -1146,7 +1269,204 @@ var DAEMON_TO_SERVER_TYPES = [
|
|
|
1146
1269
|
"agent.content.receipt"
|
|
1147
1270
|
];
|
|
1148
1271
|
|
|
1149
|
-
// src/agent-memory-
|
|
1272
|
+
// src/agent-memory-intent.ts
|
|
1273
|
+
var AGENT_MEMORY_INTENT_CAPABILITY = "agent-memory-intent.v1";
|
|
1274
|
+
var AGENT_MEMORY_INTENT_CONTENT_MAX_BYTES = 262144;
|
|
1275
|
+
var AGENT_MEMORY_INTENT_PATH_MAX_BYTES = 1024;
|
|
1276
|
+
var AGENT_MEMORY_INTENT_APPROVAL_REF_MAX_BYTES = 128;
|
|
1277
|
+
var SHA256_REVISION = /^sha256:[0-9a-f]{64}$/u;
|
|
1278
|
+
var AgentMemoryIntentRevisionSchema = z.string().regex(SHA256_REVISION, "revision must be lowercase sha256:<64 hex>");
|
|
1279
|
+
var AgentMemoryIntentOperationDigestSchema = z.string().regex(SHA256_REVISION, "operationDigest must be lowercase sha256:<64 hex>");
|
|
1280
|
+
var AgentMemoryIntentPathSchema = z.string().min(1).max(AGENT_MEMORY_INTENT_PATH_MAX_BYTES).regex(/^[\x20\x21\x23-\x5b\x5d-\x7e]+$/u, "path must be printable ASCII without quote or backslash");
|
|
1281
|
+
var AgentMemoryIntentApprovalRefSchema = z.string().regex(
|
|
1282
|
+
new RegExp(`^[A-Za-z0-9._:-]{1,${AGENT_MEMORY_INTENT_APPROVAL_REF_MAX_BYTES}}$`, "u"),
|
|
1283
|
+
`approvalRef must be 1..${AGENT_MEMORY_INTENT_APPROVAL_REF_MAX_BYTES} characters of [A-Za-z0-9._:-]`
|
|
1284
|
+
);
|
|
1285
|
+
var LONE_SURROGATE = /[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?<![\uD800-\uDBFF])[\uDC00-\uDFFF]/u;
|
|
1286
|
+
var utf8 = new TextEncoder();
|
|
1287
|
+
var AgentMemoryIntentContentSchema = z.string().refine((value) => !LONE_SURROGATE.test(value), "content must be well-formed Unicode (encodable as UTF-8)").refine(
|
|
1288
|
+
(value) => utf8.encode(value).byteLength <= AGENT_MEMORY_INTENT_CONTENT_MAX_BYTES,
|
|
1289
|
+
`content must not exceed ${AGENT_MEMORY_INTENT_CONTENT_MAX_BYTES} UTF-8 bytes`
|
|
1290
|
+
);
|
|
1291
|
+
var AGENT_MEMORY_INTENT_OPERATIONS = ["replace", "delete"];
|
|
1292
|
+
var AgentMemoryIntentOperationSchema = z.enum(AGENT_MEMORY_INTENT_OPERATIONS);
|
|
1293
|
+
var AgentMemoryIntentV1Schema = z.object({
|
|
1294
|
+
intentId: z.uuid(),
|
|
1295
|
+
agentRef: AgentHomeProjectionAgentRefSchema,
|
|
1296
|
+
path: AgentMemoryIntentPathSchema,
|
|
1297
|
+
operation: AgentMemoryIntentOperationSchema,
|
|
1298
|
+
baseRevision: AgentMemoryIntentRevisionSchema,
|
|
1299
|
+
targetRevision: AgentMemoryIntentRevisionSchema.nullable(),
|
|
1300
|
+
content: AgentMemoryIntentContentSchema.optional(),
|
|
1301
|
+
approvalRef: AgentMemoryIntentApprovalRefSchema,
|
|
1302
|
+
operationDigest: AgentMemoryIntentOperationDigestSchema
|
|
1303
|
+
}).strict().superRefine((intent, ctx) => {
|
|
1304
|
+
if (intent.operation === "delete") {
|
|
1305
|
+
if (intent.targetRevision !== null) {
|
|
1306
|
+
ctx.addIssue({ code: "custom", path: ["targetRevision"], message: "a delete intent has a null targetRevision" });
|
|
1307
|
+
}
|
|
1308
|
+
if (intent.content !== void 0) {
|
|
1309
|
+
ctx.addIssue({ code: "custom", path: ["content"], message: "a delete intent never carries content" });
|
|
1310
|
+
}
|
|
1311
|
+
return;
|
|
1312
|
+
}
|
|
1313
|
+
if (intent.targetRevision === null) {
|
|
1314
|
+
ctx.addIssue({ code: "custom", path: ["targetRevision"], message: "a replace intent requires a targetRevision" });
|
|
1315
|
+
} else if (intent.targetRevision === intent.baseRevision) {
|
|
1316
|
+
ctx.addIssue({ code: "custom", path: ["targetRevision"], message: "targetRevision must differ from baseRevision" });
|
|
1317
|
+
}
|
|
1318
|
+
});
|
|
1319
|
+
var AGENT_MEMORY_INTENT_HOST_TERMINAL_CODES = [
|
|
1320
|
+
"intent_revoked",
|
|
1321
|
+
"intent_expired",
|
|
1322
|
+
"placement_changed",
|
|
1323
|
+
"profile_revision_changed"
|
|
1324
|
+
];
|
|
1325
|
+
var AgentMemoryIntentHostTerminalCodeSchema = z.enum(AGENT_MEMORY_INTENT_HOST_TERMINAL_CODES);
|
|
1326
|
+
var AGENT_MEMORY_INTENT_REJECTION_CODES = [
|
|
1327
|
+
"intent_invalid",
|
|
1328
|
+
"path_invalid",
|
|
1329
|
+
"memory_md_not_deletable",
|
|
1330
|
+
"content_invalid",
|
|
1331
|
+
"intent_digest_mismatch",
|
|
1332
|
+
"agent_ref_mismatch",
|
|
1333
|
+
"agent_home_unavailable",
|
|
1334
|
+
...AGENT_MEMORY_INTENT_HOST_TERMINAL_CODES
|
|
1335
|
+
];
|
|
1336
|
+
var AgentMemoryIntentRejectionCodeSchema = z.enum(AGENT_MEMORY_INTENT_REJECTION_CODES);
|
|
1337
|
+
var AgentMemoryIntentFileObservationSchema = z.object({
|
|
1338
|
+
exists: z.boolean(),
|
|
1339
|
+
revision: AgentMemoryIntentRevisionSchema
|
|
1340
|
+
}).strict();
|
|
1341
|
+
var completionIdentity2 = {
|
|
1342
|
+
intentId: z.uuid(),
|
|
1343
|
+
agentRef: AgentHomeProjectionAgentRefSchema,
|
|
1344
|
+
path: AgentMemoryIntentPathSchema,
|
|
1345
|
+
operation: AgentMemoryIntentOperationSchema,
|
|
1346
|
+
operationDigest: AgentMemoryIntentOperationDigestSchema
|
|
1347
|
+
};
|
|
1348
|
+
var AppliedCompletionSchema2 = z.object({ ...completionIdentity2, outcome: z.literal("applied"), result: AgentMemoryIntentFileObservationSchema }).strict();
|
|
1349
|
+
var ConflictCompletionSchema = z.object({ ...completionIdentity2, outcome: z.literal("conflict"), observed: AgentMemoryIntentFileObservationSchema }).strict();
|
|
1350
|
+
var RejectedCompletionSchema2 = z.object({ ...completionIdentity2, outcome: z.literal("rejected"), code: AgentMemoryIntentRejectionCodeSchema }).strict();
|
|
1351
|
+
var UncertainCompletionSchema = z.object({ ...completionIdentity2, outcome: z.literal("uncertain"), observed: AgentMemoryIntentFileObservationSchema }).strict();
|
|
1352
|
+
var AgentMemoryIntentCompletionSchema = z.discriminatedUnion("outcome", [
|
|
1353
|
+
AppliedCompletionSchema2,
|
|
1354
|
+
ConflictCompletionSchema,
|
|
1355
|
+
RejectedCompletionSchema2,
|
|
1356
|
+
UncertainCompletionSchema
|
|
1357
|
+
]);
|
|
1358
|
+
var AGENT_MEMORY_INTENT_READBACK_DISPOSITIONS = ["recorded", "idempotent", "conflict", "host_terminal"];
|
|
1359
|
+
var AgentMemoryIntentReadbackDispositionSchema = z.enum(AGENT_MEMORY_INTENT_READBACK_DISPOSITIONS);
|
|
1360
|
+
var AgentMemoryIntentReadbackSchema = z.object({
|
|
1361
|
+
tenantId: z.string().min(1),
|
|
1362
|
+
deviceId: z.string().min(1),
|
|
1363
|
+
intentId: z.uuid(),
|
|
1364
|
+
disposition: AgentMemoryIntentReadbackDispositionSchema,
|
|
1365
|
+
completion: AgentMemoryIntentCompletionSchema,
|
|
1366
|
+
recordedAt: z.iso.datetime({ offset: true })
|
|
1367
|
+
}).strict().superRefine((readback, ctx) => {
|
|
1368
|
+
if (readback.completion.intentId !== readback.intentId) {
|
|
1369
|
+
ctx.addIssue({ code: "custom", path: ["completion", "intentId"], message: "completion intentId must equal readback intentId" });
|
|
1370
|
+
}
|
|
1371
|
+
if (readback.disposition === "host_terminal" && (readback.completion.outcome !== "rejected" || !AGENT_MEMORY_INTENT_HOST_TERMINAL_CODES.includes(readback.completion.code))) {
|
|
1372
|
+
ctx.addIssue({
|
|
1373
|
+
code: "custom",
|
|
1374
|
+
path: ["completion"],
|
|
1375
|
+
message: `a host_terminal readback must carry a rejected completion with one of: ${AGENT_MEMORY_INTENT_HOST_TERMINAL_CODES.join(", ")}`
|
|
1376
|
+
});
|
|
1377
|
+
}
|
|
1378
|
+
});
|
|
1379
|
+
var AGENT_MEMORY_INTENT_RESERVATIONS = ["held", "none"];
|
|
1380
|
+
var AgentMemoryIntentReservationSchema = z.enum(AGENT_MEMORY_INTENT_RESERVATIONS);
|
|
1381
|
+
var AgentMemoryIntentFetchRequestSchema = z.object({
|
|
1382
|
+
intentId: z.uuid(),
|
|
1383
|
+
reservation: AgentMemoryIntentReservationSchema
|
|
1384
|
+
}).strict();
|
|
1385
|
+
var AGENT_MEMORY_INTENT_FETCH_DISPOSITIONS = ["release", "withheld", "terminal", "deferred"];
|
|
1386
|
+
var AGENT_MEMORY_INTENT_FETCH_DISPOSITIONS_BY_RESERVATION = {
|
|
1387
|
+
held: ["release", "withheld", "terminal"],
|
|
1388
|
+
none: ["terminal", "deferred"]
|
|
1389
|
+
};
|
|
1390
|
+
function requireNoContent(intent, ctx, disposition) {
|
|
1391
|
+
if (intent.content !== void 0) {
|
|
1392
|
+
ctx.addIssue({ code: "custom", path: ["intent", "content"], message: `a ${disposition} fetch response never carries content` });
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
var ReleaseFetchResponseSchema = z.object({ disposition: z.literal("release"), intent: AgentMemoryIntentV1Schema }).strict().superRefine((response, ctx) => {
|
|
1396
|
+
if (response.intent.operation === "replace" && response.intent.content === void 0) {
|
|
1397
|
+
ctx.addIssue({ code: "custom", path: ["intent", "content"], message: "a replace release must carry content" });
|
|
1398
|
+
}
|
|
1399
|
+
});
|
|
1400
|
+
var WithheldFetchResponseSchema = z.object({ disposition: z.literal("withheld"), intent: AgentMemoryIntentV1Schema, code: AgentMemoryIntentHostTerminalCodeSchema }).strict().superRefine((response, ctx) => requireNoContent(response.intent, ctx, "withheld"));
|
|
1401
|
+
var TerminalFetchResponseSchema = z.object({ disposition: z.literal("terminal"), intent: AgentMemoryIntentV1Schema, readback: AgentMemoryIntentReadbackSchema }).strict().superRefine((response, ctx) => {
|
|
1402
|
+
requireNoContent(response.intent, ctx, "terminal");
|
|
1403
|
+
const { intent, readback } = response;
|
|
1404
|
+
if (readback.intentId !== intent.intentId) {
|
|
1405
|
+
ctx.addIssue({ code: "custom", path: ["readback", "intentId"], message: "readback intentId must equal intent intentId" });
|
|
1406
|
+
}
|
|
1407
|
+
const completion = readback.completion;
|
|
1408
|
+
if (completion.agentRef.agentId !== intent.agentRef.agentId || completion.agentRef.profileRevision !== intent.agentRef.profileRevision || completion.path !== intent.path || completion.operation !== intent.operation || completion.operationDigest !== intent.operationDigest) {
|
|
1409
|
+
ctx.addIssue({
|
|
1410
|
+
code: "custom",
|
|
1411
|
+
path: ["readback", "completion"],
|
|
1412
|
+
message: "readback completion identity must equal the intent identity and operationDigest"
|
|
1413
|
+
});
|
|
1414
|
+
}
|
|
1415
|
+
});
|
|
1416
|
+
var DeferredFetchResponseSchema = z.object({ disposition: z.literal("deferred"), intent: AgentMemoryIntentV1Schema }).strict().superRefine((response, ctx) => requireNoContent(response.intent, ctx, "deferred"));
|
|
1417
|
+
var AgentMemoryIntentFetchResponseSchema = z.discriminatedUnion("disposition", [
|
|
1418
|
+
ReleaseFetchResponseSchema,
|
|
1419
|
+
WithheldFetchResponseSchema,
|
|
1420
|
+
TerminalFetchResponseSchema,
|
|
1421
|
+
DeferredFetchResponseSchema
|
|
1422
|
+
]);
|
|
1423
|
+
function agentMemoryIntentFetchResponseSchemaFor(reservation) {
|
|
1424
|
+
const allowed = AGENT_MEMORY_INTENT_FETCH_DISPOSITIONS_BY_RESERVATION[AgentMemoryIntentReservationSchema.parse(reservation)];
|
|
1425
|
+
return AgentMemoryIntentFetchResponseSchema.superRefine((response, ctx) => {
|
|
1426
|
+
if (!allowed.includes(response.disposition)) {
|
|
1427
|
+
ctx.addIssue({
|
|
1428
|
+
code: "custom",
|
|
1429
|
+
path: ["disposition"],
|
|
1430
|
+
message: `a ${reservation} reservation allows only: ${allowed.join(", ")}`
|
|
1431
|
+
});
|
|
1432
|
+
}
|
|
1433
|
+
});
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
// src/version.ts
|
|
1437
|
+
var MAILBOX_READ_AHEAD_MAX_SEQS = 4096;
|
|
1438
|
+
var MAILBOX_READ_AHEAD_CAPABILITY = "mailbox-read-ahead";
|
|
1439
|
+
var PROTOCOL_VERSION = 1;
|
|
1440
|
+
var STRICT_AGENT_ONLY_CAPABILITY = "strict-agent-only";
|
|
1441
|
+
var CUSTOM_HARNESS_CAPABILITY = "custom-harness";
|
|
1442
|
+
var CAPABILITY_FLAGS = [
|
|
1443
|
+
"steer",
|
|
1444
|
+
"blob-upload",
|
|
1445
|
+
"interactive-approval",
|
|
1446
|
+
"approval_resolved",
|
|
1447
|
+
"approval-targeting",
|
|
1448
|
+
"result-document",
|
|
1449
|
+
"dispatch-selection",
|
|
1450
|
+
PROVIDER_PROFILE_BINDING_CAPABILITY,
|
|
1451
|
+
"toolset-selection",
|
|
1452
|
+
"agent-home-contract",
|
|
1453
|
+
STRICT_AGENT_ONLY_CAPABILITY,
|
|
1454
|
+
AGENT_EGRESS_POLICY_CAPABILITY,
|
|
1455
|
+
AGENT_EGRESS_RELIABLE_ACK_CAPABILITY,
|
|
1456
|
+
AGENT_MESSAGE_EGRESS_CAPABILITY,
|
|
1457
|
+
AGENT_EGRESS_FRESH_SESSION_CAPABILITY,
|
|
1458
|
+
AGENT_CONTENT_WORKSPACE_READ_CAPABILITY,
|
|
1459
|
+
AGENT_CONTENT_TRANSCRIPT_READ_CAPABILITY,
|
|
1460
|
+
AGENT_CONTENT_ARTIFACT_READ_CAPABILITY,
|
|
1461
|
+
AGENT_HOME_PROJECTION_CAPABILITY,
|
|
1462
|
+
AGENT_INPUT_PREPARATION_CAPABILITY,
|
|
1463
|
+
TERMINAL_PROJECTION_SELECTION_CAPABILITY,
|
|
1464
|
+
HOST_MCP_TASK_CONTEXT_CAPABILITY,
|
|
1465
|
+
CUSTOM_HARNESS_CAPABILITY,
|
|
1466
|
+
MAILBOX_READ_AHEAD_CAPABILITY,
|
|
1467
|
+
PROVIDER_PROVISIONING_CAPABILITY,
|
|
1468
|
+
AGENT_MEMORY_INTENT_CAPABILITY
|
|
1469
|
+
];
|
|
1150
1470
|
var AGENT_MEMORY_PROJECTION_CAPABILITY = "agent.memory.projection";
|
|
1151
1471
|
var AGENT_MEMORY_PROJECTION_MAX_REDACTED_BYTES = 512 * 1024;
|
|
1152
1472
|
var AGENT_MEMORY_PROJECTION_MAX_ORDERING_VALUE = 2147483647;
|
|
@@ -1280,6 +1600,8 @@ var EnvelopeSchema = z.discriminatedUnion("type", [
|
|
|
1280
1600
|
envelopeShape("agent.content.read", OPTIONAL_TASK_ID, REQUIRED_SEQ),
|
|
1281
1601
|
envelopeShape("agent.home.projection", FORBIDDEN_TASK_ID, REQUIRED_SEQ),
|
|
1282
1602
|
envelopeShape("agent.input.preparation", FORBIDDEN_TASK_ID, REQUIRED_SEQ),
|
|
1603
|
+
envelopeShape("provider.provisioning.available", FORBIDDEN_TASK_ID, REQUIRED_SEQ),
|
|
1604
|
+
envelopeShape("agent.memory.intent.available", FORBIDDEN_TASK_ID, REQUIRED_SEQ),
|
|
1283
1605
|
envelopeShape("task.approve", REQUIRED_TASK_ID, REQUIRED_SEQ),
|
|
1284
1606
|
envelopeShape("task.reject", REQUIRED_TASK_ID, REQUIRED_SEQ),
|
|
1285
1607
|
envelopeShape("task.cancel", REQUIRED_TASK_ID, REQUIRED_SEQ),
|
|
@@ -1610,6 +1932,6 @@ function byokBlobContentPath(blobId) {
|
|
|
1610
1932
|
return `/byok/blobs/${blobId}/content`;
|
|
1611
1933
|
}
|
|
1612
1934
|
|
|
1613
|
-
export { AGENT_CONTENT_ARTIFACT_READ_CAPABILITY, AGENT_CONTENT_TRANSCRIPT_READ_CAPABILITY, AGENT_CONTENT_WORKSPACE_READ_CAPABILITY, AGENT_EGRESS_FRESH_SESSION_CAPABILITY, AGENT_EGRESS_POLICY_CAPABILITY, AGENT_EGRESS_RELIABLE_ACK_CAPABILITY, AGENT_EVENT_SPILL_UNSTORED_REASON_MAX_LENGTH, AGENT_HOME_PROJECTION_CAPABILITY, AGENT_HOME_PROJECTION_MAX_BYTES, AGENT_HOME_PROJECTION_PROFILE_REVISION_MAXIMUM, AGENT_INPUT_PREPARATION_CAPABILITY, AGENT_MEMORY_PROJECTION_CAPABILITY, AGENT_MEMORY_PROJECTION_MAX_ORDERING_VALUE, AGENT_MEMORY_PROJECTION_MAX_REDACTED_BYTES, AGENT_MESSAGE_EGRESS_CAPABILITY, AGENT_MESSAGE_MAX_BYTES, AGENT_REF_MAX_BYTES, AgentContentActorKindSchema, AgentContentActorSchema, AgentContentDecodeAsSchema, AgentContentMimeTypeSchema, AgentContentReadDecisionSchema, AgentContentReadDenialReasonSchema, AgentContentReadPayloadSchema, AgentContentReadSurfaceSchema, AgentContentReceiptPayloadSchema, AgentEgressAckPayloadSchema, AgentEgressActivityPolicySchema, AgentEgressContentHashSchema, AgentEgressDropReasonSchema, AgentEgressLaneSchema, AgentEgressPolicyRevisionSchema, AgentEgressPolicySchema, AgentEgressReliablePayloadSchema, AgentEventOrUnknownSchema, AgentEventSchema, AgentEventSpillSchema, AgentHomeProjectionAgentRefSchema, AgentHomeProjectionCompletionRequestSchema, AgentHomeProjectionHashSchema, AgentHomeProjectionOutcomeSchema, AgentHomeProjectionPayloadSchema, AgentHomeProjectionProfileRevisionSchema, AgentHomeProjectionReadbackSchema, AgentHomeProjectionStatusSchema, AgentHomeProjectionValueSchema, AgentInputPreparationPayloadSchema, AgentMemoryProjectionCommitRequestSchema, AgentMemoryProjectionCommitResponseSchema, AgentMemoryProjectionEraseResultSchema, AgentMemoryProjectionGrantRefSchema, AgentMemoryProjectionMeteringReceiptSchema, AgentMemoryProjectionMutationSchema, AgentMemoryProjectionReceiptSchema, AgentMemoryProjectionSessionRefSchema, AgentMemoryProjectionSnapshotSchema, AgentMemoryProjectionSourceSeqSchema, AgentMemoryProjectionWriterEpochSchema, AgentMessageContentTypeSchema, AgentMessageContractSchema, AgentMessageDestinationBindingSchema, AgentMessageDispositionPayloadSchema, AgentMessageEgressRequirementSchema, AgentMessageFreshnessCursorSchema, AgentMessagePublishPayloadSchema, AgentMessageServerContextSchema, AgentRefSchema, AgentReliableQuotaPolicySchema, BYOK_ACTIVITY_PATH, BYOK_AGENT_HOME_PROJECTIONS_PATH, BYOK_AGENT_HOME_PROJECTION_COMPLETION_ROUTE, BYOK_AGENT_MEMORY_PROJECTIONS_PATH, BYOK_BLOBS_PATH, BYOK_BLOB_CONTENT_ROUTE, BYOK_BLOB_FINALIZE_ROUTE, BYOK_BLOB_URL_ROUTE, BYOK_BOARD_CLAIM_ROUTE, BYOK_BOARD_PATH, BYOK_BOARD_STATUS_ROUTE, BYOK_BOARD_STREAM_PATH, BYOK_BOARD_UNCLAIM_ROUTE, BYOK_CAPABILITIES_PATH, BYOK_CHALLENGE_PATH, BYOK_EVENTS_PATH, BYOK_INPUT_PREPARATIONS_PATH, BYOK_INPUT_PREPARATION_COMPLETION_ROUTE, BYOK_INPUT_PREPARATION_STATUS_ROUTE, BYOK_MESSAGES_PATH, BYOK_PAIR_PATH, BYOK_PRESENCE_PATH, BYOK_RECORDS_PATH, BYOK_RECORD_ROUTE, BYOK_SKILL_PACKS_PATH, BYOK_SKILL_PACK_FILE_ROUTE, BYOK_TOKEN_PATH, BlobDownloadUrlResponseSchema, BlobRefSchema, CAPABILITY_FLAGS, CONFIGURED_TOOLSETS_MAX_ITEMS, CONTENT_HASH_RE, CUSTOM_HARNESS_CAPABILITY, ChallengeRequestSchema, ChallengeResponseSchema, ConfiguredToolsetsSchema, ConnAckPayloadSchema, ConnHelloPayloadSchema, ContentReadPolicySchema, CreateBlobRequestSchema, CreateBlobResponseSchema, DAEMON_TO_SERVER_TYPES, DispatchSelectionSchema, EnvelopeParseError, EnvelopeSchema, EnvelopeValidationError, EventsPollQuerySchema, EventsPollResponseSchema, HOST_MCP_TASK_CONTEXT_CAPABILITY, HarnessIdSchema, HarnessInfoSchema, HarnessInventorySchema, INPUT_PREPARATION_WIRE_VERSION, InputPreparationAccountingPolicyRefSchema, InputPreparationArtifactSummarySchema, InputPreparationBindingSchema, InputPreparationCompletionRequestSchema, InputPreparationContentHashSchema, InputPreparationContextDocumentSchema, InputPreparationCounterEvidenceSchema, InputPreparationCounterProviderEvidenceSchema, InputPreparationCounterTargetSchema, InputPreparationHostCanonicalAssistantMessageSchema, InputPreparationMessageSchema, InputPreparationModelCostSchema, InputPreparationModelSchema, InputPreparationOfferBindingSchema, InputPreparationOptionsSchema, InputPreparationPermissionModeSchema, InputPreparationPolicyRevisionSchema, InputPreparationProfileIdSchema, InputPreparationProjectionSchema, InputPreparationPromptSnapshotSchema, InputPreparationReadbackSchema, InputPreparationReadinessReasonSchema, InputPreparationReceiptSummarySchema, InputPreparationReferenceSchema, InputPreparationRejectionReasonSchema, InputPreparationResidualKeySchema, InputPreparationResidualValueClassSchema, InputPreparationRuntimeIdentitySchema, InputPreparationSelectionSchema, InputPreparationSourceSchema, InputPreparationStateSchema, InputPreparationStatusQuerySchema, InputPreparationStatusSchema, InputPreparationToolImplementationKindSchema, InputPreparationUserMessageSchema, KNOWN_AGENT_EVENT_TYPES, MAILBOX_READ_AHEAD_CAPABILITY, MAILBOX_READ_AHEAD_MAX_SEQS, MAX_MESSAGES_PER_BATCH, MESSAGE_PAYLOAD_SCHEMAS, MESSAGE_TYPES, MessagesSendRequestSchema, MessagesSendResponseSchema, PAIR_RESPONSE_TENANT_ID_MAX_LENGTH, PERMISSION_MODES, PROTOCOL_VERSION, PROVIDER_MODEL_CAPABILITIES, PROVIDER_PROFILE_BINDING_CAPABILITY, PairRequestSchema, PairResponseSchema, PairResponseTenantIdSchema, PermissionPolicySchema, PresencePublishRequestSchema, ProtocolError, ProtocolVersionNumberSchema, ProviderModelCapabilitySchema, ProviderProfileBindingSchema, ProviderProfileHashSchema, ProviderProfileRefSchema, ProviderProfileRevisionSchema, RESULT_DOCUMENT_MAX_BYTES, RequiredToolsetsSchema, RuntimeCapabilitiesSchema, RuntimeIdSchema, RuntimeInfoSchema, SERVER_TO_DAEMON_TYPES, STRICT_AGENT_ONLY_CAPABILITY, TASK_OFFER_TYPES, TASK_STATES, TASK_TRANSITIONS, TERMINAL_INFERENCE_USAGE_CLIENT_VERSION_MAX_LENGTH, TERMINAL_INFERENCE_USAGE_MAX_DURATION_MS, TERMINAL_INFERENCE_USAGE_MAX_TOKENS, TERMINAL_INFERENCE_USAGE_MODEL_MAX_LENGTH, TERMINAL_INFERENCE_USAGE_PROVIDER_MAX_LENGTH, TERMINAL_PROJECTION_SELECTION_CAPABILITY, TaskApprovalResolvedPayloadSchema, TaskApprovePayloadSchema, TaskArtifactPayloadSchema, TaskAwaitApprovalPayloadSchema, TaskCancelPayloadSchema, TaskCancelledPayloadSchema, TaskClaimPayloadSchema, TaskCompletePayloadSchema, TaskDeclinePayloadSchema, TaskFailPayloadSchema, TaskOfferForAgentPayloadSchema, TaskOfferForAgentWithEgressFreshPayloadSchema, TaskOfferForAgentWithEgressPayloadSchema, TaskOfferPayloadSchema, TaskOfferPreparedPayloadSchema, TaskOfferWithToolsetsPayloadSchema, TaskProgressPayloadSchema, TaskRejectPayloadSchema, TaskStartedPayloadSchema, TaskSteerPayloadSchema, TerminalInferenceUsageSchema, TerminalPreparedObservationSchema, TerminalProjectionContractSchema, TerminalProjectionSelectionSchema, TokenRequestSchema, TokenResponseSchema, ToolsetIdSchema, UnknownAgentEventSchema, UnknownMessageTypeError, agentMemoryProjectionBase64UrlByteLength, byokAgentHomeProjectionCompletionPath, byokBlobContentPath, byokBlobFinalizePath, byokBlobUrlPath, byokInputPreparationCompletionPath, byokInputPreparationStatusPath, byokRecordPath, byokSkillPackFilePath, canTransition, checkResultDocument, createEnvelope, decodeEnvelope, encodeEnvelope, isKnownAgentEvent, isServerToDaemonType, isTaskOfferType, parseMessage, partitionAgentEvents };
|
|
1935
|
+
export { AGENT_CONTENT_ARTIFACT_READ_CAPABILITY, AGENT_CONTENT_TRANSCRIPT_READ_CAPABILITY, AGENT_CONTENT_WORKSPACE_READ_CAPABILITY, AGENT_EGRESS_FRESH_SESSION_CAPABILITY, AGENT_EGRESS_POLICY_CAPABILITY, AGENT_EGRESS_RELIABLE_ACK_CAPABILITY, AGENT_EVENT_SPILL_UNSTORED_REASON_MAX_LENGTH, AGENT_HOME_PROJECTION_CAPABILITY, AGENT_HOME_PROJECTION_MAX_BYTES, AGENT_HOME_PROJECTION_PROFILE_REVISION_MAXIMUM, AGENT_INPUT_PREPARATION_CAPABILITY, AGENT_MEMORY_INTENT_APPROVAL_REF_MAX_BYTES, AGENT_MEMORY_INTENT_CAPABILITY, AGENT_MEMORY_INTENT_CONTENT_MAX_BYTES, AGENT_MEMORY_INTENT_FETCH_DISPOSITIONS, AGENT_MEMORY_INTENT_FETCH_DISPOSITIONS_BY_RESERVATION, AGENT_MEMORY_INTENT_HOST_TERMINAL_CODES, AGENT_MEMORY_INTENT_OPERATIONS, AGENT_MEMORY_INTENT_PATH_MAX_BYTES, AGENT_MEMORY_INTENT_READBACK_DISPOSITIONS, AGENT_MEMORY_INTENT_REJECTION_CODES, AGENT_MEMORY_INTENT_RESERVATIONS, AGENT_MEMORY_PROJECTION_CAPABILITY, AGENT_MEMORY_PROJECTION_MAX_ORDERING_VALUE, AGENT_MEMORY_PROJECTION_MAX_REDACTED_BYTES, AGENT_MESSAGE_EGRESS_CAPABILITY, AGENT_MESSAGE_MAX_BYTES, AGENT_REF_MAX_BYTES, AgentContentActorKindSchema, AgentContentActorSchema, AgentContentDecodeAsSchema, AgentContentMimeTypeSchema, AgentContentReadDecisionSchema, AgentContentReadDenialReasonSchema, AgentContentReadPayloadSchema, AgentContentReadSurfaceSchema, AgentContentReceiptPayloadSchema, AgentEgressAckPayloadSchema, AgentEgressActivityPolicySchema, AgentEgressContentHashSchema, AgentEgressDropReasonSchema, AgentEgressLaneSchema, AgentEgressPolicyRevisionSchema, AgentEgressPolicySchema, AgentEgressReliablePayloadSchema, AgentEventOrUnknownSchema, AgentEventSchema, AgentEventSpillSchema, AgentHomeProjectionAgentRefSchema, AgentHomeProjectionCompletionRequestSchema, AgentHomeProjectionHashSchema, AgentHomeProjectionOutcomeSchema, AgentHomeProjectionPayloadSchema, AgentHomeProjectionProfileRevisionSchema, AgentHomeProjectionReadbackSchema, AgentHomeProjectionStatusSchema, AgentHomeProjectionValueSchema, AgentInputPreparationPayloadSchema, AgentMemoryIntentApprovalRefSchema, AgentMemoryIntentAvailablePayloadSchema, AgentMemoryIntentCompletionSchema, AgentMemoryIntentContentSchema, AgentMemoryIntentFetchRequestSchema, AgentMemoryIntentFetchResponseSchema, AgentMemoryIntentFileObservationSchema, AgentMemoryIntentHostTerminalCodeSchema, AgentMemoryIntentOperationDigestSchema, AgentMemoryIntentOperationSchema, AgentMemoryIntentPathSchema, AgentMemoryIntentReadbackDispositionSchema, AgentMemoryIntentReadbackSchema, AgentMemoryIntentRejectionCodeSchema, AgentMemoryIntentReservationSchema, AgentMemoryIntentRevisionSchema, AgentMemoryIntentV1Schema, AgentMemoryProjectionCommitRequestSchema, AgentMemoryProjectionCommitResponseSchema, AgentMemoryProjectionEraseResultSchema, AgentMemoryProjectionGrantRefSchema, AgentMemoryProjectionMeteringReceiptSchema, AgentMemoryProjectionMutationSchema, AgentMemoryProjectionReceiptSchema, AgentMemoryProjectionSessionRefSchema, AgentMemoryProjectionSnapshotSchema, AgentMemoryProjectionSourceSeqSchema, AgentMemoryProjectionWriterEpochSchema, AgentMessageContentTypeSchema, AgentMessageContractSchema, AgentMessageDestinationBindingSchema, AgentMessageDispositionPayloadSchema, AgentMessageEgressRequirementSchema, AgentMessageFreshnessCursorSchema, AgentMessagePublishPayloadSchema, AgentMessageServerContextSchema, AgentRefSchema, AgentReliableQuotaPolicySchema, BYOK_ACTIVITY_PATH, BYOK_AGENT_HOME_PROJECTIONS_PATH, BYOK_AGENT_HOME_PROJECTION_COMPLETION_ROUTE, BYOK_AGENT_MEMORY_PROJECTIONS_PATH, BYOK_BLOBS_PATH, BYOK_BLOB_CONTENT_ROUTE, BYOK_BLOB_FINALIZE_ROUTE, BYOK_BLOB_URL_ROUTE, BYOK_BOARD_CLAIM_ROUTE, BYOK_BOARD_PATH, BYOK_BOARD_STATUS_ROUTE, BYOK_BOARD_STREAM_PATH, BYOK_BOARD_UNCLAIM_ROUTE, BYOK_CAPABILITIES_PATH, BYOK_CHALLENGE_PATH, BYOK_EVENTS_PATH, BYOK_INPUT_PREPARATIONS_PATH, BYOK_INPUT_PREPARATION_COMPLETION_ROUTE, BYOK_INPUT_PREPARATION_STATUS_ROUTE, BYOK_MESSAGES_PATH, BYOK_PAIR_PATH, BYOK_PRESENCE_PATH, BYOK_RECORDS_PATH, BYOK_RECORD_ROUTE, BYOK_SKILL_PACKS_PATH, BYOK_SKILL_PACK_FILE_ROUTE, BYOK_TOKEN_PATH, BlobDownloadUrlResponseSchema, BlobRefSchema, CAPABILITY_FLAGS, CONFIGURED_TOOLSETS_MAX_ITEMS, CONTENT_HASH_RE, CUSTOM_HARNESS_CAPABILITY, ChallengeRequestSchema, ChallengeResponseSchema, ConfiguredToolsetsSchema, ConnAckPayloadSchema, ConnHelloPayloadSchema, ContentReadPolicySchema, CreateBlobRequestSchema, CreateBlobResponseSchema, DAEMON_TO_SERVER_TYPES, DispatchSelectionSchema, EnvelopeParseError, EnvelopeSchema, EnvelopeValidationError, EventsPollQuerySchema, EventsPollResponseSchema, HOST_MCP_TASK_CONTEXT_CAPABILITY, HarnessIdSchema, HarnessInfoSchema, HarnessInventorySchema, INPUT_PREPARATION_WIRE_VERSION, InputPreparationAccountingPolicyRefSchema, InputPreparationArtifactSummarySchema, InputPreparationBindingSchema, InputPreparationCompletionRequestSchema, InputPreparationContentHashSchema, InputPreparationContextDocumentSchema, InputPreparationCounterEvidenceSchema, InputPreparationCounterProviderEvidenceSchema, InputPreparationCounterTargetSchema, InputPreparationHostCanonicalAssistantMessageSchema, InputPreparationMessageSchema, InputPreparationModelCostSchema, InputPreparationModelSchema, InputPreparationOfferBindingSchema, InputPreparationOptionsSchema, InputPreparationPermissionModeSchema, InputPreparationPolicyRevisionSchema, InputPreparationProfileIdSchema, InputPreparationProjectionSchema, InputPreparationPromptSnapshotSchema, InputPreparationReadbackSchema, InputPreparationReadinessReasonSchema, InputPreparationReceiptSummarySchema, InputPreparationReferenceSchema, InputPreparationRejectionReasonSchema, InputPreparationResidualKeySchema, InputPreparationResidualValueClassSchema, InputPreparationRuntimeIdentitySchema, InputPreparationSelectionSchema, InputPreparationSourceSchema, InputPreparationStateSchema, InputPreparationStatusQuerySchema, InputPreparationStatusSchema, InputPreparationToolImplementationKindSchema, InputPreparationUserMessageSchema, KNOWN_AGENT_EVENT_TYPES, MAILBOX_READ_AHEAD_CAPABILITY, MAILBOX_READ_AHEAD_MAX_SEQS, MAX_MESSAGES_PER_BATCH, MESSAGE_PAYLOAD_SCHEMAS, MESSAGE_TYPES, MessagesSendRequestSchema, MessagesSendResponseSchema, PAIR_RESPONSE_TENANT_ID_MAX_LENGTH, PERMISSION_MODES, PROTOCOL_VERSION, PROVIDER_MODEL_CAPABILITIES, PROVIDER_PROFILE_BINDING_CAPABILITY, PROVIDER_PROVISIONING_CAPABILITY, PROVIDER_PROVISIONING_DISPOSITIONS, PROVIDER_PROVISIONING_HOST_TERMINAL_CODES, PROVIDER_PROVISIONING_KEY_CHECK_RESULTS, PROVIDER_PROVISIONING_OPERATIONS, PROVIDER_PROVISIONING_OPERATION_GENERATION_MAXIMUM, PROVIDER_PROVISIONING_REJECTION_CODES, PROVIDER_SECRET_SEALING_KEY_REGISTER_OPERATION, PairRequestSchema, PairResponseSchema, PairResponseTenantIdSchema, PermissionPolicySchema, PreparedAgentMemoryModeSchema, PresencePublishRequestSchema, ProtocolError, ProtocolVersionNumberSchema, ProviderModelCapabilitySchema, ProviderProfileBindingSchema, ProviderProfileHashSchema, ProviderProfileRefSchema, ProviderProfileRevisionSchema, ProviderProvisioningAvailablePayloadSchema, ProviderProvisioningCompletionSchema, ProviderProvisioningDispositionSchema, ProviderProvisioningKeyCheckResultSchema, ProviderProvisioningKeyCheckSchema, ProviderProvisioningOperationDigestSchema, ProviderProvisioningOperationGenerationSchema, ProviderProvisioningOperationSchema, ProviderProvisioningProviderStatusSchema, ProviderProvisioningReadbackSchema, ProviderProvisioningRejectionCodeSchema, RESULT_DOCUMENT_MAX_BYTES, RequiredToolsetsSchema, RuntimeCapabilitiesSchema, RuntimeIdSchema, RuntimeInfoSchema, SERVER_TO_DAEMON_TYPES, STRICT_AGENT_ONLY_CAPABILITY, TASK_OFFER_TYPES, TASK_STATES, TASK_TRANSITIONS, TERMINAL_INFERENCE_USAGE_CLIENT_VERSION_MAX_LENGTH, TERMINAL_INFERENCE_USAGE_MAX_DURATION_MS, TERMINAL_INFERENCE_USAGE_MAX_TOKENS, TERMINAL_INFERENCE_USAGE_MODEL_MAX_LENGTH, TERMINAL_INFERENCE_USAGE_PROVIDER_MAX_LENGTH, TERMINAL_PROJECTION_SELECTION_CAPABILITY, TaskApprovalResolvedPayloadSchema, TaskApprovePayloadSchema, TaskArtifactPayloadSchema, TaskAwaitApprovalPayloadSchema, TaskCancelPayloadSchema, TaskCancelledPayloadSchema, TaskClaimPayloadSchema, TaskCompletePayloadSchema, TaskDeclinePayloadSchema, TaskFailPayloadSchema, TaskOfferForAgentPayloadSchema, TaskOfferForAgentWithEgressFreshPayloadSchema, TaskOfferForAgentWithEgressPayloadSchema, TaskOfferPayloadSchema, TaskOfferPreparedPayloadSchema, TaskOfferWithToolsetsPayloadSchema, TaskProgressPayloadSchema, TaskRejectPayloadSchema, TaskStartedPayloadSchema, TaskSteerPayloadSchema, TerminalInferenceUsageSchema, TerminalPreparedObservationSchema, TerminalProjectionContractSchema, TerminalProjectionSelectionSchema, TokenRequestSchema, TokenResponseSchema, ToolsetIdSchema, UnknownAgentEventSchema, UnknownMessageTypeError, agentMemoryIntentFetchResponseSchemaFor, agentMemoryProjectionBase64UrlByteLength, byokAgentHomeProjectionCompletionPath, byokBlobContentPath, byokBlobFinalizePath, byokBlobUrlPath, byokInputPreparationCompletionPath, byokInputPreparationStatusPath, byokRecordPath, byokSkillPackFilePath, canTransition, checkResultDocument, createEnvelope, decodeEnvelope, encodeEnvelope, isKnownAgentEvent, isServerToDaemonType, isTaskOfferType, parseMessage, partitionAgentEvents };
|
|
1614
1936
|
//# sourceMappingURL=index.js.map
|
|
1615
1937
|
//# sourceMappingURL=index.js.map
|