mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-15 16:19:12 +00:00
docs: update documentation for v7.1 remote CLIProxy feature
- README: add remote CLIProxy section with CLI flags and quick setup - code-standards: add Config Priority Pattern (CLI > ENV > config.yaml) - codebase-summary: add new remote proxy files, update test counts (638) - project-overview-pdr: add FR-008 requirement, v7.1 release section - project-roadmap: add Phase 10 (Remote CLIProxy), mark #142 complete - system-architecture: add Remote CLIProxy Flow diagram
This commit is contained in:
@@ -580,6 +580,26 @@ interface Config { ... }
|
||||
export interface Config { ... }
|
||||
```
|
||||
|
||||
### 5. Config Priority Pattern
|
||||
|
||||
When resolving configuration from multiple sources, follow this priority order:
|
||||
|
||||
```typescript
|
||||
// proxy-config-resolver.ts pattern
|
||||
// Priority: CLI flags > Environment variables > config.yaml > defaults
|
||||
|
||||
const resolved = {
|
||||
...DEFAULT_CONFIG, // 4. Defaults (lowest)
|
||||
...yamlConfig, // 3. config.yaml
|
||||
...envConfig, // 2. Environment variables
|
||||
...cliFlags, // 1. CLI flags (highest)
|
||||
};
|
||||
```
|
||||
|
||||
This pattern is used in:
|
||||
- `src/cliproxy/proxy-config-resolver.ts` - Remote proxy config
|
||||
- `src/config/unified-config-loader.ts` - Main config loading
|
||||
|
||||
---
|
||||
|
||||
## Related Documentation
|
||||
|
||||
Reference in New Issue
Block a user