devstuff 2.8.0__tar.gz → 2.9.0__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 (181) hide show
  1. {devstuff-2.8.0 → devstuff-2.9.0}/CHANGELOG.md +6 -0
  2. {devstuff-2.8.0 → devstuff-2.9.0}/PKG-INFO +2 -2
  3. {devstuff-2.8.0 → devstuff-2.9.0}/README.md +1 -1
  4. {devstuff-2.8.0 → devstuff-2.9.0}/pyproject.toml +1 -1
  5. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/agent/approval.py +6 -6
  6. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/agent/loop.py +5 -2
  7. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/agent/session.py +33 -11
  8. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/commands/add_cmd.py +2 -2
  9. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/commands/configure_cmd.py +7 -4
  10. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/commands/docs_cmd.py +1 -1
  11. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/commands/doctor_cmd.py +21 -7
  12. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/commands/functions_cmd.py +12 -8
  13. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/commands/help_cmd.py +36 -10
  14. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/commands/install_cmd.py +1 -1
  15. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/commands/list_cmd.py +17 -16
  16. devstuff-2.9.0/src/dev_setup/ui.py +223 -0
  17. {devstuff-2.8.0 → devstuff-2.9.0}/uv.lock +1 -1
  18. devstuff-2.8.0/src/dev_setup/ui.py +0 -141
  19. {devstuff-2.8.0 → devstuff-2.9.0}/.claude/skills/run-stuff/SKILL.md +0 -0
  20. {devstuff-2.8.0 → devstuff-2.9.0}/.claude/skills/run-stuff/smoke.sh +0 -0
  21. {devstuff-2.8.0 → devstuff-2.9.0}/.github/codex/review.md +0 -0
  22. {devstuff-2.8.0 → devstuff-2.9.0}/.github/workflows/agent.yml +0 -0
  23. {devstuff-2.8.0 → devstuff-2.9.0}/.github/workflows/bump.yml +0 -0
  24. {devstuff-2.8.0 → devstuff-2.9.0}/.github/workflows/ci.yml +0 -0
  25. {devstuff-2.8.0 → devstuff-2.9.0}/.github/workflows/publish.yml +0 -0
  26. {devstuff-2.8.0 → devstuff-2.9.0}/.github/workflows/test-installs.yml +0 -0
  27. {devstuff-2.8.0 → devstuff-2.9.0}/.gitignore +0 -0
  28. {devstuff-2.8.0 → devstuff-2.9.0}/CLAUDE.md +0 -0
  29. {devstuff-2.8.0 → devstuff-2.9.0}/dev/Dockerfile +0 -0
  30. {devstuff-2.8.0 → devstuff-2.9.0}/dev/Dockerfile.ci +0 -0
  31. {devstuff-2.8.0 → devstuff-2.9.0}/dev/Makefile +0 -0
  32. {devstuff-2.8.0 → devstuff-2.9.0}/dev/docker-compose.yml +0 -0
  33. {devstuff-2.8.0 → devstuff-2.9.0}/devstuff +0 -0
  34. {devstuff-2.8.0 → devstuff-2.9.0}/docs/github-agent.md +0 -0
  35. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/README.md +0 -0
  36. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/agent/development-plan.md +0 -0
  37. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/agent/specifications.md +0 -0
  38. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/agent/stack-decisions.md +0 -0
  39. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/ansible-config/development-plan.md +0 -0
  40. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/ansible-config/specifications.md +0 -0
  41. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/ansible-config/stack-decisions.md +0 -0
  42. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/bat-config/development-plan.md +0 -0
  43. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/bat-config/specifications.md +0 -0
  44. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/bat-config/stack-decisions.md +0 -0
  45. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/commitizen-config/development-plan.md +0 -0
  46. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/commitizen-config/specifications.md +0 -0
  47. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/commitizen-config/stack-decisions.md +0 -0
  48. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/docker-config/development-plan.md +0 -0
  49. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/docker-config/specifications.md +0 -0
  50. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/docker-config/stack-decisions.md +0 -0
  51. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/lazygit-config/development-plan.md +0 -0
  52. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/lazygit-config/specifications.md +0 -0
  53. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/lazygit-config/stack-decisions.md +0 -0
  54. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/precommit-config/development-plan.md +0 -0
  55. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/precommit-config/specifications.md +0 -0
  56. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/precommit-config/stack-decisions.md +0 -0
  57. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/starship-config/development-plan.md +0 -0
  58. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/starship-config/specifications.md +0 -0
  59. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/starship-config/stack-decisions.md +0 -0
  60. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/uv-backbone/development-plan.md +0 -0
  61. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/uv-backbone/specifications.md +0 -0
  62. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/uv-backbone/stack-decisions.md +0 -0
  63. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/verbose-mode/development-plan.md +0 -0
  64. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/verbose-mode/specifications.md +0 -0
  65. {devstuff-2.8.0 → devstuff-2.9.0}/docs/specs/verbose-mode/stack-decisions.md +0 -0
  66. {devstuff-2.8.0 → devstuff-2.9.0}/install.sh +0 -0
  67. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/__init__.py +0 -0
  68. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/__main__.py +0 -0
  69. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/agent/__init__.py +0 -0
  70. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/agent/bridges.py +0 -0
  71. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/agent/catalog.py +0 -0
  72. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/agent/completion.py +0 -0
  73. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/agent/config.py +0 -0
  74. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/agent/ollama.py +0 -0
  75. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/agent/preflight.py +0 -0
  76. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/agent/primitives.py +0 -0
  77. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/agent/registry.py +0 -0
  78. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/agent/sandbox.py +0 -0
  79. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/agent/transcript.py +0 -0
  80. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/agent/wizard.py +0 -0
  81. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/agent_tools.schema.json +0 -0
  82. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/agent_tools.yaml +0 -0
  83. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/base.py +0 -0
  84. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/catalog.py +0 -0
  85. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/cli.py +0 -0
  86. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/commands/__init__.py +0 -0
  87. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/commands/agent_cmd.py +0 -0
  88. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/commands/catalog_cmd.py +0 -0
  89. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/commands/delete_cmd.py +0 -0
  90. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/commands/links_cmd.py +0 -0
  91. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/commands/remove_cmd.py +0 -0
  92. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/commands/run_cmd.py +0 -0
  93. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/commands/skills_cmd.py +0 -0
  94. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/commands/update_cmd.py +0 -0
  95. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/__init__.py +0 -0
  96. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/ansible/__init__.py +0 -0
  97. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/ansible/detect.py +0 -0
  98. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/ansible/model.py +0 -0
  99. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/ansible/render.py +0 -0
  100. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/ansible/validate.py +0 -0
  101. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/ansible/wizard.py +0 -0
  102. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/bat/__init__.py +0 -0
  103. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/bat/detect.py +0 -0
  104. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/bat/model.py +0 -0
  105. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/bat/preview.py +0 -0
  106. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/bat/render.py +0 -0
  107. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/bat/wizard.py +0 -0
  108. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/commitizen/__init__.py +0 -0
  109. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/commitizen/detect.py +0 -0
  110. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/commitizen/model.py +0 -0
  111. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/commitizen/render.py +0 -0
  112. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/commitizen/validate.py +0 -0
  113. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/commitizen/wizard.py +0 -0
  114. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/docker/__init__.py +0 -0
  115. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/docker/detect.py +0 -0
  116. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/docker/model.py +0 -0
  117. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/docker/render.py +0 -0
  118. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/docker/validate.py +0 -0
  119. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/docker/wizard.py +0 -0
  120. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/lazygit/__init__.py +0 -0
  121. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/lazygit/detect.py +0 -0
  122. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/lazygit/model.py +0 -0
  123. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/lazygit/render.py +0 -0
  124. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/lazygit/validate.py +0 -0
  125. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/lazygit/wizard.py +0 -0
  126. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/precommit/__init__.py +0 -0
  127. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/precommit/detect.py +0 -0
  128. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/precommit/model.py +0 -0
  129. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/precommit/render.py +0 -0
  130. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/precommit/validate.py +0 -0
  131. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/precommit/wizard.py +0 -0
  132. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/reptyr/__init__.py +0 -0
  133. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/reptyr/wizard.py +0 -0
  134. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/starship/__init__.py +0 -0
  135. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/starship/fonts.py +0 -0
  136. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/starship/model.py +0 -0
  137. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/starship/preview.py +0 -0
  138. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/starship/render.py +0 -0
  139. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/configure/starship/wizard.py +0 -0
  140. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/doctor.py +0 -0
  141. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/function_runner.py +0 -0
  142. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/functions.schema.json +0 -0
  143. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/functions.yaml +0 -0
  144. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/functions_catalog.py +0 -0
  145. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/functions_registry.py +0 -0
  146. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/generic.py +0 -0
  147. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/links.schema.json +0 -0
  148. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/links.yaml +0 -0
  149. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/links_catalog.py +0 -0
  150. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/links_registry.py +0 -0
  151. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/registry.py +0 -0
  152. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/tools.yaml +0 -0
  153. {devstuff-2.8.0 → devstuff-2.9.0}/src/dev_setup/verbose.py +0 -0
  154. {devstuff-2.8.0 → devstuff-2.9.0}/tests/__init__.py +0 -0
  155. {devstuff-2.8.0 → devstuff-2.9.0}/tests/integration/__init__.py +0 -0
  156. {devstuff-2.8.0 → devstuff-2.9.0}/tests/integration/conftest.py +0 -0
  157. {devstuff-2.8.0 → devstuff-2.9.0}/tests/integration/test_agent_smoke.py +0 -0
  158. {devstuff-2.8.0 → devstuff-2.9.0}/tests/integration/test_agent_tui.py +0 -0
  159. {devstuff-2.8.0 → devstuff-2.9.0}/tests/integration/test_commitizen_config.py +0 -0
  160. {devstuff-2.8.0 → devstuff-2.9.0}/tests/integration/test_tools.py +0 -0
  161. {devstuff-2.8.0 → devstuff-2.9.0}/tests/test_agent.py +0 -0
  162. {devstuff-2.8.0 → devstuff-2.9.0}/tests/test_agent_completion.py +0 -0
  163. {devstuff-2.8.0 → devstuff-2.9.0}/tests/test_agent_loop.py +0 -0
  164. {devstuff-2.8.0 → devstuff-2.9.0}/tests/test_agent_sandbox.py +0 -0
  165. {devstuff-2.8.0 → devstuff-2.9.0}/tests/test_agent_tools.py +0 -0
  166. {devstuff-2.8.0 → devstuff-2.9.0}/tests/test_agent_wizard.py +0 -0
  167. {devstuff-2.8.0 → devstuff-2.9.0}/tests/test_catalog.py +0 -0
  168. {devstuff-2.8.0 → devstuff-2.9.0}/tests/test_configure_ansible.py +0 -0
  169. {devstuff-2.8.0 → devstuff-2.9.0}/tests/test_configure_bat.py +0 -0
  170. {devstuff-2.8.0 → devstuff-2.9.0}/tests/test_configure_commitizen.py +0 -0
  171. {devstuff-2.8.0 → devstuff-2.9.0}/tests/test_configure_docker.py +0 -0
  172. {devstuff-2.8.0 → devstuff-2.9.0}/tests/test_configure_lazygit.py +0 -0
  173. {devstuff-2.8.0 → devstuff-2.9.0}/tests/test_configure_precommit.py +0 -0
  174. {devstuff-2.8.0 → devstuff-2.9.0}/tests/test_configure_reptyr.py +0 -0
  175. {devstuff-2.8.0 → devstuff-2.9.0}/tests/test_configure_starship.py +0 -0
  176. {devstuff-2.8.0 → devstuff-2.9.0}/tests/test_doctor.py +0 -0
  177. {devstuff-2.8.0 → devstuff-2.9.0}/tests/test_functions.py +0 -0
  178. {devstuff-2.8.0 → devstuff-2.9.0}/tests/test_generic.py +0 -0
  179. {devstuff-2.8.0 → devstuff-2.9.0}/tests/test_links.py +0 -0
  180. {devstuff-2.8.0 → devstuff-2.9.0}/tests/test_registry.py +0 -0
  181. {devstuff-2.8.0 → devstuff-2.9.0}/tests/test_verbose.py +0 -0
