fixos 2.2.56__tar.gz → 2.2.58__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 (253) hide show
  1. {fixos-2.2.56 → fixos-2.2.58}/PKG-INFO +2 -2
  2. fixos-2.2.58/VERSION +1 -0
  3. {fixos-2.2.56 → fixos-2.2.58}/fixos/agent/autonomous_session.py +89 -45
  4. fixos-2.2.58/fixos/cli/_auto_cleanup.py +172 -0
  5. fixos-2.2.58/fixos/cli/_cleanup_free_target.py +310 -0
  6. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/_cleanup_space.py +887 -67
  7. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/cleanup_cmd.py +280 -7
  8. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/fix_cmd.py +255 -166
  9. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/main.py +1 -0
  10. fixos-2.2.58/fixos/cli/mcp_cmd.py +68 -0
  11. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/orchestrate_cmd.py +5 -3
  12. {fixos-2.2.56 → fixos-2.2.58}/fixos/constants.py +3 -2
  13. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/dev_project_analyzer.py +100 -25
  14. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/disk_analyzer.py +78 -20
  15. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/project_scanner.py +2 -2
  16. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/quick_snapshot.py +58 -11
  17. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/service_cleanup.py +32 -23
  18. fixos-2.2.58/fixos/diagnostics/state_retention.py +214 -0
  19. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/venv_cleanup.py +15 -5
  20. fixos-2.2.58/fixos/mcp_server.py +763 -0
  21. {fixos-2.2.56 → fixos-2.2.58}/fixos/orchestrator/graph.py +4 -5
  22. {fixos-2.2.56 → fixos-2.2.58}/fixos/orchestrator/orchestrator.py +18 -7
  23. {fixos-2.2.56 → fixos-2.2.58}/fixos.egg-info/PKG-INFO +2 -2
  24. {fixos-2.2.56 → fixos-2.2.58}/fixos.egg-info/SOURCES.txt +16 -0
  25. {fixos-2.2.56 → fixos-2.2.58}/fixos.egg-info/requires.txt +1 -1
  26. {fixos-2.2.56 → fixos-2.2.58}/fixos.egg-info/top_level.txt +1 -0
  27. {fixos-2.2.56 → fixos-2.2.58}/pyproject.toml +3 -3
  28. fixos-2.2.58/tests/unit/test_auto_cleanup.py +430 -0
  29. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_auto_no_llm.py +21 -3
  30. fixos-2.2.58/tests/unit/test_autonomous_reporting.py +199 -0
  31. fixos-2.2.58/tests/unit/test_cleanup_docker_buildcache.py +103 -0
  32. fixos-2.2.58/tests/unit/test_cleanup_free_target.py +418 -0
  33. fixos-2.2.58/tests/unit/test_cleanup_plan_contract.py +204 -0
  34. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_cleanup_safety.py +17 -0
  35. fixos-2.2.58/tests/unit/test_cleanup_space.py +622 -0
  36. fixos-2.2.58/tests/unit/test_disk_analyzer_capacity.py +66 -0
  37. fixos-2.2.58/tests/unit/test_jetbrains_toolbox_v2.py +72 -0
  38. fixos-2.2.58/tests/unit/test_mcp_server.py +303 -0
  39. fixos-2.2.58/tests/unit/test_path_scope.py +48 -0
  40. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_project_scanner.py +215 -0
  41. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_quick_snapshot.py +120 -0
  42. fixos-2.2.58/tests/unit/test_standard_adoption_projection.py +30 -0
  43. fixos-2.2.58/tests/unit/test_state_retention.py +168 -0
  44. fixos-2.2.56/VERSION +0 -1
  45. fixos-2.2.56/tests/unit/test_cleanup_space.py +0 -304
  46. {fixos-2.2.56 → fixos-2.2.58}/.env.example +0 -0
  47. {fixos-2.2.56 → fixos-2.2.58}/CHANGELOG.md +0 -0
  48. {fixos-2.2.56 → fixos-2.2.58}/LICENSE +0 -0
  49. {fixos-2.2.56 → fixos-2.2.58}/MANIFEST.in +0 -0
  50. {fixos-2.2.56 → fixos-2.2.58}/README.md +0 -0
  51. {fixos-2.2.56 → fixos-2.2.58}/docker/README.md +0 -0
  52. {fixos-2.2.56 → fixos-2.2.58}/docker/TEST_RESULTS.md +0 -0
  53. {fixos-2.2.56 → fixos-2.2.58}/docker/TEST_RESULTS_V2.md +0 -0
  54. {fixos-2.2.56 → fixos-2.2.58}/docker/alpine/Dockerfile +0 -0
  55. {fixos-2.2.56 → fixos-2.2.58}/docker/arch/Dockerfile +0 -0
  56. {fixos-2.2.56 → fixos-2.2.58}/docker/base/Dockerfile +0 -0
  57. {fixos-2.2.56 → fixos-2.2.58}/docker/broken-audio/Dockerfile +0 -0
  58. {fixos-2.2.56 → fixos-2.2.58}/docker/broken-full/Dockerfile +0 -0
  59. {fixos-2.2.56 → fixos-2.2.58}/docker/broken-network/Dockerfile +0 -0
  60. {fixos-2.2.56 → fixos-2.2.58}/docker/broken-thumbnails/Dockerfile +0 -0
  61. {fixos-2.2.56 → fixos-2.2.58}/docker/debian/Dockerfile +0 -0
  62. {fixos-2.2.56 → fixos-2.2.58}/docker/docker-compose.multi-system.yml +0 -0
  63. {fixos-2.2.56 → fixos-2.2.58}/docker/docker-compose.yml +0 -0
  64. {fixos-2.2.56 → fixos-2.2.58}/docker/fedora/Dockerfile +0 -0
  65. {fixos-2.2.56 → fixos-2.2.58}/docker/test-multi-system.sh +0 -0
  66. {fixos-2.2.56 → fixos-2.2.58}/docker/test-scenarios.sh +0 -0
  67. {fixos-2.2.56 → fixos-2.2.58}/docker/ubuntu/Dockerfile +0 -0
  68. {fixos-2.2.56 → fixos-2.2.58}/docker/validate-scenario.py +0 -0
  69. {fixos-2.2.56 → fixos-2.2.58}/docs/examples/advanced_usage.py +0 -0
  70. {fixos-2.2.56 → fixos-2.2.58}/docs/examples/quickstart.py +0 -0
  71. {fixos-2.2.56 → fixos-2.2.58}/fixos/__init__.py +0 -0
  72. {fixos-2.2.56 → fixos-2.2.58}/fixos/__main__.py +0 -0
  73. {fixos-2.2.56 → fixos-2.2.58}/fixos/agent/__init__.py +0 -0
  74. {fixos-2.2.56 → fixos-2.2.58}/fixos/agent/autonomous.py +9 -9
  75. {fixos-2.2.56 → fixos-2.2.58}/fixos/agent/hitl.py +0 -0
  76. {fixos-2.2.56 → fixos-2.2.58}/fixos/agent/hitl_session.py +0 -0
  77. {fixos-2.2.56 → fixos-2.2.58}/fixos/agent/session_core.py +0 -0
  78. {fixos-2.2.56 → fixos-2.2.58}/fixos/agent/session_handlers.py +0 -0
  79. {fixos-2.2.56 → fixos-2.2.58}/fixos/agent/session_io.py +0 -0
  80. {fixos-2.2.56 → fixos-2.2.58}/fixos/anonymizer.py +0 -0
  81. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/__init__.py +0 -0
  82. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/__main__.py +0 -0
  83. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/_cleanup_docker_volumes.py +0 -0
  84. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/_cleanup_flatpak.py +0 -0
  85. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/_cleanup_home.py +0 -0
  86. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/_cleanup_snap.py +0 -0
  87. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/_cleanup_system.py +0 -0
  88. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/_cleanup_utils.py +0 -0
  89. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/_cleanup_venvs.py +0 -0
  90. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/ask_cmd.py +0 -0
  91. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/config_cmd.py +0 -0
  92. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/dashboard.py +0 -0
  93. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/features_cmd.py +0 -0
  94. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/history_cmd.py +0 -0
  95. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/jetbrains_cmd.py +0 -0
  96. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/output_formatter.py +0 -0
  97. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/profile_cmd.py +0 -0
  98. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/projects_cmd.py +0 -0
  99. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/provider_cmd.py +0 -0
  100. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/quick_cmd.py +0 -0
  101. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/quickfix_cmd.py +0 -0
  102. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/report_cmd.py +0 -0
  103. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/rollback_cmd.py +0 -0
  104. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/scan_cmd.py +0 -0
  105. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/shared.py +0 -0
  106. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/shell_cmd.py +0 -0
  107. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/token_cmd.py +0 -0
  108. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli/watch_cmd.py +0 -0
  109. {fixos-2.2.56 → fixos-2.2.58}/fixos/cli.py +0 -0
  110. {fixos-2.2.56 → fixos-2.2.58}/fixos/config.py +0 -0
  111. {fixos-2.2.56 → fixos-2.2.58}/fixos/config_interactive.py +0 -0
  112. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/__init__.py +0 -0
  113. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/_flatpak_analysis_mixin.py +0 -0
  114. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/_flatpak_execution_mixin.py +0 -0
  115. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/_flatpak_recommendations_mixin.py +0 -0
  116. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/_storage_container_mixin.py +0 -0
  117. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/_storage_system_mixin.py +0 -0
  118. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/_storage_user_mixin.py +0 -0
  119. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/cache_discovery.py +0 -0
  120. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/checks/__init__.py +0 -0
  121. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/checks/_shared.py +0 -0
  122. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/checks/audio.py +0 -0
  123. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/checks/file_analysis.py +0 -0
  124. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/checks/hardware.py +0 -0
  125. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/checks/packages.py +0 -0
  126. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/checks/resources.py +0 -0
  127. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/checks/security.py +0 -0
  128. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/checks/storage_optimization.py +0 -0
  129. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/checks/system_core.py +0 -0
  130. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/checks/thumbnails.py +0 -0
  131. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/docker_network_cleanup.py +0 -0
  132. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/docker_startup_optimizer.py +0 -0
  133. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/flatpak_analyzer.py +0 -0
  134. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/jetbrains_ai.py +0 -0
  135. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/jetbrains_recovery.py +0 -0
  136. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/native_scan.py +0 -0
  137. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/orphaned_workloads.py +0 -0
  138. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/process_chains.py +0 -0
  139. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/service_details.py +0 -0
  140. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/service_scanner.py +0 -0
  141. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/storage_analyzer.py +0 -0
  142. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/system_checks.py +0 -0
  143. {fixos-2.2.56 → fixos-2.2.58}/fixos/diagnostics/utils.py +0 -0
  144. {fixos-2.2.56 → fixos-2.2.58}/fixos/endpoint_refresh.py +0 -0
  145. {fixos-2.2.56 → fixos-2.2.58}/fixos/features/__init__.py +0 -0
  146. {fixos-2.2.56 → fixos-2.2.58}/fixos/features/auditor.py +0 -0
  147. {fixos-2.2.56 → fixos-2.2.58}/fixos/features/catalog.py +0 -0
  148. {fixos-2.2.56 → fixos-2.2.58}/fixos/features/data/packages.yaml +0 -0
  149. {fixos-2.2.56 → fixos-2.2.58}/fixos/features/data/profiles/developer.yaml +0 -0
  150. {fixos-2.2.56 → fixos-2.2.58}/fixos/features/data/profiles/office.yaml +0 -0
  151. {fixos-2.2.56 → fixos-2.2.58}/fixos/features/data/profiles/sysadmin.yaml +0 -0
  152. {fixos-2.2.56 → fixos-2.2.58}/fixos/features/installer.py +0 -0
  153. {fixos-2.2.56 → fixos-2.2.58}/fixos/features/profiles.py +0 -0
  154. {fixos-2.2.56 → fixos-2.2.58}/fixos/features/renderer.py +0 -0
  155. {fixos-2.2.56 → fixos-2.2.58}/fixos/fixes/__init__.py +0 -0
  156. {fixos-2.2.56 → fixos-2.2.58}/fixos/interactive/__init__.py +0 -0
  157. {fixos-2.2.56 → fixos-2.2.58}/fixos/interactive/cleanup_planner.py +0 -0
  158. {fixos-2.2.56 → fixos-2.2.58}/fixos/llm_shell.py +0 -0
  159. {fixos-2.2.56 → fixos-2.2.58}/fixos/orchestrator/__init__.py +0 -0
  160. {fixos-2.2.56 → fixos-2.2.58}/fixos/orchestrator/executor.py +0 -0
  161. {fixos-2.2.56 → fixos-2.2.58}/fixos/orchestrator/rollback.py +0 -0
  162. {fixos-2.2.56 → fixos-2.2.58}/fixos/orphan_pins.py +0 -0
  163. {fixos-2.2.56 → fixos-2.2.58}/fixos/platform_utils.py +0 -0
  164. {fixos-2.2.56 → fixos-2.2.58}/fixos/plugins/__init__.py +0 -0
  165. {fixos-2.2.56 → fixos-2.2.58}/fixos/plugins/base.py +0 -0
  166. {fixos-2.2.56 → fixos-2.2.58}/fixos/plugins/builtin/__init__.py +0 -0
  167. {fixos-2.2.56 → fixos-2.2.58}/fixos/plugins/builtin/audio.py +0 -0
  168. {fixos-2.2.56 → fixos-2.2.58}/fixos/plugins/builtin/disk.py +0 -0
  169. {fixos-2.2.56 → fixos-2.2.58}/fixos/plugins/builtin/hardware.py +0 -0
  170. {fixos-2.2.56 → fixos-2.2.58}/fixos/plugins/builtin/resources.py +0 -0
  171. {fixos-2.2.56 → fixos-2.2.58}/fixos/plugins/builtin/security.py +0 -0
  172. {fixos-2.2.56 → fixos-2.2.58}/fixos/plugins/builtin/thumbnails.py +0 -0
  173. {fixos-2.2.56 → fixos-2.2.58}/fixos/plugins/registry.py +0 -0
  174. {fixos-2.2.56 → fixos-2.2.58}/fixos/profiles/__init__.py +0 -0
  175. {fixos-2.2.56 → fixos-2.2.58}/fixos/profiles/desktop.yaml +0 -0
  176. {fixos-2.2.56 → fixos-2.2.58}/fixos/profiles/developer.yaml +0 -0
  177. {fixos-2.2.56 → fixos-2.2.58}/fixos/profiles/minimal.yaml +0 -0
  178. {fixos-2.2.56 → fixos-2.2.58}/fixos/profiles/server.yaml +0 -0
  179. {fixos-2.2.56 → fixos-2.2.58}/fixos/providers/__init__.py +0 -0
  180. {fixos-2.2.56 → fixos-2.2.58}/fixos/providers/gemini_native.py +0 -0
  181. {fixos-2.2.56 → fixos-2.2.58}/fixos/providers/llm.py +0 -0
  182. {fixos-2.2.56 → fixos-2.2.58}/fixos/providers/llm_analyzer.py +0 -0
  183. {fixos-2.2.56 → fixos-2.2.58}/fixos/providers/schemas.py +0 -0
  184. {fixos-2.2.56 → fixos-2.2.58}/fixos/system_checks.py +0 -0
  185. {fixos-2.2.56 → fixos-2.2.58}/fixos/utils/__init__.py +0 -0
  186. {fixos-2.2.56 → fixos-2.2.58}/fixos/utils/anonymizer.py +0 -0
  187. {fixos-2.2.56 → fixos-2.2.58}/fixos/utils/terminal.py +0 -0
  188. {fixos-2.2.56 → fixos-2.2.58}/fixos/utils/timeout.py +0 -0
  189. {fixos-2.2.56 → fixos-2.2.58}/fixos/utils/web_search.py +0 -0
  190. {fixos-2.2.56 → fixos-2.2.58}/fixos/watch.py +0 -0
  191. {fixos-2.2.56 → fixos-2.2.58}/fixos.egg-info/dependency_links.txt +0 -0
  192. {fixos-2.2.56 → fixos-2.2.58}/fixos.egg-info/entry_points.txt +0 -0
  193. {fixos-2.2.56 → fixos-2.2.58}/pytest.ini +0 -0
  194. {fixos-2.2.56 → fixos-2.2.58}/requirements-dev.txt +0 -0
  195. {fixos-2.2.56 → fixos-2.2.58}/requirements.txt +0 -0
  196. {fixos-2.2.56 → fixos-2.2.58}/scripts/pyqual-calibrate.py +0 -0
  197. {fixos-2.2.56 → fixos-2.2.58}/setup.cfg +0 -0
  198. {fixos-2.2.56 → fixos-2.2.58}/setup.py +0 -0
  199. {fixos-2.2.56 → fixos-2.2.58}/tests/__init__.py +0 -0
  200. {fixos-2.2.56 → fixos-2.2.58}/tests/conftest.py +0 -0
  201. {fixos-2.2.56 → fixos-2.2.58}/tests/e2e/__init__.py +0 -0
  202. {fixos-2.2.56 → fixos-2.2.58}/tests/e2e/test_anonymization_layers.py +0 -0
  203. {fixos-2.2.56 → fixos-2.2.58}/tests/e2e/test_audio_broken.py +0 -0
  204. {fixos-2.2.56 → fixos-2.2.58}/tests/e2e/test_cli.py +0 -0
  205. {fixos-2.2.56 → fixos-2.2.58}/tests/e2e/test_diagnostics_integration.py +0 -0
  206. {fixos-2.2.56 → fixos-2.2.58}/tests/e2e/test_executor.py +0 -0
  207. {fixos-2.2.56 → fixos-2.2.58}/tests/e2e/test_multi_system.py +0 -0
  208. {fixos-2.2.56 → fixos-2.2.58}/tests/e2e/test_network_broken.py +0 -0
  209. {fixos-2.2.56 → fixos-2.2.58}/tests/e2e/test_thumbnails_broken.py +0 -0
  210. {fixos-2.2.56 → fixos-2.2.58}/tests/test_fixos.py +0 -0
  211. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/__init__.py +0 -0
  212. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_anonymizer.py +0 -0
  213. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_ask_and_nl_group.py +0 -0
  214. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_cache_discovery.py +0 -0
  215. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_cleanup_cmd.py +0 -0
  216. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_cleanup_docker_volumes.py +0 -0
  217. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_cleanup_effectiveness.py +0 -0
  218. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_cleanup_planner.py +0 -0
  219. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_cleanup_retention.py +0 -0
  220. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_cleanup_tmp.py +0 -0
  221. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_cleanup_utils.py +0 -0
  222. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_cli_main.py +0 -0
  223. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_core.py +0 -0
  224. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_dashboard.py +0 -0
  225. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_dev_project_analyzer.py +0 -0
  226. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_disk_analyzer.py +0 -0
  227. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_docker_network_cleanup.py +0 -0
  228. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_docker_startup_optimizer.py +0 -0
  229. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_endpoint_refresh.py +0 -0
  230. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_executor.py +0 -0
  231. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_gemini_native_client.py +0 -0
  232. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_jetbrains_cmd.py +0 -0
  233. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_jetbrains_recovery.py +0 -0
  234. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_llm_auth_stop.py +0 -0
  235. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_llm_provider.py +0 -0
  236. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_native_scan.py +0 -0
  237. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_ollama_endpoint.py +0 -0
  238. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_orchestrator.py +0 -0
  239. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_orphan_pins.py +0 -0
  240. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_orphaned_workloads.py +0 -0
  241. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_packaging_data.py +0 -0
  242. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_process_chains.py +0 -0
  243. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_projects_cmd.py +0 -0
  244. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_quick_cmd.py +0 -0
  245. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_resources_quick.py +0 -0
  246. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_security_quick.py +0 -0
  247. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_service_cleanup.py +0 -0
  248. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_service_scanner.py +0 -0
  249. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_shell_ux.py +0 -0
  250. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_storage_analyzer.py +0 -0
  251. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_system_checks_parallel.py +0 -0
  252. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_venv_cleanup.py +0 -0
  253. {fixos-2.2.56 → fixos-2.2.58}/tests/unit/test_version_parity.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fixos
