acp-kernel 0.0.37 → 0.0.39
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/boundaries.d.ts +11 -2
- package/dist/boundaries.d.ts.map +1 -1
- package/dist/compress.d.ts.map +1 -1
- package/dist/index.d.ts +10 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +194 -66
- package/dist/index.js.map +1 -1
- package/dist/prune.d.ts +15 -0
- package/dist/prune.d.ts.map +1 -1
- package/dist/sync.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/prune.d.ts
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
import type { CompressionState, CoreMessage } from "./types.js";
|
|
2
2
|
export declare const SUMMARY_HEADER = "[Compressed conversation section]";
|
|
3
|
+
/**
|
|
4
|
+
* The transient visible id of an active block's rendered summary message.
|
|
5
|
+
* This is a VIEW-ONLY representation: it must never be persisted into
|
|
6
|
+
* `effectiveMessageIds`/`directMessageIds` (the durable coverage is the
|
|
7
|
+
* block's raw message ids).
|
|
8
|
+
*/
|
|
9
|
+
export declare function summaryMessageId(blockId: string): string;
|
|
10
|
+
export declare function isSummaryMessageId(id: string): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* True when a message is a rendered block summary (the exact shape prune
|
|
13
|
+
* emits). The id prefix alone is not sufficient — a host-authored message
|
|
14
|
+
* that happens to carry a reserved id must not be treated as a rendered
|
|
15
|
+
* summary (it would be silently dropped from ranges or deleted by rebuild).
|
|
16
|
+
*/
|
|
17
|
+
export declare function isRenderedSummaryMessage(message: Pick<CoreMessage, "id" | "role" | "contentType">): boolean;
|
|
3
18
|
export interface PruneOptions {
|
|
4
19
|
injectSummaries?: boolean;
|
|
5
20
|
}
|
package/dist/prune.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prune.d.ts","sourceRoot":"","sources":["../src/prune.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEhE,eAAO,MAAM,cAAc,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"prune.d.ts","sourceRoot":"","sources":["../src/prune.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEhE,eAAO,MAAM,cAAc,sCAAsC,CAAC;AAOlE;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAEtD;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,GAAG,MAAM,GAAG,aAAa,CAAC,GACxD,OAAO,CAMT;AAED,MAAM,WAAW,YAAY;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,wBAAgB,KAAK,CACnB,QAAQ,EAAE,WAAW,EAAE,EACvB,KAAK,EAAE,gBAAgB,EACvB,OAAO,GAAE,YAAiB,GACzB,WAAW,EAAE,CA4Bf"}
|
package/dist/sync.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../src/sync.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../src/sync.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEhE,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,gBAAgB,CAAC;IACxB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,wBAAgB,UAAU,CACxB,QAAQ,EAAE,WAAW,EAAE,EACvB,KAAK,EAAE,gBAAgB,GACtB,UAAU,CAqEZ"}
|
package/package.json
CHANGED