Skip to content

Refactor CLI orchestration into services#48

Merged
hannesill merged 3 commits into
mainfrom
codex/repo-structure-quality-docs
May 30, 2026
Merged

Refactor CLI orchestration into services#48
hannesill merged 3 commits into
mainfrom
codex/repo-structure-quality-docs

Conversation

@hannesill

Copy link
Copy Markdown
Owner

Summary

  • Refactor CLI orchestration for config, agent env, and derived-table initialization into service modules
  • Add docs freshness and cohort-builder bundle checks
  • Harden notes tool input validation and SQL literal handling
  • Fix the existing Ruff RUF059 integration-test lint issue
  • Bump package version to 0.5.2

Validation

  • uv run pytest
  • uv run ruff check
  • uv run python scripts/update_derived_docs.py --check
  • uv run python scripts/check_cohort_builder_bundle.py
  • CLI smoke checks for capabilities, status, list-datasets, init-derived, agent-env, config, download, and doctor

Implications

  • No migration required
  • CLI behavior should remain compatible while service boundaries improve testability
  • Package metadata now reports version 0.5.2

hannesill added 3 commits May 30, 2026 16:35
Move init-derived, agent-env, and MCP config orchestration behind service functions so Typer handlers focus on option parsing and rendering. Add generated derived-table docs checks, notes SQL input validation, and a cohort-builder UI bundle freshness workflow.

Behavioral implications: CLI command names and JSON envelopes remain compatible; repository metadata now points to the canonical hannesill/m4 GitHub location. UI bundle checks require Node only in the dedicated workflow or when run explicitly.
Rename unused db_path tuple bindings in end-to-end integration tests to the conventional _db_path form so Ruff no longer reports RUF059.

Behavior is unchanged; this only restores a clean lint gate for the branch.
Update the dynamic package version source for the next patch release.

No behavioral or migration implications; this is release metadata only.
@hannesill
hannesill merged commit b48ef18 into main May 30, 2026
8 checks passed
@hannesill
hannesill deleted the codex/repo-structure-quality-docs branch May 30, 2026 16:52
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.

1 participant