3
- Version: 2.2.56
3
+ Version: 2.2.58
4
4
  Summary: AI-powered Linux/Windows diagnostics and repair – audio, hardware, system issues
5
5
  Home-page: https://github.com/wronai/fixos
6
6
  Author: fixos contributors
@@ -35,7 +35,7 @@ Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
35
35
  Requires-Dist: pytest-xdist>=3.5.0; extra == "dev"
36
36
  Requires-Dist: pytest-timeout>=2.2.0; extra == "dev"
37
37
  Requires-Dist: pytest-sugar>=0.9.7; extra == "dev"
38
- Requires-Dist: goal>=2.1.0; python_version >= "3.12" and extra == "dev"
38
+ Requires-Dist: goal[publish]>=2.2.7; python_version >= "3.12" and extra == "dev"
39
39
  Requires-Dist: costs>=0.1.20; extra == "dev"
40
40
  Dynamic: home-page
41
41
  Dynamic: license-file
fixos-2.2.58/VERSION ADDED
@@ -0,0 +1 @@
1
+ 2.2.58
@@ -94,18 +94,34 @@ class AgentReport:
94
94
 
95
95
  def summary(self) -> str:
96
96
  elapsed = int(time.time() - self.start_time)
97
+ successful = failed = simulated = 0
98
+ action_lines = []
99
+ for i, action in enumerate(self.fixes_applied, 1):
100
+ if action.result == "[DRY-RUN]":
101
+ simulated += 1
102
+ icon = "🧪"
103
+ elif action.success is True:
104
+ successful += 1
105
+ icon = "✅"
106
+ elif action.success is False:
107
+ failed += 1
108
+ icon = "❌"
109
+ else:
110
+ icon = "❔"
111
+ action_lines.append(f" {i}. {icon} `{action.command}`")
112
+ action_lines.append(f" Powód: {action.reason}")
113
+
97
114
  lines = [
98
115
  f" ⏱️ Czas: {elapsed}s",
99
- f" 🔧 Naprawiono: {len(self.fixes_applied)} operacji",
116
+ f" 🔧 Udane operacje: {successful}",
117
+ f" ❌ Nieudane operacje: {failed}",
118
+ f" 🧪 Symulacje: {simulated}",
100
119
  f" 🔎 Wyszukiwania: {len(self.searches_done)}",
101
120
  f" 🔴 Wykryte problemy: {len(self.problems_found)}",
102
121
  ]
103
- if self.fixes_applied:
104
- lines.append("\n Wykonane akcje:")
105
- for i, a in enumerate(self.fixes_applied, 1):
106
- icon = "✅" if a.success else "❌"
107
- lines.append(f" {i}. {icon} `{a.command}`")
108
- lines.append(f" Powód: {a.reason}")
122
+ if action_lines:
123
+ lines.append("\n Akcje sesji:")
124
+ lines.extend(action_lines)
109
125
  return "\n".join(lines)
110
126
 
111
127
 
@@ -132,7 +148,15 @@ class AutonomousSession:
132
148
  self.use_llm = use_llm
133
149
  self.dry_run = dry_run
134
150
  self._heuristic_queue: list[dict[str, Any]] | None = None
135
- self.llm = LLMClient(config)
151
+ if self.use_llm is False:
152
+ self.llm = None
153
+ else:
154
+ try:
155
+ self.llm = LLMClient(config)
156
+ except LLMError:
157
+ if self.use_llm is True:
158
+ raise
159
+ self.llm = None
136
160
  self.report = AgentReport()
137
161
  self.fix_count = 0
138
162
  self.search_count = 0
@@ -180,7 +204,10 @@ class AutonomousSession:
180
204
  else "heurystyki lokalne (bez LLM)"
