mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 16:16:52 +00:00
Split 4 files exceeding 900 lines into focused modules: - account-manager.ts (961 → 56 lines): 6 modules in accounts/ - registry, query, bulk-ops, token-file-ops, types, index - config-generator.ts (981 → 16 lines): 6 modules in config/ - generator, port-manager, env-builder, thinking-config, path-resolver, index - cliproxy-executor.ts (1,180 → 21 lines): 5 modules in executor/ - index, lifecycle-manager, env-resolver, retry-handler, session-bridge - cliproxy-command.ts (1,297 → 10 lines): 8 modules in commands/cliproxy/ - index, auth, quota, variant, install, help, proxy-lifecycle subcommands Total: 4,419 → 103 lines in original files (97.7% reduction) Backward compatibility maintained via re-export shims. Edge case fixes: CLI validation, thinking fallback, provider warning. BREAKING CHANGES: None - all exports preserved via barrel re-exports.
18 lines
679 B
TypeScript
18 lines
679 B
TypeScript
/**
|
|
* CLIProxy Executor - Backwards Compatibility Shim
|
|
*
|
|
* This file re-exports from the modular executor/ structure.
|
|
* All implementation has been moved to:
|
|
* - executor/index.ts - Main orchestrator
|
|
* - executor/lifecycle-manager.ts - Spawn/kill/poll operations
|
|
* - executor/env-resolver.ts - Environment variable resolution
|
|
* - executor/retry-handler.ts - Error recovery and retry logic
|
|
* - executor/session-bridge.ts - Session tracking integration
|
|
*
|
|
* @deprecated Import from './executor' instead
|
|
*/
|
|
// Re-export from modular structure
|
|
export { execClaudeWithCLIProxy, isPortAvailable, findAvailablePort } from './executor';
|
|
|
|
export { default } from './executor';
|