v0.6.0: V2 Standard Error Codes & Cross-Runtime Compliance
What's New
V2 Standard Error Codes
- 13 StandardErrorCode constants (E1001-E9999) aligned with AI-Protocol V2
- from_error_class(), from_http_status() converters with lazy-cached mapping
- Each code carries retryable, fallbackable, category metadata
Feature Flags
- Optional extras in pyproject.toml: guardrails, tokens, telemetry, batch
- Runtime feature detection via _features.py
Cross-Runtime Compliance
- Compliance test suite against ai-protocol test cases
- Consistent behavior with Rust runtime
Bug Fixes
- Fix E4001 (Conflict) and E4002 (Cancelled) category: conflict -> operational
- Add Authentication to fallbackable classes (cross-runtime alignment)
- Add HTTP 529 -> E3002 (overloaded) mapping for Anthropic
- Auto-inject retryable/fallbackable flags into ErrorContext.details
Documentation
- Chinese one-line description on all module docstrings
- Strengthened .gitignore patterns
Available on PyPI
pip install ai-lib-python==0.6.0