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.
Files changed (488) hide show
  1. {diffctx-1.20.0 → diffctx-2.0.0rc0}/CHANGELOG.md +176 -0
  2. {diffctx-1.20.0 → diffctx-2.0.0rc0}/Cargo.lock +337 -140
  3. diffctx-2.0.0rc0/Cargo.toml +159 -0
  4. diffctx-2.0.0rc0/LICENSE.md +95 -0
  5. {diffctx-1.20.0 → diffctx-2.0.0rc0}/PKG-INFO +45 -13
  6. {diffctx-1.20.0 → diffctx-2.0.0rc0}/README.md +40 -7
  7. diffctx-2.0.0rc0/crates/diffctx-answer/Cargo.toml +36 -0
  8. diffctx-2.0.0rc0/crates/diffctx-answer/LICENSE.md +95 -0
  9. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-answer}/README.md +40 -7
  10. diffctx-2.0.0rc0/crates/diffctx-answer/clippy.toml +20 -0
  11. diffctx-2.0.0rc0/crates/diffctx-answer/deny.toml +7 -0
  12. diffctx-2.0.0rc0/crates/diffctx-answer/src/answer/envelope.rs +143 -0
  13. diffctx-2.0.0rc0/crates/diffctx-answer/src/answer/render.rs +753 -0
  14. diffctx-2.0.0rc0/crates/diffctx-answer/src/answer/v2/definition.rs +139 -0
  15. diffctx-2.0.0rc0/crates/diffctx-answer/src/answer/v2/unlisted.rs +65 -0
  16. diffctx-2.0.0rc0/crates/diffctx-answer/src/answer/v2.rs +1329 -0
  17. diffctx-2.0.0rc0/crates/diffctx-answer/src/answer.rs +378 -0
  18. diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/cell/account.rs +453 -0
  19. diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/cell/changes.rs +1127 -0
  20. diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/cell/construction.rs +376 -0
  21. diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/cell/reach.rs +120 -0
  22. diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/cell/search.rs +358 -0
  23. diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/cell.rs +878 -0
  24. diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/cells.rs +370 -0
  25. diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/changed.rs +201 -0
  26. diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/coverage.rs +341 -0
  27. diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/gap.rs +255 -0
  28. diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/losses.rs +126 -0
  29. diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/tests.rs +68 -0
  30. diffctx-2.0.0rc0/crates/diffctx-answer/src/decide/verdict.rs +227 -0
  31. diffctx-2.0.0rc0/crates/diffctx-answer/src/decide.rs +39 -0
  32. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-answer}/src/effective_config.rs +30 -16
  33. diffctx-2.0.0rc0/crates/diffctx-answer/src/fold.rs +508 -0
  34. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/apart.rs +129 -0
  35. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/claim.rs +331 -0
  36. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/class_use.rs +227 -0
  37. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/context.rs +405 -0
  38. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/contract.rs +57 -0
  39. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/definition.rs +132 -0
  40. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/gaps.rs +140 -0
  41. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/range.rs +313 -0
  42. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/removals.rs +146 -0
  43. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/role.rs +195 -0
  44. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/rows.rs +123 -0
  45. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/sources.rs +392 -0
  46. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build/targets.rs +317 -0
  47. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/build.rs +132 -0
  48. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/callers.rs +346 -0
  49. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/carried.rs +201 -0
  50. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/cells.rs +321 -0
  51. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/changes.rs +551 -0
  52. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/coverage.rs +137 -0
  53. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/deliver.rs +576 -0
  54. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/dispatch.rs +259 -0
  55. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/entry.rs +546 -0
  56. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/key_search.rs +516 -0
  57. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/keys.rs +1323 -0
  58. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/mentions/spelling.rs +459 -0
  59. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/mentions/twin.rs +106 -0
  60. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/mentions.rs +1053 -0
  61. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/output.rs +654 -0
  62. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/php.rs +119 -0
  63. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/removed.rs +525 -0
  64. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/runs/spelling.rs +91 -0
  65. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/runs.rs +1438 -0
  66. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/rust.rs +106 -0
  67. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/symbol.rs +357 -0
  68. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/tests_reach.rs +959 -0
  69. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/text.rs +789 -0
  70. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact/unanalysed.rs +929 -0
  71. diffctx-2.0.0rc0/crates/diffctx-answer/src/impact.rs +85 -0
  72. diffctx-2.0.0rc0/crates/diffctx-answer/src/lib.rs +14 -0
  73. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-answer}/src/locate.rs +308 -217
  74. diffctx-2.0.0rc0/crates/diffctx-answer/src/provenance.rs +84 -0
  75. diffctx-2.0.0rc0/crates/diffctx-answer/src/render/shed.rs +170 -0
  76. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-answer}/src/render.rs +161 -165
  77. diffctx-2.0.0rc0/crates/diffctx-answer/src/run_provenance/state.rs +340 -0
  78. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-answer}/src/run_provenance.rs +37 -23
  79. diffctx-2.0.0rc0/crates/diffctx-base/Cargo.toml +32 -0
  80. diffctx-2.0.0rc0/crates/diffctx-base/LICENSE.md +95 -0
  81. diffctx-2.0.0rc0/crates/diffctx-base/README.md +145 -0
  82. diffctx-2.0.0rc0/crates/diffctx-base/clippy.toml +12 -0
  83. diffctx-2.0.0rc0/crates/diffctx-base/deny.toml +9 -0
  84. diffctx-2.0.0rc0/crates/diffctx-base/src/canon.rs +255 -0
  85. diffctx-2.0.0rc0/crates/diffctx-base/src/changed_lines.rs +301 -0
  86. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/container.rs +23 -12
  87. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/excerpt.rs +93 -1
  88. diffctx-2.0.0rc0/crates/diffctx-base/src/fit.rs +74 -0
  89. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/languages.rs +43 -5
  90. diffctx-2.0.0rc0/crates/diffctx-base/src/lib.rs +21 -0
  91. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/paths.rs +60 -85
  92. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/profile.rs +37 -0
  93. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/test_rng.rs +2 -2
  94. diffctx-2.0.0rc0/crates/diffctx-base/src/testfiles.rs +1215 -0
  95. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/tokenizer.rs +1 -9
  96. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/types.rs +160 -0
  97. diffctx-2.0.0rc0/crates/diffctx-base/src/yaml.rs +151 -0
  98. diffctx-2.0.0rc0/crates/diffctx-config/Cargo.toml +21 -0
  99. diffctx-2.0.0rc0/crates/diffctx-config/LICENSE.md +95 -0
  100. diffctx-2.0.0rc0/crates/diffctx-config/README.md +145 -0
  101. diffctx-2.0.0rc0/crates/diffctx-config/clippy.toml +12 -0
  102. diffctx-2.0.0rc0/crates/diffctx-config/deny.toml +9 -0
  103. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/category_weights.rs +7 -7
  104. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/edge_weights.rs +0 -4
  105. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/env_overrides.rs +6 -1
  106. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/graph_filtering.rs +0 -2
  107. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/limits.rs +16 -17
  108. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/mod.rs +0 -1
  109. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/selection.rs +2 -22
  110. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/weights.rs +18 -8
  111. diffctx-2.0.0rc0/crates/diffctx-config/src/lib.rs +9 -0
  112. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/signatures.rs +1 -1
  113. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/stopwords.rs +9 -11
  114. diffctx-2.0.0rc0/crates/diffctx-facts/Cargo.toml +116 -0
  115. diffctx-2.0.0rc0/crates/diffctx-facts/LICENSE.md +95 -0
  116. diffctx-2.0.0rc0/crates/diffctx-facts/README.md +145 -0
  117. diffctx-2.0.0rc0/crates/diffctx-facts/build.rs +128 -0
  118. diffctx-2.0.0rc0/crates/diffctx-facts/clippy.toml +20 -0
  119. diffctx-2.0.0rc0/crates/diffctx-facts/deny.toml +7 -0
  120. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-facts}/src/change_class.rs +88 -206
  121. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/blob.rs +147 -0
  122. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/cache.rs +541 -0
  123. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/changes.rs +589 -0
  124. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/candidates.rs +87 -0
  125. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/commands.rs +118 -0
  126. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/dockerfile.rs +323 -0
  127. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/globs.rs +113 -0
  128. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/helm.rs +248 -0
  129. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/ini.rs +191 -0
  130. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/json.rs +148 -0
  131. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/k8s.rs +319 -0
  132. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/mod.rs +157 -0
  133. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/object.rs +150 -0
  134. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/pointer.rs +158 -0
  135. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/pointers.rs +269 -0
  136. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/reference.rs +160 -0
  137. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/selectors.rs +201 -0
  138. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/syntax.rs +194 -0
  139. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/template.rs +176 -0
  140. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/toml_file.rs +92 -0
  141. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/tree.rs +224 -0
  142. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/config/yaml.rs +578 -0
  143. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/extractor.rs +71 -0
  144. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/file.rs +128 -0
  145. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/framework/jvm.rs +354 -0
  146. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/framework.rs +590 -0
  147. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/grammar.rs +31 -0
  148. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/grammar_witnesses.txt +3 -0
  149. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/hash.rs +82 -0
  150. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/ids.rs +75 -0
  151. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-facts}/src/facts/java.rs +135 -27
  152. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/kotlin/bindings.rs +270 -0
  153. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-facts}/src/facts/kotlin.rs +294 -208
  154. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/c.rs +2104 -0
  155. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/config.rs +299 -0
  156. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/dockerfile.rs +586 -0
  157. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/go/type_declaration.rs +169 -0
  158. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/go.rs +1384 -0
  159. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/helm.rs +179 -0
  160. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/html.rs +367 -0
  161. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/java.rs +627 -0
  162. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/jvm.rs +198 -0
  163. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/kotlin.rs +685 -0
  164. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/mod.rs +342 -0
  165. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/php.rs +1985 -0
  166. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/python/mutations.rs +154 -0
  167. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/python.rs +2688 -0
  168. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/rust/elements.rs +131 -0
  169. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/rust/macros.rs +155 -0
  170. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/rust.rs +1878 -0
  171. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/shell.rs +860 -0
  172. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/sql.rs +687 -0
  173. {diffctx-1.20.0/crates/diffctx-native/src/facts → diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang}/swift.rs +76 -45
  174. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/terraform.rs +699 -0
  175. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/typescript/blocks.rs +15 -0
  176. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/typescript.rs +4434 -0
  177. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lang/walker.rs +122 -0
  178. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/language.rs +211 -0
  179. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/lexical.rs +117 -0
  180. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/mod.rs +81 -0
  181. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/model.rs +691 -0
  182. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/module.rs +107 -0
  183. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/reflect.rs +101 -0
  184. diffctx-2.0.0rc0/crates/diffctx-facts/src/facts/shell.rs +44 -0
  185. diffctx-2.0.0rc0/crates/diffctx-facts/src/lib.rs +9 -0
  186. diffctx-2.0.0rc0/crates/diffctx-facts/src/overlay/css.rs +63 -0
  187. diffctx-2.0.0rc0/crates/diffctx-facts/src/overlay/helm.rs +16 -0
  188. diffctx-2.0.0rc0/crates/diffctx-facts/src/overlay/javascript.rs +315 -0
  189. diffctx-2.0.0rc0/crates/diffctx-facts/src/overlay/mod.rs +202 -0
  190. diffctx-2.0.0rc0/crates/diffctx-facts/src/overlay/prometheus.rs +39 -0
  191. diffctx-2.0.0rc0/crates/diffctx-facts/src/overlay/python.rs +67 -0
  192. diffctx-2.0.0rc0/crates/diffctx-facts/src/overlay/shell.rs +93 -0
  193. diffctx-2.0.0rc0/crates/diffctx-facts/src/overlay/sql.rs +47 -0
  194. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-facts}/src/parsers/config_parser.rs +3 -3
  195. diffctx-2.0.0rc0/crates/diffctx-facts/src/parsers/def_kinds.rs +115 -0
  196. diffctx-2.0.0rc0/crates/diffctx-facts/src/parsers/embedded.rs +77 -0
  197. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-facts}/src/parsers/generic.rs +4 -4
  198. diffctx-2.0.0rc0/crates/diffctx-facts/src/parsers/keyword_calls.rs +69 -0
  199. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-facts}/src/parsers/markdown.rs +3 -3
  200. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-facts}/src/parsers/mod.rs +46 -30
  201. diffctx-2.0.0rc0/crates/diffctx-facts/src/parsers/python_decls.rs +261 -0
  202. diffctx-2.0.0rc0/crates/diffctx-facts/src/parsers/rust_tests.rs +137 -0
  203. {diffctx-1.20.0/crates/diffctx-native/src/facts → diffctx-2.0.0rc0/crates/diffctx-facts/src/parsers}/scala.rs +57 -9
  204. diffctx-2.0.0rc0/crates/diffctx-facts/src/parsers/tree_sitter_strategy/lang_config.rs +430 -0
  205. diffctx-2.0.0rc0/crates/diffctx-facts/src/parsers/tree_sitter_strategy/node_kind.rs +144 -0
  206. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-facts}/src/parsers/tree_sitter_strategy.rs +90 -648
  207. diffctx-2.0.0rc0/crates/diffctx-graph/Cargo.toml +43 -0
  208. diffctx-2.0.0rc0/crates/diffctx-graph/LICENSE.md +95 -0
  209. diffctx-2.0.0rc0/crates/diffctx-graph/README.md +145 -0
  210. diffctx-2.0.0rc0/crates/diffctx-graph/build.rs +131 -0
  211. diffctx-2.0.0rc0/crates/diffctx-graph/clippy.toml +20 -0
  212. diffctx-2.0.0rc0/crates/diffctx-graph/deny.toml +7 -0
  213. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/core.rs +1 -1
  214. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/discovery.rs +32 -26
  215. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/base.rs +159 -77
  216. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/config_edges/build_system.rs +4 -7
  217. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/config_edges/cicd.rs +14 -49
  218. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/config_edges/docker.rs +161 -59
  219. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/config_edges/generic.rs +100 -170
  220. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/config_edges/helm.rs +38 -31
  221. diffctx-2.0.0rc0/crates/diffctx-graph/src/edges/config_edges/keys.rs +413 -0
  222. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/config_edges/kubernetes.rs +8 -76
  223. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/config_edges/mod.rs +3 -1
  224. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/document/mod.rs +6 -6
  225. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/history/cochange.rs +9 -8
  226. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/history/mod.rs +2 -2
  227. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/mod.rs +274 -85
  228. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/ansible.rs +6 -6
  229. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/bazel.rs +5 -5
  230. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/c_family.rs +19 -12
  231. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/cargo_edges.rs +7 -7
  232. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/clojure.rs +14 -42
  233. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/css.rs +6 -21
  234. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/dart.rs +6 -21
  235. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/dbt.rs +17 -39
  236. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/dotnet.rs +5 -5
  237. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/elixir.rs +8 -31
  238. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/erlang.rs +19 -51
  239. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/go.rs +84 -22
  240. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/graphql.rs +12 -38
  241. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/haskell.rs +8 -21
  242. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/javascript.rs +14 -13
  243. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/julia.rs +10 -42
  244. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/jvm.rs +26 -18
  245. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/latex.rs +6 -21
  246. {diffctx-1.20.0/crates/diffctx-native/src → diffctx-2.0.0rc0/crates/diffctx-graph/src/edges/semantic/legacy}/kotlin_bindings.rs +125 -271
  247. diffctx-2.0.0rc0/crates/diffctx-graph/src/edges/semantic/legacy/mod.rs +8 -0
  248. diffctx-2.0.0rc0/crates/diffctx-graph/src/edges/semantic/legacy/python_imports.rs +114 -0
  249. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/lua.rs +10 -41
  250. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/mod.rs +39 -38
  251. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/nim.rs +6 -11
  252. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/nix.rs +3 -3
  253. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/ocaml.rs +13 -44
  254. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/openapi.rs +16 -37
  255. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/perl.rs +15 -48
  256. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/php.rs +20 -44
  257. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/prisma.rs +14 -38
  258. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/protobuf.rs +8 -28
  259. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/python.rs +24 -12
  260. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/r_lang.rs +8 -28
  261. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/ruby.rs +12 -24
  262. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/rust_lang.rs +49 -60
  263. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/shell.rs +6 -6
  264. diffctx-2.0.0rc0/crates/diffctx-graph/src/edges/semantic/sql.rs +199 -0
  265. diffctx-2.0.0rc0/crates/diffctx-graph/src/edges/semantic/swift.rs +238 -0
  266. diffctx-2.0.0rc0/crates/diffctx-graph/src/edges/semantic/tags.rs +137 -0
  267. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/terraform.rs +3 -3
  268. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/semantic/zig.rs +12 -43
  269. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/similarity/lexical.rs +8 -11
  270. diffctx-2.0.0rc0/crates/diffctx-graph/src/edges/similarity/mod.rs +7 -0
  271. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/structural/containment.rs +3 -3
  272. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/structural/mod.rs +4 -4
  273. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/edges/structural/sibling.rs +6 -6
  274. diffctx-2.0.0rc0/crates/diffctx-graph/src/edges/structural/testing.rs +234 -0
  275. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/filtering.rs +14 -16
  276. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/fragmentation.rs +118 -139
  277. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/graph.rs +97 -383
  278. diffctx-2.0.0rc0/crates/diffctx-graph/src/keytable/definitions.rs +99 -0
  279. diffctx-2.0.0rc0/crates/diffctx-graph/src/keytable/extract.rs +2416 -0
  280. diffctx-2.0.0rc0/crates/diffctx-graph/src/keytable/mod.rs +1219 -0
  281. diffctx-2.0.0rc0/crates/diffctx-graph/src/keytable/routes.rs +754 -0
  282. diffctx-2.0.0rc0/crates/diffctx-graph/src/keytable/tech.rs +154 -0
  283. diffctx-2.0.0rc0/crates/diffctx-graph/src/lib.rs +15 -0
  284. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/ppr.rs +90 -125
  285. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/scoring.rs +35 -35
  286. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-graph}/src/token_corpus.rs +29 -20
  287. diffctx-2.0.0rc0/crates/diffctx-native/Cargo.toml +110 -0
  288. diffctx-2.0.0rc0/crates/diffctx-native/LICENSE.md +95 -0
  289. diffctx-2.0.0rc0/crates/diffctx-native/README.md +145 -0
  290. diffctx-2.0.0rc0/crates/diffctx-native/clippy.toml +20 -0
  291. {diffctx-1.20.0 → diffctx-2.0.0rc0}/crates/diffctx-native/src/analytics.rs +28 -29
  292. diffctx-2.0.0rc0/crates/diffctx-native/src/artifact.rs +873 -0
  293. diffctx-2.0.0rc0/crates/diffctx-native/src/delivery.rs +571 -0
  294. {diffctx-1.20.0 → diffctx-2.0.0rc0}/crates/diffctx-native/src/graph_export.rs +18 -18
  295. diffctx-2.0.0rc0/crates/diffctx-native/src/hook/intent.rs +1356 -0
  296. diffctx-2.0.0rc0/crates/diffctx-native/src/hook.rs +4625 -0
  297. diffctx-2.0.0rc0/crates/diffctx-native/src/lib.rs +32 -0
  298. {diffctx-1.20.0 → diffctx-2.0.0rc0}/crates/diffctx-native/src/main.rs +93 -325
  299. diffctx-2.0.0rc0/crates/diffctx-native/src/pipeline/keyword_binding.rs +190 -0
  300. {diffctx-1.20.0 → diffctx-2.0.0rc0}/crates/diffctx-native/src/pipeline.rs +1101 -1019
  301. {diffctx-1.20.0 → diffctx-2.0.0rc0}/crates/diffctx-native/src/project_graph.rs +22 -52
  302. {diffctx-1.20.0 → diffctx-2.0.0rc0}/crates/diffctx-native/src/pybridge.rs +185 -109
  303. diffctx-2.0.0rc0/crates/diffctx-occurrence/Cargo.toml +22 -0
  304. diffctx-2.0.0rc0/crates/diffctx-occurrence/LICENSE.md +95 -0
  305. diffctx-2.0.0rc0/crates/diffctx-occurrence/README.md +145 -0
  306. diffctx-2.0.0rc0/crates/diffctx-occurrence/clippy.toml +20 -0
  307. diffctx-2.0.0rc0/crates/diffctx-occurrence/deny.toml +7 -0
  308. diffctx-2.0.0rc0/crates/diffctx-occurrence/src/lib.rs +8 -0
  309. diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/alias.rs +350 -0
  310. diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/debug.rs +557 -0
  311. diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/identity.rs +325 -0
  312. diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/implicit.rs +258 -0
  313. diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/local.rs +122 -0
  314. diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/mod.rs +621 -0
  315. diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/outcome/keyword.rs +93 -0
  316. diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/outcome/resolved.rs +54 -0
  317. diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/outcome/routes.rs +344 -0
  318. diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/outcome.rs +1427 -0
  319. diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/rows.rs +152 -0
  320. diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/scanner.rs +244 -0
  321. diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/seal.rs +135 -0
  322. diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens/occurrence/tests.rs +302 -0
  323. diffctx-2.0.0rc0/crates/diffctx-occurrence/src/tokens.rs +473 -0
  324. diffctx-2.0.0rc0/crates/diffctx-resolve/Cargo.toml +24 -0
  325. diffctx-2.0.0rc0/crates/diffctx-resolve/LICENSE.md +95 -0
  326. diffctx-2.0.0rc0/crates/diffctx-resolve/README.md +145 -0
  327. diffctx-2.0.0rc0/crates/diffctx-resolve/clippy.toml +20 -0
  328. diffctx-2.0.0rc0/crates/diffctx-resolve/deny.toml +7 -0
  329. diffctx-2.0.0rc0/crates/diffctx-resolve/src/lib.rs +7 -0
  330. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/c.rs +2045 -0
  331. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/chart.rs +271 -0
  332. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/config.rs +466 -0
  333. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/dockerfile.rs +324 -0
  334. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/go.rs +1324 -0
  335. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/index.rs +352 -0
  336. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/java/header.rs +360 -0
  337. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/java.rs +1654 -0
  338. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/jvm.rs +1139 -0
  339. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/kotlin.rs +1927 -0
  340. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/mod.rs +402 -0
  341. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/modules.rs +232 -0
  342. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/php.rs +1768 -0
  343. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/python/assigned.rs +593 -0
  344. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/python.rs +1850 -0
  345. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/rust/expansion.rs +129 -0
  346. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/rust/lookup.rs +217 -0
  347. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/rust.rs +2197 -0
  348. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/shell.rs +486 -0
  349. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/solved.rs +395 -0
  350. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/sql.rs +169 -0
  351. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/swift.rs +37 -0
  352. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/terraform.rs +328 -0
  353. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/twins.rs +510 -0
  354. diffctx-2.0.0rc0/crates/diffctx-resolve/src/resolve/typescript.rs +3993 -0
  355. diffctx-2.0.0rc0/crates/diffctx-resolve/src/vocabulary/family.rs +461 -0
  356. diffctx-2.0.0rc0/crates/diffctx-resolve/src/vocabulary.rs +328 -0
  357. diffctx-2.0.0rc0/crates/diffctx-select/Cargo.toml +27 -0
  358. diffctx-2.0.0rc0/crates/diffctx-select/LICENSE.md +95 -0
  359. diffctx-2.0.0rc0/crates/diffctx-select/README.md +145 -0
  360. diffctx-2.0.0rc0/crates/diffctx-select/clippy.toml +20 -0
  361. diffctx-2.0.0rc0/crates/diffctx-select/deny.toml +7 -0
  362. diffctx-2.0.0rc0/crates/diffctx-select/src/lib.rs +7 -0
  363. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-select}/src/postpass.rs +43 -70
  364. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-select}/src/select.rs +18 -26
  365. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-select}/src/utility/boltzmann.rs +5 -5
  366. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-select}/src/utility/importance.rs +3 -3
  367. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-select}/src/utility/mod.rs +3 -3
  368. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-select}/src/utility/needs.rs +6 -9
  369. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-select}/src/utility/objective.rs +10 -10
  370. diffctx-2.0.0rc0/crates/diffctx-snapshot/Cargo.toml +39 -0
  371. diffctx-2.0.0rc0/crates/diffctx-snapshot/LICENSE.md +95 -0
  372. diffctx-2.0.0rc0/crates/diffctx-snapshot/README.md +145 -0
  373. diffctx-2.0.0rc0/crates/diffctx-snapshot/clippy.toml +20 -0
  374. diffctx-2.0.0rc0/crates/diffctx-snapshot/deny.toml +9 -0
  375. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/candidate_files.rs +87 -0
  376. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/diff_parse.rs +749 -0
  377. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/grep.rs +153 -0
  378. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/lib.rs +9 -0
  379. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-snapshot}/src/resource.rs +248 -35
  380. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/admission.rs +204 -0
  381. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/changes.rs +272 -0
  382. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/context.rs +123 -0
  383. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/diff.rs +208 -0
  384. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/error.rs +74 -0
  385. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/git/together.rs +306 -0
  386. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/git.rs +1432 -0
  387. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/grep.rs +309 -0
  388. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/ignore.rs +353 -0
  389. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/loss.rs +278 -0
  390. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/mod.rs +77 -0
  391. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/range.rs +443 -0
  392. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/reader.rs +1078 -0
  393. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/repo.rs +526 -0
  394. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/run.rs +154 -0
  395. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/testing.rs +34 -0
  396. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/types.rs +213 -0
  397. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/untracked.rs +166 -0
  398. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/workspace/dockerfile.rs +211 -0
  399. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/workspace/go.rs +106 -0
  400. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/workspace/jvm.rs +555 -0
  401. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/workspace/mod.rs +1048 -0
  402. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/workspace/node.rs +770 -0
  403. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/workspace/python.rs +545 -0
  404. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/workspace/rust.rs +539 -0
  405. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/snapshot/workspace/source.rs +51 -0
  406. diffctx-2.0.0rc0/crates/diffctx-snapshot/src/source.rs +838 -0
  407. {diffctx-1.20.0 → diffctx-2.0.0rc0}/pyproject.toml +47 -45
  408. {diffctx-1.20.0 → diffctx-2.0.0rc0}/rust-toolchain.toml +1 -1
  409. {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/_app.py +68 -266
  410. {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/_diffctx.pyi +23 -1
  411. diffctx-2.0.0rc0/src/diffctx/_native/__init__.py +24 -0
  412. {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/_native/graph_analytics.py +1 -1
  413. {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/_native/pipeline.py +69 -55
  414. {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/cli.py +88 -49
  415. {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/clipboard.py +0 -4
  416. {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/mcp/fetch.py +0 -4
  417. {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/mcp/legacy.py +8 -9
  418. {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/mcp/security.py +21 -7
  419. {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/mcp/server.py +158 -136
  420. diffctx-2.0.0rc0/src/diffctx/tokens.py +25 -0
  421. diffctx-2.0.0rc0/src/diffctx/version.py +1 -0
  422. diffctx-1.20.0/Cargo.toml +0 -25
  423. diffctx-1.20.0/LICENSE +0 -201
  424. diffctx-1.20.0/crates/diffctx-native/Cargo.toml +0 -193
  425. diffctx-1.20.0/crates/diffctx-native/src/artifact.rs +0 -987
  426. diffctx-1.20.0/crates/diffctx-native/src/bindings/js.rs +0 -1571
  427. diffctx-1.20.0/crates/diffctx-native/src/bindings/mod.rs +0 -1100
  428. diffctx-1.20.0/crates/diffctx-native/src/bindings/python.rs +0 -510
  429. diffctx-1.20.0/crates/diffctx-native/src/candidate_files.rs +0 -256
  430. diffctx-1.20.0/crates/diffctx-native/src/config/git.rs +0 -20
  431. diffctx-1.20.0/crates/diffctx-native/src/edges/semantic/sql.rs +0 -117
  432. diffctx-1.20.0/crates/diffctx-native/src/edges/semantic/swift.rs +0 -183
  433. diffctx-1.20.0/crates/diffctx-native/src/edges/semantic/tags.rs +0 -89
  434. diffctx-1.20.0/crates/diffctx-native/src/edges/similarity/mod.rs +0 -7
  435. diffctx-1.20.0/crates/diffctx-native/src/edges/structural/testing.rs +0 -346
  436. diffctx-1.20.0/crates/diffctx-native/src/facts/mod.rs +0 -73
  437. diffctx-1.20.0/crates/diffctx-native/src/facts/python.rs +0 -383
  438. diffctx-1.20.0/crates/diffctx-native/src/git.rs +0 -3335
  439. diffctx-1.20.0/crates/diffctx-native/src/go_bindings.rs +0 -657
  440. diffctx-1.20.0/crates/diffctx-native/src/hook.rs +0 -3937
  441. diffctx-1.20.0/crates/diffctx-native/src/impact.rs +0 -5499
  442. diffctx-1.20.0/crates/diffctx-native/src/in_memory_harness.rs +0 -513
  443. diffctx-1.20.0/crates/diffctx-native/src/lang/bound.rs +0 -200
  444. diffctx-1.20.0/crates/diffctx-native/src/lang/go.rs +0 -80
  445. diffctx-1.20.0/crates/diffctx-native/src/lang/kotlin.rs +0 -173
  446. diffctx-1.20.0/crates/diffctx-native/src/lang/mod.rs +0 -336
  447. diffctx-1.20.0/crates/diffctx-native/src/lang/python.rs +0 -337
  448. diffctx-1.20.0/crates/diffctx-native/src/lang/rust.rs +0 -2473
  449. diffctx-1.20.0/crates/diffctx-native/src/lang/shell.rs +0 -513
  450. diffctx-1.20.0/crates/diffctx-native/src/lang/sql.rs +0 -558
  451. diffctx-1.20.0/crates/diffctx-native/src/lib.rs +0 -80
  452. diffctx-1.20.0/crates/diffctx-native/src/provenance.rs +0 -190
  453. diffctx-1.20.0/crates/diffctx-native/src/source.rs +0 -224
  454. diffctx-1.20.0/crates/diffctx-native/src/testfiles.rs +0 -170
  455. diffctx-1.20.0/src/diffctx/_native/__init__.py +0 -7
  456. diffctx-1.20.0/src/diffctx/tokens.py +0 -46
  457. diffctx-1.20.0/src/diffctx/version.py +0 -1
  458. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/interval.rs +0 -0
  459. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/peak_rss.rs +0 -0
  460. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-base}/src/sanitize.rs +0 -0
  461. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/analytics.rs +0 -0
  462. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/bm25.rs +0 -0
  463. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/budget.rs +0 -0
  464. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/extensions.rs +0 -0
  465. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/filtering.rs +0 -0
  466. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/fragmentation.rs +0 -0
  467. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/importance.rs +0 -0
  468. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/mode.rs +0 -0
  469. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/needs.rs +0 -0
  470. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/parsers.rs +0 -0
  471. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/render.rs +0 -0
  472. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/scoring.rs +0 -0
  473. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/config/tokenization.rs +0 -0
  474. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/mode.rs +0 -0
  475. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/stopwords/code.txt +0 -0
  476. {diffctx-1.20.0/crates/diffctx-native → diffctx-2.0.0rc0/crates/diffctx-config}/src/stopwords/docs.txt +0 -0
  477. {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/__init__.py +0 -0
  478. {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/__main__.py +0 -0
  479. {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/_native/graph_export.py +0 -0
  480. {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/_native/project_graph.py +0 -0
  481. {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/ignore.py +0 -0
  482. {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/logger.py +0 -0
  483. {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/mcp/__init__.py +0 -0
  484. {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/mcp/__main__.py +0 -0
  485. {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/mcp/launch.py +0 -0
  486. {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/py.typed +0 -0
  487. {diffctx-1.20.0 → diffctx-2.0.0rc0}/src/diffctx/tree.py +0 -0
  488. {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