181
205
  )
182
206
  print(f"\n{'═' * UI_BORDER_WIDTH}")
183
- print(" ⚠️ TRYB AUTONOMICZNY – agent sam wykonuje komendy!")
207
+ if self.dry_run:
208
+ print(" 🧪 TRYB SYMULACJI – komendy nie będą wykonywane.")
209
+ else:
210
+ print(" ⚠️ TRYB AUTONOMICZNY – agent sam wykonuje komendy!")
184
211
  print(" Naciśnij Ctrl+C w dowolnym momencie aby przerwać.")
185
212
  print("═" * UI_BORDER_WIDTH)
186
213
  print(f"\n Max napraw: {self.max_fixes}")
@@ -242,17 +269,18 @@ class AutonomousSession:
242
269
  if idx >= len(tokens):
243
270
  return False
244
271
  prog = tokens[idx]
245
- if prog in ("dnf", "yum", "pacman", "zypper", "apk", "ufw", "firewall-cmd"):
246
- if shutil.which(prog) is None:
247
- return False
248
- if prog == "systemctl" and "firewalld" in tokens:
249
- if (
250
- shutil.which("firewall-cmd") is None
251
- and not Path("/lib/systemd/system/firewalld.service").exists()
252
- and not Path("/usr/lib/systemd/system/firewalld.service").exists()
253
- ):
254
- return False
255
- return True
272
+ if (
273
+ prog in ("dnf", "yum", "pacman", "zypper", "apk", "ufw", "firewall-cmd")
274
+ and shutil.which(prog) is None
275
+ ):
276
+ return False
277
+ return not (
278
+ prog == "systemctl"
279
+ and "firewalld" in tokens
280
+ and shutil.which("firewall-cmd") is None
281
+ and not Path("/lib/systemd/system/firewalld.service").exists()
282
+ and not Path("/usr/lib/systemd/system/firewalld.service").exists()
283
+ )
256
284
 
