- Split config.go into separate files (migration, sanitizer, yaml_utils)
- Add bootstrap.go for server initialization
- Add generics.go for generic API handler utilities
- Refactor gemini_vertex_executor.go
- Update management config_lists.go with new patterns
Co-Authored-By: Claude <noreply@anthropic.com>
Add shared state utilities for streaming translators
- Create sdk/translator/state.go with:
- StreamState: Base struct for response metadata, timestamps, finish reasons
- ToolCallState/ToolCallAccumulator: Generic tool call accumulation
- ContentBuffer: Text and reasoning content accumulation
- StreamingState: Combined state for streaming translators
- FinishReasonMapper: Bidirectional finish reason mapping
- Helper functions for ID generation
- Create comprehensive unit tests in sdk/translator/state_test.go
- Migrate Claude translator to use shared state:
- Use embedded translator.StreamState
- Replace local ToolCallAccumulator with shared sdk version
- Use DefaultFinishReasonMapper for stop reason conversion
- Simplify both streaming and non-streaming functions
Co-Authored-By: Claude <noreply@anthropic.com>
- Update model definitions static data
- Update kiro gateway config
- Update SDK API handlers for claude, gemini, and openai
- Update cliproxy service
Co-Authored-By: Claude <noreply@anthropic.com>