Files
ccs/src/cliproxy/index.ts
T
kaitranntt 7e07615eed feat(cliproxy): add version management command
Allow users to install specific versions or update to latest CLIProxy
via 'ccs cliproxy' command with install/update subcommands.
2025-12-04 06:36:06 -05:00

101 lines
2.1 KiB
TypeScript

/**
* CLIProxy Module Exports
* Central export point for CLIProxyAPI binary management and execution
*/
// Types
export type {
PlatformInfo,
SupportedOS,
SupportedArch,
ArchiveExtension,
BinaryManagerConfig,
BinaryInfo,
DownloadProgress,
ProgressCallback,
ChecksumResult,
DownloadResult,
CLIProxyProvider,
CLIProxyConfig,
ExecutorConfig,
ProviderConfig,
ProviderModelMapping,
} from './types';
// Platform detection
export {
detectPlatform,
getDownloadUrl,
getChecksumsUrl,
getExecutableName,
getArchiveBinaryName,
isPlatformSupported,
getPlatformDescription,
CLIPROXY_VERSION,
} from './platform-detector';
// Binary management
export {
BinaryManager,
ensureCLIProxyBinary,
isCLIProxyInstalled,
getCLIProxyPath,
getInstalledCliproxyVersion,
installCliproxyVersion,
fetchLatestCliproxyVersion,
} from './binary-manager';
// Config generation
export {
generateConfig,
getClaudeEnvVars,
getEffectiveEnvVars,
getProviderSettingsPath,
ensureProviderSettings,
getProviderConfig,
getModelMapping,
getCliproxyDir,
getProviderAuthDir,
getAuthDir,
getConfigPath,
getBinDir,
configExists,
deleteConfig,
CLIPROXY_DEFAULT_PORT,
} from './config-generator';
// Base config loader (for reading config/base-*.settings.json)
export {
loadBaseConfig,
getModelMappingFromConfig,
getEnvVarsFromConfig,
clearConfigCache,
} from './base-config-loader';
// Model catalog and configuration
export type { ModelEntry, ProviderCatalog } from './model-catalog';
export { MODEL_CATALOG, supportsModelConfig, getProviderCatalog, findModel } from './model-catalog';
export {
hasUserSettings,
getCurrentModel,
configureProviderModel,
showCurrentConfig,
} from './model-config';
// Executor
export { execClaudeWithCLIProxy, isPortAvailable, findAvailablePort } from './cliproxy-executor';
// Authentication
export type { AuthStatus } from './auth-handler';
export {
isAuthenticated,
getAuthStatus,
getAllAuthStatus,
clearAuth,
triggerOAuth,
ensureAuth,
getOAuthConfig,
getProviderTokenDir,
displayAuthStatus,
} from './auth-handler';