diffctx 1.18.2__tar.gz → 1.18.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {diffctx-1.18.2 → diffctx-1.18.4}/CHANGELOG.md +279 -1
- {diffctx-1.18.2 → diffctx-1.18.4}/Cargo.lock +12 -13
- diffctx-1.18.4/PKG-INFO +135 -0
- diffctx-1.18.4/README.md +75 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/Cargo.toml +2 -2
- diffctx-1.18.4/crates/diffctx-native/README.md +75 -0
- diffctx-1.18.4/crates/diffctx-native/src/bindings.rs +1356 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/candidate_files.rs +45 -1
- diffctx-1.18.4/crates/diffctx-native/src/change_class.rs +637 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/git.rs +1 -1
- diffctx-1.18.4/crates/diffctx-native/src/container.rs +53 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/core.rs +32 -3
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/discovery.rs +37 -9
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/base.rs +163 -6
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/config_edges/generic.rs +40 -7
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/history/cochange.rs +43 -42
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/mod.rs +187 -20
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/c_family.rs +2 -2
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/javascript.rs +4 -4
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/nim.rs +51 -12
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/nix.rs +14 -2
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/ocaml.rs +14 -1
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/python.rs +69 -10
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/ruby.rs +31 -3
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/tags.rs +21 -1
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/fragmentation.rs +40 -7
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/git.rs +772 -189
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/graph_export.rs +113 -9
- diffctx-1.18.4/crates/diffctx-native/src/hook.rs +2797 -0
- diffctx-1.18.4/crates/diffctx-native/src/impact.rs +3106 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/in_memory_harness.rs +7 -2
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/interval.rs +12 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/lib.rs +3 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/locate.rs +87 -12
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/main.rs +82 -11
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/parsers/mod.rs +1 -1
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/parsers/tree_sitter_strategy.rs +67 -1
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/pipeline.rs +663 -125
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/postpass.rs +35 -7
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/pybridge.rs +92 -12
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/render.rs +31 -21
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/resource.rs +223 -22
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/run_provenance.rs +8 -3
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/select.rs +226 -31
- diffctx-1.18.4/crates/diffctx-native/src/source.rs +150 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/token_corpus.rs +4 -1
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/types.rs +20 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/utility/objective.rs +2 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/pyproject.toml +8 -9
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/_app.py +76 -27
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/_diffctx.pyi +15 -4
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/_native/graph_export.py +6 -6
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/_native/pipeline.py +2 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/cli.py +59 -36
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/mcp/__main__.py +1 -1
- diffctx-1.18.4/src/diffctx/mcp/launch.py +32 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/mcp/legacy.py +7 -4
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/mcp/server.py +63 -38
- diffctx-1.18.4/src/diffctx/version.py +1 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/writer.py +8 -3
- diffctx-1.18.2/PKG-INFO +0 -369
- diffctx-1.18.2/README.md +0 -309
- diffctx-1.18.2/crates/diffctx-native/README.md +0 -309
- diffctx-1.18.2/crates/diffctx-native/src/change_class.rs +0 -169
- diffctx-1.18.2/crates/diffctx-native/src/hook.rs +0 -884
- diffctx-1.18.2/crates/diffctx-native/src/impact.rs +0 -1032
- diffctx-1.18.2/src/diffctx/version.py +0 -1
- {diffctx-1.18.2 → diffctx-1.18.4}/Cargo.toml +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/LICENSE +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/analytics.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/analytics.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/bm25.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/budget.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/category_weights.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/edge_weights.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/env_overrides.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/extensions.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/filtering.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/fragmentation.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/graph_filtering.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/importance.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/limits.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/mod.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/mode.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/needs.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/parsers.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/render.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/scoring.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/selection.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/tokenization.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/config/weights.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/config_edges/build_system.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/config_edges/cicd.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/config_edges/docker.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/config_edges/helm.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/config_edges/kubernetes.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/config_edges/mod.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/document/mod.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/history/mod.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/ansible.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/bazel.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/cargo_edges.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/clojure.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/css.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/dart.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/dbt.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/dotnet.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/elixir.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/erlang.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/go.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/graphql.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/haskell.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/julia.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/jvm.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/latex.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/lua.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/mod.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/openapi.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/perl.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/php.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/prisma.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/protobuf.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/r_lang.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/rust_lang.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/shell.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/sql.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/swift.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/terraform.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/semantic/zig.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/similarity/lexical.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/similarity/mod.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/structural/containment.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/structural/mod.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/structural/sibling.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/edges/structural/testing.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/effective_config.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/excerpt.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/facts/mod.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/facts/scala.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/filtering.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/graph.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/languages.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/mode.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/parsers/config_parser.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/parsers/generic.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/parsers/markdown.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/paths.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/peak_rss.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/ppr.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/project_graph.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/provenance.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/sanitize.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/scoring.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/signatures.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/stopwords/code.txt +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/stopwords/docs.txt +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/stopwords.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/test_rng.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/testfiles.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/tokenizer.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/utility/boltzmann.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/utility/importance.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/utility/mod.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/crates/diffctx-native/src/utility/needs.rs +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/rust-toolchain.toml +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/__init__.py +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/__main__.py +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/_native/__init__.py +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/_native/graph_analytics.py +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/_native/project_graph.py +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/clipboard.py +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/ignore.py +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/logger.py +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/mcp/__init__.py +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/mcp/fetch.py +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/mcp/security.py +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/py.typed +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/tokens.py +0 -0
- {diffctx-1.18.2 → diffctx-1.18.4}/src/diffctx/tree.py +0 -0
|
@@ -7,6 +7,282 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.18.4] - 2026-10-07
|
|
11
|
+
|
|
12
|
+
### Security
|
|
13
|
+
|
|
14
|
+
- Impact no longer names a file the run withholds (`.diffctx/ignore`, a
|
|
15
|
+
secret name): a definition removed from it, its deletion or its rename
|
|
16
|
+
reached the answer while pack reported only a withheld count.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- The MCP server runs on the MCP Python SDK 2.3 (`mcp>=2.3,<3`): it answers
|
|
21
|
+
the `server/discover` probe Claude Code opens with, instead of rejecting it
|
|
22
|
+
with 31 validation errors on every connect, and still accepts every
|
|
23
|
+
`initialize` revision back to 2024-11-05 (#366).
|
|
24
|
+
- `ChangeClass` gains `layout`: a file whose diff changes only whitespace,
|
|
25
|
+
comments, quote style, trailing commas, semicolons or import order. Pack
|
|
26
|
+
ranks it with `mechanical` (#370).
|
|
27
|
+
- `diffctx graph --level file|directory` now applies to `-f json`, `-f
|
|
28
|
+
graphml` and the `--summary` counts; without `--level` they stay per
|
|
29
|
+
fragment (#352).
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
|
|
33
|
+
- Plugin hook: the commit is previewed as the index it will start from — the
|
|
34
|
+
line's own `git add`/`git rm` replayed on a copy of the index, `-a`, a
|
|
35
|
+
pathspec with `--only` semantics, `-i`, `--amend`, a first commit, a linked
|
|
36
|
+
worktree — instead of the whole working tree; a here-document message is no
|
|
37
|
+
pathspec; a multi-commit cherry-pick is reviewed whole; `cd ~/repo` is
|
|
38
|
+
followed; a diff written to a file is no inspection; an empty answer stays
|
|
39
|
+
empty after the commit lands (#384, #373, #380, #377). The session hint
|
|
40
|
+
names `--symbol` again (#379).
|
|
41
|
+
- Impact: the header counts every caller its lines call untested, says
|
|
42
|
+
"callers unresolved" instead of "0 caller(s)" when no binding model could
|
|
43
|
+
resolve them, says when the run stopped early, and counts changed
|
|
44
|
+
definitions no test reaches (#386, #387, #335). A caller registered by a
|
|
45
|
+
decorator (`@register_node`, `@app.route`) is no longer called untested
|
|
46
|
+
(#388). Adding fields or parameters with defaults collapses the call sites
|
|
47
|
+
into one signature-compatible line (#388); formatting- or comment-only edits
|
|
48
|
+
are no contract and list no callers (#370). An unchanged caller in a changed
|
|
49
|
+
file is listed (#362). `pub` inside a `pub(crate)` module is no public API
|
|
50
|
+
(#359); a script named for a schema is no schema contract (#374). A deleted
|
|
51
|
+
path is matched by its path, a relative path, its module name or a
|
|
52
|
+
basename no other file has, never by a bare word (#369, #383). A removed
|
|
53
|
+
member and the remaining `?.()` calls to it are reported (#367).
|
|
54
|
+
- Impact on a large changed module took 74 s on one core; per-file indexes and
|
|
55
|
+
memoized test links bring it to 4 s with byte-identical output (#385). The
|
|
56
|
+
Python CLI's watchdog waits the binary's 30 s grace past `--timeout`, so a
|
|
57
|
+
run that stops at its deadline answers partially instead of exiting 124
|
|
58
|
+
with nothing (#382).
|
|
59
|
+
- MCP: `diff_ref="HEAD"` is documented as the uncommitted work, and a clean
|
|
60
|
+
tree answers with the hint that `HEAD~1..HEAD` is the last commit (#368).
|
|
61
|
+
- Selection: changed code is placed by evidence tier (production, tests,
|
|
62
|
+
config and docs, mechanical or layout edits, generated files) and by how
|
|
63
|
+
densely each piece carries the change, not cheapest-first; a core the
|
|
64
|
+
first pass could only place as its signature stub gets its body when the
|
|
65
|
+
difference fits (#296, #327). A Django migration ("Generated by Django")
|
|
66
|
+
is no longer a generated file ranked last (#311).
|
|
67
|
+
- Graph: a range's own commits no longer vouch for its files in the
|
|
68
|
+
co-change channel, which now links two files once, representative to
|
|
69
|
+
representative (#340). The tags fallback no longer links files of a
|
|
70
|
+
language its own builder parsed (a stdlib module name, a keyword); a key
|
|
71
|
+
most config files carry (`workflow_dispatch` in every CI workflow) links
|
|
72
|
+
no source file to all of them (#286, #297); a setting spelled whole
|
|
73
|
+
(`database_url` in two of four environment files) still links its reader.
|
|
74
|
+
A bare `--diff X` or a time window reads history only up to its base.
|
|
75
|
+
- Imports that spell paths resolve through one rule — next to the importing
|
|
76
|
+
file, then from the root, `..` folded: Nim `import vendor/palette`, Nix
|
|
77
|
+
`import ../vendor/palette.nix` (and a directory's `default.nix`), Ruby
|
|
78
|
+
`require_relative`; OCaml `open Palette` links `palette.ml` (#285). A
|
|
79
|
+
TypeScript import resolves with the nearest `tsconfig*.json`, its relative
|
|
80
|
+
`extends` folded in, not only the root one (#372).
|
|
81
|
+
- Plugin hook: `merge --squash`, `merge -S` and `cherry-pick -S` keep their
|
|
82
|
+
target; a pathspec commit previews the paths the index knows, never an
|
|
83
|
+
untracked file under them; `git apply`, `update-index`, `read-tree` and
|
|
84
|
+
the like before a commit preview the working tree; a step in another
|
|
85
|
+
repository stages nothing; the preview reads a copy of the index, so a
|
|
86
|
+
held index lock neither blocks it nor is taken; a first commit is checked
|
|
87
|
+
once it lands; a manual run that found nothing leaves no reminder;
|
|
88
|
+
`git status && git diff --cached` reviews the index; the `impact_gate`
|
|
89
|
+
option no longer silences PostToolUse answers; merging the branch's own
|
|
90
|
+
upstream (`git merge --ff-only origin/main`) is silence.
|
|
91
|
+
- Impact: a definition moved to another module names the importers of the
|
|
92
|
+
old one; removed methods are found in classes split into fragments, and
|
|
93
|
+
`def self.x`, `func (r T) x`, `const x = () =>` name `x`; a deletion below
|
|
94
|
+
a definition does not change it; a lexical test or caller link stops at
|
|
95
|
+
a sibling project's manifest; a function nested in another has callers
|
|
96
|
+
only inside it, and an untyped `x.name` attribute read is no possible
|
|
97
|
+
caller. Formatting-only detection keeps a docstring
|
|
98
|
+
that is not one, and no longer calls a change layout when it moves a line
|
|
99
|
+
out of its Python or YAML block, drops a one-element tuple's comma, edits
|
|
100
|
+
a mid-word `#` (`${#a}`), or removes a `;` before a line starting with `(`
|
|
101
|
+
or `[` in JS/TS. Compatible extension requires the new field to be
|
|
102
|
+
appended, and a relative path to a moved file is a stale reference.
|
|
103
|
+
- `--symbol` accepts `Owner.name`, `Owner::name` and dotted names; a
|
|
104
|
+
malformed one exits 2 in both CLIs, and over MCP a malformed or unknown
|
|
105
|
+
symbol is a refusal the agent can read, not "Error executing tool"; a
|
|
106
|
+
name in more than 256 files keeps its definition past the cap.
|
|
107
|
+
- The Python budget fitter drops a `layout` witness with `mechanical` ones
|
|
108
|
+
and ranks `unknown` with content, as the native CLI does.
|
|
109
|
+
- Release: post-publish smokes wait until both pip and uv resolve the version
|
|
110
|
+
and fail with a named error after 10 minutes; dispatched runs are found by
|
|
111
|
+
dispatch time (#364).
|
|
112
|
+
- Plugin hook: a path git cannot hash (an untracked nested repository, a
|
|
113
|
+
moved submodule) no longer turns the answer into silence logged as
|
|
114
|
+
"clean"; a multi-commit cherry-pick touching a non-UTF-8 file is reviewed;
|
|
115
|
+
a `cd` that a search printed is not taken for where it ran. `--diff staged`
|
|
116
|
+
writes a copy of the index, so a held `index.lock` is no "unmerged entries?".
|
|
117
|
+
- Impact: a Rust type and its `impl` blocks are one definition with its
|
|
118
|
+
callers, a trait method is reached through its trait (`Display`, not
|
|
119
|
+
`std`), and an unresolved name counts definitions, not "files" (#403).
|
|
120
|
+
Python `//` hides no call; a root `"baseUrl": "."` resolves bare
|
|
121
|
+
specifiers and overlapping `paths` take the longest prefix (#414). A
|
|
122
|
+
non-ASCII path, a `diff.context` setting, a deleted call statement, a
|
|
123
|
+
deletion right under a caller, a column-0 line removed from a body and a
|
|
124
|
+
call still naming a moved Rust function's old module no longer hide or
|
|
125
|
+
invent callers; a body call gaining an argument and an added `__slots__`
|
|
126
|
+
are not signature-compatible; `pub mod r#type;` and an attributed
|
|
127
|
+
`pub mod` are public; a same-language sibling module importing the
|
|
128
|
+
qualified name keeps its test link. `--symbol Owner.name` answers only for
|
|
129
|
+
that owner, and `PATH:Owner::name` parses. A call spread into an object
|
|
130
|
+
(`...workboxPolicy({..})`) is a call, not a member access: four Vite
|
|
131
|
+
configs read as zero callers.
|
|
132
|
+
- Impact counts the files the run withholds instead of reading them as
|
|
133
|
+
nothing: the header says `N more withheld by ignore rules` for a range and
|
|
134
|
+
`N file(s) naming it withheld` for `--symbol`, and that their calls and
|
|
135
|
+
tests were not read (`withheld_files` in the JSON) (#392).
|
|
136
|
+
- Impact: a definition moved within its file with its text unchanged lists
|
|
137
|
+
no callers, as a formatting-only edit does; moved and edited, it still
|
|
138
|
+
does. `@value.setter`, `@attr.s`, `@define`, `@enum.unique` and Lombok
|
|
139
|
+
annotations shape a definition and register it nowhere, so an untested
|
|
140
|
+
setter reads untested instead of "registered by" (#414).
|
|
141
|
+
- The CLI and the MCP server report only the engine's own "nothing defines
|
|
142
|
+
it" as a refusal; a `KeyError` or `IndexError` is an internal error with its
|
|
143
|
+
traceback. Git output is decoded as UTF-8 on every platform.
|
|
144
|
+
|
|
145
|
+
## [1.18.3] - 2026-10-04
|
|
146
|
+
|
|
147
|
+
### Added
|
|
148
|
+
|
|
149
|
+
- `--symbol NAME` (or `PATH:NAME`) and the MCP `symbol` parameter: impact
|
|
150
|
+
without a diff — where a name is defined, who calls it, and the tests that
|
|
151
|
+
reach each caller, including calls from its own file. The questions an agent
|
|
152
|
+
asks before it has changed anything used to have no answer but `grep` (#336).
|
|
153
|
+
- `--diff staged` (also `--diff=--cached`) and MCP `diff_ref="staged"`: the
|
|
154
|
+
index captured once as a tree is the whole current side of the run — the
|
|
155
|
+
changed files, the callers, their imports, the test files, the stale
|
|
156
|
+
references — whatever the disk says. An unborn branch is diffed against the
|
|
157
|
+
empty tree of the repository's object format, an unmerged index is an error,
|
|
158
|
+
an empty index diff reads "No changes to analyse.", and impact names the
|
|
159
|
+
snapshot (`index_tree`, "staged changes (index tree …)") (#354).
|
|
160
|
+
- `diffctx-mcp --version` / `-v`, and `diffctx mcp --version` (#334).
|
|
161
|
+
- Plugin hook: a grep/rg/ag/`git grep` or Grep-tool search for a name the
|
|
162
|
+
pending change edits is answered once with that name's callers and tests,
|
|
163
|
+
or one line saying nothing outside calls it (#337). Every hook run, and a
|
|
164
|
+
launch that never reached diffctx, leaves one line in
|
|
165
|
+
`<cache>/diffctx/hook.log`, so a silent hook can be told from a failed one (#338).
|
|
166
|
+
|
|
167
|
+
### Changed
|
|
168
|
+
|
|
169
|
+
- Impact resolves callers through import bindings in Python and JS/TS
|
|
170
|
+
(#343, #344, #349, #353). A reference is a caller when the import it goes
|
|
171
|
+
through lands on the changed file — relative and absolute Python imports,
|
|
172
|
+
`import … as`, `from … import … as`, package re-exports, ES imports,
|
|
173
|
+
`require`, `export … from`, and `tsconfig` `paths` read as data; a method
|
|
174
|
+
call when its receiver is `self`/`this` in that class or a subclass, the
|
|
175
|
+
class itself, or a variable constructed or annotated as it. Same-named
|
|
176
|
+
modules (`shop/pricing.py` vs `legacy/pricing.py`, two `App.tsx`), duplicate
|
|
177
|
+
source roots and unrelated receivers (`update.message`) no longer pass, and
|
|
178
|
+
an alias call (`took()` for `elapsed`) does — in the graph too, so pack and
|
|
179
|
+
locate see it. A reference whose import or receiver cannot be resolved is a
|
|
180
|
+
possible caller (`evidence: "candidate"`, `reason`), listed after the
|
|
181
|
+
resolved ones and counted in the header; other languages keep the name
|
|
182
|
+
model and say so. A call through a parameter shadowing the import is not a
|
|
183
|
+
caller; passing a function on is a `reference`; the chunks of one function,
|
|
184
|
+
and a file's module-level code, are one caller with its `sites`.
|
|
185
|
+
- A name defined in many files of a language without a binding model, and a
|
|
186
|
+
Rust method implementing a trait (reachable through `dyn Trait`), say
|
|
187
|
+
`callers not resolved` instead of being dropped; a qualified `--symbol
|
|
188
|
+
path:name` resolves whatever the global definition count. An empty impact
|
|
189
|
+
reads "No resolved static callers outside the diff in the analysed scope."
|
|
190
|
+
- Plugin hook (#342): an answer is keyed by its result identity — the
|
|
191
|
+
analyser version, the checkout, the base commit and every changed path's
|
|
192
|
+
final blob id — so every spelling of one snapshot shares it and any new
|
|
193
|
+
byte, a caller's edit included, is answered at once; there is no time
|
|
194
|
+
window. An answer is recorded as delivered only when it is returned; a run
|
|
195
|
+
that timed out is retried, at most twice per identity, and never counts as
|
|
196
|
+
a review; a partial answer is retried within the same bound. A commit gets
|
|
197
|
+
a reminder only when its target is exactly what was shown. A view the agent
|
|
198
|
+
does not read whole is no inspection: `git diff | grep`, `|&`, `--stat`,
|
|
199
|
+
`--name-only`, `--quiet` (but `--stat --patch`, `--exit-code` and `||` are);
|
|
200
|
+
`git add … && git commit`, `-a` and pathspec commits are labelled as a
|
|
201
|
+
preview, and the commit that lands is reviewed after it when it differs. A
|
|
202
|
+
git command hidden in `$(…)`, backticks or `sh -c` is logged as
|
|
203
|
+
`unsupported-syntax`. The automatic answer is fitted to 600 tokens with
|
|
204
|
+
possible callers folded into a count; a search for an edited name never
|
|
205
|
+
answers "nothing calls it" for a symbol whose callers were not resolved.
|
|
206
|
+
- Test labels say what static analysis shows: "reachable from tests: X" (via
|
|
207
|
+
a caller, within two call hops), "no static test link found", "no static
|
|
208
|
+
test link (its file has tests)" — never execution coverage, which a closing
|
|
209
|
+
line states.
|
|
210
|
+
|
|
211
|
+
- MCP: `diffctx_context` defaults to `mode="impact"`. Its description and the
|
|
212
|
+
server instructions promise what a change reaches outside its diff; a call
|
|
213
|
+
that omitted `mode` got a locate ranking without reverse discovery, missed
|
|
214
|
+
the callers it asked for and read `tests: 0` (#335). `mode="locate"` and the
|
|
215
|
+
`fragment_ids` flow are unchanged.
|
|
216
|
+
- Impact names deleted files and counts them, and lists the lines outside the
|
|
217
|
+
change that still name a deleted or renamed path — a Dockerfile `COPY`, a
|
|
218
|
+
workflow step, an import (#313, #347). The markdown says "uncommitted
|
|
219
|
+
changes" or "staged changes" instead of "HEAD".
|
|
220
|
+
- Impact's test labels: a caller is "tested by X" when a test reaches it
|
|
221
|
+
directly or through up to two callers ("via f"); UNTESTED only when a test
|
|
222
|
+
reaches its file but not it; otherwise "no test found". A test edge to the
|
|
223
|
+
file no longer counts as the caller's guard (#348, half of #312).
|
|
224
|
+
- A commit of a change whose impact was already shown gets one line naming
|
|
225
|
+
it instead of silence; `--amend` reviews the index against `HEAD~1` (#346).
|
|
226
|
+
- Coverage: `partial` only when a limit touched what the answer is about — a
|
|
227
|
+
run-wide stop, or a per-file limit on a changed file, a selected file or a
|
|
228
|
+
code file importing a changed module. `limited_files` names them; graph caps
|
|
229
|
+
every repository hits go to `capped` and print nothing (#306).
|
|
230
|
+
- Python: an import confirms the calls of the whole file, not of the fragment
|
|
231
|
+
that holds it, so a changed function's callee and callers clear the naming
|
|
232
|
+
floor; discovery follows the changed files' own imports and no longer pulls
|
|
233
|
+
in a whole package for an ancestor import (#317, #339, #341).
|
|
234
|
+
- Locate's serialized answer fits `--budget` (the overflow pointer list, which
|
|
235
|
+
the MCP surface strips, is not charged) (#300).
|
|
236
|
+
|
|
237
|
+
### Fixed
|
|
238
|
+
|
|
239
|
+
- An explicit range is analysed from its own head: the discovery universe is
|
|
240
|
+
the head tree's file list (`ls-tree`), and discovery, the edge builders and
|
|
241
|
+
the fragment reader read that tree, never the checked-out files. A file
|
|
242
|
+
added after the range's head no longer becomes context, one deleted only on
|
|
243
|
+
disk is still there, and a read the snapshot cannot serve is not filled from
|
|
244
|
+
the disk. Impact computes the base, the commit bounds and the
|
|
245
|
+
stale-reference search from the resolved range, so a duration window such
|
|
246
|
+
as `24h` no longer asks git about a revision named `24h` (#354).
|
|
247
|
+
- A stalled git can no longer hang a run (#356). Every git child gets what is
|
|
248
|
+
left of the run's one deadline rather than a fresh full `--timeout`; its
|
|
249
|
+
pipes are read on their own threads, so neither the child nor a descendant
|
|
250
|
+
holding a pipe can hold the caller; on Unix the child's whole process group
|
|
251
|
+
is killed. A `cat-file --batch` stream that timed out or lost framing is
|
|
252
|
+
discarded, never reused, and the file is re-read through `git show`. A read
|
|
253
|
+
the deadline interrupted is reported (`deadline`) instead of being replaced
|
|
254
|
+
by the disk's copy. MCP cancellation and the MCP deadline now stop the native
|
|
255
|
+
run and kill its git children (`cancelled`); the corpus harness ends a run
|
|
256
|
+
whose case exceeds its limit, naming the case.
|
|
257
|
+
- `diffctx-mcp` from a base install (no `[mcp]` extra) died on
|
|
258
|
+
`import anyio` with a traceback; it now answers `--help`/`--version` and
|
|
259
|
+
otherwise names the extra to install, exit 3. The release smoke installs the
|
|
260
|
+
base package into a fresh venv and checks both (#333).
|
|
261
|
+
- The plugin's session start removes the binaries 1.18.1 and earlier
|
|
262
|
+
downloaded into `$CLAUDE_PLUGIN_DATA/bin` — 61 MB per version that no update
|
|
263
|
+
ever deleted.
|
|
264
|
+
- A release whose GitHub tag is pruned after CD no longer loses its npm
|
|
265
|
+
publish: `publish-extras` checks out the release commit, re-creates a
|
|
266
|
+
missing tag, publishes a release that turned into a draft, and downloads
|
|
267
|
+
assets by id (#332).
|
|
268
|
+
- Impact: a name inside a string literal or comment is not a call, and a
|
|
269
|
+
dotted call to a module-level definition counts only through its own module
|
|
270
|
+
— `re.search` is not a call to a changed `search` (#345); a caller importing
|
|
271
|
+
a class through its package (`from models import Steps`) is found (#351).
|
|
272
|
+
- Reverse discovery reads Go/Kotlin/Swift `func`/`fun` and Java/C# methods,
|
|
273
|
+
ignores indented locals and counts each document once per name (#319).
|
|
274
|
+
- Co-change history is read before the range's head, under the git timeout,
|
|
275
|
+
with non-ASCII paths intact: a historical range no longer depends on what is
|
|
276
|
+
checked out (#340).
|
|
277
|
+
- Locate lists a file as unparsed only when this build has a grammar for it;
|
|
278
|
+
SQL, Kotlin or `.txt` changes no longer read `confidence 0.0` (#330).
|
|
279
|
+
`.php3`–`.php7` and `.phps` reach the PHP grammar.
|
|
280
|
+
- The plugin hook dropped shell redirections into the git arguments, so
|
|
281
|
+
`git commit -m x 2>&1 | tail` reviewed the whole dirty tree.
|
|
282
|
+
- The tags fallback no longer links code by syntax words (`self`, `None`,
|
|
283
|
+
`int`, `public`).
|
|
284
|
+
- The in-memory harness marks changed files that yield no fragment (#321).
|
|
285
|
+
|
|
10
286
|
## [1.18.2] - 2026-10-01
|
|
11
287
|
|
|
12
288
|
### Changed
|
|
@@ -1762,7 +2038,9 @@ Earlier releases shipped as `treemapper`; see
|
|
|
1762
2038
|
<https://github.com/nikolay-e/diffctx/releases> for the corresponding GitHub
|
|
1763
2039
|
release notes (`1.0.0` through `1.6.1`).
|
|
1764
2040
|
|
|
1765
|
-
[Unreleased]: https://github.com/nikolay-e/diffctx/compare/v1.18.
|
|
2041
|
+
[Unreleased]: https://github.com/nikolay-e/diffctx/compare/v1.18.4...HEAD
|
|
2042
|
+
[1.18.4]: https://github.com/nikolay-e/diffctx/compare/v1.18.3...v1.18.4
|
|
2043
|
+
[1.18.3]: https://github.com/nikolay-e/diffctx/compare/v1.18.2...v1.18.3
|
|
1766
2044
|
[1.18.2]: https://github.com/nikolay-e/diffctx/compare/v1.18.1...v1.18.2
|
|
1767
2045
|
[1.18.1]: https://github.com/nikolay-e/diffctx/compare/v1.18.0...v1.18.1
|
|
1768
2046
|
[1.18.0]: https://github.com/nikolay-e/diffctx/compare/v1.17.0...v1.18.0
|
|
@@ -96,13 +96,13 @@ checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
|
|
|
96
96
|
|
|
97
97
|
[[package]]
|
|
98
98
|
name = "bstr"
|
|
99
|
-
version = "1.
|
|
99
|
+
version = "1.13.1"
|
|
100
100
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
101
|
-
checksum = "
|
|
101
|
+
checksum = "6bb31b46c14244e20ee9984b11bf5c992b91fb6939fea616e3512c8baecdbe5f"
|
|
102
102
|
dependencies = [
|
|
103
103
|
"memchr",
|
|
104
104
|
"regex-automata",
|
|
105
|
-
"
|
|
105
|
+
"serde_core",
|
|
106
106
|
]
|
|
107
107
|
|
|
108
108
|
[[package]]
|
|
@@ -194,7 +194,7 @@ checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
|
|
|
194
194
|
|
|
195
195
|
[[package]]
|
|
196
196
|
name = "diffctx"
|
|
197
|
-
version = "1.18.
|
|
197
|
+
version = "1.18.4"
|
|
198
198
|
dependencies = [
|
|
199
199
|
"aho-corasick",
|
|
200
200
|
"anyhow",
|
|
@@ -303,9 +303,9 @@ checksum = "5692dd7b5a1978a5aeb0ce83b7655c58ca8efdcb79d21036ea249da95afec2c6"
|
|
|
303
303
|
|
|
304
304
|
[[package]]
|
|
305
305
|
name = "fancy-regex"
|
|
306
|
-
version = "0.
|
|
306
|
+
version = "0.19.2"
|
|
307
307
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
308
|
-
checksum = "
|
|
308
|
+
checksum = "d301f5bf187b3c295fce6468d3875037a0bccc5f6b151c63cac2f85babf21912"
|
|
309
309
|
dependencies = [
|
|
310
310
|
"bit-set",
|
|
311
311
|
"regex-automata",
|
|
@@ -886,18 +886,18 @@ dependencies = [
|
|
|
886
886
|
|
|
887
887
|
[[package]]
|
|
888
888
|
name = "thiserror"
|
|
889
|
-
version = "2.0.
|
|
889
|
+
version = "2.0.21"
|
|
890
890
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
891
|
-
checksum = "
|
|
891
|
+
checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e"
|
|
892
892
|
dependencies = [
|
|
893
893
|
"thiserror-impl",
|
|
894
894
|
]
|
|
895
895
|
|
|
896
896
|
[[package]]
|
|
897
897
|
name = "thiserror-impl"
|
|
898
|
-
version = "2.0.
|
|
898
|
+
version = "2.0.21"
|
|
899
899
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
900
|
-
checksum = "
|
|
900
|
+
checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
|
|
901
901
|
dependencies = [
|
|
902
902
|
"proc-macro2",
|
|
903
903
|
"quote",
|
|
@@ -915,15 +915,14 @@ dependencies = [
|
|
|
915
915
|
|
|
916
916
|
[[package]]
|
|
917
917
|
name = "tiktoken-rs"
|
|
918
|
-
version = "0.12.
|
|
918
|
+
version = "0.12.1"
|
|
919
919
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
920
|
-
checksum = "
|
|
920
|
+
checksum = "2aeff724640cfe13037336ddf35befdffd2909cbdb65cf041cc8a4cf8c584cfa"
|
|
921
921
|
dependencies = [
|
|
922
922
|
"anyhow",
|
|
923
923
|
"base64",
|
|
924
924
|
"bstr",
|
|
925
925
|
"fancy-regex",
|
|
926
|
-
"lazy_static",
|
|
927
926
|
"regex",
|
|
928
927
|
"rustc-hash",
|
|
929
928
|
]
|
diffctx-1.18.4/PKG-INFO
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: diffctx
|
|
3
|
+
Version: 1.18.4
|
|
4
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
5
|
+
Classifier: Environment :: Console
|
|
6
|
+
Classifier: Intended Audience :: Developers
|
|
7
|
+
Classifier: Operating System :: OS Independent
|
|
8
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
14
|
+
Classifier: Topic :: Software Development
|
|
15
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
16
|
+
Classifier: Topic :: Software Development :: Version Control :: Git
|
|
17
|
+
Classifier: Topic :: Utilities
|
|
18
|
+
Classifier: Typing :: Typed
|
|
19
|
+
Requires-Dist: pathspec>=0.11,<2.0
|
|
20
|
+
Requires-Dist: black>=23.0.0,<27.0 ; extra == 'dev'
|
|
21
|
+
Requires-Dist: charset-normalizer>=3.0,<4.0 ; extra == 'dev'
|
|
22
|
+
Requires-Dist: coverage>=7.0,<8.0 ; extra == 'dev'
|
|
23
|
+
Requires-Dist: hypothesis>=6.0,<7.0 ; extra == 'dev'
|
|
24
|
+
Requires-Dist: import-linter>=2.0,<3.0 ; extra == 'dev'
|
|
25
|
+
Requires-Dist: mypy>=1.0,<3.0 ; extra == 'dev'
|
|
26
|
+
Requires-Dist: pre-commit>=3.0,<5.0 ; extra == 'dev'
|
|
27
|
+
Requires-Dist: pygit2>=1.12,<2.0 ; extra == 'dev'
|
|
28
|
+
Requires-Dist: pytest>=7.0,<10.0 ; extra == 'dev'
|
|
29
|
+
Requires-Dist: pytest-asyncio>=0.23,<2.0 ; extra == 'dev'
|
|
30
|
+
Requires-Dist: pytest-cov>=3.0,<8.0 ; extra == 'dev'
|
|
31
|
+
Requires-Dist: pytest-timeout>=2.1,<3.0 ; extra == 'dev'
|
|
32
|
+
Requires-Dist: pytest-xdist>=3.0,<4.0 ; extra == 'dev'
|
|
33
|
+
Requires-Dist: pyyaml>=6.0.2,<8.0 ; extra == 'dev'
|
|
34
|
+
Requires-Dist: radon>=6.0,<7.0 ; extra == 'dev'
|
|
35
|
+
Requires-Dist: ruff>=0.4,<1.0 ; extra == 'dev'
|
|
36
|
+
Requires-Dist: tiktoken>=0.9,<1.0 ; extra == 'dev'
|
|
37
|
+
Requires-Dist: types-pyyaml>=6.0,<7.0 ; extra == 'dev'
|
|
38
|
+
Requires-Dist: charset-normalizer>=3.0,<4.0 ; extra == 'full'
|
|
39
|
+
Requires-Dist: anyio>=4.5,<5.0 ; extra == 'mcp'
|
|
40
|
+
Requires-Dist: mcp>=2.3,<3 ; extra == 'mcp'
|
|
41
|
+
Provides-Extra: dev
|
|
42
|
+
Provides-Extra: full
|
|
43
|
+
Provides-Extra: mcp
|
|
44
|
+
License-File: LICENSE
|
|
45
|
+
Summary: Selects the minimum code an LLM needs to review a git diff
|
|
46
|
+
Keywords: ai,chatgpt,claude,code-analysis,code-context,code-review,code-to-prompt,codebase,context,context-selection,diff-context,directory-tree,export,git-diff,json,llm,llm-context,mcp,model-context-protocol,tree,yaml
|
|
47
|
+
Home-Page: https://diffctx.com/
|
|
48
|
+
Author-email: Nikolay Eremeev <nikolay.eremeev@outlook.com>
|
|
49
|
+
License-Expression: Apache-2.0
|
|
50
|
+
Requires-Python: >=3.10
|
|
51
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
52
|
+
Project-URL: Author, https://nikolay-eremeev.com
|
|
53
|
+
Project-URL: Changelog, https://github.com/nikolay-e/diffctx/blob/main/CHANGELOG.md
|
|
54
|
+
Project-URL: Documentation, https://diffctx.com/
|
|
55
|
+
Project-URL: Homepage, https://diffctx.com/
|
|
56
|
+
Project-URL: Issues, https://github.com/nikolay-e/diffctx/issues
|
|
57
|
+
Project-URL: Paper, https://doi.org/10.5281/zenodo.18824579
|
|
58
|
+
Project-URL: Repository, https://github.com/nikolay-e/diffctx
|
|
59
|
+
|
|
60
|
+
# diffctx — what a git change reaches, and the code to review it
|
|
61
|
+
|
|
62
|
+
[](https://github.com/nikolay-e/diffctx/actions/workflows/ci.yml)
|
|
63
|
+
[](https://pypi.org/project/diffctx/)
|
|
64
|
+
[](https://crates.io/crates/diffctx)
|
|
65
|
+
[](https://www.npmjs.com/package/diffctx)
|
|
66
|
+
[](https://registry.modelcontextprotocol.io/v0/servers?search=io.github.nikolay-e/diffctx)
|
|
67
|
+
|
|
68
|
+
**diffctx tells an agent or a reviewer what a change reaches outside its
|
|
69
|
+
diff** — the callers, the tests that reach them, the contracts it crosses —
|
|
70
|
+
**and selects the code needed to understand it** under a token budget. Local,
|
|
71
|
+
deterministic, no index, no model calls. Caller resolution is static and per
|
|
72
|
+
language; where it cannot resolve, the answer says so instead of printing a
|
|
73
|
+
zero.
|
|
74
|
+
|
|
75
|
+
> Formerly published as `treemapper` — every command, flag, and API call works unchanged.
|
|
76
|
+
|
|
77
|
+
## Install
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# Claude Code: the MCP server, /diffctx:impact, and hooks that run it before commit and push
|
|
81
|
+
claude plugin marketplace add nikolay-e/diffctx
|
|
82
|
+
claude plugin install diffctx@diffctx
|
|
83
|
+
|
|
84
|
+
# any MCP client
|
|
85
|
+
claude mcp add diffctx -- uvx --from 'diffctx[mcp]' diffctx-mcp
|
|
86
|
+
|
|
87
|
+
# CLI, zero-install
|
|
88
|
+
uvx diffctx . --diff HEAD~1
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
pipx, pip, cargo, npm, Docker, Scoop, other MCP clients and the Python API:
|
|
92
|
+
[integrations](docs/product/integrations.md).
|
|
93
|
+
|
|
94
|
+
## Usage
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
diffctx . --diff --mode impact # uncommitted work: callers outside the diff, their tests, contracts
|
|
98
|
+
diffctx . --symbol parse_config # the same for a name, no change needed
|
|
99
|
+
diffctx . --diff main...feature # the code to review a branch, packed under the auto budget
|
|
100
|
+
diffctx . --diff HEAD~1 --budget 12000 # the last commit, capped at 12k o200k tokens
|
|
101
|
+
diffctx . --diff 24h --mode locate # today's work as ranked JSON, no source bodies
|
|
102
|
+
diffctx . # whole-tree export, Markdown
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
`--diff` takes a git range, `staged`, or a duration window ending now (`24h`,
|
|
106
|
+
`90min`, `2w`). Every flag, default and exit code:
|
|
107
|
+
[command-line reference](docs/product/cli.md).
|
|
108
|
+
|
|
109
|
+

|
|
110
|
+
|
|
111
|
+
## How it compares
|
|
112
|
+
|
|
113
|
+
Whole-repo packers export everything; code-graph servers answer queries
|
|
114
|
+
against a maintained index. diffctx is **diff-seeded**: the input is a change,
|
|
115
|
+
the output is what it touches and what explains it. Measured results, and when
|
|
116
|
+
the other two fit better: [COMPARISON.md](COMPARISON.md).
|
|
117
|
+
|
|
118
|
+
## More
|
|
119
|
+
|
|
120
|
+
- [Documentation site](https://diffctx.com/) — the pipeline end to end
|
|
121
|
+
- [Command-line reference](docs/product/cli.md) — rendered from `diffctx --help`
|
|
122
|
+
- [Integrations](docs/product/integrations.md) — install, MCP clients, Python API
|
|
123
|
+
- [FAQ](docs/product/faq.md) — heuristic or oracle, ignore rules, monorepos, secrets
|
|
124
|
+
- [Token counting](docs/product/token-budget.md) — `--budget` for non-GPT models
|
|
125
|
+
- [GitHub Action](docs/product/github-action.md) — diff context as a CI step
|
|
126
|
+
- [Benchmarks](BENCHMARKS.md) and the [paper](https://doi.org/10.5281/zenodo.18824579)
|
|
127
|
+
- [Changelog](CHANGELOG.md) · [Security](SECURITY.md)
|
|
128
|
+
- [Parameter strategy](docs/engineering/parameter-strategy.md)
|
|
129
|
+
|
|
130
|
+
Apache 2.0
|
|
131
|
+
|
|
132
|
+
<!-- mcp-name: io.github.nikolay-e/diffctx -->
|
|
133
|
+
<!-- Ownership marker read from the PyPI description by the MCP registry. -->
|
|
134
|
+
<!-- Must survive edits verbatim: one space after the colon, case-sensitive. -->
|
|
135
|
+
|
diffctx-1.18.4/README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# diffctx — what a git change reaches, and the code to review it
|
|
2
|
+
|
|
3
|
+
[](https://github.com/nikolay-e/diffctx/actions/workflows/ci.yml)
|
|
4
|
+
[](https://pypi.org/project/diffctx/)
|
|
5
|
+
[](https://crates.io/crates/diffctx)
|
|
6
|
+
[](https://www.npmjs.com/package/diffctx)
|
|
7
|
+
[](https://registry.modelcontextprotocol.io/v0/servers?search=io.github.nikolay-e/diffctx)
|
|
8
|
+
|
|
9
|
+
**diffctx tells an agent or a reviewer what a change reaches outside its
|
|
10
|
+
diff** — the callers, the tests that reach them, the contracts it crosses —
|
|
11
|
+
**and selects the code needed to understand it** under a token budget. Local,
|
|
12
|
+
deterministic, no index, no model calls. Caller resolution is static and per
|
|
13
|
+
language; where it cannot resolve, the answer says so instead of printing a
|
|
14
|
+
zero.
|
|
15
|
+
|
|
16
|
+
> Formerly published as `treemapper` — every command, flag, and API call works unchanged.
|
|
17
|
+
|
|
18
|
+
## Install
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
# Claude Code: the MCP server, /diffctx:impact, and hooks that run it before commit and push
|
|
22
|
+
claude plugin marketplace add nikolay-e/diffctx
|
|
23
|
+
claude plugin install diffctx@diffctx
|
|
24
|
+
|
|
25
|
+
# any MCP client
|
|
26
|
+
claude mcp add diffctx -- uvx --from 'diffctx[mcp]' diffctx-mcp
|
|
27
|
+
|
|
28
|
+
# CLI, zero-install
|
|
29
|
+
uvx diffctx . --diff HEAD~1
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
pipx, pip, cargo, npm, Docker, Scoop, other MCP clients and the Python API:
|
|
33
|
+
[integrations](docs/product/integrations.md).
|
|
34
|
+
|
|
35
|
+
## Usage
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
diffctx . --diff --mode impact # uncommitted work: callers outside the diff, their tests, contracts
|
|
39
|
+
diffctx . --symbol parse_config # the same for a name, no change needed
|
|
40
|
+
diffctx . --diff main...feature # the code to review a branch, packed under the auto budget
|
|
41
|
+
diffctx . --diff HEAD~1 --budget 12000 # the last commit, capped at 12k o200k tokens
|
|
42
|
+
diffctx . --diff 24h --mode locate # today's work as ranked JSON, no source bodies
|
|
43
|
+
diffctx . # whole-tree export, Markdown
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
`--diff` takes a git range, `staged`, or a duration window ending now (`24h`,
|
|
47
|
+
`90min`, `2w`). Every flag, default and exit code:
|
|
48
|
+
[command-line reference](docs/product/cli.md).
|
|
49
|
+
|
|
50
|
+

|
|
51
|
+
|
|
52
|
+
## How it compares
|
|
53
|
+
|
|
54
|
+
Whole-repo packers export everything; code-graph servers answer queries
|
|
55
|
+
against a maintained index. diffctx is **diff-seeded**: the input is a change,
|
|
56
|
+
the output is what it touches and what explains it. Measured results, and when
|
|
57
|
+
the other two fit better: [COMPARISON.md](COMPARISON.md).
|
|
58
|
+
|
|
59
|
+
## More
|
|
60
|
+
|
|
61
|
+
- [Documentation site](https://diffctx.com/) — the pipeline end to end
|
|
62
|
+
- [Command-line reference](docs/product/cli.md) — rendered from `diffctx --help`
|
|
63
|
+
- [Integrations](docs/product/integrations.md) — install, MCP clients, Python API
|
|
64
|
+
- [FAQ](docs/product/faq.md) — heuristic or oracle, ignore rules, monorepos, secrets
|
|
65
|
+
- [Token counting](docs/product/token-budget.md) — `--budget` for non-GPT models
|
|
66
|
+
- [GitHub Action](docs/product/github-action.md) — diff context as a CI step
|
|
67
|
+
- [Benchmarks](BENCHMARKS.md) and the [paper](https://doi.org/10.5281/zenodo.18824579)
|
|
68
|
+
- [Changelog](CHANGELOG.md) · [Security](SECURITY.md)
|
|
69
|
+
- [Parameter strategy](docs/engineering/parameter-strategy.md)
|
|
70
|
+
|
|
71
|
+
Apache 2.0
|
|
72
|
+
|
|
73
|
+
<!-- mcp-name: io.github.nikolay-e/diffctx -->
|
|
74
|
+
<!-- Ownership marker read from the PyPI description by the MCP registry. -->
|
|
75
|
+
<!-- Must survive edits verbatim: one space after the colon, case-sensitive. -->
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "diffctx"
|
|
3
|
-
version = "1.18.
|
|
3
|
+
version = "1.18.4"
|
|
4
4
|
edition = "2024"
|
|
5
5
|
rust-version = "1.85"
|
|
6
6
|
description = "Selects the minimum code an LLM needs to review a git diff: walks the dependency graph outward from changed lines and stops when extra context stops paying for itself"
|
|
@@ -110,7 +110,7 @@ tree-sitter-graphql = { version = "0.2", optional = true }
|
|
|
110
110
|
tree-sitter-dart = { version = "0.2", optional = true }
|
|
111
111
|
tree-sitter-prisma-io = { version = "1.6", optional = true }
|
|
112
112
|
tree-sitter-svelte-ng = { version = "1.0", optional = true }
|
|
113
|
-
tiktoken-rs = "=0.12.
|
|
113
|
+
tiktoken-rs = "=0.12.1"
|
|
114
114
|
rayon = "1.10"
|
|
115
115
|
serde = { version = "1", features = ["derive", "rc"] }
|
|
116
116
|
serde_json = { version = "1", features = ["preserve_order"] }
|