Files
billion-context/tsconfig.json
T
ranxianglei 0cf3ff3254 feat: billion-context v0.1.0 — universal context-compression proxy
Standalone HTTP reverse proxy that rewrites Anthropic/OpenAI streams with
acp-kernel compression. Any agent that can set a base URL (Claude Code,
Codex, Cursor, Aider) works without adapter code.

Inlined from acp-proxy with review fixes applied:
- C1 (stream.ts): message_delta/message_stop were dropped unconditionally,
  hanging non-compress Anthropic streams. Now preserved unless a compress
  tool_use was converted.
- M2 (stream.ts): replacement text block hardcoded index:0, reopening an
  already-closed text block. Now reuses the suppressed tool_use's index.
- C2 (compress-loop.ts): decompress honored args.toFile from the model —
  path traversal risk. Proxy mode now always writes to a temp dir.

67 tests pass (basic + sse + anthropic-stream regression).
2026-08-06 16:26:54 +08:00

19 lines
450 B
JSON

{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
"noEmit": true,
"resolveJsonModule": true,
"allowImportingTsExtensions": true,
"isolatedModules": true,
"forceConsistentCasingInFileNames": true,
"lib": ["ES2022"],
"types": ["node"]
},
"include": ["src/**/*.ts", "tests/**/*.ts"]
}