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.
Files changed (279) hide show
  1. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/PKG-INFO +1 -1
  2. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/api_client.py +29 -12
  3. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/claude_cloud.py +2 -1
  4. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/cli.py +28 -7
  5. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/auth.py +18 -13
  6. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/insights.py +113 -105
  7. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/mcp.py +3 -2
  8. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/review.py +4 -3
  9. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/router.py +3 -1
  10. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/trim.py +3 -3
  11. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/diagnostics.py +12 -0
  12. entelligence_cli-0.1.349/entelligence_cli/error_capture.py +280 -0
  13. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/facts_envelope.py +6 -4
  14. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/insights_log.py +12 -1
  15. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/insights_watch.py +3 -2
  16. entelligence_cli-0.1.349/entelligence_cli/log_shipper.py +377 -0
  17. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/router/codex_settings.py +2 -2
  18. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/scheduling.py +5 -4
  19. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/session_map.py +3 -1
  20. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/session_map_upload.py +22 -21
  21. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/session_status.py +17 -4
  22. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/ui/loaders.py +3 -1
  23. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/ui/output.py +2 -1
  24. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/update_checker.py +21 -9
  25. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/pii.py +4 -3
  26. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/runner.py +5 -5
  27. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/wrapped_game.py +3 -1
  28. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli.egg-info/PKG-INFO +1 -1
  29. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli.egg-info/SOURCES.txt +4 -0
  30. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/pyproject.toml +1 -1
  31. entelligence_cli-0.1.349/tests/test_log_shipper_live.py +277 -0
  32. entelligence_cli-0.1.349/tests/test_log_shipping.py +202 -0
  33. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/README.md +0 -0
  34. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/__init__.py +0 -0
  35. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/MEMORY_CORE_SOURCE_REVISION +0 -0
  36. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/MEMORY_CORE_VERSION +0 -0
  37. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/__init__.py +0 -0
  38. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/__init__.py +0 -0
  39. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/claude_edit_evidence.py +0 -0
  40. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/code_authorship.py +0 -0
  41. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/__init__.py +0 -0
  42. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/__init__.py +0 -0
  43. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_paths.py +0 -0
  44. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_segmentation_prompts/system.j2 +0 -0
  45. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_segmentation_prompts/user.j2 +0 -0
  46. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/__init__.py +0 -0
  47. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/_base.py +0 -0
  48. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/_jsonl_utils.py +0 -0
  49. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/entireio/__init__.py +0 -0
  50. {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
  51. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/entireio/models.py +0 -0
  52. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/entireio/parser.py +0 -0
  53. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/entireio/source.py +0 -0
  54. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/factory.py +0 -0
  55. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/__init__.py +0 -0
  56. {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
  57. {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
  58. {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
  59. {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
  60. {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
  61. {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
  62. {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
  63. {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
  64. {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
  65. {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
  66. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/_sources/local/source.py +0 -0
  67. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/behavior_signals.py +0 -0
  68. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/edit_lines.py +0 -0
  69. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/file_paths.py +0 -0
  70. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/metrics.py +0 -0
  71. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/native_operations.py +0 -0
  72. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/produced.py +0 -0
  73. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/segment_orchestrator.py +0 -0
  74. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/segment_pure.py +0 -0
  75. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/session_pure.py +0 -0
  76. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/skill_names.py +0 -0
  77. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/ingestion/coding_agent/spans.py +0 -0
  78. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/pricing.py +0 -0
  79. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/vocabulary/__init__.py +0 -0
  80. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/vocabulary/categories.py +0 -0
  81. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/vocabulary/edges.py +0 -0
  82. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/_vendor/memory_core/vocabulary/nodes.py +0 -0
  83. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/agent_insights_proxy.py +0 -0
  84. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/agent_insights_segment.py +0 -0
  85. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/ascii-art.txt +0 -0
  86. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/billing_snapshot.py +0 -0
  87. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/browser_login.py +0 -0
  88. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/code_authorship.py +0 -0
  89. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/__init__.py +0 -0
  90. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/budget.py +0 -0
  91. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/config.py +0 -0
  92. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/cursor_doctor.py +0 -0
  93. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/incident.py +0 -0
  94. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/reset.py +0 -0
  95. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/security.py +0 -0
  96. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/skills.py +0 -0
  97. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/commands/update.py +0 -0
  98. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/config.py +0 -0
  99. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/cursor_cloud.py +0 -0
  100. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/cursor_path_a_usage.py +0 -0
  101. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/daily_billing.py +0 -0
  102. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/daily_claude.py +0 -0
  103. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/exceptions.py +0 -0
  104. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/git_operations.py +0 -0
  105. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/hooks/__init__.py +0 -0
  106. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/hooks/capacity_emit.py +0 -0
  107. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/hooks/context_guard.py +0 -0
  108. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/hooks/session_brief.py +0 -0
  109. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/hooks/standup_emit.py +0 -0
  110. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/mcp_inventory.py +0 -0
  111. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/platform_env.py +0 -0
  112. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/router/__init__.py +0 -0
  113. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/router/claude_settings.py +0 -0
  114. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/router/codex_auth.py +0 -0
  115. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/router/compress.py +0 -0
  116. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/router/copilot_launcher.py +0 -0
  117. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/router/copilot_settings.py +0 -0
  118. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/router/cursor_settings.py +0 -0
  119. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/router/state.py +0 -0
  120. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/session_deferrals.py +0 -0
  121. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/session_inventory.py +0 -0
  122. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/session_revisions.py +0 -0
  123. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/textual_ui.py +0 -0
  124. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/token_savings_snapshot.py +0 -0
  125. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/ui/__init__.py +0 -0
  126. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/ui/interactive.py +0 -0
  127. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/ui/keys.py +0 -0
  128. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/ui/styles.py +0 -0
  129. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/__init__.py +0 -0
  130. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/conductor.py +0 -0
  131. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/config.py +0 -0
  132. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/cursor_usage.py +0 -0
  133. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/discovery.py +0 -0
  134. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/manifest.py +0 -0
  135. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/models.py +0 -0
  136. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/secrets.py +0 -0
  137. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli/upload/stores.py +0 -0
  138. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli.egg-info/dependency_links.txt +0 -0
  139. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli.egg-info/entry_points.txt +0 -0
  140. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli.egg-info/requires.txt +0 -0
  141. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/entelligence_cli.egg-info/top_level.txt +0 -0
  142. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/setup.cfg +0 -0
  143. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_agent_insights_proxy.py +0 -0
  144. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_agent_insights_proxy_api_client.py +0 -0
  145. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_agent_insights_segment.py +0 -0
  146. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_attach_fix_smoke.py +0 -0
  147. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_attach_ticket_smoke.py +0 -0
  148. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_auto_update_loop_guard.py +0 -0
  149. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_billing_snapshot.py +0 -0
  150. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_billing_snapshot_cloud.py +0 -0
  151. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_budget_smoke.py +0 -0
  152. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_capacity_emit.py +0 -0
  153. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_claude_capture_boundary.py +0 -0
  154. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_claude_cloud.py +0 -0
  155. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_claude_cloud_cadence.py +0 -0
  156. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_claude_code_cost_events.py +0 -0
  157. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_claude_code_subagent_usage.py +0 -0
  158. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_claude_edit_results.py +0 -0
  159. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_claude_hook_helper_classification.py +0 -0
  160. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_code_authorship.py +0 -0
  161. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_code_authorship_parser_regressions.py +0 -0
  162. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_code_authorship_parsers.py +0 -0
  163. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_codex_auth.py +0 -0
  164. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_codex_native_ledger.py +0 -0
  165. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_codex_settings.py +0 -0
  166. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_codex_total_only_sync.py +0 -0
  167. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_conductor.py +0 -0
  168. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_context_guard.py +0 -0
  169. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_copilot_launcher.py +0 -0
  170. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_copilot_parser_tokens.py +0 -0
  171. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_creation_provenance_contract.py +0 -0
  172. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_cloud.py +0 -0
  173. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_composer_mtime_stamp.py +0 -0
  174. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_doctor.py +0 -0
  175. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_path_a_usage.py +0 -0
  176. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_path_regex_and_heartbeat.py +0 -0
  177. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_self_heal_loop.py +0 -0
  178. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_settings.py +0 -0
  179. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_unknown_timestamps.py +0 -0
  180. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_usage.py +0 -0
  181. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_usage_archive.py +0 -0
  182. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_usage_completeness.py +0 -0
  183. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_usage_heal.py +0 -0
  184. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_usage_recapture.py +0 -0
  185. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_cursor_usage_state.py +0 -0
  186. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_daily_billing.py +0 -0
  187. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_detached_background_work.py +0 -0
  188. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_diagnostics.py +0 -0
  189. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_discovery_head_unicode.py +0 -0
  190. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_discovery_opencode.py +0 -0
  191. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_eligibility_state.py +0 -0
  192. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_endpoint_scheme_enforcement.py +0 -0
  193. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_entropy_secret_detection.py +0 -0
  194. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_error_body_decode.py +0 -0
  195. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_facts_envelope.py +0 -0
  196. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_git_operations_copilot.py +0 -0
  197. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_heartbeat_api_client.py +0 -0
  198. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_identity_cache_refresh.py +0 -0
  199. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_incident_refs.py +0 -0
  200. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_incident_smoke.py +0 -0
  201. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_cadence_heartbeat.py +0 -0
  202. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_checkpoint_resume.py +0 -0
  203. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_copilot_prompts.py +0 -0
  204. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_cursor_composer_home.py +0 -0
  205. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_index_failure.py +0 -0
  206. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_kiro_prompts.py +0 -0
  207. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_log.py +0 -0
  208. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_me_smoke.py +0 -0
  209. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_path_a_default.py +0 -0
  210. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_produced_prs.py +0 -0
  211. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_redrain.py +0 -0
  212. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_repo_attribution.py +0 -0
  213. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_schedule.py +0 -0
  214. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_schedule_arm.py +0 -0
  215. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_structured_payload.py +0 -0
  216. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_watch.py +0 -0
  217. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_insights_watch_transport.py +0 -0
  218. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_legacy_encoding_recovery.py +0 -0
  219. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_local_source_discovery_stats.py +0 -0
  220. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_login_token_stdin.py +0 -0
  221. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_machine_fingerprint.py +0 -0
  222. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_mcp_install.py +0 -0
  223. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_mcp_inventory.py +0 -0
  224. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_multipart_backoff.py +0 -0
  225. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_pii.py +0 -0
  226. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_presigned_skip_index.py +0 -0
  227. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_processing_checkpoint_api_client.py +0 -0
  228. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_release_directive.py +0 -0
  229. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_reset_command.py +0 -0
  230. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_review_redaction.py +0 -0
  231. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_rosetta_self_heal.py +0 -0
  232. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_router_commands.py +0 -0
  233. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_router_dead_proxy_guard.py +0 -0
  234. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_router_stats.py +0 -0
  235. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_scheduling_cron_env.py +0 -0
  236. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_schtasks_integration.py +0 -0
  237. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_secrets_redaction_boundary.py +0 -0
  238. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_security_commands.py +0 -0
  239. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_segment_chunking.py +0 -0
  240. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_segment_session_timeout.py +0 -0
  241. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_segmentation_role_gate.py +0 -0
  242. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_segmentation_window_scope.py +0 -0
  243. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_segmentation_worker_failure_visibility.py +0 -0
  244. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_session_accuracy_regressions.py +0 -0
  245. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_session_brief.py +0 -0
  246. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_session_deferrals.py +0 -0
  247. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_session_inventory.py +0 -0
  248. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_session_map.py +0 -0
  249. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_session_map_pr_outcome.py +0 -0
  250. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_session_map_stage2.py +0 -0
  251. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_session_revisions.py +0 -0
  252. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_session_status_log.py +0 -0
  253. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_sessions_status_chunking.py +0 -0
  254. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_sessions_status_safe_default.py +0 -0
  255. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_skills_command.py +0 -0
  256. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_structured_pr_creation.py +0 -0
  257. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_sync_backgrounding.py +0 -0
  258. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_sync_dry_run_checkpoint.py +0 -0
  259. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_sync_parse_failure_checkpoint.py +0 -0
  260. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_sync_partial_schema.py +0 -0
  261. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_sync_pushes_built_sessions.py +0 -0
  262. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_sync_runs_full_pipeline.py +0 -0
  263. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_token_savings_snapshot.py +0 -0
  264. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_transcript_soft_failures.py +0 -0
  265. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_trim_command.py +0 -0
  266. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_trim_hook_opt_in_only_guard.py +0 -0
  267. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_update_command.py +0 -0
  268. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_upgrade_soft_failures.py +0 -0
  269. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_upload_copilot.py +0 -0
  270. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_upload_cursor_store.py +0 -0
  271. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_upload_home_backfill.py +0 -0
  272. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_upload_kiro.py +0 -0
  273. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_upload_repo_filter.py +0 -0
  274. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_upload_repo_roots.py +0 -0
  275. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_upload_skips_codex_imports.py +0 -0
  276. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_windows_compat.py +0 -0
  277. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_world_model_provenance.py +0 -0
  278. {entelligence_cli-0.1.348 → entelligence_cli-0.1.349}/tests/test_wrap_retry.py +0 -0
  279. {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.348
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 suppress(Exception):
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 suppress(Exception):
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 suppress(Exception):
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 suppress(Exception):
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 suppress(Exception):
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 suppress(Exception):
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 suppress(Exception):
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 suppress(Exception):
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 suppress(Exception):
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 suppress(Exception):
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 suppress(Exception):
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 contextlib.suppress(Exception), monitor_lock(_NOTICE_LOCK) as acquired:
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 suppress(Exception):
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 suppress(Exception):
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 suppress(Exception):
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 suppress(Exception):
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 suppress(Exception):
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 suppress(Exception):
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
- with suppress(Exception):
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 suppress(Exception):
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 suppress(Exception):
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
- pass
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 suppress(Exception):
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
- with suppress(Exception):
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 suppress(Exception):
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 suppress(Exception):
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 suppress(Exception):
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 suppress(Exception):
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 suppress(Exception):
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 suppress(Exception):
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 suppress(Exception):
1207
+ with captured():
1203
1208
  user_info = ctx.obj["api_client"].get_user_info()
1204
1209
 
1205
1210
  click.echo("✓ Authenticated")