@@ -1,3 +1,9 @@
1
+ ## v2.9.0 (2026-10-10)
2
+
3
+ ### Features
4
+
5
+ - **ui**: modernize terminal UI with cohesive violet-cyan theme
6
+
1
7
  ## v2.8.0 (2026-10-10)
2
8
 
3
9
  ### Features
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: devstuff
3
- Version: 2.8.0
3
+ Version: 2.9.0
4
4
  Summary: Development environment setup CLI for Linux
5
5
  Project-URL: Repository, https://github.com/thesawdawg/dev-setup-py
6
6
  Author-email: Sawyer <sawyerksu@gmail.com>
@@ -930,7 +930,7 @@ devstuff agent --print "which node tools do I have?" # one-shot, non-interacti
930
930
  ```
931
931
  you ❯ create a python project called xyz-project with a hello world main.py
932
932
 
933
- ↳ run_command(command='mkdir xyz-project')
933
+ ▸ run_command(command='mkdir xyz-project')
934
934
 
935
935
  ╭─ run in ./xyz-project ──────────────────────╮
936
936
  │ mkdir xyz-project │
@@ -903,7 +903,7 @@ devstuff agent --print "which node tools do I have?" # one-shot, non-interacti
903
903
  ```
904
904
  you ❯ create a python project called xyz-project with a hello world main.py
