ccproxy-api 0.1.7__py3-none-any.whl → 0.2.0a4__py3-none-any.whl
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.
- ccproxy/api/__init__.py +1 -15
- ccproxy/api/app.py +434 -219
- ccproxy/api/bootstrap.py +30 -0
- ccproxy/api/decorators.py +85 -0
- ccproxy/api/dependencies.py +144 -168
- ccproxy/api/format_validation.py +54 -0
- ccproxy/api/middleware/cors.py +6 -3
- ccproxy/api/middleware/errors.py +388 -524
- ccproxy/api/middleware/hooks.py +563 -0
- ccproxy/api/middleware/normalize_headers.py +59 -0
- ccproxy/api/middleware/request_id.py +35 -16
- ccproxy/api/middleware/streaming_hooks.py +292 -0
- ccproxy/api/routes/__init__.py +5 -14
- ccproxy/api/routes/health.py +39 -672
- ccproxy/api/routes/plugins.py +277 -0
- ccproxy/auth/__init__.py +2 -19
- ccproxy/auth/bearer.py +25 -15
- ccproxy/auth/dependencies.py +123 -157
- ccproxy/auth/exceptions.py +0 -12
- ccproxy/auth/manager.py +35 -49
- ccproxy/auth/managers/__init__.py +10 -0
- ccproxy/auth/managers/base.py +523 -0
- ccproxy/auth/managers/base_enhanced.py +63 -0
- ccproxy/auth/managers/token_snapshot.py +77 -0
- ccproxy/auth/models/base.py +65 -0
- ccproxy/auth/models/credentials.py +40 -0
- ccproxy/auth/oauth/__init__.py +4 -18
- ccproxy/auth/oauth/base.py +533 -0
- ccproxy/auth/oauth/cli_errors.py +37 -0
- ccproxy/auth/oauth/flows.py +430 -0
- ccproxy/auth/oauth/protocol.py +366 -0
- ccproxy/auth/oauth/registry.py +408 -0
- ccproxy/auth/oauth/router.py +396 -0
- ccproxy/auth/oauth/routes.py +186 -113
- ccproxy/auth/oauth/session.py +151 -0
- ccproxy/auth/oauth/templates.py +342 -0
- ccproxy/auth/storage/__init__.py +2 -5
- ccproxy/auth/storage/base.py +279 -5
- ccproxy/auth/storage/generic.py +134 -0
- ccproxy/cli/__init__.py +1 -2
- ccproxy/cli/_settings_help.py +351 -0
- ccproxy/cli/commands/auth.py +1519 -793
- ccproxy/cli/commands/config/commands.py +209 -276
- ccproxy/cli/commands/plugins.py +669 -0
- ccproxy/cli/commands/serve.py +75 -810
- ccproxy/cli/commands/status.py +254 -0
- ccproxy/cli/decorators.py +83 -0
- ccproxy/cli/helpers.py +22 -60
- ccproxy/cli/main.py +359 -10
- ccproxy/cli/options/claude_options.py +0 -25
- ccproxy/config/__init__.py +7 -11
- ccproxy/config/core.py +227 -0
- ccproxy/config/env_generator.py +232 -0
- ccproxy/config/runtime.py +67 -0
- ccproxy/config/security.py +36 -3
- ccproxy/config/settings.py +382 -441
- ccproxy/config/toml_generator.py +299 -0
- ccproxy/config/utils.py +452 -0
- ccproxy/core/__init__.py +7 -271
- ccproxy/{_version.py → core/_version.py} +16 -3
- ccproxy/core/async_task_manager.py +516 -0
- ccproxy/core/async_utils.py +47 -14
- ccproxy/core/auth/__init__.py +6 -0
- ccproxy/core/constants.py +16 -50
- ccproxy/core/errors.py +53 -0
- ccproxy/core/id_utils.py +20 -0
- ccproxy/core/interfaces.py +16 -123
- ccproxy/core/logging.py +473 -18
- ccproxy/core/plugins/__init__.py +77 -0
- ccproxy/core/plugins/cli_discovery.py +211 -0
- ccproxy/core/plugins/declaration.py +455 -0
- ccproxy/core/plugins/discovery.py +604 -0
- ccproxy/core/plugins/factories.py +967 -0
- ccproxy/core/plugins/hooks/__init__.py +30 -0
- ccproxy/core/plugins/hooks/base.py +58 -0
- ccproxy/core/plugins/hooks/events.py +46 -0
- ccproxy/core/plugins/hooks/implementations/__init__.py +16 -0
- ccproxy/core/plugins/hooks/implementations/formatters/__init__.py +11 -0
- ccproxy/core/plugins/hooks/implementations/formatters/json.py +552 -0
- ccproxy/core/plugins/hooks/implementations/formatters/raw.py +370 -0
- ccproxy/core/plugins/hooks/implementations/http_tracer.py +431 -0
- ccproxy/core/plugins/hooks/layers.py +44 -0
- ccproxy/core/plugins/hooks/manager.py +186 -0
- ccproxy/core/plugins/hooks/registry.py +139 -0
- ccproxy/core/plugins/hooks/thread_manager.py +203 -0
- ccproxy/core/plugins/hooks/types.py +22 -0
- ccproxy/core/plugins/interfaces.py +416 -0
- ccproxy/core/plugins/loader.py +166 -0
- ccproxy/core/plugins/middleware.py +233 -0
- ccproxy/core/plugins/models.py +59 -0
- ccproxy/core/plugins/protocol.py +180 -0
- ccproxy/core/plugins/runtime.py +519 -0
- ccproxy/{observability/context.py → core/request_context.py} +137 -94
- ccproxy/core/status_report.py +211 -0
- ccproxy/core/transformers.py +13 -8
- ccproxy/data/claude_headers_fallback.json +540 -19
- ccproxy/data/codex_headers_fallback.json +114 -7
- ccproxy/http/__init__.py +30 -0
- ccproxy/http/base.py +95 -0
- ccproxy/http/client.py +323 -0
- ccproxy/http/hooks.py +642 -0
- ccproxy/http/pool.py +279 -0
- ccproxy/llms/formatters/__init__.py +7 -0
- ccproxy/llms/formatters/anthropic_to_openai/__init__.py +55 -0
- ccproxy/llms/formatters/anthropic_to_openai/errors.py +65 -0
- ccproxy/llms/formatters/anthropic_to_openai/requests.py +356 -0
- ccproxy/llms/formatters/anthropic_to_openai/responses.py +153 -0
- ccproxy/llms/formatters/anthropic_to_openai/streams.py +1546 -0
- ccproxy/llms/formatters/base.py +140 -0
- ccproxy/llms/formatters/base_model.py +33 -0
- ccproxy/llms/formatters/common/__init__.py +51 -0
- ccproxy/llms/formatters/common/identifiers.py +48 -0
- ccproxy/llms/formatters/common/streams.py +254 -0
- ccproxy/llms/formatters/common/thinking.py +74 -0
- ccproxy/llms/formatters/common/usage.py +135 -0
- ccproxy/llms/formatters/constants.py +55 -0
- ccproxy/llms/formatters/context.py +116 -0
- ccproxy/llms/formatters/mapping.py +33 -0
- ccproxy/llms/formatters/openai_to_anthropic/__init__.py +55 -0
- ccproxy/llms/formatters/openai_to_anthropic/_helpers.py +141 -0
- ccproxy/llms/formatters/openai_to_anthropic/errors.py +53 -0
- ccproxy/llms/formatters/openai_to_anthropic/requests.py +674 -0
- ccproxy/llms/formatters/openai_to_anthropic/responses.py +285 -0
- ccproxy/llms/formatters/openai_to_anthropic/streams.py +530 -0
- ccproxy/llms/formatters/openai_to_openai/__init__.py +53 -0
- ccproxy/llms/formatters/openai_to_openai/_helpers.py +325 -0
- ccproxy/llms/formatters/openai_to_openai/errors.py +6 -0
- ccproxy/llms/formatters/openai_to_openai/requests.py +388 -0
- ccproxy/llms/formatters/openai_to_openai/responses.py +594 -0
- ccproxy/llms/formatters/openai_to_openai/streams.py +1832 -0
- ccproxy/llms/formatters/utils.py +306 -0
- ccproxy/llms/models/__init__.py +9 -0
- ccproxy/llms/models/anthropic.py +619 -0
- ccproxy/llms/models/openai.py +844 -0
- ccproxy/llms/streaming/__init__.py +26 -0
- ccproxy/llms/streaming/accumulators.py +1074 -0
- ccproxy/llms/streaming/formatters.py +251 -0
- ccproxy/{adapters/openai/streaming.py → llms/streaming/processors.py} +193 -240
- ccproxy/models/__init__.py +8 -159
- ccproxy/models/detection.py +92 -193
- ccproxy/models/provider.py +75 -0
- ccproxy/plugins/access_log/README.md +32 -0
- ccproxy/plugins/access_log/__init__.py +20 -0
- ccproxy/plugins/access_log/config.py +33 -0
- ccproxy/plugins/access_log/formatter.py +126 -0
- ccproxy/plugins/access_log/hook.py +763 -0
- ccproxy/plugins/access_log/logger.py +254 -0
- ccproxy/plugins/access_log/plugin.py +137 -0
- ccproxy/plugins/access_log/writer.py +109 -0
- ccproxy/plugins/analytics/README.md +24 -0
- ccproxy/plugins/analytics/__init__.py +1 -0
- ccproxy/plugins/analytics/config.py +5 -0
- ccproxy/plugins/analytics/ingest.py +85 -0
- ccproxy/plugins/analytics/models.py +97 -0
- ccproxy/plugins/analytics/plugin.py +121 -0
- ccproxy/plugins/analytics/routes.py +163 -0
- ccproxy/plugins/analytics/service.py +284 -0
- ccproxy/plugins/claude_api/README.md +29 -0
- ccproxy/plugins/claude_api/__init__.py +10 -0
- ccproxy/plugins/claude_api/adapter.py +829 -0
- ccproxy/plugins/claude_api/config.py +52 -0
- ccproxy/plugins/claude_api/detection_service.py +461 -0
- ccproxy/plugins/claude_api/health.py +175 -0
- ccproxy/plugins/claude_api/hooks.py +284 -0
- ccproxy/plugins/claude_api/models.py +256 -0
- ccproxy/plugins/claude_api/plugin.py +298 -0
- ccproxy/plugins/claude_api/routes.py +118 -0
- ccproxy/plugins/claude_api/streaming_metrics.py +68 -0
- ccproxy/plugins/claude_api/tasks.py +84 -0
- ccproxy/plugins/claude_sdk/README.md +35 -0
- ccproxy/plugins/claude_sdk/__init__.py +80 -0
- ccproxy/plugins/claude_sdk/adapter.py +749 -0
- ccproxy/plugins/claude_sdk/auth.py +57 -0
- ccproxy/{claude_sdk → plugins/claude_sdk}/client.py +63 -39
- ccproxy/plugins/claude_sdk/config.py +210 -0
- ccproxy/{claude_sdk → plugins/claude_sdk}/converter.py +6 -6
- ccproxy/plugins/claude_sdk/detection_service.py +163 -0
- ccproxy/{services/claude_sdk_service.py → plugins/claude_sdk/handler.py} +123 -304
- ccproxy/plugins/claude_sdk/health.py +113 -0
- ccproxy/plugins/claude_sdk/hooks.py +115 -0
- ccproxy/{claude_sdk → plugins/claude_sdk}/manager.py +42 -32
- ccproxy/{claude_sdk → plugins/claude_sdk}/message_queue.py +8 -8
- ccproxy/{models/claude_sdk.py → plugins/claude_sdk/models.py} +64 -16
- ccproxy/plugins/claude_sdk/options.py +154 -0
- ccproxy/{claude_sdk → plugins/claude_sdk}/parser.py +23 -5
- ccproxy/plugins/claude_sdk/plugin.py +269 -0
- ccproxy/plugins/claude_sdk/routes.py +104 -0
- ccproxy/{claude_sdk → plugins/claude_sdk}/session_client.py +124 -12
- ccproxy/plugins/claude_sdk/session_pool.py +700 -0
- ccproxy/{claude_sdk → plugins/claude_sdk}/stream_handle.py +48 -43
- ccproxy/{claude_sdk → plugins/claude_sdk}/stream_worker.py +22 -18
- ccproxy/{claude_sdk → plugins/claude_sdk}/streaming.py +50 -16
- ccproxy/plugins/claude_sdk/tasks.py +97 -0
- ccproxy/plugins/claude_shared/README.md +18 -0
- ccproxy/plugins/claude_shared/__init__.py +12 -0
- ccproxy/plugins/claude_shared/model_defaults.py +171 -0
- ccproxy/plugins/codex/README.md +35 -0
- ccproxy/plugins/codex/__init__.py +6 -0
- ccproxy/plugins/codex/adapter.py +635 -0
- ccproxy/{config/codex.py → plugins/codex/config.py} +78 -12
- ccproxy/plugins/codex/detection_service.py +544 -0
- ccproxy/plugins/codex/health.py +162 -0
- ccproxy/plugins/codex/hooks.py +263 -0
- ccproxy/plugins/codex/model_defaults.py +39 -0
- ccproxy/plugins/codex/models.py +263 -0
- ccproxy/plugins/codex/plugin.py +275 -0
- ccproxy/plugins/codex/routes.py +129 -0
- ccproxy/plugins/codex/streaming_metrics.py +324 -0
- ccproxy/plugins/codex/tasks.py +106 -0
- ccproxy/plugins/codex/utils/__init__.py +1 -0
- ccproxy/plugins/codex/utils/sse_parser.py +106 -0
- ccproxy/plugins/command_replay/README.md +34 -0
- ccproxy/plugins/command_replay/__init__.py +17 -0
- ccproxy/plugins/command_replay/config.py +133 -0
- ccproxy/plugins/command_replay/formatter.py +432 -0
- ccproxy/plugins/command_replay/hook.py +294 -0
- ccproxy/plugins/command_replay/plugin.py +161 -0
- ccproxy/plugins/copilot/README.md +39 -0
- ccproxy/plugins/copilot/__init__.py +11 -0
- ccproxy/plugins/copilot/adapter.py +465 -0
- ccproxy/plugins/copilot/config.py +155 -0
- ccproxy/plugins/copilot/data/copilot_fallback.json +41 -0
- ccproxy/plugins/copilot/detection_service.py +255 -0
- ccproxy/plugins/copilot/manager.py +275 -0
- ccproxy/plugins/copilot/model_defaults.py +284 -0
- ccproxy/plugins/copilot/models.py +148 -0
- ccproxy/plugins/copilot/oauth/__init__.py +16 -0
- ccproxy/plugins/copilot/oauth/client.py +494 -0
- ccproxy/plugins/copilot/oauth/models.py +385 -0
- ccproxy/plugins/copilot/oauth/provider.py +602 -0
- ccproxy/plugins/copilot/oauth/storage.py +170 -0
- ccproxy/plugins/copilot/plugin.py +360 -0
- ccproxy/plugins/copilot/routes.py +294 -0
- ccproxy/plugins/credential_balancer/README.md +124 -0
- ccproxy/plugins/credential_balancer/__init__.py +6 -0
- ccproxy/plugins/credential_balancer/config.py +270 -0
- ccproxy/plugins/credential_balancer/factory.py +415 -0
- ccproxy/plugins/credential_balancer/hook.py +51 -0
- ccproxy/plugins/credential_balancer/manager.py +587 -0
- ccproxy/plugins/credential_balancer/plugin.py +146 -0
- ccproxy/plugins/dashboard/README.md +25 -0
- ccproxy/plugins/dashboard/__init__.py +1 -0
- ccproxy/plugins/dashboard/config.py +8 -0
- ccproxy/plugins/dashboard/plugin.py +71 -0
- ccproxy/plugins/dashboard/routes.py +67 -0
- ccproxy/plugins/docker/README.md +32 -0
- ccproxy/{docker → plugins/docker}/__init__.py +3 -0
- ccproxy/{docker → plugins/docker}/adapter.py +108 -10
- ccproxy/plugins/docker/config.py +82 -0
- ccproxy/{docker → plugins/docker}/docker_path.py +4 -3
- ccproxy/{docker → plugins/docker}/middleware.py +2 -2
- ccproxy/plugins/docker/plugin.py +198 -0
- ccproxy/{docker → plugins/docker}/stream_process.py +3 -3
- ccproxy/plugins/duckdb_storage/README.md +26 -0
- ccproxy/plugins/duckdb_storage/__init__.py +1 -0
- ccproxy/plugins/duckdb_storage/config.py +22 -0
- ccproxy/plugins/duckdb_storage/plugin.py +128 -0
- ccproxy/plugins/duckdb_storage/routes.py +51 -0
- ccproxy/plugins/duckdb_storage/storage.py +633 -0
- ccproxy/plugins/max_tokens/README.md +38 -0
- ccproxy/plugins/max_tokens/__init__.py +12 -0
- ccproxy/plugins/max_tokens/adapter.py +235 -0
- ccproxy/plugins/max_tokens/config.py +86 -0
- ccproxy/plugins/max_tokens/models.py +53 -0
- ccproxy/plugins/max_tokens/plugin.py +200 -0
- ccproxy/plugins/max_tokens/service.py +271 -0
- ccproxy/plugins/max_tokens/token_limits.json +54 -0
- ccproxy/plugins/metrics/README.md +35 -0
- ccproxy/plugins/metrics/__init__.py +10 -0
- ccproxy/{observability/metrics.py → plugins/metrics/collector.py} +20 -153
- ccproxy/plugins/metrics/config.py +85 -0
- ccproxy/plugins/metrics/grafana/dashboards/ccproxy-dashboard.json +1720 -0
- ccproxy/plugins/metrics/hook.py +403 -0
- ccproxy/plugins/metrics/plugin.py +268 -0
- ccproxy/{observability → plugins/metrics}/pushgateway.py +57 -59
- ccproxy/plugins/metrics/routes.py +107 -0
- ccproxy/plugins/metrics/tasks.py +117 -0
- ccproxy/plugins/oauth_claude/README.md +35 -0
- ccproxy/plugins/oauth_claude/__init__.py +14 -0
- ccproxy/plugins/oauth_claude/client.py +270 -0
- ccproxy/plugins/oauth_claude/config.py +84 -0
- ccproxy/plugins/oauth_claude/manager.py +482 -0
- ccproxy/plugins/oauth_claude/models.py +266 -0
- ccproxy/plugins/oauth_claude/plugin.py +149 -0
- ccproxy/plugins/oauth_claude/provider.py +571 -0
- ccproxy/plugins/oauth_claude/storage.py +212 -0
- ccproxy/plugins/oauth_codex/README.md +38 -0
- ccproxy/plugins/oauth_codex/__init__.py +14 -0
- ccproxy/plugins/oauth_codex/client.py +224 -0
- ccproxy/plugins/oauth_codex/config.py +95 -0
- ccproxy/plugins/oauth_codex/manager.py +256 -0
- ccproxy/plugins/oauth_codex/models.py +239 -0
- ccproxy/plugins/oauth_codex/plugin.py +146 -0
- ccproxy/plugins/oauth_codex/provider.py +574 -0
- ccproxy/plugins/oauth_codex/storage.py +92 -0
- ccproxy/plugins/permissions/README.md +28 -0
- ccproxy/plugins/permissions/__init__.py +22 -0
- ccproxy/plugins/permissions/config.py +28 -0
- ccproxy/{cli/commands/permission_handler.py → plugins/permissions/handlers/cli.py} +49 -25
- ccproxy/plugins/permissions/handlers/protocol.py +33 -0
- ccproxy/plugins/permissions/handlers/terminal.py +675 -0
- ccproxy/{api/routes → plugins/permissions}/mcp.py +34 -7
- ccproxy/{models/permissions.py → plugins/permissions/models.py} +65 -1
- ccproxy/plugins/permissions/plugin.py +153 -0
- ccproxy/{api/routes/permissions.py → plugins/permissions/routes.py} +20 -16
- ccproxy/{api/services/permission_service.py → plugins/permissions/service.py} +65 -11
- ccproxy/{api → plugins/permissions}/ui/permission_handler_protocol.py +1 -1
- ccproxy/{api → plugins/permissions}/ui/terminal_permission_handler.py +66 -10
- ccproxy/plugins/pricing/README.md +34 -0
- ccproxy/plugins/pricing/__init__.py +6 -0
- ccproxy/{pricing → plugins/pricing}/cache.py +7 -6
- ccproxy/{config/pricing.py → plugins/pricing/config.py} +32 -6
- ccproxy/plugins/pricing/exceptions.py +35 -0
- ccproxy/plugins/pricing/loader.py +440 -0
- ccproxy/{pricing → plugins/pricing}/models.py +13 -23
- ccproxy/plugins/pricing/plugin.py +169 -0
- ccproxy/plugins/pricing/service.py +191 -0
- ccproxy/plugins/pricing/tasks.py +300 -0
- ccproxy/{pricing → plugins/pricing}/updater.py +86 -72
- ccproxy/plugins/pricing/utils.py +99 -0
- ccproxy/plugins/request_tracer/README.md +40 -0
- ccproxy/plugins/request_tracer/__init__.py +7 -0
- ccproxy/plugins/request_tracer/config.py +120 -0
- ccproxy/plugins/request_tracer/hook.py +415 -0
- ccproxy/plugins/request_tracer/plugin.py +255 -0
- ccproxy/scheduler/__init__.py +2 -14
- ccproxy/scheduler/core.py +26 -41
- ccproxy/scheduler/manager.py +61 -105
- ccproxy/scheduler/registry.py +6 -32
- ccproxy/scheduler/tasks.py +268 -276
- ccproxy/services/__init__.py +0 -1
- ccproxy/services/adapters/__init__.py +11 -0
- ccproxy/services/adapters/base.py +123 -0
- ccproxy/services/adapters/chain_composer.py +88 -0
- ccproxy/services/adapters/chain_validation.py +44 -0
- ccproxy/services/adapters/chat_accumulator.py +200 -0
- ccproxy/services/adapters/delta_utils.py +142 -0
- ccproxy/services/adapters/format_adapter.py +136 -0
- ccproxy/services/adapters/format_context.py +11 -0
- ccproxy/services/adapters/format_registry.py +158 -0
- ccproxy/services/adapters/http_adapter.py +1045 -0
- ccproxy/services/adapters/mock_adapter.py +118 -0
- ccproxy/services/adapters/protocols.py +35 -0
- ccproxy/services/adapters/simple_converters.py +571 -0
- ccproxy/services/auth_registry.py +180 -0
- ccproxy/services/cache/__init__.py +6 -0
- ccproxy/services/cache/response_cache.py +261 -0
- ccproxy/services/cli_detection.py +437 -0
- ccproxy/services/config/__init__.py +6 -0
- ccproxy/services/config/proxy_configuration.py +111 -0
- ccproxy/services/container.py +256 -0
- ccproxy/services/factories.py +380 -0
- ccproxy/services/handler_config.py +76 -0
- ccproxy/services/interfaces.py +298 -0
- ccproxy/services/mocking/__init__.py +6 -0
- ccproxy/services/mocking/mock_handler.py +291 -0
- ccproxy/services/tracing/__init__.py +7 -0
- ccproxy/services/tracing/interfaces.py +61 -0
- ccproxy/services/tracing/null_tracer.py +57 -0
- ccproxy/streaming/__init__.py +23 -0
- ccproxy/streaming/buffer.py +1056 -0
- ccproxy/streaming/deferred.py +897 -0
- ccproxy/streaming/handler.py +117 -0
- ccproxy/streaming/interfaces.py +77 -0
- ccproxy/streaming/simple_adapter.py +39 -0
- ccproxy/streaming/sse.py +109 -0
- ccproxy/streaming/sse_parser.py +127 -0
- ccproxy/templates/__init__.py +6 -0
- ccproxy/templates/plugin_scaffold.py +695 -0
- ccproxy/testing/endpoints/__init__.py +33 -0
- ccproxy/testing/endpoints/cli.py +215 -0
- ccproxy/testing/endpoints/config.py +874 -0
- ccproxy/testing/endpoints/console.py +57 -0
- ccproxy/testing/endpoints/models.py +100 -0
- ccproxy/testing/endpoints/runner.py +1903 -0
- ccproxy/testing/endpoints/tools.py +308 -0
- ccproxy/testing/mock_responses.py +70 -1
- ccproxy/testing/response_handlers.py +20 -0
- ccproxy/utils/__init__.py +0 -6
- ccproxy/utils/binary_resolver.py +476 -0
- ccproxy/utils/caching.py +327 -0
- ccproxy/utils/cli_logging.py +101 -0
- ccproxy/utils/command_line.py +251 -0
- ccproxy/utils/headers.py +228 -0
- ccproxy/utils/model_mapper.py +120 -0
- ccproxy/utils/startup_helpers.py +68 -446
- ccproxy/utils/version_checker.py +273 -6
- ccproxy_api-0.2.0a4.dist-info/METADATA +212 -0
- ccproxy_api-0.2.0a4.dist-info/RECORD +417 -0
- {ccproxy_api-0.1.7.dist-info → ccproxy_api-0.2.0a4.dist-info}/WHEEL +1 -1
- ccproxy_api-0.2.0a4.dist-info/entry_points.txt +24 -0
- ccproxy/__init__.py +0 -4
- ccproxy/adapters/__init__.py +0 -11
- ccproxy/adapters/base.py +0 -80
- ccproxy/adapters/codex/__init__.py +0 -11
- ccproxy/adapters/openai/__init__.py +0 -42
- ccproxy/adapters/openai/adapter.py +0 -953
- ccproxy/adapters/openai/models.py +0 -412
- ccproxy/adapters/openai/response_adapter.py +0 -355
- ccproxy/adapters/openai/response_models.py +0 -178
- ccproxy/api/middleware/headers.py +0 -49
- ccproxy/api/middleware/logging.py +0 -180
- ccproxy/api/middleware/request_content_logging.py +0 -297
- ccproxy/api/middleware/server_header.py +0 -58
- ccproxy/api/responses.py +0 -89
- ccproxy/api/routes/claude.py +0 -371
- ccproxy/api/routes/codex.py +0 -1251
- ccproxy/api/routes/metrics.py +0 -1029
- ccproxy/api/routes/proxy.py +0 -211
- ccproxy/api/services/__init__.py +0 -6
- ccproxy/auth/conditional.py +0 -84
- ccproxy/auth/credentials_adapter.py +0 -93
- ccproxy/auth/models.py +0 -118
- ccproxy/auth/oauth/models.py +0 -48
- ccproxy/auth/openai/__init__.py +0 -13
- ccproxy/auth/openai/credentials.py +0 -166
- ccproxy/auth/openai/oauth_client.py +0 -334
- ccproxy/auth/openai/storage.py +0 -184
- ccproxy/auth/storage/json_file.py +0 -158
- ccproxy/auth/storage/keyring.py +0 -189
- ccproxy/claude_sdk/__init__.py +0 -18
- ccproxy/claude_sdk/options.py +0 -194
- ccproxy/claude_sdk/session_pool.py +0 -550
- ccproxy/cli/docker/__init__.py +0 -34
- ccproxy/cli/docker/adapter_factory.py +0 -157
- ccproxy/cli/docker/params.py +0 -274
- ccproxy/config/auth.py +0 -153
- ccproxy/config/claude.py +0 -348
- ccproxy/config/cors.py +0 -79
- ccproxy/config/discovery.py +0 -95
- ccproxy/config/docker_settings.py +0 -264
- ccproxy/config/observability.py +0 -158
- ccproxy/config/reverse_proxy.py +0 -31
- ccproxy/config/scheduler.py +0 -108
- ccproxy/config/server.py +0 -86
- ccproxy/config/validators.py +0 -231
- ccproxy/core/codex_transformers.py +0 -389
- ccproxy/core/http.py +0 -328
- ccproxy/core/http_transformers.py +0 -812
- ccproxy/core/proxy.py +0 -143
- ccproxy/core/validators.py +0 -288
- ccproxy/models/errors.py +0 -42
- ccproxy/models/messages.py +0 -269
- ccproxy/models/requests.py +0 -107
- ccproxy/models/responses.py +0 -270
- ccproxy/models/types.py +0 -102
- ccproxy/observability/__init__.py +0 -51
- ccproxy/observability/access_logger.py +0 -457
- ccproxy/observability/sse_events.py +0 -303
- ccproxy/observability/stats_printer.py +0 -753
- ccproxy/observability/storage/__init__.py +0 -1
- ccproxy/observability/storage/duckdb_simple.py +0 -677
- ccproxy/observability/storage/models.py +0 -70
- ccproxy/observability/streaming_response.py +0 -107
- ccproxy/pricing/__init__.py +0 -19
- ccproxy/pricing/loader.py +0 -251
- ccproxy/services/claude_detection_service.py +0 -243
- ccproxy/services/codex_detection_service.py +0 -252
- ccproxy/services/credentials/__init__.py +0 -55
- ccproxy/services/credentials/config.py +0 -105
- ccproxy/services/credentials/manager.py +0 -561
- ccproxy/services/credentials/oauth_client.py +0 -481
- ccproxy/services/proxy_service.py +0 -1827
- ccproxy/static/.keep +0 -0
- ccproxy/utils/cost_calculator.py +0 -210
- ccproxy/utils/disconnection_monitor.py +0 -83
- ccproxy/utils/model_mapping.py +0 -199
- ccproxy/utils/models_provider.py +0 -150
- ccproxy/utils/simple_request_logger.py +0 -284
- ccproxy/utils/streaming_metrics.py +0 -199
- ccproxy_api-0.1.7.dist-info/METADATA +0 -615
- ccproxy_api-0.1.7.dist-info/RECORD +0 -191
- ccproxy_api-0.1.7.dist-info/entry_points.txt +0 -4
- /ccproxy/{api/middleware/auth.py → auth/models/__init__.py} +0 -0
- /ccproxy/{claude_sdk → plugins/claude_sdk}/exceptions.py +0 -0
- /ccproxy/{docker → plugins/docker}/models.py +0 -0
- /ccproxy/{docker → plugins/docker}/protocol.py +0 -0
- /ccproxy/{docker → plugins/docker}/validators.py +0 -0
- /ccproxy/{auth/oauth/storage.py → plugins/permissions/handlers/__init__.py} +0 -0
- /ccproxy/{api → plugins/permissions}/ui/__init__.py +0 -0
- {ccproxy_api-0.1.7.dist-info → ccproxy_api-0.2.0a4.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
ccproxy/__main__.py,sha256=kcejcfzAaMnFiSxEiVtNl-_TwynpntkupRxqG5XR15s,116
|
|
2
|
+
ccproxy/api/__init__.py,sha256=vfmwNWttgvrKye1mCMYjrnfANM1gWSIMs8wqt5RACTg,206
|
|
3
|
+
ccproxy/api/app.py,sha256=PxBPVrZ9BFuOJQlLynu2HBzva_S4VSOLNov1JIiSBtk,21041
|
|
4
|
+
ccproxy/api/bootstrap.py,sha256=est5smBnkDmkTuXLKfrwO8lc-Xeqc3sMuD5uayswCRg,938
|
|
5
|
+
ccproxy/api/decorators.py,sha256=xLs3GJvxc0Na9Y5rPy_z_V1u0BBbtA4VLwmTSOIoKNE,2870
|
|
6
|
+
ccproxy/api/dependencies.py,sha256=CiSuqNil7nbZvrq32_xffTRwFX-htvbshD9C9uDkcaI,6378
|
|
7
|
+
ccproxy/api/format_validation.py,sha256=gYboFEu-6XI4nn7OQ7FAo3rs6wqEnAipUmUGf4tc7FY,1734
|
|
8
|
+
ccproxy/api/middleware/__init__.py,sha256=S887PXY40Tnb0IFGei4Sgs7sygkcoT0IEOciOO7IDBc,284
|
|
9
|
+
ccproxy/api/middleware/cors.py,sha256=8BoBRWunEPosGNvBL5FPNSApW5uGJ25G_JeSfiFqrc0,1683
|
|
10
|
+
ccproxy/api/middleware/errors.py,sha256=-LAheSCAzOXNKwvxcehs4LLFQWS8q6oYjeOnZb7w-B4,20919
|
|
11
|
+
ccproxy/api/middleware/hooks.py,sha256=anM6WkHfj2I0Vlq7B76eSpMUuYF1O9J9EXBiCJYBu4Q,21559
|
|
12
|
+
ccproxy/api/middleware/normalize_headers.py,sha256=6VLmDtWxZAJnz96bTejoiCVS0WHcwE5R2X16Pp8wJiQ,2029
|
|
13
|
+
ccproxy/api/middleware/request_id.py,sha256=WEXc11q7Ozmmlgb3D1jE6iKUCxvRh9WawSF_21eWifw,3338
|
|
14
|
+
ccproxy/api/middleware/streaming_hooks.py,sha256=HMrXP7qclekq4t-UzTzYMmZXV7c3JbnVHATL0WIBa9A,11255
|
|
15
|
+
ccproxy/api/routes/__init__.py,sha256=fGLnZpUNT0XNRo8mro3mLyvpgDaJgZG7jSVteobt6Kk,449
|
|
16
|
+
ccproxy/api/routes/health.py,sha256=kpVP4hcBVzgj-GszTJswz8inXQOWDuTGSyyy0cNVyOE,4252
|
|
17
|
+
ccproxy/api/routes/plugins.py,sha256=sB_sPxZJKJ0600mrIY5uTPj6aR8XU9kWLUEO2JTtgrY,9006
|
|
18
|
+
ccproxy/auth/__init__.py,sha256=2nM2WAQFQbYst8apiZTWebqQvSiUtOrdi8hsVQdUuZM,1404
|
|
19
|
+
ccproxy/auth/bearer.py,sha256=crdJRCTHlRk61Ku8fVGmU70TwRk2gMiKhKWnE0WTbOY,2324
|
|
20
|
+
ccproxy/auth/dependencies.py,sha256=YnHS7L0oWe0MdDt3CfEuHpro3D0AAqT_DU7DuoM7J8A,6121
|
|
21
|
+
ccproxy/auth/exceptions.py,sha256=2ZQbixJat7jKhga2hWry4BczGHqtTMwCu0AInL4o_xo,1165
|
|
22
|
+
ccproxy/auth/manager.py,sha256=_ijRhYsbGqQp8lYk12OwahohFUTHEOHdXGnApjUqZII,2610
|
|
23
|
+
ccproxy/auth/managers/__init__.py,sha256=P2alY3rV__MYge2A-Q7-PwK5lIb4XnHAE_G2tQzEPgk,242
|
|
24
|
+
ccproxy/auth/managers/base.py,sha256=-6rEym7xNlSRMpnVz0WDl87VGqWW2HkV7M6VJbRqIOM,18060
|
|
25
|
+
ccproxy/auth/managers/base_enhanced.py,sha256=gtUpoeTGok4OuOzEQXGgCoso3she40ZEzaqnnccJuSY,2287
|
|
26
|
+
ccproxy/auth/managers/token_snapshot.py,sha256=tjdIfXIcRKHZnX1GSNuZFVbAZRBBFvYkWa8ASWS48xQ,2659
|
|
27
|
+
ccproxy/auth/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
|
+
ccproxy/auth/models/base.py,sha256=R3K7sAFEpu8qExVcoAkf2201vo7blp5slVXoc_05nx4,1904
|
|
29
|
+
ccproxy/auth/models/credentials.py,sha256=BoPYXMs89mTaCHAAOWP6nwPM46yNMAMsp_bUBJt7Fm0,1006
|
|
30
|
+
ccproxy/auth/oauth/__init__.py,sha256=nuU5j_ZytIHS-z4oJmIN-xOlTeOYYilbyES6Iee5hls,309
|
|
31
|
+
ccproxy/auth/oauth/base.py,sha256=WiuCvIzvFJqaCfnxC_Jq0uXnJSeFxmD8q0Lu26315BE,17751
|
|
32
|
+
ccproxy/auth/oauth/cli_errors.py,sha256=Z2wu7BhMxhJqiaVfXP-vvqVPKVKD72fEHvl2F_FdFRQ,589
|
|
33
|
+
ccproxy/auth/oauth/flows.py,sha256=CkdILcAcu7rJUVlXnr_9StK3CDrMVJpxq2KdiMbf2wo,15718
|
|
34
|
+
ccproxy/auth/oauth/protocol.py,sha256=d9Olbcr4VH0UNEhVNxnjuxhK0hRWGlHet1J2uByJqzw,10575
|
|
35
|
+
ccproxy/auth/oauth/registry.py,sha256=G7jDnHOBAmlUDCnzi4cs5ehZ9inxquYyWz54DXy1Otg,12081
|
|
36
|
+
ccproxy/auth/oauth/router.py,sha256=TyWypgEv7o1fJX5piVG8fSsoxIT3ZqLv3crlot1-jsg,11966
|
|
37
|
+
ccproxy/auth/oauth/routes.py,sha256=qa4wnUqe9IUuQejwdKULOKJekLhv5Ig8Aid2fODaI0U,15321
|
|
38
|
+
ccproxy/auth/oauth/session.py,sha256=Dtu9J6IZn44vzRjw64MlQGsR_QIhy0huCCbZQ0iARMs,4442
|
|
39
|
+
ccproxy/auth/oauth/templates.py,sha256=A37lUiQI_Lnj4Wa-TFpyEXJBHI1TpDTFwysJ5YhbK9g,11055
|
|
40
|
+
ccproxy/auth/storage/__init__.py,sha256=FZakKo7KcXk-_XdKM_p5q33tdiuSVa1NT6tiQ_DMlXs,184
|
|
41
|
+
ccproxy/auth/storage/base.py,sha256=tGOf0JLNZEzN-dOyFfiM4M9u_jTYZUvBt4izC-rfWtk,10065
|
|
42
|
+
ccproxy/auth/storage/generic.py,sha256=dFV91NApj2tz6MI_Evjdd3bPOicdaRu2Zy4uMH0xg5U,4377
|
|
43
|
+
ccproxy/cli/__init__.py,sha256=hO8YhXwZSHJZRyvewivw9HG2uHWXErYTPRxeXW47mXI,240
|
|
44
|
+
ccproxy/cli/_settings_help.py,sha256=aEy9cLR6_klii-lPZxA9WORjfI1U1wIFvHJMHDZZug4,11044
|
|
45
|
+
ccproxy/cli/decorators.py,sha256=xv2FFQ-eHp6JEbCgwBKdRyO7noW8lvcQRXiXkcXv0SE,2353
|
|
46
|
+
ccproxy/cli/helpers.py,sha256=6b0-A6a3i3I0246E7GZzulc07qpSzbms4vRm7lP2gX8,2859
|
|
47
|
+
ccproxy/cli/main.py,sha256=mGcHxA06tOyHL31CTqk5FHuuKYT-bdDfJ_BdLeFQLhw,15615
|
|
48
|
+
ccproxy/cli/commands/__init__.py,sha256=eWugiC37ualVtsTazu7GBCV7kZ12xkAnTUztjV7kVao,200
|
|
49
|
+
ccproxy/cli/commands/auth.py,sha256=3IyUWfB3czfpHwZs8tOlo3C3LWjQUpiVMeRyxf2qLFM,63630
|
|
50
|
+
ccproxy/cli/commands/plugins.py,sha256=umu_s2RJMsSNrXePmzQYct9B_tgGkT3TJnTQnFGmSbc,21001
|
|
51
|
+
ccproxy/cli/commands/serve.py,sha256=-a7RjfVQTVeaZuCFKjvuLkhKxHzhjE8kw03LhFD_drE,7847
|
|
52
|
+
ccproxy/cli/commands/status.py,sha256=pOgzeYUt_C_eUUxg4_MgTv29K9AnOFVNTb_9Rbo54ok,8560
|
|
53
|
+
ccproxy/cli/commands/config/__init__.py,sha256=uX8VewtrMu5X8VAx5ym1slwNtlICDBEs3S1HfoFe5Qo,376
|
|
54
|
+
ccproxy/cli/commands/config/commands.py,sha256=vLBI4ujf3KqrBsd-Q8p834pOv5SSvU9eXGzknciRJa4,25442
|
|
55
|
+
ccproxy/cli/commands/config/schema_commands.py,sha256=ZSuK_Q1bWp8WUOSbkuwKz_4TwrxkRsA6MOt_-y1eiVs,4218
|
|
56
|
+
ccproxy/cli/options/__init__.py,sha256=OiToWXDNOXnO-fuPz2H5qXYwp9ht7uB12-4wxqner1Q,340
|
|
57
|
+
ccproxy/cli/options/claude_options.py,sha256=QLvOIVs_7B0SaAvAIkQi_1MGuWYOUDP4ntTMVKrtDzY,4941
|
|
58
|
+
ccproxy/cli/options/core_options.py,sha256=80qVieUiUMYwjDKVeFfBDGjF1a8P1qB8Ppf-zSZ1eek,552
|
|
59
|
+
ccproxy/cli/options/security_options.py,sha256=95TfENdeAsDMes7SH39mQJERgrqoL4jZEKvZL7NlzJQ,873
|
|
60
|
+
ccproxy/cli/options/server_options.py,sha256=y37dtZGWuuYcDOn92zSzKwblnTgq65ZJJk2fWBA__s4,1935
|
|
61
|
+
ccproxy/config/__init__.py,sha256=zbSaTBRUt3Of4EmZwMw1y8w74e75cQfRr7OqteC1RkU,726
|
|
62
|
+
ccproxy/config/core.py,sha256=McZlTtWUNDnhxNGbLEQbctH70BNO1pBJDvcGZwswPUU,6344
|
|
63
|
+
ccproxy/config/env_generator.py,sha256=zbKnHD2PqAzE2WG0A9PT4_iKskf9gWearr9BR0UL-xg,7882
|
|
64
|
+
ccproxy/config/runtime.py,sha256=d-Jj-0P6VpRfc4b55qFEeRx7XlxSe7UoWu0_90vBHsg,2339
|
|
65
|
+
ccproxy/config/security.py,sha256=poPv1C5acSyqopzoaSnPRvj27G6XuU-PicM24_TW9zI,1368
|
|
66
|
+
ccproxy/config/settings.py,sha256=uva0RV4KfIvv7VApDr7w3oARft7OoBCWf7ZSM4oM2VM,19800
|
|
67
|
+
ccproxy/config/toml_generator.py,sha256=_txCYDHI8lXWl-mwOK8P1_TsX1TNiLgkG4iryxOruZc,10034
|
|
68
|
+
ccproxy/config/utils.py,sha256=tuvOPUsMGgznz94MRwuSWw6sZi_AGkB_ri7VWKMVg8Y,11877
|
|
69
|
+
ccproxy/core/__init__.py,sha256=hQgrBogZjdt8ZQlQyZtbL91I3gX9YUTWrenqTPRfwbM,236
|
|
70
|
+
ccproxy/core/_version.py,sha256=fqfgUu99l0Y7LMwL27QHnVn-raAKZVZ_9iTiD4_KO5A,712
|
|
71
|
+
ccproxy/core/async_task_manager.py,sha256=zf_mbbDwomh8q0E-oMNSPzFecHwLRi-ZPbhqsb6IPgM,16888
|
|
72
|
+
ccproxy/core/async_utils.py,sha256=OFCJT8xbgZJO757iDPMAKY5c1Ildyk0PbwuktVF19UI,21676
|
|
73
|
+
ccproxy/core/constants.py,sha256=FSLlbdNqCmZgZC4VAgvmovwXJh4C9WaUf_YBqDbYXXM,1837
|
|
74
|
+
ccproxy/core/errors.py,sha256=Ojf87wHrcO3dVduWFdb1lsBeqDDMRiey_O6vjNsAe3I,10140
|
|
75
|
+
ccproxy/core/id_utils.py,sha256=ehVFN2KBziD0y-yF_kVa4IyRfnPdTgMq5Ip3HnRZmFw,477
|
|
76
|
+
ccproxy/core/interfaces.py,sha256=DwLy2ciQ6NtLH1AHlePdZKe8kJNbERz0opOKKrIOT5k,3723
|
|
77
|
+
ccproxy/core/logging.py,sha256=phPlxw3YE0xCLs5W_JBkLa5-mpXW1zOx1n2Sk9nk0so,26994
|
|
78
|
+
ccproxy/core/middleware.py,sha256=libv7wo-y9nni9hp7GCkYUKlIKihAwG0iHvjcv_RTs8,3355
|
|
79
|
+
ccproxy/core/request_context.py,sha256=9IrE9JdpoQsoboVfJkGoc3zUKQ0JVGa8DfzqhFX4bk4,16046
|
|
80
|
+
ccproxy/core/status_report.py,sha256=o8DHYqHFYjKrZgMHcvSnLWo3W_DKsEWykbv5_5Jsxcw,6406
|
|
81
|
+
ccproxy/core/system.py,sha256=91rMtlRtY4yxSsnPV5qZJaXHNFzvcrRZ1nQwS4CwG68,1019
|
|
82
|
+
ccproxy/core/transformers.py,sha256=swCHdB7boJNXMu5s2mnrhTBuziu7CCXLao8nn2sRJGA,8233
|
|
83
|
+
ccproxy/core/types.py,sha256=kGRMzb6VI5KWa3aFKWgQ3gChqdHPrPoOyZ0QPT1m18E,3554
|
|
84
|
+
ccproxy/core/auth/__init__.py,sha256=wfnc1TlPB_6nW3Ji5CtgK-pFbbxWn5uZ3_6-8g9R1Sg,155
|
|
85
|
+
ccproxy/core/plugins/__init__.py,sha256=67RF1-xjBpks2lQ3XHVTIEks8cIiLqU2GbpvLzSD8WA,1800
|
|
86
|
+
ccproxy/core/plugins/cli_discovery.py,sha256=E5RsmzxTBN4EwuEIT9o1GRHg7eSWlNvXlELKT_PCHsg,6731
|
|
87
|
+
ccproxy/core/plugins/declaration.py,sha256=xLWNql7FK5XYorimO26K4-CHZC6kcLzEaoJR9x4goLg,15476
|
|
88
|
+
ccproxy/core/plugins/discovery.py,sha256=clKX8NPYXqtseDDwH5Sh9SaXph3U2JrieG07UA9wAI0,21390
|
|
89
|
+
ccproxy/core/plugins/factories.py,sha256=7GixTrbkm9v1eO5XGdbFxkGrzzuGVOmBj-EXuvxVgdY,36262
|
|
90
|
+
ccproxy/core/plugins/interfaces.py,sha256=XpBLKWbJE4D-tQouF9Yiu6wlnL3cBrzoSdCYsRnL7UU,13178
|
|
91
|
+
ccproxy/core/plugins/loader.py,sha256=16GFe4C09B0eRe3K1CuT9asXsLKk351wbGp8TrAHIkQ,5589
|
|
92
|
+
ccproxy/core/plugins/middleware.py,sha256=6Tbb_OsUPv8h6A-QUn4h05EdqZECW4ehhOsKeI0OW-E,7558
|
|
93
|
+
ccproxy/core/plugins/models.py,sha256=wTp2Vf2DCtZSvefWRC3Jd31Gf7jqZATQXsSLWW56p2o,2493
|
|
94
|
+
ccproxy/core/plugins/protocol.py,sha256=J33S6wF4ZYE0LdFz7zXjSjwv5N_i81m2GFSz4cXLpco,5447
|
|
95
|
+
ccproxy/core/plugins/runtime.py,sha256=ShdabKTE0erK54v5yNdsoSZvu5G077uOUbaGxAtUcwM,17485
|
|
96
|
+
ccproxy/core/plugins/hooks/__init__.py,sha256=Eohbity-Y5GAgkn-oeAcIS4bRugtLwwMBOe_NAZx6bc,854
|
|
97
|
+
ccproxy/core/plugins/hooks/base.py,sha256=WIUgnNdcdboOqMRknPTtsy0fJ1PdexUkND7jZ7HrQC4,1365
|
|
98
|
+
ccproxy/core/plugins/hooks/events.py,sha256=KxRre1oVPeyEeMOSrn8AsNReGBeBoWAndkf0Rw2lkbk,1439
|
|
99
|
+
ccproxy/core/plugins/hooks/layers.py,sha256=Rke1nhisUnmS8RTJ1SBxFPLdeIU_RpO984pjdGEZERc,1523
|
|
100
|
+
ccproxy/core/plugins/hooks/manager.py,sha256=5wVDamSDC2PTUjLNnq5DMQLEPYUUtNsF19MJAUAkfKg,6788
|
|
101
|
+
ccproxy/core/plugins/hooks/registry.py,sha256=wzYWR1JppOp06H9SLazlCNNlwanJ5FINS32tYr7pxeU,5025
|
|
102
|
+
ccproxy/core/plugins/hooks/thread_manager.py,sha256=bYeenlMWeg66P_BBiuycx_wxhYO-Jo6Sbx1enZQj36A,7168
|
|
103
|
+
ccproxy/core/plugins/hooks/types.py,sha256=44LpwQ_PrWKwbWB1L6zChKSUF4WSpHvam16wXcwweeY,694
|
|
104
|
+
ccproxy/core/plugins/hooks/implementations/__init__.py,sha256=KIUCzMGnKa4Zpagtal_oZqYYoj-xW4TsrZehNJIrYA8,562
|
|
105
|
+
ccproxy/core/plugins/hooks/implementations/http_tracer.py,sha256=zw7BAIjw_A78Zg4L2-WzWUK3MNYGH52jDGJWX2C7O2I,15100
|
|
106
|
+
ccproxy/core/plugins/hooks/implementations/formatters/__init__.py,sha256=hF-lkdASU37S7Rv2_doRY2Cv25x5gaZ4dRCDXSG6Iqc,311
|
|
107
|
+
ccproxy/core/plugins/hooks/implementations/formatters/json.py,sha256=9jRCnCe7dzOFb0h9WlErl9AuHS5Uxh5i30X_7PcYdL4,18876
|
|
108
|
+
ccproxy/core/plugins/hooks/implementations/formatters/raw.py,sha256=9TmeYR2gJ57RPwNHYQEh0RUUNQMWic1EXhVTAlFzQpY,13117
|
|
109
|
+
ccproxy/data/claude_headers_fallback.json,sha256=g2hQAMpe6Dsjrj8p1noHd-gIS3r15ycYBM-f7bmok8A,72542
|
|
110
|
+
ccproxy/data/codex_headers_fallback.json,sha256=gUkUuNlxTYxJEZ5s5ZoQ6Dym6yJOx7go5iq_zG4t8E8,36125
|
|
111
|
+
ccproxy/http/__init__.py,sha256=65tG38VaXI_31LuLM6OeePqDrHRLD8N_827-Aoi-xFk,600
|
|
112
|
+
ccproxy/http/base.py,sha256=g4mtYQ8P78UBDtBb8YjqnZBKYMVBjIoiZcc4_paw_8g,2685
|
|
113
|
+
ccproxy/http/client.py,sha256=RigaMw-BV19IJnYYkrqoGVDnT_9REp4JGAO8bXnfAAM,10774
|
|
114
|
+
ccproxy/http/hooks.py,sha256=mc5B7_KyySbRiSErXcZyfF82MOjyL0mqiUEqHh2k5RE,23114
|
|
115
|
+
ccproxy/http/pool.py,sha256=sNResQUzMhKmCQcBM09nDkt4ql9_cBZPpV1f9fVAuv0,9414
|
|
116
|
+
ccproxy/llms/formatters/__init__.py,sha256=ru1Ty5OOY9RpbjbuFEH6un78nMjjlHDFseGub6YWF38,193
|
|
117
|
+
ccproxy/llms/formatters/base.py,sha256=jjVlrXpFQKPQnOmec4SwSBASgUS_PXPJJbzXOyxCVoQ,4297
|
|
118
|
+
ccproxy/llms/formatters/base_model.py,sha256=5JaiPolBobOJRS02rEbi6Taxa-3J72ZVRO-ElQiUOX4,1123
|
|
119
|
+
ccproxy/llms/formatters/constants.py,sha256=I4M7BYYa-eEBhAK3RB_a82DvOBZKhi24GH0TgpMsiJw,1664
|
|
120
|
+
ccproxy/llms/formatters/context.py,sha256=ULZl3sIcGbYKqzqo-W4HNpYoWD03vPVU-akahg0qLeE,3781
|
|
121
|
+
ccproxy/llms/formatters/mapping.py,sha256=Tskj43bbDQAZWjqKEfnoivStwAycPXDGn1vXjuqTaic,1014
|
|
122
|
+
ccproxy/llms/formatters/utils.py,sha256=7TKOraamcc_TXAxYkTv_HUFXr-fkHnqyBWb7WU9eZn4,10224
|
|
123
|
+
ccproxy/llms/formatters/anthropic_to_openai/__init__.py,sha256=BR4ZAbaPRPd3q7Urb22ylyUgWaVi7UQ2zJzzGBam_Lw,1992
|
|
124
|
+
ccproxy/llms/formatters/anthropic_to_openai/errors.py,sha256=PCGB7PKr6x1jElIKxqDye0o1mI0_MUdTNMtk_djWbLA,2066
|
|
125
|
+
ccproxy/llms/formatters/anthropic_to_openai/requests.py,sha256=e7BanFju5owBD64gtd835YIv1T18XYshp-DP-7I4y1o,14660
|
|
126
|
+
ccproxy/llms/formatters/anthropic_to_openai/responses.py,sha256=yNjYdt2mor0t66kqjWyHu-LT9PYDmPgZqJalCgIUdAs,5199
|
|
127
|
+
ccproxy/llms/formatters/anthropic_to_openai/streams.py,sha256=FWauNClQrF8E8EQLdPfkUi3gkGG3FDGbi_g7VVpnGxo,65989
|
|
128
|
+
ccproxy/llms/formatters/common/__init__.py,sha256=Lnsz81M4P91Cex7t0_oM_hD1Tak7oHAWuykQkWg4b38,1524
|
|
129
|
+
ccproxy/llms/formatters/common/identifiers.py,sha256=rzTynHqcvmPKhog64YAtxLDcQH27u38kZH8aCI3HIOA,1400
|
|
130
|
+
ccproxy/llms/formatters/common/streams.py,sha256=kP_QQViwki1dH9IIMtigQLOtTY8wM2KZoQMFMl8vE_Y,8042
|
|
131
|
+
ccproxy/llms/formatters/common/thinking.py,sha256=KEznuXrB-4s7vUoyv8Re1DVaEd_7Y0BL0EvjcedC1Lk,2194
|
|
132
|
+
ccproxy/llms/formatters/common/usage.py,sha256=AybrrHtL7aTpK5W1QJ-l8zZYTAj-hNIvXkVZFatuGfE,4680
|
|
133
|
+
ccproxy/llms/formatters/openai_to_anthropic/__init__.py,sha256=MNBpmFL9J9bLY9QmkjRoYE4Q69QgRUCGYC65OPaaySY,2012
|
|
134
|
+
ccproxy/llms/formatters/openai_to_anthropic/_helpers.py,sha256=QTvWjpaL-NcGqc9I05Io5PrOfyF4HYrNJF62LCxRhC0,4216
|
|
135
|
+
ccproxy/llms/formatters/openai_to_anthropic/errors.py,sha256=9FhtUPT47WXm_bThbG-3uaKzg1_MRXVtiGPZZ0BlxpE,2090
|
|
136
|
+
ccproxy/llms/formatters/openai_to_anthropic/requests.py,sha256=wQdH1ZTsDr2bYutgK1XjP7ig7Wf11aYztewtJQK1Mis,28937
|
|
137
|
+
ccproxy/llms/formatters/openai_to_anthropic/responses.py,sha256=qBNdxx0Q_Rz1GHz0SCz1WwHYZqc25KyKX3fo6ay9H9c,11840
|
|
138
|
+
ccproxy/llms/formatters/openai_to_anthropic/streams.py,sha256=pXeT_-mdwMWzAwHpDVz0WsSznUObGvCBr_N__13P45s,22912
|
|
139
|
+
ccproxy/llms/formatters/openai_to_openai/__init__.py,sha256=rgLSyK0nazlLMLtWj_BeoRRA4jkDyNTCJUJWyy7ri9s,1852
|
|
140
|
+
ccproxy/llms/formatters/openai_to_openai/_helpers.py,sha256=7t9YA74O5bzDjMZQwMxIeFjAsgkNe1lEA-1RoxI1FCg,9787
|
|
141
|
+
ccproxy/llms/formatters/openai_to_openai/errors.py,sha256=HscgLkO8CgiWCesMhO1Rb8vZX0aFATZ8ZU_mBusca00,229
|
|
142
|
+
ccproxy/llms/formatters/openai_to_openai/requests.py,sha256=6XrGfYH1TsoHG-b-3xgX7mUDHu1mKeOCD_ohjAQyMEY,14012
|
|
143
|
+
ccproxy/llms/formatters/openai_to_openai/responses.py,sha256=n-9m3c_V4YvHgL2eYobOauxYKekYQaP4efX2RyGv56I,21471
|
|
144
|
+
ccproxy/llms/formatters/openai_to_openai/streams.py,sha256=E6DNT67DwJw4yeJD8MjymYk2q9kB-rDMDeT0K9wQFwo,85243
|
|
145
|
+
ccproxy/llms/models/__init__.py,sha256=slbBqPsWMaRjSCNyzvRdYVzC9QXoLHIu4FyqBxUQ_1M,232
|
|
146
|
+
ccproxy/llms/models/anthropic.py,sha256=Y8UJG7zXDjdpw7I_RrOYp5dTx2YctpqmY27M7B9caUI,16110
|
|
147
|
+
ccproxy/llms/models/openai.py,sha256=XAIv3yKoV3Kut5iJxEG4Noajnjf022JEUZUGuNglzJA,25747
|
|
148
|
+
ccproxy/llms/streaming/__init__.py,sha256=6i2cZuetMGmVyc3_Vh67uFd8XeMVAHIXp2mt34cSsUs,707
|
|
149
|
+
ccproxy/llms/streaming/accumulators.py,sha256=LYypURHl3NgZX171qdcxYXI57eB7E-rUhkkJ0AQrCEM,41014
|
|
150
|
+
ccproxy/llms/streaming/formatters.py,sha256=CHqY2FtXxYPIa2VRXtTfjmmVBUifw1vTxNjG0IB-M6M,7708
|
|
151
|
+
ccproxy/llms/streaming/processors.py,sha256=Or9hq-jovlFlcwocLjU-NTlvIOpnXvmW998x9WQtTVE,23493
|
|
152
|
+
ccproxy/models/__init__.py,sha256=aRzMFpfJ4Y4YRupfp_TiRllk7qo4x2YzfaUOnwjCdQg,304
|
|
153
|
+
ccproxy/models/detection.py,sha256=BG6M9h9wTqjinYwWqN5x0usEwDtpM6oOQnR-YoCA8C4,3433
|
|
154
|
+
ccproxy/models/provider.py,sha256=PqStA9psRLy8yQX-kuR-6nyE3tYE60FE3F7PCDWFezE,2696
|
|
155
|
+
ccproxy/plugins/access_log/README.md,sha256=HGUcDzVxPK39xalgPS86Rh9ySAbCCPjz70stfrLcWKY,1118
|
|
156
|
+
ccproxy/plugins/access_log/__init__.py,sha256=Vd8xot-TvAU1QcvofOhyV112Awz7lB6stjaAvHHe8kk,446
|
|
157
|
+
ccproxy/plugins/access_log/config.py,sha256=xGMJEUfObw6nBbmaN6xBeD8rmxIGgQYE65GvclmiEAc,1025
|
|
158
|
+
ccproxy/plugins/access_log/formatter.py,sha256=H0RaMFhTDE6RButrOHQrYrTWj3T7q6LiHNDzJrIT_Jg,4812
|
|
159
|
+
ccproxy/plugins/access_log/hook.py,sha256=lLrVGFJaSVT2YFUfDV7d_exC0mSdEcUDNCLvhHVLoro,28207
|
|
160
|
+
ccproxy/plugins/access_log/logger.py,sha256=yrviYSwqjaSuU757Kg9WLss4fDJmFsvUyJaIjqV9mSM,7418
|
|
161
|
+
ccproxy/plugins/access_log/plugin.py,sha256=FPx2G48Kthsm5M4MM5Ohg9h1rLiZHu5EPbwGU2wRJLw,4667
|
|
162
|
+
ccproxy/plugins/access_log/writer.py,sha256=C8-JFGw9dxBeNRGytCpzFVnQJvxkSicVp23QSh4FU1U,3191
|
|
163
|
+
ccproxy/plugins/analytics/README.md,sha256=I6LrOVbX-7MhYW6if9YAuBI3hKR6Q3QFtcDcnku7pM8,894
|
|
164
|
+
ccproxy/plugins/analytics/__init__.py,sha256=8rQNQ77L9WQKX8HxpnUWcor1GEIDDPNp-vuJB2TrVpY,64
|
|
165
|
+
ccproxy/plugins/analytics/config.py,sha256=-N2BLWuictA1cxCJgln4Sv7iXj13YjqC3kfgJbMleig,159
|
|
166
|
+
ccproxy/plugins/analytics/ingest.py,sha256=XcDVw4u70gZrE_jwFihidNZ7fR7C2Fgu0bgE6vn2duw,3104
|
|
167
|
+
ccproxy/plugins/analytics/models.py,sha256=Rxzjm059kQNztRkjIok1jSjCR9ne_Y4_yiQ8_l6IEIc,2746
|
|
168
|
+
ccproxy/plugins/analytics/plugin.py,sha256=KjbN66vRfDcBWidkarmtZi0xy9E8IdLfzhCwkiptINI,4659
|
|
169
|
+
ccproxy/plugins/analytics/routes.py,sha256=RZLbaRkvo1vFvOasnzlqKyyTIm01dLYTg-T4aH7EuHs,6130
|
|
170
|
+
ccproxy/plugins/analytics/service.py,sha256=9aqS0sNZVsKsbrhYi62jdkkDgeoifcC3ARM3d4dweJ0,11699
|
|
171
|
+
ccproxy/plugins/claude_api/README.md,sha256=kXpPt1NMbKdQiG0D4UmJKreLytWJKr0FwS9pSrxEgTE,1072
|
|
172
|
+
ccproxy/plugins/claude_api/__init__.py,sha256=2n3Kw6EGmvEyoSgQzT2DRwLe5Zb1XET7kvvt0mwG3Mg,304
|
|
173
|
+
ccproxy/plugins/claude_api/adapter.py,sha256=anX45r4gbeULAUaCzA7W5HlLmcfSbGrWuawCFNOdEu0,30857
|
|
174
|
+
ccproxy/plugins/claude_api/config.py,sha256=R-8w5yOYcN42tx4cR3eyzyz99Ldt4B1aTDj_vEy9NdQ,1681
|
|
175
|
+
ccproxy/plugins/claude_api/detection_service.py,sha256=mJeYvSskPS8mN-RTvwEVkPqN-91LZVfD7BsfYw7mDR8,15975
|
|
176
|
+
ccproxy/plugins/claude_api/health.py,sha256=s1Vb3JuHWaWslLKOyFJXq6PrDAkzjEhhHXAR2cVXgQ8,5990
|
|
177
|
+
ccproxy/plugins/claude_api/hooks.py,sha256=5ekTPHjMS2Znz3tLEaG-PMZ-uBm-EIpH68Wla3jRPuc,11262
|
|
178
|
+
ccproxy/plugins/claude_api/models.py,sha256=rgUw_aGxSP8C78HdeH51Hs4V-0Tv4MMOHONHqt9Yauw,8582
|
|
179
|
+
ccproxy/plugins/claude_api/plugin.py,sha256=YxMYT8CRwWaBDYJKToKtf6ovTMIRGWObzoOpnmMMRks,11326
|
|
180
|
+
ccproxy/plugins/claude_api/routes.py,sha256=rOe5WYWNL8WeLijJa-Ba5C8L7mOHJzQitjURxCkkQOc,3661
|
|
181
|
+
ccproxy/plugins/claude_api/streaming_metrics.py,sha256=9T86XJolfWIeIcH98a2-QecplNd8JsZKUfAwYL60C8Q,2628
|
|
182
|
+
ccproxy/plugins/claude_api/tasks.py,sha256=jh2wX_bbInp066sGwcx861Fh6RG--PlYRjyvDUicoW0,2423
|
|
183
|
+
ccproxy/plugins/claude_sdk/README.md,sha256=B5Yll1Sxac-vwmXg_Y80YYs5bv-iJdEpnrP5pTLSync,1183
|
|
184
|
+
ccproxy/plugins/claude_sdk/__init__.py,sha256=9Mhy8hlKB5PfCwYgM1Bvpyk58W43sznXJxmBoNNkd5U,2053
|
|
185
|
+
ccproxy/plugins/claude_sdk/adapter.py,sha256=0eaU_M3q1zeIAV3YlsxlI1SfsOuQ5XrUIgUxultaCqY,29510
|
|
186
|
+
ccproxy/plugins/claude_sdk/auth.py,sha256=Zv-LHpHCPXrN28iWEXjLKGkNyB_GytLkeBaBBPO1iUY,1875
|
|
187
|
+
ccproxy/plugins/claude_sdk/client.py,sha256=lirFMaAVAka_1TvXkf7eqMgCKRWoieM8LSXom6xKLqc,30858
|
|
188
|
+
ccproxy/plugins/claude_sdk/config.py,sha256=Y3ZzjdaYDr5ocD9FNFeMd6M_7AtOPWSdBoIH4fUNR6Y,6709
|
|
189
|
+
ccproxy/plugins/claude_sdk/converter.py,sha256=EyvrbsqKsEU-Yq_t-k8cwz14Zt5tbzeuT8deA-xKGx4,19011
|
|
190
|
+
ccproxy/plugins/claude_sdk/detection_service.py,sha256=aWmMe5gpvK7-Q24kvcrr4-IoUum9vlohppszhtesq0k,5583
|
|
191
|
+
ccproxy/plugins/claude_sdk/exceptions.py,sha256=LYUmy4K4TnrOixINScswc-Xg31gZJbbFimZgw9hIfy4,428
|
|
192
|
+
ccproxy/plugins/claude_sdk/handler.py,sha256=B5Wp9p8GDZd-IfV8g7MDCf7Eb-OzrIFpGXXPr_hBTho,20116
|
|
193
|
+
ccproxy/plugins/claude_sdk/health.py,sha256=kKQB2_7aRzblGVRvlZ_pIxkowp1Myc798_ohnuMWiPA,3521
|
|
194
|
+
ccproxy/plugins/claude_sdk/hooks.py,sha256=Im_ZNSf3I3Rit4Pyn3lY0VAMAav7eqX6eRbcLytw-Ow,3997
|
|
195
|
+
ccproxy/plugins/claude_sdk/manager.py,sha256=MDpLVBqJJcZK3mU4lQ2EwKBzUFi6yhnLpAzg0D7-XrY,8009
|
|
196
|
+
ccproxy/plugins/claude_sdk/message_queue.py,sha256=lreJBWEWwUPn689smVwp5-_UGFdI2HjLpY9VPhdVMvI,11159
|
|
197
|
+
ccproxy/plugins/claude_sdk/models.py,sha256=_wAmdHGL2NOLtOw3BC5qrLBybNASIRjRFh1lDiuQWHY,17350
|
|
198
|
+
ccproxy/plugins/claude_sdk/options.py,sha256=4wN-QVSrTYqob4trvYyQOPLpBlqqJHTMcO819uFGnTc,5290
|
|
199
|
+
ccproxy/plugins/claude_sdk/parser.py,sha256=dSZiaymZokO9xtCkG87HI1HVBqJEqM-tt3RyJJxV_4s,7749
|
|
200
|
+
ccproxy/plugins/claude_sdk/plugin.py,sha256=HLliI97nSPHB4VD86Zp_tN3owiYcLXr2lIWKBVGxGmk,9597
|
|
201
|
+
ccproxy/plugins/claude_sdk/routes.py,sha256=mAX_9525l-waAZQLGM1NEEyWsda8jN0IaMwMtdbW2ZE,3087
|
|
202
|
+
ccproxy/plugins/claude_sdk/session_client.py,sha256=Di7Qt9YAh7KepRUar7fd_dtPwlJuTEJvCGMvtN9aRuw,24466
|
|
203
|
+
ccproxy/plugins/claude_sdk/session_pool.py,sha256=DXGl3zylGkE0-XkQtzYj9BTZ59oF_pXUxJgDpNxttfM,26601
|
|
204
|
+
ccproxy/plugins/claude_sdk/stream_handle.py,sha256=OBxFnRKQq_nvvNeaX8nmhh2oDRIxwgbQrIjov2A0tWw,20997
|
|
205
|
+
ccproxy/plugins/claude_sdk/stream_worker.py,sha256=CmHSQa1BsKXZ5fCPN1iZhoDtQduxPOwF9alrRsqis4k,13621
|
|
206
|
+
ccproxy/plugins/claude_sdk/streaming.py,sha256=CdOG0hYl-P-qW_3k423FenSkMtmKvCHxmAnm1xlE_Fk,16255
|
|
207
|
+
ccproxy/plugins/claude_sdk/tasks.py,sha256=cv5sOI17OUUyyf0BmL3fa380G_aBMmzaz99ljXeBi_g,2842
|
|
208
|
+
ccproxy/plugins/claude_shared/README.md,sha256=0Rgw362eWDTXvun2Wh6oclHblnq5HE1plCj9QhTLDQM,610
|
|
209
|
+
ccproxy/plugins/claude_shared/__init__.py,sha256=auRgTSGufVQvO4Yw-Bhdo1B4vixGjXGldi94ThMR15M,224
|
|
210
|
+
ccproxy/plugins/claude_shared/model_defaults.py,sha256=6QoWyvIR9ASzH3tkbgwC9-ASXeXDHt4AdmGaNIUHat8,4244
|
|
211
|
+
ccproxy/plugins/codex/README.md,sha256=EyJoiLUi48Z5Wsm1D8iwwMzSVv1U12a8cKCgoQdOcn4,1250
|
|
212
|
+
ccproxy/plugins/codex/__init__.py,sha256=HgsZqLXlTyY-bzgH5fAT8C3cEKmL95TQavl2sJZ90pQ,82
|
|
213
|
+
ccproxy/plugins/codex/adapter.py,sha256=n2eP2a4x0E8y3V8zgt1OEAS04bIZzan09dN4ICymEqI,24534
|
|
214
|
+
ccproxy/plugins/codex/config.py,sha256=r8TbZdeSClJWeoamXCI2B0w-79yP6v1soAC02QgEFhY,5615
|
|
215
|
+
ccproxy/plugins/codex/detection_service.py,sha256=IjbRyQG8KAmGaCXsMf6Qp64MI13FoWKXWR_7rDHcTJs,19476
|
|
216
|
+
ccproxy/plugins/codex/health.py,sha256=k4YoRhM5nVUw3Fb0JNjCXbjX6hDdSlxZ_sDbuYeiy2E,5597
|
|
217
|
+
ccproxy/plugins/codex/hooks.py,sha256=aDvOku5S2yKzHtIVOB3zbDWUcnxZb5JumNiuObI3crg,10160
|
|
218
|
+
ccproxy/plugins/codex/model_defaults.py,sha256=ef5Cjp-JLAWmYZemdzIp6S_6VdgWWPjOt0AD-a6SD9k,976
|
|
219
|
+
ccproxy/plugins/codex/models.py,sha256=xfcMG9eiJMqoMBEhF-NIw2DbfnixfuO1i7Fl_bTMB_w,8320
|
|
220
|
+
ccproxy/plugins/codex/plugin.py,sha256=kp8d9Jau0lOp1NRxfZWP05KXIHGKjXY5GNTrIXkmTC4,9597
|
|
221
|
+
ccproxy/plugins/codex/routes.py,sha256=66Kz5vXsyhW5MS9wriO2x87CVRSV2Uw_UDBqIA9pln0,3925
|
|
222
|
+
ccproxy/plugins/codex/streaming_metrics.py,sha256=-MY0QzTP4tYwMY9qnAFEeCRl0H5GLPWxT0Ix-nNOKe8,14380
|
|
223
|
+
ccproxy/plugins/codex/tasks.py,sha256=nGvrPGmuyHcKY9VmM5_YULH9-CxB3pnHI5vu63S_Rgw,3320
|
|
224
|
+
ccproxy/plugins/codex/utils/__init__.py,sha256=0mrlJKSnGcZGaWMPK9dFIP4uX7ABMVNSHi2_pgRcu2o,40
|
|
225
|
+
ccproxy/plugins/codex/utils/sse_parser.py,sha256=yOUC149bw5C6mE39b1fhUOtnJtr7duePZWH6wtzMkro,2872
|
|
226
|
+
ccproxy/plugins/command_replay/README.md,sha256=52voWf2DdaAF0b_d7Gc2xrO3lpIyl974K-ule56Q1GA,1216
|
|
227
|
+
ccproxy/plugins/command_replay/__init__.py,sha256=-zDrp-xYD-B3rDwu-26lmHOO2IjMri8bqdaXeR5Y--E,436
|
|
228
|
+
ccproxy/plugins/command_replay/config.py,sha256=nJ_ob2knPi3DydyGWtAmeOoMqxaAQ7ERIpNEBjr6cLU,4719
|
|
229
|
+
ccproxy/plugins/command_replay/formatter.py,sha256=74ZKF9eUfgcxKQZObPIjrguv5s48MXsu9NcD-EpRgXU,15354
|
|
230
|
+
ccproxy/plugins/command_replay/hook.py,sha256=doSFNggo46Xjh8Ig1xOq4Rw62jVpnMshu2MnezbB5BA,10358
|
|
231
|
+
ccproxy/plugins/command_replay/plugin.py,sha256=deD3m2mcrPJAOzYRiVskL2CybOXjvD2HNrxsEe-to1w,5921
|
|
232
|
+
ccproxy/plugins/copilot/README.md,sha256=e8iCbLCD99fsOJBw0AZZYo8YWVp4Nmbc5EL3-6YFHfU,1347
|
|
233
|
+
ccproxy/plugins/copilot/__init__.py,sha256=H03oVgFzAK4_9wXchCdwwNduoaPHBqDCTb9J6wcbCQk,391
|
|
234
|
+
ccproxy/plugins/copilot/adapter.py,sha256=dL1CiilNJ1wmaz-wo_m3eo-XeZWHsMGadtCFMqVlxvc,17178
|
|
235
|
+
ccproxy/plugins/copilot/config.py,sha256=aSuKKRSUTK_2BNBLZ9BccCJ-1a9Y9Ltifn-3eCEfkFA,4796
|
|
236
|
+
ccproxy/plugins/copilot/detection_service.py,sha256=_JVQjgiW6_IHg-zxqwnF1jDJcReLTprTqQKyrR7N4xw,8503
|
|
237
|
+
ccproxy/plugins/copilot/manager.py,sha256=rZs9tOcIq4Kw9j9Q_3l8h9ow5dHqFZ84snfeHiY_wGk,9687
|
|
238
|
+
ccproxy/plugins/copilot/model_defaults.py,sha256=ICZFgeHeDOfHpZqLVelWuWgccZ6UTQYuUrSUFvq1qK8,6570
|
|
239
|
+
ccproxy/plugins/copilot/models.py,sha256=Zn_h-QwwBCCi8T-Qr5LQZCXosfdBSANF_jlNMpCEs_4,5546
|
|
240
|
+
ccproxy/plugins/copilot/plugin.py,sha256=FWgK2DPBrojD7-R3evwBEOWjnZAC2DZEB0EFKSfsZSw,12893
|
|
241
|
+
ccproxy/plugins/copilot/routes.py,sha256=GcxpK3HstAG_KfD62z92IL1QmPCXv2bbKGDIicRJPoc,10102
|
|
242
|
+
ccproxy/plugins/copilot/data/copilot_fallback.json,sha256=dgZlwlNtYmQHDQMe-g_e6GFe5Z2QdaZVN10AqdbDcyQ,987
|
|
243
|
+
ccproxy/plugins/copilot/oauth/__init__.py,sha256=CPjcRb7oG-zzsB-SlSIMmhO4Ww9-oVAWIMFM_MT8XZE,430
|
|
244
|
+
ccproxy/plugins/copilot/oauth/client.py,sha256=-ly7-_ccalljngyu9wiczE02v4vWXubzGU87e8JoUhA,16682
|
|
245
|
+
ccproxy/plugins/copilot/oauth/models.py,sha256=VKtAuJJjKM788eUdSdZewNsmVhxVTfS73_WWEQhUoZI,14164
|
|
246
|
+
ccproxy/plugins/copilot/oauth/provider.py,sha256=rvfwDhBrkGLfrawTdB56FYFhouOqYNb34pEmvF7bvC4,20840
|
|
247
|
+
ccproxy/plugins/copilot/oauth/storage.py,sha256=Pp3xTNMn3-Lp88o8z_HuVOjAdyntb3ReJXcQ-gtc3KU,5681
|
|
248
|
+
ccproxy/plugins/credential_balancer/README.md,sha256=f_4kQFagPYseFDl7IfYmgJi6noUAWjhVQxOQ6nombH8,5163
|
|
249
|
+
ccproxy/plugins/credential_balancer/__init__.py,sha256=yuO1ZCpU1JYmgAIugSYd8jfIzRZfNphx6fcb5okcU94,87
|
|
250
|
+
ccproxy/plugins/credential_balancer/config.py,sha256=7Ucx_6SWDPUmuGAHJCuQTwwo5f5A1VN-L9dfMQhxp8k,10561
|
|
251
|
+
ccproxy/plugins/credential_balancer/factory.py,sha256=x-E3a99OZOHVhbSUkylhPlW2HrSIN9iT01XflCMmVaM,14139
|
|
252
|
+
ccproxy/plugins/credential_balancer/hook.py,sha256=LLGpoEeNWxTPe8b2rV5RHSd62QiLjMo0-XOtsm-BpDs,1716
|
|
253
|
+
ccproxy/plugins/credential_balancer/manager.py,sha256=X1-UDslUugCHY7k1zetrRfCn1nbwsWpyo2UY6CTYAew,20166
|
|
254
|
+
ccproxy/plugins/credential_balancer/plugin.py,sha256=sCPjhOH8KN7cyush3jxMbiPOjlkN63enPARf6CRFTeA,5376
|
|
255
|
+
ccproxy/plugins/dashboard/README.md,sha256=ctRrrCYKiqr7_48Sq-FGATTmAc3rkCMnvLPDHdyKtG8,847
|
|
256
|
+
ccproxy/plugins/dashboard/__init__.py,sha256=yXvesggek0fUxDmo3vrhpDudhfPoldmqVp2xtq99X9k,64
|
|
257
|
+
ccproxy/plugins/dashboard/config.py,sha256=L7tc-cyP8AfL2SkEO_QRbSy_aI2x5WFZkQYw2S8Im6I,281
|
|
258
|
+
ccproxy/plugins/dashboard/plugin.py,sha256=sn785TYiwY3fh92uUlAst6K0me_XDALpQFAfatDfAN8,2303
|
|
259
|
+
ccproxy/plugins/dashboard/routes.py,sha256=VtQfc_-xsOzDEsdTCFNpoN5q1_lRtl9vCho6Q1sb0xc,2312
|
|
260
|
+
ccproxy/plugins/docker/README.md,sha256=YVLOYgmP6TEKT0LQm1-CSqjB8GdG1LjAjK8cB78aUOI,1089
|
|
261
|
+
ccproxy/plugins/docker/__init__.py,sha256=tmBI2r4sgSt130I-pnoRRZ6Hr1-6IouBNl481NhXQjs,1906
|
|
262
|
+
ccproxy/plugins/docker/adapter.py,sha256=u2YGwUMIMTO17u9gSGtUQhnWMQSs2ZET05MHAgqBViA,24905
|
|
263
|
+
ccproxy/plugins/docker/config.py,sha256=HkWmMuAsYPeuTKQCaSNCI_mcTutFbB3d_q0iQ2Lu6Ww,2536
|
|
264
|
+
ccproxy/plugins/docker/docker_path.py,sha256=jv21F4k8Bdzh8jTgUntjqBFKaBmPB68yK4ajyn4wWAw,6452
|
|
265
|
+
ccproxy/plugins/docker/middleware.py,sha256=CI6hZ9U84qqbhOB7GuHwg_WiCe8PHobzxnnYK7GXP54,3307
|
|
266
|
+
ccproxy/plugins/docker/models.py,sha256=3xCwOhfpUohINIG2QBoUKlQU1Ry1g-JV6HujhsoRtzM,7491
|
|
267
|
+
ccproxy/plugins/docker/plugin.py,sha256=5U4db1J1k_OpU-4G63hAaYzLdwsKPONjO2dhYGxnmw0,6706
|
|
268
|
+
ccproxy/plugins/docker/protocol.py,sha256=uFJvKfTYhO8ROUo_tcMIuXYqhjK-eFIJV-U5Bora-jA,6520
|
|
269
|
+
ccproxy/plugins/docker/stream_process.py,sha256=MOCxwrZmRqXMVhzMUsTn05XTo7i-p_WKhEb-quy5Ugc,9095
|
|
270
|
+
ccproxy/plugins/docker/validators.py,sha256=OY-dkU88CLIeMBfv4P5QoVB7miQ8BD7kIgaMHxF7TsU,5764
|
|
271
|
+
ccproxy/plugins/duckdb_storage/README.md,sha256=PbcfFaQZeDdadYNTPblyHTYvcO70yLp0iSFDgVR-saM,988
|
|
272
|
+
ccproxy/plugins/duckdb_storage/__init__.py,sha256=7JahTXNcF4Qa_xz7WcwvZlaF9iNF4AN7VbT51XOvOag,37
|
|
273
|
+
ccproxy/plugins/duckdb_storage/config.py,sha256=2CaFHHA7exywM_DNWM-akBJjnDUJ1XMYiwZhli2F_Es,666
|
|
274
|
+
ccproxy/plugins/duckdb_storage/plugin.py,sha256=D66D1EzHnRw_0jTkb3wR1KlmIIxHiHXBLWkDkcDrDKk,4266
|
|
275
|
+
ccproxy/plugins/duckdb_storage/routes.py,sha256=h5eKbwJRqxFXbq6gB3BY02Eg-Rmo9OPtcModwuZrSRo,1432
|
|
276
|
+
ccproxy/plugins/duckdb_storage/storage.py,sha256=tmjIVOTyvhy4RKICj38n-u0TfkQkF9l7ORq1esKuYbA,24424
|
|
277
|
+
ccproxy/plugins/max_tokens/README.md,sha256=lIR5UX_0AYKss67lBcnGiDesuwVbNsVFT0_K6O9IPZQ,1491
|
|
278
|
+
ccproxy/plugins/max_tokens/__init__.py,sha256=qJRvMlwo6MQrEuUQsr0o4i7HO0l_d1nkNhvcEtPGTCE,373
|
|
279
|
+
ccproxy/plugins/max_tokens/adapter.py,sha256=ySPHXj6u0-LfT4py6lpTejSXl9ONnaExp9J7Uzx3Q9I,8525
|
|
280
|
+
ccproxy/plugins/max_tokens/config.py,sha256=MErvZkDI8Nx7_xa9bACsdXbxD3wbnf7kunmWuaTRFOk,3281
|
|
281
|
+
ccproxy/plugins/max_tokens/models.py,sha256=A-TNaeuoC83LLRjDywXaqujN3UJpwTKi2tubtVMTMgk,1864
|
|
282
|
+
ccproxy/plugins/max_tokens/plugin.py,sha256=Xw6Mk-twcR-OpadDgFhmAGkV760PoGlWXN2osTF3wnc,7228
|
|
283
|
+
ccproxy/plugins/max_tokens/service.py,sha256=oYQCFR4ujPppflYDmFPnp0raLOuVcNn8CpXVvt90X5Y,10302
|
|
284
|
+
ccproxy/plugins/max_tokens/token_limits.json,sha256=N19ZGkzxpS6ewupvcdTVyeVQ6lYwHBO5ux3PTFRZcMY,1405
|
|
285
|
+
ccproxy/plugins/metrics/README.md,sha256=t8TI54s_gVfJyLReNMGe-TJqn8DkYZG45Ur3tEz2tNQ,1259
|
|
286
|
+
ccproxy/plugins/metrics/__init__.py,sha256=oAa0Ffmr2HiAE0HaLnbB56aNsTUpCoRyWg3ispOPzAk,220
|
|
287
|
+
ccproxy/plugins/metrics/collector.py,sha256=lsXZj8P4JPI4Eimo9UkUQW5seyxk_1QMGzWeGp1y0ko,16401
|
|
288
|
+
ccproxy/plugins/metrics/config.py,sha256=QjkHfcF__GEW-MruVUrcE5f8oqsvoiDABQnFSgcVHYk,2649
|
|
289
|
+
ccproxy/plugins/metrics/hook.py,sha256=S2vzkt6qIEsQ8Sf-Jtnt6qzFOBSSITACo9HodkJlS08,14302
|
|
290
|
+
ccproxy/plugins/metrics/plugin.py,sha256=dPmw3V7_fXUP7zkEpmfNnG9Bm2TUP3P3CCKq8d6Srpg,10316
|
|
291
|
+
ccproxy/plugins/metrics/pushgateway.py,sha256=aasyT0yiNmxmpWoU3z2I0FCZlTATYBXR28BpY4uFeFw,12437
|
|
292
|
+
ccproxy/plugins/metrics/routes.py,sha256=Uu045GYA6QMR1p1pmMv8ewhY24RgDCUNKkpKTluXh0M,3496
|
|
293
|
+
ccproxy/plugins/metrics/tasks.py,sha256=TQJ3O8AAr1cykAZPqarRmRZoVtEyysU4bJfll4bh2Tk,4067
|
|
294
|
+
ccproxy/plugins/metrics/grafana/dashboards/ccproxy-dashboard.json,sha256=T5VFxWrO9KWG4cOGqlLvNux9syJKJF0UvPLdQxSfrgA,40533
|
|
295
|
+
ccproxy/plugins/oauth_claude/README.md,sha256=HYTUjaNU3p5LCqz3Td2_ZoaYQ1bfJ2dx9Wcv9bY1y-k,1358
|
|
296
|
+
ccproxy/plugins/oauth_claude/__init__.py,sha256=y3F9lKIkDbeU5A3u0Ur-NqFi_4FMXKiOBndIzQI6Luw,348
|
|
297
|
+
ccproxy/plugins/oauth_claude/client.py,sha256=In4k9JakHE0rrp3GqQQ3UhvH3-znUbiBIb9gQv_x1go,8898
|
|
298
|
+
ccproxy/plugins/oauth_claude/config.py,sha256=3eoHZwitOdJ12TlSDeUt-YLCj-sMr8a0ObpD64Ava8s,2637
|
|
299
|
+
ccproxy/plugins/oauth_claude/manager.py,sha256=0aOTVwPy3nDLhZsX5vcpWRG4kGqkdklOy0aN9WZpjNg,18145
|
|
300
|
+
ccproxy/plugins/oauth_claude/models.py,sha256=90BQzi0MVL9sK7NtTYZjwSWR5DGmEPsU2F8zF60Jbgw,9227
|
|
301
|
+
ccproxy/plugins/oauth_claude/plugin.py,sha256=_EybVmwvigoJfuzAMETkknO3kQ-fp59earI7i1yWA-s,4918
|
|
302
|
+
ccproxy/plugins/oauth_claude/provider.py,sha256=lV0RUmBthE8rmnPUNqdtcYuZL_RED95bURBhOOcyDqQ,19500
|
|
303
|
+
ccproxy/plugins/oauth_claude/storage.py,sha256=rzMPn3uyHHe7nxA-EuQAFi-uGWS_pN60z7AMwgrYwPY,6547
|
|
304
|
+
ccproxy/plugins/oauth_codex/README.md,sha256=XgbCxp_JHadpYcq6JW-hC8YvBo9310CLqVbKdprY5Vc,1451
|
|
305
|
+
ccproxy/plugins/oauth_codex/__init__.py,sha256=pA4sU7Ngj0xY2Ppr_G6K_H4boihe-TL7ppvvusoBKEg,345
|
|
306
|
+
ccproxy/plugins/oauth_codex/client.py,sha256=Ry0uFDsdXXFUGdI5ol5i-zDgjEZtaToKdaUAlhmgyu4,7357
|
|
307
|
+
ccproxy/plugins/oauth_codex/config.py,sha256=l5LE3Qud_FSHBGTX9e4JhUVzAAO6TdFHRfUaAPZkmIw,3056
|
|
308
|
+
ccproxy/plugins/oauth_codex/manager.py,sha256=snHjg738LZSw-G4oAVuh2DCBTqMEIeXeH_pQ4qQUCKk,9349
|
|
309
|
+
ccproxy/plugins/oauth_codex/models.py,sha256=J-zU4Z3VIgoZ0DDUoCpBIJY-IdLsR9XgPfsePOVnEYI,8407
|
|
310
|
+
ccproxy/plugins/oauth_codex/plugin.py,sha256=Vqd8rGjJ-bUYJu4WvM-5KI23V2RrPkxpKLmLIdoBNik,4679
|
|
311
|
+
ccproxy/plugins/oauth_codex/provider.py,sha256=MgPamQtwUdiY3dsu8CgCNlIruUczXyjEnBxzm2WyOeE,19403
|
|
312
|
+
ccproxy/plugins/oauth_codex/storage.py,sha256=1vQ5uRJcSpwwDKUOkEM_gZLF1fIlIfoG5jGS-oFsvrU,2869
|
|
313
|
+
ccproxy/plugins/permissions/README.md,sha256=46UGpLVypiEw1HKcvSUI8iqrsyZz2xLyFu6NSpGlajQ,945
|
|
314
|
+
ccproxy/plugins/permissions/__init__.py,sha256=xndpWNP563HfUHEiPhCtIt5rtgaWIaFfY09KxoGW4mw,428
|
|
315
|
+
ccproxy/plugins/permissions/config.py,sha256=NtxmX7AvHSo8rGmh0KvqeMW1PFkvnQYo1ch7z4iNZcU,826
|
|
316
|
+
ccproxy/plugins/permissions/mcp.py,sha256=pBStFJ9rCtUYjUyf4tT3wSNlqjVMB9F5ONAKtHnKXCg,6017
|
|
317
|
+
ccproxy/plugins/permissions/models.py,sha256=f5EpwTO1KbQpy7jM-rkBLFkbc4L7wLC7GKwQvqYqFiI,5472
|
|
318
|
+
ccproxy/plugins/permissions/plugin.py,sha256=FechX1D1880Rr6hcOoPsHOSrCTc_0d7NlXTh9K9DJOs,5177
|
|
319
|
+
ccproxy/plugins/permissions/routes.py,sha256=FHhFrbx3laWKptbiLfKVawAd3NRbQ9YuhDN1MHjZ6J4,6197
|
|
320
|
+
ccproxy/plugins/permissions/service.py,sha256=iVM7GONMu-ULCgATRBOr388g8L31JlM-GSGoR4HvzZU,13673
|
|
321
|
+
ccproxy/plugins/permissions/handlers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
322
|
+
ccproxy/plugins/permissions/handlers/cli.py,sha256=Virf3gOTQkTq4bbhlAVN9gBAZ_DtKeVqFPVOxlBHy7g,19220
|
|
323
|
+
ccproxy/plugins/permissions/handlers/protocol.py,sha256=xo9VYbjTbCfpgMkLImPPcdD6YvTfgRDI_PBZBh5JEds,941
|
|
324
|
+
ccproxy/plugins/permissions/handlers/terminal.py,sha256=zRryNcdltwjzaODVNKjRKZUG0Hi7_kZDK9Tkqj80TV4,22797
|
|
325
|
+
ccproxy/plugins/permissions/ui/__init__.py,sha256=oEgfWr8pgSO7uHYQBchJ2QspFrFsqTCO8mLPlfhHTfU,147
|
|
326
|
+
ccproxy/plugins/permissions/ui/permission_handler_protocol.py,sha256=5m7DS9l3A9uA2nyrYq3yaej9ZgVTi2FiamC1cFFLvgY,935
|
|
327
|
+
ccproxy/plugins/permissions/ui/terminal_permission_handler.py,sha256=UUM-RvnwPVdRfg_r4Bd4q2MVG5DjdV-9W-NX0V5QcrI,21805
|
|
328
|
+
ccproxy/plugins/pricing/README.md,sha256=tyO5J6iYXX69iDJH3_MPr9TW8BI3HAtCRf7H4wg9DaQ,1197
|
|
329
|
+
ccproxy/plugins/pricing/__init__.py,sha256=40mlD_-O7LNMM4pDx_VdTUsH0pI94EfqMDawTO5D3oQ,101
|
|
330
|
+
ccproxy/plugins/pricing/cache.py,sha256=1TI8u9JZK6fRvk83spkvvl2kURxoWpZ54hdjFOF-JhI,6515
|
|
331
|
+
ccproxy/plugins/pricing/config.py,sha256=R84mHssXqZ68AEOQtg_0BsrsUjtAYyLogJHoHsWRk0M,3524
|
|
332
|
+
ccproxy/plugins/pricing/exceptions.py,sha256=6y8JI150FUaGRbn_N5spYi_08syAA-9q9P5UX81TZw4,1005
|
|
333
|
+
ccproxy/plugins/pricing/loader.py,sha256=ogwRYEGQHmxlNKe2n80sBL_iIZcVnrZs3J3-FW0G-WM,15567
|
|
334
|
+
ccproxy/plugins/pricing/models.py,sha256=IMd5YaMmXxSIMwYeB551KSXmB_q09pwzsmHmjnYErNQ,3037
|
|
335
|
+
ccproxy/plugins/pricing/plugin.py,sha256=JtxzJxtWy5MBsTt2lguwTReAOIxfOCVTlBJe3DFqOt4,5831
|
|
336
|
+
ccproxy/plugins/pricing/service.py,sha256=MyQH5M0kJPp3uAvThTXGhxT3dSOpkK6d01GRnvL-4ys,6243
|
|
337
|
+
ccproxy/plugins/pricing/tasks.py,sha256=_qoR4-FPcgqXmF4om6umKBEr4kG7d0cX2chbuX5rjU8,10005
|
|
338
|
+
ccproxy/plugins/pricing/updater.py,sha256=AkZaUFkynArvWdK9pxJ5d9G-hRI14o35iNLbbysgKYY,10908
|
|
339
|
+
ccproxy/plugins/pricing/utils.py,sha256=z0hZuNzCU3T0if-JPxjY2Dvn9qmnihQVvOKR1qB0WxI,3298
|
|
340
|
+
ccproxy/plugins/request_tracer/README.md,sha256=yC5mPIUNfJTLb5VC0GIFTAOwRZTj-0-l1H4evM4I2Po,1397
|
|
341
|
+
ccproxy/plugins/request_tracer/__init__.py,sha256=VpNi6LCMdNGe3oH_roJl2pHC_oUhTZbH4Qri6eJwCu8,183
|
|
342
|
+
ccproxy/plugins/request_tracer/config.py,sha256=-9Uj10IMyfIMV8TjIgeiT7jUTBg2eg_n-KJ28eBhPN8,4022
|
|
343
|
+
ccproxy/plugins/request_tracer/hook.py,sha256=5ut6w-VogKvqeL06VEb5XcA1K8HidZPLIHlGPIejm6M,15219
|
|
344
|
+
ccproxy/plugins/request_tracer/plugin.py,sha256=WJHkL4GM_X8SG3XfFyDscmJsvimEfHPcZzSU82VlQpk,9134
|
|
345
|
+
ccproxy/scheduler/__init__.py,sha256=BAzhxVUQy376pMtNJy4Yfzcg7qVhP6Qnp4N--9jwsMA,819
|
|
346
|
+
ccproxy/scheduler/core.py,sha256=YRzbLexfqZ95XIVJyc8JPj47kyG3oq8hDdcEp0Nk-Fs,10218
|
|
347
|
+
ccproxy/scheduler/errors.py,sha256=k7dcid0_te7IwwQaad-Jkj7MWFBgIOdgD_y_n5joio0,817
|
|
348
|
+
ccproxy/scheduler/manager.py,sha256=yfu-q_l3wO1f9iw3XEhSMVaHrLyqrwaU4o4x81A-z_4,6074
|
|
349
|
+
ccproxy/scheduler/registry.py,sha256=B3NN5Q4NIg7DpJH2kKDA36U2y_4RakTpNcP-TMu7cIY,3420
|
|
350
|
+
ccproxy/scheduler/tasks.py,sha256=pU89etqw1Ca1roDgjH9ULyMWpskj1C1lIej1nbCsUEo,27999
|
|
351
|
+
ccproxy/services/__init__.py,sha256=4HTRuI96bIVzuKzi43nuHq5mCy6Ge3WfpaamgRC-3_s,231
|
|
352
|
+
ccproxy/services/auth_registry.py,sha256=-hRl3B_U3rsbPrI266ui_hUwWwuB7F11kvMIWNzDxrg,5874
|
|
353
|
+
ccproxy/services/cli_detection.py,sha256=tgYIZ0cjJkzCoQxhzyDw8q-Rr1FBYRotoOTW_-96xek,15209
|
|
354
|
+
ccproxy/services/container.py,sha256=85UxyEOKFehdIjTN28UzL0zsSWzsL1rSar8vaI0i1sE,10040
|
|
355
|
+
ccproxy/services/factories.py,sha256=_tZYzi8Tq6kMGMVDIDqsCvIZvqajlEsOiT7pJMbU4tg,15516
|
|
356
|
+
ccproxy/services/handler_config.py,sha256=oJAXbf1WeuH_1TORd_vencShW0NItJdQb0Q9Srkw8wA,2475
|
|
357
|
+
ccproxy/services/interfaces.py,sha256=3-c8H9cCw-0LAQxas-Bwmo0CLg7ATT5sqJuqAJwFWtI,7719
|
|
358
|
+
ccproxy/services/adapters/__init__.py,sha256=djYnpvEuh71PShwq6XA0jfsecEourW0owE44Xo94iek,240
|
|
359
|
+
ccproxy/services/adapters/base.py,sha256=TO3Un24xv1y42TaTzNvngZMyCFm-TQp4Cthijl4Curs,3746
|
|
360
|
+
ccproxy/services/adapters/chain_composer.py,sha256=0df5mOn8AAgkVvUdtvNYY_UkolfyUmNz3JBeEwDgFZ4,3046
|
|
361
|
+
ccproxy/services/adapters/chain_validation.py,sha256=xhrxl9oE90LyY7mZmAIrvE8RdWIPrfNiA07UXmzvvNE,1438
|
|
362
|
+
ccproxy/services/adapters/chat_accumulator.py,sha256=bunGb7QfMXqNBysFB3Kv0KbdTo1ky8i3OcyUCyHienc,7138
|
|
363
|
+
ccproxy/services/adapters/delta_utils.py,sha256=qVKC6DRLlUxL3QRBDhNAMRp-DaeBM5QqyyjZwwMf3Jw,4374
|
|
364
|
+
ccproxy/services/adapters/format_adapter.py,sha256=a-8ihjvSYqUu3LJiUkjxDN6Q6LzDlxLxYmWEYQp2MBU,4491
|
|
365
|
+
ccproxy/services/adapters/format_context.py,sha256=2KobsmznkDOQh0iVDEXPz4HB9ESNEZovCQD4NV9WyPI,321
|
|
366
|
+
ccproxy/services/adapters/format_registry.py,sha256=tfKDF6eYXJsI1KqJExn2DuV3SGnQ5jkUOiNCE7amBlg,5339
|
|
367
|
+
ccproxy/services/adapters/http_adapter.py,sha256=L_Gb-g4msX5AV2ifSOpsF8Mun2sDlpcDMFvEPVnyxas,39244
|
|
368
|
+
ccproxy/services/adapters/mock_adapter.py,sha256=cNEiXRItIWbYVYrol8yeKPVOJsE2iQqOmhPt-OK9_fw,3907
|
|
369
|
+
ccproxy/services/adapters/protocols.py,sha256=2L_iLr_m7wvY5OtARZvF6WBd21hSp-EF9TOHCIY8j5g,1154
|
|
370
|
+
ccproxy/services/adapters/simple_converters.py,sha256=s4sDjpQ_cVjf87Izdto56VUQkaKUrTjxDj_Pmg43pKY,20673
|
|
371
|
+
ccproxy/services/cache/__init__.py,sha256=fcuOHQ4_OHZ2Ps9HOV1UOwBZH0QXH_EzoOLwAPYDtnI,150
|
|
372
|
+
ccproxy/services/cache/response_cache.py,sha256=9B9XwekDuKYdWuAlInh0OMgJX1dQA-HRCJf76JxGT1c,7342
|
|
373
|
+
ccproxy/services/config/__init__.py,sha256=LBxV_tWP6-nJNygyCe1Vm2pXXqOSSdE981rnEEfX3cU,152
|
|
374
|
+
ccproxy/services/config/proxy_configuration.py,sha256=_YnyOLCH4GpFLGxqN2bk1zreuyx-D3GgcRY1veJSl0U,3392
|
|
375
|
+
ccproxy/services/mocking/__init__.py,sha256=atYL6AX_Ro3I7gDGID-OzVadT9aVImKw0-aOI6Md8Vs,162
|
|
376
|
+
ccproxy/services/mocking/mock_handler.py,sha256=4CvMdPsy53tLnsLY1iChFDq-78tXoSbYXr6bsrHtMDs,10632
|
|
377
|
+
ccproxy/services/tracing/__init__.py,sha256=hyMiuXsb75FcVNmTOLK__z9Yp5ObLvxE8aaOiA6J0D8,278
|
|
378
|
+
ccproxy/services/tracing/interfaces.py,sha256=Iuwn8AONF1FcfBRKdOSCUGddbqNoCS7y3U8kNSc6k_Q,1794
|
|
379
|
+
ccproxy/services/tracing/null_tracer.py,sha256=G9aLLqbg2VlVNuSkldZo-10rY9xlTA_8c6eY1MOqCnw,1330
|
|
380
|
+
ccproxy/streaming/__init__.py,sha256=hq6MIWXvFt_34scAz6YEsW6W-vBHGhfoIImT0yALvHo,638
|
|
381
|
+
ccproxy/streaming/buffer.py,sha256=Ov9Zfh69iAXmvqU3XSzZwthzXwuiRaI6xcIxY7qj3z4,41127
|
|
382
|
+
ccproxy/streaming/deferred.py,sha256=bO31GPlIQAF5YoWltU_iES-qXZqZs6ChGBLvY1jOiy4,40420
|
|
383
|
+
ccproxy/streaming/handler.py,sha256=Pst8TsJPKr6wN9aRJOGlJ8QM_KbIjpcSvySis6vma08,3947
|
|
384
|
+
ccproxy/streaming/interfaces.py,sha256=d6CrPZOYfoUuXfsf3yTwGWO5UBFOC9ck6LSr_ArchTE,2306
|
|
385
|
+
ccproxy/streaming/simple_adapter.py,sha256=zHPhUobU9yjz80XHJbAVi6H6Qhy8out_IGhJ874J4Vo,1400
|
|
386
|
+
ccproxy/streaming/sse.py,sha256=OPuCG2d-Y2tweyXZ7rLmRImKlpherD8k6s8CSj5tsrs,3468
|
|
387
|
+
ccproxy/streaming/sse_parser.py,sha256=XlyVHY1ss-yQoFX-ctIF-WKpmQVY--LsoDyXYZ4gIsQ,3959
|
|
388
|
+
ccproxy/templates/__init__.py,sha256=NrBwycvHuzvwV4aEp1VvVLwiwrdj3o3GuwC6m-5XHTY,196
|
|
389
|
+
ccproxy/templates/plugin_scaffold.py,sha256=qdYvC1AGdqEJM8G4AEOrWF6CJ5PuMkE74i_QH2_m8ug,23017
|
|
390
|
+
ccproxy/testing/__init__.py,sha256=-W01VLA1RfopmwVaeWH32gstERNsjFcNIIynZjZjzls,1071
|
|
391
|
+
ccproxy/testing/config.py,sha256=tE-88piIIbUxXI1DkTs15KUAvHyHfcRaovBeQCXCZG4,4870
|
|
392
|
+
ccproxy/testing/content_generation.py,sha256=in2F_W1RSnQYKXYCavMrYXPLBrqVn_Bogx84oF242iY,8585
|
|
393
|
+
ccproxy/testing/mock_responses.py,sha256=fYAiO7bxyRHM76tbk4LwzmB4HHzcKqcU1wsIwOLvRLc,12091
|
|
394
|
+
ccproxy/testing/response_handlers.py,sha256=7G9zTWQ3LJXBwspoBsgtgY_96Q6amI8WZjT6dYclONE,7326
|
|
395
|
+
ccproxy/testing/scenarios.py,sha256=lVTkf1TbqPnWAfY2VbXez6dSFHsohuXerDmh37iC5VU,9200
|
|
396
|
+
ccproxy/testing/endpoints/__init__.py,sha256=1OQpgrPvNNtR_nIHHi3NLzR4AK5CV4zzzUAzw2EC58E,732
|
|
397
|
+
ccproxy/testing/endpoints/cli.py,sha256=Cf_NVQhpeuW6Tg-l5efZEZDcOxBnfmSxoAZvE8TEYso,7466
|
|
398
|
+
ccproxy/testing/endpoints/config.py,sha256=OtzwYwkaXZEqUs3jMeNwNacXFkUc9P0jTxEVm1kxsXs,28145
|
|
399
|
+
ccproxy/testing/endpoints/console.py,sha256=0dcJG97Q9Z4nS00zzmjIpxopYrG669wf-oMGhW9mmeE,1339
|
|
400
|
+
ccproxy/testing/endpoints/models.py,sha256=JwDxbYDJcLtjQX5HLClmBc7n6GiNpFsqZuuHWGgIrB8,2731
|
|
401
|
+
ccproxy/testing/endpoints/runner.py,sha256=4Hp9PWUtIs0muQ8HR7p7yXXFuzAorzutD8OoGVYQvUA,72099
|
|
402
|
+
ccproxy/testing/endpoints/tools.py,sha256=6b9h0JU2LIzeb4dDJ1ixoD97d0eSHuhNlKuVEXbIIwY,9637
|
|
403
|
+
ccproxy/utils/__init__.py,sha256=4C9e6WGg7ZSWKtIjw4U2MC8fBr1ez8pb7sQFJuiR668,159
|
|
404
|
+
ccproxy/utils/binary_resolver.py,sha256=clUWv_CalpblfpDPmAAsgsdF3BMLVMvJTgIXwv0JF6Y,16394
|
|
405
|
+
ccproxy/utils/caching.py,sha256=u0Ic6W92OL_ZK_ZcxHblq_rzYR_v194qD9tV_i2Jt1o,10293
|
|
406
|
+
ccproxy/utils/cli_logging.py,sha256=O5hO4OotugMaOyoVzByNbZ8o1g1yjBolLPbSNPm3QLE,2956
|
|
407
|
+
ccproxy/utils/command_line.py,sha256=bxBg3HL3gq0KwkXxJjDotNZaoJR6oN8qp4nc90V_8Gs,7535
|
|
408
|
+
ccproxy/utils/headers.py,sha256=ho2BCBfIEupRMomqXyEZ6DVrrmDMbkMnzYpTT3j4jLY,6782
|
|
409
|
+
ccproxy/utils/id_generator.py,sha256=k6R_W40lJSPi_it4M99EVg9eRD138oC4bv_8Ua3X8ms,301
|
|
410
|
+
ccproxy/utils/model_mapper.py,sha256=hnIWc528x8oBuk1y1HuyGHbnwe6dsSxZ2UgA1OYrcJs,3731
|
|
411
|
+
ccproxy/utils/startup_helpers.py,sha256=u1okOVbm2OeSqrNrbhWco_sXBR0usNo7Wv8zvhBLPhc,7492
|
|
412
|
+
ccproxy/utils/version_checker.py,sha256=cGRgjD0PUB3MDZDSAdKPQwYIyqnlzFWue0ROyfGngNE,13452
|
|
413
|
+
ccproxy_api-0.2.0a4.dist-info/METADATA,sha256=TiTWxEXyms9TVVIWQo7ANRPR41vCIH9yHdAEAa7LfsA,8296
|
|
414
|
+
ccproxy_api-0.2.0a4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
415
|
+
ccproxy_api-0.2.0a4.dist-info/entry_points.txt,sha256=bibqQtPpKZJhOY_j5TFvcYzHuR-w7tNovV2i7UcPlU4,1147
|
|
416
|
+
ccproxy_api-0.2.0a4.dist-info/licenses/LICENSE,sha256=httxSCpTrEOkipisMeGXSrZhTB-4MRIorQU0hS1B6eQ,1066
|
|
417
|
+
ccproxy_api-0.2.0a4.dist-info/RECORD,,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[console_scripts]
|
|
2
|
+
ccproxy = ccproxy.cli:main
|
|
3
|
+
ccproxy-api = ccproxy.cli:main
|
|
4
|
+
ccproxy-perm = ccproxy.cli.commands.permission:main
|
|
5
|
+
|
|
6
|
+
[ccproxy.plugins]
|
|
7
|
+
access_log = ccproxy.plugins.access_log.plugin:factory
|
|
8
|
+
analytics = ccproxy.plugins.analytics.plugin:factory
|
|
9
|
+
claude_api = ccproxy.plugins.claude_api.plugin:factory
|
|
10
|
+
claude_sdk = ccproxy.plugins.claude_sdk.plugin:factory
|
|
11
|
+
codex = ccproxy.plugins.codex.plugin:factory
|
|
12
|
+
command_replay = ccproxy.plugins.command_replay.plugin:factory
|
|
13
|
+
copilot = ccproxy.plugins.copilot.plugin:factory
|
|
14
|
+
credential_balancer = ccproxy.plugins.credential_balancer.plugin:factory
|
|
15
|
+
dashboard = ccproxy.plugins.dashboard.plugin:factory
|
|
16
|
+
docker = ccproxy.plugins.docker.plugin:factory
|
|
17
|
+
duckdb_storage = ccproxy.plugins.duckdb_storage.plugin:factory
|
|
18
|
+
max_tokens = ccproxy.plugins.max_tokens.plugin:factory
|
|
19
|
+
metrics = ccproxy.plugins.metrics.plugin:factory
|
|
20
|
+
oauth_claude = ccproxy.plugins.oauth_claude.plugin:factory
|
|
21
|
+
oauth_codex = ccproxy.plugins.oauth_codex.plugin:factory
|
|
22
|
+
permissions = ccproxy.plugins.permissions.plugin:factory
|
|
23
|
+
pricing = ccproxy.plugins.pricing.plugin:factory
|
|
24
|
+
request_tracer = ccproxy.plugins.request_tracer.plugin:factory
|
ccproxy/__init__.py
DELETED
ccproxy/adapters/__init__.py
DELETED
ccproxy/adapters/base.py
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"""Base adapter interface for API format conversion."""
|
|
2
|
-
|
|
3
|
-
from abc import ABC, abstractmethod
|
|
4
|
-
from collections.abc import AsyncIterator
|
|
5
|
-
from typing import Any
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class APIAdapter(ABC):
|
|
9
|
-
"""Abstract base class for API format adapters.
|
|
10
|
-
|
|
11
|
-
Combines all transformation interfaces to provide a complete adapter
|
|
12
|
-
for converting between different API formats.
|
|
13
|
-
"""
|
|
14
|
-
|
|
15
|
-
@abstractmethod
|
|
16
|
-
async def adapt_request(self, request: dict[str, Any]) -> dict[str, Any]:
|
|
17
|
-
"""Convert a request from one API format to another.
|
|
18
|
-
|
|
19
|
-
Args:
|
|
20
|
-
request: The request data to convert
|
|
21
|
-
|
|
22
|
-
Returns:
|
|
23
|
-
The converted request data
|
|
24
|
-
|
|
25
|
-
Raises:
|
|
26
|
-
ValueError: If the request format is invalid or unsupported
|
|
27
|
-
"""
|
|
28
|
-
pass
|
|
29
|
-
|
|
30
|
-
@abstractmethod
|
|
31
|
-
async def adapt_response(self, response: dict[str, Any]) -> dict[str, Any]:
|
|
32
|
-
"""Convert a response from one API format to another.
|
|
33
|
-
|
|
34
|
-
Args:
|
|
35
|
-
response: The response data to convert
|
|
36
|
-
|
|
37
|
-
Returns:
|
|
38
|
-
The converted response data
|
|
39
|
-
|
|
40
|
-
Raises:
|
|
41
|
-
ValueError: If the response format is invalid or unsupported
|
|
42
|
-
"""
|
|
43
|
-
pass
|
|
44
|
-
|
|
45
|
-
@abstractmethod
|
|
46
|
-
async def adapt_stream(
|
|
47
|
-
self, stream: AsyncIterator[dict[str, Any]]
|
|
48
|
-
) -> AsyncIterator[dict[str, Any]]:
|
|
49
|
-
"""Convert a streaming response from one API format to another.
|
|
50
|
-
|
|
51
|
-
Args:
|
|
52
|
-
stream: The streaming response data to convert
|
|
53
|
-
|
|
54
|
-
Yields:
|
|
55
|
-
The converted streaming response chunks
|
|
56
|
-
|
|
57
|
-
Raises:
|
|
58
|
-
ValueError: If the stream format is invalid or unsupported
|
|
59
|
-
"""
|
|
60
|
-
# This should be implemented as an async generator
|
|
61
|
-
# async def adapt_stream(self, stream):
|
|
62
|
-
# async for item in stream:
|
|
63
|
-
# yield transformed_item
|
|
64
|
-
raise NotImplementedError
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
class BaseAPIAdapter(APIAdapter):
|
|
68
|
-
"""Base implementation with common functionality."""
|
|
69
|
-
|
|
70
|
-
def __init__(self, name: str):
|
|
71
|
-
self.name = name
|
|
72
|
-
|
|
73
|
-
def __str__(self) -> str:
|
|
74
|
-
return f"{self.__class__.__name__}({self.name})"
|
|
75
|
-
|
|
76
|
-
def __repr__(self) -> str:
|
|
77
|
-
return self.__str__()
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
__all__ = ["APIAdapter", "BaseAPIAdapter"]
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"""OpenAI adapter module for API format conversion.
|
|
2
|
-
|
|
3
|
-
This module provides the OpenAI adapter implementation for converting
|
|
4
|
-
between OpenAI and Anthropic API formats.
|
|
5
|
-
"""
|
|
6
|
-
|
|
7
|
-
from .adapter import OpenAIAdapter
|
|
8
|
-
from .models import (
|
|
9
|
-
OpenAIChatCompletionResponse,
|
|
10
|
-
OpenAIChoice,
|
|
11
|
-
OpenAIMessage,
|
|
12
|
-
OpenAIMessageContent,
|
|
13
|
-
OpenAIResponseMessage,
|
|
14
|
-
OpenAIStreamingChatCompletionResponse,
|
|
15
|
-
OpenAIToolCall,
|
|
16
|
-
OpenAIUsage,
|
|
17
|
-
format_openai_tool_call,
|
|
18
|
-
generate_openai_response_id,
|
|
19
|
-
generate_openai_system_fingerprint,
|
|
20
|
-
)
|
|
21
|
-
from .streaming import OpenAISSEFormatter, OpenAIStreamProcessor
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
__all__ = [
|
|
25
|
-
# Adapter
|
|
26
|
-
"OpenAIAdapter",
|
|
27
|
-
# Models
|
|
28
|
-
"OpenAIMessage",
|
|
29
|
-
"OpenAIMessageContent",
|
|
30
|
-
"OpenAIResponseMessage",
|
|
31
|
-
"OpenAIChoice",
|
|
32
|
-
"OpenAIChatCompletionResponse",
|
|
33
|
-
"OpenAIStreamingChatCompletionResponse",
|
|
34
|
-
"OpenAIToolCall",
|
|
35
|
-
"OpenAIUsage",
|
|
36
|
-
"format_openai_tool_call",
|
|
37
|
-
"generate_openai_response_id",
|
|
38
|
-
"generate_openai_system_fingerprint",
|
|
39
|
-
# Streaming
|
|
40
|
-
"OpenAISSEFormatter",
|
|
41
|
-
"OpenAIStreamProcessor",
|
|
42
|
-
]
|