devstuff 2.8.0__tar.gz → 2.10.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.
- {devstuff-2.8.0 → devstuff-2.10.0}/CHANGELOG.md +12 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/PKG-INFO +2 -2
- {devstuff-2.8.0 → devstuff-2.10.0}/README.md +1 -1
- {devstuff-2.8.0 → devstuff-2.10.0}/pyproject.toml +1 -1
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/agent/approval.py +6 -6
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/agent/loop.py +5 -2
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/agent/session.py +33 -11
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/commands/add_cmd.py +2 -2
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/commands/configure_cmd.py +7 -4
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/commands/docs_cmd.py +1 -1
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/commands/doctor_cmd.py +21 -7
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/commands/functions_cmd.py +12 -8
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/commands/help_cmd.py +36 -10
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/commands/install_cmd.py +1 -1
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/commands/list_cmd.py +17 -16
- devstuff-2.10.0/src/dev_setup/configure/starship/icons.py +166 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/starship/model.py +22 -2
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/starship/render.py +39 -24
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/starship/wizard.py +309 -0
- devstuff-2.10.0/src/dev_setup/ui.py +232 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/test_configure_starship.py +372 -1
- {devstuff-2.8.0 → devstuff-2.10.0}/uv.lock +1 -1
- devstuff-2.8.0/src/dev_setup/ui.py +0 -141
- {devstuff-2.8.0 → devstuff-2.10.0}/.claude/skills/run-stuff/SKILL.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/.claude/skills/run-stuff/smoke.sh +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/.github/codex/review.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/.github/workflows/agent.yml +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/.github/workflows/bump.yml +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/.github/workflows/ci.yml +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/.github/workflows/publish.yml +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/.github/workflows/test-installs.yml +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/.gitignore +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/CLAUDE.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/dev/Dockerfile +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/dev/Dockerfile.ci +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/dev/Makefile +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/dev/docker-compose.yml +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/devstuff +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/github-agent.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/README.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/agent/development-plan.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/agent/specifications.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/agent/stack-decisions.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/ansible-config/development-plan.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/ansible-config/specifications.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/ansible-config/stack-decisions.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/bat-config/development-plan.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/bat-config/specifications.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/bat-config/stack-decisions.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/commitizen-config/development-plan.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/commitizen-config/specifications.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/commitizen-config/stack-decisions.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/docker-config/development-plan.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/docker-config/specifications.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/docker-config/stack-decisions.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/lazygit-config/development-plan.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/lazygit-config/specifications.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/lazygit-config/stack-decisions.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/precommit-config/development-plan.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/precommit-config/specifications.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/precommit-config/stack-decisions.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/starship-config/development-plan.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/starship-config/specifications.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/starship-config/stack-decisions.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/uv-backbone/development-plan.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/uv-backbone/specifications.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/uv-backbone/stack-decisions.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/verbose-mode/development-plan.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/verbose-mode/specifications.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/docs/specs/verbose-mode/stack-decisions.md +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/install.sh +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/__init__.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/__main__.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/agent/__init__.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/agent/bridges.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/agent/catalog.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/agent/completion.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/agent/config.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/agent/ollama.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/agent/preflight.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/agent/primitives.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/agent/registry.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/agent/sandbox.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/agent/transcript.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/agent/wizard.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/agent_tools.schema.json +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/agent_tools.yaml +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/base.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/catalog.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/cli.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/commands/__init__.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/commands/agent_cmd.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/commands/catalog_cmd.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/commands/delete_cmd.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/commands/links_cmd.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/commands/remove_cmd.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/commands/run_cmd.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/commands/skills_cmd.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/commands/update_cmd.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/__init__.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/ansible/__init__.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/ansible/detect.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/ansible/model.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/ansible/render.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/ansible/validate.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/ansible/wizard.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/bat/__init__.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/bat/detect.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/bat/model.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/bat/preview.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/bat/render.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/bat/wizard.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/commitizen/__init__.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/commitizen/detect.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/commitizen/model.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/commitizen/render.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/commitizen/validate.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/commitizen/wizard.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/docker/__init__.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/docker/detect.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/docker/model.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/docker/render.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/docker/validate.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/docker/wizard.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/lazygit/__init__.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/lazygit/detect.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/lazygit/model.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/lazygit/render.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/lazygit/validate.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/lazygit/wizard.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/precommit/__init__.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/precommit/detect.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/precommit/model.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/precommit/render.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/precommit/validate.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/precommit/wizard.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/reptyr/__init__.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/reptyr/wizard.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/starship/__init__.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/starship/fonts.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/configure/starship/preview.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/doctor.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/function_runner.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/functions.schema.json +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/functions.yaml +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/functions_catalog.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/functions_registry.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/generic.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/links.schema.json +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/links.yaml +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/links_catalog.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/links_registry.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/registry.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/tools.yaml +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/src/dev_setup/verbose.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/__init__.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/integration/__init__.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/integration/conftest.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/integration/test_agent_smoke.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/integration/test_agent_tui.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/integration/test_commitizen_config.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/integration/test_tools.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/test_agent.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/test_agent_completion.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/test_agent_loop.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/test_agent_sandbox.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/test_agent_tools.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/test_agent_wizard.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/test_catalog.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/test_configure_ansible.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/test_configure_bat.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/test_configure_commitizen.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/test_configure_docker.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/test_configure_lazygit.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/test_configure_precommit.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/test_configure_reptyr.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/test_doctor.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/test_functions.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/test_generic.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/test_links.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/test_registry.py +0 -0
- {devstuff-2.8.0 → devstuff-2.10.0}/tests/test_verbose.py +0 -0
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## v2.10.0 (2026-10-10)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **starship**: add per-section color and icon customization
|
|
6
|
+
|
|
7
|
+
## v2.9.0 (2026-10-10)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **ui**: modernize terminal UI with cohesive violet-cyan theme
|
|
12
|
+
|
|
1
13
|
## v2.8.0 (2026-10-10)
|
|
2
14
|
|
|
3
15
|
### Features
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: devstuff
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.10.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
|
-
|
|
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
|
-
|
|
906
|
+
▸ run_command(command='mkdir xyz-project')
|
|
907
907
|
|
|
908
908
|
╭─ run in ./xyz-project ──────────────────────╮
|
|
909
909
|
│ mkdir xyz-project │
|
|
@@ -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=
|
|
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=
|
|
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=
|
|
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=
|
|
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=
|
|
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=
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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 = "[
|
|
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[/]
|
|
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"[
|
|
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"[
|
|
162
|
-
return f"[
|
|
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
|
|
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.
|
|
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" [
|
|
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.
|
|
105
|
-
width =
|
|
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 = "[
|
|
108
|
-
|
|
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: "[
|
|
11
|
-
doctor.WARN: "[
|
|
12
|
-
doctor.FAIL: "[
|
|
10
|
+
doctor.PASS: f"[{ui.GREEN} bold]✔[/]",
|
|
11
|
+
doctor.WARN: f"[{ui.AMBER} bold]⚠[/]",
|
|
12
|
+
doctor.FAIL: f"[{ui.RED} bold]✖[/]",
|
|
13
13
|
}
|
|
14
|
-
|
|
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
|
-
|
|
36
|
-
|
|
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
|
-
|
|
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
|
-
|
|
32
|
-
|
|
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
|
-
|
|
39
|
-
|
|
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
|
-
|
|
31
|
-
|
|
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
|
-
|
|
62
|
-
|
|
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
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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: [
|
|
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", "
|
|
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
|
-
|
|
57
|
-
ui.
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
tbl.add_column("", width=2)
|
|
61
|
-
tbl.add_column("Package", style="bold",
|
|
62
|
-
tbl.add_column("Description",
|
|
63
|
-
tbl.add_column("Type", style=
|
|
64
|
-
tbl.add_column("Version", style="
|
|
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
|
-
|
|
68
|
-
|
|
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
|
-
|
|
72
|
-
if
|
|
73
|
-
|
|
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()
|