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/DESIGN.md +0 -16
- package/dist/boundaries.d.ts +0 -1
- package/dist/boundaries.d.ts.map +1 -1
- package/dist/compress.d.ts.map +1 -1
- package/dist/decompress.d.ts +0 -25
- package/dist/decompress.d.ts.map +1 -1
- package/dist/hide-consumed.d.ts +0 -4
- package/dist/hide-consumed.d.ts.map +1 -1
- package/dist/index.d.ts +3 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +266 -593
- package/dist/index.js.map +1 -1
- package/dist/persist/index.js +4 -43
- package/dist/persist/index.js.map +1 -1
- package/dist/persist/store.d.ts +1 -13
- package/dist/persist/store.d.ts.map +1 -1
- package/dist/protected.d.ts.map +1 -1
- package/dist/prune.d.ts +0 -15
- package/dist/prune.d.ts.map +1 -1
- package/dist/recommend.d.ts +1 -0
- package/dist/recommend.d.ts.map +1 -1
- package/dist/report.d.ts.map +1 -1
- package/dist/search/algorithms/hybrid.d.ts.map +1 -1
- package/dist/search/doc-cache.d.ts +10 -34
- package/dist/search/doc-cache.d.ts.map +1 -1
- package/dist/sync.d.ts.map +1 -1
- package/dist/types.d.ts +0 -21
- package/dist/types.d.ts.map +1 -1
- package/dist/wire/anthropic.d.ts +1 -1
- package/dist/wire/anthropic.d.ts.map +1 -1
- package/dist/wire/index.js +2 -8
- package/dist/wire/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/message-kind.d.ts +0 -11
- package/dist/message-kind.d.ts.map +0 -1
- package/dist/segment.d.ts +0 -33
- package/dist/segment.d.ts.map +0 -1
package/package.json
CHANGED
package/dist/message-kind.d.ts
DELETED
|
@@ -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
|
package/dist/segment.d.ts.map
DELETED
|
@@ -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"}
|