refactor(cli): add shared warn() helper, unify warning stream

Analysed against bfc881937 files changedby sloemo01
Open PR on GitHub

Change-risk score

6.8out of 10Below typical
Repository health
2.8to2.8base against this head

This change sits in the bottom third of this repository's own risk distribution. It is riskier than 23% of this repository's own commits.

No changed file lost health in this diff. Nothing outside this PR depends on a contract it changed.

Files changed
7
in this diff
Contracts changed
0
removed or signature
Outside callers
0
not in this diff
Findings added
0
12 resolved

Blast radius on the repo map

Every file in the repository, grouped into its own directories and sized by lines. The ones this PR changes are lit, and everything that imports them is marked.

packagestestsapi-clientclicoreserveruivscodewebunitsrcsrc/repowis…src/repowise/coresrc/repowise/server__tests__srcsrccligenerationhealthingestionpersiste…servertest_pro…workspaceagent_targe…commandsanalysisgenerationingestionworkspacemcp_serverroutersc4graphcomponen…mcp
changed, health fellchanged, health rosechanged, health heldimports a changed fileuntouchedchanged by this PR

Drawing 3,306 of 3,706 files at a readable size, grouped by directory and sized by lines of code. 7 changed here reach 13 more by import. 400 are too small to see at this width, which is what the frame below is for.

Inside packages/cli/src/repowise/cli

agent_targetscommandseditor_integrationsplatformuiuninstall_data/c…formatstargetsaugment_cmddoctor_cmdgenerate_cmdinit_cmdupdate_cmdhelpers…hook_le…hooks.pymcp_con…output.…rewrite…se…sh…to…up…up…wh…wo…base.pyclaud…cod…registr…types.pyask_cm…claude…contex…correc…costs_…covera…dead_c…decisi…delete…distil…export…export…hook_c…impact…login_…mcp_cmd…reindex…restyle…risk_cm…saved_c…search_…securit…ser…sta…sym…uni…upgrade…watch_c…why_cmd…workspa…claude_c…cod…vs…embe…__…ag…br…ma…mode_select…provide…re…works…inventory…runne…repo…toml_…yaml_me…claude_code.pycodex.pycursor.pyherme…ope…vscode.py_sha…comma…decision_…read_s…replac…reread…search.pyser…sessi…wrong…repo_checks…command…engin…comma…ref…su…command.pyge…persist…reporti…workspac…command.pyde…in…persisten…workspace…__…em…

195 files, 6 changed by this PR and 13 that import one. This PR changes 7 files in total, spread across more than one top-level directory. Click any directory above to frame it instead.

Changed

What this PR added, and what it took away

Introduced findings are the ones inside the lines this PR added, not the file's existing ones. The resolved column is the only place in the product that lists them.

Introduced (0)
  • Nothing added in the changed lines.
Resolved (12)
  • function hotspot
    packages/cli/src/repowise/cli/commands/init_cmd/command.py
  • dry violation
    packages/cli/src/repowise/cli/commands/init_cmd/command.py
  • function hotspot
    packages/cli/src/repowise/cli/commands/reindex_cmd.py
  • io in loop
    packages/cli/src/repowise/cli/commands/reindex_cmd.py
  • function hotspot
    packages/cli/src/repowise/cli/commands/workspace_cmd.py
  • dry violation
    packages/cli/src/repowise/cli/commands/workspace_cmd.py
  • brain method
    packages/cli/src/repowise/cli/commands/workspace_cmd.py
  • function hotspot
    packages/cli/src/repowise/cli/helpers.py
  • brain method
    packages/cli/src/repowise/cli/helpers.py
  • io in loop
    packages/cli/src/repowise/cli/helpers.py
  • io in loop
    packages/cli/src/repowise/cli/worktree.py
  • nested loop with io
    packages/cli/src/repowise/cli/worktree.py

Who else knows this code

The primary author of each changed file by share of its recent commits, mined from git history. Advisory: it says who has context, not who must review.

  • packages/cli/src/repowise/cli/commands/mcp_cmd.pyRaghav Chamadiya 46% of 10 commits
  • packages/cli/src/repowise/cli/commands/init_cmd/command.pyRaghav Chamadiya 92% of 55 commits
  • tests/unit/cli/test_helpers.pyRaghav Chamadiya 55% of 11 commits
  • packages/cli/src/repowise/cli/commands/workspace_cmd.pyRaghav Chamadiya 97% of 24 commits
  • packages/cli/src/repowise/cli/helpers.pyRaghav Chamadiya 83% of 39 commits

Tests that cover this change

Test files that import a file this PR changes. Not a coverage measurement: it is the import graph, so it says which tests are worth running, not which lines they reach.

  • tests/integration/test_cli.py
  • tests/unit/cli/test_commands.py
  • tests/unit/analysis/test_security_scan.py
  • tests/unit/cli/test_command_target.py
  • tests/unit/cli/test_worktree.py
  • tests/unit/test_release_manifests.py
  • tests/unit/cli/test_edenai_reachability.py
  • tests/unit/cli/test_embedder_resolution.py
  • tests/unit/cli/test_reindex_cmd.py
  • tests/unit/cli/test_distill_verdict_fingerprint.py
  • tests/unit/cli/test_format_json_rollout.py
  • tests/unit/cli/test_workspace_add_defaults.py
  • tests/unit/cli/test_editor_setup.py
  • tests/unit/cli/test_health_rescore_gate.py

Get this on your own pull requests

This page came from an index of repowise-dev/repowise. No model calls, no configuration, and it refreshes on every push. Install the bot and every pull request gets one of these.