257
285
  def _build_heuristic_actions(self) -> list[dict[str, Any]]:
258
286
  """Build deterministic repair and safe cleanup actions without LLM."""
@@ -284,18 +312,29 @@ class AutonomousSession:
284
312
 
285
313
  diag = self.diagnostics if isinstance(self.diagnostics, dict) else {}
286
314
 
287
- # 1. Inspect findings already present in diagnostics dict
315
+ # 1. Inspect findings and alerts already present in diagnostics dict
288
316
  for key, val in diag.items():
289
317
  if isinstance(val, dict):
290
318
  for item in val.get("findings", []) or val.get("problems", []) or []:
291
- if isinstance(item, dict) and item.get("command"):
319
+ if isinstance(item, dict):
292
320
  sev = str(item.get("severity", "warning")).lower()
321
+ title = str(item.get("title") or item.get("description") or key)
293
322
  if sev in ("critical", "warning", "high", "error"):
294
- _add_candidate(
295
- str(item["command"]),
296
- str(item.get("title") or item.get("description") or key),
297
- sev,
298
- )
323
+ if title and title not in self.report.problems_found:
324
+ self.report.problems_found.append(title)
325
+ if item.get("command"):
326
+ _add_candidate(str(item["command"]), title, sev)
327
+ if key == "quick" or "alerts" in val:
328
+ for alert in val.get("alerts", []):
329
+ if isinstance(alert, dict):
330
+ msg = alert.get("message") or alert.get("resource")
331
+ sev = str(alert.get("severity", "warning")).lower()
332
+ if (
333
+ sev in ("critical", "warning", "high", "error")
334
+ and msg
335
+ and msg not in self.report.problems_found
336
+ ):
337
+ self.report.problems_found.append(msg)
299
338
 
