headroom/tests
chopratejas 905c229251 Add AST-based code compression and custom model configuration
CodeAwareCompressor:
- Tree-sitter based AST parsing for Python, JS, TS, Go, Rust, Java, C, C++
- Preserves imports, signatures, type annotations, error handlers
- Guarantees syntactically valid output
- Uses tree-sitter-language-pack for broad language support

ContentRouter:
- Intelligent compression orchestrator
- Auto-routes content to optimal compressor based on type detection
- Source hint support for high-confidence routing

Custom Model Configuration:
- HEADROOM_MODEL_LIMITS env var and ~/.headroom/models.json support
- Pattern-based inference for unknown models (opus/sonnet/haiku tiers)
- Support for Claude 4.5, Claude 4, o3, o3-mini
- Graceful fallback - never crashes on unknown models
2026-01-14 13:46:55 -08:00
..
test_cache Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_integrations Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_providers Add AST-based code compression and custom model configuration 2026-01-14 13:46:55 -08:00
test_storage Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_transforms Add AST-based code compression and custom model configuration 2026-01-14 13:46:55 -08:00
__init__.py Initial commit: Headroom SDK - LLM context optimization toolkit 2026-01-06 23:16:58 -08:00
conftest.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_acceptance.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_ccr.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_ccr_context_tracker.py v0.2.2: Add CCR Response Handler, Context Tracker, and restructure docs 2026-01-14 13:03:41 -08:00
test_ccr_feedback.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_ccr_response_handler.py v0.2.2: Add CCR Response Handler, Context Tracker, and restructure docs 2026-01-14 13:03:41 -08:00
test_ccr_tool_injection.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_config.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_critical_fixes.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_critical_gaps.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_crushability.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_models.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_parser.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_provider_model_fallback.py Add AST-based code compression and custom model configuration 2026-01-14 13:46:55 -08:00
test_proxy_ccr.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_proxy_llmlingua.py Add LLMLingua-2 opt-in support to proxy server 2026-01-14 12:21:51 -08:00
test_quality_retention.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_relevance.py Fix all mypy type errors and flaky embedding test 2026-01-10 18:27:33 -08:00
test_telemetry.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_text_compressors.py Fix lint errors in text compression utilities 2026-01-12 17:32:51 -08:00
test_toin.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_toin_fixes.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_toin_integration.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_tokenizers.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00