@byok-sdk/protocol 0.27.0 → 0.28.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.
@@ -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 {};
@@ -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`. No v3 release has been
24
- * published, so no row is proven against a published v3 decoder yet
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.27.0",
3
+ "version": "0.28.0",
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
  }