entelligence-cli 0.1.259__tar.gz → 0.1.260__tar.gz
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.
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/PKG-INFO +1 -1
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/copilot.py +10 -8
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/commands/insights.py +4 -2
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/commands/router.py +139 -60
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/router/__init__.py +3 -1
- entelligence_cli-0.1.260/entelligence_cli/router/copilot_launcher.py +80 -0
- entelligence_cli-0.1.260/entelligence_cli/router/copilot_settings.py +96 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/router/state.py +6 -1
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/upload/discovery.py +13 -1
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli.egg-info/PKG-INFO +1 -1
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli.egg-info/SOURCES.txt +4 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli.egg-info/entry_points.txt +1 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/pyproject.toml +2 -1
- entelligence_cli-0.1.260/tests/test_copilot_launcher.py +166 -0
- entelligence_cli-0.1.260/tests/test_copilot_parser_tokens.py +61 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_insights_copilot_prompts.py +3 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_insights_schedule_arm.py +14 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_router_commands.py +47 -3
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_upload_copilot.py +9 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/README.md +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/__init__.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/__init__.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/__init__.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/__init__.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/__init__.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_paths.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_segmentation_prompts/system.j2 +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_segmentation_prompts/user.j2 +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/__init__.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/_base.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/_jsonl_utils.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/entireio/__init__.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/entireio/git_reader.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/entireio/models.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/entireio/parser.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/entireio/source.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/factory.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/__init__.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/__init__.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/base.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/claude_code.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/codex.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/cursor_agent_transcript.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/cursor_store.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/kiro.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/opencode.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/source.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/behavior_signals.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/edit_lines.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/file_paths.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/metrics.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/segment_orchestrator.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/segment_pure.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/session_pure.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/skill_names.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/spans.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/pricing.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/vocabulary/__init__.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/vocabulary/categories.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/vocabulary/edges.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/_vendor/memory_core/vocabulary/nodes.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/agent_insights_proxy.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/agent_insights_segment.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/api_client.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/ascii-art.txt +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/browser_login.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/cli.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/commands/__init__.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/commands/auth.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/commands/budget.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/commands/config.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/commands/cursor_doctor.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/commands/incident.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/commands/mcp.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/commands/reset.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/commands/review.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/commands/security.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/commands/skills.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/commands/update.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/config.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/cursor_path_a_usage.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/diagnostics.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/exceptions.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/facts_envelope.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/git_operations.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/hooks/__init__.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/hooks/capacity_emit.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/hooks/session_brief.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/hooks/standup_emit.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/insights_log.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/mcp_inventory.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/platform_env.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/router/bedrock.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/router/catalog.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/router/claude_settings.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/router/codex_auth.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/router/codex_settings.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/router/compress.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/router/daemon.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/router/engine.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/router/gateway.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/router/gemini_translate.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/router/openai_translate.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/router/proxy.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/scheduling.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/session_inventory.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/textual_ui.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/ui/__init__.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/ui/interactive.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/ui/keys.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/ui/loaders.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/ui/output.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/ui/styles.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/update_checker.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/upload/__init__.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/upload/conductor.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/upload/config.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/upload/cursor_usage.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/upload/manifest.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/upload/models.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/upload/pii.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/upload/runner.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/upload/secrets.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/upload/stores.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli/wrapped_game.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli.egg-info/dependency_links.txt +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli.egg-info/requires.txt +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/entelligence_cli.egg-info/top_level.txt +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/setup.cfg +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_agent_insights_proxy.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_agent_insights_proxy_api_client.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_agent_insights_segment.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_attach_fix_smoke.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_attach_ticket_smoke.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_budget_smoke.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_capacity_emit.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_codex_auth.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_codex_settings.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_conductor.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_cursor_composer_mtime_stamp.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_cursor_doctor.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_cursor_path_a_usage.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_cursor_path_regex_and_heartbeat.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_cursor_self_heal_loop.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_cursor_usage.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_cursor_usage_archive.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_cursor_usage_heal.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_cursor_usage_recapture.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_cursor_usage_state.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_detached_background_work.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_diagnostics.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_discovery_head_unicode.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_discovery_opencode.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_eligibility_state.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_endpoint_scheme_enforcement.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_entropy_secret_detection.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_error_body_decode.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_facts_envelope.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_gemini_key_header.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_git_operations_copilot.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_heartbeat_api_client.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_identity_cache_refresh.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_incident_refs.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_incident_smoke.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_insights_cadence_heartbeat.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_insights_checkpoint_resume.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_insights_cursor_composer_home.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_insights_index_failure.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_insights_kiro_prompts.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_insights_log.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_insights_me_smoke.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_insights_path_a_default.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_insights_produced_prs.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_insights_redrain.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_insights_repo_attribution.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_insights_schedule.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_insights_structured_payload.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_legacy_encoding_recovery.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_login_token_stdin.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_machine_fingerprint.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_mcp_install.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_mcp_inventory.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_multipart_backoff.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_pii.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_presigned_skip_index.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_processing_checkpoint_api_client.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_release_directive.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_reset_command.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_review_redaction.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_rosetta_self_heal.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_router_dead_proxy_guard.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_router_stats.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_scheduling_cron_env.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_schtasks_integration.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_secrets_redaction_boundary.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_security_commands.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_segment_chunking.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_segment_session_timeout.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_segmentation_window_scope.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_session_brief.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_session_inventory.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_sessions_status_chunking.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_sessions_status_safe_default.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_skills_command.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_sync_partial_schema.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_sync_pushes_built_sessions.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_sync_runs_full_pipeline.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_update_command.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_upload_cursor_store.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_upload_home_backfill.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_upload_kiro.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_upload_repo_filter.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_upload_repo_roots.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_windows_compat.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_wrap_retry.py +0 -0
- {entelligence_cli-0.1.259 → entelligence_cli-0.1.260}/tests/test_wsl_support.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: entelligence-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.260
|
|
4
4
|
Summary: AI-powered code review assistant for your terminal - Get instant, intelligent feedback on your code changes
|
|
5
5
|
Author-email: EntelligenceAI <info@entelligence.ai>
|
|
6
6
|
Project-URL: Homepage, https://entelligence.ai
|
|
@@ -46,9 +46,10 @@ the root span carries the billed session totals as ``session.token_count.*``,
|
|
|
46
46
|
which ``session_pure.aggregate_session_spans`` prefers over the turn sums
|
|
47
47
|
(the same override Cursor's billed-usage path uses). A session that has not
|
|
48
48
|
shut down yet is priced from completion tokens only until its next re-index.
|
|
49
|
-
``inputTokens`` is
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
``inputTokens`` is the TOTAL input count, inclusive of cache reads and writes.
|
|
50
|
+
This is unlike Anthropic's ``input_tokens`` field despite the similar name:
|
|
51
|
+
fresh input = max(input - cache_read - cache_write, 0). The prompt total must
|
|
52
|
+
therefore use ``inputTokens`` directly or cached input is counted twice.
|
|
52
53
|
|
|
53
54
|
# Turns, tools, sub-agents
|
|
54
55
|
|
|
@@ -774,9 +775,9 @@ def _shutdown_totals(metrics: dict | None) -> dict | None:
|
|
|
774
775
|
Returns ``{prompt, completion, cache_read, cache_write, requests,
|
|
775
776
|
per_model}`` or None when there are no metrics or every count is zero
|
|
776
777
|
(a zero aggregate must not override real per-turn completion tokens).
|
|
777
|
-
``inputTokens`` is the
|
|
778
|
-
writes
|
|
779
|
-
|
|
778
|
+
Copilot's ``inputTokens`` is already the total input count, including cache
|
|
779
|
+
reads and writes. ``input`` in the normalized per-model detail remains the
|
|
780
|
+
fresh component expected by downstream pricing code.
|
|
780
781
|
"""
|
|
781
782
|
if not metrics:
|
|
782
783
|
return None
|
|
@@ -789,10 +790,11 @@ def _shutdown_totals(metrics: dict | None) -> dict | None:
|
|
|
789
790
|
usage = usage if isinstance(usage, dict) else {}
|
|
790
791
|
req = entry.get("requests")
|
|
791
792
|
req = req if isinstance(req, dict) else {}
|
|
792
|
-
|
|
793
|
+
total_input = _as_int(usage.get("inputTokens"))
|
|
793
794
|
out = _as_int(usage.get("outputTokens"))
|
|
794
795
|
read = _as_int(usage.get("cacheReadTokens"))
|
|
795
796
|
write = _as_int(usage.get("cacheWriteTokens"))
|
|
797
|
+
fresh = max(total_input - read - write, 0)
|
|
796
798
|
count = _as_int(req.get("count"))
|
|
797
799
|
per_model[model] = {
|
|
798
800
|
"input": fresh,
|
|
@@ -801,7 +803,7 @@ def _shutdown_totals(metrics: dict | None) -> dict | None:
|
|
|
801
803
|
"cache_write": write,
|
|
802
804
|
"requests": count,
|
|
803
805
|
}
|
|
804
|
-
prompt +=
|
|
806
|
+
prompt += total_input
|
|
805
807
|
completion += out
|
|
806
808
|
cache_read += read
|
|
807
809
|
cache_write += write
|
|
@@ -3487,6 +3487,7 @@ def _arm_sync_schedule(
|
|
|
3487
3487
|
"ENTELLIGENCE_OPENCODE_HOMES",
|
|
3488
3488
|
"ENTELLIGENCE_KIRO_HOMES",
|
|
3489
3489
|
"ENTELLIGENCE_COPILOT_HOMES",
|
|
3490
|
+
"COPILOT_HOME",
|
|
3490
3491
|
"ENTELLIGENCE_SEGMENT_CONCURRENCY",
|
|
3491
3492
|
"ENTELLIGENCE_SEGMENT_SESSION_TIMEOUT",
|
|
3492
3493
|
"ENTELLIGENCE_SEGMENT_MAX_SESSIONS",
|
|
@@ -4165,13 +4166,14 @@ def _kiro_homes() -> list[str]:
|
|
|
4165
4166
|
|
|
4166
4167
|
def _copilot_homes() -> list[str]:
|
|
4167
4168
|
"""Copilot CLI homes memory_core can read (``ENTELLIGENCE_COPILOT_HOMES``
|
|
4168
|
-
override, else ``~/.copilot``).
|
|
4169
|
+
override, else Copilot's ``COPILOT_HOME``, else ``~/.copilot``).
|
|
4169
4170
|
|
|
4170
4171
|
Unlike OpenCode / Cursor / Kiro there is no materialized cache: Copilot writes a
|
|
4171
4172
|
per-session JSONL itself (``session-state/<session-id>/events.jsonl``) and
|
|
4172
4173
|
memory_core's LocalSource parses it in place, so this points at the raw home.
|
|
4173
4174
|
"""
|
|
4174
|
-
|
|
4175
|
+
default = os.environ.get("COPILOT_HOME", "").strip() or "~/.copilot"
|
|
4176
|
+
return _homes_from_env("ENTELLIGENCE_COPILOT_HOMES", default)
|
|
4175
4177
|
|
|
4176
4178
|
|
|
4177
4179
|
def _strip_prompt_tags(text: str) -> str:
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
"""`entelligence router` — point
|
|
1
|
+
"""`entelligence router` — point supported coding agents at the hosted gateway.
|
|
2
2
|
|
|
3
3
|
Configures Claude Code (``~/.claude/settings.json`` or ``./.claude/settings.json``)
|
|
4
|
-
and installed Codex (``~/.codex/config.toml``)
|
|
5
|
-
|
|
6
|
-
the org's configured mode
|
|
4
|
+
and installed Codex (``~/.codex/config.toml``), and enables the environment-safe
|
|
5
|
+
``entelligence-copilot`` launcher for GitHub Copilot CLI. All routing and provider
|
|
6
|
+
relaying happens server-side. Billing follows the org's configured mode
|
|
7
|
+
(proxy / byok / byoc).
|
|
7
8
|
|
|
8
9
|
\b
|
|
9
10
|
Flow:
|
|
10
|
-
entelligence router on # wire
|
|
11
|
-
... use
|
|
11
|
+
entelligence router on # wire every installed supported agent
|
|
12
|
+
... use a routed coding agent ...
|
|
12
13
|
entelligence router stats # what your last session cost + savings
|
|
13
|
-
entelligence router off # restore
|
|
14
|
+
entelligence router off # restore all agents to direct provider access
|
|
14
15
|
"""
|
|
15
16
|
|
|
16
17
|
import json
|
|
@@ -30,11 +31,11 @@ from entelligence_cli.router.state import load_config, save_config
|
|
|
30
31
|
|
|
31
32
|
@click.group()
|
|
32
33
|
def router():
|
|
33
|
-
"""Route
|
|
34
|
+
"""Route supported coding agents through the Entelligence hosted gateway.
|
|
34
35
|
|
|
35
36
|
\b
|
|
36
37
|
QUICK START
|
|
37
|
-
entelligence router on #
|
|
38
|
+
entelligence router on # wire installed Claude Code, Codex, and Copilot
|
|
38
39
|
entelligence router tier # show / set the tier (eco|balanced|quality)
|
|
39
40
|
entelligence router mode # show / switch billing mode (proxy|byok, admin)
|
|
40
41
|
entelligence router status # check state
|
|
@@ -44,11 +45,13 @@ def router():
|
|
|
44
45
|
|
|
45
46
|
\b
|
|
46
47
|
HOW IT WORKS
|
|
47
|
-
`router on` edits Claude Code's settings.json and
|
|
48
|
-
|
|
48
|
+
`router on` edits Claude Code's settings.json and Codex's config.toml, and
|
|
49
|
+
enables `entelligence-copilot` when GitHub Copilot CLI is installed. The
|
|
50
|
+
launcher supplies Copilot's environment-only provider settings without
|
|
51
|
+
persisting your token. The gateway routes each turn to the cheapest capable
|
|
49
52
|
model, tracks usage, and bills per your org's plan (proxy credits, BYOK
|
|
50
|
-
gainshare, or BYOC). Pick
|
|
51
|
-
|
|
53
|
+
gainshare, or BYOC). Pick agents with `--agent`, and the org-wide tier with
|
|
54
|
+
`--tier` (or `router tier`); omit `--tier` to leave it unchanged.
|
|
52
55
|
"""
|
|
53
56
|
|
|
54
57
|
|
|
@@ -521,7 +524,7 @@ _TIER_FLOOR = {"eco": "cheap", "balanced": "mid", "quality": "frontier"}
|
|
|
521
524
|
# approximation is safe.
|
|
522
525
|
_TIER_TO_AVAIL = {"eco": "eco", "balanced": "balanced", "quality": "balanced"}
|
|
523
526
|
|
|
524
|
-
_AGENT_CHOICES = ("claude-code", "codex", "all")
|
|
527
|
+
_AGENT_CHOICES = ("claude-code", "codex", "copilot", "all")
|
|
525
528
|
|
|
526
529
|
# ── Billing mode + BYOK ──────────────────────────────────────────────────────
|
|
527
530
|
# Org billing mode. "byoc" is intentionally not switchable from the CLI — it
|
|
@@ -577,16 +580,22 @@ def _resolve_agents(
|
|
|
577
580
|
wire_claude: bool,
|
|
578
581
|
wire_codex: bool,
|
|
579
582
|
codex_available: bool,
|
|
580
|
-
|
|
583
|
+
copilot_available: bool,
|
|
584
|
+
) -> tuple[bool, bool, bool, bool, bool, bool]:
|
|
581
585
|
"""Resolve which coding agents ``router on`` should wire.
|
|
582
586
|
|
|
583
|
-
Merges the preferred ``--agent`` selector (repeatable;
|
|
584
|
-
with the deprecated
|
|
587
|
+
Merges the preferred ``--agent`` selector (repeatable;
|
|
588
|
+
claude-code/codex/copilot/all) with the deprecated
|
|
589
|
+
``--claude-code``/``--codex`` booleans.
|
|
585
590
|
|
|
586
|
-
Returns ``(do_claude, do_codex, defaulted, codex_required
|
|
587
|
-
|
|
591
|
+
Returns ``(do_claude, do_codex, do_copilot, defaulted, codex_required,
|
|
592
|
+
copilot_required)``:
|
|
593
|
+
defaulted: caller named no agent → wire Claude Code plus every installed
|
|
594
|
+
supported agent.
|
|
588
595
|
codex_required: caller asked for Codex by name (not via "all"), so a
|
|
589
596
|
missing ``codex`` binary is a hard error, not a silent skip.
|
|
597
|
+
copilot_required: caller asked for Copilot by name (not via "all"), so
|
|
598
|
+
a missing ``copilot`` binary is a hard error, not a silent skip.
|
|
590
599
|
"""
|
|
591
600
|
selected = set(agent_opt or ())
|
|
592
601
|
if wire_claude:
|
|
@@ -594,9 +603,24 @@ def _resolve_agents(
|
|
|
594
603
|
if wire_codex:
|
|
595
604
|
selected.add("codex")
|
|
596
605
|
codex_required = "codex" in selected
|
|
606
|
+
copilot_required = "copilot" in selected
|
|
597
607
|
if not selected or "all" in selected:
|
|
598
|
-
return
|
|
599
|
-
|
|
608
|
+
return (
|
|
609
|
+
True,
|
|
610
|
+
codex_available,
|
|
611
|
+
copilot_available,
|
|
612
|
+
not selected,
|
|
613
|
+
codex_required,
|
|
614
|
+
copilot_required,
|
|
615
|
+
)
|
|
616
|
+
return (
|
|
617
|
+
"claude-code" in selected,
|
|
618
|
+
"codex" in selected,
|
|
619
|
+
"copilot" in selected,
|
|
620
|
+
False,
|
|
621
|
+
codex_required,
|
|
622
|
+
copilot_required,
|
|
623
|
+
)
|
|
600
624
|
|
|
601
625
|
|
|
602
626
|
def _is_interactive() -> bool:
|
|
@@ -613,7 +637,7 @@ def _is_interactive() -> bool:
|
|
|
613
637
|
type=click.Choice(["user", "project"]),
|
|
614
638
|
default="user",
|
|
615
639
|
show_default=True,
|
|
616
|
-
help="Wire Claude Code settings at user (~/.claude, global) or project (./.claude, this repo only). Codex
|
|
640
|
+
help="Wire Claude Code settings at user (~/.claude, global) or project (./.claude, this repo only). Codex and Copilot are always user-global.",
|
|
617
641
|
)
|
|
618
642
|
@click.option(
|
|
619
643
|
"--tier",
|
|
@@ -629,8 +653,8 @@ def _is_interactive() -> bool:
|
|
|
629
653
|
"agent",
|
|
630
654
|
type=click.Choice(_AGENT_CHOICES),
|
|
631
655
|
multiple=True,
|
|
632
|
-
help="Which coding agent(s) to wire: claude-code, codex, or all.
|
|
633
|
-
"Omit to wire Claude Code plus
|
|
656
|
+
help="Which coding agent(s) to wire: claude-code, codex, copilot, or all. "
|
|
657
|
+
"Repeatable. Omit to wire Claude Code plus every installed supported agent.",
|
|
634
658
|
)
|
|
635
659
|
@click.option(
|
|
636
660
|
"-y",
|
|
@@ -672,25 +696,27 @@ def on(
|
|
|
672
696
|
wire_codex: bool,
|
|
673
697
|
codex_wire_api: str,
|
|
674
698
|
):
|
|
675
|
-
"""Enable routing for Claude Code and
|
|
699
|
+
"""Enable routing for Claude Code, Codex, and GitHub Copilot CLI.
|
|
676
700
|
|
|
677
701
|
Requires ``entelligence login`` first. All routing happens server-side.
|
|
678
702
|
Billing follows the org's configured mode (proxy credits, BYOK gainshare,
|
|
679
703
|
or BYOC).
|
|
680
704
|
|
|
681
|
-
Wires Claude Code plus Codex
|
|
682
|
-
``--agent``.
|
|
705
|
+
Wires Claude Code plus installed Codex and Copilot by default; narrow with
|
|
706
|
+
``--agent``. Copilot launches through ``entelligence-copilot`` because its
|
|
707
|
+
provider contract is environment-only. Omitting ``--tier`` leaves the org's tier as-is — pick a tier
|
|
683
708
|
only when you want to change it (``--tier`` is admin-only). The three tiers:
|
|
684
709
|
**eco** (cheap floor, max savings), **balanced** (Sonnet floor, default),
|
|
685
710
|
**quality** (frontier floor).
|
|
686
711
|
|
|
687
712
|
\b
|
|
688
713
|
EXAMPLES
|
|
689
|
-
entelligence router on # wire
|
|
690
|
-
entelligence router on --tier eco # wire
|
|
714
|
+
entelligence router on # wire installed agents, keep the tier
|
|
715
|
+
entelligence router on --tier eco # wire installed agents + set Eco
|
|
691
716
|
entelligence router on --agent claude-code # only Claude Code
|
|
692
717
|
entelligence router on --agent codex # only Codex
|
|
693
|
-
entelligence router on --
|
|
718
|
+
entelligence router on --agent copilot # only GitHub Copilot CLI
|
|
719
|
+
entelligence router on --scope project # Claude project scope; others user-global
|
|
694
720
|
"""
|
|
695
721
|
from entelligence_cli.config import ConfigManager, get_base_url
|
|
696
722
|
|
|
@@ -786,20 +812,31 @@ def on(
|
|
|
786
812
|
|
|
787
813
|
# Resolve which coding agents to wire FIRST — the admin-only tier sync below
|
|
788
814
|
# runs only when the user explicitly requested a tier. `--agent` (plus the
|
|
789
|
-
# deprecated booleans) narrows the set; omitting them wires Claude Code
|
|
790
|
-
#
|
|
791
|
-
#
|
|
792
|
-
|
|
793
|
-
from entelligence_cli.router import codex_settings
|
|
815
|
+
# deprecated booleans) narrows the set; omitting them wires Claude Code and
|
|
816
|
+
# installed supported agents. `agents_defaulted` tailors skip messages;
|
|
817
|
+
# an explicitly named missing binary is a hard error.
|
|
818
|
+
from entelligence_cli.router import codex_settings, copilot_settings
|
|
794
819
|
|
|
795
820
|
if wire_claude or wire_codex:
|
|
796
821
|
click.echo(
|
|
797
|
-
"⚠ --claude-code/--codex are deprecated; use `--agent
|
|
822
|
+
"⚠ --claude-code/--codex are deprecated; use the matching `--agent` value.",
|
|
798
823
|
err=True,
|
|
799
824
|
)
|
|
800
825
|
codex_available = codex_settings.codex_binary_available()
|
|
801
|
-
|
|
802
|
-
|
|
826
|
+
copilot_available = copilot_settings.copilot_binary_available()
|
|
827
|
+
(
|
|
828
|
+
do_claude,
|
|
829
|
+
do_codex,
|
|
830
|
+
do_copilot,
|
|
831
|
+
agents_defaulted,
|
|
832
|
+
codex_required,
|
|
833
|
+
copilot_required,
|
|
834
|
+
) = _resolve_agents(
|
|
835
|
+
agent,
|
|
836
|
+
wire_claude,
|
|
837
|
+
wire_codex,
|
|
838
|
+
codex_available,
|
|
839
|
+
copilot_available,
|
|
803
840
|
)
|
|
804
841
|
|
|
805
842
|
if codex_required and not codex_available:
|
|
@@ -812,7 +849,15 @@ def on(
|
|
|
812
849
|
)
|
|
813
850
|
sys.exit(1)
|
|
814
851
|
|
|
815
|
-
|
|
852
|
+
if copilot_required and not copilot_available:
|
|
853
|
+
click.echo(
|
|
854
|
+
"✗ Copilot requested but `copilot` isn't on PATH. Install GitHub Copilot "
|
|
855
|
+
"CLI first, or drop copilot from --agent.",
|
|
856
|
+
err=True,
|
|
857
|
+
)
|
|
858
|
+
sys.exit(1)
|
|
859
|
+
|
|
860
|
+
# Validate both persistent target files and fully render the Codex mutation before
|
|
816
861
|
# changing either tool. This catches malformed TOML/JSON, provider conflicts,
|
|
817
862
|
# a missing credential helper, and unsupported legacy wire modes up front.
|
|
818
863
|
if do_claude:
|
|
@@ -830,14 +875,14 @@ def on(
|
|
|
830
875
|
click.echo(f"✗ Couldn't wire Codex config: {exc}", err=True)
|
|
831
876
|
sys.exit(1)
|
|
832
877
|
|
|
833
|
-
# Enabling the router
|
|
834
|
-
# backend, so
|
|
878
|
+
# Enabling the router points the selected coding agents at the hosted
|
|
879
|
+
# Entelligence backend, so every prompt and code snippet they send transits
|
|
835
880
|
# Entelligence's servers. That is a material data-flow change, so disclose it plainly
|
|
836
881
|
# and get consent BEFORE changing any remote tier or local settings — a "No" must
|
|
837
882
|
# abort before the tier sync below. In an interactive terminal we prompt (default No);
|
|
838
883
|
# `--yes` or a non-interactive stdin (CI) proceeds after the disclosure.
|
|
839
884
|
click.echo(
|
|
840
|
-
"\n⚠ Enabling the router sends ALL
|
|
885
|
+
"\n⚠ Enabling the router sends ALL selected coding-agent prompts and code through "
|
|
841
886
|
"Entelligence's backend:\n"
|
|
842
887
|
f" {base}\n"
|
|
843
888
|
" Requests are routed and billed server-side. Turn this off any time with "
|
|
@@ -889,8 +934,8 @@ def on(
|
|
|
889
934
|
except (OSError, ValueError) as exc:
|
|
890
935
|
# Codex was preflighted before Claude was changed, but a concurrent
|
|
891
936
|
# edit or disk failure can still happen at write time. Roll back a
|
|
892
|
-
# newly-created Claude wire so the default
|
|
893
|
-
# not leave only
|
|
937
|
+
# newly-created Claude wire so the default multi-agent operation
|
|
938
|
+
# does not leave only part of the persistent configuration enabled.
|
|
894
939
|
if do_claude and not claude_was_wired:
|
|
895
940
|
with suppress(Exception):
|
|
896
941
|
claude_settings.unwire(scope)
|
|
@@ -898,8 +943,13 @@ def on(
|
|
|
898
943
|
sys.exit(1)
|
|
899
944
|
wired_tools.append("codex")
|
|
900
945
|
|
|
946
|
+
if do_copilot:
|
|
947
|
+
wired_tools.append("copilot")
|
|
948
|
+
|
|
901
949
|
cfg = load_config()
|
|
902
950
|
cfg["enabled"] = True
|
|
951
|
+
if do_copilot:
|
|
952
|
+
cfg["copilot_enabled"] = True
|
|
903
953
|
# Only record a tier locally when the user actually set one; otherwise leave
|
|
904
954
|
# the org's previously-stored tier as-is.
|
|
905
955
|
if requested_tier is not None:
|
|
@@ -917,12 +967,12 @@ def on(
|
|
|
917
967
|
)
|
|
918
968
|
|
|
919
969
|
if not wired_tools:
|
|
920
|
-
#
|
|
970
|
+
# No agent got wired — happens when the user passes neither flag
|
|
921
971
|
# AND codex isn't installed AND we (defensively) also didn't wire Claude
|
|
922
972
|
# Code. Should be unreachable given the default logic above, but fail
|
|
923
973
|
# loud rather than silently claim success.
|
|
924
974
|
click.echo(
|
|
925
|
-
"✗ No agent was wired. Pass --agent claude-code
|
|
975
|
+
"✗ No agent was wired. Pass --agent claude-code, codex, or copilot.",
|
|
926
976
|
err=True,
|
|
927
977
|
)
|
|
928
978
|
sys.exit(1)
|
|
@@ -940,6 +990,14 @@ def on(
|
|
|
940
990
|
click.echo(" Start Codex normally: `codex` (stored Entelligence login is reused)")
|
|
941
991
|
elif agents_defaulted:
|
|
942
992
|
click.echo(" Codex: skipped because the `codex` binary is not installed")
|
|
993
|
+
if "copilot" in wired_tools:
|
|
994
|
+
click.echo(
|
|
995
|
+
f"✓ GitHub Copilot CLI now routes through the Entelligence gateway [{tier_label}]"
|
|
996
|
+
)
|
|
997
|
+
click.echo(f" {base}/v1/messages")
|
|
998
|
+
click.echo(" Start it with: `entelligence-copilot`")
|
|
999
|
+
elif agents_defaulted:
|
|
1000
|
+
click.echo(" Copilot: skipped because the `copilot` binary is not installed")
|
|
943
1001
|
if mode:
|
|
944
1002
|
click.echo(f" Billing mode: {mode}")
|
|
945
1003
|
# NOTE: intentionally not surfacing the ladder models (glm-*, kimi-*, etc.)
|
|
@@ -952,6 +1010,8 @@ def on(
|
|
|
952
1010
|
click.echo(" Restart any running Claude Code session to pick this up.")
|
|
953
1011
|
if "codex" in wired_tools:
|
|
954
1012
|
click.echo(" Restart any running Codex session to pick this up.")
|
|
1013
|
+
if "copilot" in wired_tools:
|
|
1014
|
+
click.echo(" Start a new `entelligence-copilot` session to pick this up.")
|
|
955
1015
|
|
|
956
1016
|
|
|
957
1017
|
@router.command()
|
|
@@ -967,7 +1027,7 @@ def on(
|
|
|
967
1027
|
"agent",
|
|
968
1028
|
type=click.Choice(_AGENT_CHOICES),
|
|
969
1029
|
multiple=True,
|
|
970
|
-
help="Which coding agent(s) to unwire: claude-code, codex, or all. Repeatable. "
|
|
1030
|
+
help="Which coding agent(s) to unwire: claude-code, codex, copilot, or all. Repeatable. "
|
|
971
1031
|
"Omit to unwire every tool currently wired.",
|
|
972
1032
|
)
|
|
973
1033
|
@click.option(
|
|
@@ -985,11 +1045,11 @@ def on(
|
|
|
985
1045
|
help="Deprecated: use --agent codex.",
|
|
986
1046
|
)
|
|
987
1047
|
def off(scope: str, agent: tuple[str, ...], unwire_claude: bool, unwire_codex_flag: bool):
|
|
988
|
-
"""Disable routing
|
|
1048
|
+
"""Disable routing for Claude Code, Codex, and/or GitHub Copilot CLI.
|
|
989
1049
|
|
|
990
1050
|
Default (no selection): unwires every tool that's currently wired to the
|
|
991
|
-
router at the given Claude scope; Codex
|
|
992
|
-
``--agent claude-code|codex|all``.
|
|
1051
|
+
router at the given Claude scope; Codex and Copilot are user-global. Narrow
|
|
1052
|
+
with ``--agent claude-code|codex|copilot|all``.
|
|
993
1053
|
"""
|
|
994
1054
|
from entelligence_cli.router import codex_settings
|
|
995
1055
|
|
|
@@ -997,7 +1057,7 @@ def off(scope: str, agent: tuple[str, ...], unwire_claude: bool, unwire_codex_fl
|
|
|
997
1057
|
# explicit --agent (or a deprecated boolean) narrows to that set.
|
|
998
1058
|
if unwire_claude or unwire_codex_flag:
|
|
999
1059
|
click.echo(
|
|
1000
|
-
"⚠ --claude-code/--codex are deprecated; use `--agent
|
|
1060
|
+
"⚠ --claude-code/--codex are deprecated; use the matching `--agent` value.",
|
|
1001
1061
|
err=True,
|
|
1002
1062
|
)
|
|
1003
1063
|
selected = set(agent or ())
|
|
@@ -1008,9 +1068,11 @@ def off(scope: str, agent: tuple[str, ...], unwire_claude: bool, unwire_codex_fl
|
|
|
1008
1068
|
if not selected or "all" in selected:
|
|
1009
1069
|
do_claude = True
|
|
1010
1070
|
do_codex = True
|
|
1071
|
+
do_copilot = True
|
|
1011
1072
|
else:
|
|
1012
1073
|
do_claude = "claude-code" in selected
|
|
1013
1074
|
do_codex = "codex" in selected
|
|
1075
|
+
do_copilot = "copilot" in selected
|
|
1014
1076
|
|
|
1015
1077
|
unwired_tools: list[str] = []
|
|
1016
1078
|
skipped_tools: list[str] = []
|
|
@@ -1033,6 +1095,12 @@ def off(scope: str, agent: tuple[str, ...], unwire_claude: bool, unwire_codex_fl
|
|
|
1033
1095
|
sys.exit(1)
|
|
1034
1096
|
(unwired_tools if changed else skipped_tools).append("codex")
|
|
1035
1097
|
|
|
1098
|
+
cfg = load_config()
|
|
1099
|
+
if do_copilot:
|
|
1100
|
+
changed = bool(cfg.get("copilot_enabled", False))
|
|
1101
|
+
cfg["copilot_enabled"] = False
|
|
1102
|
+
(unwired_tools if changed else skipped_tools).append("copilot")
|
|
1103
|
+
|
|
1036
1104
|
for label in unwired_tools:
|
|
1037
1105
|
click.echo(f"✓ {label} restored to direct provider access")
|
|
1038
1106
|
for label in skipped_tools:
|
|
@@ -1041,22 +1109,22 @@ def off(scope: str, agent: tuple[str, ...], unwire_claude: bool, unwire_codex_fl
|
|
|
1041
1109
|
# Only flip the enabled flag if we actually removed EVERY router-wired
|
|
1042
1110
|
# tool. If the user unwired only one and the other is still wired, the
|
|
1043
1111
|
# router is still enabled for their setup.
|
|
1044
|
-
cfg = load_config()
|
|
1045
1112
|
if (
|
|
1046
1113
|
not claude_settings.is_wired("user")
|
|
1047
1114
|
and not claude_settings.is_wired("project")
|
|
1048
1115
|
and not codex_settings.has_managed_config()
|
|
1116
|
+
and not cfg.get("copilot_enabled", False)
|
|
1049
1117
|
):
|
|
1050
1118
|
cfg["enabled"] = False
|
|
1051
1119
|
save_config(cfg)
|
|
1052
1120
|
|
|
1053
1121
|
if unwired_tools:
|
|
1054
|
-
click.echo(" Restart
|
|
1122
|
+
click.echo(" Restart the affected coding-agent session to pick this up.")
|
|
1055
1123
|
|
|
1056
1124
|
|
|
1057
1125
|
@router.command()
|
|
1058
1126
|
def status():
|
|
1059
|
-
"""Show
|
|
1127
|
+
"""Show agent wiring, the current tier, and the org's billing mode."""
|
|
1060
1128
|
from entelligence_cli.config import ConfigManager, get_base_url
|
|
1061
1129
|
|
|
1062
1130
|
cfg = load_config()
|
|
@@ -1070,7 +1138,7 @@ def status():
|
|
|
1070
1138
|
)
|
|
1071
1139
|
console.print(f" Claude Code ({scope}): {label}")
|
|
1072
1140
|
|
|
1073
|
-
from entelligence_cli.router import codex_settings
|
|
1141
|
+
from entelligence_cli.router import codex_settings, copilot_settings
|
|
1074
1142
|
|
|
1075
1143
|
codex_installed = codex_settings.codex_binary_available()
|
|
1076
1144
|
codex_status = codex_settings.inspect_wiring(expected_base=get_base_url())
|
|
@@ -1083,6 +1151,17 @@ def status():
|
|
|
1083
1151
|
# If codex isn't installed at all, silently skip — no reason to nag users
|
|
1084
1152
|
# who don't use it.
|
|
1085
1153
|
|
|
1154
|
+
copilot_installed = copilot_settings.copilot_binary_available()
|
|
1155
|
+
copilot_enabled = bool(cfg.get("copilot_enabled", False))
|
|
1156
|
+
if copilot_enabled and copilot_installed:
|
|
1157
|
+
console.print(" GitHub Copilot CLI: routed via `entelligence-copilot`")
|
|
1158
|
+
elif copilot_enabled:
|
|
1159
|
+
console.print(" GitHub Copilot CLI: enabled but `copilot` is not on PATH")
|
|
1160
|
+
elif copilot_installed:
|
|
1161
|
+
console.print(
|
|
1162
|
+
" GitHub Copilot CLI: not routed (use `entelligence-copilot` after enabling)"
|
|
1163
|
+
)
|
|
1164
|
+
|
|
1086
1165
|
shell_override = claude_settings.env_override_active()
|
|
1087
1166
|
if shell_override:
|
|
1088
1167
|
console.print(
|
|
@@ -1192,7 +1271,7 @@ def stats(
|
|
|
1192
1271
|
click.echo(f"No routed requests in the last {days} day(s).")
|
|
1193
1272
|
else:
|
|
1194
1273
|
click.echo(
|
|
1195
|
-
"No routed requests yet. Run `entelligence router on` and use
|
|
1274
|
+
"No routed requests yet. Run `entelligence router on` and use a routed coding agent."
|
|
1196
1275
|
)
|
|
1197
1276
|
return
|
|
1198
1277
|
|
|
@@ -1234,9 +1313,9 @@ def stats(
|
|
|
1234
1313
|
# rendering a $0 session band.
|
|
1235
1314
|
_render_hosted_stats(console, usage)
|
|
1236
1315
|
console.print(
|
|
1237
|
-
"\n [dim]No per-session breakdown for this traffic. Claude Code
|
|
1238
|
-
"\n
|
|
1239
|
-
"\n Codex turns aren't attributed.[/dim]"
|
|
1316
|
+
"\n [dim]No per-session breakdown for this traffic. Claude Code is attributed"
|
|
1317
|
+
"\n via the hook installed by `entelligence router on`, and Copilot via its"
|
|
1318
|
+
"\n session folder marker; Codex turns aren't attributed.[/dim]"
|
|
1240
1319
|
)
|
|
1241
1320
|
return
|
|
1242
1321
|
|
|
@@ -1497,7 +1576,7 @@ def mode_cmd(mode: str | None):
|
|
|
1497
1576
|
click.echo("✓ Billing mode set to proxy — BYOK credentials cleared.")
|
|
1498
1577
|
else:
|
|
1499
1578
|
click.echo(f"✓ Billing mode set to byok ({provider}).")
|
|
1500
|
-
click.echo(" Restart any running
|
|
1579
|
+
click.echo(" Restart any running routed coding-agent session to pick this up.")
|
|
1501
1580
|
|
|
1502
1581
|
|
|
1503
1582
|
@router.command("creds")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""
|
|
1
|
+
"""Model-routing support for Claude Code, Codex, and GitHub Copilot CLI.
|
|
2
2
|
|
|
3
3
|
The router is a small localhost HTTP proxy that speaks the Anthropic Messages
|
|
4
4
|
API. Coding agents are pointed at it via ``ANTHROPIC_BASE_URL``; the proxy
|
|
@@ -13,5 +13,7 @@ Modules:
|
|
|
13
13
|
engine Heuristic routing decisions (tiering + session pinning).
|
|
14
14
|
proxy The streaming HTTP proxy server.
|
|
15
15
|
claude_settings Managed edits to Claude Code's ``settings.json``.
|
|
16
|
+
copilot_settings Provider environment for the safe Copilot launcher.
|
|
17
|
+
copilot_launcher Token-safe GitHub Copilot CLI process launcher.
|
|
16
18
|
daemon Detached background process lifecycle (start/stop/health).
|
|
17
19
|
"""
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"""Launch GitHub Copilot CLI with Entelligence's routed provider environment."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import os
|
|
6
|
+
import subprocess
|
|
7
|
+
import sys
|
|
8
|
+
|
|
9
|
+
import click
|
|
10
|
+
|
|
11
|
+
from entelligence_cli.config import get_base_url
|
|
12
|
+
from entelligence_cli.router.codex_auth import get_valid_token
|
|
13
|
+
from entelligence_cli.router.copilot_settings import (
|
|
14
|
+
copilot_binary_path,
|
|
15
|
+
routed_environment,
|
|
16
|
+
)
|
|
17
|
+
from entelligence_cli.router.state import load_config
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
_IS_WINDOWS = os.name == "nt"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def main() -> int:
|
|
24
|
+
"""Replace this process with a routed GitHub Copilot CLI process.
|
|
25
|
+
|
|
26
|
+
Returns:
|
|
27
|
+
``1`` when routing is disabled, authentication or Copilot is missing,
|
|
28
|
+
or the executable cannot be started. A successful launch replaces the
|
|
29
|
+
process and therefore does not return.
|
|
30
|
+
"""
|
|
31
|
+
if not load_config().get("copilot_enabled", False):
|
|
32
|
+
click.echo(
|
|
33
|
+
"Copilot routing is off. Run `entelligence router on --agent copilot` first.",
|
|
34
|
+
err=True,
|
|
35
|
+
)
|
|
36
|
+
return 1
|
|
37
|
+
|
|
38
|
+
binary = copilot_binary_path()
|
|
39
|
+
if binary is None:
|
|
40
|
+
click.echo(
|
|
41
|
+
"GitHub Copilot CLI is not installed or `copilot` is not on PATH.",
|
|
42
|
+
err=True,
|
|
43
|
+
)
|
|
44
|
+
return 1
|
|
45
|
+
|
|
46
|
+
token = get_valid_token()
|
|
47
|
+
if token is None:
|
|
48
|
+
click.echo(
|
|
49
|
+
"Entelligence authentication is unavailable. Run `entelligence auth login`.",
|
|
50
|
+
err=True,
|
|
51
|
+
)
|
|
52
|
+
return 1
|
|
53
|
+
|
|
54
|
+
try:
|
|
55
|
+
child_env = routed_environment(get_base_url(), token)
|
|
56
|
+
except ValueError as exc:
|
|
57
|
+
click.echo(f"Could not configure GitHub Copilot CLI routing: {exc}", err=True)
|
|
58
|
+
return 1
|
|
59
|
+
|
|
60
|
+
argv = [
|
|
61
|
+
str(binary),
|
|
62
|
+
"--secret-env-vars=COPILOT_PROVIDER_API_KEY",
|
|
63
|
+
*sys.argv[1:],
|
|
64
|
+
]
|
|
65
|
+
try:
|
|
66
|
+
if _IS_WINDOWS:
|
|
67
|
+
# Windows cannot replace the launcher process with execve while
|
|
68
|
+
# preserving an interactive foreground terminal. Wait for Copilot
|
|
69
|
+
# instead and propagate its exit status to the calling shell.
|
|
70
|
+
return subprocess.run(argv, env=child_env, check=False).returncode
|
|
71
|
+
os.execve(binary, argv, child_env)
|
|
72
|
+
except OSError as exc:
|
|
73
|
+
click.echo(f"Could not start GitHub Copilot CLI: {exc}", err=True)
|
|
74
|
+
return 1
|
|
75
|
+
|
|
76
|
+
return 1
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
if __name__ == "__main__": # pragma: no cover - console-script path
|
|
80
|
+
raise SystemExit(main())
|