acp-kernel 0.0.74 → 0.0.75

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.
@@ -44,7 +44,10 @@ export declare function buildCompressibleRanges(messages: CoreMessage[], state:
44
44
  * token estimates (tokens*4) instead broke whenever the host injected a
45
45
  * tokenizer where tokens != chars/4 (CJK-aware estimators are ~1:1, so
46
46
  * tokens*4 overestimated size ~4x and nudge recommended ranges the apply
47
- * side then refused). A sub-threshold tail batch is still emitted — callers
48
- * filter by effectiveness separately (see pendingByTier). */
47
+ * side then refused). Invariant: EVERY returned batch alone clears
48
+ * `minChars`. A sub-threshold tail is folded into the preceding batch
49
+ * (overshoot allowed); if no batch precedes it, nothing is emitted — the
50
+ * whole remainder is below the gate, so no selection of it can pass and
51
+ * offering it only yields guaranteed-rejected calls (billion-context #847). */
49
52
  export declare function mergeRangesToThreshold(ranges: CompressibleRange[], minChars: number): CompressibleRange[];
50
53
  //# sourceMappingURL=recommend.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recommend.d.ts","sourceRoot":"","sources":["../src/recommend.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EACV,iBAAiB,EACjB,MAAM,EACN,aAAa,EACb,WAAW,EAEZ,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAgBnD,wBAAgB,aAAa,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAE3D;AAgBD;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,WAAW,EAAE,EACvB,KAAK,EAAE,gBAAgB,EACvB,MAAM,EAAE,MAAM,EACd,WAAW,GAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAA2B,GACzD,GAAG,CAAC,MAAM,CAAC,CAwDb;AAID;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,WA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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acp-kernel",
3
- "version": "0.0.74",
3
+ "version": "0.0.75",
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",