feat(apply-all): add --active flag to apply only to running containers#186
Merged
skulidropek merged 4 commits intoProverCoderAI:mainfrom Mar 23, 2026
Merged
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: ProverCoderAI#185
…ontainers - Adds activeOnly field to ApplyAllCommand domain type - Extends parser to parse --active flag for apply-all/update-all commands - Modifies applyAllDockerGitProjects to accept command and filter by running containers when activeOnly=true (runs docker ps, skips stopped containers) - Updates usage help text to document --active option - Adds parser tests for --active flag in new parser-apply-all.test.ts - Exports ProjectIndex type from projects-core.ts ∀p ∈ Projects: activeOnly=true → applyAll(p) iff running(container(p)) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Replace 'as Command' cast in parseApplyAll with typed variable declaration - Rewrite parser-apply-all.test.ts to avoid 'as const' casts (no-restricted-syntax) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This reverts commit fc01f4d.
Contributor
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
🤖 Models used:
📎 Log file uploaded as Gist (1954KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
Contributor
Author
🔄 Auto-restart 1/3Detected uncommitted changes from previous run. Starting new session to review and commit or discard them. Uncommitted files: Auto-restart will stop after changes are committed or discarded, or after 2 more iterations. Please wait until working session will end and give your feedback. |
Contributor
Author
🔄 Auto-restart 1/3 LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
🤖 Models used:
📎 Log file uploaded as Gist (2114KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
Contributor
Author
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #185
Adds
--activeflag todocker-git apply-all(and its aliasupdate-all) so it applies only to currently running containers, skipping stopped ones.Changes
ApplyAllCommand(domain.ts): AddedactiveOnly: booleanfieldparser.ts):apply-all/update-allnow parse--activeflag intoactiveOnly=trueapplyAllDockerGitProjects(projects-apply-all.ts): AcceptsApplyAllCommand; whenactiveOnly=truerunsdocker psand skips containers not in the running names listprogram.ts: Passes the parsed command toapplyAllDockerGitProjectsusage.ts: Documents--activeoption and updatesapply-allcommand descriptionparser-apply-all.test.ts): Parser tests for--activeflagUsage
Mathematical Guarantees
Invariants:
∀p ∈ Projects: activeOnly=false → applyAll(p)(unchanged behavior without flag)∀p ∈ Projects: activeOnly=true → applyAll(p) iff running(container(p))Postconditions:
activeOnly=true → ∀p skipped: ¬running(container(p))Complexity:
O(n)wheren = |projects|; with--activeadds onedocker pscall:O(n + docker_ps)🤖 Generated with Claude Code