300
339
  # 2. Run offline diagnostic plugins if no findings were pre-populated
301
340
  if not actions and diag.get("_run_plugins", True) is not False:
@@ -307,16 +346,20 @@ class AutonomousSession:
307
346
  registry.discover()
308
347
  for res in registry.run():
309
348
  for finding in res.findings:
310
- if finding.command and finding.severity in (
349
+ if finding.severity in (
311
350
  Severity.CRITICAL,
312
351
  Severity.WARNING,
313
352
  ):
314
- _add_candidate(
315
- finding.command,
316
- f"{finding.title}: {finding.description}",
317
- finding.severity.value,
318
- )
319
- except Exception: # noqa: BLE001
353
+ ftitle = f"{finding.title}: {finding.description}"
354
+ if ftitle not in self.report.problems_found:
355
+ self.report.problems_found.append(ftitle)
356
+ if finding.command:
357
+ _add_candidate(
358
+ finding.command,
359
+ ftitle,
360
+ finding.severity.value,
361
+ )
362
+ except Exception: # noqa: BLE001, S110
320
363
  pass
321
364
 
322
365
  # 3. Extract safe disk cleanup suggestions if disk_analysis is present
@@ -335,7 +378,7 @@ class AutonomousSession:
335
378
  str(item.get("description") or "Bezpieczne czyszczenie dysku"),
336
379
  str(item.get("priority") or "medium"),
337
380
  )
