Skip to content

chore: refactor self command domain - #4685

Merged
mnriem merged 1 commit into
github:mainfrom
mnriem:mnriem-chore/self-domain-refactor
Sep 22, 2026
Merged

mnriem merged 1 commit into
github:mainfrom
mnriem:mnriem-chore/self-domain-refactor

Conversation

@mnriem

@mnriem mnriem commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • move the specify self command hierarchy into specify_cli.selfs with dedicated command_check.py and command_upgrade.py adapters
  • preserve specify_cli._version as the established domain and monkeypatch compatibility surface
  • mirror command tests under tests/specify_cli/selfs while retaining version-domain tests at the package level
  • document the plural Python package convention for singular nested CLI groups

Validation

  • full suite: 8,418 passed, 17 skipped (8,435 collected)
  • focused self/version/authentication suite: 353 passed, 1 skipped
  • uvx ruff@0.15.0 check src tests
  • git diff --check
  • wheel content and runtime monkeypatch behavior verified

Authored by GitHub Copilot (model: GPT-5.6 Sol, autonomous) on behalf of @mnriem; implementation and this PR description are AI-generated.

Assisted-by: GitHub Copilot (model: GPT-5.6 Sol, autonomous)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings September 22, 2026 18:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

馃煝 Approval recommended

No unresolved issues were identified, and compatibility is covered by the updated tests.

Review effort: Balanced
Findings: None

What changed in this PR

Refactors the specify self command hierarchy into specify_cli.selfs while preserving _version compatibility.

Changes:

  • Added dedicated check and upgrade command adapters.
  • Reorganized command tests and shared helpers.
  • Documented the plural package convention.
File Change
tests/鈥媠pecify_cli/鈥媡est_version_verification.py Updates verification coverage and imports.
tests/鈥媠pecify_cli/鈥媡est_version_release.py Retains version release coverage.
tests/鈥媠pecify_cli/鈥媡est_version_imports.py Verifies compatibility exports.
tests/鈥媠pecify_cli/鈥媡est_version_guidance.py Updates shared helper imports.
tests/鈥媠pecify_cli/鈥媡est_version_execution.py Updates shared helper imports.
tests/鈥媠pecify_cli/鈥媡est_version_detection.py Updates shared helper imports.
tests/鈥媠pecify_cli/鈥媠elfs/鈥媡est_command_upgrade.py Covers the relocated upgrade command.
tests/鈥媠pecify_cli/鈥媠elfs/鈥媡est_command_check.py Covers the relocated check command.
tests/鈥媠pecify_cli/鈥媠elfs/鈥媉_init__.py Initializes the self-command test package.
tests/鈥媠pecify_cli/鈥媠elf_upgrade_helpers.py Provides shared upgrade-test helpers.
src/鈥媠pecify_cli/鈥媠elfs/鈥媍ommand_upgrade.py Implements the upgrade adapter.
src/鈥媠pecify_cli/鈥媠elfs/鈥媍ommand_check.py Implements the check adapter.
src/鈥媠pecify_cli/鈥媠elfs/鈥媉_init__.py Defines and registers the self command group.
src/鈥媠pecify_cli/鈥媉version.py Preserves version logic and compatibility exports.
src/鈥媠pecify_cli/鈥媉_init__.py Registers the refactored command group.
design/鈥媍li.md Documents command-group package naming.

馃挕 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@mnriem
mnriem merged commit 9f745f6 into github:main Sep 22, 2026
15 checks passed
@mnriem
mnriem deleted the mnriem-chore/self-domain-refactor branch September 22, 2026 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants