@byok-sdk/protocol 0.28.3 → 0.29.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/capability-constants.d.ts +2 -0
- package/dist/constants.js +3 -1
- package/dist/constants.js.map +1 -1
- package/dist/envelope.d.ts +15 -0
- package/dist/http-api.d.ts +15 -0
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/messages.d.ts +50 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/messages.d.ts
CHANGED
|
@@ -325,6 +325,11 @@ export type AgentHomeAccess = z.infer<typeof AgentHomeAccessSchema>;
|
|
|
325
325
|
* Strict additive offer for a durable host-owned Agent. An older daemon that
|
|
326
326
|
* does not advertise `agent-home-contract` skips this distinct message type
|
|
327
327
|
* instead of stripping identity and applying legacy workspace semantics.
|
|
328
|
+
*
|
|
329
|
+
* `agentMemory` selects the Agent memory of this one task, with the values of
|
|
330
|
+
* the prepared offer. Absent keeps the daemon admission. A host sends it only
|
|
331
|
+
* to a device that advertises `agent-memory-selection`. The prepared offer
|
|
332
|
+
* replaces it with its own required selection.
|
|
328
333
|
*/
|
|
329
334
|
export declare const TaskOfferForAgentPayloadSchema: z.ZodObject<{
|
|
330
335
|
instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -341,6 +346,11 @@ export declare const TaskOfferForAgentPayloadSchema: z.ZodObject<{
|
|
|
341
346
|
profileRevision: z.ZodString;
|
|
342
347
|
}, z.core.$strict>;
|
|
343
348
|
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
349
|
+
agentMemory: z.ZodOptional<z.ZodEnum<{
|
|
350
|
+
none: "none";
|
|
351
|
+
read: "read";
|
|
352
|
+
"read-write": "read-write";
|
|
353
|
+
}>>;
|
|
344
354
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
345
355
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
346
356
|
claude: "claude";
|
|
@@ -408,6 +418,11 @@ export declare const TaskOfferForAgentWithEgressPayloadSchema: z.ZodObject<{
|
|
|
408
418
|
profileRevision: z.ZodString;
|
|
409
419
|
}, z.core.$strict>;
|
|
410
420
|
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
421
|
+
agentMemory: z.ZodOptional<z.ZodEnum<{
|
|
422
|
+
none: "none";
|
|
423
|
+
read: "read";
|
|
424
|
+
"read-write": "read-write";
|
|
425
|
+
}>>;
|
|
411
426
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
412
427
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
413
428
|
claude: "claude";
|
|
@@ -512,6 +527,11 @@ export declare const TaskOfferForAgentWithEgressFreshPayloadSchema: z.ZodObject<
|
|
|
512
527
|
profileRevision: z.ZodString;
|
|
513
528
|
}, z.core.$strict>;
|
|
514
529
|
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
530
|
+
agentMemory: z.ZodOptional<z.ZodEnum<{
|
|
531
|
+
none: "none";
|
|
532
|
+
read: "read";
|
|
533
|
+
"read-write": "read-write";
|
|
534
|
+
}>>;
|
|
515
535
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
516
536
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
517
537
|
claude: "claude";
|
|
@@ -1932,6 +1952,11 @@ declare const TASK_OFFER_PAYLOAD_SCHEMAS: {
|
|
|
1932
1952
|
profileRevision: z.ZodString;
|
|
1933
1953
|
}, z.core.$strict>;
|
|
1934
1954
|
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
1955
|
+
agentMemory: z.ZodOptional<z.ZodEnum<{
|
|
1956
|
+
none: "none";
|
|
1957
|
+
read: "read";
|
|
1958
|
+
"read-write": "read-write";
|
|
1959
|
+
}>>;
|
|
1935
1960
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1936
1961
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
1937
1962
|
claude: "claude";
|
|
@@ -1993,6 +2018,11 @@ declare const TASK_OFFER_PAYLOAD_SCHEMAS: {
|
|
|
1993
2018
|
profileRevision: z.ZodString;
|
|
1994
2019
|
}, z.core.$strict>;
|
|
1995
2020
|
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
2021
|
+
agentMemory: z.ZodOptional<z.ZodEnum<{
|
|
2022
|
+
none: "none";
|
|
2023
|
+
read: "read";
|
|
2024
|
+
"read-write": "read-write";
|
|
2025
|
+
}>>;
|
|
1996
2026
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1997
2027
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
1998
2028
|
claude: "claude";
|
|
@@ -2090,6 +2120,11 @@ declare const TASK_OFFER_PAYLOAD_SCHEMAS: {
|
|
|
2090
2120
|
profileRevision: z.ZodString;
|
|
2091
2121
|
}, z.core.$strict>;
|
|
2092
2122
|
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
2123
|
+
agentMemory: z.ZodOptional<z.ZodEnum<{
|
|
2124
|
+
none: "none";
|
|
2125
|
+
read: "read";
|
|
2126
|
+
"read-write": "read-write";
|
|
2127
|
+
}>>;
|
|
2093
2128
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2094
2129
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2095
2130
|
claude: "claude";
|
|
@@ -2388,6 +2423,11 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2388
2423
|
profileRevision: z.ZodString;
|
|
2389
2424
|
}, z.core.$strict>;
|
|
2390
2425
|
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
2426
|
+
agentMemory: z.ZodOptional<z.ZodEnum<{
|
|
2427
|
+
none: "none";
|
|
2428
|
+
read: "read";
|
|
2429
|
+
"read-write": "read-write";
|
|
2430
|
+
}>>;
|
|
2391
2431
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2392
2432
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2393
2433
|
claude: "claude";
|
|
@@ -2449,6 +2489,11 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2449
2489
|
profileRevision: z.ZodString;
|
|
2450
2490
|
}, z.core.$strict>;
|
|
2451
2491
|
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
2492
|
+
agentMemory: z.ZodOptional<z.ZodEnum<{
|
|
2493
|
+
none: "none";
|
|
2494
|
+
read: "read";
|
|
2495
|
+
"read-write": "read-write";
|
|
2496
|
+
}>>;
|
|
2452
2497
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2453
2498
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2454
2499
|
claude: "claude";
|
|
@@ -2546,6 +2591,11 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2546
2591
|
profileRevision: z.ZodString;
|
|
2547
2592
|
}, z.core.$strict>;
|
|
2548
2593
|
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
2594
|
+
agentMemory: z.ZodOptional<z.ZodEnum<{
|
|
2595
|
+
none: "none";
|
|
2596
|
+
read: "read";
|
|
2597
|
+
"read-write": "read-write";
|
|
2598
|
+
}>>;
|
|
2549
2599
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2550
2600
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2551
2601
|
claude: "claude";
|
package/dist/version.d.ts
CHANGED
|
@@ -100,5 +100,5 @@ export declare const AGENT_HOME_READERS_CAPABILITY: 'agent-home-readers';
|
|
|
100
100
|
* cannot accidentally execute the instruction without the required tools.
|
|
101
101
|
*/
|
|
102
102
|
export declare const CUSTOM_HARNESS_CAPABILITY: 'custom-harness';
|
|
103
|
-
export declare const CAPABILITY_FLAGS: readonly ['steer', 'blob-upload', 'interactive-approval', 'approval_resolved', 'approval-targeting', 'dispatch-selection', "provider-profile-binding", 'toolset-selection', 'agent-home-contract', "agent-home-readers", "strict-agent-only", "agent-egress-policy", "agent-egress-reliable-ack", "agent-message-egress", "agent-egress-fresh-session", "agent-content-workspace-read", "agent-content-transcript-read", "agent-content-artifact-read", "agent-home-projection", "agent-input-preparation-v9", "terminal-projection-selection", "host-mcp-task-context", "custom-harness", "mailbox-read-ahead", "provider-provisioning.v1", "agent-memory-intent.v1", 'agent-message-draft'];
|
|
103
|
+
export declare const CAPABILITY_FLAGS: readonly ['steer', 'blob-upload', 'interactive-approval', 'approval_resolved', 'approval-targeting', 'dispatch-selection', "provider-profile-binding", 'toolset-selection', 'agent-home-contract', "agent-home-readers", "strict-agent-only", "agent-egress-policy", "agent-egress-reliable-ack", "agent-message-egress", "agent-egress-fresh-session", "agent-content-workspace-read", "agent-content-transcript-read", "agent-content-artifact-read", "agent-home-projection", "agent-input-preparation-v9", "terminal-projection-selection", "host-mcp-task-context", "custom-harness", "mailbox-read-ahead", "provider-provisioning.v1", "agent-memory-intent.v1", "agent-memory-selection", 'agent-message-draft'];
|
|
104
104
|
export type CapabilityFlag = (typeof CAPABILITY_FLAGS)[number];
|