acp-kernel 0.0.89-pr.415.269 → 0.0.89

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acp-kernel",
3
- "version": "0.0.89-pr.415.269",
3
+ "version": "0.0.89",
4
4
  "description": "Framework-agnostic context-compression engine (model-driven, 3-tier LSM). Pure core: no host dependency.",
5
5
  "license": "MIT",
6
6
  "author": "ranxianglei",
@@ -1,11 +0,0 @@
1
- import type { CoreMessage } from "./types.js";
2
- /**
3
- * The single "tool message" definition for all accounting surfaces
4
- * (status report, compressible ranges, context breakdown). A message is a
5
- * tool message when it is a tool call OR its result — never by `toolName`
6
- * presence: wire converters only set toolName on the call side, so a
7
- * toolName-based check silently classifies every tool-result as text
8
- * (issue #390).
9
- */
10
- export declare function isToolMessage(message: CoreMessage): boolean;
11
- //# sourceMappingURL=message-kind.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-kind.d.ts","sourceRoot":"","sources":["../src/message-kind.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAE3D"}
package/dist/segment.d.ts DELETED
@@ -1,33 +0,0 @@
1
- /**
2
- * Shared conversation segmentation — the single primitive both range views
3
- * build on. `buildCompressibleRanges` (recommend.ts) and the uncompressed
4
- * status view (report.ts) must segment identically or the same session renders
5
- * two disagreeing pictures of where its turns are; the split rule therefore
6
- * lives here, once. Each view supplies per-item `gapBefore` / `isUser` from its
7
- * own base set and aggregates its own output fields per group.
8
- */
9
- export interface SegmentItem {
10
- /** Display ref (mNNNNN); used verbatim as a group boundary, never parsed. */
11
- ref: string;
12
- /** A numbered-ref message was physically skipped between this item and the
13
- * previous one in the source array. Callers compute it from ARRAY positions
14
- * — never from ref arithmetic. */
15
- gapBefore: boolean;
16
- /** True when this item is a user-role message (turn boundary candidate). */
17
- isUser: boolean;
18
- }
19
- /**
20
- * Group items into contiguous segments. Split rules (identical to
21
- * opencode-acp's buildCompressibleRanges condition):
22
- * - a real array gap (`item.gapBefore`) always starts a new segment, AND
23
- * - a user message starts a new segment once the current one holds >= 3 items.
24
- *
25
- * Segmentation is ARRAY ADJACENCY, never ref arithmetic. Surface-replacing
26
- * hosts leave holes in the ref map (compressed messages left the array but keep
27
- * their refs) and insert mid-array summary nodes with fresh HIGH refs; ref
28
- * contiguity fragments every range there and emits startRef > endRef pairs.
29
- * Unrefed / BLOCKED entries consume no slot. Dense append-only hosts: both
30
- * rules coincide, so behavior is byte-identical to the old merge.
31
- */
32
- export declare function segmentGroups<T extends SegmentItem>(items: readonly T[]): T[][];
33
- //# sourceMappingURL=segment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"segment.d.ts","sourceRoot":"","sources":["../src/segment.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,WAAW,WAAW;IAC1B,6EAA6E;IAC7E,GAAG,EAAE,MAAM,CAAC;IACZ;;uCAEmC;IACnC,SAAS,EAAE,OAAO,CAAC;IACnB,4EAA4E;IAC5E,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,WAAW,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,GAAG,CAAC,EAAE,EAAE,CAa/E"}