mirror of
https://github.com/ranxianglei/billion-context.git
synced 2026-12-03 14:31:59 +08:00
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).
19 lines
450 B
JSON
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"]
|
|
}
|