entelligence-cli 0.1.231__tar.gz → 0.1.232__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.231 → entelligence_cli-0.1.232}/PKG-INFO +1 -1
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/commands/auth.py +232 -51
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/commands/mcp.py +378 -33
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/commands/router.py +19 -9
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/hooks/capacity_emit.py +18 -1
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/hooks/session_brief.py +312 -32
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli.egg-info/PKG-INFO +1 -1
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/pyproject.toml +1 -1
- entelligence_cli-0.1.232/tests/test_identity_cache_refresh.py +616 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_mcp_install.py +614 -2
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_session_brief.py +387 -4
- entelligence_cli-0.1.231/tests/test_identity_cache_refresh.py +0 -280
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/README.md +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/__init__.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/__init__.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/__init__.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/__init__.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/__init__.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_paths.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_segmentation_prompts/system.j2 +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_segmentation_prompts/user.j2 +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/__init__.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/_base.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/_jsonl_utils.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/entireio/__init__.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/entireio/git_reader.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/entireio/models.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/entireio/parser.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/entireio/source.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/factory.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/__init__.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/__init__.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/base.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/claude_code.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/codex.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/copilot.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/cursor_agent_transcript.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/cursor_store.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/kiro.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/opencode.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/source.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/behavior_signals.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/file_paths.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/metrics.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/segment_orchestrator.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/segment_pure.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/session_pure.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/skill_names.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/spans.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/pricing.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/vocabulary/__init__.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/vocabulary/categories.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/vocabulary/edges.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/_vendor/memory_core/vocabulary/nodes.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/agent_insights_proxy.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/agent_insights_segment.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/api_client.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/ascii-art.txt +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/browser_login.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/cli.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/commands/__init__.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/commands/budget.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/commands/config.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/commands/cursor_doctor.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/commands/incident.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/commands/insights.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/commands/reset.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/commands/review.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/commands/security.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/commands/skills.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/commands/update.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/config.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/cursor_path_a_usage.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/diagnostics.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/exceptions.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/facts_envelope.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/git_operations.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/hooks/__init__.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/hooks/standup_emit.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/insights_log.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/platform_env.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/router/__init__.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/router/bedrock.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/router/catalog.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/router/claude_settings.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/router/codex_auth.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/router/codex_settings.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/router/compress.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/router/daemon.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/router/engine.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/router/gateway.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/router/gemini_translate.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/router/openai_translate.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/router/proxy.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/router/state.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/scheduling.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/textual_ui.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/ui/__init__.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/ui/interactive.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/ui/keys.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/ui/loaders.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/ui/output.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/ui/styles.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/update_checker.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/upload/__init__.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/upload/conductor.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/upload/config.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/upload/cursor_usage.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/upload/discovery.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/upload/manifest.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/upload/models.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/upload/pii.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/upload/runner.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/upload/secrets.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/upload/stores.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli/wrapped_game.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli.egg-info/SOURCES.txt +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli.egg-info/dependency_links.txt +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli.egg-info/entry_points.txt +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli.egg-info/requires.txt +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/entelligence_cli.egg-info/top_level.txt +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/setup.cfg +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_agent_insights_proxy.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_agent_insights_proxy_api_client.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_agent_insights_segment.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_attach_fix_smoke.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_attach_ticket_smoke.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_budget_smoke.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_capacity_emit.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_codex_auth.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_codex_settings.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_conductor.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_cursor_doctor.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_cursor_path_a_usage.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_cursor_path_regex_and_heartbeat.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_cursor_self_heal_loop.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_cursor_usage.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_cursor_usage_archive.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_cursor_usage_heal.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_cursor_usage_recapture.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_cursor_usage_state.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_detached_background_work.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_diagnostics.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_discovery_head_unicode.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_discovery_opencode.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_error_body_decode.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_facts_envelope.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_heartbeat_api_client.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_incident_refs.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_incident_smoke.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_insights_cadence_heartbeat.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_insights_checkpoint_resume.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_insights_cursor_composer_home.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_insights_index_failure.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_insights_kiro_prompts.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_insights_log.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_insights_me_smoke.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_insights_path_a_default.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_insights_produced_prs.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_insights_redrain.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_insights_repo_attribution.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_insights_schedule.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_insights_schedule_arm.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_insights_structured_payload.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_legacy_encoding_recovery.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_multipart_backoff.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_pii.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_presigned_skip_index.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_processing_checkpoint_api_client.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_reset_command.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_rosetta_self_heal.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_router_commands.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_router_stats.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_scheduling_cron_env.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_schtasks_integration.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_secrets_redaction_boundary.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_security_commands.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_segment_chunking.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_segment_session_timeout.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_sessions_status_chunking.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_sessions_status_safe_default.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_skills_command.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_sync_partial_schema.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_sync_pushes_built_sessions.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_sync_runs_full_pipeline.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_update_command.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_upload_cursor_store.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_upload_home_backfill.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_upload_kiro.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_upload_repo_filter.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_upload_repo_roots.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_windows_compat.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/tests/test_wrap_retry.py +0 -0
- {entelligence_cli-0.1.231 → entelligence_cli-0.1.232}/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.232
|
|
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
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"""Authentication commands for EntelligenceAI CLI."""
|
|
2
2
|
|
|
3
|
+
import json
|
|
3
4
|
import os
|
|
4
5
|
import webbrowser
|
|
5
6
|
from contextlib import suppress
|
|
@@ -649,6 +650,146 @@ def _install_claude_code_skill():
|
|
|
649
650
|
return _install_agent_skills()
|
|
650
651
|
|
|
651
652
|
|
|
653
|
+
def _upload_org_cleared() -> bool:
|
|
654
|
+
"""Whether upload.json would still answer "which org?" — read the hook's way.
|
|
655
|
+
|
|
656
|
+
Verified against the consumer's own semantics rather than the writer's:
|
|
657
|
+
``session_brief.org_uuid()`` reads ``(entelligence or {}).get("org_uuid")``
|
|
658
|
+
and treats an unparseable file as no answer, so that is exactly what counts
|
|
659
|
+
as cleared here. A missing or malformed file is therefore ``True`` — the hook
|
|
660
|
+
cannot read an org out of it either.
|
|
661
|
+
"""
|
|
662
|
+
try:
|
|
663
|
+
from ..upload import config as _upload_config
|
|
664
|
+
|
|
665
|
+
path = _upload_config.CONFIG_PATH
|
|
666
|
+
if not path.exists():
|
|
667
|
+
return True
|
|
668
|
+
data = json.loads(path.read_text(encoding="utf-8"))
|
|
669
|
+
identity = (data or {}).get("entelligence") or {}
|
|
670
|
+
if not isinstance(identity, dict):
|
|
671
|
+
return True
|
|
672
|
+
# String-only, matching ``session_brief._stored``, which requires
|
|
673
|
+
# ``isinstance(value, str)``. Coercing with ``str()`` would read
|
|
674
|
+
# ``{"org_uuid": ["old-org"]}`` as the org "['old-org']" and report the
|
|
675
|
+
# cache uncleared — costing a valid login its credential over a value the
|
|
676
|
+
# hook would never have accepted as an org in the first place.
|
|
677
|
+
org = identity.get("org_uuid")
|
|
678
|
+
return not (isinstance(org, str) and org.strip())
|
|
679
|
+
except Exception: # noqa: BLE001 — unreadable is unusable, which is cleared
|
|
680
|
+
return True
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
def _clear_upload_org_identity() -> bool:
|
|
684
|
+
"""Drop the cached upload identity, and report whether it is actually gone.
|
|
685
|
+
|
|
686
|
+
The return value is not decoration. ``upload.config.save_config`` catches
|
|
687
|
+
``OSError`` and returns, so the write can fail silently — and then config.json
|
|
688
|
+
clears fine, login reports success, and ``session_brief.org_uuid()`` falls
|
|
689
|
+
back to a upload.json that still names the previous org. Checked by re-reading
|
|
690
|
+
rather than inferred from "nothing raised".
|
|
691
|
+
|
|
692
|
+
The second half of failing closed. ``session_brief.org_uuid()`` reads
|
|
693
|
+
config.json first and this cache second, so clearing only config.json would
|
|
694
|
+
move the stale answer one file along rather than removing it. Best-effort by
|
|
695
|
+
necessity: the recovery path for a failed write cannot itself insist on a
|
|
696
|
+
successful write.
|
|
697
|
+
|
|
698
|
+
Validated with the model rather than through ``load_config()``, and this is
|
|
699
|
+
the whole reason the helper exists rather than a two-line inline block.
|
|
700
|
+
``load_config()`` swallows BOTH a syntax error and a schema error — it
|
|
701
|
+
catches ValueError, which is what pydantic raises — and hands back a *fresh*
|
|
702
|
+
UploadConfig. Saving that would delete the user's configured homes, skip
|
|
703
|
+
filters and secret mode as a side effect of clearing an identity. A
|
|
704
|
+
``json.loads()`` check is not enough to prevent it either: ``[]`` and
|
|
705
|
+
``"x"`` are valid JSON and still fail model validation.
|
|
706
|
+
|
|
707
|
+
Clearing an identity is not a licence to reset settings nobody asked about,
|
|
708
|
+
so invalid data leaves upload.json untouched.
|
|
709
|
+
"""
|
|
710
|
+
with suppress(Exception):
|
|
711
|
+
from ..upload import config as _upload_config
|
|
712
|
+
from ..upload.models import UploadConfig as _UploadConfig
|
|
713
|
+
|
|
714
|
+
path = _upload_config.CONFIG_PATH
|
|
715
|
+
if path.exists():
|
|
716
|
+
# Raises on syntax OR schema errors → suppressed → file left alone.
|
|
717
|
+
cfg = _UploadConfig.model_validate_json(path.read_text(encoding="utf-8"))
|
|
718
|
+
# None, not an empty EntelligenceIdentity: the field is
|
|
719
|
+
# `EntelligenceIdentity | None`, and an empty model round-trips as a
|
|
720
|
+
# present-but-blank identity object. "Absent" and "here, but every
|
|
721
|
+
# field is null" should not be two spellings of the same state.
|
|
722
|
+
cfg.entelligence = None
|
|
723
|
+
_upload_config.save_config(cfg)
|
|
724
|
+
return _upload_org_cleared()
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
def _org_state_cleared(config: ConfigManager) -> bool:
|
|
728
|
+
"""Try to drop the stored org, and report whether it is actually gone.
|
|
729
|
+
|
|
730
|
+
Verified by re-reading rather than inferred from the write not raising. The
|
|
731
|
+
caller is on the failure path of a write to this very file, so "the second
|
|
732
|
+
write did not raise" is the weakest possible evidence — and the claim being
|
|
733
|
+
made downstream ("local org state cleared") is a statement about an access
|
|
734
|
+
gate, which must not be asserted on weak evidence.
|
|
735
|
+
|
|
736
|
+
An unparseable config.json counts as cleared: ``session_brief.org_uuid()``
|
|
737
|
+
cannot parse it either and falls through to the upload cache, which the
|
|
738
|
+
caller has already emptied.
|
|
739
|
+
"""
|
|
740
|
+
with suppress(Exception):
|
|
741
|
+
config.set_org_uuid("")
|
|
742
|
+
try:
|
|
743
|
+
# String-only, matching ``session_brief._stored``. `get_org_uuid()` only
|
|
744
|
+
# strips when the value IS a str and then returns it truthy-or-None, so
|
|
745
|
+
# `{"org_uuid": ["old-org"]}` comes back as the list — not None — and this
|
|
746
|
+
# would report the org uncleared. The hook, which requires
|
|
747
|
+
# `isinstance(value, str)`, never read that as an org in the first place:
|
|
748
|
+
# its gate was already closed, and treating it as stuck costs the user
|
|
749
|
+
# the credential they just logged in with for no gain.
|
|
750
|
+
stored = config.get_org_uuid()
|
|
751
|
+
except Exception: # noqa: BLE001 — unreadable is unusable, which is cleared
|
|
752
|
+
return True
|
|
753
|
+
return not (isinstance(stored, str) and stored.strip())
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
def _drop_credential(config: ConfigManager) -> str:
|
|
757
|
+
"""Last-resort fail-closed: remove the credential. ``""`` if it is gone.
|
|
758
|
+
|
|
759
|
+
Reached only when the org could not be cleared. The brief's gate is
|
|
760
|
+
``has_credential() and org_allowed(org_uuid())``; with the org half stuck on
|
|
761
|
+
a stale value, the credential is the only half left to close.
|
|
762
|
+
|
|
763
|
+
The environment is checked BEFORE anything is written, and that ordering is
|
|
764
|
+
the whole point. ``session_brief.has_credential()`` returns True on an
|
|
765
|
+
exported ``ENTELLIGENCE_API_KEY`` without ever reading config.json, so on a
|
|
766
|
+
machine that has one, clearing the stored key cannot close the gate — it can
|
|
767
|
+
only destroy a credential the user still needs. Doing it anyway and then
|
|
768
|
+
reporting failure is the worst of both: the key is gone, the gate is open,
|
|
769
|
+
and the message blames file permissions that are fine.
|
|
770
|
+
|
|
771
|
+
Returns the reason it could not be dropped, for the caller to relay verbatim.
|
|
772
|
+
A wrong remediation is worse than none here, because the user acts on it.
|
|
773
|
+
"""
|
|
774
|
+
if (os.environ.get("ENTELLIGENCE_API_KEY") or "").strip():
|
|
775
|
+
return (
|
|
776
|
+
"An exported ENTELLIGENCE_API_KEY still resolves, so the gate cannot be "
|
|
777
|
+
"closed from here and the stored key was left alone. Unset that variable "
|
|
778
|
+
"and run `entelligence auth logout`."
|
|
779
|
+
)
|
|
780
|
+
with suppress(Exception):
|
|
781
|
+
config.clear_auth()
|
|
782
|
+
try:
|
|
783
|
+
if config.get_token() is None:
|
|
784
|
+
return ""
|
|
785
|
+
except Exception: # noqa: BLE001
|
|
786
|
+
pass
|
|
787
|
+
return (
|
|
788
|
+
f"Could not drop the stored credential either — fix write access to "
|
|
789
|
+
f"{config.config_file}, then run `entelligence auth logout`."
|
|
790
|
+
)
|
|
791
|
+
|
|
792
|
+
|
|
652
793
|
@click.group()
|
|
653
794
|
def auth():
|
|
654
795
|
"""Authentication commands."""
|
|
@@ -680,13 +821,61 @@ def _validate_and_store(config: ConfigManager, token: str) -> bool:
|
|
|
680
821
|
# no org and made every consumer either re-fetch getUserInfo/ or fall back
|
|
681
822
|
# to the upload identity cache — a cache that can lag an account switch.
|
|
682
823
|
# Written here, config.json becomes the one file that says who this machine
|
|
683
|
-
# deliberately authenticated as.
|
|
684
|
-
#
|
|
685
|
-
#
|
|
686
|
-
#
|
|
687
|
-
#
|
|
688
|
-
|
|
824
|
+
# deliberately authenticated as. Written unconditionally, including the
|
|
825
|
+
# empty case: skipping the write when the new account has no OrgUUID would
|
|
826
|
+
# leave the *previous* org sitting beside the new token, which is the
|
|
827
|
+
# cross-account leak this is here to close rather than a harmless no-op.
|
|
828
|
+
#
|
|
829
|
+
# A failure here is handled, not suppressed — the one exception to the
|
|
830
|
+
# best-effort treatment every other bookkeeping step in this function gets.
|
|
831
|
+
# config.json keeps the PREVIOUS org when this write fails, and
|
|
832
|
+
# session_brief.org_uuid() reads config.json first — so a failed persist
|
|
833
|
+
# leaves the brief's trial gate passing on the account that was just
|
|
834
|
+
# switched away from, and writing a coaching block for an org that is not
|
|
835
|
+
# in the trial. (Feature exposure only: the /me endpoint takes org and
|
|
836
|
+
# user from request.user, never from the orguuid header.) Fail closed
|
|
837
|
+
# instead: drop every local claim about which org this is, so the gate
|
|
838
|
+
# has nothing to pass on, and say so rather than continuing silently.
|
|
839
|
+
org_persisted = True
|
|
840
|
+
try:
|
|
689
841
|
config.set_org_uuid(user_info.get("OrgUUID") or "")
|
|
842
|
+
except Exception as e: # noqa: BLE001
|
|
843
|
+
org_persisted = False
|
|
844
|
+
click.echo(
|
|
845
|
+
f" ⚠ could not record the organization for this key ({e}).",
|
|
846
|
+
err=True,
|
|
847
|
+
)
|
|
848
|
+
# BOTH files, and both verified. org_uuid() reads config.json first
|
|
849
|
+
# and upload.json second, so either one still naming the previous org
|
|
850
|
+
# is enough to keep the gate open — and save_config swallows OSError,
|
|
851
|
+
# so "the call returned" says nothing about whether it landed.
|
|
852
|
+
upload_cleared = _clear_upload_org_identity()
|
|
853
|
+
if _org_state_cleared(config) and upload_cleared:
|
|
854
|
+
click.echo(
|
|
855
|
+
" Local org state cleared — org-gated features stay off until "
|
|
856
|
+
"you run `entelligence auth login` again.",
|
|
857
|
+
err=True,
|
|
858
|
+
)
|
|
859
|
+
else:
|
|
860
|
+
# The cleanup write failed too, so config.json still names the
|
|
861
|
+
# PREVIOUS org and org_uuid() prefers it. Reporting "cleared"
|
|
862
|
+
# here would be a false statement about an access gate. The gate
|
|
863
|
+
# is `has_credential() and org_allowed(org_uuid())`, so dropping
|
|
864
|
+
# the credential is the one lever left that closes it — and the
|
|
865
|
+
# key is re-obtainable, which the stale org's exposure is not.
|
|
866
|
+
drop_reason = _drop_credential(config)
|
|
867
|
+
click.echo(
|
|
868
|
+
f" Could not clear the previous organization from "
|
|
869
|
+
f"{config.config_file}, so it would still be read as current.",
|
|
870
|
+
err=True,
|
|
871
|
+
)
|
|
872
|
+
click.echo(
|
|
873
|
+
" Credential dropped as well, which closes the gate."
|
|
874
|
+
if not drop_reason
|
|
875
|
+
else f" {drop_reason}",
|
|
876
|
+
err=True,
|
|
877
|
+
)
|
|
878
|
+
return False
|
|
690
879
|
# Re-stamp the hooks with the key that was just stored, for the same
|
|
691
880
|
# reason the upload cache is refreshed below: the hook command embeds the
|
|
692
881
|
# API key, so an account switch would otherwise leave SessionStart
|
|
@@ -706,21 +895,26 @@ def _validate_and_store(config: ConfigManager, token: str) -> bool:
|
|
|
706
895
|
# transcript uploads to the PREVIOUS account's org (cross-tenant
|
|
707
896
|
# misattribution) until upload.json was hand-edited. Best-effort:
|
|
708
897
|
# never fail a login over cache bookkeeping.
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
898
|
+
#
|
|
899
|
+
# Skipped when the org did not persist: org_uuid() falls back to this
|
|
900
|
+
# cache, so re-stamping it here would hand the gate the very org
|
|
901
|
+
# config.json was just prevented from asserting.
|
|
902
|
+
if org_persisted:
|
|
903
|
+
with suppress(Exception):
|
|
904
|
+
from ..upload.config import load_config as _load_upload_cfg
|
|
905
|
+
from ..upload.config import save_config as _save_upload_cfg
|
|
906
|
+
from ..upload.models import EntelligenceIdentity as _Identity
|
|
907
|
+
|
|
908
|
+
_cfg = _load_upload_cfg()
|
|
909
|
+
_cfg.entelligence = _Identity(
|
|
910
|
+
user_uuid=user_info.get("UserUUID"),
|
|
911
|
+
org_uuid=user_info.get("OrgUUID"),
|
|
912
|
+
org_name=user_info.get("OrgName"),
|
|
913
|
+
email=user_info.get("Email"),
|
|
914
|
+
name=user_info.get("Name"),
|
|
915
|
+
github_username=user_info.get("GitHubUsername"),
|
|
916
|
+
)
|
|
917
|
+
_save_upload_cfg(_cfg)
|
|
724
918
|
click.echo("✓ Authentication successful!")
|
|
725
919
|
click.echo(f"✓ API key stored in {config.config_file}")
|
|
726
920
|
click.echo("\nYou can now run: entelligence review")
|
|
@@ -789,8 +983,14 @@ def login(token, no_browser, endpoint):
|
|
|
789
983
|
app_url = get_app_url()
|
|
790
984
|
|
|
791
985
|
# An explicit token short-circuits everything (CI / scripted use).
|
|
986
|
+
#
|
|
987
|
+
# The result is propagated, not discarded. `_validate_and_store` returns
|
|
988
|
+
# False when it could not close the org gate after a failed persist, and this
|
|
989
|
+
# is the path scripts use — a login that left a stale org readable must not
|
|
990
|
+
# report success to a shell that will go on to run privileged work.
|
|
792
991
|
if token:
|
|
793
|
-
_validate_and_store(config, token)
|
|
992
|
+
if not _validate_and_store(config, token):
|
|
993
|
+
raise SystemExit(1)
|
|
794
994
|
return
|
|
795
995
|
|
|
796
996
|
# Preferred path: loopback browser login (auto-authorize, no paste).
|
|
@@ -815,7 +1015,8 @@ def login(token, no_browser, endpoint):
|
|
|
815
1015
|
if not pasted:
|
|
816
1016
|
click.echo("✗ No API key entered", err=True)
|
|
817
1017
|
return
|
|
818
|
-
_validate_and_store(config, pasted)
|
|
1018
|
+
if not _validate_and_store(config, pasted):
|
|
1019
|
+
raise SystemExit(1)
|
|
819
1020
|
|
|
820
1021
|
|
|
821
1022
|
@auth.command()
|
|
@@ -857,7 +1058,8 @@ def wrapped(no_browser):
|
|
|
857
1058
|
if not pasted:
|
|
858
1059
|
click.echo("✗ No API key entered", err=True)
|
|
859
1060
|
return
|
|
860
|
-
_validate_and_store(config, pasted)
|
|
1061
|
+
if not _validate_and_store(config, pasted):
|
|
1062
|
+
raise SystemExit(1)
|
|
861
1063
|
|
|
862
1064
|
|
|
863
1065
|
@auth.command()
|
|
@@ -878,33 +1080,12 @@ def logout():
|
|
|
878
1080
|
# Symmetric with login, which writes both. Best-effort: never fail a logout
|
|
879
1081
|
# over cache bookkeeping. Runs BEFORE the credential purge below, which can
|
|
880
1082
|
# exit non-zero — a failed purge must not leave the stale identity behind too.
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
# rather than a JSON parse.
|
|
888
|
-
#
|
|
889
|
-
# `load_config()` swallows BOTH a syntax error and a schema error — it
|
|
890
|
-
# catches ValueError, which is what pydantic raises — and hands back a
|
|
891
|
-
# *fresh* UploadConfig. Saving that would delete the user's configured
|
|
892
|
-
# homes, skip filters and secret mode as a side effect of logging out.
|
|
893
|
-
#
|
|
894
|
-
# A json.loads() check is not enough to prevent it: `[]` and `"x"` are
|
|
895
|
-
# perfectly valid JSON and still fail model validation, so they took the
|
|
896
|
-
# reset path. Validating with the model is the only test that matches
|
|
897
|
-
# what load_config actually rejects.
|
|
898
|
-
#
|
|
899
|
-
# Clearing an identity is not a licence to reset settings nobody asked
|
|
900
|
-
# about, so invalid data leaves upload.json untouched — the credential
|
|
901
|
-
# purge below still runs either way.
|
|
902
|
-
path = _upload_config.CONFIG_PATH
|
|
903
|
-
if path.exists():
|
|
904
|
-
# Raises on syntax OR schema errors → suppressed → file left alone.
|
|
905
|
-
_cfg = _UploadConfig.model_validate_json(path.read_text(encoding="utf-8"))
|
|
906
|
-
_cfg.entelligence = _Identity()
|
|
907
|
-
_upload_config.save_config(_cfg)
|
|
1083
|
+
#
|
|
1084
|
+
# Shared with login's fail-closed path rather than inlined twice: both need
|
|
1085
|
+
# the same "clear the identity without resetting settings" semantics, and a
|
|
1086
|
+
# second copy is how one of them ends up round-tripping through
|
|
1087
|
+
# `load_config()` and silently wiping the user's homes and filters.
|
|
1088
|
+
_clear_upload_org_identity()
|
|
908
1089
|
|
|
909
1090
|
failed: list[str] = []
|
|
910
1091
|
try:
|