mirror of
https://github.com/ranxianglei/billion-context.git
synced 2026-11-23 01:58:16 +08:00
The opt-in compress.imageCompression pass and its image_full restore channel are structurally broken where they matter most: - hosts that reject bili-injected tools (codex) can never deliver the restore call — the downscale is permanent for them (#3270 disarmed the lane, which proved the tool was dead weight there); - where the tool IS injectable, the model has no reliable way to learn the ref of the downscaled message (no ref annotations on the wire), producing the 38-round guess-reject-resend loop from #3266 (cache hit 75% -> 28%). Remove the whole feature from host and kernel: arrival-time downscale pass, image_full injection + sticky restore + fail-streak guardrail, image stats, persistence keys, wire-contract tool variants, config schema, docs, and the sharp optional dependency. Every image now passes through byte-identical at original resolution. Sessions persisted by older versions load unchanged; legacy imageShrinks/imageFullRestored state keys and imageShrunk* stats are ignored on load (storage corpus pins that as a fixture). kernel 0.0.126.
73 lines
1.8 KiB
JSON
73 lines
1.8 KiB
JSON
{
|
|
"name": "acp-kernel",
|
|
"version": "0.0.126",
|
|
"description": "Framework-agnostic context-compression engine (model-driven, 3-tier LSM). Pure core: no host dependency.",
|
|
"license": "MIT",
|
|
"author": "ranxianglei",
|
|
"type": "module",
|
|
"homepage": "https://github.com/ranxianglei/billion-context/tree/master/kernel#readme",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/ranxianglei/billion-context.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/ranxianglei/billion-context/issues"
|
|
},
|
|
"keywords": [
|
|
"acp",
|
|
"context",
|
|
"compression",
|
|
"context-management",
|
|
"llm",
|
|
"context-window",
|
|
"summarization"
|
|
],
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js"
|
|
},
|
|
"./wire": {
|
|
"types": "./dist/wire/index.d.ts",
|
|
"import": "./dist/wire/index.js"
|
|
},
|
|
"./panel": {
|
|
"types": "./dist/panel/index.d.ts",
|
|
"import": "./dist/panel/index.js"
|
|
},
|
|
"./persist": {
|
|
"types": "./dist/persist/index.d.ts",
|
|
"import": "./dist/persist/index.js"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md",
|
|
"LICENSE",
|
|
"DESIGN.md",
|
|
"PROVENANCE.md"
|
|
],
|
|
"sideEffects": false,
|
|
"scripts": {
|
|
"clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
"build": "npm run clean && tsup && tsc --emitDeclarationOnly",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "node --import tsx --test tests/*.test.ts",
|
|
"format": "node scripts/format-until-stable.mjs",
|
|
"format:check": "prettier --check ."
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.0",
|
|
"prettier": "^3.3.0",
|
|
"tsup": "^8.3.0",
|
|
"tsx": "^4.19.0",
|
|
"typescript": "^5.6.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
}
|
|
}
|