diffctx 1.19.1__tar.gz → 2.0.0rc0__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.19.1 → diffctx-2.0.0rc0}/CHANGELOG.md +468 -3
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/Cargo.lock +506 -345
- diffctx-2.0.0rc0/Cargo.toml +159 -0
- diffctx-2.0.0rc0/LICENSE.md +95 -0
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/PKG-INFO +84 -16
- diffctx-2.0.0rc0/README.md +145 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/Cargo.toml +36 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/LICENSE.md +95 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/README.md +145 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/clippy.toml +20 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/deny.toml +7 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/answer/envelope.rs +143 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/answer/render.rs +753 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/answer/v2/definition.rs +139 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/answer/v2/unlisted.rs +65 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/answer/v2.rs +1329 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/answer.rs +378 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/cell/account.rs +453 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/cell/changes.rs +1127 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/cell/construction.rs +376 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/cell/reach.rs +120 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/cell/search.rs +358 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/cell.rs +878 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/cells.rs +370 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/changed.rs +201 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/coverage.rs +341 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/gap.rs +255 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/losses.rs +126 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/tests.rs +68 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/verdict.rs +227 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/decide.rs +39 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-answer}/src/effective_config.rs +33 -16
- diffctx-2.0.0rc0/crates/diffctx-answer/src/fold.rs +508 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/apart.rs +129 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/claim.rs +331 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/class_use.rs +227 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/context.rs +405 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/contract.rs +57 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/definition.rs +132 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/gaps.rs +140 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/range.rs +313 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/removals.rs +146 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/role.rs +195 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/rows.rs +123 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/sources.rs +392 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/targets.rs +317 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build.rs +132 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/callers.rs +346 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/carried.rs +201 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/cells.rs +321 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/changes.rs +551 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/coverage.rs +137 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/deliver.rs +576 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/dispatch.rs +259 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/entry.rs +546 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/key_search.rs +516 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/keys.rs +1323 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/mentions/spelling.rs +459 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/mentions/twin.rs +106 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/mentions.rs +1053 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/output.rs +654 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/php.rs +119 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/removed.rs +525 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/runs/spelling.rs +91 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/runs.rs +1438 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/rust.rs +106 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/symbol.rs +357 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/tests_reach.rs +959 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/text.rs +789 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/unanalysed.rs +929 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/impact.rs +85 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/lib.rs +14 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-answer}/src/locate.rs +308 -217
- diffctx-2.0.0rc0/crates/diffctx-answer/src/provenance.rs +84 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/src/render/shed.rs +170 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-answer}/src/render.rs +155 -331
- diffctx-2.0.0rc0/crates/diffctx-answer/src/run_provenance/state.rs +340 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-answer}/src/run_provenance.rs +46 -23
- diffctx-2.0.0rc0/crates/diffctx-base/Cargo.toml +32 -0
- diffctx-2.0.0rc0/crates/diffctx-base/LICENSE.md +95 -0
- diffctx-2.0.0rc0/crates/diffctx-base/README.md +145 -0
- diffctx-2.0.0rc0/crates/diffctx-base/clippy.toml +12 -0
- diffctx-2.0.0rc0/crates/diffctx-base/deny.toml +9 -0
- diffctx-2.0.0rc0/crates/diffctx-base/src/canon.rs +255 -0
- diffctx-2.0.0rc0/crates/diffctx-base/src/changed_lines.rs +301 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/container.rs +23 -12
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/excerpt.rs +93 -1
- diffctx-2.0.0rc0/crates/diffctx-base/src/fit.rs +74 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/languages.rs +43 -5
- diffctx-2.0.0rc0/crates/diffctx-base/src/lib.rs +21 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/paths.rs +60 -67
- diffctx-2.0.0rc0/crates/diffctx-base/src/profile.rs +248 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/test_rng.rs +2 -2
- diffctx-2.0.0rc0/crates/diffctx-base/src/testfiles.rs +1215 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/tokenizer.rs +11 -9
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/types.rs +162 -2
- diffctx-2.0.0rc0/crates/diffctx-base/src/yaml.rs +151 -0
- diffctx-2.0.0rc0/crates/diffctx-config/Cargo.toml +21 -0
- diffctx-2.0.0rc0/crates/diffctx-config/LICENSE.md +95 -0
- diffctx-2.0.0rc0/crates/diffctx-config/README.md +145 -0
- diffctx-2.0.0rc0/crates/diffctx-config/clippy.toml +12 -0
- diffctx-2.0.0rc0/crates/diffctx-config/deny.toml +9 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/category_weights.rs +7 -7
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/edge_weights.rs +0 -4
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/env_overrides.rs +6 -1
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/graph_filtering.rs +0 -2
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/limits.rs +16 -17
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/mod.rs +0 -1
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/selection.rs +2 -22
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/weights.rs +18 -8
- diffctx-2.0.0rc0/crates/diffctx-config/src/lib.rs +9 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/signatures.rs +1 -1
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/stopwords.rs +9 -11
- diffctx-2.0.0rc0/crates/diffctx-facts/Cargo.toml +116 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/LICENSE.md +95 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/README.md +145 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/build.rs +128 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/clippy.toml +20 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/deny.toml +7 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/change_class.rs +466 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/blob.rs +147 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/cache.rs +541 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/changes.rs +589 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/candidates.rs +87 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/commands.rs +118 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/dockerfile.rs +323 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/globs.rs +113 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/helm.rs +248 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/ini.rs +191 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/json.rs +148 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/k8s.rs +319 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/mod.rs +157 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/object.rs +150 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/pointer.rs +158 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/pointers.rs +269 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/reference.rs +160 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/selectors.rs +201 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/syntax.rs +194 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/template.rs +176 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/toml_file.rs +92 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/tree.rs +224 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/yaml.rs +578 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/extractor.rs +71 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/file.rs +128 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/framework/jvm.rs +354 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/framework.rs +590 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/grammar.rs +31 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/grammar_witnesses.txt +3 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/hash.rs +82 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/ids.rs +75 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/java.rs +880 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/kotlin/bindings.rs +270 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-facts}/src/facts/kotlin.rs +386 -277
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/c.rs +2104 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/config.rs +299 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/dockerfile.rs +586 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/go/type_declaration.rs +169 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/go.rs +1384 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/helm.rs +179 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/html.rs +367 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/java.rs +627 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/jvm.rs +198 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/kotlin.rs +685 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/mod.rs +342 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/php.rs +1985 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/python/mutations.rs +154 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/python.rs +2688 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/rust/elements.rs +131 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/rust/macros.rs +155 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/rust.rs +1878 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/shell.rs +860 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/sql.rs +687 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/swift.rs +847 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/terraform.rs +699 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/typescript/blocks.rs +15 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/typescript.rs +4434 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/walker.rs +122 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/language.rs +211 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lexical.rs +117 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/mod.rs +81 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/model.rs +691 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/module.rs +107 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/reflect.rs +101 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/shell.rs +44 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/lib.rs +9 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/overlay/css.rs +63 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/overlay/helm.rs +16 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/overlay/javascript.rs +315 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/overlay/mod.rs +202 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/overlay/prometheus.rs +39 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/overlay/python.rs +67 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/overlay/shell.rs +93 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/overlay/sql.rs +47 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-facts}/src/parsers/config_parser.rs +3 -3
- diffctx-2.0.0rc0/crates/diffctx-facts/src/parsers/def_kinds.rs +115 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/parsers/embedded.rs +77 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-facts}/src/parsers/generic.rs +4 -4
- diffctx-2.0.0rc0/crates/diffctx-facts/src/parsers/keyword_calls.rs +69 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-facts}/src/parsers/markdown.rs +3 -3
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-facts}/src/parsers/mod.rs +51 -12
- diffctx-2.0.0rc0/crates/diffctx-facts/src/parsers/python_decls.rs +261 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/parsers/rust_tests.rs +137 -0
- {diffctx-1.19.1/crates/diffctx-native/src/facts → diffctx-2.0.0rc0/crates/diffctx-facts/src/parsers}/scala.rs +57 -9
- diffctx-2.0.0rc0/crates/diffctx-facts/src/parsers/tree_sitter_strategy/lang_config.rs +430 -0
- diffctx-2.0.0rc0/crates/diffctx-facts/src/parsers/tree_sitter_strategy/node_kind.rs +144 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-facts}/src/parsers/tree_sitter_strategy.rs +243 -658
- diffctx-2.0.0rc0/crates/diffctx-graph/Cargo.toml +43 -0
- diffctx-2.0.0rc0/crates/diffctx-graph/LICENSE.md +95 -0
- diffctx-2.0.0rc0/crates/diffctx-graph/README.md +145 -0
- diffctx-2.0.0rc0/crates/diffctx-graph/build.rs +131 -0
- diffctx-2.0.0rc0/crates/diffctx-graph/clippy.toml +20 -0
- diffctx-2.0.0rc0/crates/diffctx-graph/deny.toml +7 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/core.rs +1 -1
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/discovery.rs +122 -30
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/base.rs +159 -77
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/config_edges/build_system.rs +4 -7
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/config_edges/cicd.rs +14 -49
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/config_edges/docker.rs +161 -59
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/config_edges/generic.rs +100 -170
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/config_edges/helm.rs +38 -31
- diffctx-2.0.0rc0/crates/diffctx-graph/src/edges/config_edges/keys.rs +413 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/config_edges/kubernetes.rs +8 -76
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/config_edges/mod.rs +3 -1
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/document/mod.rs +6 -6
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/history/cochange.rs +9 -8
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/history/mod.rs +2 -2
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/mod.rs +274 -85
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/ansible.rs +6 -6
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/bazel.rs +5 -5
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/c_family.rs +19 -12
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/cargo_edges.rs +7 -7
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/clojure.rs +14 -42
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/css.rs +6 -21
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/dart.rs +6 -21
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/dbt.rs +17 -39
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/dotnet.rs +5 -5
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/elixir.rs +8 -31
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/erlang.rs +19 -51
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/go.rs +84 -22
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/graphql.rs +12 -38
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/haskell.rs +8 -21
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/javascript.rs +14 -13
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/julia.rs +10 -42
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/jvm.rs +26 -18
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/latex.rs +6 -21
- {diffctx-1.19.1/crates/diffctx-native/src → diffctx-2.0.0rc0/crates/diffctx-graph/src/edges/semantic/legacy}/kotlin_bindings.rs +232 -134
- diffctx-2.0.0rc0/crates/diffctx-graph/src/edges/semantic/legacy/mod.rs +8 -0
- diffctx-2.0.0rc0/crates/diffctx-graph/src/edges/semantic/legacy/python_imports.rs +114 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/lua.rs +10 -41
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/mod.rs +39 -38
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/nim.rs +6 -11
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/nix.rs +3 -3
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/ocaml.rs +13 -44
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/openapi.rs +16 -37
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/perl.rs +15 -48
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/php.rs +20 -44
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/prisma.rs +14 -38
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/protobuf.rs +8 -28
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/python.rs +24 -12
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/r_lang.rs +8 -28
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/ruby.rs +12 -24
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/rust_lang.rs +49 -60
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/shell.rs +6 -6
- diffctx-2.0.0rc0/crates/diffctx-graph/src/edges/semantic/sql.rs +199 -0
- diffctx-2.0.0rc0/crates/diffctx-graph/src/edges/semantic/swift.rs +238 -0
- diffctx-2.0.0rc0/crates/diffctx-graph/src/edges/semantic/tags.rs +137 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/terraform.rs +3 -3
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/zig.rs +12 -43
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/similarity/lexical.rs +8 -11
- diffctx-2.0.0rc0/crates/diffctx-graph/src/edges/similarity/mod.rs +7 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/structural/containment.rs +3 -3
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/structural/mod.rs +4 -4
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/structural/sibling.rs +6 -6
- diffctx-2.0.0rc0/crates/diffctx-graph/src/edges/structural/testing.rs +234 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/filtering.rs +14 -16
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/fragmentation.rs +124 -125
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/graph.rs +97 -383
- diffctx-2.0.0rc0/crates/diffctx-graph/src/keytable/definitions.rs +99 -0
- diffctx-2.0.0rc0/crates/diffctx-graph/src/keytable/extract.rs +2416 -0
- diffctx-2.0.0rc0/crates/diffctx-graph/src/keytable/mod.rs +1219 -0
- diffctx-2.0.0rc0/crates/diffctx-graph/src/keytable/routes.rs +754 -0
- diffctx-2.0.0rc0/crates/diffctx-graph/src/keytable/tech.rs +154 -0
- diffctx-2.0.0rc0/crates/diffctx-graph/src/lib.rs +15 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/ppr.rs +90 -125
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/scoring.rs +35 -35
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/token_corpus.rs +31 -22
- diffctx-2.0.0rc0/crates/diffctx-native/Cargo.toml +110 -0
- diffctx-2.0.0rc0/crates/diffctx-native/LICENSE.md +95 -0
- diffctx-2.0.0rc0/crates/diffctx-native/README.md +145 -0
- diffctx-2.0.0rc0/crates/diffctx-native/clippy.toml +20 -0
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/crates/diffctx-native/src/analytics.rs +28 -29
- diffctx-2.0.0rc0/crates/diffctx-native/src/artifact.rs +873 -0
- diffctx-2.0.0rc0/crates/diffctx-native/src/delivery.rs +571 -0
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/crates/diffctx-native/src/graph_export.rs +23 -31
- diffctx-2.0.0rc0/crates/diffctx-native/src/hook/intent.rs +1356 -0
- diffctx-2.0.0rc0/crates/diffctx-native/src/hook.rs +4625 -0
- diffctx-2.0.0rc0/crates/diffctx-native/src/lib.rs +32 -0
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/crates/diffctx-native/src/main.rs +108 -337
- diffctx-2.0.0rc0/crates/diffctx-native/src/pipeline/keyword_binding.rs +190 -0
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/crates/diffctx-native/src/pipeline.rs +1211 -977
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/crates/diffctx-native/src/project_graph.rs +22 -52
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/crates/diffctx-native/src/pybridge.rs +251 -109
- diffctx-2.0.0rc0/crates/diffctx-occurrence/Cargo.toml +22 -0
- diffctx-2.0.0rc0/crates/diffctx-occurrence/LICENSE.md +95 -0
- diffctx-2.0.0rc0/crates/diffctx-occurrence/README.md +145 -0
- diffctx-2.0.0rc0/crates/diffctx-occurrence/clippy.toml +20 -0
- diffctx-2.0.0rc0/crates/diffctx-occurrence/deny.toml +7 -0
- diffctx-2.0.0rc0/crates/diffctx-occurrence/src/lib.rs +8 -0
- diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/alias.rs +350 -0
- diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/debug.rs +557 -0
- diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/identity.rs +325 -0
- diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/implicit.rs +258 -0
- diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/local.rs +122 -0
- diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/mod.rs +621 -0
- diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/outcome/keyword.rs +93 -0
- diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/outcome/resolved.rs +54 -0
- diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/outcome/routes.rs +344 -0
- diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/outcome.rs +1427 -0
- diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/rows.rs +152 -0
- diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/scanner.rs +244 -0
- diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/seal.rs +135 -0
- diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/tests.rs +302 -0
- diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens.rs +473 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/Cargo.toml +24 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/LICENSE.md +95 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/README.md +145 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/clippy.toml +20 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/deny.toml +7 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/lib.rs +7 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/c.rs +2045 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/chart.rs +271 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/config.rs +466 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/dockerfile.rs +324 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/go.rs +1324 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/index.rs +352 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/java/header.rs +360 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/java.rs +1654 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/jvm.rs +1139 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/kotlin.rs +1927 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/mod.rs +402 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/modules.rs +232 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/php.rs +1768 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/python/assigned.rs +593 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/python.rs +1850 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/rust/expansion.rs +129 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/rust/lookup.rs +217 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/rust.rs +2197 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/shell.rs +486 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/solved.rs +395 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/sql.rs +169 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/swift.rs +37 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/terraform.rs +328 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/twins.rs +510 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/typescript.rs +3993 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/vocabulary/family.rs +461 -0
- diffctx-2.0.0rc0/crates/diffctx-resolve/src/vocabulary.rs +328 -0
- diffctx-2.0.0rc0/crates/diffctx-select/Cargo.toml +27 -0
- diffctx-2.0.0rc0/crates/diffctx-select/LICENSE.md +95 -0
- diffctx-2.0.0rc0/crates/diffctx-select/README.md +145 -0
- diffctx-2.0.0rc0/crates/diffctx-select/clippy.toml +20 -0
- diffctx-2.0.0rc0/crates/diffctx-select/deny.toml +7 -0
- diffctx-2.0.0rc0/crates/diffctx-select/src/lib.rs +7 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-select}/src/postpass.rs +43 -70
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-select}/src/select.rs +18 -26
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-select}/src/utility/boltzmann.rs +5 -5
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-select}/src/utility/importance.rs +3 -3
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-select}/src/utility/mod.rs +3 -3
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-select}/src/utility/needs.rs +6 -9
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-select}/src/utility/objective.rs +10 -10
- diffctx-2.0.0rc0/crates/diffctx-snapshot/Cargo.toml +39 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/LICENSE.md +95 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/README.md +145 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/clippy.toml +20 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/deny.toml +9 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/candidate_files.rs +87 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/diff_parse.rs +749 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/grep.rs +153 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/lib.rs +9 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-snapshot}/src/resource.rs +316 -34
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/admission.rs +204 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/changes.rs +272 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/context.rs +123 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/diff.rs +208 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/error.rs +74 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/git/together.rs +306 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/git.rs +1432 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/grep.rs +309 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/ignore.rs +353 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/loss.rs +278 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/mod.rs +77 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/range.rs +443 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/reader.rs +1078 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/repo.rs +526 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/run.rs +154 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/testing.rs +34 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/types.rs +213 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/untracked.rs +166 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/workspace/dockerfile.rs +211 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/workspace/go.rs +106 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/workspace/jvm.rs +555 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/workspace/mod.rs +1048 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/workspace/node.rs +770 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/workspace/python.rs +545 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/workspace/rust.rs +539 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/workspace/source.rs +51 -0
- diffctx-2.0.0rc0/crates/diffctx-snapshot/src/source.rs +838 -0
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/pyproject.toml +47 -47
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/rust-toolchain.toml +1 -1
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/src/diffctx/_app.py +71 -269
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/src/diffctx/_diffctx.pyi +25 -1
- diffctx-2.0.0rc0/src/diffctx/_native/__init__.py +24 -0
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/src/diffctx/_native/graph_analytics.py +1 -1
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/src/diffctx/_native/pipeline.py +69 -54
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/src/diffctx/cli.py +97 -56
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/src/diffctx/clipboard.py +0 -4
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/src/diffctx/mcp/fetch.py +0 -4
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/src/diffctx/mcp/launch.py +2 -2
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/src/diffctx/mcp/legacy.py +8 -9
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/src/diffctx/mcp/security.py +21 -7
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/src/diffctx/mcp/server.py +165 -121
- diffctx-2.0.0rc0/src/diffctx/tokens.py +25 -0
- diffctx-2.0.0rc0/src/diffctx/version.py +1 -0
- diffctx-2.0.0rc0/src/diffctx/writer.py +415 -0
- diffctx-1.19.1/Cargo.toml +0 -25
- diffctx-1.19.1/LICENSE +0 -201
- diffctx-1.19.1/README.md +0 -75
- diffctx-1.19.1/crates/diffctx-native/Cargo.toml +0 -186
- diffctx-1.19.1/crates/diffctx-native/README.md +0 -75
- diffctx-1.19.1/crates/diffctx-native/src/bindings.rs +0 -1461
- diffctx-1.19.1/crates/diffctx-native/src/candidate_files.rs +0 -253
- diffctx-1.19.1/crates/diffctx-native/src/change_class.rs +0 -637
- diffctx-1.19.1/crates/diffctx-native/src/config/git.rs +0 -20
- diffctx-1.19.1/crates/diffctx-native/src/edges/semantic/sql.rs +0 -117
- diffctx-1.19.1/crates/diffctx-native/src/edges/semantic/swift.rs +0 -126
- diffctx-1.19.1/crates/diffctx-native/src/edges/semantic/tags.rs +0 -89
- diffctx-1.19.1/crates/diffctx-native/src/edges/similarity/mod.rs +0 -7
- diffctx-1.19.1/crates/diffctx-native/src/edges/structural/testing.rs +0 -297
- diffctx-1.19.1/crates/diffctx-native/src/facts/mod.rs +0 -29
- diffctx-1.19.1/crates/diffctx-native/src/git.rs +0 -3238
- diffctx-1.19.1/crates/diffctx-native/src/go_bindings.rs +0 -603
- diffctx-1.19.1/crates/diffctx-native/src/hook.rs +0 -2785
- diffctx-1.19.1/crates/diffctx-native/src/impact.rs +0 -4270
- diffctx-1.19.1/crates/diffctx-native/src/in_memory_harness.rs +0 -507
- diffctx-1.19.1/crates/diffctx-native/src/lib.rs +0 -77
- diffctx-1.19.1/crates/diffctx-native/src/provenance.rs +0 -190
- diffctx-1.19.1/crates/diffctx-native/src/source.rs +0 -201
- diffctx-1.19.1/crates/diffctx-native/src/testfiles.rs +0 -170
- diffctx-1.19.1/src/diffctx/_native/__init__.py +0 -7
- diffctx-1.19.1/src/diffctx/tokens.py +0 -46
- diffctx-1.19.1/src/diffctx/version.py +0 -1
- diffctx-1.19.1/src/diffctx/writer.py +0 -901
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/interval.rs +0 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/peak_rss.rs +0 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/sanitize.rs +0 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/analytics.rs +0 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/bm25.rs +0 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/budget.rs +0 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/extensions.rs +0 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/filtering.rs +0 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/fragmentation.rs +0 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/importance.rs +0 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/mode.rs +0 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/needs.rs +0 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/parsers.rs +0 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/render.rs +0 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/scoring.rs +0 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/tokenization.rs +0 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/mode.rs +0 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/stopwords/code.txt +0 -0
- {diffctx-1.19.1/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/stopwords/docs.txt +0 -0
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/src/diffctx/__init__.py +0 -0
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/src/diffctx/__main__.py +0 -0
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/src/diffctx/_native/graph_export.py +0 -0
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/src/diffctx/_native/project_graph.py +0 -0
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/src/diffctx/ignore.py +0 -0
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/src/diffctx/logger.py +0 -0
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/src/diffctx/mcp/__init__.py +0 -0
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/src/diffctx/mcp/__main__.py +0 -0
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/src/diffctx/py.typed +0 -0
- {diffctx-1.19.1 → diffctx-2.0.0rc0}/src/diffctx/tree.py +0 -0
|
@@ -7,6 +7,470 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Official plugins for Antigravity, Codex and Gemini CLI in `plugins/diffctx`:
|
|
13
|
+
the MCP server, the `diffctx`, `diffctx-impact` and `diffctx-commit` skills,
|
|
14
|
+
a standing rule, and lifecycle hooks that hand the agent a commit's or a
|
|
15
|
+
push's impact, as the Claude Code plugin does. `agy plugin install
|
|
16
|
+
https://github.com/nikolay-e/diffctx/tree/main/plugins/diffctx`, `codex
|
|
17
|
+
plugin marketplace add nikolay-e/diffctx`, and `gemini extensions install
|
|
18
|
+
https://github.com/nikolay-e/diffctx`, which each release now serves.
|
|
19
|
+
|
|
20
|
+
- Files that name the same environment variable or container image are linked
|
|
21
|
+
across formats. A variable read in code (Python, JS/TS, Go, Rust,
|
|
22
|
+
Java/Kotlin, Ruby, shell) meets the `.env`, compose, Kubernetes, Helm,
|
|
23
|
+
CI, Dockerfile and Terraform files that set it; an image built by a
|
|
24
|
+
pipeline or a compose `build:` meets the manifests, values and Dockerfiles
|
|
25
|
+
that run it, and the Dockerfile the build names. A name that more than
|
|
26
|
+
eight files spell is vocabulary and links nothing, an image nothing in the
|
|
27
|
+
repository builds links nothing, and a sibling service's copy of the same
|
|
28
|
+
name is left out when a nearer one exists. A changed file now brings in its
|
|
29
|
+
counterparts.
|
|
30
|
+
|
|
31
|
+
- The same typed links cover HTTP routes (a handler and the calls, nginx
|
|
32
|
+
locations, Ingress paths and OpenAPI documents that name its path), database
|
|
33
|
+
tables (migrations, ORM models and raw SQL) and protobuf messages and
|
|
34
|
+
services (a `.proto` and the code generated from it). Spring properties and
|
|
35
|
+
their `SPRING_*` variables and `${...}` placeholders, `django-environ`
|
|
36
|
+
reads in settings, nginx `envsubst` templates and the Kafka image
|
|
37
|
+
variables are read by the rules their documentation states; Redis, whose
|
|
38
|
+
images define none, stays plain name equality.
|
|
39
|
+
- A route is linked at the path the framework serves, not the one its decorator
|
|
40
|
+
spells: a Flask blueprint's `url_prefix`, a FastAPI router's `prefix` and
|
|
41
|
+
the `include_router` that mounts it (also from another file), a Spring class
|
|
42
|
+
mapping in front of its method mappings, an Express `app.use('/api', router)`,
|
|
43
|
+
a Go `PathPrefix(...).Subrouter()` or `Group(...)`. Calls spelled with a
|
|
44
|
+
base-URL constant or template (`${API}/orders`, `API + "/orders"`), test
|
|
45
|
+
clients (`MockMvc`, `httptest`, `TestRestTemplate`) and a literal id in a
|
|
46
|
+
path meet the handler, and an nginx `location` or an Ingress path matches by
|
|
47
|
+
prefix.
|
|
48
|
+
- A removed key in a YAML provider (a compose variable, a values or manifest
|
|
49
|
+
env item) still names its readers and the other providers.
|
|
50
|
+
- The MCP tool takes `paths`, the CLI's positional paths: the analysis covers
|
|
51
|
+
those children of a monorepo instead of the whole range. A call that passes
|
|
52
|
+
its deadline names the scoped CLI form (`diffctx <child1> <child2> --diff
|
|
53
|
+
<range> --mode impact`) instead of leaving the tool as the only way out.
|
|
54
|
+
|
|
55
|
+
### Changed
|
|
56
|
+
|
|
57
|
+
- A diff-mode flag without `--diff` or `--symbol` (`--mode`, `--budget`,
|
|
58
|
+
`--timeout`, `--with-raw-diff`, …) is a usage error naming the fix. It was
|
|
59
|
+
a warning, after which the run mapped the whole repository, so
|
|
60
|
+
`diffctx . --mode impact` printed the tree instead of the change's callers.
|
|
61
|
+
|
|
62
|
+
- Python 3.11 or newer is required; 3.10 is past end of life (see
|
|
63
|
+
MIGRATION.md).
|
|
64
|
+
- Provenance is `diffctx.provenance.v2`: it drops `input.diff_range`, which
|
|
65
|
+
repeated `range.spec` (two more commit ids in every artifact); `base` and
|
|
66
|
+
`head` stay.
|
|
67
|
+
|
|
68
|
+
- Untyped name matches (the config-to-code scan and the shared-identifier
|
|
69
|
+
fallback) are one category, `key_match`, which replaces `config_generic`
|
|
70
|
+
(still accepted wherever a category is typed). A name match between two
|
|
71
|
+
files the typed links already ruled on is dropped, and so is one between a
|
|
72
|
+
changed file and a script that only spells, as a local constant, the name of
|
|
73
|
+
an environment variable the change ties to its readers.
|
|
74
|
+
- One spelling decides whether two files name the same thing:
|
|
75
|
+
`DATABASE_URL`, `databaseUrl` and `database-url` are one key for the
|
|
76
|
+
config-to-code links and the shared-identifier fallback.
|
|
77
|
+
- A Dockerfile's `ENV` and `ARG` no longer link it to every `.env` file, and
|
|
78
|
+
two Kubernetes manifests no longer link because they run the same image;
|
|
79
|
+
both relations come from the typed key links.
|
|
80
|
+
- Every door delivers what the engine hands it. What an empty diff exits with
|
|
81
|
+
(4) and says, the early-stop disclosure, the token summary, the redaction
|
|
82
|
+
line and the share of the raw diff are decided once, so the Python CLI and
|
|
83
|
+
the native binary word them alike: a locate run that finds nothing now names
|
|
84
|
+
the hint the other modes do, and the native binary says when it redacted a
|
|
85
|
+
secret. The Python CLI's impact and locate output goes out through the same
|
|
86
|
+
writer as pack, so a closed pipe ends it with 141 there too. The native
|
|
87
|
+
binary takes `--with-raw-diff` (pack mode only), and bundles the same patch
|
|
88
|
+
the Python CLI does.
|
|
89
|
+
- The MCP tool's `max_tokens` is a ceiling the reply is fitted to, not a check
|
|
90
|
+
made after it: an answer larger than it is cut to it instead of refused, and
|
|
91
|
+
only a ceiling below the least an answer can say still sends the notice.
|
|
92
|
+
`budget_tokens` defaults to none, so each mode's own default applies as at
|
|
93
|
+
the command line: 2 000 for impact, the auto budget for locate and pack (the
|
|
94
|
+
tool said 8 000 for all three). The raw diff counts against `max_tokens`.
|
|
95
|
+
|
|
96
|
+
### Fixed
|
|
97
|
+
|
|
98
|
+
- The MCP tool's argument names are accepted as CLI flags: `--diff-ref`,
|
|
99
|
+
`--budget-tokens`, `--include-raw-diff`, `--include-overflow` and
|
|
100
|
+
`--clipboard` parse as `--diff`, `--budget`, `--with-raw-diff`, `--overflow`
|
|
101
|
+
and `--copy`. git's `--staged` and `--cached` read as `--diff staged`.
|
|
102
|
+
- `--symbol` outside a git repository, or in one with no commits, names
|
|
103
|
+
`--symbol` in its error rather than `--diff`.
|
|
104
|
+
- `--mode impact -o out.txt` (or `-f txt`) writes the impact text instead of
|
|
105
|
+
exiting 2; a structured extension such as `.yaml` is still refused.
|
|
106
|
+
|
|
107
|
+
- Two methods of one name in one file (`A::new` and `B::new`, `A.run` and
|
|
108
|
+
`B.run`) that call a changed function are two callers, not one row named
|
|
109
|
+
`new` spanning both classes. In the text answer an implementer of a changed
|
|
110
|
+
trait method reads "implemented by", not "called from".
|
|
111
|
+
- A table keeps the schema it is spelled behind: `stems.assets` and
|
|
112
|
+
`library.assets` are two tables, so a migration of one no longer pulls in the
|
|
113
|
+
other's model or queries. A name written without a schema is the one its own
|
|
114
|
+
service's migrations give it, and meets only that service.
|
|
115
|
+
- The hook read a session's own edits off file times against its transcript:
|
|
116
|
+
a file the inspecting call itself rewrote, one a peer's process rewrote
|
|
117
|
+
after the session wrote it, the old paths of a renamed directory, and a
|
|
118
|
+
peer's file written while a call waited to run all landed on the wrong
|
|
119
|
+
side. `PreToolUse` and `PostToolUse` of each Bash call now read what the
|
|
120
|
+
checkout holds before and after it, and the paths that differ are the
|
|
121
|
+
session's, kept for the rest of the session (#662, #668, #674, Forgejo #93,
|
|
122
|
+
#117). Calls the hook did not see keep the transcript's span.
|
|
123
|
+
- A push review covered the range a remote-tracking ref moved over, so a
|
|
124
|
+
push a peer made in the shared repository meanwhile, or a second remote
|
|
125
|
+
alias left behind, was reviewed in place of the line's own. It covers the
|
|
126
|
+
`old..new` git printed for the push (Forgejo #121).
|
|
127
|
+
- A commit or push review of a wide change (about 50 files of a large
|
|
128
|
+
repository) ran past the hook's budget, and the agent got a bare timeout
|
|
129
|
+
line or nothing. The engine's deadline was a fixed share that started after
|
|
130
|
+
the hook's own work and left its tail no time, and the ceiling dropped the
|
|
131
|
+
partial answer the engine was rendering. The engine now gets its share of
|
|
132
|
+
the time left, the hook waits a further 10 s for that partial answer, a
|
|
133
|
+
partial answer names the changed files with no caller listed and the
|
|
134
|
+
command that finishes the review, and a commit, push or pull request the
|
|
135
|
+
review could not cover says which files it changes (Forgejo #113).
|
|
136
|
+
- A background line that could only merge claimed a commit another session
|
|
137
|
+
landed in the checkout while it waited, and delivered it as a late
|
|
138
|
+
review. A line claims only the reflog actions its statements can write,
|
|
139
|
+
and not a commit another session's hook already took (Forgejo #97).
|
|
140
|
+
- A search over a glob path (`grep -n 'fn total' src/*.rs`) got no answer: the
|
|
141
|
+
hook looked for a repository at `src/*.rs`. A glob now searches the directory
|
|
142
|
+
it starts in, as a path search does.
|
|
143
|
+
- Impact counted a test file the repository holds but no link reaches (a
|
|
144
|
+
crate's unchanged `tests/*.rs`) as no test in view, so an untested caller
|
|
145
|
+
got no negative claim; any test file in the tree now makes the absence of a
|
|
146
|
+
link a finding. Changed data files (`.csv`, `.log`, `.txt` other than pip's
|
|
147
|
+
`requirements*`/`constraints*` and `CMakeLists.txt`) are no longer counted
|
|
148
|
+
as "not followed"; an extensionless changed file (`Procfile`, `CODEOWNERS`)
|
|
149
|
+
still is (Forgejo #123).
|
|
150
|
+
- A C-style loop counter (`for (let k = 1; ...)`) is no longer a definition,
|
|
151
|
+
so a change on the loop line lists no `k` (Forgejo #94).
|
|
152
|
+
- A file generated from another (`GENERATED from src/x.jsonnet`) is not listed
|
|
153
|
+
as a separate consumer when its source names the changed file too (Forgejo
|
|
154
|
+
#110).
|
|
155
|
+
- An unresolved receiver (`x.impact`, `w.write(...)`) in a sibling project
|
|
156
|
+
that has its own manifest and never imports the module is no possible
|
|
157
|
+
caller of a definition in another project root (Forgejo #86, Refs #649).
|
|
158
|
+
- "Named by path": a sentence in a config's string (a JSON dump, a
|
|
159
|
+
`description:`) is no consumer, and pages and templates rank behind scripts
|
|
160
|
+
and configs so the cap drops them first (Refs #673).
|
|
161
|
+
- The readers of a changed key past the cap were counted under "Named by
|
|
162
|
+
path", which then printed only `- and N more` while the key list showed no
|
|
163
|
+
count. Each list now counts its own rows, in the Markdown answer and in
|
|
164
|
+
`named.by_path` and `named.by_key` (Forgejo #218).
|
|
165
|
+
- A component loaded with `const Card = lazy(() => import('./Card'))` had no
|
|
166
|
+
callers: the dynamic import now binds the module's default export, so the
|
|
167
|
+
component it renders is a reference to it (Forgejo #106).
|
|
168
|
+
- A change deep inside a YAML block scalar (a dashboard's JSON in a ConfigMap)
|
|
169
|
+
showed the head of the scalar when the budget could not hold it, and
|
|
170
|
+
`--mode locate` pointed there. The changed lines now come first, with the
|
|
171
|
+
unchanged lines between them counted (Forgejo #101).
|
|
172
|
+
- A changed YAML, JSON or TOML value that another file spells was reported
|
|
173
|
+
"not followed" unless it held a camelCase or CONSTANT_CASE word. The value
|
|
174
|
+
itself (`up{job="demo"}`, an address, an image, a path) is now searched whole,
|
|
175
|
+
as the keys were, and the file that spells it is named with its line. A key
|
|
176
|
+
of the typed key table (an environment variable, an image, a route, a table)
|
|
177
|
+
names its readers through the table, which knows `{id}` and `<int:id>` are
|
|
178
|
+
one route (Forgejo #109). A value is read as its file quotes it: a quote
|
|
179
|
+
opens where a value starts (`["--queue jobs"]`, `FLAGS='--profile nightly'`),
|
|
180
|
+
and compact JSON splits at its commas and after a quoted key, so a word is
|
|
181
|
+
never searched with a quote or a neighbour attached (Forgejo #262). The
|
|
182
|
+
value search is bounded: the smallest changes are searched first, at most 16
|
|
183
|
+
terms from each config and 96 in all, and the configs left out stay "not
|
|
184
|
+
followed" with their count named.
|
|
185
|
+
|
|
186
|
+
## [1.20.0] - 2026-10-22
|
|
187
|
+
|
|
188
|
+
### Changed
|
|
189
|
+
|
|
190
|
+
- The native binary, the Python CLI and the MCP server render the pack
|
|
191
|
+
artifact and fit it to `--budget` with one engine function, measured on
|
|
192
|
+
the text each delivers: one range, budget and format gives the same
|
|
193
|
+
document from each door that serves that format (#507).
|
|
194
|
+
- YAML has one writer for both CLIs. A string a YAML 1.1 reader would take
|
|
195
|
+
for something else (`off`, `y`, `=`, a date) is quoted, so PyYAML reads a
|
|
196
|
+
symbol named `off` as a string; the native YAML changes style to match
|
|
197
|
+
(double quotes where needed, literal blocks). The Python CLI's YAML now
|
|
198
|
+
carries `commit_count`, `redactions`, an empty `fragments` list and the
|
|
199
|
+
schema's key order.
|
|
200
|
+
|
|
201
|
+
### Fixed
|
|
202
|
+
|
|
203
|
+
- "Named by path" took a bare file name for the root file of that name:
|
|
204
|
+
with a root and a nested `AGENTS.md`, a test reading `"AGENTS.md"` beside
|
|
205
|
+
the nested one was listed for an edit of the root's, and named as still
|
|
206
|
+
naming it when the root's was deleted. A root file's bare name now counts
|
|
207
|
+
only when no other file has it (#644).
|
|
208
|
+
- The MCP tool fitted an answer to a `budget_tokens` above `max_tokens`
|
|
209
|
+
and then refused it whole, or overflowed the client. The budget is now
|
|
210
|
+
lowered to `max_tokens`, and the reply says so in one line (#645).
|
|
211
|
+
- The impact header counted symbols whose callers could not be resolved
|
|
212
|
+
("callers unresolved for 2 symbol(s)") without naming them, so the one
|
|
213
|
+
such row read like the rest among many. It now names them, up to three
|
|
214
|
+
(#506).
|
|
215
|
+
- The plugin hook missed commits whose verb it did not list, and misread
|
|
216
|
+
whose movement it saw. It now records before any git line whose verb may
|
|
217
|
+
record, and reads what landed from git's reflog. That covers `git am`
|
|
218
|
+
(#607), an alias, and a git only `sh -c`, `bash -lc` or `$(…)` runs, in
|
|
219
|
+
the cwd's repository. Each repository the line records in is reviewed,
|
|
220
|
+
not only the first one that moved (#608). A push of one range to two
|
|
221
|
+
remotes is one review with no "not analysed" note (#608). A ref only
|
|
222
|
+
another session could have moved is not this line's: a commit line is
|
|
223
|
+
never answered with another checkout's push (#618). A `cd <repo> && git
|
|
224
|
+
commit` is never answered with what moved in the cwd's repository
|
|
225
|
+
meanwhile (#556). A line run in the background, whose `PostToolUse`
|
|
226
|
+
fires at launch, is reviewed at the session's next hook event, once
|
|
227
|
+
(#617). A git only the shell runs, that recorded nothing where the hook
|
|
228
|
+
looked, is said to be unread after it ran, not before. What landed is
|
|
229
|
+
every entry git's reflog gained while the line ran, not its last one, so
|
|
230
|
+
a reset, switch, stash or rebase after the commit on the same line no
|
|
231
|
+
longer hides it (#508); a push from a work tree the same line then
|
|
232
|
+
removes is read in the repository's main work tree (#642); and
|
|
233
|
+
`python3 -c` source that spells `git commit` is no git the shell runs
|
|
234
|
+
(#635).
|
|
235
|
+
- A commit whose review timed out or failed got no word from the hook,
|
|
236
|
+
which read as a clean review. It now says which range was not reviewed
|
|
237
|
+
and the command to run (#612, #613).
|
|
238
|
+
- Uncommitted work with untracked files was read as two trees. git grep
|
|
239
|
+
searched only tracked files, so a new untracked class whose untracked
|
|
240
|
+
test calls it read as "nothing calls them, no static test link". An
|
|
241
|
+
untracked script naming a deleted path was also no stale reference. The
|
|
242
|
+
working tree is now tracked plus unignored untracked files for every
|
|
243
|
+
reader (#625).
|
|
244
|
+
- Impact answered a confident "0 callers" for what it never looked at. A
|
|
245
|
+
function only an `.astro` page calls, a module a CronWorkflow runs by
|
|
246
|
+
name, a name a template or config spells: none were searched, and the
|
|
247
|
+
zero read as a verdict. A zero now needs a witness. A changed definition
|
|
248
|
+
no traced caller reaches, whose name a file outside code spells, keeps
|
|
249
|
+
its row with "callers may be missing: named in `<file>:<line>` (a file
|
|
250
|
+
whose references are not traced)". A changed module named by its name in
|
|
251
|
+
a config or in another runtime's script is listed under "Named by path".
|
|
252
|
+
The header then reads "0 resolved caller(s) …, callers may be missing for
|
|
253
|
+
N symbol(s)", not a bare zero. A document mentioning a name is no reader,
|
|
254
|
+
and a name spelled in more than 12 such files is too common to count
|
|
255
|
+
(#505, #613). A verdict also needs a model: a changed method in a
|
|
256
|
+
language no binding model reads (C#, Ruby, C, PHP, …) whose only caller
|
|
257
|
+
is in its own file read "nothing calls them", and the hook said the
|
|
258
|
+
commit reached nothing; its callers are now unresolved, said so and
|
|
259
|
+
named in the header. And a hedge needs reach: a file over the size cap
|
|
260
|
+
that spells the name but never names its module (an unexported Go
|
|
261
|
+
function, a private Java method, a module function of another package)
|
|
262
|
+
is no "callers may be missing" (#591).
|
|
263
|
+
- A search for a name got an answer only when the pending change edited
|
|
264
|
+
that name, so on a clean tree, where most lookups happen, the hook said
|
|
265
|
+
nothing: 132 of 3,757 searches were answered in a week. A Bash or Grep
|
|
266
|
+
search for a name diffctx can define is now answered as `--symbol`
|
|
267
|
+
answers it (definition, callers, the tests that reach them), in at most
|
|
268
|
+
200 tokens, once per name in a session, and only when it resolved a
|
|
269
|
+
caller: a caller in a file no model reads would otherwise read as none
|
|
270
|
+
(#337, #483, #628). A search the hook cannot place (`grep x $OUT/notes`)
|
|
271
|
+
and a name with more than three definitions get no answer: the first
|
|
272
|
+
was read as a search of the cwd's repository, the second printed the
|
|
273
|
+
first two of 44 `main`s. The answer is for what the search seeks and
|
|
274
|
+
where it looks: each name an alternation or `-e` searches for, up to
|
|
275
|
+
three (#634); never a word inside a line of code (`^from models
|
|
276
|
+
import`) or a file name (`AGENTS.md` is no search for `md`) (#643,
|
|
277
|
+
#646); and only the definitions under the searched paths or called from
|
|
278
|
+
them, so a grep of one file is not answered with a same-named symbol of
|
|
279
|
+
another subproject (fj#95). The paths are the files its result names
|
|
280
|
+
when it names any; an inverted search (`-v`, `-L`), one that found
|
|
281
|
+
nothing, and a `git grep` of a revision other than `HEAD` get no
|
|
282
|
+
answer: a subagent's searches of `origin/main` got 17 answers from a
|
|
283
|
+
checkout 36 commits behind. Replayed on the 38 field searches the
|
|
284
|
+
first version answered whose checkout still exists: the 12 answers
|
|
285
|
+
about another name or another place are gone, the 22 exact ones are
|
|
286
|
+
unchanged, and four also answer the second name searched.
|
|
287
|
+
- Subagents never heard that diffctx was installed: the standing context
|
|
288
|
+
reached the root session only. The plugin now gives each subagent the
|
|
289
|
+
same line at `SubagentStart` (#543).
|
|
290
|
+
- Under a tight budget, "Still naming a deleted or renamed path" was cut
|
|
291
|
+
to a bare count while routine callers printed in full, though those
|
|
292
|
+
entries were the answer's only definite defects. They now outlive every
|
|
293
|
+
caller row, and their first entries are kept (#600).
|
|
294
|
+
- A capture, log or document over the size cap beside a code change made
|
|
295
|
+
the whole answer "partial; callers may be missing". A file outside code
|
|
296
|
+
holds no caller, so it is now named as not followed and the answer stays
|
|
297
|
+
whole. Without a language it is listed as "other", not "code" (#626).
|
|
298
|
+
- Impact named a changed config, template, stylesheet, `requirements.txt`
|
|
299
|
+
or `CMakeLists.txt` as reaching nothing: a file outside code was dropped
|
|
300
|
+
from the answer when nothing named it by path, though nothing traced what
|
|
301
|
+
reads its keys and values. It is now listed as `content_untraced` ("not
|
|
302
|
+
followed"), and such an answer is not empty (#559). A prose document or a
|
|
303
|
+
binary is still found by its path alone, and a comment-only edit reaches
|
|
304
|
+
no reader.
|
|
305
|
+
- A method a supertype, an interface or the runtime calls — a Java
|
|
306
|
+
`@Override`, a Kotlin `override`, a class implementing an interface, a
|
|
307
|
+
Python `__eq__`, a Go method — read as "nothing calls them" when no direct
|
|
308
|
+
caller was found, and a change to it as reaching nothing. It now says
|
|
309
|
+
which route is not traced (#566). A private or static method keeps its
|
|
310
|
+
zero.
|
|
311
|
+
- A changed document was never "named by path": a config or code line naming
|
|
312
|
+
`docs/x.md` is now listed. A document naming it, an `@AGENTS.md` import
|
|
313
|
+
included, is not: on every edit the same line would repeat (#563, #564).
|
|
314
|
+
- A name several files of a language without a binding model define (Java's
|
|
315
|
+
`findOne`, `toReport`) lost every caller, the one in its own file too. A
|
|
316
|
+
call inside the definition's own file is now that file's own, with the
|
|
317
|
+
tests that reach it; callers in other files stay "not resolved", worded as
|
|
318
|
+
the ambiguity it is (#538).
|
|
319
|
+
- The hook never deleted an expired marker: one machine held 26,000 of them
|
|
320
|
+
after 13 days. A hook run sweeps them once a day (#569).
|
|
321
|
+
- The hook read text the shell never runs as commands: an issue body quoting
|
|
322
|
+
`git commit` in a quoted here-document drew "did not analyse this
|
|
323
|
+
command" (#534), and `--jq '.commit.author.date'` made a read-only line
|
|
324
|
+
claim another session's commit (#575). A line is now read by a lexer that
|
|
325
|
+
sets quoted data aside, and whether it records is read off its git
|
|
326
|
+
statements.
|
|
327
|
+
- A review of this session's files left out every file the session rewrote
|
|
328
|
+
through Bash (`sed -i`, a heredoc, `git rm`) and paired its edits with the
|
|
329
|
+
committed text of its own neighbours. A changed file that last changed
|
|
330
|
+
while one of the session's Bash calls ran is now its own; the files still
|
|
331
|
+
read as committed are named, with the definitions whose callers they may
|
|
332
|
+
hide (#453).
|
|
333
|
+
- The answer's header called a session's edits, a `git diff --cached` and a
|
|
334
|
+
commit's index alike "the snapshot tree"; it now says which (#549).
|
|
335
|
+
- The run log is `hook-runs.log`: a pin at or below 1.18.4 cut `hook.log` at
|
|
336
|
+
256 KiB and overwrote its previous rotation, erasing the newer binary's
|
|
337
|
+
history (#555).
|
|
338
|
+
- Shell scripts read off the bash syntax tree: a library sourced as
|
|
339
|
+
`"$(dirname "$0")/lib.sh"`, through `BASH_SOURCE` or a variable, or
|
|
340
|
+
under a hyphenated name now binds its callers (#533); an extensionless
|
|
341
|
+
script is analysed, and a call in a quoted command substitution or after
|
|
342
|
+
`time -p` is a caller (#541); a broken parse hedges only the names in the
|
|
343
|
+
span it could not read (#521). A source no file resolves, or two files
|
|
344
|
+
resolve, is said to be unresolved or ambiguous, never a zero.
|
|
345
|
+
- SQL `CREATE [OR REPLACE] FUNCTION|PROCEDURE|VIEW [schema.]name` is a
|
|
346
|
+
definition and `[schema.]name(` a caller; comments and strings are no
|
|
347
|
+
code, a dollar-quoted body is, and an unqualified call is left to the
|
|
348
|
+
search path (#459, routines and views).
|
|
349
|
+
- Python imports in tests resolve through pytest's `pythonpath` (pytest.ini,
|
|
350
|
+
pyproject, tox.ini, setup.cfg) and a `conftest.py` that extends
|
|
351
|
+
`sys.path` (#553, #573), and through a uv project's path and workspace
|
|
352
|
+
sources; a package's `__init__` re-exports are read (#557). A test
|
|
353
|
+
that imported its module that way linked to a same-named module instead.
|
|
354
|
+
- Python: a method only a dispatch route reaches counts as tested when its
|
|
355
|
+
class is (#578); a nested `def` is local, so no unread file is searched
|
|
356
|
+
for its callers (#546, Python half); a removed definition is read off the
|
|
357
|
+
base's syntax, so a parameter or docstring word of the name is no caller
|
|
358
|
+
(#536); a field read through an instance a module builds at top level
|
|
359
|
+
(`settings = AppSettings()`) is a use of the field (#400).
|
|
360
|
+
- Swift and Java calls resolve through the binding model Kotlin uses:
|
|
361
|
+
typed parameters and fields, `x?.m()`, `self.m()`, implicit self,
|
|
362
|
+
`guard let`/`if let`, extension members across files (#526), and a Java
|
|
363
|
+
receiver typed by its field among same-named methods (#335, Java half).
|
|
364
|
+
A receiver nothing types is a "possibly called" caller.
|
|
365
|
+
- A declaration in a test file is no public or removed API contract; a
|
|
366
|
+
Gradle `testFixtures` source set and a `testing` package of main sources
|
|
367
|
+
still are (#517).
|
|
368
|
+
- A file parsed with errors hedges only the names spelled on the lines it
|
|
369
|
+
broke on, not every name it spells (#537, our half; the trigger is the
|
|
370
|
+
pinned Swift grammar).
|
|
371
|
+
- Removing a binding a module exports — `export const f = () => …`, a
|
|
372
|
+
Python module constant, a Rust `const`/`static`, a Go package-level
|
|
373
|
+
`const`/`var` — answered 0 callers and no removed API; the readers that
|
|
374
|
+
break are now named (#491). Go reads removals through its package and
|
|
375
|
+
import model, so another package's own constant of the name is no reader
|
|
376
|
+
and a declaration moved within its package is not removed.
|
|
377
|
+
- Rust callers resolve through a binding model: `use` imports and aliases,
|
|
378
|
+
`crate::`/`super::`/`self::` paths, methods through typed fields,
|
|
379
|
+
returned and aliased values, a function passed by name
|
|
380
|
+
(`.and_then(f)`, #594), and a constant read by its own file's functions
|
|
381
|
+
(#503, Rust half). A same-named local or imported function shadows one
|
|
382
|
+
elsewhere, and an `impl X` header is no caller of `X` (#548). A move
|
|
383
|
+
every importer follows, or a method moved to another `impl` of its type,
|
|
384
|
+
is no removal (#540). A private item is hedged only by files that can
|
|
385
|
+
name it (#599).
|
|
386
|
+
- A Kotlin removal from a renamed file names the base path its lines belong
|
|
387
|
+
to (#540).
|
|
388
|
+
- JS/TS: a bare `&` in JSX text no longer marks a valid file "parsed with
|
|
389
|
+
errors" (#531); a default import stands only for its module's default
|
|
390
|
+
export, so `--symbol` lists no file that never names the symbol (#558);
|
|
391
|
+
`self.x =`, `globalThis.x =`, `window.x =`, `module.exports.x =` and
|
|
392
|
+
`exports.x =` define `x` (#426); module bindings in modules and in a
|
|
393
|
+
page's scripts, interface and class members, and functions nested in a
|
|
394
|
+
long factory closure are definitions (#420, #488, #554, #577); an HTML
|
|
395
|
+
`<script type="module">` imports like a module and an import of a symlink
|
|
396
|
+
reaches the file it names (#372, in part). A function nested in a long
|
|
397
|
+
body is no longer dropped as a duplicate of the chunk holding the same
|
|
398
|
+
lines, in every language.
|
|
399
|
+
- YAML output escapes what falls outside YAML's printable set: a file
|
|
400
|
+
holding U+FFFE or U+FFFF made both writers emit a document every YAML
|
|
401
|
+
reader rejects.
|
|
402
|
+
- A run of a diff is layout only when the syntax tree of both whole files
|
|
403
|
+
is the same once a formatter's rewrites are taken out; a dedent out of a
|
|
404
|
+
block, a tuple's comma, ASI's `return` split, a rune turned string, a
|
|
405
|
+
regex's space, string content and an import alias swap read as
|
|
406
|
+
formatting, and impact skipped the definition (#442, a regression since
|
|
407
|
+
1.18.4).
|
|
408
|
+
- A coverage block the fit or the raw-diff path added after the run names
|
|
409
|
+
its resource counts as `unknown` instead of reporting zeros (#550).
|
|
410
|
+
- `--symbol` reads every file naming the symbol under the raised cap, so a
|
|
411
|
+
module over the size cap no longer hides a caller or subclass; a caller
|
|
412
|
+
whose test file is over the cap names that test (#542).
|
|
413
|
+
- A changed Astro content-collection entry lists the `getCollection` /
|
|
414
|
+
`getEntry` calls reading its collection (#432).
|
|
415
|
+
- A call inside a sub-fragment of a long function is the function's call,
|
|
416
|
+
with the function's test link (#579); a Kotlin expression-bodied helper
|
|
417
|
+
(`fun client() = ApiClient(…)`) types the calls made on it (#562).
|
|
418
|
+
- tree-sitter-swift 0.7.4 parses `as? T ?? default` in a trailing closure,
|
|
419
|
+
which 0.7.3 read as a broken file (#537).
|
|
420
|
+
- A build no release pipeline made says so: `diffctx --version`,
|
|
421
|
+
`diffctx-mcp --version`, the MCP server's reported version and every
|
|
422
|
+
hook log line read `X.Y.Z+source`. A `uv tool install` of a checkout
|
|
423
|
+
satisfies the plugin's `==X.Y.Z` launch, and its runs read as the release
|
|
424
|
+
(#570).
|
|
425
|
+
- The MCP server no longer warns that `mcp` is the subcommand when a client
|
|
426
|
+
launches it in a repository with an `mcp/` directory; the hint is for a
|
|
427
|
+
terminal (#571).
|
|
428
|
+
- Impact counted what it had not looked at as a clean zero in more places:
|
|
429
|
+
untyped reads (#399), builtin and literal receivers (#389), code embedded
|
|
430
|
+
in shell scripts (#427), names too common to trace (#430), and callers the
|
|
431
|
+
graph's edge cap dropped (#547, #552) are now counted or named. The header
|
|
432
|
+
counts untested callers only beside a caller (#493).
|
|
433
|
+
- Callers by language: a Python assignment or attribute a method sets is a
|
|
434
|
+
definition, a returned receiver is a possible caller and a test importing
|
|
435
|
+
through `sys.path` reaches the module (#398, #477, #525); JS/TS uses are
|
|
436
|
+
read off the syntax, with glob imports and Vite `resolve.alias` (#357,
|
|
437
|
+
#504); a Rust inline `#[test]` is a test link (#528), one trait's
|
|
438
|
+
dyn-dispatched methods fold into one line (#545), and a module split's
|
|
439
|
+
re-exports are not removals.
|
|
440
|
+
- `named_by` lists the lines that run or ship a changed file by path (#393,
|
|
441
|
+
#523).
|
|
442
|
+
- The hook answers a recording line from git's record (#527), reviews a line
|
|
443
|
+
whose last command fails (#532), says once when a newer plugin is
|
|
444
|
+
installed beside an older pin, and every `hook.log` line names its version
|
|
445
|
+
(#524).
|
|
446
|
+
- The Windows test worker crash was pytest-timeout's thread method exiting
|
|
447
|
+
the xdist worker; the dependency is gone (#529).
|
|
448
|
+
- A budget-bound `-f json`/`-f yaml` artifact from the Python CLI was cut by
|
|
449
|
+
position: production before docs, and the rewrite of a multi-fragment
|
|
450
|
+
file before its one-line bumps. A changed fragment is now shortened before
|
|
451
|
+
it is dropped, so a larger budget never shows less of the change (#438).
|
|
452
|
+
- `--with-raw-diff` no longer spends `--budget`: the patch is not charged,
|
|
453
|
+
as documented, and the selection under a binding budget is the same with
|
|
454
|
+
and without it.
|
|
455
|
+
- The plugin's hook launches the pinned package with no environment
|
|
456
|
+
assignment, since `diffctx hook` reads the `CLAUDE_PLUGIN_ROOT` Claude
|
|
457
|
+
Code already exports, and its version variable is no longer named `pin`.
|
|
458
|
+
The plugin directory has flagged every main-branch plugin since the change
|
|
459
|
+
that introduced both as reading a credential; whether this clears the
|
|
460
|
+
finding is read off the next directory scan (#565).
|
|
461
|
+
- "Review my last commit" with the plugin loaded never reached impact: the
|
|
462
|
+
review skill asked only for the code (`pack`), and the session context
|
|
463
|
+
named only commit and push. The skill now asks for impact first, and the
|
|
464
|
+
session context names the review route. On the plugin's review eval, runs
|
|
465
|
+
with the plugin reach impact 3 of 3 times, up from 0 (#551).
|
|
466
|
+
- The weekly channel check names every release tag that `main` does not
|
|
467
|
+
reach and every tag whose release is missing or a draft: a consumer pins
|
|
468
|
+
the commit a tag first named, and a moved tag strands it (#500).
|
|
469
|
+
- A removed definition's markdown row read like a live one: its range is in
|
|
470
|
+
the base file, so a reader found the next definition there and its caller
|
|
471
|
+
read as calling something still present. The CLI answer and the hook's
|
|
472
|
+
block now print `path::name (removed; was 5-6)` (#598).
|
|
473
|
+
|
|
10
474
|
## [1.19.1] - 2026-10-14
|
|
11
475
|
|
|
12
476
|
### Added
|
|
@@ -295,8 +759,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
295
759
|
file knows `fun` and `typealias`.
|
|
296
760
|
- A Kotlin type the text declares at the start of a line but the parse did
|
|
297
761
|
not read — a grammar's silent misreading, with no error node — marks the
|
|
298
|
-
file analysed only in part (0 of
|
|
299
|
-
grammar; local classes count as read).
|
|
762
|
+
file analysed only in part (0 of 1,036 files in a Kotlin codebase with the
|
|
763
|
+
shipped grammar; local classes count as read).
|
|
300
764
|
- The parse outcome is recorded when the fragmenter parses a file, not
|
|
301
765
|
inferred from the fragments that came out: a file that parsed with errors
|
|
302
766
|
is reported as analysed only in part even when a definition survived, and
|
|
@@ -2378,7 +2842,8 @@ Earlier releases shipped as `treemapper`; see
|
|
|
2378
2842
|
<https://github.com/nikolay-e/diffctx/releases> for the corresponding GitHub
|
|
2379
2843
|
release notes (`1.0.0` through `1.6.1`).
|
|
2380
2844
|
|
|
2381
|
-
[Unreleased]: https://github.com/nikolay-e/diffctx/compare/v1.
|
|
2845
|
+
[Unreleased]: https://github.com/nikolay-e/diffctx/compare/v1.20.0...HEAD
|
|
2846
|
+
[1.20.0]: https://github.com/nikolay-e/diffctx/compare/v1.19.1...v1.20.0
|
|
2382
2847
|
[1.19.1]: https://github.com/nikolay-e/diffctx/compare/v1.19.0...v1.19.1
|
|
2383
2848
|
[1.19.0]: https://github.com/nikolay-e/diffctx/compare/v1.18.4...v1.19.0
|
|
2384
2849
|
[1.18.4]: https://github.com/nikolay-e/diffctx/compare/v1.18.3...v1.18.4
|