338
- except Exception: # noqa: BLE001
381
+ except Exception: # noqa: BLE001, S110
339
382
  pass
340
383
 
341
384
  return actions
@@ -357,18 +400,9 @@ class AutonomousSession:
357
400
  action_data = self._heuristic_queue.pop(0)
358
401
  analysis = action_data.get("analysis", "")
359
402
  reason = action_data.get("reason", "")
360
- cmd = action_data.get("command", "")
361
403
  print(f"\n 📋 Analiza: {analysis}")
362
404
  print(f" 🎯 Akcja: EXEC – {reason}")
363
405
 
364
- if getattr(self, "dry_run", False):
365
- print(f" [DRY-RUN] Pominięto wykonanie: {cmd}")
366
- self.report.fixes_applied.append(
367
- FixAction(command=cmd, reason=reason, result="[DRY-RUN]", success=True)
368
- )
369
- self.fix_count += 1
370
- return True
371
-
372
406
  self._handle_exec(action_data)
373
407
  return True
374
408
 
@@ -386,6 +420,8 @@ class AutonomousSession:
386
420
  def _query_llm(self) -> str | None:
387
421
  """Query LLM and return reply."""
388
422
  try:
423
+ if self.llm is None:
424
+ self.llm = LLMClient(self.config)
389
425
  return self.llm.chat(
390
426
  self.messages, max_tokens=DEFAULT_TOKEN_LIMIT, temperature=0.1
391
427
  )
@@ -522,6 +558,14 @@ class AutonomousSession:
522
558
 
523
559
  cmd = deanonymize(cmd_raw)
524
560
  cmd = self._add_sudo(cmd)
561
+ if getattr(self, "dry_run", False):
562
+ print(f" [DRY-RUN] Pominięto wykonanie: {cmd}")
563
+ self.report.fixes_applied.append(
564
+ FixAction(command=cmd, reason=reason, result="[DRY-RUN]", success=True)
565
+ )
566
+ self.fix_count += 1
567
+ return True
568
+
525
569
  print(f" ▶️ Wykonuję: {cmd}")
526
570
 
527
571
  ok, out = self._execute_command(cmd)
@@ -560,7 +604,7 @@ class AutonomousSession:
560
604
 
561
605
  def _handle_done(self) -> None:
562
606
  """Handle DONE action - session complete."""
563
- print("\n ✅ Agent zakończył – wszystkie problemy naprawione!")
607
+ print("\n ℹ️ Agent zakończył sesję.")
564
608
 
565
609
  def _process_turn(self) -> bool:
566
610
  """Process one turn of the autonomous session.
@@ -0,0 +1,172 @@
1
+ """Additional regenerable leaf caches; never scan personal directories."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import os
6
+ import shutil
7
+ import subprocess
8
+ from pathlib import Path
9
+
10
+ import click
11
+
12
+ # Keep installations, local repositories, model weights and application state out.
13
+ _CACHE_PATHS = (
14
+ ".npm/_npx",
15
+ ".npm/_logs",
16
+ ".ccache",
17
+ ".nv/ComputeCache",
18
+ ".cargo/registry/cache",
19
+ ".cache/pypoetry/cache",
20
+ ".cache/pypoetry/artifacts",
21
+ ".cache/Google/Chrome/Default/Cache",
22
+ ".cache/go-build",
23
+ ".cache/ruff",
24
+ ".cache/mypy",
25
+ ".cache/Flake8",
26
+ ".cache/black",
27
+ )
28
+ _BROWSERS = ("google-chrome", "chromium", "BraveSoftware/Brave-Browser")
29
+ _BROWSER_LEAVES = ("Cache", "Code Cache", "GPUCache", "DawnCache", "ShaderCache")
30
+
31
+
32
+ def cache_path_allowed(home: Path, path: Path) -> bool:
33
+ """Reject symlinked ancestors, nested mounts and paths outside this home.
34
+
35
+ Symlinks *inside* a cache are unlinked by rmtree, never followed. A mount
36
+ inside a cache must instead protect the entire candidate.
37
+ """
38
+ try:
39
+ relative = path.relative_to(home)
40
+ current = home
41
+ for part in relative.parts:
42
+ current = current / part
43
+ if current.is_symlink() or current.is_mount():
44
+ return False
45
+ if not path.is_dir():
46
+ return False
47
+ device = path.stat().st_dev
48
+ for parent, dirs, _ in os.walk(
49
+ path, followlinks=False, onerror=_raise_os_error
50
+ ):
51
+ for name in dirs:
52
+ child = Path(parent) / name
53
+ if not child.is_symlink() and (
54
+ child.is_mount() or child.stat().st_dev != device
55
+ ):
56
+ return False
57
+ return True
58
+ except (OSError, ValueError):
59
+ return False
60
+
61
+
62
+ def _raise_os_error(error: OSError) -> None:
63
+ raise error
64
+
65
+
66
+ def additional_cache_candidates(home: Path | None = None) -> list[dict]:
67
+ from fixos.cli._cleanup_space import _dir_sizes
68
+
69
+ home = home or Path.home()
70
+ paths = [home / relative for relative in _CACHE_PATHS]
71
+ for browser in _BROWSERS:
72
+ root = home / ".cache" / browser
73
+ # Only cache roots, never ~/.config or browser profile databases.
74
+ if root.is_symlink():
75
+ continue
76
+ try:
77
+ profiles = [
78
+ p
79
+ for p in root.iterdir()
80
+ if p.name == "Default" or p.name.startswith("Profile ")
81
+ ]
82
+ except OSError:
83
+ profiles = []
84
+ for profile in [root, *profiles]:
85
+ paths.extend(profile / leaf for leaf in _BROWSER_LEAVES)
86
+ paths = sorted({p for p in paths if cache_path_allowed(home, p)})
87
+ sizes = _dir_sizes(paths)
88
+ return [
89
+ {
90
+ "path": p,
91
+ "description": f"~/{p.relative_to(home)}",
92
+ "size_bytes": sizes.get(str(p), 0),
93
+ "note": "regenerowalny cache",
94
+ }
95
+ for p in paths
96
+ if sizes.get(str(p), 0) > 0
97
+ ]
98
+
99
+
100
+ def cleanup_additional_caches(*, dry_run: bool, yes: bool) -> None:
101
+ from fixos.cli._cleanup_space import (
102
+ _choose,
103
+ _confirm_remove,
104
+ _display_candidates,
105
+ _show_dry_run_commands,
106
+ )
107
+
108
+ home = Path.home()
109
+ candidates = additional_cache_candidates(home)
110
+ if not candidates:
111
+ return
112
+ _display_candidates("DODATKOWE CACHE (bez danych użytkownika):", candidates)
113
+ selected = (
114
+ list(range(len(candidates)))
115
+ if yes
116
+ else _choose(candidates, "Numery cache do usunięcia")
117
+ )
118
+ if dry_run:
119
+ _show_dry_run_commands(
120
+ [["rm", "-rf", str(candidates[i]["path"])] for i in selected]
121
+ )
122
+ return
123
+ if not selected or (not yes and not _confirm_remove()):
124
+ return
125
+ for index in selected:
126
+ path = candidates[index]["path"]
127
+ # Revalidate immediately before deletion, including all ancestors.
128
+ if not cache_path_allowed(home, path):
129
+ click.echo(f" {path}: pominięto (zmiana ścieżki lub punkt montowania)")
130
+ continue
131
+ try:
132
+ shutil.rmtree(path)
133
+ click.echo(f" {path}: usunięto")
134
+ except OSError as error:
135
+ click.echo(f" {path}: pominięto ({error})")
136
+
137
+
138
+ def cleanup_docker_builder(*, dry_run: bool, yes: bool) -> None:
139
+ """Prune only unused build cache older than seven days, with a hard timeout."""
140
+ import shlex
141
+
142
+ if not shutil.which("docker"):
143
+ return
144
+ command = [
145
+ "docker",
146
+ "builder",
147
+ "prune",
148
+ "--all",
149
+ "--force",
150
+ "--filter",
151
+ "until=168h",
152
+ ]
153
+ if dry_run:
154
+ click.echo(f"[DRY-RUN] {shlex.join(command)}")
155
+ return
156
+ if not yes and not click.confirm(
157
+ "Usunąć nieużywany cache budowania Dockera starszy niż 7 dni?"
158
+ ):
159
+ return
160
+ try:
161
+ result = subprocess.run(
162
+ command, capture_output=True, text=True, check=False, timeout=30
163
+ )
164
+ except (OSError, subprocess.TimeoutExpired):
165
+ click.echo(
166
+ "Docker build cache: pominięto (niedostępny daemon lub timeout 30 s)."
167
+ )
168
+ return
169
+ if result.returncode:
170
+ click.echo("Docker build cache: pominięto (daemon odmówił wykonania).")
171
+ else:
172
+ click.echo(result.stdout.strip() or "Docker build cache: zakończono.")