mlx-stack 0.3.3__tar.gz → 0.3.5__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 (245) hide show
  1. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.github/workflows/ci.yml +28 -0
  2. mlx_stack-0.3.5/.github/workflows/integration-nightly.yml +58 -0
  3. mlx_stack-0.3.5/.github/workflows/integration-prerelease.yml +53 -0
  4. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.gitignore +1 -0
  5. mlx_stack-0.3.5/.release-please-manifest.json +3 -0
  6. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/CHANGELOG.md +24 -0
  7. mlx_stack-0.3.5/Makefile +37 -0
  8. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/PKG-INFO +1 -1
  9. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/pyproject.toml +38 -2
  10. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/_version.py +2 -2
  11. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/cli/bench.py +7 -12
  12. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/cli/config.py +1 -3
  13. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/cli/init.py +3 -7
  14. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/cli/install.py +1 -3
  15. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/cli/logs.py +3 -5
  16. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/cli/main.py +3 -0
  17. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/cli/models.py +5 -3
  18. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/cli/profile.py +2 -6
  19. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/cli/pull.py +4 -11
  20. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/cli/recommend.py +8 -21
  21. mlx_stack-0.3.5/src/mlx_stack/cli/setup.py +519 -0
  22. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/cli/up.py +4 -12
  23. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/cli/watch.py +6 -14
  24. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/core/benchmark.py +14 -25
  25. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/core/catalog.py +14 -35
  26. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/core/config.py +10 -8
  27. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/core/deps.py +5 -16
  28. mlx_stack-0.3.5/src/mlx_stack/core/discovery.py +392 -0
  29. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/core/hardware.py +1 -1
  30. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/core/launchd.py +6 -19
  31. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/core/litellm_gen.py +1 -3
  32. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/core/log_rotation.py +4 -9
  33. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/core/log_viewer.py +6 -9
  34. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/core/models.py +36 -35
  35. mlx_stack-0.3.5/src/mlx_stack/core/onboarding.py +465 -0
  36. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/core/process.py +9 -20
  37. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/core/pull.py +11 -24
  38. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/core/scoring.py +29 -21
  39. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/core/stack_down.py +9 -9
  40. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/core/stack_init.py +17 -16
  41. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/core/stack_status.py +29 -24
  42. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/core/stack_up.py +100 -94
  43. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/core/watchdog.py +6 -11
  44. mlx_stack-0.3.5/src/mlx_stack/data/benchmark_data.json +1594 -0
  45. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/data/catalog/deepseek-r1-32b.yaml +1 -0
  46. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/data/catalog/nemotron-49b.yaml +1 -0
  47. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/data/catalog/nemotron-8b.yaml +1 -0
  48. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/data/catalog/qwen3.5-14b.yaml +1 -0
  49. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/data/catalog/qwen3.5-32b.yaml +1 -0
  50. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/data/catalog/qwen3.5-3b.yaml +1 -0
  51. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/data/catalog/qwen3.5-72b.yaml +1 -0
  52. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/data/catalog/qwen3.5-8b.yaml +1 -0
  53. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/conftest.py +2 -2
  54. mlx_stack-0.3.5/tests/factories.py +298 -0
  55. mlx_stack-0.3.5/tests/fakes.py +190 -0
  56. mlx_stack-0.3.5/tests/integration/conftest.py +533 -0
  57. mlx_stack-0.3.5/tests/integration/report.py +99 -0
  58. mlx_stack-0.3.5/tests/integration/test_catalog_validation.py +226 -0
  59. mlx_stack-0.3.5/tests/integration/test_harness_compatibility.py +235 -0
  60. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/integration/test_inference_e2e.py +8 -15
  61. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/integration/test_launchd_e2e.py +12 -28
  62. mlx_stack-0.3.5/tests/integration/test_model_smoke.py +390 -0
  63. mlx_stack-0.3.5/tests/integration/test_stack_integration.py +337 -0
  64. mlx_stack-0.3.5/tests/unit/conftest.py +106 -0
  65. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_benchmark.py +48 -46
  66. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_catalog.py +31 -15
  67. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_cli.py +8 -4
  68. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_cli_bench.py +58 -25
  69. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_cli_down.py +195 -142
  70. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_cli_init.py +333 -273
  71. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_cli_install.py +14 -38
  72. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_cli_logs.py +32 -47
  73. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_cli_models.py +104 -146
  74. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_cli_profile.py +28 -84
  75. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_cli_pull.py +294 -118
  76. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_cli_recommend.py +214 -186
  77. mlx_stack-0.3.5/tests/unit/test_cli_setup.py +199 -0
  78. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_cli_status.py +176 -192
  79. mlx_stack-0.3.5/tests/unit/test_cli_up.py +1148 -0
  80. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_cli_watch.py +14 -23
  81. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_config.py +4 -7
  82. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_cross_area.py +86 -150
  83. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_deps.py +16 -35
  84. mlx_stack-0.3.5/tests/unit/test_discovery.py +326 -0
  85. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_hardware.py +5 -8
  86. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_launchd.py +16 -43
  87. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_lifecycle_fixes.py +66 -168
  88. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_litellm_gen.py +3 -12
  89. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_log_rotation.py +27 -27
  90. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_log_viewer.py +51 -68
  91. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_models.py +17 -49
  92. mlx_stack-0.3.5/tests/unit/test_onboarding.py +446 -0
  93. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_ops_cross_area.py +139 -95
  94. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_paths.py +1 -3
  95. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_process.py +23 -20
  96. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_robustness_fixes.py +56 -86
  97. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_scoring.py +139 -260
  98. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_watchdog.py +202 -104
  99. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/uv.lock +1 -1
  100. mlx_stack-0.3.3/.release-please-manifest.json +0 -3
  101. mlx_stack-0.3.3/Makefile +0 -20
  102. mlx_stack-0.3.3/tests/unit/test_cli_up.py +0 -1584
  103. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/init.sh +0 -0
  104. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/library/architecture.md +0 -0
  105. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/library/environment.md +0 -0
  106. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/library/user-testing.md +0 -0
  107. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/services.yaml +0 -0
  108. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/settings.json +0 -0
  109. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/skills/cli-feature/SKILL.md +0 -0
  110. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/foundation/scrutiny/reviews/configuration-management.json +0 -0
  111. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/foundation/scrutiny/reviews/dependency-management.json +0 -0
  112. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/foundation/scrutiny/reviews/fix-catalog-errors-and-families.json +0 -0
  113. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/foundation/scrutiny/reviews/fix-deps-binary-and-ansi.json +0 -0
  114. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/foundation/scrutiny/reviews/fix-scaffolding-data-home.json +0 -0
  115. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/foundation/scrutiny/reviews/hardware-detection.json +0 -0
  116. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/foundation/scrutiny/reviews/model-catalog.json +0 -0
  117. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/foundation/scrutiny/reviews/project-scaffolding.json +0 -0
  118. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/foundation/scrutiny/synthesis.json +0 -0
  119. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/foundation/scrutiny/synthesis.round1.json +0 -0
  120. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/foundation/user-testing/flows/foundation-config-basic.json +0 -0
  121. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/foundation/user-testing/flows/foundation-config-deps.json +0 -0
  122. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/foundation/user-testing/flows/foundation-profile-catalog.json +0 -0
  123. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/foundation/user-testing/flows/foundation-setup-profile-core.json +0 -0
  124. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/foundation/user-testing/synthesis.json +0 -0
  125. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/lifecycle/scrutiny/reviews/down-command.json +0 -0
  126. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/lifecycle/scrutiny/reviews/fix-lifecycle-preflight-and-readonly.json +0 -0
  127. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/lifecycle/scrutiny/reviews/fix-lifecycle-process-robustness.json +0 -0
  128. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/lifecycle/scrutiny/reviews/fix-lifecycle-typecheck.json +0 -0
  129. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/lifecycle/scrutiny/reviews/process-management.json +0 -0
  130. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/lifecycle/scrutiny/reviews/status-command.json +0 -0
  131. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/lifecycle/scrutiny/reviews/up-command.json +0 -0
  132. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/lifecycle/scrutiny/synthesis.json +0 -0
  133. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/lifecycle/scrutiny/synthesis.round1.json +0 -0
  134. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/lifecycle/user-testing/flows/r1-g1-deps-up-basics.json +0 -0
  135. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/lifecycle/user-testing/flows/r1-g2-up-startup.json +0 -0
  136. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/lifecycle/user-testing/flows/r1-g3-up-resilience.json +0 -0
  137. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/lifecycle/user-testing/flows/r1-g4-down.json +0 -0
  138. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/lifecycle/user-testing/flows/r1-g5-status.json +0 -0
  139. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/lifecycle/user-testing/flows/r1-g6-cross.json +0 -0
  140. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/lifecycle/user-testing/flows/r2-g1-fixes.json +0 -0
  141. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/lifecycle/user-testing/flows/r2-g2-cross-blockers.json +0 -0
  142. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/lifecycle/user-testing/synthesis.json +0 -0
  143. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/lifecycle/user-testing/synthesis.round1.json +0 -0
  144. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/misc-cross-area/scrutiny/reviews/fix-cross-area-test-rigor.json +0 -0
  145. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/misc-cross-area/scrutiny/reviews/misc-cross-area-validation.json +0 -0
  146. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/misc-cross-area/scrutiny/synthesis.json +0 -0
  147. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/misc-cross-area/scrutiny/synthesis.round1.json +0 -0
  148. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/misc-cross-area/user-testing/flows/r1-g1-cross-flows.json +0 -0
  149. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/misc-cross-area/user-testing/flows/r2-g4-cross-port5050.json +0 -0
  150. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/misc-cross-area/user-testing/synthesis.json +0 -0
  151. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/misc-cross-area/user-testing/synthesis.round1.json +0 -0
  152. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/ops/scrutiny/reviews/fix-ops-lint-errors.json +0 -0
  153. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/ops/scrutiny/reviews/fix-ops-scrutiny-issues.json +0 -0
  154. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/ops/scrutiny/reviews/fix-ops-typecheck-errors.json +0 -0
  155. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/ops/scrutiny/reviews/launchd-integration.json +0 -0
  156. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/ops/scrutiny/reviews/log-rotation.json +0 -0
  157. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/ops/scrutiny/reviews/logs-command.json +0 -0
  158. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/ops/scrutiny/reviews/ops-cross-area-validation.json +0 -0
  159. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/ops/scrutiny/reviews/watchdog-command.json +0 -0
  160. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/ops/scrutiny/synthesis.json +0 -0
  161. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/ops/scrutiny/synthesis.round1.json +0 -0
  162. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/ops/user-testing/flows/g1-log.json +0 -0
  163. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/ops/user-testing/flows/g2-logs-command.json +0 -0
  164. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/ops/user-testing/flows/g3-watch.json +0 -0
  165. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/ops/user-testing/flows/g4-launchd.json +0 -0
  166. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/ops/user-testing/flows/g5-cross-ops.json +0 -0
  167. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/ops/user-testing/synthesis.json +0 -0
  168. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/public-ready/scrutiny/reviews/community-docs.json +0 -0
  169. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/public-ready/scrutiny/reviews/developing-guide.json +0 -0
  170. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/public-ready/scrutiny/reviews/fix-public-ready-scrutiny.json +0 -0
  171. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/public-ready/scrutiny/reviews/github-actions-ci.json +0 -0
  172. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/public-ready/scrutiny/reviews/readme-rewrite.json +0 -0
  173. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/public-ready/scrutiny/synthesis.json +0 -0
  174. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/public-ready/scrutiny/synthesis.round1.json +0 -0
  175. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/recommendation/scrutiny/reviews/fix-init-and-models-issues.json +0 -0
  176. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/recommendation/scrutiny/reviews/fix-recommendation-scoring-issues.json +0 -0
  177. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/recommendation/scrutiny/reviews/fix-scoring-lint.json +0 -0
  178. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/recommendation/scrutiny/reviews/init-command.json +0 -0
  179. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/recommendation/scrutiny/reviews/models-command.json +0 -0
  180. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/recommendation/scrutiny/reviews/recommend-command.json +0 -0
  181. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/recommendation/scrutiny/reviews/scoring-engine.json +0 -0
  182. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/recommendation/scrutiny/synthesis.json +0 -0
  183. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/recommendation/scrutiny/synthesis.round1.json +0 -0
  184. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/recommendation/user-testing/flows/g1-recommend-budget-ranking.json +0 -0
  185. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/recommendation/user-testing/flows/g2-recommend-output-integration.json +0 -0
  186. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/recommendation/user-testing/flows/g3-init-core-routing.json +0 -0
  187. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/recommendation/user-testing/flows/g4-init-cloud-overwrite.json +0 -0
  188. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/recommendation/user-testing/flows/g5-init-hardware-summary.json +0 -0
  189. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/recommendation/user-testing/flows/g6-models-local.json +0 -0
  190. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/recommendation/user-testing/flows/g7-models-catalog.json +0 -0
  191. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/recommendation/user-testing/flows/r2-g1-recommend.json +0 -0
  192. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/recommendation/user-testing/flows/r2-g2-models-catalog-filters.json +0 -0
  193. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/recommendation/user-testing/flows/r2-g3-cross-012.json +0 -0
  194. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/recommendation/user-testing/synthesis.json +0 -0
  195. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/recommendation/user-testing/synthesis.round1.json +0 -0
  196. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/tooling/scrutiny/reviews/bench-command.json +0 -0
  197. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/tooling/scrutiny/reviews/fix-tooling-scrutiny-issues.json +0 -0
  198. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/tooling/scrutiny/reviews/pull-command.json +0 -0
  199. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/tooling/scrutiny/synthesis.json +0 -0
  200. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/tooling/scrutiny/synthesis.round1.json +0 -0
  201. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/tooling/user-testing/flows/g1-pull-core.json +0 -0
  202. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/tooling/user-testing/flows/g2-pull-errors.json +0 -0
  203. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/tooling/user-testing/flows/g3-bench-core.json +0 -0
  204. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/tooling/user-testing/flows/g4-bench-advanced.json +0 -0
  205. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/tooling/user-testing/flows/r2-g1-pull.json +0 -0
  206. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/tooling/user-testing/flows/r2-g2-bench.json +0 -0
  207. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/tooling/user-testing/flows/r3-g1-pull.json +0 -0
  208. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/tooling/user-testing/flows/r3-g2-bench.json +0 -0
  209. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/tooling/user-testing/flows/r4-g1-bench.json +0 -0
  210. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/tooling/user-testing/synthesis.json +0 -0
  211. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/tooling/user-testing/synthesis.round1.json +0 -0
  212. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/tooling/user-testing/synthesis.round2.json +0 -0
  213. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.factory/validation/tooling/user-testing/synthesis.round3.json +0 -0
  214. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.github/release.yml +0 -0
  215. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.github/workflows/publish.yml +0 -0
  216. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/.github/workflows/release-please.yml +0 -0
  217. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/CODE_OF_CONDUCT.md +0 -0
  218. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/CONTRIBUTING.md +0 -0
  219. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/DEVELOPING.md +0 -0
  220. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/LICENSE +0 -0
  221. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/README.md +0 -0
  222. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/SECURITY.md +0 -0
  223. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/release-please-config.json +0 -0
  224. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/__init__.py +0 -0
  225. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/cli/__init__.py +0 -0
  226. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/cli/down.py +0 -0
  227. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/cli/status.py +0 -0
  228. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/core/__init__.py +0 -0
  229. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/core/paths.py +0 -0
  230. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/data/__init__.py +0 -0
  231. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/data/catalog/__init__.py +0 -0
  232. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/data/catalog/deepseek-r1-8b.yaml +0 -0
  233. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/data/catalog/gemma3-12b.yaml +0 -0
  234. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/data/catalog/gemma3-27b.yaml +0 -0
  235. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/data/catalog/gemma3-4b.yaml +0 -0
  236. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/data/catalog/llama3.3-8b.yaml +0 -0
  237. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/data/catalog/qwen3-8b.yaml +0 -0
  238. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/data/catalog/qwen3.5-0.8b.yaml +0 -0
  239. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/py.typed +0 -0
  240. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/src/mlx_stack/utils/__init__.py +0 -0
  241. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/__init__.py +0 -0
  242. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/integration/__init__.py +0 -0
  243. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/__init__.py +0 -0
  244. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_cli_config.py +0 -0
  245. {mlx_stack-0.3.3 → mlx_stack-0.3.5}/tests/unit/test_data_dir.py +0 -0
