@byok-sdk/protocol 0.27.0 → 0.28.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/bot-turn-outcome.d.ts +252 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +280 -8
- package/dist/index.js.map +1 -1
- package/dist/result-schema.d.ts +7 -0
- package/dist/wire-additions.d.ts +3 -3
- package/package.json +2 -1
package/dist/result-schema.d.ts
CHANGED
|
@@ -92,4 +92,11 @@ export declare function checkResultSchema(schema: unknown): ResultSchemaCheck;
|
|
|
92
92
|
* a sender stages and puts on the wire.
|
|
93
93
|
*/
|
|
94
94
|
export declare function validateResultOutcome(schema: unknown, outcome: unknown): ResultOutcomeCheck;
|
|
95
|
+
/**
|
|
96
|
+
* Conservative canonical UTF-8 bound, or null for an invalid or unbounded schema.
|
|
97
|
+
* Strings cost at most 6 bytes per code point. Number costs 25; integer costs
|
|
98
|
+
* 24, tightened only when both ends have magnitude below 1e21. A bound need
|
|
99
|
+
* not be attainable when constraints intersect or oneOf branches overlap.
|
|
100
|
+
*/
|
|
101
|
+
export declare function resultOutcomeMaxBytes(schema: ResultSchema): number | null;
|
|
95
102
|
export {};
|
package/dist/wire-additions.d.ts
CHANGED
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
* configured for them (Agent home, egress, input preparation, provisioning,
|
|
21
21
|
* memory intents and so on): they gate on the receiver's configuration. The
|
|
22
22
|
* server-advertised `approval_resolved` gate is kept as the daemon's sending
|
|
23
|
-
* condition for `task.approval_resolved`.
|
|
24
|
-
*
|
|
25
|
-
* (`src/__tests__/compat.test.ts`).
|
|
23
|
+
* condition for `task.approval_resolved`. The first stable v3 decoder is
|
|
24
|
+
* 0.27.0. Cross-release checks use its actual registry tarball
|
|
25
|
+
* (`src/__tests__/published-compat.test.ts`).
|
|
26
26
|
*
|
|
27
27
|
* Senders derive their admission flags from {@link requiredReceiverCapabilities}
|
|
28
28
|
* and nowhere else, so a gate cannot exist in one place and be missing in
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byok-sdk/protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.1",
|
|
4
4
|
"description": "BYOK SDK wire protocol: envelope schema, message types, and codec helpers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"zod": "^4.4.3"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
+
"byok-protocol-floor": "https://registry.npmjs.org/@byok-sdk/protocol/-/protocol-0.27.0.tgz",
|
|
55
56
|
"byok-protocol-previous": "https://registry.npmjs.org/@byok-sdk/protocol/-/protocol-0.26.1.tgz"
|
|
56
57
|
}
|
|
57
58
|
}
|