diffctx 1.20.0__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.20.0 → diffctx-2.0.0rc0}/CHANGELOG.md +176 -0
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/Cargo.lock +337 -140
- diffctx-2.0.0rc0/Cargo.toml +159 -0
- diffctx-2.0.0rc0/LICENSE.md +95 -0
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/PKG-INFO +45 -13
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/README.md +40 -7
- diffctx-2.0.0rc0/crates/diffctx-answer/Cargo.toml +36 -0
- diffctx-2.0.0rc0/crates/diffctx-answer/LICENSE.md +95 -0
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-answer}/README.md +40 -7
- 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.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-answer}/src/effective_config.rs +30 -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.20.0/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.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-answer}/src/render.rs +161 -165
- diffctx-2.0.0rc0/crates/diffctx-answer/src/run_provenance/state.rs +340 -0
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-answer}/src/run_provenance.rs +37 -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.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/container.rs +23 -12
- {diffctx-1.20.0/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.20.0/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.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/paths.rs +60 -85
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/profile.rs +37 -0
- {diffctx-1.20.0/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.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/tokenizer.rs +1 -9
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/types.rs +160 -0
- 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.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/category_weights.rs +7 -7
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/edge_weights.rs +0 -4
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/env_overrides.rs +6 -1
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/graph_filtering.rs +0 -2
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/limits.rs +16 -17
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/mod.rs +0 -1
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/selection.rs +2 -22
- {diffctx-1.20.0/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.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/signatures.rs +1 -1
- {diffctx-1.20.0/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-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-facts}/src/change_class.rs +88 -206
- 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-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-facts}/src/facts/java.rs +135 -27
- diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/kotlin/bindings.rs +270 -0
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-facts}/src/facts/kotlin.rs +294 -208
- 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-1.20.0/crates/diffctx-native/src/facts → diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang}/swift.rs +76 -45
- 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.20.0/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.20.0/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.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-facts}/src/parsers/markdown.rs +3 -3
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-facts}/src/parsers/mod.rs +46 -30
- 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.20.0/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.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-facts}/src/parsers/tree_sitter_strategy.rs +90 -648
- 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.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/core.rs +1 -1
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/discovery.rs +32 -26
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/base.rs +159 -77
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/config_edges/build_system.rs +4 -7
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/config_edges/cicd.rs +14 -49
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/config_edges/docker.rs +161 -59
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/config_edges/generic.rs +100 -170
- {diffctx-1.20.0/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.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/config_edges/kubernetes.rs +8 -76
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/config_edges/mod.rs +3 -1
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/document/mod.rs +6 -6
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/history/cochange.rs +9 -8
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/history/mod.rs +2 -2
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/mod.rs +274 -85
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/ansible.rs +6 -6
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/bazel.rs +5 -5
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/c_family.rs +19 -12
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/cargo_edges.rs +7 -7
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/clojure.rs +14 -42
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/css.rs +6 -21
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/dart.rs +6 -21
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/dbt.rs +17 -39
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/dotnet.rs +5 -5
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/elixir.rs +8 -31
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/erlang.rs +19 -51
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/go.rs +84 -22
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/graphql.rs +12 -38
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/haskell.rs +8 -21
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/javascript.rs +14 -13
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/julia.rs +10 -42
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/jvm.rs +26 -18
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/latex.rs +6 -21
- {diffctx-1.20.0/crates/diffctx-native/src → diffctx-2.0.0rc0/crates/diffctx-graph/src/edges/semantic/legacy}/kotlin_bindings.rs +125 -271
- 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.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/lua.rs +10 -41
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/mod.rs +39 -38
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/nim.rs +6 -11
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/nix.rs +3 -3
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/ocaml.rs +13 -44
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/openapi.rs +16 -37
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/perl.rs +15 -48
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/php.rs +20 -44
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/prisma.rs +14 -38
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/protobuf.rs +8 -28
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/python.rs +24 -12
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/r_lang.rs +8 -28
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/ruby.rs +12 -24
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/rust_lang.rs +49 -60
- {diffctx-1.20.0/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.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/terraform.rs +3 -3
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/zig.rs +12 -43
- {diffctx-1.20.0/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.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/structural/containment.rs +3 -3
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/structural/mod.rs +4 -4
- {diffctx-1.20.0/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.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/filtering.rs +14 -16
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/fragmentation.rs +118 -139
- {diffctx-1.20.0/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.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/ppr.rs +90 -125
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/scoring.rs +35 -35
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/token_corpus.rs +29 -20
- 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.20.0 → 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.20.0 → diffctx-2.0.0rc0}/crates/diffctx-native/src/graph_export.rs +18 -18
- 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.20.0 → diffctx-2.0.0rc0}/crates/diffctx-native/src/main.rs +93 -325
- diffctx-2.0.0rc0/crates/diffctx-native/src/pipeline/keyword_binding.rs +190 -0
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/crates/diffctx-native/src/pipeline.rs +1101 -1019
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/crates/diffctx-native/src/project_graph.rs +22 -52
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/crates/diffctx-native/src/pybridge.rs +185 -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.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-select}/src/postpass.rs +43 -70
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-select}/src/select.rs +18 -26
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-select}/src/utility/boltzmann.rs +5 -5
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-select}/src/utility/importance.rs +3 -3
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-select}/src/utility/mod.rs +3 -3
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-select}/src/utility/needs.rs +6 -9
- {diffctx-1.20.0/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.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-snapshot}/src/resource.rs +248 -35
- 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.20.0 → diffctx-2.0.0rc0}/pyproject.toml +47 -45
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/rust-toolchain.toml +1 -1
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/_app.py +68 -266
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/_diffctx.pyi +23 -1
- diffctx-2.0.0rc0/src/diffctx/_native/__init__.py +24 -0
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/_native/graph_analytics.py +1 -1
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/_native/pipeline.py +69 -55
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/cli.py +88 -49
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/clipboard.py +0 -4
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/mcp/fetch.py +0 -4
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/mcp/legacy.py +8 -9
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/mcp/security.py +21 -7
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/mcp/server.py +158 -136
- diffctx-2.0.0rc0/src/diffctx/tokens.py +25 -0
- diffctx-2.0.0rc0/src/diffctx/version.py +1 -0
- diffctx-1.20.0/Cargo.toml +0 -25
- diffctx-1.20.0/LICENSE +0 -201
- diffctx-1.20.0/crates/diffctx-native/Cargo.toml +0 -193
- diffctx-1.20.0/crates/diffctx-native/src/artifact.rs +0 -987
- diffctx-1.20.0/crates/diffctx-native/src/bindings/js.rs +0 -1571
- diffctx-1.20.0/crates/diffctx-native/src/bindings/mod.rs +0 -1100
- diffctx-1.20.0/crates/diffctx-native/src/bindings/python.rs +0 -510
- diffctx-1.20.0/crates/diffctx-native/src/candidate_files.rs +0 -256
- diffctx-1.20.0/crates/diffctx-native/src/config/git.rs +0 -20
- diffctx-1.20.0/crates/diffctx-native/src/edges/semantic/sql.rs +0 -117
- diffctx-1.20.0/crates/diffctx-native/src/edges/semantic/swift.rs +0 -183
- diffctx-1.20.0/crates/diffctx-native/src/edges/semantic/tags.rs +0 -89
- diffctx-1.20.0/crates/diffctx-native/src/edges/similarity/mod.rs +0 -7
- diffctx-1.20.0/crates/diffctx-native/src/edges/structural/testing.rs +0 -346
- diffctx-1.20.0/crates/diffctx-native/src/facts/mod.rs +0 -73
- diffctx-1.20.0/crates/diffctx-native/src/facts/python.rs +0 -383
- diffctx-1.20.0/crates/diffctx-native/src/git.rs +0 -3335
- diffctx-1.20.0/crates/diffctx-native/src/go_bindings.rs +0 -657
- diffctx-1.20.0/crates/diffctx-native/src/hook.rs +0 -3937
- diffctx-1.20.0/crates/diffctx-native/src/impact.rs +0 -5499
- diffctx-1.20.0/crates/diffctx-native/src/in_memory_harness.rs +0 -513
- diffctx-1.20.0/crates/diffctx-native/src/lang/bound.rs +0 -200
- diffctx-1.20.0/crates/diffctx-native/src/lang/go.rs +0 -80
- diffctx-1.20.0/crates/diffctx-native/src/lang/kotlin.rs +0 -173
- diffctx-1.20.0/crates/diffctx-native/src/lang/mod.rs +0 -336
- diffctx-1.20.0/crates/diffctx-native/src/lang/python.rs +0 -337
- diffctx-1.20.0/crates/diffctx-native/src/lang/rust.rs +0 -2473
- diffctx-1.20.0/crates/diffctx-native/src/lang/shell.rs +0 -513
- diffctx-1.20.0/crates/diffctx-native/src/lang/sql.rs +0 -558
- diffctx-1.20.0/crates/diffctx-native/src/lib.rs +0 -80
- diffctx-1.20.0/crates/diffctx-native/src/provenance.rs +0 -190
- diffctx-1.20.0/crates/diffctx-native/src/source.rs +0 -224
- diffctx-1.20.0/crates/diffctx-native/src/testfiles.rs +0 -170
- diffctx-1.20.0/src/diffctx/_native/__init__.py +0 -7
- diffctx-1.20.0/src/diffctx/tokens.py +0 -46
- diffctx-1.20.0/src/diffctx/version.py +0 -1
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/interval.rs +0 -0
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/peak_rss.rs +0 -0
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/sanitize.rs +0 -0
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/analytics.rs +0 -0
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/bm25.rs +0 -0
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/budget.rs +0 -0
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/extensions.rs +0 -0
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/filtering.rs +0 -0
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/fragmentation.rs +0 -0
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/importance.rs +0 -0
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/mode.rs +0 -0
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/needs.rs +0 -0
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/parsers.rs +0 -0
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/render.rs +0 -0
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/scoring.rs +0 -0
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/tokenization.rs +0 -0
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/mode.rs +0 -0
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/stopwords/code.txt +0 -0
- {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/stopwords/docs.txt +0 -0
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/__init__.py +0 -0
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/__main__.py +0 -0
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/_native/graph_export.py +0 -0
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/_native/project_graph.py +0 -0
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/ignore.py +0 -0
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/logger.py +0 -0
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/mcp/__init__.py +0 -0
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/mcp/__main__.py +0 -0
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/mcp/launch.py +0 -0
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/py.typed +0 -0
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/tree.py +0 -0
- {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/writer.py +0 -0
|
@@ -7,6 +7,182 @@ 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
|
+
|
|
10
186
|
## [1.20.0] - 2026-10-22
|
|
11
187
|
|
|
12
188
|
### Changed
|