@@ -49,3 +49,31 @@ jobs:
49
49
  with:
50
50
  name: coverage-report
51
51
  path: coverage.xml
52
+
53
+ catalog-validation:
54
+ name: Catalog Validation
55
+ runs-on: macos-latest
56
+ needs: ci
57
+ strategy:
58
+ matrix:
59
+ python-version: ["3.13"]
60
+
61
+ steps:
62
+ - name: Checkout code
63
+ uses: actions/checkout@v6
64
+ with:
65
+ fetch-depth: 0
66
+
67
+ - name: Install uv
68
+ uses: astral-sh/setup-uv@v7
69
+ with:
70
+ enable-cache: true
71
+
72
+ - name: Install Python ${{ matrix.python-version }}
73
+ run: uv python install ${{ matrix.python-version }}
74
+
75
+ - name: Install dependencies
76
+ run: make install
77
+
78
+ - name: Validate catalog entries
79
+ run: make test-catalog
@@ -0,0 +1,58 @@
1
+ name: Nightly Integration
2
+
3
+ on:
4
+ schedule:
5
+ - cron: "0 6 * * *" # 6 AM UTC daily
6
+ workflow_dispatch:
7
+ inputs:
8
+ model:
9
+ description: "Specific model ID to test (blank = all non-gated models that fit in memory)"
10
+ required: false
11
+
12
+ concurrency:
13
+ group: nightly-integration
14
+ cancel-in-progress: true
15
+
16
+ jobs:
17
+ smoke:
18
+ name: Model Smoke Tests
19
+ runs-on: macos-latest
20
+ timeout-minutes: 120
21
+
22
+ steps:
23
+ - name: Checkout code
24
+ uses: actions/checkout@v6
25
+ with:
26
+ fetch-depth: 0
27
+
28
+ - name: Install uv
29
+ uses: astral-sh/setup-uv@v7
30
+ with:
31
+ enable-cache: true
32
+
33
+ - name: Install Python 3.13
34
+ run: uv python install 3.13
35
+
36
+ - name: Install project dependencies
37
+ run: make install
38
+
39
+ - name: Install vllm-mlx
40
+ run: uv tool install vllm-mlx==0.2.6
41
+
42
+ - name: Run smoke tests
43
+ run: |
44
+ MODEL_FILTER="${{ github.event.inputs.model }}"
45
+ if [ -n "$MODEL_FILTER" ]; then
46
+ uv run pytest -m smoke -k "$MODEL_FILTER" -v --tb=long
47
+ else
48
+ uv run pytest -m smoke -v --tb=long
49
+ fi
50
+ env:
51
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
52
+
53
+ - name: Upload compatibility matrix
54
+ uses: actions/upload-artifact@v4
55
+ if: always()
56
+ with:
57
+ name: compatibility-matrix
58
+ path: ~/.mlx-stack-test-cache/reports/
@@ -0,0 +1,53 @@
1
+ name: Pre-Release Integration
2
+
3
+ on:
4
+ release:
5
+ types: [created]
6
+ workflow_dispatch:
7
+
8
+ concurrency:
9
+ group: prerelease-integration
10
+ cancel-in-progress: true
11
+
12
+ jobs:
13
+ stack-integration:
14
+ name: Full Stack Integration
15
+ runs-on: macos-latest
16
+ timeout-minutes: 60
17
+
18
+ steps:
19
+ - name: Checkout code
20
+ uses: actions/checkout@v6
21
+ with:
22
+ fetch-depth: 0
23
+
24
+ - name: Install uv
25
+ uses: astral-sh/setup-uv@v7
26
+ with:
27
+ enable-cache: true
28
+
29
+ - name: Install Python 3.13
30
+ run: uv python install 3.13
31
+
32
+ - name: Install project dependencies
33
+ run: uv sync --dev
34
+
35
+ - name: Install openai for harness tests
36
+ run: uv pip install openai>=1.0
37
+
38
+ - name: Install vllm-mlx and litellm
39
+ run: |
40
+ uv tool install vllm-mlx==0.2.6
41
+ uv tool install "litellm[proxy]==1.83.0"
42
+
43
+ - name: Run stack integration tests
44
+ run: uv run pytest -m "integration or harness" -v --tb=long
45
+ env:
46
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
47
+
48
+ - name: Upload test results
49
+ uses: actions/upload-artifact@v4
50
+ if: always()
51
+ with:
52
+ name: integration-results
53
+ path: ~/.mlx-stack-test-cache/reports/
@@ -34,3 +34,4 @@ htmlcov/
34
34
 