905
905
 
906
- ↳ run_command(command='mkdir xyz-project')
906
+ ▸ run_command(command='mkdir xyz-project')
907
907
 
908
908
  ╭─ run in ./xyz-project ──────────────────────╮
909
909
  │ mkdir xyz-project │
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "devstuff"
3
- version = "2.8.0"
3
+ version = "2.9.0"
4
4
  description = "Development environment setup CLI for Linux"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -21,7 +21,7 @@ def _write_file_preview(args: dict[str, Any], ws: Workspace) -> Panel:
21
21
  except SandboxError:
22
22
  # The sandbox will reject this before it runs; show the raw request rather
23
23
  # than crashing the prompt.
24
- return Panel(str(args.get("path", "")), title="write_file", border_style="yellow")
24
+ return Panel(str(args.get("path", "")), title="write_file", border_style=ui.AMBER)
25
25
 
26
26
  new = args.get("content", "")
27
27
  old = path.read_text(encoding="utf-8", errors="replace") if path.exists() else ""
@@ -29,7 +29,7 @@ def _write_file_preview(args: dict[str, Any], ws: Workspace) -> Panel:
29
29
 
30
30
  if not path.exists():
31
31
  body = Syntax(new, "text", theme="monokai", line_numbers=False, word_wrap=True)
32
- return Panel(body, title=f"create {label}", border_style="green")
32
+ return Panel(body, title=f"create {label}", border_style=ui.GREEN)
33
33
 
34
34
  diff = "".join(
35
35
  difflib.unified_diff(
@@ -41,11 +41,11 @@ def _write_file_preview(args: dict[str, Any], ws: Workspace) -> Panel:
41
41
  )
42
42
  )
43
43
  if not diff:
44
- return Panel("(no change)", title=f"write {label}", border_style="dim")
44
+ return Panel("(no change)", title=f"write {label}", border_style=ui.BORDER)
45
45
  return Panel(
46
46
  Syntax(diff, "diff", theme="monokai", line_numbers=False),
47
47
  title=f"edit {label}",
48
- border_style="yellow",
48
+ border_style=ui.AMBER,
49
49
  )
50
50
 
51
51
 
@@ -59,11 +59,11 @@ def preview(tool: AgentTool, args: dict[str, Any], ws: Workspace) -> Panel:
59
59
  return Panel(
60
60
  Syntax(str(args.get("command", "")), "bash", theme="monokai", line_numbers=False),
61
61
  title=f"run in {ws.display(ws.cwd)}",
62
- border_style="yellow",
62
+ border_style=ui.AMBER,
63
63
  )
64
64
 
65
65
  rendered = "\n".join(f"{k}: {v}" for k, v in args.items()) or "(no arguments)"
66
- return Panel(rendered, title=tool.key, border_style="yellow")
66
+ return Panel(rendered, title=tool.key, border_style=ui.AMBER)
67
67
 
68
68
 
69
69
  class ApprovalPolicy:
@@ -67,7 +67,8 @@ def execute(session, call: ToolCall) -> ToolOutcome:
67
67
  call.name, False, "the user declined this action. Ask what they would prefer."
68
68
  )
69
69
  else:
70
- ui.dim(f"↳ {call.name}({', '.join(f'{k}={v!r}' for k, v in args.items())[:120]})")
70
+ preview = ", ".join(f"{k}={v!r}" for k, v in args.items())[:120]
71
+ ui.console.print(f" [{ui.CYAN}]▸[/] [{ui.GRAY}]{call.name}({preview})[/]")
71
72
 
72
73
  try:
73
74
  output = _dispatch(session, tool, args)
@@ -122,7 +123,9 @@ def run_turn(session, user_text: str) -> Message | None:
122
123
  }
123
124
  )
124
125
  if not outcome.ok:
125
- ui.dim(f" {outcome.content.splitlines()[0][:120]}")
126
+ ui.console.print(
127
+ f" [{ui.AMBER}]▸[/] [{ui.GRAY}]{outcome.content.splitlines()[0][:120]}[/]"
128
+ )
126
129
 
127
130
  ui.warn(f"Stopped after {session.config.max_iterations} tool calls without a final answer.")
128
131
  ui.dim("Ask again with a narrower request, or /reset to start over.")
@@ -91,16 +91,19 @@ def render(reply: Message | None) -> None:
91
91
  return
92
92
  if reply.content.strip():
93
93
  ui.console.print()
94
- ui.console.print(Markdown(reply.content.strip()))
94
+ ui.console.print(ui.gutter(Markdown(reply.content.strip())))
95
95
  ui.console.print()
96
96
 
97
97
 
98
98
  def _print_banner(session: AgentSession) -> None:
99
99
  ui.section("devstuff agent")
100
- ui.dim(f"model {session.model}")
101
- ui.dim(f"host {session.client.host}")
102
- ui.dim(f"workspace {session.workspace.root}")
103
- ui.dim(f"tools {len(session.tools)} available")
100
+ for key, value in (
101
+ ("model", session.model),
102
+ ("host", session.client.host),
103
+ ("workspace", str(session.workspace.root)),
104
+ ("tools", f"{len(session.tools)} available"),
105
+ ):
106
+ ui.console.print(f" [{ui.PURPLE}]{key:<10}[/] [{ui.GRAY}]{value}[/]")
104
107
  if session.policy.yolo:
105
108
  ui.console.print()
106
109
  ui.warn("--yolo: mutating tools run without confirmation (the denylist still applies).")
@@ -121,7 +124,7 @@ def _print_slash_help() -> None:
121
124
 
122
125
  def _print_tools(session: AgentSession) -> None:
123
126
  for key, tool in sorted(session.tools.items()):
124
- marker = "[yellow]![/]" if tool.mutating else " "
127
+ marker = f"[{ui.AMBER}]![/]" if tool.mutating else " "
125
128
  ui.console.print(f" {marker} [bold cyan]{key:<18}[/] [dim]{tool.description[:70]}[/]")
126
129
  ui.console.print()
127
130
  ui.dim("! = mutating, asks for confirmation before running")
@@ -151,15 +154,15 @@ def _summarise(message: dict[str, Any]) -> str | None:
151
154
  if role == "system":
152
155
  return None
153
156
  if role == "user":
154
- return f"[bold]you[/] {str(message.get('content', ''))[:80]}"
157
+ return f"[{ui.PURPLE} bold]you[/] {str(message.get('content', ''))[:80]}"
155
158
  if role == "tool":
156
159
  first = str(message.get("content", "")).splitlines()[:1]
157
- return f"[dim]tool[/] {message.get('tool_name', '?')} → {(first[0] if first else '')[:60]}"
160
+ return f"[{ui.GRAY}]tool[/] {message.get('tool_name', '?')} → {(first[0] if first else '')[:60]}"
158
161
  calls = message.get("tool_calls") or []
159
162
  if calls:
160
163
  names = ", ".join(c["function"]["name"] for c in calls)
161
- return f"[cyan]agent[/] calls {names}"
162
- return f"[cyan]agent[/] {str(message.get('content', ''))[:80]}"
164
+ return f"[{ui.CYAN}]agent[/] calls {names}"
165
+ return f"[{ui.CYAN}]agent[/] {str(message.get('content', ''))[:80]}"
163
166
 
164
167
 
165
168
  def _print_history(session: AgentSession) -> None:
@@ -282,6 +285,22 @@ def _continuation(width: int, line_number: int, is_soft_wrap: bool) -> str:
282
285
  return " " * max(0, width - 2) + "› "
283
286
 
284
287
 
288
+ def _prompt_style():
289
+ """prompt_toolkit theme: violet prompt glyph, dark-violet completion menu."""
290
+ from prompt_toolkit.styles import Style as PTStyle
291
+
292
+ return PTStyle.from_dict({
293
+ "prompt": f"{ui.PURPLE} bold",
294
+ "completion-menu": "bg:#26223B #DDD6FE",
295
+ "completion-menu.completion": "bg:#26223B #DDD6FE",
296
+ "completion-menu.completion.current": f"bg:{ui.VIOLET} #FFFFFF bold",
297
+ "completion-menu.meta.completion": f"bg:#26223B {ui.GRAY}",
298
+ "completion-menu.meta.completion.current": "bg:#7C3AED #DDD6FE",
299
+ "scrollbar.background": "bg:#26223B",
300
+ "scrollbar.button": "bg:#4B4568",
301
+ })
302
+
303
+
285
304
  def build_prompt_session(session: AgentSession, **overrides):
286
305
  """Split out from run_repl so the input behaviour can be driven by tests with a
287
306
  pipe input rather than only exercised by hand."""
@@ -297,6 +316,7 @@ def build_prompt_session(session: AgentSession, **overrides):
297
316
  "multiline": True,
298
317
  "key_bindings": _key_bindings(),
299
318
  "prompt_continuation": _continuation,
319
+ "style": _prompt_style(),
300
320
  }
301
321
  kwargs.update(overrides)
302
322
  return PromptSession(**kwargs)
@@ -308,9 +328,11 @@ def run_repl(session: AgentSession) -> None:
308
328
 
309
329
  _print_banner(session)
310
330
 
331
+ from prompt_toolkit.formatted_text import HTML
332
+
311
333
  while True:
312
334
  try:
313
- line = prompt_session.prompt("you ❯ ").strip()
335
+ line = prompt_session.prompt(HTML("<prompt>you ❯</prompt> ")).strip()
314
336
  except KeyboardInterrupt:
315
337
  continue # Ctrl-C clears the current line, like a shell
316
338
  except EOFError:
@@ -124,11 +124,11 @@ def add_cmd() -> None:
124
124
  )
125
125
 
126
126
  ui.console.print()
127
- ui.console.print("[bold]Summary[/]")
127
+ ui.heading("Summary")
128
128
  for k, v in kwargs.items():
129
129
  if v:
130
130
  display = _truncate_script(v) if k.endswith("_script") else v
131
- ui.console.print(f" [dim]{k:<18}[/] {display}")
131
+ ui.console.print(f" [{ui.PURPLE}]{k:<18}[/] {display}")
132
132
  ui.console.print()
133
133
 
134
134
  if not ui.confirm("Save this package?"):
@@ -101,11 +101,14 @@ def _is_installed(key: str) -> bool:
101
101
 
102
102
  def _print_list() -> None:
103
103
  ui.console.print()
104
- ui.console.print(" [bold]CONFIGURABLE TOOLS[/]")
105
- width = max(len(s.key) for s in configure.CONFIGURATORS.values()) + 2
104
+ tbl = ui.table(title="[bold]configurable tools[/]")
105
+ tbl.add_column("", width=2, justify="center")
106
+ tbl.add_column("Tool", style="bold cyan", no_wrap=True)
107
+ tbl.add_column("Description", ratio=1)
106
108
  for spec in configure.CONFIGURATORS.values():
107
- mark = "[green]✔[/]" if _is_installed(spec.key) else "[dim]·[/]"
108
- ui.console.print(f" {mark} [bold cyan]{spec.key:<{width}}[/] {spec.description}")
109
+ mark = f"[{ui.GREEN}]●[/]" if _is_installed(spec.key) else f"[{ui.GRAY}]○[/]"
110
+ tbl.add_row(mark, spec.key, spec.description)
111
+ ui.console.print(tbl)
109
112
  ui.console.print()
110
113
  ui.dim(" devstuff configure <tool>")
111
114
  ui.console.print()
@@ -25,7 +25,7 @@ def docs_cmd(package: str) -> None:
25
25
  sys.exit(1)
26
26
 
27
27
  ui.console.print(f"\n [bold]{tool.name}[/] docs")
28
- ui.console.print(f" [cyan]{tool.docs_url}[/]\n")
28
+ ui.console.print(f" [cyan underline link={tool.docs_url}]{tool.docs_url}[/]\n")
29
29
 
30
30
  opened = webbrowser.open(tool.docs_url)
31
31
  if opened:
@@ -7,11 +7,12 @@ import click
7
7
  from dev_setup import doctor, ui
8
8
 
9
9
  _STATUS_ICON = {
10
- doctor.PASS: "[green bold]✔[/]",
11
- doctor.WARN: "[yellow bold]⚠[/]",
12
- doctor.FAIL: "[red bold]✖[/]",
10
+ doctor.PASS: f"[{ui.GREEN} bold]✔[/]",
11
+ doctor.WARN: f"[{ui.AMBER} bold]⚠[/]",
12
+ doctor.FAIL: f"[{ui.RED} bold]✖[/]",
13
13
  }
14
- _STATUS_LABEL = {doctor.PASS: "pass", doctor.WARN: "warn", doctor.FAIL: "FAIL"}
14
+ # pass needs no text label — the icon carries it. warn/fail get one for scanability.
15
+ _STATUS_LABEL = {doctor.WARN: ui.AMBER, doctor.FAIL: ui.RED}
15
16
 
16
17
 
17
18
  @click.command("doctor")
@@ -32,8 +33,11 @@ def doctor_cmd(auto_fix: bool, check_only: bool) -> None:
32
33
  fixable: list[doctor.CheckResult] = []
33
34
  for r in results:
34
35
  icon = _STATUS_ICON.get(r.status, "[dim]?[/]")
35
- label = _STATUS_LABEL.get(r.status, r.status)
36
- ui.console.print(f" {icon} [bold]{r.name}[/] [dim]({label})[/] {r.message}")
36
+ line = f" {icon} [bold]{r.name}[/] {r.message}"
37
+ color = _STATUS_LABEL.get(r.status)
38
+ if color:
39
+ line += f" [{color} bold]{r.status.upper()}[/]"
40
+ ui.console.print(line)
37
41
  if r.detail:
38
42
  ui.dim(f" {r.detail}")
39
43
  if r.status != doctor.PASS and r.fix is not None:
@@ -42,9 +46,19 @@ def doctor_cmd(auto_fix: bool, check_only: bool) -> None:
42
46
  passed = sum(1 for r in results if r.status == doctor.PASS)
43
47
  warned = sum(1 for r in results if r.status == doctor.WARN)
