@byok-sdk/protocol 0.25.0 → 0.26.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/dist/envelope.d.ts +50 -0
- package/dist/http-api.d.ts +100 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +37 -4
- package/dist/index.js.map +1 -1
- package/dist/messages.d.ts +167 -0
- package/dist/version.d.ts +9 -1
- package/package.json +1 -1
package/dist/messages.d.ts
CHANGED
|
@@ -301,6 +301,19 @@ export declare const TaskOfferWithToolsetsPayloadSchema: z.ZodObject<{
|
|
|
301
301
|
requiredToolsets: z.ZodArray<z.ZodString>;
|
|
302
302
|
}, z.core.$strict>;
|
|
303
303
|
export type TaskOfferWithToolsetsPayload = z.infer<typeof TaskOfferWithToolsetsPayloadSchema>;
|
|
304
|
+
/**
|
|
305
|
+
* How an Agent Attempt uses its Agent home. `memory-reader` runs the Attempt
|
|
306
|
+
* in its own run directory, `<home>/.byok/runs/<taskId>/`, beside other
|
|
307
|
+
* reader Attempts and at most one writer Attempt. The home stays an ancestor
|
|
308
|
+
* of that cwd, so the runtime still finds the persona and memory. Absent means
|
|
309
|
+
* a writer: the Attempt runs in the canonical home, and one home has at most
|
|
310
|
+
* one writer at a time. The SDK does not make memory read-only; a reader
|
|
311
|
+
* terminal reports memory changes in `agentHomeMemoryChange`. A host sends this
|
|
312
|
+
* field only to a device that advertises `agent-home-readers`: the Agent
|
|
313
|
+
* offers are strict, so an older daemon cannot accept it.
|
|
314
|
+
*/
|
|
315
|
+
export declare const AgentHomeAccessSchema: z.ZodLiteral<"memory-reader">;
|
|
316
|
+
export type AgentHomeAccess = z.infer<typeof AgentHomeAccessSchema>;
|
|
304
317
|
/**
|
|
305
318
|
* Strict additive offer for a durable host-owned Agent. An older daemon that
|
|
306
319
|
* does not advertise `agent-home-contract` skips this distinct message type
|
|
@@ -320,6 +333,7 @@ export declare const TaskOfferForAgentPayloadSchema: z.ZodObject<{
|
|
|
320
333
|
agentId: z.ZodString;
|
|
321
334
|
profileRevision: z.ZodString;
|
|
322
335
|
}, z.core.$strict>;
|
|
336
|
+
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
323
337
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
324
338
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
325
339
|
claude: "claude";
|
|
@@ -385,6 +399,7 @@ export declare const TaskOfferForAgentWithEgressPayloadSchema: z.ZodObject<{
|
|
|
385
399
|
agentId: z.ZodString;
|
|
386
400
|
profileRevision: z.ZodString;
|
|
387
401
|
}, z.core.$strict>;
|
|
402
|
+
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
388
403
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
389
404
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
390
405
|
claude: "claude";
|
|
@@ -487,6 +502,7 @@ export declare const TaskOfferForAgentWithEgressFreshPayloadSchema: z.ZodObject<
|
|
|
487
502
|
agentId: z.ZodString;
|
|
488
503
|
profileRevision: z.ZodString;
|
|
489
504
|
}, z.core.$strict>;
|
|
505
|
+
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
490
506
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
491
507
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
492
508
|
claude: "claude";
|
|
@@ -593,6 +609,7 @@ export declare const TaskOfferPreparedPayloadSchema: z.ZodObject<{
|
|
|
593
609
|
agentId: z.ZodString;
|
|
594
610
|
profileRevision: z.ZodString;
|
|
595
611
|
}, z.core.$strict>;
|
|
612
|
+
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
596
613
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
597
614
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
598
615
|
claude: "claude";
|
|
@@ -1496,6 +1513,56 @@ export declare const TerminalPreparedObservationSchema: z.ZodObject<{
|
|
|
1496
1513
|
maxPromptTokens: z.ZodNumber;
|
|
1497
1514
|
}, z.core.$strict>;
|
|
1498
1515
|
export type TerminalPreparedObservation = z.infer<typeof TerminalPreparedObservationSchema>;
|
|
1516
|
+
/**
|
|
1517
|
+
* The task-free Agent-home projection (`agent.home_projection`) that the
|
|
1518
|
+
* device had already applied when an Agent Attempt started. The writer lease
|
|
1519
|
+
* keeps a new projection out of the home until the Attempt ends, so this is
|
|
1520
|
+
* the persona the Attempt ran with. The SDK does not compare it with the
|
|
1521
|
+
* offer's `agentRef.profileRevision`: the host decides whether a mismatch
|
|
1522
|
+
* matters. Absent when the task was not Agent-bound, or when the home had no
|
|
1523
|
+
* applied projection record.
|
|
1524
|
+
*/
|
|
1525
|
+
export declare const TerminalAgentHomeProjectionSchema: z.ZodObject<{
|
|
1526
|
+
profileRevision: z.ZodString;
|
|
1527
|
+
projectionHash: z.ZodString;
|
|
1528
|
+
}, z.core.$strict>;
|
|
1529
|
+
export type TerminalAgentHomeProjection = z.infer<typeof TerminalAgentHomeProjectionSchema>;
|
|
1530
|
+
/** Maximum memory files one reader digest covers: `MEMORY.md` plus every entry under `notes/`. */
|
|
1531
|
+
export declare const AGENT_HOME_MEMORY_DIGEST_MAX_FILES = 256;
|
|
1532
|
+
/** Maximum bytes of memory files one reader digest reads. */
|
|
1533
|
+
export declare const AGENT_HOME_MEMORY_DIGEST_MAX_BYTES: number;
|
|
1534
|
+
/** Maximum length of one changed memory path, relative to the Agent home. */
|
|
1535
|
+
export declare const AGENT_HOME_MEMORY_PATH_MAX_LENGTH = 1024;
|
|
1536
|
+
/**
|
|
1537
|
+
* Memory-change evidence of one `memory-reader` Attempt. The device hashes
|
|
1538
|
+
* `MEMORY.md` and every file under `notes/` when the reader starts and again
|
|
1539
|
+
* at its terminal, and compares the two digests.
|
|
1540
|
+
*
|
|
1541
|
+
* - `unchanged`: the digests are equal.
|
|
1542
|
+
* - `reader-attributed`: the digests differ and no writer Attempt of the home
|
|
1543
|
+
* overlapped this reader. A reader Attempt changed memory: this one, or
|
|
1544
|
+
* another reader that overlapped it.
|
|
1545
|
+
* - `unattributed`: the digests differ and a writer Attempt overlapped this
|
|
1546
|
+
* reader, so the change has no single source.
|
|
1547
|
+
* - `unmeasured`: the digest bound was exceeded, or a read failed.
|
|
1548
|
+
*
|
|
1549
|
+
* `paths` lists the changed files relative to the home, with `/` separators.
|
|
1550
|
+
* The device sees only Attempts it runs; a host that writes memory files
|
|
1551
|
+
* itself while readers run makes the attribution ambiguous. Absent on writer
|
|
1552
|
+
* terminals and on a claimed failure before the Attempt became active.
|
|
1553
|
+
*/
|
|
1554
|
+
export declare const TerminalAgentHomeMemoryChangeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1555
|
+
outcome: z.ZodLiteral<"unchanged">;
|
|
1556
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1557
|
+
outcome: z.ZodLiteral<"reader-attributed">;
|
|
1558
|
+
paths: z.ZodArray<z.ZodString>;
|
|
1559
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1560
|
+
outcome: z.ZodLiteral<"unattributed">;
|
|
1561
|
+
paths: z.ZodArray<z.ZodString>;
|
|
1562
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1563
|
+
outcome: z.ZodLiteral<"unmeasured">;
|
|
1564
|
+
}, z.core.$strict>], "outcome">;
|
|
1565
|
+
export type TerminalAgentHomeMemoryChange = z.infer<typeof TerminalAgentHomeMemoryChangeSchema>;
|
|
1499
1566
|
/**
|
|
1500
1567
|
* daemon -> server: task finished successfully.
|
|
1501
1568
|
*
|
|
@@ -1525,6 +1592,7 @@ export type TerminalPreparedObservation = z.infer<typeof TerminalPreparedObserva
|
|
|
1525
1592
|
export declare const TaskCompletePayloadSchema: z.ZodObject<{
|
|
1526
1593
|
harnessId: z.ZodOptional<z.ZodString>;
|
|
1527
1594
|
summary: z.ZodString;
|
|
1595
|
+
finalMessage: z.ZodOptional<z.ZodString>;
|
|
1528
1596
|
sessionRef: z.ZodString;
|
|
1529
1597
|
artifactRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1530
1598
|
blobId: z.ZodString;
|
|
@@ -1557,6 +1625,21 @@ export declare const TaskCompletePayloadSchema: z.ZodObject<{
|
|
|
1557
1625
|
agentId: z.ZodString;
|
|
1558
1626
|
profileRevision: z.ZodString;
|
|
1559
1627
|
}, z.core.$strict>>;
|
|
1628
|
+
agentHomeProjection: z.ZodOptional<z.ZodObject<{
|
|
1629
|
+
profileRevision: z.ZodString;
|
|
1630
|
+
projectionHash: z.ZodString;
|
|
1631
|
+
}, z.core.$strict>>;
|
|
1632
|
+
agentHomeMemoryChange: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1633
|
+
outcome: z.ZodLiteral<"unchanged">;
|
|
1634
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1635
|
+
outcome: z.ZodLiteral<"reader-attributed">;
|
|
1636
|
+
paths: z.ZodArray<z.ZodString>;
|
|
1637
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1638
|
+
outcome: z.ZodLiteral<"unattributed">;
|
|
1639
|
+
paths: z.ZodArray<z.ZodString>;
|
|
1640
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1641
|
+
outcome: z.ZodLiteral<"unmeasured">;
|
|
1642
|
+
}, z.core.$strict>], "outcome">>;
|
|
1560
1643
|
}, z.core.$strip>;
|
|
1561
1644
|
export type TaskCompletePayload = z.infer<typeof TaskCompletePayloadSchema>;
|
|
1562
1645
|
/** daemon -> server: task failed. */
|
|
@@ -1591,6 +1674,21 @@ export declare const TaskFailPayloadSchema: z.ZodObject<{
|
|
|
1591
1674
|
agentId: z.ZodString;
|
|
1592
1675
|
profileRevision: z.ZodString;
|
|
1593
1676
|
}, z.core.$strict>>;
|
|
1677
|
+
agentHomeProjection: z.ZodOptional<z.ZodObject<{
|
|
1678
|
+
profileRevision: z.ZodString;
|
|
1679
|
+
projectionHash: z.ZodString;
|
|
1680
|
+
}, z.core.$strict>>;
|
|
1681
|
+
agentHomeMemoryChange: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1682
|
+
outcome: z.ZodLiteral<"unchanged">;
|
|
1683
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1684
|
+
outcome: z.ZodLiteral<"reader-attributed">;
|
|
1685
|
+
paths: z.ZodArray<z.ZodString>;
|
|
1686
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1687
|
+
outcome: z.ZodLiteral<"unattributed">;
|
|
1688
|
+
paths: z.ZodArray<z.ZodString>;
|
|
1689
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1690
|
+
outcome: z.ZodLiteral<"unmeasured">;
|
|
1691
|
+
}, z.core.$strict>], "outcome">>;
|
|
1594
1692
|
}, z.core.$strip>;
|
|
1595
1693
|
export type TaskFailPayload = z.infer<typeof TaskFailPayloadSchema>;
|
|
1596
1694
|
/**
|
|
@@ -1633,6 +1731,21 @@ export declare const TaskCancelledPayloadSchema: z.ZodObject<{
|
|
|
1633
1731
|
agentId: z.ZodString;
|
|
1634
1732
|
profileRevision: z.ZodString;
|
|
1635
1733
|
}, z.core.$strict>>;
|
|
1734
|
+
agentHomeProjection: z.ZodOptional<z.ZodObject<{
|
|
1735
|
+
profileRevision: z.ZodString;
|
|
1736
|
+
projectionHash: z.ZodString;
|
|
1737
|
+
}, z.core.$strict>>;
|
|
1738
|
+
agentHomeMemoryChange: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1739
|
+
outcome: z.ZodLiteral<"unchanged">;
|
|
1740
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1741
|
+
outcome: z.ZodLiteral<"reader-attributed">;
|
|
1742
|
+
paths: z.ZodArray<z.ZodString>;
|
|
1743
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1744
|
+
outcome: z.ZodLiteral<"unattributed">;
|
|
1745
|
+
paths: z.ZodArray<z.ZodString>;
|
|
1746
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1747
|
+
outcome: z.ZodLiteral<"unmeasured">;
|
|
1748
|
+
}, z.core.$strict>], "outcome">>;
|
|
1636
1749
|
}, z.core.$strip>;
|
|
1637
1750
|
export type TaskCancelledPayload = z.infer<typeof TaskCancelledPayloadSchema>;
|
|
1638
1751
|
/**
|
|
@@ -1798,6 +1911,7 @@ declare const TASK_OFFER_PAYLOAD_SCHEMAS: {
|
|
|
1798
1911
|
agentId: z.ZodString;
|
|
1799
1912
|
profileRevision: z.ZodString;
|
|
1800
1913
|
}, z.core.$strict>;
|
|
1914
|
+
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
1801
1915
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1802
1916
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
1803
1917
|
claude: "claude";
|
|
@@ -1857,6 +1971,7 @@ declare const TASK_OFFER_PAYLOAD_SCHEMAS: {
|
|
|
1857
1971
|
agentId: z.ZodString;
|
|
1858
1972
|
profileRevision: z.ZodString;
|
|
1859
1973
|
}, z.core.$strict>;
|
|
1974
|
+
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
1860
1975
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1861
1976
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
1862
1977
|
claude: "claude";
|
|
@@ -1952,6 +2067,7 @@ declare const TASK_OFFER_PAYLOAD_SCHEMAS: {
|
|
|
1952
2067
|
agentId: z.ZodString;
|
|
1953
2068
|
profileRevision: z.ZodString;
|
|
1954
2069
|
}, z.core.$strict>;
|
|
2070
|
+
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
1955
2071
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1956
2072
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
1957
2073
|
claude: "claude";
|
|
@@ -2037,6 +2153,7 @@ declare const TASK_OFFER_PAYLOAD_SCHEMAS: {
|
|
|
2037
2153
|
agentId: z.ZodString;
|
|
2038
2154
|
profileRevision: z.ZodString;
|
|
2039
2155
|
}, z.core.$strict>;
|
|
2156
|
+
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
2040
2157
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2041
2158
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2042
2159
|
claude: "claude";
|
|
@@ -2246,6 +2363,7 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2246
2363
|
agentId: z.ZodString;
|
|
2247
2364
|
profileRevision: z.ZodString;
|
|
2248
2365
|
}, z.core.$strict>;
|
|
2366
|
+
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
2249
2367
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2250
2368
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2251
2369
|
claude: "claude";
|
|
@@ -2305,6 +2423,7 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2305
2423
|
agentId: z.ZodString;
|
|
2306
2424
|
profileRevision: z.ZodString;
|
|
2307
2425
|
}, z.core.$strict>;
|
|
2426
|
+
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
2308
2427
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2309
2428
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2310
2429
|
claude: "claude";
|
|
@@ -2400,6 +2519,7 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2400
2519
|
agentId: z.ZodString;
|
|
2401
2520
|
profileRevision: z.ZodString;
|
|
2402
2521
|
}, z.core.$strict>;
|
|
2522
|
+
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
2403
2523
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2404
2524
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2405
2525
|
claude: "claude";
|
|
@@ -2485,6 +2605,7 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2485
2605
|
agentId: z.ZodString;
|
|
2486
2606
|
profileRevision: z.ZodString;
|
|
2487
2607
|
}, z.core.$strict>;
|
|
2608
|
+
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
2488
2609
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2489
2610
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2490
2611
|
claude: "claude";
|
|
@@ -3091,6 +3212,7 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
3091
3212
|
readonly 'task.complete': z.ZodObject<{
|
|
3092
3213
|
harnessId: z.ZodOptional<z.ZodString>;
|
|
3093
3214
|
summary: z.ZodString;
|
|
3215
|
+
finalMessage: z.ZodOptional<z.ZodString>;
|
|
3094
3216
|
sessionRef: z.ZodString;
|
|
3095
3217
|
artifactRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3096
3218
|
blobId: z.ZodString;
|
|
@@ -3123,6 +3245,21 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
3123
3245
|
agentId: z.ZodString;
|
|
3124
3246
|
profileRevision: z.ZodString;
|
|
3125
3247
|
}, z.core.$strict>>;
|
|
3248
|
+
agentHomeProjection: z.ZodOptional<z.ZodObject<{
|
|
3249
|
+
profileRevision: z.ZodString;
|
|
3250
|
+
projectionHash: z.ZodString;
|
|
3251
|
+
}, z.core.$strict>>;
|
|
3252
|
+
agentHomeMemoryChange: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3253
|
+
outcome: z.ZodLiteral<"unchanged">;
|
|
3254
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3255
|
+
outcome: z.ZodLiteral<"reader-attributed">;
|
|
3256
|
+
paths: z.ZodArray<z.ZodString>;
|
|
3257
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3258
|
+
outcome: z.ZodLiteral<"unattributed">;
|
|
3259
|
+
paths: z.ZodArray<z.ZodString>;
|
|
3260
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3261
|
+
outcome: z.ZodLiteral<"unmeasured">;
|
|
3262
|
+
}, z.core.$strict>], "outcome">>;
|
|
3126
3263
|
}, z.core.$strip>;
|
|
3127
3264
|
readonly 'task.fail': z.ZodObject<{
|
|
3128
3265
|
recovery: z.ZodOptional<z.ZodObject<{
|
|
@@ -3155,6 +3292,21 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
3155
3292
|
agentId: z.ZodString;
|
|
3156
3293
|
profileRevision: z.ZodString;
|
|
3157
3294
|
}, z.core.$strict>>;
|
|
3295
|
+
agentHomeProjection: z.ZodOptional<z.ZodObject<{
|
|
3296
|
+
profileRevision: z.ZodString;
|
|
3297
|
+
projectionHash: z.ZodString;
|
|
3298
|
+
}, z.core.$strict>>;
|
|
3299
|
+
agentHomeMemoryChange: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3300
|
+
outcome: z.ZodLiteral<"unchanged">;
|
|
3301
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3302
|
+
outcome: z.ZodLiteral<"reader-attributed">;
|
|
3303
|
+
paths: z.ZodArray<z.ZodString>;
|
|
3304
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3305
|
+
outcome: z.ZodLiteral<"unattributed">;
|
|
3306
|
+
paths: z.ZodArray<z.ZodString>;
|
|
3307
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3308
|
+
outcome: z.ZodLiteral<"unmeasured">;
|
|
3309
|
+
}, z.core.$strict>], "outcome">>;
|
|
3158
3310
|
}, z.core.$strip>;
|
|
3159
3311
|
readonly 'task.cancelled': z.ZodObject<{
|
|
3160
3312
|
harnessId: z.ZodOptional<z.ZodString>;
|
|
@@ -3177,6 +3329,21 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
3177
3329
|
agentId: z.ZodString;
|
|
3178
3330
|
profileRevision: z.ZodString;
|
|
3179
3331
|
}, z.core.$strict>>;
|
|
3332
|
+
agentHomeProjection: z.ZodOptional<z.ZodObject<{
|
|
3333
|
+
profileRevision: z.ZodString;
|
|
3334
|
+
projectionHash: z.ZodString;
|
|
3335
|
+
}, z.core.$strict>>;
|
|
3336
|
+
agentHomeMemoryChange: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3337
|
+
outcome: z.ZodLiteral<"unchanged">;
|
|
3338
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3339
|
+
outcome: z.ZodLiteral<"reader-attributed">;
|
|
3340
|
+
paths: z.ZodArray<z.ZodString>;
|
|
3341
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3342
|
+
outcome: z.ZodLiteral<"unattributed">;
|
|
3343
|
+
paths: z.ZodArray<z.ZodString>;
|
|
3344
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3345
|
+
outcome: z.ZodLiteral<"unmeasured">;
|
|
3346
|
+
}, z.core.$strict>], "outcome">>;
|
|
3180
3347
|
}, z.core.$strip>;
|
|
3181
3348
|
readonly 'task.approval_resolved': z.ZodObject<{
|
|
3182
3349
|
approvalId: z.ZodString;
|
package/dist/version.d.ts
CHANGED
|
@@ -37,6 +37,14 @@ export declare const MAILBOX_READ_AHEAD_CAPABILITY = "mailbox-read-ahead";
|
|
|
37
37
|
export declare const PROTOCOL_VERSION = 2;
|
|
38
38
|
/** Host declares that this device accepts only Agent-bound offer variants. */
|
|
39
39
|
export declare const STRICT_AGENT_ONLY_CAPABILITY: 'strict-agent-only';
|
|
40
|
+
/**
|
|
41
|
+
* The device runs `homeAccess: 'memory-reader'` Agent offers: each reader
|
|
42
|
+
* Attempt gets its own run directory under the Agent home, and readers are
|
|
43
|
+
* counted apart from the one writer. The Agent offers are strict, so a host
|
|
44
|
+
* must refuse a reader offer to a device without this flag before it creates
|
|
45
|
+
* the task.
|
|
46
|
+
*/
|
|
47
|
+
export declare const AGENT_HOME_READERS_CAPABILITY: 'agent-home-readers';
|
|
40
48
|
/**
|
|
41
49
|
* Capability flags exchanged during the connection handshake (`conn.hello` /
|
|
42
50
|
* `conn.ack`). Additional flags may be introduced without a protocol version
|
|
@@ -116,5 +124,5 @@ export declare const STRICT_AGENT_ONLY_CAPABILITY: 'strict-agent-only';
|
|
|
116
124
|
* cannot accidentally execute the instruction without the required tools.
|
|
117
125
|
*/
|
|
118
126
|
export declare const CUSTOM_HARNESS_CAPABILITY: 'custom-harness';
|
|
119
|
-
export declare const CAPABILITY_FLAGS: readonly ['steer', 'blob-upload', 'interactive-approval', 'approval_resolved', 'approval-targeting', 'result-document', 'dispatch-selection', "provider-profile-binding", 'toolset-selection', 'agent-home-contract', "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"];
|
|
127
|
+
export declare const CAPABILITY_FLAGS: readonly ['steer', 'blob-upload', 'interactive-approval', 'approval_resolved', 'approval-targeting', 'result-document', '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"];
|
|
120
128
|
export type CapabilityFlag = (typeof CAPABILITY_FLAGS)[number];
|