devstuff 2.22.0__tar.gz → 2.23.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.22.0 → devstuff-2.23.0}/.github/workflows/test-installs.yml +3 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/AGENTS.md +2 -1
- {devstuff-2.22.0 → devstuff-2.23.0}/CHANGELOG.md +6 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/PKG-INFO +4 -1
- {devstuff-2.22.0 → devstuff-2.23.0}/README.md +3 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/pyproject.toml +1 -1
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/links.yaml +24 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/tools.yaml +58 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/integration/test_tools.py +3 -0
- devstuff-2.23.0/tests/test_catalog_scripts.py +110 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/uv.lock +1 -1
- {devstuff-2.22.0 → devstuff-2.23.0}/.claude/skills/run-stuff/SKILL.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/.claude/skills/run-stuff/smoke.sh +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/.github/codex/review.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/.github/workflows/agent.yml +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/.github/workflows/bump.yml +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/.github/workflows/ci.yml +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/.github/workflows/publish.yml +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/.gitignore +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/CLAUDE.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/dev/Dockerfile +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/dev/Dockerfile.ci +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/dev/Makefile +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/dev/docker-compose.yml +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/devstuff +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/ROADMAP.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/github-agent.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/README.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/agent/development-plan.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/agent/specifications.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/agent/stack-decisions.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/ansible-config/development-plan.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/ansible-config/specifications.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/ansible-config/stack-decisions.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/bat-config/development-plan.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/bat-config/specifications.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/bat-config/stack-decisions.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/commitizen-config/development-plan.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/commitizen-config/specifications.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/commitizen-config/stack-decisions.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/docker-config/development-plan.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/docker-config/specifications.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/docker-config/stack-decisions.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/lazygit-config/development-plan.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/lazygit-config/specifications.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/lazygit-config/stack-decisions.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/mcp/development-plan.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/mcp/specifications.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/mcp/stack-decisions.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/outdated/development-plan.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/outdated/specifications.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/outdated/stack-decisions.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/plan-and-progress/specifications.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/precommit-config/development-plan.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/precommit-config/specifications.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/precommit-config/stack-decisions.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/profile/development-plan.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/profile/specifications.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/profile/stack-decisions.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/profile-apply/development-plan.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/profile-apply/specifications.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/profile-apply/stack-decisions.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/starship-config/development-plan.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/starship-config/specifications.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/starship-config/stack-decisions.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/syncthing-config/development-plan.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/syncthing-config/specifications.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/syncthing-config/stack-decisions.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/uv-backbone/development-plan.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/uv-backbone/specifications.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/uv-backbone/stack-decisions.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/verbose-mode/development-plan.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/verbose-mode/specifications.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/docs/specs/verbose-mode/stack-decisions.md +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/install.sh +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/__init__.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/__main__.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/agent/__init__.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/agent/approval.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/agent/bridges.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/agent/catalog.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/agent/completion.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/agent/config.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/agent/loop.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/agent/ollama.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/agent/preflight.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/agent/primitives.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/agent/registry.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/agent/sandbox.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/agent/session.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/agent/transcript.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/agent/wizard.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/agent_tools.schema.json +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/agent_tools.yaml +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/apply_exec.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/apply_plan.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/base.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/bundles/ai-agents.yaml +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/bundles/ai-local.yaml +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/bundles/devops.yaml +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/bundles/essentials.yaml +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/bundles/languages.yaml +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/bundles/python.yaml +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/bundles.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/catalog.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/cli.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/commands/__init__.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/commands/_plan.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/commands/add_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/commands/agent_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/commands/catalog_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/commands/configure_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/commands/delete_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/commands/docs_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/commands/doctor_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/commands/functions_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/commands/help_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/commands/install_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/commands/links_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/commands/list_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/commands/mcp_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/commands/outdated_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/commands/profile_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/commands/remove_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/commands/run_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/commands/skills_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/commands/update_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/__init__.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/ansible/__init__.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/ansible/detect.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/ansible/model.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/ansible/render.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/ansible/validate.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/ansible/wizard.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/bat/__init__.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/bat/detect.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/bat/model.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/bat/preview.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/bat/render.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/bat/wizard.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/commitizen/__init__.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/commitizen/detect.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/commitizen/model.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/commitizen/render.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/commitizen/validate.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/commitizen/wizard.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/docker/__init__.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/docker/detect.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/docker/model.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/docker/render.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/docker/validate.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/docker/wizard.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/lazygit/__init__.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/lazygit/detect.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/lazygit/model.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/lazygit/render.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/lazygit/validate.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/lazygit/wizard.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/precommit/__init__.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/precommit/detect.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/precommit/model.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/precommit/render.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/precommit/validate.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/precommit/wizard.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/reptyr/__init__.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/reptyr/wizard.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/starship/__init__.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/starship/fonts.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/starship/icons.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/starship/model.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/starship/preview.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/starship/render.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/starship/wizard.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/syncthing/__init__.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/syncthing/api.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/syncthing/detect.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/syncthing/model.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/configure/syncthing/wizard.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/doctor.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/function_runner.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/functions.schema.json +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/functions.yaml +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/functions_catalog.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/functions_registry.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/generic.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/links.schema.json +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/links_catalog.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/links_registry.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/mcp/__init__.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/mcp/core.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/mcp/http.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/mcp/openapi.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/mcp/printconfig.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/mcp/process.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/mcp/stdio.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/mcp/token.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/profile.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/registry.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/snapshot.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/ui.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/updates.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/src/dev_setup/verbose.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/__init__.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/integration/__init__.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/integration/conftest.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/integration/test_agent_smoke.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/integration/test_agent_tui.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/integration/test_commitizen_config.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/integration/test_mcp_claude.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/integration/test_mcp_conformance.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/integration/test_profile_apply.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/mcp_http_support.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/mcp_process_support.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_agent.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_agent_bridges.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_agent_completion.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_agent_loop.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_agent_sandbox.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_agent_tools.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_agent_wizard.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_apply_exec.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_apply_plan.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_apply_run.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_bundles.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_catalog.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_configure_ansible.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_configure_bat.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_configure_commitizen.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_configure_docker.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_configure_lazygit.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_configure_precommit.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_configure_reptyr.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_configure_starship.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_configure_syncthing.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_doctor.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_functions.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_generic.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_installed_version.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_lifecycle_cmds.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_links.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_mcp_classify.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_mcp_core.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_mcp_http.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_mcp_http_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_mcp_openapi.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_mcp_printconfig.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_mcp_process.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_mcp_stdio.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_mcp_token.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_outdated_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_pin_support.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_plan_and_select.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_profile.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_profile_apply_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_profile_diff.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_profile_diff_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_profile_snapshot_cmd.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_registry.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_snapshot.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_ui.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_update_checker_parity.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_update_notes.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_updates.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_uv_probes.py +0 -0
- {devstuff-2.22.0 → devstuff-2.23.0}/tests/test_verbose.py +0 -0
|
@@ -56,6 +56,7 @@ jobs:
|
|
|
56
56
|
- arcane-cli # release binary into /usr/local/bin
|
|
57
57
|
- aws
|
|
58
58
|
- bat
|
|
59
|
+
- bubblewrap # apt: bubblewrap + socat for Claude Code /sandbox
|
|
59
60
|
- claude-code # npm tool, installs nvm first via `requires`
|
|
60
61
|
- codex # npm tool, installs nvm first via `requires`
|
|
61
62
|
- commitizen # uvx tool, requires uv
|
|
@@ -64,6 +65,7 @@ jobs:
|
|
|
64
65
|
- ghgrab # uvx tool, requires uv
|
|
65
66
|
- git-lfs
|
|
66
67
|
- go
|
|
68
|
+
- gum # Charm apt repo
|
|
67
69
|
- hey-dave # uvx tool, requires uv + a managed Python 3.14
|
|
68
70
|
- homebrew # slow: builds from source
|
|
69
71
|
- htop
|
|
@@ -85,6 +87,7 @@ jobs:
|
|
|
85
87
|
- saml2aws
|
|
86
88
|
- starship
|
|
87
89
|
- syncthing # official apt repo (v2); no systemd user session in CI
|
|
90
|
+
- tmux
|
|
88
91
|
- uv
|
|
89
92
|
- yq
|
|
90
93
|
|
|
@@ -68,7 +68,7 @@ Refresh with the `gh pr list` command above when this looks stale.
|
|
|
68
68
|
|
|
69
69
|
| PR | Branch | Base | Notes |
|
|
70
70
|
|---|---|---|---|
|
|
71
|
-
| [#
|
|
71
|
+
| [#76](https://github.com/thesawdawg/dev-setup-py/pull/76) `tmux`, `gum`, `bubblewrap` (+ `socat`) tools; Druid, Homepage, Server Box and tmux wiki links | `feat/tmux-gum-bubblewrap-links` | `master` | Opened 2026-10-12. Also carries the AGENTS.md #75 follow-up commit. Not yet run: a real install of any of the three (no Docker on the dev host); the CI canary is their first run. |
|
|
72
72
|
|
|
73
73
|
### Closed as dropped
|
|
74
74
|
|
|
@@ -89,3 +89,4 @@ commits rather than merging `master` in.
|
|
|
89
89
|
|---|---|
|
|
90
90
|
| [#60](https://github.com/thesawdawg/dev-setup-py/pull/60) `profile apply`, bundles, docs (merged 2026-10-11, released as 2.13.0) | The first run of `make run-apply-tests` (in `dev/`) in the CI image. The test is written, and its `uv` + pinned-`commitizen` half was run against the real installers in an isolated `HOME`; the `yq` half and the container run have not happened. Tick the last box under M3 in `docs/ROADMAP.md` when it passes. |
|
|
91
91
|
| [#62](https://github.com/thesawdawg/dev-setup-py/pull/62) plan preview, live progress view and the guided `add` wizard (merged 2026-10-11, released as 2.14.0) | (1) About ten older sites still put error text into `ui.error`/`ui.dim` unescaped, which raises `MarkupError` on a `[/…]`-shaped string: `configure_cmd`, `doctor_cmd`, `run_cmd`, `skills_cmd`, the commitizen and reptyr wizards, `add_cmd`. Escape with `rich.markup.escape` when touching one (see `docs/specs/plan-and-progress/`, F-1). (2) Not run live: `update` and its picker, the `install`/`remove` pickers, and the `npm`, `apt` and `git` installers under the progress view; unit-tested only. (3) Open design points, deliberately unchanged: a missing requirement asks three questions, and the `add` step counter reads `1/7` then `2/8`. |
|
|
92
|
+
| [#75](https://github.com/thesawdawg/dev-setup-py/pull/75) `syncthing` tool and `configure syncthing` pairing wizard (merged 2026-10-12, released as 2.22.0) | (1) The first real `devstuff install syncthing`: the weekly `test-installs.yml` canary is its first run, where the no-user-session branch is the expected path. (2) The interactive wizard against a live user service, and `sudo loginctl enable-linger` itself. Both are unit-tested only, with a fake API client; the real-binary tests drive two throwaway daemons, not the wizard. When either happens, update "What was run and what was not" in `docs/specs/syncthing-config/development-plan.md` and the status row in `docs/specs/README.md`. |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: devstuff
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.23.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>
|
|
@@ -1646,10 +1646,12 @@ links:
|
|
|
1646
1646
|
|
|
1647
1647
|
| `arcane-cli` | Arcane CLI | Command-line client for an Arcane Docker management server (needs a running server) | `arcane-cli --help` |
|
|
1648
1648
|
| `bat` | bat | cat replacement with syntax highlighting and git integration (`devstuff configure bat`) | `bat --help` |
|
|
1649
|
+
| `bubblewrap` | bubblewrap + socat | Unprivileged sandbox (bwrap) and network relay (socat) — what Claude Code's /sandbox needs on Linux | `bwrap --help` |
|
|
1649
1650
|
| `commitizen` | Commitizen | Conventional-commit prompt, semantic version bumping, and changelog generation (`devstuff configure commitizen`) | `cz --help` |
|
|
1650
1651
|
| `gh` | GitHub CLI | GitHub's official CLI | `gh --help` |
|
|
1651
1652
|
| `ghgrab` | ghgrab | TUI and CLI for downloading files, folders, and release assets from GitHub and other git forges without cloning | `ghgrab --help` |
|
|
1652
1653
|
| `git-lfs` | Git LFS | Git extension for versioning large files | `git lfs --help` |
|
|
1654
|
+
| `gum` | gum | Prompts, pickers, spinners and styled output for shell scripts (Charm) | `gum --help` |
|
|
1653
1655
|
| `htop` | htop | Interactive process and resource monitor | `man htop` |
|
|
1654
1656
|
| `homebrew` | Homebrew | Package manager for Linux (and macOS) | `brew --help` |
|
|
1655
1657
|
| `ipython` | IPython | Enhanced interactive Python shell with rich tab completion and magic commands | `ipython --help` |
|
|
@@ -1671,6 +1673,7 @@ links:
|
|
|
1671
1673
|
| `saml2aws` | saml2aws | SAML → AWS STS credentials CLI (Versent) | `saml2aws --help` |
|
|
1672
1674
|
| `starship` | Starship | Fast, cross-shell customizable prompt (`devstuff configure starship`) | `starship --help` |
|
|
1673
1675
|
| `syncthing` | Syncthing | Peer-to-peer file sync daemon (`devstuff configure syncthing` to pair devices) | `syncthing --help` |
|
|
1676
|
+
| `tmux` | tmux | Terminal multiplexer — persistent sessions, windows and panes | `tmux -h` |
|
|
1674
1677
|
| `yq` | yq | Portable command-line YAML/JSON/XML processor | `yq --help` |
|
|
1675
1678
|
|
|
1676
1679
|
### Languages
|
|
@@ -1619,10 +1619,12 @@ links:
|
|
|
1619
1619
|
|
|
1620
1620
|
| `arcane-cli` | Arcane CLI | Command-line client for an Arcane Docker management server (needs a running server) | `arcane-cli --help` |
|
|
1621
1621
|
| `bat` | bat | cat replacement with syntax highlighting and git integration (`devstuff configure bat`) | `bat --help` |
|
|
1622
|
+
| `bubblewrap` | bubblewrap + socat | Unprivileged sandbox (bwrap) and network relay (socat) — what Claude Code's /sandbox needs on Linux | `bwrap --help` |
|
|
1622
1623
|
| `commitizen` | Commitizen | Conventional-commit prompt, semantic version bumping, and changelog generation (`devstuff configure commitizen`) | `cz --help` |
|
|
1623
1624
|
| `gh` | GitHub CLI | GitHub's official CLI | `gh --help` |
|
|
1624
1625
|
| `ghgrab` | ghgrab | TUI and CLI for downloading files, folders, and release assets from GitHub and other git forges without cloning | `ghgrab --help` |
|
|
1625
1626
|
| `git-lfs` | Git LFS | Git extension for versioning large files | `git lfs --help` |
|
|
1627
|
+
| `gum` | gum | Prompts, pickers, spinners and styled output for shell scripts (Charm) | `gum --help` |
|
|
1626
1628
|
| `htop` | htop | Interactive process and resource monitor | `man htop` |
|
|
1627
1629
|
| `homebrew` | Homebrew | Package manager for Linux (and macOS) | `brew --help` |
|
|
1628
1630
|
| `ipython` | IPython | Enhanced interactive Python shell with rich tab completion and magic commands | `ipython --help` |
|
|
@@ -1644,6 +1646,7 @@ links:
|
|
|
1644
1646
|
| `saml2aws` | saml2aws | SAML → AWS STS credentials CLI (Versent) | `saml2aws --help` |
|
|
1645
1647
|
| `starship` | Starship | Fast, cross-shell customizable prompt (`devstuff configure starship`) | `starship --help` |
|
|
1646
1648
|
| `syncthing` | Syncthing | Peer-to-peer file sync daemon (`devstuff configure syncthing` to pair devices) | `syncthing --help` |
|
|
1649
|
+
| `tmux` | tmux | Terminal multiplexer — persistent sessions, windows and panes | `tmux -h` |
|
|
1647
1650
|
| `yq` | yq | Portable command-line YAML/JSON/XML processor | `yq --help` |
|
|
1648
1651
|
|
|
1649
1652
|
### Languages
|
|
@@ -73,6 +73,12 @@ links:
|
|
|
73
73
|
category: shell
|
|
74
74
|
url: https://starship.rs/config/
|
|
75
75
|
|
|
76
|
+
tmux-wiki:
|
|
77
|
+
name: tmux Wiki
|
|
78
|
+
description: The official tmux wiki — getting started, FAQ, formats and configuration
|
|
79
|
+
category: shell
|
|
80
|
+
url: https://github.com/tmux/tmux/wiki
|
|
81
|
+
|
|
76
82
|
conventional-commits:
|
|
77
83
|
name: Conventional Commits
|
|
78
84
|
description: The commit message specification used by commitizen
|
|
@@ -157,12 +163,24 @@ links:
|
|
|
157
163
|
category: data
|
|
158
164
|
url: https://duckdb.org/docs/current/
|
|
159
165
|
|
|
166
|
+
druid-docs:
|
|
167
|
+
name: Apache Druid Documentation
|
|
168
|
+
description: Real-time analytics (OLAP) database — design, ingestion and querying
|
|
169
|
+
category: data
|
|
170
|
+
url: https://druid.apache.org/docs/latest/design/
|
|
171
|
+
|
|
160
172
|
watchtower-docs:
|
|
161
173
|
name: Watchtower Documentation
|
|
162
174
|
description: Automates Docker container image updates, with scheduling, registry auth, notifications, and an HTTP API
|
|
163
175
|
category: containers
|
|
164
176
|
url: https://watchtower.nickfedor.com/
|
|
165
177
|
|
|
178
|
+
homepage-docs:
|
|
179
|
+
name: Homepage
|
|
180
|
+
description: Self-hosted application dashboard configured with YAML or Docker labels
|
|
181
|
+
category: containers
|
|
182
|
+
url: https://gethomepage.dev/
|
|
183
|
+
|
|
166
184
|
regex101:
|
|
167
185
|
name: regex101
|
|
168
186
|
description: Online regex tester, builder, converter, and debugger across PCRE2, JavaScript, Python, Go, Java, .NET, and Rust flavors
|
|
@@ -175,6 +193,12 @@ links:
|
|
|
175
193
|
category: monitoring
|
|
176
194
|
url: https://prometheus.io/
|
|
177
195
|
|
|
196
|
+
serverbox-docs:
|
|
197
|
+
name: Server Box Documentation
|
|
198
|
+
description: App for monitoring and managing Linux servers over SSH — status, terminal, SFTP, containers
|
|
199
|
+
category: monitoring
|
|
200
|
+
url: https://serverbox.lolli.tech/docs/
|
|
201
|
+
|
|
178
202
|
cvedetails:
|
|
179
203
|
name: CVEdetails
|
|
180
204
|
description: CVE vulnerability database combining CVE records with exploits, EPSS and CISA KEV flags, and search by vendor, product, or date
|
|
@@ -145,6 +145,32 @@ tools:
|
|
|
145
145
|
set -euo pipefail
|
|
146
146
|
sudo rm -f /usr/local/bin/bat
|
|
147
147
|
|
|
148
|
+
bubblewrap:
|
|
149
|
+
name: bubblewrap + socat
|
|
150
|
+
description: Unprivileged sandbox (bwrap) and its network relay (socat) - what Claude Code's /sandbox needs on Linux
|
|
151
|
+
category: tools
|
|
152
|
+
type: apt
|
|
153
|
+
apt_packages: bubblewrap socat
|
|
154
|
+
# Both halves, not just bwrap: flatpak Depends: bubblewrap, and the homebrew
|
|
155
|
+
# entry installs it, so bwrap alone must not count as installed or install_cmd
|
|
156
|
+
# would early-return and socat would never arrive.
|
|
157
|
+
check_cmd: command -v bwrap >/dev/null 2>&1 && command -v socat >/dev/null 2>&1
|
|
158
|
+
version_cmd: bwrap
|
|
159
|
+
help_cmd: bwrap --help
|
|
160
|
+
docs_url: https://github.com/containers/bubblewrap
|
|
161
|
+
remove_script: |
|
|
162
|
+
set -euo pipefail
|
|
163
|
+
# apt-get remove -y also removes every package that depends on these (flatpak
|
|
164
|
+
# depends on bubblewrap), without asking. Simulate first and refuse if it would.
|
|
165
|
+
extra=$(apt-get -s remove bubblewrap socat 2>/dev/null | awk '/^Remv /{print $2}' | grep -vxE 'bubblewrap|socat' || true)
|
|
166
|
+
if [ -n "$extra" ]; then
|
|
167
|
+
echo "Not removing: apt would also remove packages that depend on bubblewrap or socat:" >&2
|
|
168
|
+
echo "$extra" >&2
|
|
169
|
+
echo "Remove those first, or run apt-get remove yourself and review its list." >&2
|
|
170
|
+
exit 1
|
|
171
|
+
fi
|
|
172
|
+
sudo apt-get remove -y bubblewrap socat
|
|
173
|
+
|
|
148
174
|
claude-code:
|
|
149
175
|
name: Claude Code
|
|
150
176
|
description: Anthropic's agentic coding CLI
|
|
@@ -373,6 +399,28 @@ tools:
|
|
|
373
399
|
PY
|
|
374
400
|
fi
|
|
375
401
|
|
|
402
|
+
gum:
|
|
403
|
+
name: gum
|
|
404
|
+
description: Prompts, pickers, spinners and styled output for shell scripts (Charm)
|
|
405
|
+
category: tools
|
|
406
|
+
type: bash
|
|
407
|
+
check_cmd: gum
|
|
408
|
+
help_cmd: gum --help
|
|
409
|
+
docs_url: https://github.com/charmbracelet/gum
|
|
410
|
+
install_script: |
|
|
411
|
+
set -euo pipefail
|
|
412
|
+
# Charm's apt repo, not the Ubuntu archive: the archive ships gum 0.17, upstream is 2.x.
|
|
413
|
+
# The key is ASCII-armoured and apt reads it as-is from a .asc path, so no gpg is needed.
|
|
414
|
+
sudo install -d -m 0755 /etc/apt/keyrings
|
|
415
|
+
sudo curl -fsSL -o /etc/apt/keyrings/charm.asc https://repo.charm.sh/apt/gpg.key
|
|
416
|
+
echo "deb [signed-by=/etc/apt/keyrings/charm.asc] https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list >/dev/null
|
|
417
|
+
sudo apt-get update -q
|
|
418
|
+
sudo apt-get install -y gum
|
|
419
|
+
remove_script: |
|
|
420
|
+
set -euo pipefail
|
|
421
|
+
sudo apt-get remove -y gum
|
|
422
|
+
echo "The Charm apt source and keyring were left in place; other Charm tools may use them."
|
|
423
|
+
|
|
376
424
|
homebrew:
|
|
377
425
|
name: Homebrew
|
|
378
426
|
description: Package manager for Linux (and macOS)
|
|
@@ -890,6 +938,16 @@ tools:
|
|
|
890
938
|
echo "The apt source and keyring were left in place — they may predate this install."
|
|
891
939
|
echo "Linger (loginctl enable-linger), if it was enabled, was left unchanged."
|
|
892
940
|
|
|
941
|
+
tmux:
|
|
942
|
+
name: tmux
|
|
943
|
+
description: Terminal multiplexer - persistent sessions, windows and panes
|
|
944
|
+
category: tools
|
|
945
|
+
type: apt
|
|
946
|
+
apt_packages: tmux
|
|
947
|
+
check_cmd: tmux
|
|
948
|
+
help_cmd: tmux -h
|
|
949
|
+
docs_url: https://github.com/tmux/tmux/wiki
|
|
950
|
+
|
|
893
951
|
uv:
|
|
894
952
|
name: uv
|
|
895
953
|
description: Astral Python package and project manager
|
|
@@ -24,6 +24,9 @@ from dev_setup import registry
|
|
|
24
24
|
_EXTRA_EXECUTABLES: dict[str, tuple[str, ...]] = {
|
|
25
25
|
"ansible": ("ansible-playbook", "ansible-galaxy", "ansible-vault", "ansible-doc"),
|
|
26
26
|
"ansible-vault": ("ansible-playbook",),
|
|
27
|
+
# check_cmd already requires both binaries; keep socat as a belt-and-braces
|
|
28
|
+
# assertion that the container really has it.
|
|
29
|
+
"bubblewrap": ("socat",),
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
# Tools excluded from automated CI testing — with explicit reasons
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"""Catalog script bodies exercised against the real bash.
|
|
2
|
+
|
|
3
|
+
These run the remove_script the bundled catalog actually ships, with shim
|
|
4
|
+
`apt-get`/`sudo` binaries on PATH — the script's own output and the shims'
|
|
5
|
+
side effects are the assertions, not a reimplementation of the logic.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
import os
|
|
11
|
+
import stat
|
|
12
|
+
import subprocess
|
|
13
|
+
from pathlib import Path
|
|
14
|
+
|
|
15
|
+
import pytest
|
|
16
|
+
|
|
17
|
+
from dev_setup import registry
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
@pytest.fixture()
|
|
21
|
+
def shim_dir(tmp_path, monkeypatch):
|
|
22
|
+
"""A bin dir of fake system tools, first on PATH.
|
|
23
|
+
|
|
24
|
+
`apt-get` echoes whatever the test put in `apt-get.out`; `sudo` appends
|
|
25
|
+
its argv to `sudo.log` — so a sudo that should never happen is proven by
|
|
26
|
+
the file's absence, not by the script's exit code alone.
|
|
27
|
+
"""
|
|
28
|
+
bin_dir = tmp_path / "bin"
|
|
29
|
+
bin_dir.mkdir()
|
|
30
|
+
apt_get = bin_dir / "apt-get"
|
|
31
|
+
apt_get.write_text('#!/bin/sh\ncat "$APT_GET_OUT"\n')
|
|
32
|
+
sudo = bin_dir / "sudo"
|
|
33
|
+
sudo.write_text('#!/bin/sh\necho "$@" >> "$SUDO_LOG"\n')
|
|
34
|
+
for f in (apt_get, sudo):
|
|
35
|
+
f.chmod(f.stat().st_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
|
|
36
|
+
monkeypatch.setenv("APT_GET_OUT", str(tmp_path / "apt-get.out"))
|
|
37
|
+
monkeypatch.setenv("SUDO_LOG", str(tmp_path / "sudo.log"))
|
|
38
|
+
monkeypatch.setenv("PATH", f"{bin_dir}{os.pathsep}{os.environ['PATH']}")
|
|
39
|
+
return tmp_path
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def _remove_script() -> str:
|
|
43
|
+
registry.init()
|
|
44
|
+
tool = registry.get("bubblewrap")
|
|
45
|
+
assert tool is not None and tool.remove_script
|
|
46
|
+
return tool.remove_script
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def _run(script: str, tmp_path: Path) -> subprocess.CompletedProcess:
|
|
50
|
+
script_path = tmp_path / "remove.sh"
|
|
51
|
+
script_path.write_text(script)
|
|
52
|
+
return subprocess.run(["bash", str(script_path)], capture_output=True, text=True)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def _check_cmd() -> str:
|
|
56
|
+
registry.init()
|
|
57
|
+
tool = registry.get("bubblewrap")
|
|
58
|
+
assert tool is not None and tool.check_cmd
|
|
59
|
+
return tool.check_cmd
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def _run_check(executables: tuple[str, ...], tmp_path: Path) -> subprocess.CompletedProcess:
|
|
63
|
+
"""Run the real check_cmd with PATH limited to the shim dir.
|
|
64
|
+
|
|
65
|
+
Absolute bash path on argv — PATH can't resolve it; `command -v` is a
|
|
66
|
+
builtin, so the shims alone decide what it finds.
|
|
67
|
+
"""
|
|
68
|
+
bin_dir = tmp_path / "check-bin"
|
|
69
|
+
bin_dir.mkdir()
|
|
70
|
+
for name in executables:
|
|
71
|
+
f = bin_dir / name
|
|
72
|
+
f.write_text("#!/bin/sh\n")
|
|
73
|
+
f.chmod(f.stat().st_mode | stat.S_IXUSR)
|
|
74
|
+
env = {"PATH": str(bin_dir)}
|
|
75
|
+
return subprocess.run(
|
|
76
|
+
["/bin/bash", "-c", _check_cmd()], env=env, capture_output=True, text=True
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def test_check_cmd_requires_socat_not_just_bwrap(tmp_path):
|
|
81
|
+
# flatpak Depends: bubblewrap, and the homebrew entry installs it — a bare
|
|
82
|
+
# `check_cmd: bwrap` would read as installed while socat never arrives.
|
|
83
|
+
result = _run_check(("bwrap",), tmp_path)
|
|
84
|
+
assert result.returncode != 0
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def test_check_cmd_passes_with_both_binaries(tmp_path):
|
|
88
|
+
result = _run_check(("bwrap", "socat"), tmp_path)
|
|
89
|
+
assert result.returncode == 0
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
def test_guard_refuses_when_dependents_would_be_removed(shim_dir):
|
|
93
|
+
(shim_dir / "apt-get.out").write_text(
|
|
94
|
+
"Remv bubblewrap [0.11.1]\nRemv socat [1.8.0]\nRemv flatpak [1.16.1-1]\n"
|
|
95
|
+
)
|
|
96
|
+
result = _run(_remove_script(), shim_dir)
|
|
97
|
+
assert result.returncode == 1
|
|
98
|
+
assert "flatpak" in result.stderr
|
|
99
|
+
# The refusal happens before any sudo — the shim was never invoked.
|
|
100
|
+
assert not (shim_dir / "sudo.log").exists()
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def test_guard_removes_when_only_the_packages_themselves_go(shim_dir):
|
|
104
|
+
(shim_dir / "apt-get.out").write_text(
|
|
105
|
+
"Remv bubblewrap [0.11.1]\nRemv socat [1.8.0]\n"
|
|
106
|
+
)
|
|
107
|
+
result = _run(_remove_script(), shim_dir)
|
|
108
|
+
assert result.returncode == 0, result.stderr
|
|
109
|
+
sudo_log = shim_dir / "sudo.log"
|
|
110
|
+
assert sudo_log.read_text().strip() == "apt-get remove -y bubblewrap socat"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|