Problem
cli/python/base_dev/engine.py is currently about 632 lines and mixes prerequisite profile handling with AI tool installer/check behavior. As the AI profile grows, keeping tool metadata, installer policy, and profile orchestration in one file will make the dev profile layer harder to extend safely.
Desired outcome
Separate AI tool-specific logic from the base dev profile engine while preserving the current profile behavior and remote-installer policy boundaries.
Scope
- Move AI tool metadata, checks, installer allowlist behavior, and related helpers into a focused module such as
ai_tools.py.
- Keep profile orchestration and shared prerequisite behavior in the profile engine.
- Preserve current
dev, ai, and related profile outputs and exit behavior.
- Keep tests or add focused tests around AI installer policy, dry-run behavior, and missing-tool checks.
Non-goals
- Do not add support for new AI tools in this refactor.
- Do not change the remote installer trust policy.
- Do not alter profile names or user-facing setup/check commands.
Acceptance criteria
- AI tool-specific implementation no longer lives directly in the main profile engine.
- Current profile check/setup behavior remains compatible.
- Focused tests cover the extracted AI tool boundary.
- Documentation updates are limited to contributor-facing structure if needed.
Problem
cli/python/base_dev/engine.pyis currently about 632 lines and mixes prerequisite profile handling with AI tool installer/check behavior. As the AI profile grows, keeping tool metadata, installer policy, and profile orchestration in one file will make the dev profile layer harder to extend safely.Desired outcome
Separate AI tool-specific logic from the base dev profile engine while preserving the current profile behavior and remote-installer policy boundaries.
Scope
ai_tools.py.dev,ai, and related profile outputs and exit behavior.Non-goals
Acceptance criteria