cowork-bot: automated improvements (cowork/improve-devforge-cli)#12
Merged
Conversation
…builtins alias - dispatch: add _is_tool_installed() pre-flight check (importlib.util.find_spec) so 'devforge guard ...' on an uninstalled tool shows a clear 'not installed — run pip install devforge[guard]' message instead of silently exiting 1 with a raw Python ModuleNotFoundError trace. The previous except FileNotFoundError was dead code: the error occurs inside the subprocess, not at Popen launch time. - install all: use canonical devforge[all] extra instead of joining all tool keys into a comma-separated extras string (fragile; diverges if TOOLS and pyproject.toml [all] ever drift). - Remove 'import builtins as _builtins' workaround; no builtin shadowing exists, so list() is fine throughout. - Remove unused ctx: typer.Context parameter from dispatch inner function. - Tests: 17/17 green; new TestIsToolInstalled + dispatch install-hint + install-all-extra assertion tests cover the fixed paths.
…ve cli.py merge conflicts keeping the install-all + dispatch improvements
…ith verified-working git+ form devforge-tools is NOT on public PyPI (verified 404 on pypi.org), so the previous bare 'pip install devforge-tools[all/guard/...]' commands failed for every user. README + AGENTS now lead with the git+ GitHub-source form and an honest 'not on public PyPI' note; the 'devforge install <tool>' command and the not-installed dispatch hint now build git+ URLs from each tool's repo URL; false PyPI badges removed from README. Tests updated to assert the corrected hint. Marketing-growth-agent run — conversion-surface repair (highest-ROI rung). NOT pushed (W's call per OPS_CONTRACT).
…ilure trap) The per-tool subcommands (guard, sql, deploy, ...) used a typer Argument for args, which made typer reject any token beginning with `-` as an unknown option BEFORE the underlying tool ever ran. So `devforge guard --config x.yaml` failed with "No such option" and the tool silently never executed — the hub's known silent-failure/observability trap. Register each dispatch command with ignore_unknown_options + allow_extra_args and forward ctx.args to the underlying `python -m <pkg>` invocation. Positional args and flags now reach the tool. Added a regression test (test_dispatch_forwards_tool_flags) and the cowork-auto-pr workflow so the improvement is delivered as a PR.
…t + prevent rich line-wrap breaking the URL
…o cowork/improve-devforge-cli
…_dispatch_forwards_tool_flags)
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Automated improvement PR from the Cowork repo-improver rotation. Changes include: