@frockbot/kernel-contracts 0.3.15 → 0.3.16
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/package.json +1 -1
- package/src/session.ts +2 -2
- package/src/tool-attachments.test.ts +3 -4
package/package.json
CHANGED
package/src/session.ts
CHANGED
|
@@ -216,8 +216,8 @@ export class Session {
|
|
|
216
216
|
* Resolved attachment bytes, keyed by content hash, held only while this
|
|
217
217
|
* Session is resident.
|
|
218
218
|
*
|
|
219
|
-
*
|
|
220
|
-
*
|
|
219
|
+
* A screenshot in the session log would multiply durable storage and prompt
|
|
220
|
+
* size even though the Bot authority pages and chunks large events, so an
|
|
221
221
|
* attachment records a Workspace path and a content hash and nothing else.
|
|
222
222
|
* A tool that produced the bytes offers them here, and the request derived
|
|
223
223
|
* while they are still held carries them to a model that can see images. On
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
// Tool result attachments: what may be recorded, and what may not.
|
|
2
2
|
//
|
|
3
3
|
// The one rule worth a suite of its own is that resolved bytes are never
|
|
4
|
-
// durable.
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
// than trimming it somewhere further down.
|
|
4
|
+
// durable. A base64 screenshot recorded in the paged session log would still
|
|
5
|
+
// multiply durable storage and model-request size, so the decoder refuses
|
|
6
|
+
// `dataBase64` on the durable side rather than trimming it further down.
|
|
8
7
|
import { describe, expect, test } from "bun:test";
|
|
9
8
|
import {
|
|
10
9
|
decodeToolAttachmentsV1,
|