44
48
  failed = sum(1 for r in results if r.status == doctor.FAIL)
49
+
50
+ def _count(n: int, color: str, word: str) -> str:
51
+ style = color if n else ui.GRAY
52
+ return f"[{style}]{n} {word}[/]"
53
+
45
54
  ui.console.print()
46
55
  ui.console.print(
47
- f" [dim]{passed} passed, {warned} warning(s), {failed} failure(s)[/]"
56
+ " "
57
+ + " · ".join([
58
+ _count(passed, ui.GREEN, "passed"),
59
+ _count(warned, ui.AMBER, "warnings"),
60
+ _count(failed, ui.RED, "failed"),
61
+ ])
48
62
  )
49
63
 
50
64
  if check_only or not fixable:
@@ -26,17 +26,21 @@ def list_cmd() -> None:
26
26
  for f in fns:
27
27
  by_cat.setdefault(f.category, []).append(f)
28
28
 
29
- key_width = max((len(f.key) for f in fns), default=12) + 2
30
29
  for cat in sorted(by_cat, key=lambda c: (c == "custom", c)):
31
- ui.console.print(f"\n [bold]{cat.upper()}[/]")
32
- for f in sorted(by_cat[cat], key=lambda f: f.key):
30
+ entries = sorted(by_cat[cat], key=lambda f: f.key)
31
+ tbl = ui.table(
32
+ title=f"[bold]{cat}[/] [{ui.GRAY}]{len(entries)} function(s)[/]"
33
+ )
34
+ tbl.add_column("Function", style="bold cyan", no_wrap=True)
35
+ tbl.add_column("Type", style=ui.CYAN, no_wrap=True)
36
+ tbl.add_column("Args", style=ui.GRAY, no_wrap=True)
37
+ tbl.add_column("Description", ratio=1)
38
+ for f in entries:
33
39
  mode = f.type if f.type == "script" else f"{f.type} ({f.register})"
34
- ui.console.print(
35
- f" [bold cyan]{f.key:<{key_width}}[/] [dim]{mode:<22}[/] {f.description}"
36
- )
37
40
  params = " ".join(f"<{p.name}>" for p in f.params)
38
- if params:
39
- ui.dim(f" args: {params}")
41
+ tbl.add_row(f.key, mode, params, f.description)
42
+ ui.console.print(tbl)
43
+ ui.console.print()
40
44
 
41
45
 
42
46
  @functions_cmd.command("enable")
@@ -1,6 +1,18 @@
1
+ from rich.columns import Columns
2
+ from rich.text import Text
3
+
1
4
  from dev_setup import ui
2
5
  from dev_setup.catalog import USER_CATALOG_PATH
3
6
 
7
+ _CATEGORY_DESC = {
8
+ "core": "Always-installed tools (Docker, NVM, uv)",
9
+ "tools": "Optional utilities (lazygit, htop, bat)",
10
+ "ai-tools": "AI coding agents and assistants",
11
+ "customization": "Prompt and shell customization",
12
+ "languages": "Programming language runtimes",
13
+ "custom": "User-added packages",
14
+ }
15
+
4
16
 
5
17
  def print_help() -> None:
6
18
  ui.print_banner()
@@ -26,10 +38,15 @@ def print_help() -> None:
26
38
  ("agent", "[--setup] [--dir] [--model]", "Chat with a local tool-using model"),
27
39
  ("version", "", "Show version"),
28
40
  ]
41
+ tbl = ui.table(bordered=False, show_header=False)
42
+ tbl.add_column("cmd", style="bold cyan", no_wrap=True)
43
+ tbl.add_column("args", style=ui.GRAY, no_wrap=True)
44
+ tbl.add_column("desc", ratio=1)
29
45
  for cmd, args, desc in rows:
30
- ui.console.print(
31
- f" [bold cyan]{cmd:<10}[/] [dim]{args:<40}[/] {desc}"
32
- )
46
+ # args goes in as Text: strings like "[category]" are valid Rich markup
47
+ # tags and would be silently swallowed from a plain str cell.
48
+ tbl.add_row(f" {cmd}", Text(args), desc)
49
+ ui.console.print(tbl)
33
50
 
34
51
  ui.console.print()
35
52
  ui.console.print("[bold]EXAMPLES[/]")
@@ -58,15 +75,24 @@ def print_help() -> None:
58
75
  'devstuff agent --print "what node tools are available?"',
59
76
  "ssh-agent-key ~/.ssh/id_ed25519",
60
77
  ]
61
- for ex in examples:
62
- ui.console.print(f" [dim]$[/] [green]{ex}[/]")
78
+ items = [
79
+ Text.assemble((" $ ", ui.GRAY), (ex, "green")) for ex in examples
80
+ ]
81
+ ui.console.print(Columns(items, column_first=True, padding=(0, 3)))
82
+
83
+ from dev_setup import registry
63
84
 
