Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
release: v0.56.0 (#3555)
Raghav Chamadiya1202d1af9305
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex a3fa4fb8f..4c4cbeb12 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -14,7 +14,7 @@"name": "repowise","source": "./plugins/claude-code","description": "Codebase intelligence for Claude Code. Indexes your repo into five layers (Graph, Git, Docs, Decisions, Code Health) and gives Claude deep understanding of architecture, ownership, hotspots, decisions, and defect risk — fewer greps, fewer file reads, lower cost per query.",- "version": "0.55.0",+ "version": "0.56.0","category": "productivity","keywords": ["codebase",diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.mdindex 921a9a1f6..61d738226 100644--- a/docs/CHANGELOG.md+++ b/docs/CHANGELOG.md@@ -9,6 +9,129 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0---+## [0.56.0] - 2026-10-12++repowise 0.56 hands agents the exact thing they need to act on. Search returns matching source lines and finds every file in the repository, `get_context` lists every edit site of a symbol verified against live files, caller rows carry the calling line, and `repowise update --working-tree` brings uncommitted work into the index in seconds. `repowise impacted-tests` selects a targeted subset on far more changes, with `--prioritize` and `--explain`.++Refactoring plans can be applied as written: large functions get staged Extract Method plans with each helper's header and call, text anchors and the tests to run between batches, on a precise dataflow. Fix first ranks by complexity removed times reach and by the execution role of the code, every surface reports the same counts, and Code Health views are served from stored rows in milliseconds. repowise now works natively with GitLab, Azure DevOps and Bitbucket, sets up GitHub Copilot CLI and Kiro, and the web UI ships in Simplified Chinese.++### Added++- **GitLab, Azure DevOps and Bitbucket are first-class git hosts** (#3350, #3361, #3362, #3367, #3368, #3381, #3382, #3386, #3351, #3355). Remotes, nested GitLab groups and Azure `org/project` paths parse into one key. Merge request and PR numbers are read per host (`!N` trailers, `Merged PR N:`, `(pull request #N)`), so every change links to the right review. Noreply addresses and bot accounts are recognised per host. CI build facts are read for GitHub Actions, GitLab CI, Azure Pipelines, Bitbucket Pipelines and Jenkins, and `default_revspec` works on Azure Pipelines PR builds.+- **`search_codebase` returns matching source lines** (#3131, #3130, #3189, #3191, #3199, #3201, #3128). Identifier and literal queries return `lines` (`path`, `line`, `kind`, `text`, definitions first) with a `complete` flag and `reasons` when it is false. Prose queries carry up to 3 `matched_lines` on the top file rows, and file rows name the matching symbols with their lines. Literal scans narrow with `git grep` and read source before tests and docs, so on a 20k-file TypeScript repository a key is found in all 17 source files that use it. One test file's mocks are capped at 3 plain references. `pattern` is accepted as an alias for `query`.+- **Search and `get_answer` return files that have no wiki page** (#3210, #3214, #3194, #3180). A file found by the symbol or the new filename lookup gets a row even when the index has no page for it. On a 21k-file TypeScript repository three such targets now rank 1, 4 and 5, with search and answer MRR unchanged on a 247-question localization set. Prose queries surface symbols whose name words match, and path mode matches spaced queries against filename words.+- **`get_context` lists every edit site of a symbol** (#3126, #3190, #3183). `include=["references"]` returns the definition, import, call and other live occurrence lines, checked against the files on disk, with `complete` and `reasons`. A local import alias is followed, and one file's plain references are capped at 3 with the rest counted in `sites_omitted_by_file`.+- **Caller rows show the calling line, through forwarding wrappers** (#3198, #3195, #3197, #3181). `get_context` callers and `get_answer` `graph_callers` carry `call_line` and its live `text`. A thin wrapper that only forwards to the target is followed one hop to the real caller. Functions passed as values in TypeScript, JavaScript and Python (registered in a list, passed as a callback, returned, exported and registered) and names destructured from a dynamic `import()` now have callers.+- **`get_answer` answers caller and trigger questions from the call graph** (#3196, #3212, #3116). "Which file calls X" questions get a `graph_callers` block, impact questions show who uses the lead file, and files named in a pasted stack trace (Python, JS/TS, Java/Kotlin, Go, Rust, C#) lead the results. On probe questions over a 20k-file TypeScript repository, keyless replies hold every expected file in 3 of 3 cases.+- **`repowise update --working-tree` indexes uncommitted edits** (#3095, #3107, #3100). Symbols, edges and pages for edited files are current without a commit, and a working-tree-only update skips the history and analysis phases (a 2-file edit on a small repository refreshes in 4.5 s, down from 12.5 s). MCP responses mark which served files carry uncommitted edits.+- **`get_context` skeleton+ view and focused symbol skeletons** (#3097, #3135, #3136). `include=["skeleton+"]` keeps every line except function bodies, each replaced by a marker with its line range. A symbol target's skeleton keeps only that symbol's body. `get_symbol` on a large class returns an outline with its members' ids.+- **`impacted-tests --prioritize` and `--explain`** (#3322, #3217, #3341). Selected tests are ordered likeliest to fail first, and `--prioritize` emits the whole suite with the selection at the head. `--explain <test>` says why a test was or was not selected, and JSON output carries the same record per test. Tests that walk source directories or start the project's own command run with every subset.+- **Staged Extract Method plans for functions one helper cannot fix** (#3387, #3392, #3433, #3470, #3468, #3471). The function keeps its setup and calls helpers in order, each stage at most CCN 10 and 60 lines, cut inside a loop body or `if` arm when that is where the complexity sits. Every stage is anchored by its first and last line text, and plans over 5 stages are served in batches with the tests to run between them. Applied from the plan text alone on 15 of the top 30 "Break up X" items across three repositories, every resulting CCN matched the estimate.+- **Extract Method plans write out the helper's header and call** (#3352, #3330, #3254, #3369). Plan detail carries the helper signature and the replacing call in the file's language (Python, TS, JS, Go, Java, Rust, C/C++), whether it is a method, what fields it writes, and whether it awaits. A due Fix first item carries its first step and verify command inline.+- **Refactoring plans name the tests that call their code** (#3478, #3323, #3289, #3486). Plans quote up to 5 nearest test functions as runnable `path::test` selectors, each step of a multi-step plan gets its own verify, tests that only pass through a hub module are dropped, and a JS/TS test command runs from the package that owns the test.+- **Refactoring plans carry decisions, consumers, dead code and recent edits** (#3348, #3485, #3390, #3459). A plan says which accepted decision governs its file, whether other code imports what it moves, whether its target is unreachable, whether the function is being edited right now, and whether it changes a symbol a package exports. An Extract Helper group whose occurrence already is a function calls that function instead of proposing a new one.+- **`repowise health --plan <id>` prints a plan as an agent recipe** (#3364). A plan exports as one recipe of preconditions, steps and checks, and one core renderer writes the agent prompt every surface shows.+- **Resolved plans record what happened** (#3391, #3363). Each function's CCN, size, parameters, nesting, execution role and body facts are stored, and a plan that stops being detected records its outcome with before and after measurements.+- **Performance causes carry the execution role of their loop** (#3347, #3428). Request, event consumer, scheduled job, startup, CLI, UI, tooling or test, seeded from routes, job registrations, lifecycle hooks and command decorators in Python and TS/JS. Cold roles leave the default queue, and REST and the UI filter by role.+- **Performance findings say whether the loop grows with the data in Go, Java, C# and Ruby** (#3489). A database or network call over query rows is told apart from one over a fixed list. On a Ruby application the default performance list goes from 0 to 16 proven items.+- **Performance findings say whether the loop grows with the data in Rust, Kotlin and C++** (#3515). Over 18,000 loops in ten Rust, Kotlin and C++ repositories, 6 to 15% of loops per language move from unknown to a proof, with no default list row lost or gained. A parameterised `LIMIT ?` is a capped read in every language.+- **C# and C get Extract Method plans** (#2919, #3441). C# (and Razor) has a def/use dataflow dialect, and C uses the C++ one.+- **PHP code health** (#3089). PHP has complexity, cohesion and assertion support and is scored like the other supported languages.+- **The secret scanner detects GitLab and Azure DevOps tokens and credentials in git remotes** (#3356). CLI warnings keep those tokens masked.+- **GitHub Copilot CLI and Kiro targets** (#3173, #3169). `--target=copilot` writes the Copilot CLI MCP config, `--target=kiro` the Kiro MCP config and a steering file, and `--target=vscode` adds Copilot instructions in `.github/copilot-instructions.md`. The integration matrix gains a Basic tier and an Indexing column.+- **Cursor shell commands are rewritten through a `preToolUse` hook** (#3177), for command families configured as `allow`.+- **`repowise init` defaults the provider picker to the agent you use** (#3171). When Claude Code, Codex or OpenCode is set up and signed in, indexing uses that login by default.+- **The web UI has a Simplified Chinese catalog and a language switcher** (#3129, #3151, #3327).+- **`get_health` opens a Do next action by its id** (#3544). The `act_` ids `get_overview` hands out resolve with `get_health(fix_id=...)`, so an agent can follow a Do next item straight to its findings.+- **The inline ignore marker also clears the stored scan** (#3536). A line marked `repowise-security-ignore` leaves the dashboard, `get_risk` and REST as well as `repowise security check`, which still reports it as suppressed.+- **Dead code and security report when they last ran** (#3303). The UI tells "never ran" from "ran and found nothing".++### Changed++- **Fix first ranks by complexity removed times reach** (#3366, #3422, #3484, #3482). Worth is complexity removed scaled by the file's importers, and Do next and Fix first lead with the same item. On a Python agent repository a CCN 963 function rises from #25 to #1. Terminal print and prompt flows, moderate functions in quiet files, and small closures credited with a whole file's importers leave the lead under named, counted exclusions. A plan that would leave a function above the break-up bar ranks after plans that finish the job and says so.+- **Every surface reports the same counts** (#3354, #3328, #3291, #3299, #3288, #3419). Each finding, performance cause and refactoring opportunity stores its queue verdict at index time, and CLI, MCP and REST report one count object (`inventory`, `in_scope`, `eligible`, `due`, `shown`, `excluded`). The Do next sentence is written once in core.+- **The performance queue leads with loops that grow** (#3276, #3258, #3395, #3253, #3250, #3443, #3425, #3447). A cause whose loop size is unmeasured never leads. Migrations, startup, shutdown, recovery, fire-and-forget tasks, inert call sites and functions gated off by a module flag stay out of the queue. Plans give one step per call site or per loop and variable, a chained query is one sink, and a TS/JS import's library is read from its whole module string.+- **`impacted-tests` selects a targeted subset on far more changes** (#3219, #3243, #3379, #3262, #3216, #3220, #3218, #3221, #3325, #3353, #3241, #3358). When the index lags the change's base, files changed in between are compared and only the routes they rewired are added; replayed over 32 merged PRs, a trailing index is never the only reason to run every test. Manifests, lockfiles, production `__init__.py` files and assets select the tests their reach implies (over 83 replayed failed PR runs, full-suite runs drop from 39 to 9 with zero new misses). A conftest reached only through its imports selects only the tests that can break, and setup files, path-named helpers, lazy string registries, Alembic migrations and VS Code extension entries are wired into the graph.+- **`get_change_risk` and `get_risk` name tests with the `impacted-tests` selection** (#3296, #3101). Both tools use the same selection and order as the command, and the PR directive lists `tests_to_update`, the test files a change will probably need to edit.+- **`get_risk` replies are leaner** (#3124, #3117, #3118, #3123, #3139, #3152, #3120). `structural_impact_score`, `overall_risk_score` and `may_break_tests` are dropped by default, `pr_blast_radius` ships only with `include=["blast"]` and detailed owner metrics only with `include=["owners"]`. PR summaries count totals, and `get_change_risk` scores a change that also touches docs or config files.+- **Plugin: the change review, code health and pre-modification skills and Lens follow the new `get_risk`, `get_change_risk` and `repowise health` behaviour, and the plugin passes the plugin directory's checks with an icon and links** (#3296, #3118, #3139, #3152, #3280, #3043).+- **Bare `repowise health` reads the stored analysis** (#3280). It writes nothing and returns in seconds; `--recompute` runs the in-process analysis as before.+- **MCP server instructions say when to use each tool** (#3134, #3125). Hosts that defer tool schemas see one "use X when" line per task.+- **Keyless `get_answer` replies are compact and lead with the right file** (#3108, #3137, #3184, #3102, #3186). Low and keyless replies serve a ranked shortlist with each file's functions, size and lines, and the answer sentence leads with the file retrieval ranked first.+- **Extract Method offers only spans worth making** (#3252, #3274, #3287, #3421, #3427, #3277, #3410, #3415, #3488). A span must cover at most 60% of the function, hold at least 8 code lines and remove at least 2 decisions. Spans across which a closure shares a local, that lose a local import, that split a try from its handlers or change how an exception leaves, or that hold a Java switch-rule `yield` are refused. Flat record builders are refused, every helper is named from banners or labels in the file's casing, and a plan stays within one language.+- **Import cycles are found over runtime edges** (#3259, #2803, #3077). Cycles count only imports that run: imports under `TYPE_CHECKING`, TypeScript type-only imports, imports inside function bodies and `dynamic_uses` hint edges are left out, and `break_cycle` plans are advisory.+- **Complexity reads nested functions and flat chains correctly** (#3405, #3278, #3338). A function defined inside another gets its own complexity entry, and TS/JS ternary dispatch chains, JSX conditionals and Python conditional-expression chains read as the flat dispatch they are.+- **Test support, bundles and pytest-uncollected modules are classified once** (#3429, #3218, #2669, #3046, #3290). `*.test-harness.ts`, `*.test-support.mjs` and `*.bundle.js` are classed the same on every ranked list, a test-named module pytest does not collect is production code, `__mocks__` counts anywhere, and Perl-style `t/` trees are Python tests.+- **Dead code: one gate decides `safe_to_delete`** (#3511). Docs and example code, export-only findings, and languages whose imports or calls are weakly resolved in the repository are never deletion-ready.+- **Dead code: an export only its own file uses is export-only** (#3510). These rows are capped at 0.3, below the default floor, and are never deletion-ready. Reading `exports.x` no longer makes a TypeScript file CommonJS.+- **Code Health pages tell all-clear from not-yet, filtered and error** (#3308, #3310, #3306, #3304, #3300, #3309, #3307, #3313, #3326, #3301, #3314). Every health, refactoring, impact, coupling, decisions and owners view separates those four states. The dead code page is one figure, one list and one table, security leads with posture and scan freshness, chat is a single column with stage-aware progress, and proportion bars share one component and palette. The VS Code extension follows the native theme.+- **Refactoring code drafts use the chat model** (#3329, #3383). One switch on the repo settings page and in an open plan turns helper naming and code drafts on.+- **Every LLM provider is declared once** (#3168, #3167, #3172). Registry tables, pricing, the init picker and the settings page derive from one spec per provider.+- **`anthropic` and `claude_cli` default to `claude-haiku-5-5`** (#3093).+- **Faster reads on large repositories** (#3311, #3315, #3423, #3279, #3340, #3389, #3255). Fix first and Do next are stored at index time (19.4 s to 0.01 s on a 20k-file repository), refactoring plan lists page from stored ranks (about 22 s to 0.2 s), and `get_health` lists and `get_overview` skip whole-repository work (dashboard 8.6 s to 3.3 s). Read-only commands start without loading the parser or reconciling the schema, impacted-tests walks the graph in memory, and the health walk cache is saved after a parallel pass (a second pass on a 5,200-file repository takes 3.4 s instead of 106 s).+- **`update` checks decision evolution in parallel, against this update's evidence** (#3524). The judge calls share wiki generation's `--concurrency` setting and read only the commits the update brought in, so the decisions phase takes seconds instead of minutes on an active repository. Its cost is booked as decision extraction.+- **The per-commit health scan runs after the update commits** (#3525). The write lock is released before the scan starts, each update spends at most 60 s on it, and commits an earlier budget did not reach are picked up by the next update.+- **Cohesion counts only groups of methods that share state** (#3552). In Python, TypeScript and the other explicit-receiver languages, a method that touches no field no longer forms a group of its own; on our own packages flagged classes went from 87 to 15, and on five popular open-source libraries from 57 to 7, each checked by hand.+- **A function worth breaking up leads its file** (#3526). Fix first and the file card lead with the largest break-up candidate instead of a smaller finding with a higher local impact.+- **Stored git history is re-read once when its rules change** (#3386). The first update after upgrading walks the whole history once, with no page generation and no model calls.+- **The CLI starts faster** (#3438). The git indexer's exports load on first use, so commands that never read history skip importing GitPython.+- **Blame ownership honours `.git-blame-ignore-revs`** (#3078), so formatting sweeps listed there leave line ownership with the real authors.+- **`search_codebase` serves one location per row** (#3317). Rows carry `path`; the deprecated `file` field announced in 0.55.0 is removed, along with page ids and structural titles a row can rebuild.++### Fixed++- Refactoring plans stay visible in the health views on SQLAlchemy 2.1, which a fresh install picks up (#3476).+- An index written by 0.55 or earlier re-renders its structural pages on its first update, with no model calls (about 140 pages a second, once), and files newly indexed in this release get their pages; prose pages are marked stale for `repowise generate --stale` (#3557).+- `init` stamps the parser fingerprint, so a parser change always reaches an index on its next update, and renamed symbols no longer keep their old graph nodes (#3558).+- An existing index is rescanned for security findings on its first update, so every scanner improvement in this release reaches unchanged files too (#3516), and every update rescans the files it changed (#3530).+- Recording a decision leaves the index's commit untouched, so test selection keeps its targeted subset afterwards (#3541).+- Do next judges a recent regression by the finding as it reads today, quoting its current severity, reason and line (#3543).+- The CLI, MCP and the overview report the same file and finding counts (#3532), rescored rows carry the commit they were scored against (#3531, #3540), and Fix first titles name a helper only when the plan has one (#3529).+- A type imported from an external package never resolves to a repository file by name, and TypeScript and C/C++ name lookups stay within their own language (#3527).+- `repowise dead-code` on an index behind HEAD builds the graph the way `update` does and keeps its log lines off the table (#3520, #3528).+- Extract Method on Java, C++, Rust and C# keeps a value a branch may have written (#3460).+- C# and C++ attributes after a comment are captured (#3461), and a deleted file's symbol pages are retired with it (#3464).+- repowise reads HEAD through a worktree's `.git` file (#3293), finds its local index after a repository moves (#3240), and MCP finds a repository by any spelling of its path (#3275).+- Every source walk uses the indexer's output-directory rule, so decision, vocabulary and workspace walks read source packages named `build`, `coverage` or `dist` (#3454).+- Test selection orders the files that name a test deterministically (#3453), and communities hold only the repository's own nodes (#2611).+- Extract Method returns values that a later conditional write does not kill, gives plans only the inputs their span uses, and reads Python loop `else` branches, Go writes through a field or index, comprehension scopes and `except ... as` names correctly (#3384, #3357, #3424, #3418, #3413, #3349, #3294).+- A docs-mode `update` prunes deleted files' findings, graph nodes, plans and embeddings (#3412).+- Credentials in a git remote or a registered repository URL are stripped before they reach the overview or repo responses (#3343, #3346).+- The security scan reports a sink only where code can run it, and reads weak hashes, f-string SQL and TLS verification from the code rather than its text: a `hashlib` call marked `usedforsecurity=False` is a checksum, `verify=False` counts on HTTP client calls, and symbol names and placeholders stay quiet. Every secret kind fires as before (#3534).+- A database read filtered to a set of keys (`in_(keys)`, `filter_by(id=...)`, PostgREST `.in_`/`.eq`) is bounded by the keys, so it no longer leads the performance queue (#3535).+- The security scan honours `pragma: allowlist secret`, and skips documented placeholders and values containing shell or template expansions (#3246, #3179, #3319). A scanner change now triggers a full rescan (#3086).+- Dead code recognises as used a function stored by its own registering decorator, a VB.NET Module whose members are used, Grafana plugin modules and Storybook config files (#3490, #3509, #3080, #3087). Files a tool config passes to a plugin factory, `.vscode-test.*` and scripts whose own usage line runs them are entry points (#3508).+- `get_context` resolves `path::Class.method` like `Class::method`, `get_symbol` accepts a bare unique name or a `query` argument as the id, and `days_ago` and fix-history recency are measured to the newest indexed commit (#3099, #3140, #3153, #3145).+- `get_health` and `get_risk` redirect a path that was renamed or split (#2922). `only=["fix_first"]` pages up to 25 items and the refactoring plan list returns what was asked for (#3255).+- Searches answer immediately (#3115), and `repowise mcp` in an uninitialised directory leaves it untouched (#3166).+- On PostgreSQL, existing columns are loosened at startup so upgrades need no Alembic step (#3068), and the `vector` type warning is silenced (#3157).+- `claude_cli` parses the event array `claude -p` prints with verbose output on (#3170). Gemini chat accepts every tool schema (#3064), and reasoning models get room to write the synthesized answer (#3094).+- A scripted `--no-prose` init stays fully keyless (#3242), and size-skip notices leave the index marked healthy (#3272).+- `repowise uninstall` lists and removes the post-commit hook and lists a configured database as kept (#2655, #3397). Decision commands in an unindexed worktree use the base checkout's index (#3398). Init drops a stale embedding model pin (#2654).+- TypeScript configs with comments resolve their aliases, unique ambient types resolve, and source packages named `build`, `coverage`, `dist` or `target` are indexed (#3067, #2999, #3221).+- Go generic calls with explicit type arguments have call sites (#2992), and contract impact keys symbols by id so same-named methods are kept (#3176).+- Clone detection stays within one language (#3414), Rust grouped `use` leaves are classified on their own (#3076), `# noqa` on Python `except` lines and Java `try ... fail()` are respected (#2853, #2996), `knowledge_loss` ignores a rename-only window (#3075), and a repository with no scored file has no score instead of 10.0 (#3053).+- Numbered ADR folders are found at any depth (#3061), and doc drift honours Markdown closing fences and GitHub's suffixed anchors (#3239, #3256).+- Java, C#, Kotlin and Scala test classes such as `FooTest.java` and `FooSpec.kt` pair with their source (#3096).+- The web UI decodes file content as UTF-8 and numbers the performance queue from 1 (#3249, #3248). Wiki backlinks are ordered deterministically (#2881), and the branch-overlap summary says how many branches were not scanned (#2934).+- A workspace with a shared database queues its one-time reindex (#3044), and the MCP watchdog stops at a dead or unnamed ancestor (#3142).+- The decision summary separates kept decisions from candidates (#3088), and the CLAUDE.md and AGENTS.md header steers agents correctly on keyless indexes (#3109, #3144).+- Internal: the functions this cycle made most complex are split up across ingestion, dataflow, the health walker, test selection, the refactoring planner, the update pipeline and the web UI (#3542, #3545, #3546, #3547, #3548, #3549, #3550, #3551, #3553, #3554). The health analyzer, refactoring serving path and pytest edge linker are split into smaller units, unit tests run in parallel in CI, and unused code is removed (#3388, #3380, #3321, #3292, #3159, #3098, #3487, #3370, #3045, #3200, #3203, #3146, #3122, #3416, #3442, #3448, #3298).++### Documentation++- A git hosts page covering GitHub, GitLab, Azure DevOps and Bitbucket, and a contributor page for the forges package (#3400).+- Performance has its own page, and the Code Health page is shorter (#3264).+- A contributor guide for adding agents and indexing backends (#3178).+- An API reference for what OpenAPI cannot carry (#2342).+- The Claude Code plugin README says what the plugin runs and what leaves the machine (#3041).+- VS Code extension 0.11.0 (#3042).++### Dependencies++- Web: `next-intl` added for translations (#3129). UI and web: `thinking-orbs` replaces `@lottiefiles/dotlottie-react` for the loader (#3304).+- Dev: `pytest-xdist` (#3098).+## [0.55.0] - 2026-10-04This release is mostly about precision. The call graph resolves receivers, overloads and shadowed names the way each language's compiler does, measured against compiler and SCIP oracles. Dead code, health and refactoring advice stop reporting what the evidence does not support: files in languages health cannot analyse no longer score a perfect 10.0, an unused export reaches full confidence only when an importer names it, and performance and refactoring plans that would not help are withheld. Code Health now leads with one Fix first queue across defect, maintainability and performance.diff --git a/packages/cli/src/repowise/cli/__init__.py b/packages/cli/src/repowise/cli/__init__.pyindex 7abb2b9b0..7507484f9 100644--- a/packages/cli/src/repowise/cli/__init__.py+++ b/packages/cli/src/repowise/cli/__init__.py@@ -16,4 +16,4 @@ from repowise.cli._stdio import _ensure_utf8_stdio# is already UTF-8._ensure_utf8_stdio()-__version__ = "0.55.0"+__version__ = "0.56.0"diff --git a/packages/core/src/repowise/core/__init__.py b/packages/core/src/repowise/core/__init__.pyindex 516dc8535..801c3ad5d 100644--- a/packages/core/src/repowise/core/__init__.py+++ b/packages/core/src/repowise/core/__init__.py@@ -6,4 +6,4 @@ generation engine. This is the heart of repowise — all other packages depend oNamespace package: repowise.core is part of the repowise namespace."""-__version__ = "0.55.0"+__version__ = "0.56.0"diff --git a/packages/core/src/repowise/core/upgrade/_data/CHANGELOG.md b/packages/core/src/repowise/core/upgrade/_data/CHANGELOG.mdindex 921a9a1f6..61d738226 100644--- a/packages/core/src/repowise/core/upgrade/_data/CHANGELOG.md+++ b/packages/core/src/repowise/core/upgrade/_data/CHANGELOG.md@@ -9,6 +9,129 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0---+## [0.56.0] - 2026-10-12++repowise 0.56 hands agents the exact thing they need to act on. Search returns matching source lines and finds every file in the repository, `get_context` lists every edit site of a symbol verified against live files, caller rows carry the calling line, and `repowise update --working-tree` brings uncommitted work into the index in seconds. `repowise impacted-tests` selects a targeted subset on far more changes, with `--prioritize` and `--explain`.++Refactoring plans can be applied as written: large functions get staged Extract Method plans with each helper's header and call, text anchors and the tests to run between batches, on a precise dataflow. Fix first ranks by complexity removed times reach and by the execution role of the code, every surface reports the same counts, and Code Health views are served from stored rows in milliseconds. repowise now works natively with GitLab, Azure DevOps and Bitbucket, sets up GitHub Copilot CLI and Kiro, and the web UI ships in Simplified Chinese.++### Added++- **GitLab, Azure DevOps and Bitbucket are first-class git hosts** (#3350, #3361, #3362, #3367, #3368, #3381, #3382, #3386, #3351, #3355). Remotes, nested GitLab groups and Azure `org/project` paths parse into one key. Merge request and PR numbers are read per host (`!N` trailers, `Merged PR N:`, `(pull request #N)`), so every change links to the right review. Noreply addresses and bot accounts are recognised per host. CI build facts are read for GitHub Actions, GitLab CI, Azure Pipelines, Bitbucket Pipelines and Jenkins, and `default_revspec` works on Azure Pipelines PR builds.+- **`search_codebase` returns matching source lines** (#3131, #3130, #3189, #3191, #3199, #3201, #3128). Identifier and literal queries return `lines` (`path`, `line`, `kind`, `text`, definitions first) with a `complete` flag and `reasons` when it is false. Prose queries carry up to 3 `matched_lines` on the top file rows, and file rows name the matching symbols with their lines. Literal scans narrow with `git grep` and read source before tests and docs, so on a 20k-file TypeScript repository a key is found in all 17 source files that use it. One test file's mocks are capped at 3 plain references. `pattern` is accepted as an alias for `query`.+- **Search and `get_answer` return files that have no wiki page** (#3210, #3214, #3194, #3180). A file found by the symbol or the new filename lookup gets a row even when the index has no page for it. On a 21k-file TypeScript repository three such targets now rank 1, 4 and 5, with search and answer MRR unchanged on a 247-question localization set. Prose queries surface symbols whose name words match, and path mode matches spaced queries against filename words.+- **`get_context` lists every edit site of a symbol** (#3126, #3190, #3183). `include=["references"]` returns the definition, import, call and other live occurrence lines, checked against the files on disk, with `complete` and `reasons`. A local import alias is followed, and one file's plain references are capped at 3 with the rest counted in `sites_omitted_by_file`.+- **Caller rows show the calling line, through forwarding wrappers** (#3198, #3195, #3197, #3181). `get_context` callers and `get_answer` `graph_callers` carry `call_line` and its live `text`. A thin wrapper that only forwards to the target is followed one hop to the real caller. Functions passed as values in TypeScript, JavaScript and Python (registered in a list, passed as a callback, returned, exported and registered) and names destructured from a dynamic `import()` now have callers.+- **`get_answer` answers caller and trigger questions from the call graph** (#3196, #3212, #3116). "Which file calls X" questions get a `graph_callers` block, impact questions show who uses the lead file, and files named in a pasted stack trace (Python, JS/TS, Java/Kotlin, Go, Rust, C#) lead the results. On probe questions over a 20k-file TypeScript repository, keyless replies hold every expected file in 3 of 3 cases.+- **`repowise update --working-tree` indexes uncommitted edits** (#3095, #3107, #3100). Symbols, edges and pages for edited files are current without a commit, and a working-tree-only update skips the history and analysis phases (a 2-file edit on a small repository refreshes in 4.5 s, down from 12.5 s). MCP responses mark which served files carry uncommitted edits.+- **`get_context` skeleton+ view and focused symbol skeletons** (#3097, #3135, #3136). `include=["skeleton+"]` keeps every line except function bodies, each replaced by a marker with its line range. A symbol target's skeleton keeps only that symbol's body. `get_symbol` on a large class returns an outline with its members' ids.+- **`impacted-tests --prioritize` and `--explain`** (#3322, #3217, #3341). Selected tests are ordered likeliest to fail first, and `--prioritize` emits the whole suite with the selection at the head. `--explain <test>` says why a test was or was not selected, and JSON output carries the same record per test. Tests that walk source directories or start the project's own command run with every subset.+- **Staged Extract Method plans for functions one helper cannot fix** (#3387, #3392, #3433, #3470, #3468, #3471). The function keeps its setup and calls helpers in order, each stage at most CCN 10 and 60 lines, cut inside a loop body or `if` arm when that is where the complexity sits. Every stage is anchored by its first and last line text, and plans over 5 stages are served in batches with the tests to run between them. Applied from the plan text alone on 15 of the top 30 "Break up X" items across three repositories, every resulting CCN matched the estimate.+- **Extract Method plans write out the helper's header and call** (#3352, #3330, #3254, #3369). Plan detail carries the helper signature and the replacing call in the file's language (Python, TS, JS, Go, Java, Rust, C/C++), whether it is a method, what fields it writes, and whether it awaits. A due Fix first item carries its first step and verify command inline.+- **Refactoring plans name the tests that call their code** (#3478, #3323, #3289, #3486). Plans quote up to 5 nearest test functions as runnable `path::test` selectors, each step of a multi-step plan gets its own verify, tests that only pass through a hub module are dropped, and a JS/TS test command runs from the package that owns the test.+- **Refactoring plans carry decisions, consumers, dead code and recent edits** (#3348, #3485, #3390, #3459). A plan says which accepted decision governs its file, whether other code imports what it moves, whether its target is unreachable, whether the function is being edited right now, and whether it changes a symbol a package exports. An Extract Helper group whose occurrence already is a function calls that function instead of proposing a new one.+- **`repowise health --plan <id>` prints a plan as an agent recipe** (#3364). A plan exports as one recipe of preconditions, steps and checks, and one core renderer writes the agent prompt every surface shows.+- **Resolved plans record what happened** (#3391, #3363). Each function's CCN, size, parameters, nesting, execution role and body facts are stored, and a plan that stops being detected records its outcome with before and after measurements.+- **Performance causes carry the execution role of their loop** (#3347, #3428). Request, event consumer, scheduled job, startup, CLI, UI, tooling or test, seeded from routes, job registrations, lifecycle hooks and command decorators in Python and TS/JS. Cold roles leave the default queue, and REST and the UI filter by role.+- **Performance findings say whether the loop grows with the data in Go, Java, C# and Ruby** (#3489). A database or network call over query rows is told apart from one over a fixed list. On a Ruby application the default performance list goes from 0 to 16 proven items.+- **Performance findings say whether the loop grows with the data in Rust, Kotlin and C++** (#3515). Over 18,000 loops in ten Rust, Kotlin and C++ repositories, 6 to 15% of loops per language move from unknown to a proof, with no default list row lost or gained. A parameterised `LIMIT ?` is a capped read in every language.+- **C# and C get Extract Method plans** (#2919, #3441). C# (and Razor) has a def/use dataflow dialect, and C uses the C++ one.+- **PHP code health** (#3089). PHP has complexity, cohesion and assertion support and is scored like the other supported languages.+- **The secret scanner detects GitLab and Azure DevOps tokens and credentials in git remotes** (#3356). CLI warnings keep those tokens masked.+- **GitHub Copilot CLI and Kiro targets** (#3173, #3169). `--target=copilot` writes the Copilot CLI MCP config, `--target=kiro` the Kiro MCP config and a steering file, and `--target=vscode` adds Copilot instructions in `.github/copilot-instructions.md`. The integration matrix gains a Basic tier and an Indexing column.+- **Cursor shell commands are rewritten through a `preToolUse` hook** (#3177), for command families configured as `allow`.+- **`repowise init` defaults the provider picker to the agent you use** (#3171). When Claude Code, Codex or OpenCode is set up and signed in, indexing uses that login by default.+- **The web UI has a Simplified Chinese catalog and a language switcher** (#3129, #3151, #3327).+- **`get_health` opens a Do next action by its id** (#3544). The `act_` ids `get_overview` hands out resolve with `get_health(fix_id=...)`, so an agent can follow a Do next item straight to its findings.+- **The inline ignore marker also clears the stored scan** (#3536). A line marked `repowise-security-ignore` leaves the dashboard, `get_risk` and REST as well as `repowise security check`, which still reports it as suppressed.+- **Dead code and security report when they last ran** (#3303). The UI tells "never ran" from "ran and found nothing".++### Changed++- **Fix first ranks by complexity removed times reach** (#3366, #3422, #3484, #3482). Worth is complexity removed scaled by the file's importers, and Do next and Fix first lead with the same item. On a Python agent repository a CCN 963 function rises from #25 to #1. Terminal print and prompt flows, moderate functions in quiet files, and small closures credited with a whole file's importers leave the lead under named, counted exclusions. A plan that would leave a function above the break-up bar ranks after plans that finish the job and says so.+- **Every surface reports the same counts** (#3354, #3328, #3291, #3299, #3288, #3419). Each finding, performance cause and refactoring opportunity stores its queue verdict at index time, and CLI, MCP and REST report one count object (`inventory`, `in_scope`, `eligible`, `due`, `shown`, `excluded`). The Do next sentence is written once in core.+- **The performance queue leads with loops that grow** (#3276, #3258, #3395, #3253, #3250, #3443, #3425, #3447). A cause whose loop size is unmeasured never leads. Migrations, startup, shutdown, recovery, fire-and-forget tasks, inert call sites and functions gated off by a module flag stay out of the queue. Plans give one step per call site or per loop and variable, a chained query is one sink, and a TS/JS import's library is read from its whole module string.+- **`impacted-tests` selects a targeted subset on far more changes** (#3219, #3243, #3379, #3262, #3216, #3220, #3218, #3221, #3325, #3353, #3241, #3358). When the index lags the change's base, files changed in between are compared and only the routes they rewired are added; replayed over 32 merged PRs, a trailing index is never the only reason to run every test. Manifests, lockfiles, production `__init__.py` files and assets select the tests their reach implies (over 83 replayed failed PR runs, full-suite runs drop from 39 to 9 with zero new misses). A conftest reached only through its imports selects only the tests that can break, and setup files, path-named helpers, lazy string registries, Alembic migrations and VS Code extension entries are wired into the graph.+- **`get_change_risk` and `get_risk` name tests with the `impacted-tests` selection** (#3296, #3101). Both tools use the same selection and order as the command, and the PR directive lists `tests_to_update`, the test files a change will probably need to edit.+- **`get_risk` replies are leaner** (#3124, #3117, #3118, #3123, #3139, #3152, #3120). `structural_impact_score`, `overall_risk_score` and `may_break_tests` are dropped by default, `pr_blast_radius` ships only with `include=["blast"]` and detailed owner metrics only with `include=["owners"]`. PR summaries count totals, and `get_change_risk` scores a change that also touches docs or config files.+- **Plugin: the change review, code health and pre-modification skills and Lens follow the new `get_risk`, `get_change_risk` and `repowise health` behaviour, and the plugin passes the plugin directory's checks with an icon and links** (#3296, #3118, #3139, #3152, #3280, #3043).+- **Bare `repowise health` reads the stored analysis** (#3280). It writes nothing and returns in seconds; `--recompute` runs the in-process analysis as before.+- **MCP server instructions say when to use each tool** (#3134, #3125). Hosts that defer tool schemas see one "use X when" line per task.+- **Keyless `get_answer` replies are compact and lead with the right file** (#3108, #3137, #3184, #3102, #3186). Low and keyless replies serve a ranked shortlist with each file's functions, size and lines, and the answer sentence leads with the file retrieval ranked first.+- **Extract Method offers only spans worth making** (#3252, #3274, #3287, #3421, #3427, #3277, #3410, #3415, #3488). A span must cover at most 60% of the function, hold at least 8 code lines and remove at least 2 decisions. Spans across which a closure shares a local, that lose a local import, that split a try from its handlers or change how an exception leaves, or that hold a Java switch-rule `yield` are refused. Flat record builders are refused, every helper is named from banners or labels in the file's casing, and a plan stays within one language.+- **Import cycles are found over runtime edges** (#3259, #2803, #3077). Cycles count only imports that run: imports under `TYPE_CHECKING`, TypeScript type-only imports, imports inside function bodies and `dynamic_uses` hint edges are left out, and `break_cycle` plans are advisory.+- **Complexity reads nested functions and flat chains correctly** (#3405, #3278, #3338). A function defined inside another gets its own complexity entry, and TS/JS ternary dispatch chains, JSX conditionals and Python conditional-expression chains read as the flat dispatch they are.+- **Test support, bundles and pytest-uncollected modules are classified once** (#3429, #3218, #2669, #3046, #3290). `*.test-harness.ts`, `*.test-support.mjs` and `*.bundle.js` are classed the same on every ranked list, a test-named module pytest does not collect is production code, `__mocks__` counts anywhere, and Perl-style `t/` trees are Python tests.+- **Dead code: one gate decides `safe_to_delete`** (#3511). Docs and example code, export-only findings, and languages whose imports or calls are weakly resolved in the repository are never deletion-ready.+- **Dead code: an export only its own file uses is export-only** (#3510). These rows are capped at 0.3, below the default floor, and are never deletion-ready. Reading `exports.x` no longer makes a TypeScript file CommonJS.+- **Code Health pages tell all-clear from not-yet, filtered and error** (#3308, #3310, #3306, #3304, #3300, #3309, #3307, #3313, #3326, #3301, #3314). Every health, refactoring, impact, coupling, decisions and owners view separates those four states. The dead code page is one figure, one list and one table, security leads with posture and scan freshness, chat is a single column with stage-aware progress, and proportion bars share one component and palette. The VS Code extension follows the native theme.+- **Refactoring code drafts use the chat model** (#3329, #3383). One switch on the repo settings page and in an open plan turns helper naming and code drafts on.+- **Every LLM provider is declared once** (#3168, #3167, #3172). Registry tables, pricing, the init picker and the settings page derive from one spec per provider.+- **`anthropic` and `claude_cli` default to `claude-haiku-5-5`** (#3093).+- **Faster reads on large repositories** (#3311, #3315, #3423, #3279, #3340, #3389, #3255). Fix first and Do next are stored at index time (19.4 s to 0.01 s on a 20k-file repository), refactoring plan lists page from stored ranks (about 22 s to 0.2 s), and `get_health` lists and `get_overview` skip whole-repository work (dashboard 8.6 s to 3.3 s). Read-only commands start without loading the parser or reconciling the schema, impacted-tests walks the graph in memory, and the health walk cache is saved after a parallel pass (a second pass on a 5,200-file repository takes 3.4 s instead of 106 s).+- **`update` checks decision evolution in parallel, against this update's evidence** (#3524). The judge calls share wiki generation's `--concurrency` setting and read only the commits the update brought in, so the decisions phase takes seconds instead of minutes on an active repository. Its cost is booked as decision extraction.+- **The per-commit health scan runs after the update commits** (#3525). The write lock is released before the scan starts, each update spends at most 60 s on it, and commits an earlier budget did not reach are picked up by the next update.+- **Cohesion counts only groups of methods that share state** (#3552). In Python, TypeScript and the other explicit-receiver languages, a method that touches no field no longer forms a group of its own; on our own packages flagged classes went from 87 to 15, and on five popular open-source libraries from 57 to 7, each checked by hand.+- **A function worth breaking up leads its file** (#3526). Fix first and the file card lead with the largest break-up candidate instead of a smaller finding with a higher local impact.+- **Stored git history is re-read once when its rules change** (#3386). The first update after upgrading walks the whole history once, with no page generation and no model calls.+- **The CLI starts faster** (#3438). The git indexer's exports load on first use, so commands that never read history skip importing GitPython.+- **Blame ownership honours `.git-blame-ignore-revs`** (#3078), so formatting sweeps listed there leave line ownership with the real authors.+- **`search_codebase` serves one location per row** (#3317). Rows carry `path`; the deprecated `file` field announced in 0.55.0 is removed, along with page ids and structural titles a row can rebuild.++### Fixed++- Refactoring plans stay visible in the health views on SQLAlchemy 2.1, which a fresh install picks up (#3476).+- An index written by 0.55 or earlier re-renders its structural pages on its first update, with no model calls (about 140 pages a second, once), and files newly indexed in this release get their pages; prose pages are marked stale for `repowise generate --stale` (#3557).+- `init` stamps the parser fingerprint, so a parser change always reaches an index on its next update, and renamed symbols no longer keep their old graph nodes (#3558).+- An existing index is rescanned for security findings on its first update, so every scanner improvement in this release reaches unchanged files too (#3516), and every update rescans the files it changed (#3530).+- Recording a decision leaves the index's commit untouched, so test selection keeps its targeted subset afterwards (#3541).+- Do next judges a recent regression by the finding as it reads today, quoting its current severity, reason and line (#3543).+- The CLI, MCP and the overview report the same file and finding counts (#3532), rescored rows carry the commit they were scored against (#3531, #3540), and Fix first titles name a helper only when the plan has one (#3529).+- A type imported from an external package never resolves to a repository file by name, and TypeScript and C/C++ name lookups stay within their own language (#3527).+- `repowise dead-code` on an index behind HEAD builds the graph the way `update` does and keeps its log lines off the table (#3520, #3528).+- Extract Method on Java, C++, Rust and C# keeps a value a branch may have written (#3460).+- C# and C++ attributes after a comment are captured (#3461), and a deleted file's symbol pages are retired with it (#3464).+- repowise reads HEAD through a worktree's `.git` file (#3293), finds its local index after a repository moves (#3240), and MCP finds a repository by any spelling of its path (#3275).+- Every source walk uses the indexer's output-directory rule, so decision, vocabulary and workspace walks read source packages named `build`, `coverage` or `dist` (#3454).+- Test selection orders the files that name a test deterministically (#3453), and communities hold only the repository's own nodes (#2611).+- Extract Method returns values that a later conditional write does not kill, gives plans only the inputs their span uses, and reads Python loop `else` branches, Go writes through a field or index, comprehension scopes and `except ... as` names correctly (#3384, #3357, #3424, #3418, #3413, #3349, #3294).+- A docs-mode `update` prunes deleted files' findings, graph nodes, plans and embeddings (#3412).+- Credentials in a git remote or a registered repository URL are stripped before they reach the overview or repo responses (#3343, #3346).+- The security scan reports a sink only where code can run it, and reads weak hashes, f-string SQL and TLS verification from the code rather than its text: a `hashlib` call marked `usedforsecurity=False` is a checksum, `verify=False` counts on HTTP client calls, and symbol names and placeholders stay quiet. Every secret kind fires as before (#3534).+- A database read filtered to a set of keys (`in_(keys)`, `filter_by(id=...)`, PostgREST `.in_`/`.eq`) is bounded by the keys, so it no longer leads the performance queue (#3535).+- The security scan honours `pragma: allowlist secret`, and skips documented placeholders and values containing shell or template expansions (#3246, #3179, #3319). A scanner change now triggers a full rescan (#3086).+- Dead code recognises as used a function stored by its own registering decorator, a VB.NET Module whose members are used, Grafana plugin modules and Storybook config files (#3490, #3509, #3080, #3087). Files a tool config passes to a plugin factory, `.vscode-test.*` and scripts whose own usage line runs them are entry points (#3508).+- `get_context` resolves `path::Class.method` like `Class::method`, `get_symbol` accepts a bare unique name or a `query` argument as the id, and `days_ago` and fix-history recency are measured to the newest indexed commit (#3099, #3140, #3153, #3145).+- `get_health` and `get_risk` redirect a path that was renamed or split (#2922). `only=["fix_first"]` pages up to 25 items and the refactoring plan list returns what was asked for (#3255).+- Searches answer immediately (#3115), and `repowise mcp` in an uninitialised directory leaves it untouched (#3166).+- On PostgreSQL, existing columns are loosened at startup so upgrades need no Alembic step (#3068), and the `vector` type warning is silenced (#3157).+- `claude_cli` parses the event array `claude -p` prints with verbose output on (#3170). Gemini chat accepts every tool schema (#3064), and reasoning models get room to write the synthesized answer (#3094).+- A scripted `--no-prose` init stays fully keyless (#3242), and size-skip notices leave the index marked healthy (#3272).+- `repowise uninstall` lists and removes the post-commit hook and lists a configured database as kept (#2655, #3397). Decision commands in an unindexed worktree use the base checkout's index (#3398). Init drops a stale embedding model pin (#2654).+- TypeScript configs with comments resolve their aliases, unique ambient types resolve, and source packages named `build`, `coverage`, `dist` or `target` are indexed (#3067, #2999, #3221).+- Go generic calls with explicit type arguments have call sites (#2992), and contract impact keys symbols by id so same-named methods are kept (#3176).+- Clone detection stays within one language (#3414), Rust grouped `use` leaves are classified on their own (#3076), `# noqa` on Python `except` lines and Java `try ... fail()` are respected (#2853, #2996), `knowledge_loss` ignores a rename-only window (#3075), and a repository with no scored file has no score instead of 10.0 (#3053).+- Numbered ADR folders are found at any depth (#3061), and doc drift honours Markdown closing fences and GitHub's suffixed anchors (#3239, #3256).+- Java, C#, Kotlin and Scala test classes such as `FooTest.java` and `FooSpec.kt` pair with their source (#3096).+- The web UI decodes file content as UTF-8 and numbers the performance queue from 1 (#3249, #3248). Wiki backlinks are ordered deterministically (#2881), and the branch-overlap summary says how many branches were not scanned (#2934).+- A workspace with a shared database queues its one-time reindex (#3044), and the MCP watchdog stops at a dead or unnamed ancestor (#3142).+- The decision summary separates kept decisions from candidates (#3088), and the CLAUDE.md and AGENTS.md header steers agents correctly on keyless indexes (#3109, #3144).+- Internal: the functions this cycle made most complex are split up across ingestion, dataflow, the health walker, test selection, the refactoring planner, the update pipeline and the web UI (#3542, #3545, #3546, #3547, #3548, #3549, #3550, #3551, #3553, #3554). The health analyzer, refactoring serving path and pytest edge linker are split into smaller units, unit tests run in parallel in CI, and unused code is removed (#3388, #3380, #3321, #3292, #3159, #3098, #3487, #3370, #3045, #3200, #3203, #3146, #3122, #3416, #3442, #3448, #3298).++### Documentation++- A git hosts page covering GitHub, GitLab, Azure DevOps and Bitbucket, and a contributor page for the forges package (#3400).+- Performance has its own page, and the Code Health page is shorter (#3264).+- A contributor guide for adding agents and indexing backends (#3178).+- An API reference for what OpenAPI cannot carry (#2342).+- The Claude Code plugin README says what the plugin runs and what leaves the machine (#3041).+- VS Code extension 0.11.0 (#3042).++### Dependencies++- Web: `next-intl` added for translations (#3129). UI and web: `thinking-orbs` replaces `@lottiefiles/dotlottie-react` for the loader (#3304).+- Dev: `pytest-xdist` (#3098).+## [0.55.0] - 2026-10-04This release is mostly about precision. The call graph resolves receivers, overloads and shadowed names the way each language's compiler does, measured against compiler and SCIP oracles. Dead code, health and refactoring advice stop reporting what the evidence does not support: files in languages health cannot analyse no longer score a perfect 10.0, an unused export reaches full confidence only when an importer names it, and performance and refactoring plans that would not help are withheld. Code Health now leads with one Fix first queue across defect, maintainability and performance.diff --git a/packages/server/src/repowise/server/__init__.py b/packages/server/src/repowise/server/__init__.pyindex 6a1ba9d09..7e1b095e6 100644--- a/packages/server/src/repowise/server/__init__.py+++ b/packages/server/src/repowise/server/__init__.py@@ -7,4 +7,4 @@ Provides:- Background job scheduler (APScheduler)"""-__version__ = "0.55.0"+__version__ = "0.56.0"diff --git a/packages/web/messages/en.json b/packages/web/messages/en.jsonindex 1be12b0a3..3a3025648 100644--- a/packages/web/messages/en.json+++ b/packages/web/messages/en.json@@ -270,7 +270,7 @@"coChangeNoticeTitle": "Health scores changed in this release.","coChangeNoticeMore": "What changed","coChangeNoticeLess": "Hide",- "coChangeNoticeBody": "Co-change coupling is now measured relative to your repository and decays with commit history rather than calendar time, so roughly one file in ten moves a band. Scores are not comparable to snapshots taken before this release.",+ "coChangeNoticeBody": "Several false findings are gone: classes whose methods share no state no longer read as low cohesion, chained ternaries and conditional expressions no longer count as deep nesting, import cycles count only imports that run, and expected-exception tests and noqa lines no longer flag swallowed exceptions, so many files score higher. Functions defined inside other functions are now measured, and a test-named Python module that pytest does not collect is scored as production code, so some files score lower. PHP files now get complexity, cohesion and test-assertion checks, so PHP scores move as well.","tabs": {"triage": "Overview","performance": "Performance",diff --git a/packages/web/messages/zh-CN.json b/packages/web/messages/zh-CN.jsonindex d6c326654..ef7689104 100644--- a/packages/web/messages/zh-CN.json+++ b/packages/web/messages/zh-CN.json@@ -270,7 +270,7 @@"coChangeNoticeTitle": "本次发布中健康分数发生了变化。","coChangeNoticeMore": "有哪些变化","coChangeNoticeLess": "收起",- "coChangeNoticeBody": "共变耦合现在相对你的仓库来度量,并随提交历史衰减,而不是按日历时间衰减,因此大约每十个文件中就有一个会跨越档位。分数与此前发布所取的快照不可比。",+ "coChangeNoticeBody": "一些误报已被移除:方法之间不共享状态的类不再被判为低内聚,链式三元表达式和条件表达式不再计为深层嵌套,导入循环只统计实际运行的导入,预期异常的测试和带 noqa 的行不再被标记为吞掉异常,因此许多文件的分数会升高。定义在其他函数内部的函数现在也会被度量,pytest 不会收集的、以测试命名的 Python 模块会按生产代码评分,因此部分文件的分数会降低。PHP 文件现在会进行复杂度、内聚性和测试断言检查,因此 PHP 的分数也会变化。","tabs": {"triage": "总览","performance": "性能",diff --git a/packages/web/src/app/repos/[id]/code-health/page.tsx b/packages/web/src/app/repos/[id]/code-health/page.tsxindex b8cc2a43d..8d0a49e71 100644--- a/packages/web/src/app/repos/[id]/code-health/page.tsx+++ b/packages/web/src/app/repos/[id]/code-health/page.tsx@@ -542,7 +542,7 @@ export default function CodeHealthPage() {release's version so a reader who dismissed an earlier one sees it. */}<ReleaseNoticeid="health-scoring"- version="0.55.0"+ version="0.56.0"detail={t("coChangeNoticeBody")}detailLabel={t("coChangeNoticeMore")}hideLabel={t("coChangeNoticeLess")}diff --git a/plugins/claude-code/.claude-plugin/plugin.json b/plugins/claude-code/.claude-plugin/plugin.jsonindex 68e002d0a..a20f59ee4 100644--- a/plugins/claude-code/.claude-plugin/plugin.json+++ b/plugins/claude-code/.claude-plugin/plugin.json@@ -2,7 +2,7 @@"name": "repowise","displayName": "Repowise","description": "Codebase intelligence for Claude Code. Indexes your codebase into five layers (Graph, Git, Docs, Decisions, Code Health) and exposes them through task-shaped MCP tools, so Claude understands architecture, ownership, hotspots, why code is built the way it is, and where the defect risk lives.",- "version": "0.55.0",+ "version": "0.56.0","author": {"name": "Repowise","email": "[email protected]",diff --git a/plugins/claude-code/CHANGELOG.md b/plugins/claude-code/CHANGELOG.mdindex 36ea5b0ee..bbe20832c 100644--- a/plugins/claude-code/CHANGELOG.md+++ b/plugins/claude-code/CHANGELOG.md@@ -2,9 +2,21 @@All notable changes to the Repowise Claude Code plugin are documented here.-## Unreleased--### Changed+## 0.56.0++### Changed+- The change-review skill reads the tests a change needs from the same+ selection `repowise impacted-tests` makes: `tests_to_run_why` gives each+ test's reason, and `tests_run_all` with `tests_run_all_reasons` says when no+ smaller set can be vouched for (#3296). `pr_blast_radius` now needs+ `include=["blast"]` (#3118), and detailed owner metrics leave the default+ `get_risk` card (#3139).+- `/repowise:health` and the code-health skill say that bare `repowise health`+ reads the stored analysis, and point at `repowise health --recompute` for an+ in-process run (#3280).+- Lens follows the trimmed `get_risk` and `get_change_risk` replies (#3139,+ #3152), names the tests a change needs in its review (#3296), and picks up+ the shared loader and state styling (#3304).- Lens no longer approves its own MCP lookups. It registers no `tool.check`hook, so `get_context`, `get_change_risk`, `get_why` and `get_answer` callsfrom Lens ask Claude Code's permission like any other MCP call. The README'sdiff --git a/pyproject.toml b/pyproject.tomlindex 6197b05e9..31a3282d1 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"[project]name = "repowise"-version = "0.55.0"+version = "0.56.0"description = "The codebase intelligence layer for your AI coding agent — dependency graph, git history, dead code, decisions, and code health, exposed over MCP"readme = "README.md"requires-python = ">=3.11"diff --git a/server.json b/server.jsonindex 760bc79c0..4f533b68b 100644--- a/server.json+++ b/server.json@@ -8,12 +8,12 @@"source": "github"},"websiteUrl": "https://www.repowise.dev",- "version": "0.55.0",+ "version": "0.56.0","packages": [{"registryType": "pypi","identifier": "repowise",- "version": "0.55.0",+ "version": "0.56.0","transport": {"type": "stdio"},diff --git a/uv.lock b/uv.lockindex eb0ea8cba..d3bb6d50b 100644--- a/uv.lock+++ b/uv.lock@@ -3073,7 +3073,7 @@ wheels = [[[package]]name = "repowise"-version = "0.55.0"+version = "0.56.0"source = { editable = "." }dependencies = [{ name = "aiosqlite" },