@kaitranntt/ccs 7.75.0 → 7.76.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/services/cliproxy-profile-bridge.js +4 -4
- package/dist/api/services/cliproxy-profile-bridge.js.map +1 -1
- package/dist/api/services/profile-lifecycle-validation.js +1 -1
- package/dist/api/services/profile-lifecycle-validation.js.map +1 -1
- package/dist/api/services/profile-writer.js +1 -1
- package/dist/api/services/profile-writer.js.map +1 -1
- package/dist/auth/profile-registry.d.ts.map +1 -1
- package/dist/auth/profile-registry.js +9 -0
- package/dist/auth/profile-registry.js.map +1 -1
- package/dist/ccs.js +77 -9
- package/dist/ccs.js.map +1 -1
- package/dist/cliproxy/{account-manager.d.ts → accounts/account-manager.d.ts} +2 -2
- package/dist/cliproxy/accounts/account-manager.d.ts.map +1 -0
- package/dist/cliproxy/{account-manager.js → accounts/account-manager.js} +34 -34
- package/dist/cliproxy/accounts/account-manager.js.map +1 -0
- package/dist/cliproxy/{account-safety.d.ts → accounts/account-safety.d.ts} +1 -1
- package/dist/cliproxy/accounts/account-safety.d.ts.map +1 -0
- package/dist/cliproxy/{account-safety.js → accounts/account-safety.js} +5 -5
- package/dist/cliproxy/accounts/account-safety.js.map +1 -0
- package/dist/cliproxy/accounts/account-stats-key.d.ts.map +1 -0
- package/dist/cliproxy/accounts/account-stats-key.js.map +1 -0
- package/dist/cliproxy/accounts/registry.js +1 -1
- package/dist/cliproxy/accounts/registry.js.map +1 -1
- package/dist/cliproxy/accounts/token-file-ops.js +1 -1
- package/dist/cliproxy/accounts/token-file-ops.js.map +1 -1
- package/dist/cliproxy/{codex-plan-compatibility.d.ts → ai-providers/codex-plan-compatibility.d.ts} +4 -4
- package/dist/cliproxy/ai-providers/codex-plan-compatibility.d.ts.map +1 -0
- package/dist/cliproxy/{codex-plan-compatibility.js → ai-providers/codex-plan-compatibility.js} +5 -5
- package/dist/cliproxy/ai-providers/codex-plan-compatibility.js.map +1 -0
- package/dist/cliproxy/ai-providers/codex-reasoning-proxy.d.ts.map +1 -0
- package/dist/cliproxy/{codex-reasoning-proxy.js → ai-providers/codex-reasoning-proxy.js} +1 -1
- package/dist/cliproxy/ai-providers/codex-reasoning-proxy.js.map +1 -0
- package/dist/cliproxy/ai-providers/config-store.js +3 -3
- package/dist/cliproxy/ai-providers/config-store.js.map +1 -1
- package/dist/cliproxy/{managed-model-prefixes.d.ts → ai-providers/managed-model-prefixes.d.ts} +1 -1
- package/dist/cliproxy/ai-providers/managed-model-prefixes.d.ts.map +1 -0
- package/dist/cliproxy/{managed-model-prefixes.js → ai-providers/managed-model-prefixes.js} +3 -3
- package/dist/cliproxy/ai-providers/managed-model-prefixes.js.map +1 -0
- package/dist/cliproxy/{model-id-normalizer.d.ts → ai-providers/model-id-normalizer.d.ts} +1 -1
- package/dist/cliproxy/ai-providers/model-id-normalizer.d.ts.map +1 -0
- package/dist/cliproxy/{model-id-normalizer.js → ai-providers/model-id-normalizer.js} +1 -1
- package/dist/cliproxy/ai-providers/model-id-normalizer.js.map +1 -0
- package/dist/cliproxy/ai-providers/openai-compat-manager.d.ts.map +1 -0
- package/dist/cliproxy/{openai-compat-manager.js → ai-providers/openai-compat-manager.js} +7 -6
- package/dist/cliproxy/ai-providers/openai-compat-manager.js.map +1 -0
- package/dist/cliproxy/ai-providers/schema-sanitizer.d.ts.map +1 -0
- package/dist/cliproxy/ai-providers/schema-sanitizer.js.map +1 -0
- package/dist/cliproxy/{tool-name-mapper.d.ts → ai-providers/tool-name-mapper.d.ts} +7 -2
- package/dist/cliproxy/ai-providers/tool-name-mapper.d.ts.map +1 -0
- package/dist/cliproxy/{tool-name-mapper.js → ai-providers/tool-name-mapper.js} +35 -21
- package/dist/cliproxy/ai-providers/tool-name-mapper.js.map +1 -0
- package/dist/cliproxy/{tool-name-sanitizer.d.ts → ai-providers/tool-name-sanitizer.d.ts} +2 -1
- package/dist/cliproxy/ai-providers/tool-name-sanitizer.d.ts.map +1 -0
- package/dist/cliproxy/{tool-name-sanitizer.js → ai-providers/tool-name-sanitizer.js} +23 -3
- package/dist/cliproxy/ai-providers/tool-name-sanitizer.js.map +1 -0
- package/dist/cliproxy/auth/antigravity-responsibility.d.ts.map +1 -0
- package/dist/cliproxy/{antigravity-responsibility.js → auth/antigravity-responsibility.js} +2 -2
- package/dist/cliproxy/auth/antigravity-responsibility.js.map +1 -0
- package/dist/cliproxy/{auth-handler.d.ts → auth/auth-handler.d.ts} +5 -5
- package/dist/cliproxy/auth/auth-handler.d.ts.map +1 -0
- package/dist/cliproxy/{auth-handler.js → auth/auth-handler.js} +23 -23
- package/dist/cliproxy/auth/auth-handler.js.map +1 -0
- package/dist/cliproxy/{auth-session-manager.d.ts → auth/auth-session-manager.d.ts} +1 -1
- package/dist/cliproxy/auth/auth-session-manager.d.ts.map +1 -0
- package/dist/cliproxy/{auth-session-manager.js → auth/auth-session-manager.js} +16 -9
- package/dist/cliproxy/auth/auth-session-manager.js.map +1 -0
- package/dist/cliproxy/auth/auth-token-manager.d.ts.map +1 -0
- package/dist/cliproxy/{auth-token-manager.js → auth/auth-token-manager.js} +6 -6
- package/dist/cliproxy/auth/auth-token-manager.js.map +1 -0
- package/dist/cliproxy/auth/auth-types.d.ts +1 -1
- package/dist/cliproxy/auth/auth-types.d.ts.map +1 -1
- package/dist/cliproxy/auth/auth-utils.d.ts.map +1 -0
- package/dist/cliproxy/auth/auth-utils.js.map +1 -0
- package/dist/cliproxy/auth/device-code-handler.d.ts.map +1 -0
- package/dist/cliproxy/auth/device-code-handler.js.map +1 -0
- package/dist/cliproxy/auth/kiro-import.js +1 -1
- package/dist/cliproxy/auth/kiro-import.js.map +1 -1
- package/dist/cliproxy/auth/oauth-handler.d.ts +2 -2
- package/dist/cliproxy/auth/oauth-handler.d.ts.map +1 -1
- package/dist/cliproxy/auth/oauth-handler.js +25 -5
- package/dist/cliproxy/auth/oauth-handler.js.map +1 -1
- package/dist/cliproxy/auth/oauth-process.d.ts +1 -1
- package/dist/cliproxy/auth/oauth-process.d.ts.map +1 -1
- package/dist/cliproxy/auth/oauth-process.js +3 -3
- package/dist/cliproxy/auth/oauth-process.js.map +1 -1
- package/dist/cliproxy/auth/project-selection-handler.d.ts.map +1 -0
- package/dist/cliproxy/auth/project-selection-handler.js.map +1 -0
- package/dist/cliproxy/{provider-entitlement-evidence.d.ts → auth/provider-entitlement-evidence.d.ts} +1 -1
- package/dist/cliproxy/auth/provider-entitlement-evidence.d.ts.map +1 -0
- package/dist/cliproxy/auth/provider-entitlement-evidence.js.map +1 -0
- package/dist/cliproxy/{provider-entitlement-types.d.ts → auth/provider-entitlement-types.d.ts} +1 -1
- package/dist/cliproxy/auth/provider-entitlement-types.d.ts.map +1 -0
- package/dist/cliproxy/auth/provider-entitlement-types.js.map +1 -0
- package/dist/cliproxy/auth/provider-refreshers/index.js +1 -1
- package/dist/cliproxy/auth/provider-refreshers/index.js.map +1 -1
- package/dist/cliproxy/auth/token-expiry-checker.js +1 -1
- package/dist/cliproxy/auth/token-expiry-checker.js.map +1 -1
- package/dist/cliproxy/auth/token-manager.d.ts +1 -1
- package/dist/cliproxy/auth/token-manager.d.ts.map +1 -1
- package/dist/cliproxy/auth/token-manager.js +4 -4
- package/dist/cliproxy/auth/token-manager.js.map +1 -1
- package/dist/cliproxy/binary/extractor.js +1 -1
- package/dist/cliproxy/binary/extractor.js.map +1 -1
- package/dist/cliproxy/binary/installer.d.ts +1 -1
- package/dist/cliproxy/binary/installer.d.ts.map +1 -1
- package/dist/cliproxy/binary/installer.js +1 -1
- package/dist/cliproxy/binary/installer.js.map +1 -1
- package/dist/cliproxy/binary/lifecycle.js +3 -3
- package/dist/cliproxy/binary/lifecycle.js.map +1 -1
- package/dist/cliproxy/{platform-detector.d.ts → binary/platform-detector.d.ts} +5 -5
- package/dist/cliproxy/binary/platform-detector.d.ts.map +1 -0
- package/dist/cliproxy/{platform-detector.js → binary/platform-detector.js} +2 -2
- package/dist/cliproxy/binary/platform-detector.js.map +1 -0
- package/dist/cliproxy/binary/tar-extractor.d.ts.map +1 -1
- package/dist/cliproxy/binary/tar-extractor.js +1 -1
- package/dist/cliproxy/binary/tar-extractor.js.map +1 -1
- package/dist/cliproxy/binary/version-cache.js +2 -2
- package/dist/cliproxy/binary/version-cache.js.map +1 -1
- package/dist/cliproxy/binary/version-checker.js +1 -1
- package/dist/cliproxy/binary/version-checker.js.map +1 -1
- package/dist/cliproxy/binary/zip-extractor.d.ts.map +1 -1
- package/dist/cliproxy/binary/zip-extractor.js +1 -1
- package/dist/cliproxy/binary/zip-extractor.js.map +1 -1
- package/dist/cliproxy/binary-manager.js +2 -2
- package/dist/cliproxy/binary-manager.js.map +1 -1
- package/dist/cliproxy/{base-config-loader.d.ts → config/base-config-loader.d.ts} +1 -1
- package/dist/cliproxy/config/base-config-loader.d.ts.map +1 -0
- package/dist/cliproxy/{base-config-loader.js → config/base-config-loader.js} +1 -1
- package/dist/cliproxy/config/base-config-loader.js.map +1 -0
- package/dist/cliproxy/config/composite-validator.d.ts.map +1 -0
- package/dist/cliproxy/{composite-validator.js → config/composite-validator.js} +2 -2
- package/dist/cliproxy/config/composite-validator.js.map +1 -0
- package/dist/cliproxy/{config-generator.d.ts → config/config-generator.d.ts} +1 -1
- package/dist/cliproxy/config/config-generator.d.ts.map +1 -0
- package/dist/cliproxy/{config-generator.js → config/config-generator.js} +1 -1
- package/dist/cliproxy/config/config-generator.js.map +1 -0
- package/dist/cliproxy/config/env-builder.js +3 -3
- package/dist/cliproxy/config/env-builder.js.map +1 -1
- package/dist/cliproxy/config/generator.js +3 -3
- package/dist/cliproxy/config/generator.js.map +1 -1
- package/dist/cliproxy/{model-config.d.ts → config/model-config.d.ts} +1 -1
- package/dist/cliproxy/config/model-config.d.ts.map +1 -0
- package/dist/cliproxy/{model-config.js → config/model-config.js} +5 -5
- package/dist/cliproxy/config/model-config.js.map +1 -0
- package/dist/cliproxy/config/thinking-config.js +1 -1
- package/dist/cliproxy/config/thinking-config.js.map +1 -1
- package/dist/cliproxy/{cliproxy-executor.d.ts → executor/cliproxy-executor.d.ts} +2 -2
- package/dist/cliproxy/executor/cliproxy-executor.d.ts.map +1 -0
- package/dist/cliproxy/{cliproxy-executor.js → executor/cliproxy-executor.js} +6 -6
- package/dist/cliproxy/executor/cliproxy-executor.js.map +1 -0
- package/dist/cliproxy/executor/env-resolver.d.ts +5 -5
- package/dist/cliproxy/executor/env-resolver.d.ts.map +1 -1
- package/dist/cliproxy/executor/env-resolver.js +3 -3
- package/dist/cliproxy/executor/env-resolver.js.map +1 -1
- package/dist/cliproxy/executor/index.d.ts +1 -1
- package/dist/cliproxy/executor/index.d.ts.map +1 -1
- package/dist/cliproxy/executor/index.js +18 -18
- package/dist/cliproxy/executor/index.js.map +1 -1
- package/dist/cliproxy/executor/lifecycle-manager.js +1 -1
- package/dist/cliproxy/executor/lifecycle-manager.js.map +1 -1
- package/dist/cliproxy/executor/retry-handler.js +3 -3
- package/dist/cliproxy/executor/retry-handler.js.map +1 -1
- package/dist/cliproxy/executor/session-bridge.d.ts.map +1 -1
- package/dist/cliproxy/executor/session-bridge.js +3 -3
- package/dist/cliproxy/executor/session-bridge.js.map +1 -1
- package/dist/cliproxy/index.d.ts +31 -31
- package/dist/cliproxy/index.d.ts.map +1 -1
- package/dist/cliproxy/index.js +20 -20
- package/dist/cliproxy/index.js.map +1 -1
- package/dist/cliproxy/{management-api-client.d.ts → management/management-api-client.d.ts} +1 -1
- package/dist/cliproxy/management/management-api-client.d.ts.map +1 -0
- package/dist/cliproxy/{management-api-client.js → management/management-api-client.js} +1 -1
- package/dist/cliproxy/management/management-api-client.js.map +1 -0
- package/dist/cliproxy/management/management-api-types.d.ts.map +1 -0
- package/dist/cliproxy/management/management-api-types.js.map +1 -0
- package/dist/cliproxy/management/remote-token-uploader.d.ts.map +1 -0
- package/dist/cliproxy/{remote-token-uploader.js → management/remote-token-uploader.js} +2 -2
- package/dist/cliproxy/management/remote-token-uploader.js.map +1 -0
- package/dist/cliproxy/model-catalog.js +1 -1
- package/dist/cliproxy/model-catalog.js.map +1 -1
- package/dist/cliproxy/proxy/https-tunnel-proxy.d.ts.map +1 -0
- package/dist/cliproxy/{https-tunnel-proxy.js → proxy/https-tunnel-proxy.js} +7 -2
- package/dist/cliproxy/proxy/https-tunnel-proxy.js.map +1 -0
- package/dist/cliproxy/{proxy-config-resolver.d.ts → proxy/proxy-config-resolver.d.ts} +1 -1
- package/dist/cliproxy/proxy/proxy-config-resolver.d.ts.map +1 -0
- package/dist/cliproxy/{proxy-config-resolver.js → proxy/proxy-config-resolver.js} +3 -3
- package/dist/cliproxy/proxy/proxy-config-resolver.js.map +1 -0
- package/dist/cliproxy/{proxy-detector.d.ts → proxy/proxy-detector.d.ts} +1 -1
- package/dist/cliproxy/proxy/proxy-detector.d.ts.map +1 -0
- package/dist/cliproxy/{proxy-detector.js → proxy/proxy-detector.js} +7 -7
- package/dist/cliproxy/proxy/proxy-detector.js.map +1 -0
- package/dist/cliproxy/proxy/proxy-target-resolver.d.ts.map +1 -0
- package/dist/cliproxy/{proxy-target-resolver.js → proxy/proxy-target-resolver.js} +7 -7
- package/dist/cliproxy/proxy/proxy-target-resolver.js.map +1 -0
- package/dist/cliproxy/proxy/tool-sanitization-proxy.d.ts.map +1 -0
- package/dist/cliproxy/{tool-sanitization-proxy.js → proxy/tool-sanitization-proxy.js} +6 -6
- package/dist/cliproxy/proxy/tool-sanitization-proxy.js.map +1 -0
- package/dist/cliproxy/quota/gemini-cli-quota-normalizer.d.ts.map +1 -0
- package/dist/cliproxy/quota/gemini-cli-quota-normalizer.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-claude-normalizer.d.ts.map +1 -0
- package/dist/cliproxy/{quota-fetcher-claude-normalizer.js → quota/quota-fetcher-claude-normalizer.js} +1 -1
- package/dist/cliproxy/quota/quota-fetcher-claude-normalizer.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-claude.d.ts.map +1 -0
- package/dist/cliproxy/{quota-fetcher-claude.js → quota/quota-fetcher-claude.js} +3 -3
- package/dist/cliproxy/quota/quota-fetcher-claude.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-codex.d.ts.map +1 -0
- package/dist/cliproxy/{quota-fetcher-codex.js → quota/quota-fetcher-codex.js} +4 -4
- package/dist/cliproxy/quota/quota-fetcher-codex.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli.d.ts.map +1 -0
- package/dist/cliproxy/{quota-fetcher-gemini-cli.js → quota/quota-fetcher-gemini-cli.js} +6 -6
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-ghcp.d.ts.map +1 -0
- package/dist/cliproxy/{quota-fetcher-ghcp.js → quota/quota-fetcher-ghcp.js} +2 -2
- package/dist/cliproxy/quota/quota-fetcher-ghcp.js.map +1 -0
- package/dist/cliproxy/{quota-fetcher.d.ts → quota/quota-fetcher.d.ts} +3 -3
- package/dist/cliproxy/quota/quota-fetcher.d.ts.map +1 -0
- package/dist/cliproxy/{quota-fetcher.js → quota/quota-fetcher.js} +33 -14
- package/dist/cliproxy/quota/quota-fetcher.js.map +1 -0
- package/dist/cliproxy/{quota-manager.d.ts → quota/quota-manager.d.ts} +2 -2
- package/dist/cliproxy/quota/quota-manager.d.ts.map +1 -0
- package/dist/cliproxy/{quota-manager.js → quota/quota-manager.js} +7 -7
- package/dist/cliproxy/quota/quota-manager.js.map +1 -0
- package/dist/cliproxy/quota/quota-response-cache.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-response-cache.js.map +1 -0
- package/dist/cliproxy/{quota-types.d.ts → quota/quota-types.d.ts} +1 -1
- package/dist/cliproxy/quota/quota-types.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-types.js.map +1 -0
- package/dist/cliproxy/{routing-strategy-http.d.ts → routing/routing-strategy-http.d.ts} +1 -1
- package/dist/cliproxy/routing/routing-strategy-http.d.ts.map +1 -0
- package/dist/cliproxy/{routing-strategy-http.js → routing/routing-strategy-http.js} +1 -1
- package/dist/cliproxy/routing/routing-strategy-http.js.map +1 -0
- package/dist/cliproxy/{routing-strategy.d.ts → routing/routing-strategy.d.ts} +1 -1
- package/dist/cliproxy/routing/routing-strategy.d.ts.map +1 -0
- package/dist/cliproxy/{routing-strategy.js → routing/routing-strategy.js} +3 -3
- package/dist/cliproxy/routing/routing-strategy.js.map +1 -0
- package/dist/cliproxy/service-manager.d.ts +3 -3
- package/dist/cliproxy/service-manager.d.ts.map +1 -1
- package/dist/cliproxy/service-manager.js +5 -5
- package/dist/cliproxy/service-manager.js.map +1 -1
- package/dist/cliproxy/services/binary-service.js +1 -1
- package/dist/cliproxy/services/binary-service.js.map +1 -1
- package/dist/cliproxy/{catalog-cache.d.ts → services/catalog-cache.d.ts} +3 -3
- package/dist/cliproxy/services/catalog-cache.d.ts.map +1 -0
- package/dist/cliproxy/{catalog-cache.js → services/catalog-cache.js} +4 -4
- package/dist/cliproxy/services/catalog-cache.js.map +1 -0
- package/dist/cliproxy/{catalog-routing.d.ts → services/catalog-routing.d.ts} +3 -3
- package/dist/cliproxy/services/catalog-routing.d.ts.map +1 -0
- package/dist/cliproxy/{catalog-routing.js → services/catalog-routing.js} +1 -1
- package/dist/cliproxy/services/catalog-routing.js.map +1 -0
- package/dist/cliproxy/services/proxy-lifecycle-service.js +1 -1
- package/dist/cliproxy/services/proxy-lifecycle-service.js.map +1 -1
- package/dist/cliproxy/{remote-auth-fetcher.d.ts → services/remote-auth-fetcher.d.ts} +2 -2
- package/dist/cliproxy/services/remote-auth-fetcher.d.ts.map +1 -0
- package/dist/cliproxy/{remote-auth-fetcher.js → services/remote-auth-fetcher.js} +2 -2
- package/dist/cliproxy/services/remote-auth-fetcher.js.map +1 -0
- package/dist/cliproxy/services/remote-proxy-client.d.ts.map +1 -0
- package/dist/cliproxy/{remote-proxy-client.js → services/remote-proxy-client.js} +1 -1
- package/dist/cliproxy/services/remote-proxy-client.js.map +1 -0
- package/dist/cliproxy/services/startup-lock.d.ts.map +1 -0
- package/dist/cliproxy/{startup-lock.js → services/startup-lock.js} +2 -2
- package/dist/cliproxy/services/startup-lock.js.map +1 -0
- package/dist/cliproxy/services/stats-fetcher.d.ts.map +1 -0
- package/dist/cliproxy/{stats-fetcher.js → services/stats-fetcher.js} +2 -2
- package/dist/cliproxy/services/stats-fetcher.js.map +1 -0
- package/dist/cliproxy/services/stats-transformer.d.ts.map +1 -0
- package/dist/cliproxy/{stats-transformer.js → services/stats-transformer.js} +3 -3
- package/dist/cliproxy/services/stats-transformer.js.map +1 -0
- package/dist/cliproxy/services/variant-config-adapter.js +1 -1
- package/dist/cliproxy/services/variant-config-adapter.js.map +1 -1
- package/dist/cliproxy/services/variant-service.js +3 -3
- package/dist/cliproxy/services/variant-service.js.map +1 -1
- package/dist/cliproxy/services/variant-settings.js +3 -3
- package/dist/cliproxy/services/variant-settings.js.map +1 -1
- package/dist/cliproxy/session-tracker.js +2 -2
- package/dist/cliproxy/session-tracker.js.map +1 -1
- package/dist/cliproxy/sync/local-config-sync.js +1 -1
- package/dist/cliproxy/sync/local-config-sync.js.map +1 -1
- package/dist/cliproxy/sync/profile-mapper.d.ts +1 -1
- package/dist/cliproxy/sync/profile-mapper.d.ts.map +1 -1
- package/dist/cliproxy/types/binary-types.d.ts +48 -0
- package/dist/cliproxy/types/binary-types.d.ts.map +1 -0
- package/dist/cliproxy/types/binary-types.js +6 -0
- package/dist/cliproxy/types/binary-types.js.map +1 -0
- package/dist/cliproxy/types/config-types.d.ts +89 -0
- package/dist/cliproxy/types/config-types.d.ts.map +1 -0
- package/dist/cliproxy/types/config-types.js +6 -0
- package/dist/cliproxy/types/config-types.js.map +1 -0
- package/dist/cliproxy/types/index.d.ts +5 -0
- package/dist/cliproxy/types/index.d.ts.map +1 -0
- package/dist/cliproxy/types/index.js +21 -0
- package/dist/cliproxy/types/index.js.map +1 -0
- package/dist/cliproxy/types/platform-types.d.ts +17 -0
- package/dist/cliproxy/types/platform-types.d.ts.map +1 -0
- package/dist/cliproxy/types/platform-types.js +6 -0
- package/dist/cliproxy/types/platform-types.js.map +1 -0
- package/dist/cliproxy/types/provider-types.d.ts +27 -0
- package/dist/cliproxy/types/provider-types.d.ts.map +1 -0
- package/dist/cliproxy/types/provider-types.js +16 -0
- package/dist/cliproxy/types/provider-types.js.map +1 -0
- package/dist/cliproxy/types.d.ts +4 -284
- package/dist/cliproxy/types.d.ts.map +1 -1
- package/dist/cliproxy/types.js +18 -14
- package/dist/cliproxy/types.js.map +1 -1
- package/dist/commands/cleanup-command.js +1 -1
- package/dist/commands/cleanup-command.js.map +1 -1
- package/dist/commands/cliproxy/auth-subcommand.js +1 -1
- package/dist/commands/cliproxy/auth-subcommand.js.map +1 -1
- package/dist/commands/cliproxy/catalog-subcommand.js +4 -4
- package/dist/commands/cliproxy/catalog-subcommand.js.map +1 -1
- package/dist/commands/cliproxy/help-subcommand.js +1 -1
- package/dist/commands/cliproxy/help-subcommand.js.map +1 -1
- package/dist/commands/cliproxy/install-subcommand.js +1 -1
- package/dist/commands/cliproxy/install-subcommand.js.map +1 -1
- package/dist/commands/cliproxy/proxy-lifecycle-subcommand.js +1 -1
- package/dist/commands/cliproxy/proxy-lifecycle-subcommand.js.map +1 -1
- package/dist/commands/cliproxy/quota-subcommand.d.ts +1 -1
- package/dist/commands/cliproxy/quota-subcommand.d.ts.map +1 -1
- package/dist/commands/cliproxy/quota-subcommand.js +8 -8
- package/dist/commands/cliproxy/quota-subcommand.js.map +1 -1
- package/dist/commands/cliproxy/routing-subcommand.js +1 -1
- package/dist/commands/cliproxy/routing-subcommand.js.map +1 -1
- package/dist/commands/cliproxy/variant-subcommand.js +4 -4
- package/dist/commands/cliproxy/variant-subcommand.js.map +1 -1
- package/dist/commands/command-catalog.d.ts.map +1 -1
- package/dist/commands/command-catalog.js +4 -0
- package/dist/commands/command-catalog.js.map +1 -1
- package/dist/commands/config-command.js +1 -1
- package/dist/commands/config-command.js.map +1 -1
- package/dist/commands/doctor-command.d.ts.map +1 -1
- package/dist/commands/doctor-command.js +9 -0
- package/dist/commands/doctor-command.js.map +1 -1
- package/dist/commands/tokens-command.js +1 -1
- package/dist/commands/tokens-command.js.map +1 -1
- package/dist/config/config-loader-facade.d.ts +57 -0
- package/dist/config/config-loader-facade.d.ts.map +1 -0
- package/dist/config/config-loader-facade.js +131 -0
- package/dist/config/config-loader-facade.js.map +1 -0
- package/dist/config/schemas/auth.d.ts +97 -0
- package/dist/config/schemas/auth.d.ts.map +1 -0
- package/dist/config/schemas/auth.js +25 -0
- package/dist/config/schemas/auth.js.map +1 -0
- package/dist/config/schemas/browser.d.ts +53 -0
- package/dist/config/schemas/browser.d.ts.map +1 -0
- package/dist/config/schemas/browser.js +27 -0
- package/dist/config/schemas/browser.js.map +1 -0
- package/dist/config/schemas/channels.d.ts +27 -0
- package/dist/config/schemas/channels.d.ts.map +1 -0
- package/dist/config/schemas/channels.js +19 -0
- package/dist/config/schemas/channels.js.map +1 -0
- package/dist/config/schemas/cliproxy.d.ts +140 -0
- package/dist/config/schemas/cliproxy.d.ts.map +1 -0
- package/dist/config/schemas/cliproxy.js +18 -0
- package/dist/config/schemas/cliproxy.js.map +1 -0
- package/dist/config/schemas/copilot-cursor.d.ts +75 -0
- package/dist/config/schemas/copilot-cursor.d.ts.map +1 -0
- package/dist/config/schemas/copilot-cursor.js +36 -0
- package/dist/config/schemas/copilot-cursor.js.map +1 -0
- package/dist/config/schemas/index.d.ts +28 -0
- package/dist/config/schemas/index.d.ts.map +1 -0
- package/dist/config/schemas/index.js +51 -0
- package/dist/config/schemas/index.js.map +1 -0
- package/dist/config/schemas/logging.d.ts +43 -0
- package/dist/config/schemas/logging.d.ts.map +1 -0
- package/dist/config/schemas/logging.js +23 -0
- package/dist/config/schemas/logging.js.map +1 -0
- package/dist/config/schemas/providers.d.ts +14 -0
- package/dist/config/schemas/providers.d.ts.map +1 -0
- package/dist/config/schemas/providers.js +21 -0
- package/dist/config/schemas/providers.js.map +1 -0
- package/dist/config/schemas/proxy-server.d.ts +141 -0
- package/dist/config/schemas/proxy-server.d.ts.map +1 -0
- package/dist/config/schemas/proxy-server.js +71 -0
- package/dist/config/schemas/proxy-server.js.map +1 -0
- package/dist/config/schemas/quota.d.ts +88 -0
- package/dist/config/schemas/quota.d.ts.map +1 -0
- package/dist/config/schemas/quota.js +47 -0
- package/dist/config/schemas/quota.js.map +1 -0
- package/dist/config/schemas/thinking.d.ts +50 -0
- package/dist/config/schemas/thinking.d.ts.map +1 -0
- package/dist/config/schemas/thinking.js +26 -0
- package/dist/config/schemas/thinking.js.map +1 -0
- package/dist/config/schemas/unified-config.d.ts +74 -0
- package/dist/config/schemas/unified-config.d.ts.map +1 -0
- package/dist/config/schemas/unified-config.js +131 -0
- package/dist/config/schemas/unified-config.js.map +1 -0
- package/dist/config/schemas/version.d.ts +23 -0
- package/dist/config/schemas/version.d.ts.map +1 -0
- package/dist/config/schemas/version.js +26 -0
- package/dist/config/schemas/version.js.map +1 -0
- package/dist/config/schemas/websearch.d.ts +138 -0
- package/dist/config/schemas/websearch.d.ts.map +1 -0
- package/dist/config/schemas/websearch.js +12 -0
- package/dist/config/schemas/websearch.js.map +1 -0
- package/dist/config/unified-config-loader.js +1 -1
- package/dist/config/unified-config-loader.js.map +1 -1
- package/dist/config/unified-config-types.d.ts +3 -818
- package/dist/config/unified-config-types.d.ts.map +1 -1
- package/dist/config/unified-config-types.js +19 -319
- package/dist/config/unified-config-types.js.map +1 -1
- package/dist/copilot/copilot-auth.d.ts.map +1 -1
- package/dist/copilot/copilot-auth.js +22 -0
- package/dist/copilot/copilot-auth.js.map +1 -1
- package/dist/copilot/copilot-daemon.d.ts.map +1 -1
- package/dist/copilot/copilot-daemon.js +26 -0
- package/dist/copilot/copilot-daemon.js.map +1 -1
- package/dist/copilot/copilot-executor.d.ts +1 -1
- package/dist/copilot/copilot-executor.d.ts.map +1 -1
- package/dist/copilot/copilot-executor.js +23 -1
- package/dist/copilot/copilot-executor.js.map +1 -1
- package/dist/cursor/cursor-daemon.d.ts.map +1 -1
- package/dist/cursor/cursor-daemon.js +28 -1
- package/dist/cursor/cursor-daemon.js.map +1 -1
- package/dist/cursor/cursor-executor.d.ts.map +1 -1
- package/dist/cursor/cursor-executor.js +17 -1
- package/dist/cursor/cursor-executor.js.map +1 -1
- package/dist/delegation/delegation-handler.d.ts.map +1 -1
- package/dist/delegation/delegation-handler.js +4 -1
- package/dist/delegation/delegation-handler.js.map +1 -1
- package/dist/docker/docker-bootstrap.js +1 -1
- package/dist/docker/docker-bootstrap.js.map +1 -1
- package/dist/errors/error-types.d.ts +9 -0
- package/dist/errors/error-types.d.ts.map +1 -1
- package/dist/errors/error-types.js +15 -1
- package/dist/errors/error-types.js.map +1 -1
- package/dist/errors/index.d.ts +1 -1
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/errors/index.js +3 -1
- package/dist/errors/index.js.map +1 -1
- package/dist/glmt/glmt-proxy.d.ts.map +1 -1
- package/dist/glmt/glmt-proxy.js +7 -0
- package/dist/glmt/glmt-proxy.js.map +1 -1
- package/dist/glmt/glmt-transformer.d.ts.map +1 -1
- package/dist/glmt/glmt-transformer.js +1 -3
- package/dist/glmt/glmt-transformer.js.map +1 -1
- package/dist/management/checks/image-analysis-check.js +2 -2
- package/dist/management/checks/image-analysis-check.js.map +1 -1
- package/dist/management/instance-manager.d.ts.map +1 -1
- package/dist/management/instance-manager.js +9 -0
- package/dist/management/instance-manager.js.map +1 -1
- package/dist/management/plugin-path-normalizer.d.ts +7 -0
- package/dist/management/plugin-path-normalizer.d.ts.map +1 -0
- package/dist/management/plugin-path-normalizer.js +82 -0
- package/dist/management/plugin-path-normalizer.js.map +1 -0
- package/dist/management/shared-manager.d.ts +1 -2
- package/dist/management/shared-manager.d.ts.map +1 -1
- package/dist/management/shared-manager.js +8 -56
- package/dist/management/shared-manager.js.map +1 -1
- package/dist/proxy/server/messages-route.d.ts.map +1 -1
- package/dist/proxy/server/messages-route.js +50 -9
- package/dist/proxy/server/messages-route.js.map +1 -1
- package/dist/proxy/server/proxy-server.d.ts.map +1 -1
- package/dist/proxy/server/proxy-server.js +24 -6
- package/dist/proxy/server/proxy-server.js.map +1 -1
- package/dist/proxy/transformers/request-transformer.d.ts +1 -0
- package/dist/proxy/transformers/request-transformer.d.ts.map +1 -1
- package/dist/proxy/transformers/request-transformer.js +10 -1
- package/dist/proxy/transformers/request-transformer.js.map +1 -1
- package/dist/services/logging/index.d.ts +6 -1
- package/dist/services/logging/index.d.ts.map +1 -1
- package/dist/services/logging/index.js +16 -1
- package/dist/services/logging/index.js.map +1 -1
- package/dist/services/logging/log-context.d.ts +41 -0
- package/dist/services/logging/log-context.d.ts.map +1 -0
- package/dist/services/logging/log-context.js +51 -0
- package/dist/services/logging/log-context.js.map +1 -0
- package/dist/services/logging/log-redaction.d.ts +8 -0
- package/dist/services/logging/log-redaction.d.ts.map +1 -1
- package/dist/services/logging/log-redaction.js +40 -3
- package/dist/services/logging/log-redaction.js.map +1 -1
- package/dist/services/logging/log-types.d.ts +30 -0
- package/dist/services/logging/log-types.d.ts.map +1 -1
- package/dist/services/logging/log-types.js +15 -1
- package/dist/services/logging/log-types.js.map +1 -1
- package/dist/services/logging/logger.d.ts +17 -0
- package/dist/services/logging/logger.d.ts.map +1 -1
- package/dist/services/logging/logger.js +23 -4
- package/dist/services/logging/logger.js.map +1 -1
- package/dist/shared/claude-extension-setup.js +1 -1
- package/dist/shared/claude-extension-setup.js.map +1 -1
- package/dist/targets/claude-adapter.d.ts.map +1 -1
- package/dist/targets/claude-adapter.js +11 -0
- package/dist/targets/claude-adapter.js.map +1 -1
- package/dist/targets/codex-adapter.d.ts.map +1 -1
- package/dist/targets/codex-adapter.js +11 -0
- package/dist/targets/codex-adapter.js.map +1 -1
- package/dist/targets/droid-adapter.d.ts.map +1 -1
- package/dist/targets/droid-adapter.js +11 -0
- package/dist/targets/droid-adapter.js.map +1 -1
- package/dist/ui/assets/{accounts-CP_Nosd7.js → accounts-CybVGDsm.js} +1 -1
- package/dist/ui/assets/{alert-dialog-CjnZBDj3.js → alert-dialog-C6npAhT0.js} +1 -1
- package/dist/ui/assets/{api-B7mmrAjt.js → api-DZosWVkR.js} +1 -1
- package/dist/ui/assets/{auth-section-BFQ8Mu15.js → auth-section-D4MZkgcP.js} +1 -1
- package/dist/ui/assets/{backups-section-CPwm9q19.js → backups-section-DvMJrmHH.js} +1 -1
- package/dist/ui/assets/{channels-B2colnY7.js → channels-BVftYfOn.js} +1 -1
- package/dist/ui/assets/{charts-BBPXh0Ar.js → charts-CeK2xCSo.js} +1 -1
- package/dist/ui/assets/{checkbox-BAMXPp68.js → checkbox-BLRznRTO.js} +1 -1
- package/dist/ui/assets/{claude-extension-BDVoXHr-.js → claude-extension-C6OeBQ73.js} +1 -1
- package/dist/ui/assets/cliproxy-B3Jyu3r9.js +3 -0
- package/dist/ui/assets/{cliproxy-ai-providers-8dH1cHVk.js → cliproxy-ai-providers-BAJ78pUc.js} +1 -1
- package/dist/ui/assets/{cliproxy-control-panel-CC8HzA8e.js → cliproxy-control-panel-XEvUMVJe.js} +1 -1
- package/dist/ui/assets/{code-highlight-BRUf_pqB.js → code-highlight-D4E79GKQ.js} +1 -1
- package/dist/ui/assets/{codex-C6Q9rOwp.js → codex-CY2vikqX.js} +1 -1
- package/dist/ui/assets/{confirm-dialog-D0VQlM7B.js → confirm-dialog-DjLHh1qX.js} +1 -1
- package/dist/ui/assets/{copilot-CgG2oaRV.js → copilot-afee2lL9.js} +1 -1
- package/dist/ui/assets/{cursor-CE1giQU2.js → cursor-DuWy60wp.js} +1 -1
- package/dist/ui/assets/{droid-FG2w7nRu.js → droid-FlceoQ6k.js} +1 -1
- package/dist/ui/assets/{form-utils-Bcoyqxpq.js → form-utils-CuHzLhJZ.js} +1 -1
- package/dist/ui/assets/{globalenv-section-BJbBud4W.js → globalenv-section-DpJ7unxC.js} +1 -1
- package/dist/ui/assets/{health-Dh7o4wt7.js → health-BEMgcKD3.js} +1 -1
- package/dist/ui/assets/icons-DQFHtVq5.js +1 -0
- package/dist/ui/assets/{index-BNTqP5R7.js → index-0GkznW41.js} +1 -1
- package/dist/ui/assets/{index-B6bIHdvz.js → index-0n_43sCZ.js} +1 -1
- package/dist/ui/assets/index-6xrth3Oz.css +1 -0
- package/dist/ui/assets/{index-0mNJhDEG.js → index-BRtgic66.js} +29 -29
- package/dist/ui/assets/{index-Bj8UFR7b.js → index-Ba4ysocb.js} +1 -1
- package/dist/ui/assets/{index-BNW5qVXZ.js → index-Cj7EjEq6.js} +1 -1
- package/dist/ui/assets/{index-X21iqV9e.js → index-Cq9VySs6.js} +1 -1
- package/dist/ui/assets/{index-DTAdzUUA.js → index-DOC7_hun.js} +1 -1
- package/dist/ui/assets/logs-Dth4naJl.js +1 -0
- package/dist/ui/assets/{masked-input-DygH0M2a.js → masked-input-DL6pJ8pE.js} +1 -1
- package/dist/ui/assets/{notifications-B2HqRBj7.js → notifications-B4_o8bcr.js} +1 -1
- package/dist/ui/assets/{proxy-g4_N-fbB.js → proxy-C4-M_9kB.js} +1 -1
- package/dist/ui/assets/{proxy-status-widget-BWjGFUas.js → proxy-status-widget-DW4cPFeD.js} +1 -1
- package/dist/ui/assets/{radix-ui-Zb8sVEtn.js → radix-ui-nu4wz29m.js} +1 -1
- package/dist/ui/assets/{raw-json-settings-editor-panel-DYpsr-1d.js → raw-json-settings-editor-panel-Dcumu3Qi.js} +1 -1
- package/dist/ui/assets/{react-vendor-CNOkPC89.js → react-vendor-Bjx91N7w.js} +1 -1
- package/dist/ui/assets/{searchable-select-BKx31cCH.js → searchable-select-CWL2D5Ft.js} +1 -1
- package/dist/ui/assets/{separator-mG07scBE.js → separator-Do_vqTQD.js} +1 -1
- package/dist/ui/assets/{shared-hbFOfnWU.js → shared-CwWuZx24.js} +1 -1
- package/dist/ui/assets/{table-DoECcNZ-.js → table-BP6nBZzg.js} +1 -1
- package/dist/ui/assets/{tanstack-CrmUhA7Z.js → tanstack-bhJxV1h8.js} +1 -1
- package/dist/ui/assets/{updates-BSeFQRwL.js → updates-BTHJZ7Rk.js} +1 -1
- package/dist/ui/index.html +9 -9
- package/dist/utils/hooks/get-image-analysis-hook-env.d.ts +1 -1
- package/dist/utils/hooks/get-image-analysis-hook-env.d.ts.map +1 -1
- package/dist/utils/hooks/get-image-analysis-hook-env.js +2 -2
- package/dist/utils/hooks/get-image-analysis-hook-env.js.map +1 -1
- package/dist/utils/hooks/image-analysis-backend-resolver.js +1 -1
- package/dist/utils/hooks/image-analysis-backend-resolver.js.map +1 -1
- package/dist/utils/hooks/image-analysis-runtime-status.d.ts +4 -4
- package/dist/utils/hooks/image-analysis-runtime-status.d.ts.map +1 -1
- package/dist/utils/hooks/image-analysis-runtime-status.js +5 -5
- package/dist/utils/hooks/image-analysis-runtime-status.js.map +1 -1
- package/dist/utils/retry-strategy.d.ts +37 -0
- package/dist/utils/retry-strategy.d.ts.map +1 -0
- package/dist/utils/retry-strategy.js +99 -0
- package/dist/utils/retry-strategy.js.map +1 -0
- package/dist/web-server/health/cliproxy-checks.js +2 -2
- package/dist/web-server/health/cliproxy-checks.js.map +1 -1
- package/dist/web-server/index.js +2 -2
- package/dist/web-server/index.js.map +1 -1
- package/dist/web-server/overview-routes.js +1 -1
- package/dist/web-server/overview-routes.js.map +1 -1
- package/dist/web-server/routes/account-routes.js +1 -1
- package/dist/web-server/routes/account-routes.js.map +1 -1
- package/dist/web-server/routes/catalog-routes.js +1 -1
- package/dist/web-server/routes/catalog-routes.js.map +1 -1
- package/dist/web-server/routes/cliproxy-auth-routes.js +10 -10
- package/dist/web-server/routes/cliproxy-auth-routes.js.map +1 -1
- package/dist/web-server/routes/cliproxy-routing-routes.js +1 -1
- package/dist/web-server/routes/cliproxy-routing-routes.js.map +1 -1
- package/dist/web-server/routes/cliproxy-stats-routes.js +10 -10
- package/dist/web-server/routes/cliproxy-stats-routes.js.map +1 -1
- package/dist/web-server/routes/image-analysis-routes.js +1 -1
- package/dist/web-server/routes/image-analysis-routes.js.map +1 -1
- package/dist/web-server/routes/provider-routes.js +1 -1
- package/dist/web-server/routes/provider-routes.js.map +1 -1
- package/dist/web-server/routes/proxy-routes.js +2 -2
- package/dist/web-server/routes/proxy-routes.js.map +1 -1
- package/dist/web-server/routes/route-helpers.js +1 -1
- package/dist/web-server/routes/route-helpers.js.map +1 -1
- package/dist/web-server/routes/settings-routes.js +2 -2
- package/dist/web-server/routes/settings-routes.js.map +1 -1
- package/dist/web-server/routes/variant-routes.js +1 -1
- package/dist/web-server/routes/variant-routes.js.map +1 -1
- package/dist/web-server/services/cliproxy-dashboard-install-service.js +1 -1
- package/dist/web-server/services/cliproxy-dashboard-install-service.js.map +1 -1
- package/dist/web-server/usage/cliproxy-usage-syncer.d.ts +1 -1
- package/dist/web-server/usage/cliproxy-usage-syncer.d.ts.map +1 -1
- package/dist/web-server/usage/cliproxy-usage-syncer.js +1 -1
- package/dist/web-server/usage/cliproxy-usage-syncer.js.map +1 -1
- package/dist/web-server/usage/cliproxy-usage-transformer.d.ts +1 -1
- package/dist/web-server/usage/cliproxy-usage-transformer.d.ts.map +1 -1
- package/dist/web-server/usage/cliproxy-usage-transformer.js.map +1 -1
- package/dist/web-server/usage/codex-native-usage-collector.d.ts +2 -0
- package/dist/web-server/usage/codex-native-usage-collector.d.ts.map +1 -1
- package/dist/web-server/usage/codex-native-usage-collector.js +99 -1
- package/dist/web-server/usage/codex-native-usage-collector.js.map +1 -1
- package/dist/web-server/websocket.js +2 -2
- package/dist/web-server/websocket.js.map +1 -1
- package/package.json +1 -1
- package/scripts/run-test-bucket.js +3 -1
- package/dist/cliproxy/account-manager.d.ts.map +0 -1
- package/dist/cliproxy/account-manager.js.map +0 -1
- package/dist/cliproxy/account-safety.d.ts.map +0 -1
- package/dist/cliproxy/account-safety.js.map +0 -1
- package/dist/cliproxy/account-stats-key.d.ts.map +0 -1
- package/dist/cliproxy/account-stats-key.js.map +0 -1
- package/dist/cliproxy/antigravity-responsibility.d.ts.map +0 -1
- package/dist/cliproxy/antigravity-responsibility.js.map +0 -1
- package/dist/cliproxy/auth-handler.d.ts.map +0 -1
- package/dist/cliproxy/auth-handler.js.map +0 -1
- package/dist/cliproxy/auth-session-manager.d.ts.map +0 -1
- package/dist/cliproxy/auth-session-manager.js.map +0 -1
- package/dist/cliproxy/auth-token-manager.d.ts.map +0 -1
- package/dist/cliproxy/auth-token-manager.js.map +0 -1
- package/dist/cliproxy/auth-utils.d.ts.map +0 -1
- package/dist/cliproxy/auth-utils.js.map +0 -1
- package/dist/cliproxy/base-config-loader.d.ts.map +0 -1
- package/dist/cliproxy/base-config-loader.js.map +0 -1
- package/dist/cliproxy/catalog-cache.d.ts.map +0 -1
- package/dist/cliproxy/catalog-cache.js.map +0 -1
- package/dist/cliproxy/catalog-routing.d.ts.map +0 -1
- package/dist/cliproxy/catalog-routing.js.map +0 -1
- package/dist/cliproxy/cliproxy-executor.d.ts.map +0 -1
- package/dist/cliproxy/cliproxy-executor.js.map +0 -1
- package/dist/cliproxy/codex-plan-compatibility.d.ts.map +0 -1
- package/dist/cliproxy/codex-plan-compatibility.js.map +0 -1
- package/dist/cliproxy/codex-reasoning-proxy.d.ts.map +0 -1
- package/dist/cliproxy/codex-reasoning-proxy.js.map +0 -1
- package/dist/cliproxy/composite-validator.d.ts.map +0 -1
- package/dist/cliproxy/composite-validator.js.map +0 -1
- package/dist/cliproxy/config-generator.d.ts.map +0 -1
- package/dist/cliproxy/config-generator.js.map +0 -1
- package/dist/cliproxy/device-code-handler.d.ts.map +0 -1
- package/dist/cliproxy/device-code-handler.js.map +0 -1
- package/dist/cliproxy/gemini-cli-quota-normalizer.d.ts.map +0 -1
- package/dist/cliproxy/gemini-cli-quota-normalizer.js.map +0 -1
- package/dist/cliproxy/https-tunnel-proxy.d.ts.map +0 -1
- package/dist/cliproxy/https-tunnel-proxy.js.map +0 -1
- package/dist/cliproxy/managed-model-prefixes.d.ts.map +0 -1
- package/dist/cliproxy/managed-model-prefixes.js.map +0 -1
- package/dist/cliproxy/management-api-client.d.ts.map +0 -1
- package/dist/cliproxy/management-api-client.js.map +0 -1
- package/dist/cliproxy/management-api-types.d.ts.map +0 -1
- package/dist/cliproxy/management-api-types.js.map +0 -1
- package/dist/cliproxy/model-config.d.ts.map +0 -1
- package/dist/cliproxy/model-config.js.map +0 -1
- package/dist/cliproxy/model-id-normalizer.d.ts.map +0 -1
- package/dist/cliproxy/model-id-normalizer.js.map +0 -1
- package/dist/cliproxy/openai-compat-manager.d.ts.map +0 -1
- package/dist/cliproxy/openai-compat-manager.js.map +0 -1
- package/dist/cliproxy/platform-detector.d.ts.map +0 -1
- package/dist/cliproxy/platform-detector.js.map +0 -1
- package/dist/cliproxy/project-selection-handler.d.ts.map +0 -1
- package/dist/cliproxy/project-selection-handler.js.map +0 -1
- package/dist/cliproxy/provider-entitlement-evidence.d.ts.map +0 -1
- package/dist/cliproxy/provider-entitlement-evidence.js.map +0 -1
- package/dist/cliproxy/provider-entitlement-types.d.ts.map +0 -1
- package/dist/cliproxy/provider-entitlement-types.js.map +0 -1
- package/dist/cliproxy/proxy-config-resolver.d.ts.map +0 -1
- package/dist/cliproxy/proxy-config-resolver.js.map +0 -1
- package/dist/cliproxy/proxy-detector.d.ts.map +0 -1
- package/dist/cliproxy/proxy-detector.js.map +0 -1
- package/dist/cliproxy/proxy-target-resolver.d.ts.map +0 -1
- package/dist/cliproxy/proxy-target-resolver.js.map +0 -1
- package/dist/cliproxy/quota-fetcher-claude-normalizer.d.ts.map +0 -1
- package/dist/cliproxy/quota-fetcher-claude-normalizer.js.map +0 -1
- package/dist/cliproxy/quota-fetcher-claude.d.ts.map +0 -1
- package/dist/cliproxy/quota-fetcher-claude.js.map +0 -1
- package/dist/cliproxy/quota-fetcher-codex.d.ts.map +0 -1
- package/dist/cliproxy/quota-fetcher-codex.js.map +0 -1
- package/dist/cliproxy/quota-fetcher-gemini-cli.d.ts.map +0 -1
- package/dist/cliproxy/quota-fetcher-gemini-cli.js.map +0 -1
- package/dist/cliproxy/quota-fetcher-ghcp.d.ts.map +0 -1
- package/dist/cliproxy/quota-fetcher-ghcp.js.map +0 -1
- package/dist/cliproxy/quota-fetcher.d.ts.map +0 -1
- package/dist/cliproxy/quota-fetcher.js.map +0 -1
- package/dist/cliproxy/quota-manager.d.ts.map +0 -1
- package/dist/cliproxy/quota-manager.js.map +0 -1
- package/dist/cliproxy/quota-response-cache.d.ts.map +0 -1
- package/dist/cliproxy/quota-response-cache.js.map +0 -1
- package/dist/cliproxy/quota-types.d.ts.map +0 -1
- package/dist/cliproxy/quota-types.js.map +0 -1
- package/dist/cliproxy/remote-auth-fetcher.d.ts.map +0 -1
- package/dist/cliproxy/remote-auth-fetcher.js.map +0 -1
- package/dist/cliproxy/remote-proxy-client.d.ts.map +0 -1
- package/dist/cliproxy/remote-proxy-client.js.map +0 -1
- package/dist/cliproxy/remote-token-uploader.d.ts.map +0 -1
- package/dist/cliproxy/remote-token-uploader.js.map +0 -1
- package/dist/cliproxy/routing-strategy-http.d.ts.map +0 -1
- package/dist/cliproxy/routing-strategy-http.js.map +0 -1
- package/dist/cliproxy/routing-strategy.d.ts.map +0 -1
- package/dist/cliproxy/routing-strategy.js.map +0 -1
- package/dist/cliproxy/schema-sanitizer.d.ts.map +0 -1
- package/dist/cliproxy/schema-sanitizer.js.map +0 -1
- package/dist/cliproxy/startup-lock.d.ts.map +0 -1
- package/dist/cliproxy/startup-lock.js.map +0 -1
- package/dist/cliproxy/stats-fetcher.d.ts.map +0 -1
- package/dist/cliproxy/stats-fetcher.js.map +0 -1
- package/dist/cliproxy/stats-transformer.d.ts.map +0 -1
- package/dist/cliproxy/stats-transformer.js.map +0 -1
- package/dist/cliproxy/tool-name-mapper.d.ts.map +0 -1
- package/dist/cliproxy/tool-name-mapper.js.map +0 -1
- package/dist/cliproxy/tool-name-sanitizer.d.ts.map +0 -1
- package/dist/cliproxy/tool-name-sanitizer.js.map +0 -1
- package/dist/cliproxy/tool-sanitization-proxy.d.ts.map +0 -1
- package/dist/cliproxy/tool-sanitization-proxy.js.map +0 -1
- package/dist/ui/assets/cliproxy-CuLlmDu7.js +0 -3
- package/dist/ui/assets/icons-DyorC3Xk.js +0 -1
- package/dist/ui/assets/index-DM5Khyln.css +0 -1
- package/dist/ui/assets/logs-CxwEaeVS.js +0 -1
- /package/dist/cliproxy/{account-stats-key.d.ts → accounts/account-stats-key.d.ts} +0 -0
- /package/dist/cliproxy/{account-stats-key.js → accounts/account-stats-key.js} +0 -0
- /package/dist/cliproxy/{codex-reasoning-proxy.d.ts → ai-providers/codex-reasoning-proxy.d.ts} +0 -0
- /package/dist/cliproxy/{openai-compat-manager.d.ts → ai-providers/openai-compat-manager.d.ts} +0 -0
- /package/dist/cliproxy/{schema-sanitizer.d.ts → ai-providers/schema-sanitizer.d.ts} +0 -0
- /package/dist/cliproxy/{schema-sanitizer.js → ai-providers/schema-sanitizer.js} +0 -0
- /package/dist/cliproxy/{antigravity-responsibility.d.ts → auth/antigravity-responsibility.d.ts} +0 -0
- /package/dist/cliproxy/{auth-token-manager.d.ts → auth/auth-token-manager.d.ts} +0 -0
- /package/dist/cliproxy/{auth-utils.d.ts → auth/auth-utils.d.ts} +0 -0
- /package/dist/cliproxy/{auth-utils.js → auth/auth-utils.js} +0 -0
- /package/dist/cliproxy/{device-code-handler.d.ts → auth/device-code-handler.d.ts} +0 -0
- /package/dist/cliproxy/{device-code-handler.js → auth/device-code-handler.js} +0 -0
- /package/dist/cliproxy/{project-selection-handler.d.ts → auth/project-selection-handler.d.ts} +0 -0
- /package/dist/cliproxy/{project-selection-handler.js → auth/project-selection-handler.js} +0 -0
- /package/dist/cliproxy/{provider-entitlement-evidence.js → auth/provider-entitlement-evidence.js} +0 -0
- /package/dist/cliproxy/{provider-entitlement-types.js → auth/provider-entitlement-types.js} +0 -0
- /package/dist/cliproxy/{composite-validator.d.ts → config/composite-validator.d.ts} +0 -0
- /package/dist/cliproxy/{management-api-types.d.ts → management/management-api-types.d.ts} +0 -0
- /package/dist/cliproxy/{management-api-types.js → management/management-api-types.js} +0 -0
- /package/dist/cliproxy/{remote-token-uploader.d.ts → management/remote-token-uploader.d.ts} +0 -0
- /package/dist/cliproxy/{https-tunnel-proxy.d.ts → proxy/https-tunnel-proxy.d.ts} +0 -0
- /package/dist/cliproxy/{proxy-target-resolver.d.ts → proxy/proxy-target-resolver.d.ts} +0 -0
- /package/dist/cliproxy/{tool-sanitization-proxy.d.ts → proxy/tool-sanitization-proxy.d.ts} +0 -0
- /package/dist/cliproxy/{gemini-cli-quota-normalizer.d.ts → quota/gemini-cli-quota-normalizer.d.ts} +0 -0
- /package/dist/cliproxy/{gemini-cli-quota-normalizer.js → quota/gemini-cli-quota-normalizer.js} +0 -0
- /package/dist/cliproxy/{quota-fetcher-claude-normalizer.d.ts → quota/quota-fetcher-claude-normalizer.d.ts} +0 -0
- /package/dist/cliproxy/{quota-fetcher-claude.d.ts → quota/quota-fetcher-claude.d.ts} +0 -0
- /package/dist/cliproxy/{quota-fetcher-codex.d.ts → quota/quota-fetcher-codex.d.ts} +0 -0
- /package/dist/cliproxy/{quota-fetcher-gemini-cli.d.ts → quota/quota-fetcher-gemini-cli.d.ts} +0 -0
- /package/dist/cliproxy/{quota-fetcher-ghcp.d.ts → quota/quota-fetcher-ghcp.d.ts} +0 -0
- /package/dist/cliproxy/{quota-response-cache.d.ts → quota/quota-response-cache.d.ts} +0 -0
- /package/dist/cliproxy/{quota-response-cache.js → quota/quota-response-cache.js} +0 -0
- /package/dist/cliproxy/{quota-types.js → quota/quota-types.js} +0 -0
- /package/dist/cliproxy/{remote-proxy-client.d.ts → services/remote-proxy-client.d.ts} +0 -0
- /package/dist/cliproxy/{startup-lock.d.ts → services/startup-lock.d.ts} +0 -0
- /package/dist/cliproxy/{stats-fetcher.d.ts → services/stats-fetcher.d.ts} +0 -0
- /package/dist/cliproxy/{stats-transformer.d.ts → services/stats-transformer.d.ts} +0 -0
|
@@ -7,824 +7,9 @@
|
|
|
7
7
|
* - *.settings.json (env vars)
|
|
8
8
|
*
|
|
9
9
|
* Into a single config.yaml structure.
|
|
10
|
-
*/
|
|
11
|
-
import type { TargetType } from '../targets/target-adapter';
|
|
12
|
-
import type { CLIProxyProvider, CliproxyRoutingStrategy } from '../cliproxy/types';
|
|
13
|
-
/**
|
|
14
|
-
* Unified config version.
|
|
15
|
-
* Version 2 = YAML unified format
|
|
16
|
-
* Version 3 = WebSearch config with model configuration for Gemini/OpenCode
|
|
17
|
-
* Version 4 = Copilot API integration (GitHub Copilot proxy)
|
|
18
|
-
* Version 5 = Remote proxy configuration (connect to remote CLIProxyAPI)
|
|
19
|
-
* Version 6 = Customizable auth tokens (API key and management secret)
|
|
20
|
-
* Version 7 = Quota management for hybrid auto+manual account control
|
|
21
|
-
* Version 8 = Thinking/reasoning budget configuration
|
|
22
|
-
* Version 9 = Real WebSearch backends (DuckDuckGo/Brave) with legacy CLI fallback
|
|
23
|
-
* Version 10 = Exa + Tavily WebSearch backends
|
|
24
|
-
* Version 11 = Discord Channels runtime auto-enable preferences
|
|
25
|
-
* Version 12 = Official Channels multi-provider support (Telegram, Discord, iMessage)
|
|
26
|
-
* Version 13 = Browser automation defaults to safe manual/off exposure
|
|
27
|
-
*/
|
|
28
|
-
export declare const UNIFIED_CONFIG_VERSION = 13;
|
|
29
|
-
/**
|
|
30
|
-
* Supported CLIProxy providers.
|
|
31
|
-
* Derived from CLIPROXY_PROVIDER_IDS — single source of truth in provider-capabilities.ts.
|
|
32
|
-
*/
|
|
33
|
-
export declare const CLIPROXY_SUPPORTED_PROVIDERS: readonly CLIProxyProvider[];
|
|
34
|
-
/**
|
|
35
|
-
* Account configuration (formerly in profiles.json).
|
|
36
|
-
* Represents an isolated Claude instance via CLAUDE_CONFIG_DIR.
|
|
37
|
-
*/
|
|
38
|
-
export interface AccountConfig {
|
|
39
|
-
/** ISO timestamp when account was created */
|
|
40
|
-
created: string;
|
|
41
|
-
/** ISO timestamp of last usage, null if never used */
|
|
42
|
-
last_used: string | null;
|
|
43
|
-
/** Context mode for project workspace data */
|
|
44
|
-
context_mode?: 'isolated' | 'shared';
|
|
45
|
-
/** Context-sharing group when context_mode='shared' */
|
|
46
|
-
context_group?: string;
|
|
47
|
-
/** Shared continuity depth when context_mode='shared' */
|
|
48
|
-
continuity_mode?: 'standard' | 'deeper';
|
|
49
|
-
/** Bare profile: no shared symlinks (commands, skills, agents, settings.json) */
|
|
50
|
-
bare?: boolean;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* API-based profile configuration.
|
|
54
|
-
* Injects environment variables for alternative providers (GLM, Kimi, etc.).
|
|
55
10
|
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*/
|
|
59
|
-
export interface ProfileConfig {
|
|
60
|
-
/** Profile type - currently only 'api' */
|
|
61
|
-
type: 'api';
|
|
62
|
-
/** Path to settings file (e.g., "~/.ccs/glm.settings.json") */
|
|
63
|
-
settings: string;
|
|
64
|
-
/** Target CLI to use for this profile (default: 'claude') */
|
|
65
|
-
target?: TargetType;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* CLIProxy OAuth account nickname mapping.
|
|
69
|
-
* Maps user-friendly nicknames to email addresses.
|
|
70
|
-
*/
|
|
71
|
-
export type OAuthAccounts = Record<string, string>;
|
|
72
|
-
/**
|
|
73
|
-
* CLIProxy variant configuration.
|
|
74
|
-
* User-defined variants of built-in OAuth providers.
|
|
75
|
-
*
|
|
76
|
-
* Settings are stored in separate *.settings.json files (matching Claude's pattern)
|
|
77
|
-
* to allow users to edit them directly without touching config.yaml.
|
|
78
|
-
*/
|
|
79
|
-
export interface CLIProxyVariantConfig {
|
|
80
|
-
/** Base provider to use */
|
|
81
|
-
provider: CLIProxyProvider;
|
|
82
|
-
/** Account nickname (references oauth_accounts) */
|
|
83
|
-
account?: string;
|
|
84
|
-
/** Path to settings file (e.g., "~/.ccs/gemini-custom.settings.json") */
|
|
85
|
-
settings?: string;
|
|
86
|
-
/** Unique port for variant isolation (8318-8417) */
|
|
87
|
-
port?: number;
|
|
88
|
-
/** Per-variant auth override (optional) */
|
|
89
|
-
auth?: CLIProxyAuthConfig;
|
|
90
|
-
/** Target CLI to use for this variant (default: 'claude') */
|
|
91
|
-
target?: TargetType;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Per-tier provider+model mapping for composite variants.
|
|
95
|
-
*/
|
|
96
|
-
export interface CompositeTierConfig {
|
|
97
|
-
/** Provider for this tier */
|
|
98
|
-
provider: CLIProxyProvider;
|
|
99
|
-
/** Model ID to use for this tier */
|
|
100
|
-
model: string;
|
|
101
|
-
/** Account nickname (optional, references oauth_accounts) */
|
|
102
|
-
account?: string;
|
|
103
|
-
/** Fallback provider+model if primary fails */
|
|
104
|
-
fallback?: {
|
|
105
|
-
provider: CLIProxyProvider;
|
|
106
|
-
model: string;
|
|
107
|
-
account?: string;
|
|
108
|
-
};
|
|
109
|
-
/** Per-tier thinking budget override (e.g. 'xhigh', 'medium', 'off') */
|
|
110
|
-
thinking?: string;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Composite variant configuration.
|
|
114
|
-
* Mixes different providers per Claude tier (opus, sonnet, haiku) in a single profile.
|
|
115
|
-
* Uses CLIProxyAPI root endpoints (/v1/messages) for model-based routing
|
|
116
|
-
* instead of provider-specific endpoints (/api/provider/{provider}).
|
|
117
|
-
*/
|
|
118
|
-
export interface CompositeVariantConfig {
|
|
119
|
-
/** Discriminator for composite type */
|
|
120
|
-
type: 'composite';
|
|
121
|
-
/** Which tier ANTHROPIC_MODEL equals (default must be one of the three) */
|
|
122
|
-
default_tier: 'opus' | 'sonnet' | 'haiku';
|
|
123
|
-
/** Per-tier provider+model mapping */
|
|
124
|
-
tiers: {
|
|
125
|
-
opus: CompositeTierConfig;
|
|
126
|
-
sonnet: CompositeTierConfig;
|
|
127
|
-
haiku: CompositeTierConfig;
|
|
128
|
-
};
|
|
129
|
-
/** Path to settings file */
|
|
130
|
-
settings?: string;
|
|
131
|
-
/** Shared port for the composite profile */
|
|
132
|
-
port?: number;
|
|
133
|
-
/** Per-variant auth override (optional) */
|
|
134
|
-
auth?: CLIProxyAuthConfig;
|
|
135
|
-
/** Target CLI to use for this composite variant (default: 'claude') */
|
|
136
|
-
target?: TargetType;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* CLIProxy authentication configuration.
|
|
140
|
-
* Allows customization of API key and management secret for CLIProxyAPI.
|
|
141
|
-
*/
|
|
142
|
-
export interface CLIProxyAuthConfig {
|
|
143
|
-
/** API key for CCS-managed requests (default: 'ccs-internal-managed') */
|
|
144
|
-
api_key?: string;
|
|
145
|
-
/** Management secret for Control Panel login (default: 'ccs') */
|
|
146
|
-
management_secret?: string;
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* CLIProxy logging configuration.
|
|
150
|
-
* Controls whether CLIProxyAPI writes logs to disk.
|
|
151
|
-
* Logs can grow to several GB if left enabled.
|
|
152
|
-
*/
|
|
153
|
-
export interface CLIProxyLoggingConfig {
|
|
154
|
-
/** Enable logging to file (default: false to prevent disk bloat) */
|
|
155
|
-
enabled?: boolean;
|
|
156
|
-
/** Enable request logging for debugging (default: false) */
|
|
157
|
-
request_log?: boolean;
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* CLIProxy safety configuration.
|
|
161
|
-
* Controls high-risk flow safeguards for supported providers.
|
|
162
|
-
*/
|
|
163
|
-
export interface CLIProxySafetyConfig {
|
|
164
|
-
/** Allow skipping AGY responsibility checks and Gemini dashboard typed acknowledgement */
|
|
165
|
-
antigravity_ack_bypass?: boolean;
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Default CLIProxy safety configuration.
|
|
169
|
-
*/
|
|
170
|
-
export declare const DEFAULT_CLIPROXY_SAFETY_CONFIG: CLIProxySafetyConfig;
|
|
171
|
-
/**
|
|
172
|
-
* Token refresh configuration.
|
|
173
|
-
* Manages background token refresh worker settings.
|
|
174
|
-
*/
|
|
175
|
-
export interface TokenRefreshSettings {
|
|
176
|
-
/** Enable background token refresh (default: false) */
|
|
177
|
-
enabled?: boolean;
|
|
178
|
-
/** Refresh check interval in minutes (default: 30) */
|
|
179
|
-
interval_minutes?: number;
|
|
180
|
-
/** Preemptive refresh time in minutes (default: 45) */
|
|
181
|
-
preemptive_minutes?: number;
|
|
182
|
-
/** Maximum retry attempts per token (default: 3) */
|
|
183
|
-
max_retries?: number;
|
|
184
|
-
/** Enable verbose logging (default: false) */
|
|
185
|
-
verbose?: boolean;
|
|
186
|
-
}
|
|
187
|
-
export interface CLIProxyRoutingConfig {
|
|
188
|
-
/** Credential selection strategy when multiple accounts match */
|
|
189
|
-
strategy?: CliproxyRoutingStrategy;
|
|
190
|
-
/** Keep one conversation pinned to the same account when possible */
|
|
191
|
-
session_affinity?: boolean;
|
|
192
|
-
/** Go-style duration for session-affinity binding retention */
|
|
193
|
-
session_affinity_ttl?: string;
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* CLIProxy configuration section.
|
|
197
|
-
*/
|
|
198
|
-
export interface CLIProxyConfig {
|
|
199
|
-
/** Backend selection: 'original' or 'plus' (default: 'original') */
|
|
200
|
-
backend?: 'original' | 'plus';
|
|
201
|
-
/** Nickname to email mapping for OAuth accounts */
|
|
202
|
-
oauth_accounts: OAuthAccounts;
|
|
203
|
-
/** Built-in providers (read-only, for reference) */
|
|
204
|
-
providers: readonly string[];
|
|
205
|
-
/** User-defined provider variants (single-provider or composite) */
|
|
206
|
-
variants: Record<string, CLIProxyVariantConfig | CompositeVariantConfig>;
|
|
207
|
-
/** Logging configuration (disabled by default) */
|
|
208
|
-
logging?: CLIProxyLoggingConfig;
|
|
209
|
-
/** Safety controls for high-risk provider flows */
|
|
210
|
-
safety?: CLIProxySafetyConfig;
|
|
211
|
-
/** Kiro: disable incognito browser mode (use normal browser to save credentials) */
|
|
212
|
-
kiro_no_incognito?: boolean;
|
|
213
|
-
/** Global auth configuration for CLIProxyAPI */
|
|
214
|
-
auth?: CLIProxyAuthConfig;
|
|
215
|
-
/** Background token refresh worker settings */
|
|
216
|
-
token_refresh?: TokenRefreshSettings;
|
|
217
|
-
/** Auto-sync API profiles to local CLIProxy config on settings change (default: true) */
|
|
218
|
-
auto_sync?: boolean;
|
|
219
|
-
/** Routing strategy for multi-account CLIProxy selection */
|
|
220
|
-
routing?: CLIProxyRoutingConfig;
|
|
221
|
-
}
|
|
222
|
-
export type LoggingLevel = 'error' | 'warn' | 'info' | 'debug';
|
|
223
|
-
/**
|
|
224
|
-
* CCS-owned structured logging configuration.
|
|
225
|
-
* Separate from cliproxy.logging, which controls CLIProxy runtime files.
|
|
226
|
-
*/
|
|
227
|
-
export interface LoggingConfig {
|
|
228
|
-
/** Enable CCS-owned structured runtime logging */
|
|
229
|
-
enabled: boolean;
|
|
230
|
-
/** Minimum level written to disk */
|
|
231
|
-
level: LoggingLevel;
|
|
232
|
-
/** Rotate current log when it reaches this size in MB */
|
|
233
|
-
rotate_mb: number;
|
|
234
|
-
/** Keep archived segments for this many days */
|
|
235
|
-
retain_days: number;
|
|
236
|
-
/** Redact sensitive values before persistence */
|
|
237
|
-
redact: boolean;
|
|
238
|
-
/** In-memory recent event buffer size for dashboard reads */
|
|
239
|
-
live_buffer_size: number;
|
|
240
|
-
}
|
|
241
|
-
export declare const DEFAULT_LOGGING_CONFIG: LoggingConfig;
|
|
242
|
-
/**
|
|
243
|
-
* User preferences.
|
|
244
|
-
*/
|
|
245
|
-
export interface PreferencesConfig {
|
|
246
|
-
/** UI theme preference */
|
|
247
|
-
theme?: 'light' | 'dark' | 'system';
|
|
248
|
-
/** Enable anonymous telemetry */
|
|
249
|
-
telemetry?: boolean;
|
|
250
|
-
/** Enable automatic update checks */
|
|
251
|
-
auto_update?: boolean;
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* DuckDuckGo WebSearch configuration.
|
|
255
|
-
*/
|
|
256
|
-
export interface DuckDuckGoWebSearchConfig {
|
|
257
|
-
/** Enable DuckDuckGo HTML search fallback (default: true) */
|
|
258
|
-
enabled?: boolean;
|
|
259
|
-
/** Number of results to fetch (default: 5) */
|
|
260
|
-
max_results?: number;
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
* Brave WebSearch configuration.
|
|
264
|
-
*/
|
|
265
|
-
export interface BraveWebSearchConfig {
|
|
266
|
-
/** Enable Brave Search when BRAVE_API_KEY is available (default: false) */
|
|
267
|
-
enabled?: boolean;
|
|
268
|
-
/** Number of results to fetch (default: 5) */
|
|
269
|
-
max_results?: number;
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* Exa WebSearch configuration.
|
|
273
|
-
*/
|
|
274
|
-
export interface ExaWebSearchConfig {
|
|
275
|
-
/** Enable Exa Search when EXA_API_KEY is available (default: false) */
|
|
276
|
-
enabled?: boolean;
|
|
277
|
-
/** Number of results to fetch (default: 5) */
|
|
278
|
-
max_results?: number;
|
|
279
|
-
}
|
|
280
|
-
/**
|
|
281
|
-
* Tavily WebSearch configuration.
|
|
282
|
-
*/
|
|
283
|
-
export interface TavilyWebSearchConfig {
|
|
284
|
-
/** Enable Tavily Search when TAVILY_API_KEY is available (default: false) */
|
|
285
|
-
enabled?: boolean;
|
|
286
|
-
/** Number of results to fetch (default: 5) */
|
|
287
|
-
max_results?: number;
|
|
288
|
-
}
|
|
289
|
-
/**
|
|
290
|
-
* SearXNG WebSearch configuration.
|
|
291
|
-
*/
|
|
292
|
-
export interface SearxngWebSearchConfig {
|
|
293
|
-
/** Enable SearXNG JSON search backend (default: false) */
|
|
294
|
-
enabled?: boolean;
|
|
295
|
-
/** Base SearXNG URL, e.g. https://search.example.com (default: '') */
|
|
296
|
-
url?: string;
|
|
297
|
-
/** Number of results to fetch (default: 5) */
|
|
298
|
-
max_results?: number;
|
|
299
|
-
}
|
|
300
|
-
/**
|
|
301
|
-
* Gemini CLI WebSearch configuration.
|
|
302
|
-
*/
|
|
303
|
-
export interface GeminiWebSearchConfig {
|
|
304
|
-
/** Enable Gemini CLI legacy fallback (default: false) */
|
|
305
|
-
enabled?: boolean;
|
|
306
|
-
/** Model to use (default: gemini-2.5-flash) */
|
|
307
|
-
model?: string;
|
|
308
|
-
/** Timeout in seconds (default: 55) */
|
|
309
|
-
timeout?: number;
|
|
310
|
-
}
|
|
311
|
-
/**
|
|
312
|
-
* Grok CLI WebSearch configuration.
|
|
313
|
-
*/
|
|
314
|
-
export interface GrokWebSearchConfig {
|
|
315
|
-
/** Enable Grok CLI legacy fallback (default: false - requires GROK_API_KEY) */
|
|
316
|
-
enabled?: boolean;
|
|
317
|
-
/** Timeout in seconds (default: 55) */
|
|
318
|
-
timeout?: number;
|
|
319
|
-
}
|
|
320
|
-
/**
|
|
321
|
-
* OpenCode CLI WebSearch configuration.
|
|
322
|
-
*/
|
|
323
|
-
export interface OpenCodeWebSearchConfig {
|
|
324
|
-
/** Enable OpenCode CLI legacy fallback (default: false) */
|
|
325
|
-
enabled?: boolean;
|
|
326
|
-
/** Model to use (default: opencode/grok-code) */
|
|
327
|
-
model?: string;
|
|
328
|
-
/** Timeout in seconds (default: 60) */
|
|
329
|
-
timeout?: number;
|
|
330
|
-
}
|
|
331
|
-
/**
|
|
332
|
-
* WebSearch providers configuration.
|
|
333
|
-
* Uses deterministic search backends first, with optional legacy CLI fallback.
|
|
334
|
-
*/
|
|
335
|
-
export interface WebSearchProvidersConfig {
|
|
336
|
-
/** Exa Search API - API-backed search with strong relevance and content extraction */
|
|
337
|
-
exa?: ExaWebSearchConfig;
|
|
338
|
-
/** Tavily Search API - API-backed search optimized for agent/tool usage */
|
|
339
|
-
tavily?: TavilyWebSearchConfig;
|
|
340
|
-
/** Brave Search API - higher quality results when BRAVE_API_KEY is set */
|
|
341
|
-
brave?: BraveWebSearchConfig;
|
|
342
|
-
/** SearXNG JSON search - self-hosted or public instance backend */
|
|
343
|
-
searxng?: SearxngWebSearchConfig;
|
|
344
|
-
/** DuckDuckGo HTML search - zero setup default backend */
|
|
345
|
-
duckduckgo?: DuckDuckGoWebSearchConfig;
|
|
346
|
-
/** Gemini CLI - optional legacy LLM fallback */
|
|
347
|
-
gemini?: GeminiWebSearchConfig;
|
|
348
|
-
/** Grok CLI - optional legacy LLM fallback */
|
|
349
|
-
grok?: GrokWebSearchConfig;
|
|
350
|
-
/** OpenCode - optional legacy LLM fallback */
|
|
351
|
-
opencode?: OpenCodeWebSearchConfig;
|
|
352
|
-
}
|
|
353
|
-
/**
|
|
354
|
-
* Copilot API account type.
|
|
355
|
-
*/
|
|
356
|
-
export type CopilotAccountType = 'individual' | 'business' | 'enterprise';
|
|
357
|
-
/**
|
|
358
|
-
* Copilot API configuration.
|
|
359
|
-
* Enables GitHub Copilot subscription usage via copilot-api proxy.
|
|
360
|
-
* Strictly opt-in - disabled by default.
|
|
361
|
-
*
|
|
362
|
-
* !! DISCLAIMER - USE AT YOUR OWN RISK !!
|
|
363
|
-
* This uses an UNOFFICIAL reverse-engineered API.
|
|
364
|
-
* Excessive usage may trigger GitHub account restrictions.
|
|
365
|
-
* CCS provides NO WARRANTY and accepts NO RESPONSIBILITY for any consequences.
|
|
366
|
-
*/
|
|
367
|
-
export interface CopilotConfig {
|
|
368
|
-
/** Enable Copilot integration (default: false) - must be explicitly enabled */
|
|
369
|
-
enabled: boolean;
|
|
370
|
-
/** Auto-start copilot-api daemon when using profile (default: false) */
|
|
371
|
-
auto_start: boolean;
|
|
372
|
-
/** Port for copilot-api proxy (default: 4141) */
|
|
373
|
-
port: number;
|
|
374
|
-
/** GitHub Copilot account type (default: individual) */
|
|
375
|
-
account_type: CopilotAccountType;
|
|
376
|
-
/** Rate limit in seconds between requests (null = no limit) */
|
|
377
|
-
rate_limit: number | null;
|
|
378
|
-
/** Wait instead of error when rate limit is hit (default: true) */
|
|
379
|
-
wait_on_limit: boolean;
|
|
380
|
-
/** Default model ID (e.g., claude-sonnet-4.5) */
|
|
381
|
-
model: string;
|
|
382
|
-
/** Model mapping for Claude tiers - maps opus/sonnet/haiku to specific models */
|
|
383
|
-
opus_model?: string;
|
|
384
|
-
sonnet_model?: string;
|
|
385
|
-
haiku_model?: string;
|
|
386
|
-
}
|
|
387
|
-
/**
|
|
388
|
-
* Cursor IDE integration configuration.
|
|
389
|
-
* Enables Cursor IDE usage via cursor proxy daemon.
|
|
390
|
-
*/
|
|
391
|
-
export interface CursorConfig {
|
|
392
|
-
/** Enable Cursor integration (default: false) */
|
|
393
|
-
enabled: boolean;
|
|
394
|
-
/** Port for cursor proxy daemon (default: 20129) */
|
|
395
|
-
port: number;
|
|
396
|
-
/** Auto-start daemon when CCS starts (default: false) */
|
|
397
|
-
auto_start: boolean;
|
|
398
|
-
/** Enable ghost mode to disable telemetry (default: true) */
|
|
399
|
-
ghost_mode: boolean;
|
|
400
|
-
/** Default model ID used by Cursor integration */
|
|
401
|
-
model: string;
|
|
402
|
-
/** Optional tier mapping for Claude-compatible model routing */
|
|
403
|
-
opus_model?: string;
|
|
404
|
-
/** Optional tier mapping for Claude-compatible model routing */
|
|
405
|
-
sonnet_model?: string;
|
|
406
|
-
/** Optional tier mapping for Claude-compatible model routing */
|
|
407
|
-
haiku_model?: string;
|
|
408
|
-
}
|
|
409
|
-
/**
|
|
410
|
-
* Remote proxy configuration.
|
|
411
|
-
* Connect to a remote CLIProxyAPI instance instead of spawning local binary.
|
|
412
|
-
*/
|
|
413
|
-
export interface ProxyRemoteConfig {
|
|
414
|
-
/** Enable remote proxy mode (default: false = local mode) */
|
|
415
|
-
enabled: boolean;
|
|
416
|
-
/** Remote proxy hostname or IP (empty = not configured) */
|
|
417
|
-
host: string;
|
|
418
|
-
/**
|
|
419
|
-
* Remote proxy port.
|
|
420
|
-
* Optional - defaults based on protocol:
|
|
421
|
-
* - HTTPS: 443
|
|
422
|
-
* - HTTP: 8317
|
|
423
|
-
* When empty/undefined, uses protocol default.
|
|
424
|
-
*/
|
|
425
|
-
port?: number;
|
|
426
|
-
/** Protocol for remote connection */
|
|
427
|
-
protocol: 'http' | 'https';
|
|
428
|
-
/** Auth token for remote proxy API endpoints (optional, sent as header) */
|
|
429
|
-
auth_token: string;
|
|
430
|
-
/**
|
|
431
|
-
* Management key for remote proxy management API endpoints.
|
|
432
|
-
* CLIProxyAPI uses separate authentication for management endpoints
|
|
433
|
-
* (/v0/management/*) via 'secret-key' config.
|
|
434
|
-
* If not set, falls back to auth_token for backwards compatibility.
|
|
435
|
-
*/
|
|
436
|
-
management_key?: string;
|
|
437
|
-
/** Connection timeout in milliseconds (default: 2000) */
|
|
438
|
-
timeout?: number;
|
|
439
|
-
/** Enable auto-sync profiles to remote on settings change (default: false) */
|
|
440
|
-
auto_sync?: boolean;
|
|
441
|
-
}
|
|
442
|
-
/**
|
|
443
|
-
* Fallback configuration when remote proxy is unreachable.
|
|
444
|
-
*/
|
|
445
|
-
export interface ProxyFallbackConfig {
|
|
446
|
-
/** Enable fallback to local proxy (default: true) */
|
|
447
|
-
enabled: boolean;
|
|
448
|
-
/** Auto-start local proxy without prompting (default: false = prompt user) */
|
|
449
|
-
auto_start: boolean;
|
|
450
|
-
}
|
|
451
|
-
/**
|
|
452
|
-
* Local proxy configuration.
|
|
453
|
-
*/
|
|
454
|
-
export interface ProxyLocalConfig {
|
|
455
|
-
/** Local proxy port (default: 8317) */
|
|
456
|
-
port: number;
|
|
457
|
-
/** Auto-start local binary (default: true) */
|
|
458
|
-
auto_start: boolean;
|
|
459
|
-
}
|
|
460
|
-
export interface OpenAICompatProxyRoutingConfig {
|
|
461
|
-
default?: string;
|
|
462
|
-
background?: string;
|
|
463
|
-
think?: string;
|
|
464
|
-
longContext?: string;
|
|
465
|
-
webSearch?: string;
|
|
466
|
-
longContextThreshold?: number;
|
|
467
|
-
}
|
|
468
|
-
export interface OpenAICompatProxyConfig {
|
|
469
|
-
/** Default local port for OpenAI-compatible proxy instances */
|
|
470
|
-
port?: number;
|
|
471
|
-
/** Optional profile-scoped local port overrides */
|
|
472
|
-
profile_ports?: Record<string, number>;
|
|
473
|
-
routing?: OpenAICompatProxyRoutingConfig;
|
|
474
|
-
}
|
|
475
|
-
/**
|
|
476
|
-
* CLIProxy server configuration section.
|
|
477
|
-
* Controls whether CCS uses local or remote CLIProxyAPI instance.
|
|
478
|
-
*/
|
|
479
|
-
export interface CliproxyServerConfig {
|
|
480
|
-
/** Remote proxy settings */
|
|
481
|
-
remote: ProxyRemoteConfig;
|
|
482
|
-
/** Fallback behavior when remote is unreachable */
|
|
483
|
-
fallback: ProxyFallbackConfig;
|
|
484
|
-
/** Local proxy settings */
|
|
485
|
-
local: ProxyLocalConfig;
|
|
486
|
-
}
|
|
487
|
-
/**
|
|
488
|
-
* Global environment variables configuration.
|
|
489
|
-
* These env vars are injected into ALL non-Claude subscription profiles.
|
|
490
|
-
* Useful for disabling telemetry, bug commands, error reporting, etc.
|
|
491
|
-
*/
|
|
492
|
-
export interface GlobalEnvConfig {
|
|
493
|
-
/** Enable global env injection (default: true) */
|
|
494
|
-
enabled: boolean;
|
|
495
|
-
/** Environment variables to inject */
|
|
496
|
-
env: Record<string, string>;
|
|
497
|
-
}
|
|
498
|
-
/**
|
|
499
|
-
* Cross-profile continuity inheritance configuration.
|
|
500
|
-
* Maps execution profile names to source account profiles for CLAUDE_CONFIG_DIR reuse.
|
|
501
|
-
*/
|
|
502
|
-
export interface ContinuityConfig {
|
|
503
|
-
/** Profile name -> source account profile name */
|
|
504
|
-
inherit_from_account?: Record<string, string>;
|
|
505
|
-
}
|
|
506
|
-
/**
|
|
507
|
-
* Default global env vars for third-party profiles.
|
|
508
|
-
* These disable Claude Code telemetry/reporting since we're using proxy.
|
|
509
|
-
*/
|
|
510
|
-
export declare const DEFAULT_GLOBAL_ENV: Record<string, string>;
|
|
511
|
-
/**
|
|
512
|
-
* WebSearch configuration.
|
|
513
|
-
* Uses deterministic local backends for third-party profiles.
|
|
514
|
-
* Legacy AI CLI fallbacks remain available for compatibility only.
|
|
515
|
-
*/
|
|
516
|
-
export interface WebSearchConfig {
|
|
517
|
-
/** Master switch - enable/disable WebSearch (default: true) */
|
|
518
|
-
enabled?: boolean;
|
|
519
|
-
/** Individual provider configurations */
|
|
520
|
-
providers?: WebSearchProvidersConfig;
|
|
521
|
-
/** @deprecated Use providers.gemini instead */
|
|
522
|
-
gemini?: {
|
|
523
|
-
enabled?: boolean;
|
|
524
|
-
timeout?: number;
|
|
525
|
-
};
|
|
526
|
-
/** @deprecated Unused */
|
|
527
|
-
mode?: 'sequential' | 'parallel';
|
|
528
|
-
/** @deprecated Unused */
|
|
529
|
-
provider?: 'auto' | 'web-search-prime' | 'brave' | 'tavily';
|
|
530
|
-
/** @deprecated Unused */
|
|
531
|
-
fallback?: boolean;
|
|
532
|
-
/** @deprecated Unused */
|
|
533
|
-
webSearchPrimeUrl?: string;
|
|
534
|
-
/** @deprecated Unused */
|
|
535
|
-
selectedProviders?: string[];
|
|
536
|
-
/** @deprecated Unused */
|
|
537
|
-
customMcp?: unknown[];
|
|
538
|
-
}
|
|
539
|
-
/**
|
|
540
|
-
* Auto quota management configuration.
|
|
541
|
-
* Controls automatic failover behavior.
|
|
542
|
-
*/
|
|
543
|
-
export interface AutoQuotaConfig {
|
|
544
|
-
/** Enable pre-flight quota check before requests (default: true) */
|
|
545
|
-
preflight_check: boolean;
|
|
546
|
-
/** Quota percentage below which account is "exhausted" (default: 5) */
|
|
547
|
-
exhaustion_threshold: number;
|
|
548
|
-
/** Tier priority for failover, highest to lowest (default: ['paid']) */
|
|
549
|
-
tier_priority: string[];
|
|
550
|
-
/** Minutes to skip exhausted account before retry (default: 5) */
|
|
551
|
-
cooldown_minutes: number;
|
|
552
|
-
}
|
|
553
|
-
/**
|
|
554
|
-
* Runtime quota monitor configuration.
|
|
555
|
-
* Controls adaptive polling during active sessions.
|
|
556
|
-
*/
|
|
557
|
-
export interface RuntimeMonitorConfig {
|
|
558
|
-
/** Enable runtime monitoring during sessions (default: true) */
|
|
559
|
-
enabled: boolean;
|
|
560
|
-
/** Poll interval in seconds when quota > warn_threshold (default: 300) */
|
|
561
|
-
normal_interval_seconds: number;
|
|
562
|
-
/** Poll interval in seconds when quota <= warn_threshold (default: 60) */
|
|
563
|
-
critical_interval_seconds: number;
|
|
564
|
-
/** Quota percentage that triggers fast polling + warning (default: 20) */
|
|
565
|
-
warn_threshold: number;
|
|
566
|
-
/** Quota percentage that triggers cooldown + switch (default: 5) */
|
|
567
|
-
exhaustion_threshold: number;
|
|
568
|
-
/** Minutes to cooldown exhausted account (default: 5) */
|
|
569
|
-
cooldown_minutes: number;
|
|
570
|
-
}
|
|
571
|
-
/**
|
|
572
|
-
* Manual quota management configuration.
|
|
573
|
-
* User-controlled overrides for account selection.
|
|
574
|
-
*/
|
|
575
|
-
export interface ManualQuotaConfig {
|
|
576
|
-
/** User-paused accounts (stored in accounts.json) */
|
|
577
|
-
paused_accounts: string[];
|
|
578
|
-
/** Force use of specific account (overrides auto-selection) */
|
|
579
|
-
forced_default: string | null;
|
|
580
|
-
/** Lock to specific tier only */
|
|
581
|
-
tier_lock: string | null;
|
|
582
|
-
}
|
|
583
|
-
/**
|
|
584
|
-
* Quota management mode.
|
|
585
|
-
* - auto: Fully automatic failover based on quota
|
|
586
|
-
* - manual: User controls everything, no auto-switching
|
|
587
|
-
* - hybrid: Auto-failover with user overrides (default)
|
|
588
|
-
*/
|
|
589
|
-
export type QuotaManagementMode = 'auto' | 'manual' | 'hybrid';
|
|
590
|
-
/**
|
|
591
|
-
* Quota management configuration section.
|
|
592
|
-
* Controls hybrid auto+manual account selection for multi-account setups.
|
|
593
|
-
*/
|
|
594
|
-
export interface QuotaManagementConfig {
|
|
595
|
-
/** Management mode (default: hybrid) */
|
|
596
|
-
mode: QuotaManagementMode;
|
|
597
|
-
/** Auto mode settings */
|
|
598
|
-
auto: AutoQuotaConfig;
|
|
599
|
-
/** Manual mode settings */
|
|
600
|
-
manual: ManualQuotaConfig;
|
|
601
|
-
/** Runtime monitor settings */
|
|
602
|
-
runtime_monitor: RuntimeMonitorConfig;
|
|
603
|
-
}
|
|
604
|
-
/**
|
|
605
|
-
* Default auto quota configuration.
|
|
606
|
-
*/
|
|
607
|
-
export declare const DEFAULT_AUTO_QUOTA_CONFIG: AutoQuotaConfig;
|
|
608
|
-
/**
|
|
609
|
-
* Default manual quota configuration.
|
|
610
|
-
*/
|
|
611
|
-
export declare const DEFAULT_MANUAL_QUOTA_CONFIG: ManualQuotaConfig;
|
|
612
|
-
/**
|
|
613
|
-
* Default runtime monitor configuration.
|
|
614
|
-
*/
|
|
615
|
-
export declare const DEFAULT_RUNTIME_MONITOR_CONFIG: RuntimeMonitorConfig;
|
|
616
|
-
/**
|
|
617
|
-
* Default quota management configuration.
|
|
618
|
-
*/
|
|
619
|
-
export declare const DEFAULT_QUOTA_MANAGEMENT_CONFIG: QuotaManagementConfig;
|
|
620
|
-
/**
|
|
621
|
-
* Thinking mode for auto/manual/off control.
|
|
622
|
-
* - auto: Apply tier-based defaults (opus→high, sonnet→medium, haiku→low)
|
|
623
|
-
* - off: Disable thinking entirely
|
|
624
|
-
* - manual: Use explicit override value
|
|
625
|
-
*/
|
|
626
|
-
export type ThinkingMode = 'auto' | 'off' | 'manual';
|
|
627
|
-
/**
|
|
628
|
-
* Tier-to-thinking level defaults.
|
|
629
|
-
* Maps Claude tier names to thinking level names.
|
|
630
|
-
*/
|
|
631
|
-
export interface ThinkingTierDefaults {
|
|
632
|
-
/** Thinking level for opus tier (default: 'high') */
|
|
633
|
-
opus: string;
|
|
634
|
-
/** Thinking level for sonnet tier (default: 'medium') */
|
|
635
|
-
sonnet: string;
|
|
636
|
-
/** Thinking level for haiku tier (default: 'low') */
|
|
637
|
-
haiku: string;
|
|
638
|
-
}
|
|
639
|
-
/**
|
|
640
|
-
* Thinking configuration section.
|
|
641
|
-
* Controls thinking/reasoning budget injection for CLIProxy providers.
|
|
642
|
-
*/
|
|
643
|
-
export interface ThinkingConfig {
|
|
644
|
-
/** Thinking mode (default: 'auto') */
|
|
645
|
-
mode: ThinkingMode;
|
|
646
|
-
/** Manual override value (level name or budget number) */
|
|
647
|
-
override?: string | number;
|
|
648
|
-
/** Tier-to-level mapping */
|
|
649
|
-
tier_defaults: ThinkingTierDefaults;
|
|
650
|
-
/** Per-provider overrides (e.g., { gemini: { opus: 'high' } }) */
|
|
651
|
-
provider_overrides?: Record<string, Partial<ThinkingTierDefaults>>;
|
|
652
|
-
/** Show warning when values are clamped (default: true) */
|
|
653
|
-
show_warnings?: boolean;
|
|
654
|
-
}
|
|
655
|
-
/**
|
|
656
|
-
* Default thinking tier defaults.
|
|
657
|
-
*/
|
|
658
|
-
export declare const DEFAULT_THINKING_TIER_DEFAULTS: ThinkingTierDefaults;
|
|
659
|
-
/**
|
|
660
|
-
* Default thinking configuration.
|
|
661
|
-
*/
|
|
662
|
-
export declare const DEFAULT_THINKING_CONFIG: ThinkingConfig;
|
|
663
|
-
/**
|
|
664
|
-
* Supported Anthropic official channel IDs.
|
|
665
|
-
*/
|
|
666
|
-
export type OfficialChannelId = 'telegram' | 'discord' | 'imessage';
|
|
667
|
-
/**
|
|
668
|
-
* Official Channels configuration.
|
|
669
|
-
* Controls runtime-only injection of Anthropic's official channel plugins.
|
|
670
|
-
*/
|
|
671
|
-
export interface OfficialChannelsConfig {
|
|
672
|
-
/** Selected official channels to auto-enable for compatible sessions */
|
|
673
|
-
selected: OfficialChannelId[];
|
|
674
|
-
/** Also add --dangerously-skip-permissions when auto-enable is active */
|
|
675
|
-
unattended: boolean;
|
|
676
|
-
}
|
|
677
|
-
/**
|
|
678
|
-
* Default Official Channels configuration.
|
|
679
|
-
* Disabled by default because the feature requires explicit user setup.
|
|
680
|
-
*/
|
|
681
|
-
export declare const DEFAULT_OFFICIAL_CHANNELS_CONFIG: OfficialChannelsConfig;
|
|
682
|
-
/**
|
|
683
|
-
* Dashboard authentication configuration.
|
|
684
|
-
* Optional login protection for CCS dashboard.
|
|
685
|
-
* Disabled by default for backward compatibility.
|
|
686
|
-
*/
|
|
687
|
-
export interface DashboardAuthConfig {
|
|
688
|
-
/** Enable dashboard authentication (default: false) */
|
|
689
|
-
enabled: boolean;
|
|
690
|
-
/** Username for dashboard login */
|
|
691
|
-
username: string;
|
|
692
|
-
/** Bcrypt-hashed password (use: npx bcrypt-cli hash 'password') */
|
|
693
|
-
password_hash: string;
|
|
694
|
-
/** Session timeout in hours (default: 24) */
|
|
695
|
-
session_timeout_hours?: number;
|
|
696
|
-
}
|
|
697
|
-
/**
|
|
698
|
-
* Default dashboard auth configuration.
|
|
699
|
-
* Disabled by default - must be explicitly enabled.
|
|
700
|
-
*/
|
|
701
|
-
export declare const DEFAULT_DASHBOARD_AUTH_CONFIG: DashboardAuthConfig;
|
|
702
|
-
/**
|
|
703
|
-
* Browser automation configuration.
|
|
704
|
-
* Controls Claude browser attach and Codex browser tooling.
|
|
705
|
-
*/
|
|
706
|
-
export type BrowserToolPolicy = 'auto' | 'manual';
|
|
707
|
-
export type BrowserEvalMode = 'disabled' | 'readonly' | 'readwrite';
|
|
708
|
-
export interface BrowserClaudeConfig {
|
|
709
|
-
/** Enable Claude browser attach (default: false) */
|
|
710
|
-
enabled: boolean;
|
|
711
|
-
/** Control whether Claude browser attach is exposed automatically or only via --browser */
|
|
712
|
-
policy: BrowserToolPolicy;
|
|
713
|
-
/** Chrome user-data directory used for attach mode */
|
|
714
|
-
user_data_dir: string;
|
|
715
|
-
/** DevTools port used for attach mode (default: 9222) */
|
|
716
|
-
devtools_port: number;
|
|
717
|
-
/** Eval access mode exposed through browser settings/status surfaces */
|
|
718
|
-
eval_mode?: BrowserEvalMode;
|
|
719
|
-
}
|
|
720
|
-
export interface BrowserCodexConfig {
|
|
721
|
-
/** Enable Codex browser tooling injection (default: false) */
|
|
722
|
-
enabled: boolean;
|
|
723
|
-
/** Control whether Codex browser tooling is exposed automatically or only via --browser */
|
|
724
|
-
policy: BrowserToolPolicy;
|
|
725
|
-
/** Eval access mode exposed through browser settings/status surfaces */
|
|
726
|
-
eval_mode?: BrowserEvalMode;
|
|
727
|
-
}
|
|
728
|
-
export interface BrowserConfig {
|
|
729
|
-
claude: BrowserClaudeConfig;
|
|
730
|
-
codex: BrowserCodexConfig;
|
|
731
|
-
}
|
|
732
|
-
export declare const DEFAULT_BROWSER_CONFIG: BrowserConfig;
|
|
733
|
-
/**
|
|
734
|
-
* Image analysis configuration.
|
|
735
|
-
* Routes image/PDF files through CLIProxy for vision analysis.
|
|
736
|
-
*/
|
|
737
|
-
export interface ImageAnalysisConfig {
|
|
738
|
-
/** Enable image analysis via CLIProxy (default: true) */
|
|
739
|
-
enabled: boolean;
|
|
740
|
-
/** Timeout in seconds (default: 60) */
|
|
741
|
-
timeout: number;
|
|
742
|
-
/** Provider-to-model mapping for vision analysis */
|
|
743
|
-
provider_models: Record<string, string>;
|
|
744
|
-
/** Fallback backend used when a profile does not resolve to a provider-specific backend */
|
|
745
|
-
fallback_backend?: string;
|
|
746
|
-
/** Explicit profile-name-to-backend overrides for settings/custom aliases */
|
|
747
|
-
profile_backends?: Record<string, string>;
|
|
748
|
-
}
|
|
749
|
-
/**
|
|
750
|
-
* Default image analysis configuration.
|
|
751
|
-
* Enabled by default for CLIProxy providers with vision support.
|
|
752
|
-
*/
|
|
753
|
-
export declare const DEFAULT_IMAGE_ANALYSIS_CONFIG: ImageAnalysisConfig;
|
|
754
|
-
/**
|
|
755
|
-
* Main unified configuration structure.
|
|
756
|
-
* Stored in ~/.ccs/config.yaml
|
|
757
|
-
*/
|
|
758
|
-
export interface UnifiedConfig {
|
|
759
|
-
/** Config version (7 for quota management) */
|
|
760
|
-
version: number;
|
|
761
|
-
/** Flag indicating setup wizard has been completed */
|
|
762
|
-
setup_completed?: boolean;
|
|
763
|
-
/** Default profile name to use when none specified */
|
|
764
|
-
default?: string;
|
|
765
|
-
/** Account-based profiles (isolated Claude instances) */
|
|
766
|
-
accounts: Record<string, AccountConfig>;
|
|
767
|
-
/** API-based profiles (env var injection) */
|
|
768
|
-
profiles: Record<string, ProfileConfig>;
|
|
769
|
-
/** CLIProxy configuration */
|
|
770
|
-
cliproxy: CLIProxyConfig;
|
|
771
|
-
/** OpenAI-compatible local proxy configuration */
|
|
772
|
-
proxy?: OpenAICompatProxyConfig;
|
|
773
|
-
/** CCS-owned structured logging configuration */
|
|
774
|
-
logging?: LoggingConfig;
|
|
775
|
-
/** User preferences */
|
|
776
|
-
preferences: PreferencesConfig;
|
|
777
|
-
/** WebSearch configuration */
|
|
778
|
-
websearch?: WebSearchConfig;
|
|
779
|
-
/** Global environment variables for all non-Claude subscription profiles */
|
|
780
|
-
global_env?: GlobalEnvConfig;
|
|
781
|
-
/** Cross-profile continuity inheritance mapping */
|
|
782
|
-
continuity?: ContinuityConfig;
|
|
783
|
-
/** Copilot API configuration (GitHub Copilot proxy) */
|
|
784
|
-
copilot?: CopilotConfig;
|
|
785
|
-
/** Cursor IDE configuration (Cursor proxy daemon) */
|
|
786
|
-
cursor?: CursorConfig;
|
|
787
|
-
/** CLIProxy server configuration for remote/local mode */
|
|
788
|
-
cliproxy_server?: CliproxyServerConfig;
|
|
789
|
-
/** Quota management configuration (v7+) */
|
|
790
|
-
quota_management?: QuotaManagementConfig;
|
|
791
|
-
/** Thinking/reasoning budget configuration (v8+) */
|
|
792
|
-
thinking?: ThinkingConfig;
|
|
793
|
-
/** Discord Channels runtime auto-enable preferences (v11+) */
|
|
794
|
-
channels?: OfficialChannelsConfig;
|
|
795
|
-
/** Dashboard authentication configuration (optional) */
|
|
796
|
-
dashboard_auth?: DashboardAuthConfig;
|
|
797
|
-
/** Browser automation configuration */
|
|
798
|
-
browser?: BrowserConfig;
|
|
799
|
-
/** Image analysis configuration (vision via CLIProxy) */
|
|
800
|
-
image_analysis?: ImageAnalysisConfig;
|
|
801
|
-
}
|
|
802
|
-
/**
|
|
803
|
-
* Default Copilot configuration.
|
|
804
|
-
* Strictly opt-in - disabled by default.
|
|
805
|
-
* Uses gpt-4.1 as default model (free tier compatible).
|
|
806
|
-
*/
|
|
807
|
-
export declare const DEFAULT_COPILOT_CONFIG: CopilotConfig;
|
|
808
|
-
/**
|
|
809
|
-
* Default Cursor configuration.
|
|
810
|
-
* Disabled by default, ghost mode enabled for privacy.
|
|
811
|
-
*/
|
|
812
|
-
export declare const DEFAULT_CURSOR_CONFIG: CursorConfig;
|
|
813
|
-
/**
|
|
814
|
-
* Default CLIProxy server configuration.
|
|
815
|
-
* Local mode by default - remote must be explicitly enabled.
|
|
816
|
-
* Port is optional for remote - defaults based on protocol.
|
|
817
|
-
*/
|
|
818
|
-
export declare const DEFAULT_CLIPROXY_SERVER_CONFIG: CliproxyServerConfig;
|
|
819
|
-
export declare const DEFAULT_OPENAI_COMPAT_PROXY_CONFIG: OpenAICompatProxyConfig;
|
|
820
|
-
/**
|
|
821
|
-
* Create an empty unified config with defaults.
|
|
822
|
-
*/
|
|
823
|
-
export declare function createEmptyUnifiedConfig(): UnifiedConfig;
|
|
824
|
-
/**
|
|
825
|
-
* Type guard for UnifiedConfig.
|
|
826
|
-
* Relaxed validation: accepts configs with version >= 1 and any subset of sections.
|
|
827
|
-
* Missing sections will be filled with defaults during merge.
|
|
11
|
+
* Types have been reorganized into src/config/schemas/ for maintainability.
|
|
12
|
+
* This file re-exports everything for backward compatibility.
|
|
828
13
|
*/
|
|
829
|
-
export
|
|
14
|
+
export * from './schemas/index';
|
|
830
15
|
//# sourceMappingURL=unified-config-types.d.ts.map
|