entelligence-cli 0.1.348__tar.gz → 0.1.349__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.348 → entelligence_cli-0.1.349}/PKG-INFO +1 -1
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/api_client.py +29 -12
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/claude_cloud.py +2 -1
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/cli.py +28 -7
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/auth.py +18 -13
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/insights.py +113 -105
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/mcp.py +3 -2
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/review.py +4 -3
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/router.py +3 -1
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/trim.py +3 -3
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/diagnostics.py +12 -0
- entelligence_cli-0.1.349/entelligence_cli/error_capture.py +280 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/facts_envelope.py +6 -4
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/insights_log.py +12 -1
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/insights_watch.py +3 -2
- entelligence_cli-0.1.349/entelligence_cli/log_shipper.py +377 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/router/codex_settings.py +2 -2
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/scheduling.py +5 -4
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/session_map.py +3 -1
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/session_map_upload.py +22 -21
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/session_status.py +17 -4
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/ui/loaders.py +3 -1
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/ui/output.py +2 -1
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/update_checker.py +21 -9
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/pii.py +4 -3
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/runner.py +5 -5
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/wrapped_game.py +3 -1
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli.egg-info/PKG-INFO +1 -1
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli.egg-info/SOURCES.txt +4 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/pyproject.toml +1 -1
- entelligence_cli-0.1.349/tests/test_log_shipper_live.py +277 -0
- entelligence_cli-0.1.349/tests/test_log_shipping.py +202 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/README.md +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/__init__.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/MEMORY_CORE_SOURCE_REVISION +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/MEMORY_CORE_VERSION +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/__init__.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/__init__.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/claude_edit_evidence.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/code_authorship.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/__init__.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/__init__.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_paths.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_segmentation_prompts/system.j2 +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_segmentation_prompts/user.j2 +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/__init__.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/_base.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/_jsonl_utils.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/entireio/__init__.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/entireio/git_reader.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/entireio/models.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/entireio/parser.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/entireio/source.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/factory.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/__init__.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/__init__.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/base.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/claude_code.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/claude_cost_summary.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/codex.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/copilot.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/cursor_agent_transcript.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/cursor_store.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/kiro.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/parsers/opencode.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/source.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/behavior_signals.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/edit_lines.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/file_paths.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/metrics.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/native_operations.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/produced.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/segment_orchestrator.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/segment_pure.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/session_pure.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/skill_names.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/spans.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/pricing.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/vocabulary/__init__.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/vocabulary/categories.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/vocabulary/edges.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/vocabulary/nodes.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/agent_insights_proxy.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/agent_insights_segment.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/ascii-art.txt +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/billing_snapshot.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/browser_login.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/code_authorship.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/__init__.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/budget.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/config.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/cursor_doctor.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/incident.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/reset.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/security.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/skills.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/update.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/config.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/cursor_cloud.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/cursor_path_a_usage.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/daily_billing.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/daily_claude.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/exceptions.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/git_operations.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/hooks/__init__.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/hooks/capacity_emit.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/hooks/context_guard.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/hooks/session_brief.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/hooks/standup_emit.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/mcp_inventory.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/platform_env.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/router/__init__.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/router/claude_settings.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/router/codex_auth.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/router/compress.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/router/copilot_launcher.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/router/copilot_settings.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/router/cursor_settings.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/router/state.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/session_deferrals.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/session_inventory.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/session_revisions.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/textual_ui.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/token_savings_snapshot.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/ui/__init__.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/ui/interactive.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/ui/keys.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/ui/styles.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/__init__.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/conductor.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/config.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/cursor_usage.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/discovery.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/manifest.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/models.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/secrets.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/stores.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli.egg-info/dependency_links.txt +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli.egg-info/entry_points.txt +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli.egg-info/requires.txt +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli.egg-info/top_level.txt +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/setup.cfg +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_agent_insights_proxy.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_agent_insights_proxy_api_client.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_agent_insights_segment.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_attach_fix_smoke.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_attach_ticket_smoke.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_auto_update_loop_guard.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_billing_snapshot.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_billing_snapshot_cloud.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_budget_smoke.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_capacity_emit.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_claude_capture_boundary.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_claude_cloud.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_claude_cloud_cadence.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_claude_code_cost_events.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_claude_code_subagent_usage.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_claude_edit_results.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_claude_hook_helper_classification.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_code_authorship.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_code_authorship_parser_regressions.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_code_authorship_parsers.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_codex_auth.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_codex_native_ledger.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_codex_settings.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_codex_total_only_sync.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_conductor.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_context_guard.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_copilot_launcher.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_copilot_parser_tokens.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_creation_provenance_contract.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_cloud.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_composer_mtime_stamp.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_doctor.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_path_a_usage.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_path_regex_and_heartbeat.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_self_heal_loop.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_settings.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_unknown_timestamps.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_usage.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_usage_archive.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_usage_completeness.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_usage_heal.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_usage_recapture.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_usage_state.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_daily_billing.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_detached_background_work.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_diagnostics.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_discovery_head_unicode.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_discovery_opencode.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_eligibility_state.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_endpoint_scheme_enforcement.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_entropy_secret_detection.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_error_body_decode.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_facts_envelope.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_git_operations_copilot.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_heartbeat_api_client.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_identity_cache_refresh.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_incident_refs.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_incident_smoke.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_cadence_heartbeat.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_checkpoint_resume.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_copilot_prompts.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_cursor_composer_home.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_index_failure.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_kiro_prompts.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_log.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_me_smoke.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_path_a_default.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_produced_prs.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_redrain.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_repo_attribution.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_schedule.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_schedule_arm.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_structured_payload.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_watch.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_watch_transport.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_legacy_encoding_recovery.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_local_source_discovery_stats.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_login_token_stdin.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_machine_fingerprint.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_mcp_install.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_mcp_inventory.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_multipart_backoff.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_pii.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_presigned_skip_index.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_processing_checkpoint_api_client.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_release_directive.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_reset_command.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_review_redaction.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_rosetta_self_heal.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_router_commands.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_router_dead_proxy_guard.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_router_stats.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_scheduling_cron_env.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_schtasks_integration.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_secrets_redaction_boundary.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_security_commands.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_segment_chunking.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_segment_session_timeout.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_segmentation_role_gate.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_segmentation_window_scope.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_segmentation_worker_failure_visibility.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_session_accuracy_regressions.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_session_brief.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_session_deferrals.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_session_inventory.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_session_map.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_session_map_pr_outcome.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_session_map_stage2.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_session_revisions.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_session_status_log.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_sessions_status_chunking.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_sessions_status_safe_default.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_skills_command.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_structured_pr_creation.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_sync_backgrounding.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_sync_dry_run_checkpoint.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_sync_parse_failure_checkpoint.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_sync_partial_schema.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_sync_pushes_built_sessions.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_sync_runs_full_pipeline.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_token_savings_snapshot.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_transcript_soft_failures.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_trim_command.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_trim_hook_opt_in_only_guard.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_update_command.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_upgrade_soft_failures.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_upload_copilot.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_upload_cursor_store.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_upload_home_backfill.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_upload_kiro.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_upload_repo_filter.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_upload_repo_roots.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_upload_skips_codex_imports.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_windows_compat.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_world_model_provenance.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_wrap_retry.py +0 -0
- {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/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.349
|
|
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
|
|
@@ -5,13 +5,14 @@ import logging
|
|
|
5
5
|
import threading
|
|
6
6
|
import time
|
|
7
7
|
import uuid
|
|
8
|
-
from contextlib import suppress
|
|
9
8
|
from dataclasses import dataclass, field
|
|
10
9
|
from datetime import UTC, datetime
|
|
11
10
|
from typing import Any
|
|
12
11
|
|
|
13
12
|
import requests
|
|
14
13
|
|
|
14
|
+
from .error_capture import captured
|
|
15
|
+
|
|
15
16
|
|
|
16
17
|
# ENT-4419 / KI-71: every EKU call declares the CLI's own version, so the
|
|
17
18
|
# backend can decide per REQUEST whether this client understands newer wire
|
|
@@ -22,7 +23,7 @@ CLI_VERSION_HEADER = "X-Entelligence-CLI-Version"
|
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
def _cli_version_header() -> dict[str, str]:
|
|
25
|
-
with
|
|
26
|
+
with captured():
|
|
26
27
|
from importlib.metadata import version
|
|
27
28
|
|
|
28
29
|
value = version("entelligence-cli")
|
|
@@ -330,7 +331,7 @@ class APIClient:
|
|
|
330
331
|
"""
|
|
331
332
|
# Unwrap bytes
|
|
332
333
|
if isinstance(resp, bytes | bytearray):
|
|
333
|
-
with
|
|
334
|
+
with captured():
|
|
334
335
|
resp = resp.decode("utf-8", errors="ignore")
|
|
335
336
|
# Attempt up to 3 JSON parses (double-encoded cases)
|
|
336
337
|
for _ in range(3):
|
|
@@ -600,7 +601,7 @@ class APIClient:
|
|
|
600
601
|
and isinstance(ln_range, str)
|
|
601
602
|
and "-" in ln_range
|
|
602
603
|
):
|
|
603
|
-
with
|
|
604
|
+
with captured():
|
|
604
605
|
a, b = ln_range.split("-", 1)
|
|
605
606
|
apply_start = apply_start or int(a.strip())
|
|
606
607
|
apply_end = apply_end or int(b.strip())
|
|
@@ -727,7 +728,7 @@ class APIClient:
|
|
|
727
728
|
|
|
728
729
|
# Handle potential double-stringified JSON
|
|
729
730
|
if isinstance(data, str):
|
|
730
|
-
with
|
|
731
|
+
with captured():
|
|
731
732
|
data = json.loads(data)
|
|
732
733
|
|
|
733
734
|
if isinstance(data, dict):
|
|
@@ -762,7 +763,7 @@ class APIClient:
|
|
|
762
763
|
error_msg = None
|
|
763
764
|
|
|
764
765
|
# Try to get error message from response body
|
|
765
|
-
with
|
|
766
|
+
with captured():
|
|
766
767
|
if e.response is not None and e.response.text:
|
|
767
768
|
error_data = e.response.json()
|
|
768
769
|
if isinstance(error_data, dict):
|
|
@@ -838,7 +839,7 @@ class APIClient:
|
|
|
838
839
|
response.raise_for_status()
|
|
839
840
|
data = response.json()
|
|
840
841
|
if isinstance(data, str):
|
|
841
|
-
with
|
|
842
|
+
with captured():
|
|
842
843
|
data = json.loads(data)
|
|
843
844
|
if isinstance(data, dict) and (data.get("Error") or data.get("error")):
|
|
844
845
|
return {"Error": data.get("Error") or data.get("error")}
|
|
@@ -914,7 +915,7 @@ class APIClient:
|
|
|
914
915
|
response.raise_for_status()
|
|
915
916
|
data = response.json()
|
|
916
917
|
if isinstance(data, str):
|
|
917
|
-
with
|
|
918
|
+
with captured():
|
|
918
919
|
data = json.loads(data)
|
|
919
920
|
if isinstance(data, dict) and (data.get("Error") or data.get("error")):
|
|
920
921
|
return {"Error": data.get("Error") or data.get("error")}
|
|
@@ -1274,6 +1275,22 @@ class APIClient:
|
|
|
1274
1275
|
"""
|
|
1275
1276
|
return self._eku_post("/agent-insights/heartbeat/", payload, org_uuid=org_uuid, timeout=15)
|
|
1276
1277
|
|
|
1278
|
+
def send_client_logs(self, org_uuid: str, lines: list[dict]) -> dict:
|
|
1279
|
+
"""`POST /agent-insights/client-logs/`: ship log lines to the CLI log group.
|
|
1280
|
+
|
|
1281
|
+
Carries the local status log (per-session lifecycle, upgrade outcomes,
|
|
1282
|
+
run summaries) and unknown errors with their message and callstack,
|
|
1283
|
+
so production support can read one machine's story. Never transcript
|
|
1284
|
+
content.
|
|
1285
|
+
|
|
1286
|
+
Returns:
|
|
1287
|
+
``{"success": True, "accepted": n, "rejected": n}`` or
|
|
1288
|
+
``{"Error": "<message>"}`` (no exceptions raised).
|
|
1289
|
+
"""
|
|
1290
|
+
return self._eku_post(
|
|
1291
|
+
"/agent-insights/client-logs/", {"lines": lines}, org_uuid=org_uuid, timeout=30
|
|
1292
|
+
)
|
|
1293
|
+
|
|
1277
1294
|
def fetch_organization_repos(self, org_uuid: str) -> dict:
|
|
1278
1295
|
"""`POST /fetchOrganizationRepos/` — list every repo connected to the org.
|
|
1279
1296
|
|
|
@@ -1544,7 +1561,7 @@ class APIClient:
|
|
|
1544
1561
|
except ValueError:
|
|
1545
1562
|
return {"Error": "Backend returned a non-JSON response — try again shortly."}
|
|
1546
1563
|
if isinstance(data, str):
|
|
1547
|
-
with
|
|
1564
|
+
with captured():
|
|
1548
1565
|
data = json.loads(data)
|
|
1549
1566
|
if isinstance(data, dict) and (data.get("Error") or data.get("error")):
|
|
1550
1567
|
return {"Error": data.get("Error") or data.get("error")}
|
|
@@ -1812,7 +1829,7 @@ class APIClient:
|
|
|
1812
1829
|
elif line:
|
|
1813
1830
|
old_start = int(line)
|
|
1814
1831
|
elif line_numbers and "-" in str(line_numbers):
|
|
1815
|
-
with
|
|
1832
|
+
with captured():
|
|
1816
1833
|
old_start = int(str(line_numbers).split("-")[0].strip())
|
|
1817
1834
|
|
|
1818
1835
|
# Split the raw patch into lines and categorize them
|
|
@@ -2008,7 +2025,7 @@ class APIClient:
|
|
|
2008
2025
|
response.raise_for_status()
|
|
2009
2026
|
data = response.json()
|
|
2010
2027
|
if isinstance(data, str):
|
|
2011
|
-
with
|
|
2028
|
+
with captured():
|
|
2012
2029
|
data = json.loads(data)
|
|
2013
2030
|
if not isinstance(data, dict):
|
|
2014
2031
|
return {"Error": "Unexpected response shape from budget-status."}
|
|
@@ -2066,7 +2083,7 @@ class APIClient:
|
|
|
2066
2083
|
response.raise_for_status()
|
|
2067
2084
|
data = response.json()
|
|
2068
2085
|
if isinstance(data, str):
|
|
2069
|
-
with
|
|
2086
|
+
with captured():
|
|
2070
2087
|
data = json.loads(data)
|
|
2071
2088
|
if isinstance(data, dict):
|
|
2072
2089
|
if data.get("Error") or data.get("error"):
|
|
@@ -36,6 +36,7 @@ from uuid import UUID
|
|
|
36
36
|
import requests
|
|
37
37
|
|
|
38
38
|
from .config import get_base_url
|
|
39
|
+
from .error_capture import captured
|
|
39
40
|
from .hooks.capacity_emit import _token_expired, keychain
|
|
40
41
|
from .insights_watch import monitor_lock
|
|
41
42
|
|
|
@@ -199,7 +200,7 @@ def _clear_credential_notice() -> None:
|
|
|
199
200
|
"""
|
|
200
201
|
deadline = time.monotonic() + _NOTICE_CLEAR_WAIT_SECONDS
|
|
201
202
|
while True:
|
|
202
|
-
with
|
|
203
|
+
with captured(), monitor_lock(_NOTICE_LOCK) as acquired:
|
|
203
204
|
if acquired:
|
|
204
205
|
if _read_notice_state():
|
|
205
206
|
_write_notice_state({})
|
|
@@ -17,7 +17,6 @@ import sys
|
|
|
17
17
|
import time
|
|
18
18
|
|
|
19
19
|
import click
|
|
20
|
-
from contextlib import suppress
|
|
21
20
|
|
|
22
21
|
from . import __version__
|
|
23
22
|
from .api_client import APIClient, APIConfig
|
|
@@ -42,6 +41,7 @@ from .commands import (
|
|
|
42
41
|
from .config import ConfigManager
|
|
43
42
|
from .platform_env import ensure_utf8_stdio
|
|
44
43
|
from .update_checker import check_for_updates, get_update_message, maybe_auto_update
|
|
44
|
+
from .error_capture import captured
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
# Windows-only, and must run before ANY output: with stdout redirected (a pipe,
|
|
@@ -118,6 +118,12 @@ def cli(ctx):
|
|
|
118
118
|
server) to expose incident tools directly inside Claude Code:
|
|
119
119
|
claude mcp add entelligence -- entelligence-mcp
|
|
120
120
|
"""
|
|
121
|
+
# Every warning or error that carries an exception is kept with its
|
|
122
|
+
# callstack (errors.jsonl) and shipped to the CLI CloudWatch log group.
|
|
123
|
+
with captured():
|
|
124
|
+
from .error_capture import install as _install_error_capture
|
|
125
|
+
|
|
126
|
+
_install_error_capture()
|
|
121
127
|
# Initialize session storage
|
|
122
128
|
ctx.ensure_object(dict)
|
|
123
129
|
|
|
@@ -152,12 +158,12 @@ def cli(ctx):
|
|
|
152
158
|
import logging
|
|
153
159
|
|
|
154
160
|
logging.getLogger(__name__).warning("update check failed", exc_info=True)
|
|
155
|
-
with
|
|
161
|
+
with captured():
|
|
156
162
|
from .diagnostics import classify_client_error as _classify
|
|
157
163
|
from .session_status import upgrade_event
|
|
158
164
|
|
|
159
165
|
upgrade_event("update_check", "failed", error_code=_classify(exc))
|
|
160
|
-
with
|
|
166
|
+
with captured():
|
|
161
167
|
from .diagnostics import classify_client_error, emit_diagnostic_event
|
|
162
168
|
|
|
163
169
|
org = ConfigManager().get_org_uuid() or "" # honours ENTELLIGENCE_ORG_UUID
|
|
@@ -205,6 +211,13 @@ def cli(ctx):
|
|
|
205
211
|
ctx.obj["config"] = config
|
|
206
212
|
ctx.obj["api_client"] = api_client
|
|
207
213
|
|
|
214
|
+
# Local logs and captured errors are uploaded to the CLI log group a few
|
|
215
|
+
# seconds after they are written, and at exit.
|
|
216
|
+
with captured():
|
|
217
|
+
from .log_shipper import configure as _configure_log_shipping
|
|
218
|
+
|
|
219
|
+
_configure_log_shipping(api_client, config.get_org_uuid())
|
|
220
|
+
|
|
208
221
|
# `router`, `mcp` and `trim` are fully local (proxy daemon / settings
|
|
209
222
|
# edits) and must start fast — skip the user-info round-trip and
|
|
210
223
|
# background sync, like `auth`. `trim` in particular needs no
|
|
@@ -231,18 +244,18 @@ def cli(ctx):
|
|
|
231
244
|
# command — but since the install is content-aware that retry is
|
|
232
245
|
# a cheap no-op re-check (file reads, no writes), not a re-install.
|
|
233
246
|
installed = False
|
|
234
|
-
with
|
|
247
|
+
with captured():
|
|
235
248
|
from .commands.auth import _install_agent_skills
|
|
236
249
|
|
|
237
250
|
_install_agent_skills(quiet=True)
|
|
238
251
|
installed = True
|
|
239
252
|
if installed:
|
|
240
|
-
with
|
|
253
|
+
with captured():
|
|
241
254
|
config.set_skills_synced_version(__version__)
|
|
242
255
|
|
|
243
256
|
# Fetch user info from backend (required by most commands).
|
|
244
257
|
user_info = None
|
|
245
|
-
with
|
|
258
|
+
with captured():
|
|
246
259
|
user_info = api_client.get_user_info()
|
|
247
260
|
|
|
248
261
|
# Provide GitHub OAuth token to APIClient so repo_health endpoints
|
|
@@ -252,9 +265,17 @@ def cli(ctx):
|
|
|
252
265
|
|
|
253
266
|
ctx.obj["user_info"] = user_info
|
|
254
267
|
|
|
268
|
+
# No saved or environment org: the signed-in user's org turns on
|
|
269
|
+
# log shipping (a no-op when it is already configured).
|
|
270
|
+
if not config.get_org_uuid() and user_info and user_info.get("OrgUUID"):
|
|
271
|
+
with captured():
|
|
272
|
+
from .log_shipper import configure as _configure_log_shipping
|
|
273
|
+
|
|
274
|
+
_configure_log_shipping(api_client, str(user_info["OrgUUID"]))
|
|
275
|
+
|
|
255
276
|
# Best-effort: push coding-agent insights in the background,
|
|
256
277
|
# ~once/day. Detached + throttled + silent; never blocks.
|
|
257
|
-
with
|
|
278
|
+
with captured():
|
|
258
279
|
from .commands.insights import maybe_auto_sync
|
|
259
280
|
|
|
260
281
|
maybe_auto_sync(ctx)
|
|
@@ -12,6 +12,8 @@ import click
|
|
|
12
12
|
from ..api_client import APIClient, APIConfig
|
|
13
13
|
from ..browser_login import loopback_login, osc8_link
|
|
14
14
|
from ..config import ConfigManager, get_app_url, get_wrapped_url
|
|
15
|
+
from ..error_capture import capture_error as _capture_error
|
|
16
|
+
from ..error_capture import captured
|
|
15
17
|
|
|
16
18
|
|
|
17
19
|
INCIDENT_SKILL = """---
|
|
@@ -708,7 +710,9 @@ def _clear_upload_org_identity() -> bool:
|
|
|
708
710
|
Clearing an identity is not a licence to reset settings nobody asked about,
|
|
709
711
|
so invalid data leaves upload.json untouched.
|
|
710
712
|
"""
|
|
711
|
-
|
|
713
|
+
# detail=False: a validation error can quote identity values (email) from
|
|
714
|
+
# upload.json; only the error class and the callstack's frames are kept.
|
|
715
|
+
with captured(detail=False):
|
|
712
716
|
from ..upload import config as _upload_config
|
|
713
717
|
from ..upload.models import UploadConfig as _UploadConfig
|
|
714
718
|
|
|
@@ -738,7 +742,7 @@ def _org_state_cleared(config: ConfigManager) -> bool:
|
|
|
738
742
|
cannot parse it either and falls through to the upload cache, which the
|
|
739
743
|
caller has already emptied.
|
|
740
744
|
"""
|
|
741
|
-
with
|
|
745
|
+
with captured():
|
|
742
746
|
config.set_org_uuid("")
|
|
743
747
|
try:
|
|
744
748
|
# String-only, matching ``session_brief._stored``. `get_org_uuid()` only
|
|
@@ -778,13 +782,13 @@ def _drop_credential(config: ConfigManager) -> str:
|
|
|
778
782
|
"closed from here and the stored key was left alone. Unset that variable "
|
|
779
783
|
"and run `entelligence auth logout`."
|
|
780
784
|
)
|
|
781
|
-
with
|
|
785
|
+
with captured():
|
|
782
786
|
config.clear_auth()
|
|
783
787
|
try:
|
|
784
788
|
if config.get_token() is None:
|
|
785
789
|
return ""
|
|
786
790
|
except Exception: # noqa: BLE001
|
|
787
|
-
|
|
791
|
+
_capture_error(__name__)
|
|
788
792
|
return (
|
|
789
793
|
f"Could not drop the stored credential either — fix write access to "
|
|
790
794
|
f"{config.config_file}, then run `entelligence auth logout`."
|
|
@@ -904,7 +908,7 @@ def _validate_and_store(
|
|
|
904
908
|
# API key, so an account switch would otherwise leave SessionStart
|
|
905
909
|
# serving the PREVIOUS account's Slack tasks until the daily sync caught
|
|
906
910
|
# up. Best-effort; never fail a login over hook bookkeeping.
|
|
907
|
-
with
|
|
911
|
+
with captured():
|
|
908
912
|
from .mcp import ensure_hooks_current
|
|
909
913
|
|
|
910
914
|
# Pass the key just validated, not get_token(): that prefers
|
|
@@ -923,7 +927,8 @@ def _validate_and_store(
|
|
|
923
927
|
# cache, so re-stamping it here would hand the gate the very org
|
|
924
928
|
# config.json was just prevented from asserting.
|
|
925
929
|
if org_persisted:
|
|
926
|
-
|
|
930
|
+
# detail=False: an identity validation error quotes the values.
|
|
931
|
+
with captured(detail=False):
|
|
927
932
|
from ..upload.config import load_config as _load_upload_cfg
|
|
928
933
|
from ..upload.config import save_config as _save_upload_cfg
|
|
929
934
|
from ..upload.models import EntelligenceIdentity as _Identity
|
|
@@ -946,7 +951,7 @@ def _validate_and_store(
|
|
|
946
951
|
# if they don't use them; never fail login over a skill install error.
|
|
947
952
|
# Stamp the version too, so the next command doesn't redo a no-op sync
|
|
948
953
|
# (cli.py gates the startup sync on this stamp).
|
|
949
|
-
with
|
|
954
|
+
with captured():
|
|
950
955
|
from .. import __version__
|
|
951
956
|
|
|
952
957
|
_install_agent_skills()
|
|
@@ -955,7 +960,7 @@ def _validate_and_store(
|
|
|
955
960
|
# setup, so bootstrap the durable heartbeat/update/watch jobs here. The
|
|
956
961
|
# scheduled `insights --agent` process runs the existing headless updater
|
|
957
962
|
# before its heartbeat; no separate credential-bearing update job exists.
|
|
958
|
-
with
|
|
963
|
+
with captured():
|
|
959
964
|
from .insights import _ensure_background_schedules
|
|
960
965
|
|
|
961
966
|
_ensure_background_schedules(config, force=repin_schedules)
|
|
@@ -1073,7 +1078,7 @@ def login(token, no_browser, endpoint, allow_insecure):
|
|
|
1073
1078
|
if not no_browser:
|
|
1074
1079
|
click.echo("Opening your browser to authorize the CLI...")
|
|
1075
1080
|
captured_key = None
|
|
1076
|
-
with
|
|
1081
|
+
with captured():
|
|
1077
1082
|
captured_key = loopback_login(app_url)
|
|
1078
1083
|
if captured_key:
|
|
1079
1084
|
if _validate_and_store(config, captured_key, repin_schedules=bool(endpoint)):
|
|
@@ -1085,7 +1090,7 @@ def login(token, no_browser, endpoint, allow_insecure):
|
|
|
1085
1090
|
# Fallback: open the API-key page and accept a pasted key.
|
|
1086
1091
|
settings_url = f"{app_url}/settings?tab=api"
|
|
1087
1092
|
click.echo("\nGet your API key from:\n " + osc8_link(settings_url))
|
|
1088
|
-
with
|
|
1093
|
+
with captured():
|
|
1089
1094
|
webbrowser.open(settings_url, new=2)
|
|
1090
1095
|
pasted = click.prompt("Paste your API key", hide_input=True, confirmation_prompt=False)
|
|
1091
1096
|
if not pasted:
|
|
@@ -1119,7 +1124,7 @@ def wrapped(no_browser):
|
|
|
1119
1124
|
if not no_browser:
|
|
1120
1125
|
click.echo("Opening your browser to authorize the CLI...")
|
|
1121
1126
|
captured_key = None
|
|
1122
|
-
with
|
|
1127
|
+
with captured():
|
|
1123
1128
|
captured_key = loopback_login(wrapped_url)
|
|
1124
1129
|
if captured_key and _validate_and_store(config, captured_key):
|
|
1125
1130
|
return
|
|
@@ -1128,7 +1133,7 @@ def wrapped(no_browser):
|
|
|
1128
1133
|
# Fallback: API keys are managed on the main app, so paste from there.
|
|
1129
1134
|
settings_url = f"{get_app_url()}/settings?tab=api"
|
|
1130
1135
|
click.echo("\nGet your API key from:\n " + osc8_link(settings_url))
|
|
1131
|
-
with
|
|
1136
|
+
with captured():
|
|
1132
1137
|
webbrowser.open(settings_url, new=2)
|
|
1133
1138
|
pasted = click.prompt("Paste your API key", hide_input=True, confirmation_prompt=False)
|
|
1134
1139
|
if not pasted:
|
|
@@ -1199,7 +1204,7 @@ def status(ctx):
|
|
|
1199
1204
|
# (so login/wrapped start instantly), so fetch it on demand here.
|
|
1200
1205
|
user_info = ctx.obj.get("user_info") if ctx.obj else None
|
|
1201
1206
|
if user_info is None and ctx.obj and ctx.obj.get("api_client"):
|
|
1202
|
-
with
|
|
1207
|
+
with captured():
|
|
1203
1208
|
user_info = ctx.obj["api_client"].get_user_info()
|
|
1204
1209
|
|
|
1205
1210
|
click.echo("✓ Authenticated")
|