64
85
  ui.console.print()
65
86
  ui.console.print("[bold]CATEGORIES[/]")
66
- ui.console.print(" [cyan]core[/] Always-installed tools (Docker, NVM, uv)")
67
- ui.console.print(" [cyan]tools[/] Optional utilities (PHP, Starship, htop)")
68
- ui.console.print(" [cyan]languages[/] Programming language runtimes")
69
- ui.console.print(" [cyan]custom[/] User-added packages\n")
87
+ _ORDER = {"core": 0, "tools": 1, "custom": 999}
88
+ cats = sorted(
89
+ {t.category for t in registry.all_tools()},
90
+ key=lambda c: (_ORDER.get(c, 500), c),
91
+ )
92
+ for cat in cats:
93
+ desc = _CATEGORY_DESC.get(cat, "")
94
+ ui.console.print(f" [cyan]{cat:<14}[/] [{ui.GRAY}]{desc}[/]")
70
95
 
96
+ ui.console.print()
71
97
  ui.console.print("[bold]CONFIG[/]")
72
- ui.console.print(f" User catalog: [dim]{USER_CATALOG_PATH}[/]\n")
98
+ ui.console.print(f" User catalog: [{ui.GRAY}]{USER_CATALOG_PATH}[/]\n")
@@ -106,7 +106,7 @@ def _install_interactive() -> None:
106
106
  else:
107
107
  disabled = None
108
108
  title = [
109
- ("class:check", "✔ " if is_inst else " "),
109
+ ("class:check", "● " if is_inst else " "),
110
110
  ("class:text", f"{t.key:<{key_width}}{desc}"),
111
111
  ]
112
112
  choices.append(questionary.Choice(
@@ -3,7 +3,6 @@ from __future__ import annotations
3
3
  from concurrent.futures import ThreadPoolExecutor
4
4
 
5
5
  import click
6
- from rich.table import Table
7
6
 
8
7
  from dev_setup import registry, ui
9
8
  from dev_setup.base import Tool
@@ -53,24 +52,26 @@ def list_cmd(show_filter: str, category: str) -> None:
53
52
  if not entries:
54
53
  continue
55
54
 
56
- ui.console.print(f" [bold magenta]{cat.upper()}[/]")
57
- ui.divider()
58
-
59
- tbl = Table(box=None, padding=(0, 1), show_header=True, header_style="dim")
60
- tbl.add_column("", width=2)
61
- tbl.add_column("Package", style="bold", min_width=12)
62
- tbl.add_column("Description", min_width=36)
63
- tbl.add_column("Type", style="dim", min_width=8)
64
- tbl.add_column("Version", style="dim")
55
+ n_inst = sum(1 for _, is_inst, _ in entries if is_inst)
56
+ tbl = ui.table(
57
+ title=f"[bold]{cat}[/] [{ui.GRAY}]{n_inst}/{len(entries)} installed[/]"
58
+ )
59
+ tbl.add_column("", width=2, justify="center")
60
+ tbl.add_column("Package", style="bold", no_wrap=True)
61
+ tbl.add_column("Description", ratio=1)
62
+ tbl.add_column("Type", style=ui.CYAN, no_wrap=True)
63
+ tbl.add_column("Version", style=ui.GRAY, no_wrap=True, max_width=28, overflow="ellipsis")
65
64
 
66
65
  for tool, is_inst, version in entries:
67
- missing = registry.missing_requires(tool) if not is_inst else []
68
- icon = "[green bold]✔[/]" if is_inst else "[red bold]✘[/]"
69
- tbl.add_row(icon, tool.key, tool.description, tool.install_type, version)
66
+ icon = f"[{ui.GREEN}]●[/]" if is_inst else f"[{ui.GRAY}]○[/]"
67
+ desc = tool.description
70
68
  if tool.help_cmd:
71
- tbl.add_row("", "", f"[dim cyan] ? {tool.help_cmd}[/]", "", "")
72
- if missing:
73
- tbl.add_row("", "", f"[yellow] ⚠ requires: {', '.join(missing)}[/]", "", "")
69
+ desc += f"\n[{ui.GRAY}] ↳ {tool.help_cmd}[/]"
70
+ if not is_inst:
71
+ missing = registry.missing_requires(tool)
72
+ if missing:
73
+ desc += f"\n[{ui.AMBER}] ⚠ requires: {', '.join(missing)}[/]"
74
+ tbl.add_row(icon, tool.key, desc, tool.install_type, version)
74
75
 
75
76
  ui.console.print(tbl)
76
77
  ui.console.print()