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.
121 lines
3.9 KiB
JSON
121 lines
3.9 KiB
JSON
{
|
|
"name": "billion-context",
|
|
"version": "0.1.197",
|
|
"description": "A context-compression plugin — small context windows (a 100K context is enough), 5x fewer tokens, month-long single sessions (billions of tokens), and compression quality — for all agents: pi, OpenCode, Codex, Claude Code, and more. billion-context is all you need.",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"exports": {
|
|
".": "./dist/agent/dsh-native.js",
|
|
"./server": "./dist/agent/opencode-native.js",
|
|
"./dsh": "./dist/agent/dsh-native.js",
|
|
"./package.json": "./package.json",
|
|
"./dsh/package.json": "./package.json",
|
|
"./client": "./dist/agent/dsh-native-client.js"
|
|
},
|
|
"bin": {
|
|
"bili": "./dist/index.js",
|
|
"bili-proxy": "./dist/index.js"
|
|
},
|
|
"scripts": {
|
|
"build": "npm --prefix kernel run build && npm --prefix pi-subagents run build && tsup && node scripts/write-build-info.mjs && node scripts/check-dist-import-annotations.mjs",
|
|
"prepare": "node scripts/check-dist-ready.mjs",
|
|
"registry:snapshot": "node scripts/update-registry-snapshot.mjs",
|
|
"codex-models:snapshot": "node scripts/update-codex-models-snapshot.mjs",
|
|
"pretypecheck": "npm --prefix kernel run build && npm --prefix pi-subagents run build",
|
|
"typecheck": "tsc --noEmit --project tsconfig.json",
|
|
"check:unused-exports": "node scripts/check-unused-exports.mjs",
|
|
"check:test-import-graph": "node scripts/check-test-import-graph.mjs",
|
|
"pretest": "node scripts/test-suite-lock.mjs gate && npm --prefix kernel run build && npm --prefix pi-subagents run build",
|
|
"test": "node scripts/test-suite-lock.mjs run",
|
|
"start": "node dist/index.js",
|
|
"test:e2e": "node --import tsx --test tests/e2e/e2e-codex.test.ts",
|
|
"test:e2e:fake": "node --import tsx --test tests/e2e/e2e-codex-fake.test.ts",
|
|
"test:e2e:image": "node --import tsx --test tests/e2e/e2e-image-billing.test.ts",
|
|
"gate:local": "node scripts/release-gate-local.mjs"
|
|
},
|
|
"keywords": [
|
|
"context",
|
|
"compression",
|
|
"proxy",
|
|
"acp",
|
|
"ai",
|
|
"agent",
|
|
"claude-code",
|
|
"cursor",
|
|
"codex",
|
|
"aider",
|
|
"anthropic",
|
|
"openai",
|
|
"pi-package"
|
|
],
|
|
"license": "MIT",
|
|
"author": "ranxianglei",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/ranxianglei/billion-context.git"
|
|
},
|
|
"homepage": "https://github.com/ranxianglei/billion-context#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/ranxianglei/billion-context/issues"
|
|
},
|
|
"dependencies": {
|
|
"zod": "4.1.8"
|
|
},
|
|
"devDependencies": {
|
|
"@earendil-works/pi-coding-agent": "0.83.0",
|
|
"@earendil-works/pi-tui": "0.83.0",
|
|
"@types/node": "^22.0.0",
|
|
"@types/node-forge": "^1.3.14",
|
|
"@types/semver": "^7.7.1",
|
|
"@types/ws": "8.18.2",
|
|
"acp-kernel": "file:./kernel",
|
|
"billion-context-pi-subagents": "file:./pi-subagents",
|
|
"esbuild": "^0.27.0",
|
|
"fzstd": "0.1.1",
|
|
"jsonc-parser": "^3.3.1",
|
|
"node-forge": "^1.4.0",
|
|
"prettier": "^3.3.0",
|
|
"semver": "7.8.5",
|
|
"tar": "^7.5.22",
|
|
"tsup": "^8.0.0",
|
|
"tsx": "^4.0.0",
|
|
"typebox": "^1.3.34",
|
|
"typescript": "^5.5.0",
|
|
"undici": "^7.29.0",
|
|
"verdaccio": "^6.10.4",
|
|
"ws": "8.22.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"files": [
|
|
"LICENSE",
|
|
"README.md",
|
|
"CONFIGURATION.md",
|
|
"CONFIGURATION.zh-CN.md",
|
|
"dist",
|
|
"dsh.bundle.patch.yml",
|
|
"hermes-plugin",
|
|
"paper/model-driven-incremental-hierarchical-compression-training-free-multi-generational-context-management-for-long-lived-coding-agents.md",
|
|
"paper/figures/*.png"
|
|
],
|
|
"pi": {
|
|
"image": "https://raw.githubusercontent.com/ranxianglei/billion-context/master/docs/logo.png",
|
|
"extensions": [
|
|
"./dist/agent/pi-native.js"
|
|
]
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"registry": "https://registry.npmjs.org"
|
|
},
|
|
"dsh": {
|
|
"bundle": {
|
|
"patch": "./dsh.bundle.patch.yml"
|
|
},
|
|
"client": {
|
|
"platform": "web"
|
|
}
|
|
}
|
|
}
|