35
35
  # Ruff
36
36
  .ruff_cache/
37
+ REQUIREMENTS.md
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.3.5"
3
+ }
@@ -4,6 +4,30 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.3.5](https://github.com/weklund/mlx-stack/compare/v0.3.4...v0.3.5) (2026-04-04)
8
+
9
+
10
+ ### Features
11
+
12
+ * expand ruff lint rules with tier 1+2 quality rulesets ([#22](https://github.com/weklund/mlx-stack/issues/22)) ([75490f6](https://github.com/weklund/mlx-stack/commit/75490f6817a87a6b63818fa1f7c1660e59766ba3))
13
+
14
+
15
+ ### Refactors
16
+
17
+ * **tests:** replace brittle mock-heavy tests with behavioral tests and shared factories ([#32](https://github.com/weklund/mlx-stack/issues/32)) ([9af6078](https://github.com/weklund/mlx-stack/commit/9af60781e14c1466219ee2644928db9c9a39041e))
18
+ - `FakeServiceLayer` replaces 10-deep `@patch` stacks in `TestRunUp`
19
+ - Consolidate ~50 duplicate helpers into `tests/factories.py`
20
+ - AAA comments (`# Arrange`, `# Act`, `# Assert`) across 17 test files
21
+ - `make lint` now includes pyright for shift-left type checking
22
+ - Net: -577 lines, 1,481 tests pass, 73% reduction in `@patch` usage
23
+
24
+ ## [0.3.4](https://github.com/weklund/mlx-stack/compare/v0.3.3...v0.3.4) (2026-04-03)
25
+
26
+
27
+ ### Features
28
+
29
+ * 4-tier integration testing framework ([#16](https://github.com/weklund/mlx-stack/issues/16)) ([e3dcf9a](https://github.com/weklund/mlx-stack/commit/e3dcf9ae4eaa55ee8ca522819d3dc16846d3e1ea))
30
+
7
31
  ## [0.3.3](https://github.com/weklund/mlx-stack/compare/v0.3.2...v0.3.3) (2026-04-02)
8
32
 
9
33
 
@@ -0,0 +1,37 @@
1
+ .PHONY: install lint typecheck test check test-catalog test-smoke test-integration test-harness
2
+
3
+ ## Install dev dependencies
4
+ install:
5
+ uv sync --dev
6
+
7
+ ## Lint source and tests (ruff + pyright)
8
+ lint:
9
+ uv run ruff check src/ tests/
10
+ uv run python -m pyright
11
+
12
+ ## Run type checker only (alias kept for CI compatibility)
13
+ typecheck:
14
+ uv run python -m pyright
15
+
16
+ ## Run tests with coverage
17
+ test:
18
+ uv run pytest --cov=src/mlx_stack -x -q --tb=short
19
+
20
+ ## Run all checks (same as CI)
21
+ check: lint typecheck test
22
+
23
+ ## Run catalog validation (requires network, no models)
24
+ test-catalog:
25
+ uv run pytest -m catalog_validation -v --tb=short
26
+
27
+ ## Run per-model smoke tests (requires macOS + vllm-mlx)
28
+ test-smoke:
29
+ uv run pytest -m smoke -v --tb=long
30
+
31
+ ## Run full stack integration tests (requires macOS + vllm-mlx + litellm)
32
+ test-integration:
33
+ uv run pytest -m integration -v --tb=long
34
+
35
+ ## Run harness compatibility tests (requires above + openai)
36
+ test-harness:
37
+ uv run pytest -m harness -v --tb=long
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mlx-stack
3
- Version: 0.3.3
3
+ Version: 0.3.5
4
4
  Summary: CLI control plane for local LLM infrastructure on Apple Silicon
5
5
  Project-URL: Homepage, https://github.com/weklund/mlx-stack
6
6
  Project-URL: Repository, https://github.com/weklund/mlx-stack
@@ -53,9 +53,12 @@ packages = ["src/mlx_stack"]
53
53
  [tool.pytest.ini_options]
54
54
  testpaths = ["tests"]
55
55
  pythonpath = ["src"]
56
- addopts = "-x -q --tb=short -m 'not integration'"
56
+ addopts = "-x -q --tb=short -m 'not integration and not smoke and not catalog_validation and not harness'"
57
57
  markers = [
58
58
  "integration: real system integration tests (launchctl, etc.)",
59
+ "smoke: per-model smoke tests requiring model download and inference",
60
+ "catalog_validation: catalog data integrity checks (requires network, no models)",
61
+ "harness: external tool compatibility tests (OpenAI client, streaming)",
59
62
  ]
60
63
 
61
64
  [tool.ruff]
@@ -64,7 +67,40 @@ line-length = 100
64
67
  src = ["src", "tests"]
65
68
 
66
69
  [tool.ruff.lint]
67
- select = ["E", "F", "I", "W"]
70
+ select = [
71
+ # Tier 1 — high value, very safe
72
+ "E", # pycodestyle errors
73
+ "F", # pyflakes
74
+ "I", # isort
75
+ "W", # pycodestyle warnings
76
+ "UP", # pyupgrade — modern Python syntax
77
+ "B", # bugbear — common bug patterns
78
+ "SIM", # simplify — reduce complexity
79
+ "C4", # flake8-comprehensions
80
+ "RUF", # Ruff-specific rules
81
+ # Tier 2 — strong value, minor tuning
82
+ "PIE", # misc cleanup
83
+ "RET", # return simplification
84
+ "PERF", # performance anti-patterns
85
+ "PT", # pytest style
86
+ # "C90", # mccabe complexity — enable after refactoring complex functions
87
+ "FURB", # modernization
88
+ "FLY", # f-string conversion
89
+ ]
90
+ ignore = [
91
+ "E501", # line length (formatter handles this)
92
+ "SIM108", # ternary operator (opinionated)
93
+ "SIM117", # nested with statements (clearer in test mocking patterns)
94
+ "PT018", # composite assertions (splitting weakens error messages)
95
+ "PT019", # fixture without value (usefixtures less readable)
96
+ "PT017", # assert in except (valid test pattern)
97
+ ]
98
+
99
+ [tool.ruff.lint.mccabe]
100
+ max-complexity = 10
101
+
102
+ [tool.ruff.lint.per-file-ignores]
103
+ "src/mlx_stack/_version.py" = ["RUF022"] # auto-generated by hatch-vcs
68
104
 
69
105
  [tool.pyright]
70
106
  pythonVersion = "3.13"
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '0.3.3'
22
- __version_tuple__ = version_tuple = (0, 3, 3)
21
+ __version__ = version = '0.3.5'
22
+ __version_tuple__ = version_tuple = (0, 3, 5)
23
23
 
24
24
  __commit_id__ = commit_id = None
@@ -168,23 +168,16 @@ def _display_results(result: BenchmarkResult_, out: Console, save: bool = False)
168
168
  out.print(Text("Tool Calling", style="bold cyan"))
169
169
  tc = result.tool_call_result
170
170
  if tc.success:
171
- out.print(
172
- f" [green]✓ Valid tool call[/green] — "
173
- f"round-trip: {tc.round_trip_time:.2f}s"
174
- )
171
+ out.print(f" [green]✓ Valid tool call[/green] — round-trip: {tc.round_trip_time:.2f}s")
175
172
  else:
176
- out.print(
177
- f" [red]✗ Tool call failed[/red] — {tc.error}"
178
- )
173
+ out.print(f" [red]✗ Tool call failed[/red] — {tc.error}")
179
174
  out.print()
180
175
  elif not result.tool_call_result:
181
176
  # Check if model supports tool calling from entry
182
177
  if not result.catalog_data_available:
183
178
  pass # Skip silently if no catalog data
184
179
  else:
185
- out.print(
186
- "[dim]Tool calling: skipped (model does not support tool calling)[/dim]"
187
- )
180
+ out.print("[dim]Tool calling: skipped (model does not support tool calling)[/dim]")
188
181
  out.print()
189
182
 
190
183
  # Iteration details
@@ -212,6 +205,8 @@ def _display_results(result: BenchmarkResult_, out: Console, save: bool = False)
212
205
 
213
206
  # Save confirmation
214
207
  if save:
215
- out.print("[green]✓ Results saved.[/green] "
216
- "These will be used by 'recommend' and 'init' for scoring.")
208
+ out.print(
209
+ "[green]✓ Results saved.[/green] "
210
+ "These will be used by 'recommend' and 'init' for scoring."
211
+ )
217
212
  out.print()
@@ -138,9 +138,7 @@ def config_reset(yes: bool, force: bool) -> None:
138
138
  # Check if stdin is a TTY for interactive confirmation
139
139
  try:
140
140
  if click.get_text_stream("stdin").isatty():
141
- confirmed = click.confirm(
142
- "Reset all configuration to defaults?", default=False
143
- )
141
+ confirmed = click.confirm("Reset all configuration to defaults?", default=False)
144
142
  else:
145
143
  console.print(
146
144
  "[bold red]Error:[/bold red] Reset requires --yes or --force flag "
@@ -64,13 +64,10 @@ def _display_summary(result: dict) -> None:
64
64
  budget_gb = result["memory_budget_gb"]
65
65
  total_memory_gb = result.get("total_memory_gb", 0.0)
66
66
  out.print(
67
- f"[dim]Hardware: {profile.chip} ({profile.memory_gb} GB) · "
68
- f"Budget: {budget_gb:.1f} GB[/dim]"
67
+ f"[dim]Hardware: {profile.chip} ({profile.memory_gb} GB) · Budget: {budget_gb:.1f} GB[/dim]"
69
68
  )
70
69
  if total_memory_gb > 0:
71
- out.print(
72
- f"[dim]Total estimated memory: {total_memory_gb:.1f} GB[/dim]"
73
- )
70
+ out.print(f"[dim]Total estimated memory: {total_memory_gb:.1f} GB[/dim]")
74
71
 
75
72
  # Warnings (e.g., memory budget exceeded with --add)
76
73
  init_warnings = result.get("warnings", [])
@@ -83,8 +80,7 @@ def _display_summary(result: dict) -> None:
83
80
  if stack.get("cloud_fallback"):
84
81
  out.print()
85
82
  out.print(
86
- "[bold green]☁ Cloud Fallback[/bold green] "
87
- "Premium tier via OpenRouter configured"
83
+ "[bold green]☁ Cloud Fallback[/bold green] Premium tier via OpenRouter configured"
88
84
  )
89
85
 
90
86
  # Missing models warning
@@ -42,9 +42,7 @@ def _display_status(status: AgentStatus) -> None:
42
42
  if not status.installed:
43
43
  out.print(Text("Status: not installed", style="dim"))
44
44
  elif status.running and status.pid is not None:
45
- out.print(
46
- Text(f"Status: installed and running (PID {status.pid})", style="green")
47
- )
45
+ out.print(Text(f"Status: installed and running (PID {status.pid})", style="green"))
48
46
  else:
49
47
  out.print(Text("Status: installed but not running", style="yellow"))
50
48
 
@@ -6,6 +6,7 @@ trigger on-demand rotation, and view archived logs.
6
6
 
7
7
  from __future__ import annotations
8
8
 
9
+ import contextlib
9
10
  import sys
10
11
 
11
12
  import click
@@ -78,7 +79,7 @@ def _display_rotation_results(results: list) -> None:
78
79
  out.print(f"[green]✓[/green] {result.service}: rotated")
79
80
  any_rotated = True
80
81
  else:
81
- out.print(f"[dim][/dim] {result.service}: no rotation needed")
82
+ out.print(f"[dim]-[/dim] {result.service}: no rotation needed")
82
83
 
83
84
  if not results:
84
85
  out.print(Text("No log files found to rotate.", style="yellow"))
@@ -213,11 +214,8 @@ def logs(
213
214
  # Handle --follow mode
214
215
  if follow:
215
216
  num = tail_lines if tail_lines is not None else DEFAULT_TAIL_LINES
216
- try:
217
+ with contextlib.suppress(KeyboardInterrupt):
217
218
  follow_log(log_path, num_lines=num, output_callback=click.echo)
218
- except KeyboardInterrupt:
219
- # Belt-and-suspenders: ensure clean exit
220
- pass
221
219
  return
222
220
 
223
221
  # Default: show tail of log
@@ -25,6 +25,7 @@ from mlx_stack.cli.models import models as models_command
25
25
  from mlx_stack.cli.profile import profile as profile_command
26
26
  from mlx_stack.cli.pull import pull as pull_command
27
27
  from mlx_stack.cli.recommend import recommend as recommend_command
28
+ from mlx_stack.cli.setup import setup as setup_command
28
29
  from mlx_stack.cli.status import status as status_command
29
30
  from mlx_stack.cli.up import up as up_command
30
31
  from mlx_stack.cli.watch import watch as watch_command
@@ -73,6 +74,7 @@ class RichGroup(click.Group):
73
74
  }
74
75
 
75
76
  command_categories = {
77
+ "setup": "Setup & Configuration",
76
78
  "profile": "Setup & Configuration",
77
79
  "config": "Setup & Configuration",
78
80
  "init": "Setup & Configuration",
@@ -165,6 +167,7 @@ def cli(ctx: click.Context) -> None:
165
167
  # These will be replaced by real implementations in subsequent features.
166
168
 
167
169
 
170
+ cli.add_command(setup_command, "setup")
168
171
  cli.add_command(profile_command, "profile")
169
172
  cli.add_command(recommend_command, "recommend")
170
173
  cli.add_command(init_command, "init")
@@ -80,7 +80,7 @@ def _display_local_models() -> None:
80
80
  indicator_style = "bold green" if model.is_active else ""
81
81
 
82
82
  # Display name: prefer catalog name, fall back to directory name
83
- display_name = model.catalog_name if model.catalog_name else model.name
83
+ display_name = model.catalog_name or model.name
84
84
 
85
85
  # Size
86
86
  size_str = format_size(model.disk_size_bytes)
@@ -217,7 +217,7 @@ def _display_catalog(
217
217
  local_style = "bold green" if cm.is_local else ""
218
218
 
219
219
  # Parameters
220
- params_str = f"{cm.params_b:.1f}B" if cm.params_b >= 1.0 else f"{cm.params_b:.1f}B"
220
+ params_str = f"{cm.params_b:.1f}B"
221
221
 
222
222
  # Quantizations
223
223
  quants_str = ", ".join(cm.quants)
@@ -270,7 +270,9 @@ def _display_catalog(
270
270
  @click.option("--family", default=None, help="Filter catalog by model family (e.g., 'qwen3.5').")
271
271
  @click.option("--tag", default=None, help="Filter catalog by tag (e.g., 'agent-ready').")
272
272
  @click.option(
273
- "--tool-calling", "tool_calling", is_flag=True,
273
+ "--tool-calling",
274
+ "tool_calling",
275
+ is_flag=True,
274
276
  help="Filter catalog to tool-calling-capable models only.",
275
277
  )
276
278
  def models(
@@ -52,12 +52,8 @@ def profile() -> None:
52
52
 
53
53
  if hw.is_estimate:
54
54
  out.print()
55
- out.print(
56
- "[yellow] Bandwidth is estimated for unknown chip.[/yellow]"
57
- )
58
- out.print(
59
- " Run [bold]mlx-stack bench --save[/bold] to calibrate with real measurements."
60
- )
55
+ out.print("[yellow]⚠ Bandwidth is estimated for unknown chip.[/yellow]")
56
+ out.print(" Run [bold]mlx-stack bench --save[/bold] to calibrate with real measurements.")
61
57
 
62
58
  out.print()
63
59
  from mlx_stack.core.paths import get_profile_path
@@ -115,20 +115,13 @@ def _run_post_download_bench(model_id: str, quant: str, out: Console) -> None:
115
115
  from mlx_stack.core.benchmark import BenchmarkError, run_benchmark
116
116
 
117
117
  result = run_benchmark(target=model_id, save=True)
118
- out.print(
119
- f" Prompt TPS: {result.prompt_tps_mean:.1f} ± {result.prompt_tps_std:.1f} tok/s"
120
- )
121
- out.print(
122
- f" Gen TPS: {result.gen_tps_mean:.1f} ± {result.gen_tps_std:.1f} tok/s"
123
- )
118
+ out.print(f" Prompt TPS: {result.prompt_tps_mean:.1f} ± {result.prompt_tps_std:.1f} tok/s")
119
+ out.print(f" Gen TPS: {result.gen_tps_mean:.1f} ± {result.gen_tps_std:.1f} tok/s")
124
120
  out.print()
125
- out.print(
126
- "[dim]Results saved for use by 'recommend' and 'init' scoring.[/dim]"
127
- )
121
+ out.print("[dim]Results saved for use by 'recommend' and 'init' scoring.[/dim]")
128
122
  except BenchmarkError as exc:
129
123
  out.print(
130
- f"[yellow]Benchmark failed: {exc}[/yellow]\n"
131
- f"Run 'mlx-stack bench {model_id}' to retry."
124
+ f"[yellow]Benchmark failed: {exc}[/yellow]\nRun 'mlx-stack bench {model_id}' to retry."
132
125
  )
133
126
  except Exception as exc:
134
127
  out.print(
@@ -67,9 +67,7 @@ def parse_budget(raw: str) -> float:
67
67
 
68
68
  value = float(match.group(1))
69
69
  if value <= 0:
70
- msg = (
71
- f"Invalid budget '{raw}'. Budget must be a positive value."
72
- )
70
+ msg = f"Invalid budget '{raw}'. Budget must be a positive value."
73
71
  raise click.BadParameter(msg, param_hint="'--budget'")
74
72
 
75
73
  return value
@@ -96,8 +94,7 @@ def _resolve_profile() -> HardwareProfile:
96
94
  # Auto-detect (in-memory only — recommend is display-only, no file writes)
97
95
  console.print("[dim]No saved profile found — detecting hardware...[/dim]")
98
96
  try:
99
- profile = detect_hardware()
100
- return profile
97
+ return detect_hardware()
101
98
  except HardwareError as exc:
102
99
  console.print(f"[bold red]Error:[/bold red] {exc}")
103
100
  raise SystemExit(1) from None
@@ -206,12 +203,8 @@ def _display_tier_table(result: RecommendationResult) -> None:
206
203
  has_estimates = any(t.model.is_estimated for t in result.tiers)
207
204
  if has_estimates:
208
205
  out.print()
209
- out.print(
210
- "[yellow] Some performance values are estimated from bandwidth ratio.[/yellow]"
211
- )
212
- out.print(
213
- " Run [bold]mlx-stack bench --save[/bold] to calibrate with real measurements."
214
- )
206
+ out.print("[yellow]⚠ Some performance values are estimated from bandwidth ratio.[/yellow]")
207
+ out.print(" Run [bold]mlx-stack bench --save[/bold] to calibrate with real measurements.")
215
208
 
216
209
  out.print()
217
210
  out.print("[dim]This is a recommendation only — no files were written.[/dim]")
@@ -268,20 +261,15 @@ def _display_all_models(result: RecommendationResult) -> None:
268
261
  if openrouter_key:
269
262
  out.print()
270
263
  out.print(
271
- "[bold green]☁ Cloud Fallback[/bold green] "
272
- "Premium tier via OpenRouter also available."
264
+ "[bold green]☁ Cloud Fallback[/bold green] Premium tier via OpenRouter also available."
273
265
  )
274
266
 
275
267
  # Estimated warning
276
268
  has_estimates = any(m.is_estimated for m in result.all_scored)
277
269
  if has_estimates:
278
270
  out.print()
279
- out.print(
280
- "[yellow] Some performance values are estimated from bandwidth ratio.[/yellow]"
281
- )
282
- out.print(
283
- " Run [bold]mlx-stack bench --save[/bold] to calibrate with real measurements."
284
- )
271
+ out.print("[yellow]⚠ Some performance values are estimated from bandwidth ratio.[/yellow]")
272
+ out.print(" Run [bold]mlx-stack bench --save[/bold] to calibrate with real measurements.")
285
273
 
286
274
  out.print()
287
275
  out.print("[dim]This is a recommendation only — no files were written.[/dim]")
@@ -329,8 +317,7 @@ def recommend(budget: str | None, intent: str | None, show_all: bool) -> None:
329
317
  elif intent not in VALID_INTENTS:
330
318
  valid = ", ".join(sorted(VALID_INTENTS))
331
319
  console.print(
332
- f"[bold red]Error:[/bold red] Invalid intent '{intent}'. "
333
- f"Valid intents: {valid}"
320
+ f"[bold red]Error:[/bold red] Invalid intent '{intent}'. Valid intents: {valid}"
334
321
  )
335
322
  raise SystemExit(1)
336
323