Skip to content

refactor(mqlaunch): extract prompt concern#53

Merged
MCamner merged 1 commit into
mainfrom
refactor/mqlaunch-extract-prompt-concern
Jul 17, 2026
Merged

refactor(mqlaunch): extract prompt concern#53
MCamner merged 1 commit into
mainfrom
refactor/mqlaunch-extract-prompt-concern

Conversation

@MCamner

@MCamner MCamner commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Why

Step 11a reduces the live mqlaunch monolith one concern at a time. Prompt
directory handling, AI-backend guardrails, prompt browsing, and prompt backups
were still defined directly in the launcher, which made their ownership harder
to test and allowed duplicate definitions to return unnoticed.

What Changed

  • Move the seven prompt and AI-backend functions into the shared zsh library
    mqlaunch/lib/prompts.sh.
  • Source that library from the live launcher without changing command or menu
    routes.
  • Add a focused contract test for prompt-directory precedence, backend status,
    and AI-mode argument forwarding.
  • Register the concern in the monolith de-layering gate and full selftest.
  • Document the scoped implementation and rollback plan.

Verification

The focused contract test confirms that the repo-local prompt directory still
wins over the configured fallback, all three backend states are preserved, and
safe_run_ai forwards the selected mode unchanged. The monolith gate confirms
that all seven functions have one live definition.

@MCamner
MCamner marked this pull request as ready for review July 17, 2026 13:06
@MCamner
MCamner merged commit 4753dbd into main Jul 17, 2026
3 checks passed
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