Skip to content

Split base_dev AI tool logic from profile engine #928

Description

@codeforester

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or product improvement

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions