diffctx 1.19.0__tar.gz → 1.20.0__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 (194) hide show
  1. {diffctx-1.19.0 → diffctx-1.20.0}/CHANGELOG.md +372 -3
  2. {diffctx-1.19.0 → diffctx-1.20.0}/Cargo.lock +240 -276
  3. {diffctx-1.19.0 → diffctx-1.20.0}/PKG-INFO +47 -11
  4. {diffctx-1.19.0 → diffctx-1.20.0}/README.md +46 -9
  5. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/Cargo.toml +9 -2
  6. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/README.md +46 -9
  7. diffctx-1.20.0/crates/diffctx-native/src/artifact.rs +987 -0
  8. diffctx-1.20.0/crates/diffctx-native/src/bindings/js.rs +1571 -0
  9. diffctx-1.19.0/crates/diffctx-native/src/bindings.rs → diffctx-1.20.0/crates/diffctx-native/src/bindings/mod.rs +369 -624
  10. diffctx-1.20.0/crates/diffctx-native/src/bindings/python.rs +510 -0
  11. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/candidate_files.rs +14 -11
  12. diffctx-1.20.0/crates/diffctx-native/src/change_class.rs +584 -0
  13. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/weights.rs +1 -0
  14. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/discovery.rs +98 -12
  15. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/javascript.rs +16 -8
  16. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/jvm.rs +25 -0
  17. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/shell.rs +75 -1
  18. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/swift.rs +62 -5
  19. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/structural/testing.rs +49 -0
  20. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/effective_config.rs +3 -0
  21. diffctx-1.20.0/crates/diffctx-native/src/facts/java.rs +772 -0
  22. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/facts/kotlin.rs +117 -94
  23. diffctx-1.20.0/crates/diffctx-native/src/facts/mod.rs +73 -0
  24. diffctx-1.20.0/crates/diffctx-native/src/facts/python.rs +383 -0
  25. diffctx-1.20.0/crates/diffctx-native/src/facts/swift.rs +816 -0
  26. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/fragmentation.rs +27 -2
  27. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/git.rs +252 -119
  28. diffctx-1.20.0/crates/diffctx-native/src/go_bindings.rs +657 -0
  29. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/graph_export.rs +5 -13
  30. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/hook.rs +1541 -355
  31. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/impact.rs +2150 -511
  32. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/in_memory_harness.rs +8 -2
  33. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/kotlin_bindings.rs +278 -60
  34. diffctx-1.20.0/crates/diffctx-native/src/lang/bound.rs +200 -0
  35. diffctx-1.20.0/crates/diffctx-native/src/lang/go.rs +80 -0
  36. diffctx-1.20.0/crates/diffctx-native/src/lang/kotlin.rs +173 -0
  37. diffctx-1.20.0/crates/diffctx-native/src/lang/mod.rs +336 -0
  38. diffctx-1.20.0/crates/diffctx-native/src/lang/python.rs +337 -0
  39. diffctx-1.20.0/crates/diffctx-native/src/lang/rust.rs +2473 -0
  40. diffctx-1.20.0/crates/diffctx-native/src/lang/shell.rs +513 -0
  41. diffctx-1.20.0/crates/diffctx-native/src/lang/sql.rs +558 -0
  42. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/lib.rs +4 -0
  43. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/main.rs +59 -50
  44. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/parsers/mod.rs +26 -3
  45. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/parsers/tree_sitter_strategy.rs +172 -14
  46. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/paths.rs +39 -21
  47. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/pipeline.rs +229 -62
  48. diffctx-1.20.0/crates/diffctx-native/src/profile.rs +211 -0
  49. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/pybridge.rs +68 -2
  50. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/render.rs +0 -172
  51. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/resource.rs +69 -0
  52. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/run_provenance.rs +9 -0
  53. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/source.rs +34 -11
  54. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/testfiles.rs +2 -1
  55. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/token_corpus.rs +2 -2
  56. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/tokenizer.rs +10 -0
  57. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/types.rs +2 -2
  58. {diffctx-1.19.0 → diffctx-1.20.0}/pyproject.toml +1 -3
  59. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/_app.py +9 -7
  60. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/_diffctx.pyi +2 -0
  61. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/_native/pipeline.py +2 -1
  62. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/cli.py +9 -7
  63. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/mcp/launch.py +2 -2
  64. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/mcp/server.py +32 -10
  65. diffctx-1.20.0/src/diffctx/version.py +1 -0
  66. diffctx-1.20.0/src/diffctx/writer.py +415 -0
  67. diffctx-1.19.0/crates/diffctx-native/src/change_class.rs +0 -637
  68. diffctx-1.19.0/crates/diffctx-native/src/facts/mod.rs +0 -29
  69. diffctx-1.19.0/src/diffctx/version.py +0 -1
  70. diffctx-1.19.0/src/diffctx/writer.py +0 -901
  71. {diffctx-1.19.0 → diffctx-1.20.0}/Cargo.toml +0 -0
  72. {diffctx-1.19.0 → diffctx-1.20.0}/LICENSE +0 -0
  73. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/analytics.rs +0 -0
  74. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/analytics.rs +0 -0
  75. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/bm25.rs +0 -0
  76. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/budget.rs +0 -0
  77. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/category_weights.rs +0 -0
  78. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/edge_weights.rs +0 -0
  79. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/env_overrides.rs +0 -0
  80. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/extensions.rs +0 -0
  81. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/filtering.rs +0 -0
  82. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/fragmentation.rs +0 -0
  83. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/git.rs +0 -0
  84. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/graph_filtering.rs +0 -0
  85. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/importance.rs +0 -0
  86. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/limits.rs +0 -0
  87. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/mod.rs +0 -0
  88. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/mode.rs +0 -0
  89. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/needs.rs +0 -0
  90. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/parsers.rs +0 -0
  91. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/render.rs +0 -0
  92. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/scoring.rs +0 -0
  93. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/selection.rs +0 -0
  94. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/config/tokenization.rs +0 -0
  95. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/container.rs +0 -0
  96. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/core.rs +0 -0
  97. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/base.rs +0 -0
  98. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/config_edges/build_system.rs +0 -0
  99. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/config_edges/cicd.rs +0 -0
  100. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/config_edges/docker.rs +0 -0
  101. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/config_edges/generic.rs +0 -0
  102. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/config_edges/helm.rs +0 -0
  103. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/config_edges/kubernetes.rs +0 -0
  104. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/config_edges/mod.rs +0 -0
  105. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/document/mod.rs +0 -0
  106. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/history/cochange.rs +0 -0
  107. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/history/mod.rs +0 -0
  108. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/mod.rs +0 -0
  109. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/ansible.rs +0 -0
  110. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/bazel.rs +0 -0
  111. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/c_family.rs +0 -0
  112. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/cargo_edges.rs +0 -0
  113. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/clojure.rs +0 -0
  114. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/css.rs +0 -0
  115. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/dart.rs +0 -0
  116. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/dbt.rs +0 -0
  117. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/dotnet.rs +0 -0
  118. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/elixir.rs +0 -0
  119. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/erlang.rs +0 -0
  120. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/go.rs +0 -0
  121. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/graphql.rs +0 -0
  122. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/haskell.rs +0 -0
  123. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/julia.rs +0 -0
  124. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/latex.rs +0 -0
  125. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/lua.rs +0 -0
  126. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/mod.rs +0 -0
  127. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/nim.rs +0 -0
  128. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/nix.rs +0 -0
  129. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/ocaml.rs +0 -0
  130. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/openapi.rs +0 -0
  131. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/perl.rs +0 -0
  132. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/php.rs +0 -0
  133. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/prisma.rs +0 -0
  134. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/protobuf.rs +0 -0
  135. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/python.rs +0 -0
  136. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/r_lang.rs +0 -0
  137. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/ruby.rs +0 -0
  138. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/rust_lang.rs +0 -0
  139. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/sql.rs +0 -0
  140. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/tags.rs +0 -0
  141. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/terraform.rs +0 -0
  142. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/semantic/zig.rs +0 -0
  143. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/similarity/lexical.rs +0 -0
  144. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/similarity/mod.rs +0 -0
  145. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/structural/containment.rs +0 -0
  146. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/structural/mod.rs +0 -0
  147. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/edges/structural/sibling.rs +0 -0
  148. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/excerpt.rs +0 -0
  149. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/facts/scala.rs +0 -0
  150. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/filtering.rs +0 -0
  151. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/graph.rs +0 -0
  152. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/interval.rs +0 -0
  153. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/languages.rs +0 -0
  154. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/locate.rs +0 -0
  155. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/mode.rs +0 -0
  156. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/parsers/config_parser.rs +0 -0
  157. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/parsers/generic.rs +0 -0
  158. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/parsers/markdown.rs +0 -0
  159. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/peak_rss.rs +0 -0
  160. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/postpass.rs +0 -0
  161. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/ppr.rs +0 -0
  162. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/project_graph.rs +0 -0
  163. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/provenance.rs +0 -0
  164. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/sanitize.rs +0 -0
  165. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/scoring.rs +0 -0
  166. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/select.rs +0 -0
  167. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/signatures.rs +0 -0
  168. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/stopwords/code.txt +0 -0
  169. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/stopwords/docs.txt +0 -0
  170. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/stopwords.rs +0 -0
  171. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/test_rng.rs +0 -0
  172. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/utility/boltzmann.rs +0 -0
  173. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/utility/importance.rs +0 -0
  174. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/utility/mod.rs +0 -0
  175. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/utility/needs.rs +0 -0
  176. {diffctx-1.19.0 → diffctx-1.20.0}/crates/diffctx-native/src/utility/objective.rs +0 -0
  177. {diffctx-1.19.0 → diffctx-1.20.0}/rust-toolchain.toml +0 -0
  178. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/__init__.py +0 -0
  179. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/__main__.py +0 -0
  180. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/_native/__init__.py +0 -0
  181. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/_native/graph_analytics.py +0 -0
  182. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/_native/graph_export.py +0 -0
  183. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/_native/project_graph.py +0 -0
  184. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/clipboard.py +0 -0
  185. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/ignore.py +0 -0
  186. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/logger.py +0 -0
  187. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/mcp/__init__.py +0 -0
  188. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/mcp/__main__.py +0 -0
  189. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/mcp/fetch.py +0 -0
  190. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/mcp/legacy.py +0 -0
  191. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/mcp/security.py +0 -0
  192. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/py.typed +0 -0
  193. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/tokens.py +0 -0
  194. {diffctx-1.19.0 → diffctx-1.20.0}/src/diffctx/tree.py +0 -0
@@ -7,6 +7,373 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.20.0] - 2026-10-22
11
+
12
+ ### Changed
13
+
14
+ - The native binary, the Python CLI and the MCP server render the pack
15
+ artifact and fit it to `--budget` with one engine function, measured on
16
+ the text each delivers: one range, budget and format gives the same
17
+ document from each door that serves that format (#507).
18
+ - YAML has one writer for both CLIs. A string a YAML 1.1 reader would take
19
+ for something else (`off`, `y`, `=`, a date) is quoted, so PyYAML reads a
20
+ symbol named `off` as a string; the native YAML changes style to match
21
+ (double quotes where needed, literal blocks). The Python CLI's YAML now
22
+ carries `commit_count`, `redactions`, an empty `fragments` list and the
23
+ schema's key order.
24
+
25
+ ### Fixed
26
+
27
+ - "Named by path" took a bare file name for the root file of that name:
28
+ with a root and a nested `AGENTS.md`, a test reading `"AGENTS.md"` beside
29
+ the nested one was listed for an edit of the root's, and named as still
30
+ naming it when the root's was deleted. A root file's bare name now counts
31
+ only when no other file has it (#644).
32
+ - The MCP tool fitted an answer to a `budget_tokens` above `max_tokens`
33
+ and then refused it whole, or overflowed the client. The budget is now
34
+ lowered to `max_tokens`, and the reply says so in one line (#645).
35
+ - The impact header counted symbols whose callers could not be resolved
36
+ ("callers unresolved for 2 symbol(s)") without naming them, so the one
37
+ such row read like the rest among many. It now names them, up to three
38
+ (#506).
39
+ - The plugin hook missed commits whose verb it did not list, and misread
40
+ whose movement it saw. It now records before any git line whose verb may
41
+ record, and reads what landed from git's reflog. That covers `git am`
42
+ (#607), an alias, and a git only `sh -c`, `bash -lc` or `$(…)` runs, in
43
+ the cwd's repository. Each repository the line records in is reviewed,
44
+ not only the first one that moved (#608). A push of one range to two
45
+ remotes is one review with no "not analysed" note (#608). A ref only
46
+ another session could have moved is not this line's: a commit line is
47
+ never answered with another checkout's push (#618). A `cd <repo> && git
48
+ commit` is never answered with what moved in the cwd's repository
49
+ meanwhile (#556). A line run in the background, whose `PostToolUse`
50
+ fires at launch, is reviewed at the session's next hook event, once
51
+ (#617). A git only the shell runs, that recorded nothing where the hook
52
+ looked, is said to be unread after it ran, not before. What landed is
53
+ every entry git's reflog gained while the line ran, not its last one, so
54
+ a reset, switch, stash or rebase after the commit on the same line no
55
+ longer hides it (#508); a push from a work tree the same line then
56
+ removes is read in the repository's main work tree (#642); and
57
+ `python3 -c` source that spells `git commit` is no git the shell runs
58
+ (#635).
59
+ - A commit whose review timed out or failed got no word from the hook,
60
+ which read as a clean review. It now says which range was not reviewed
61
+ and the command to run (#612, #613).
62
+ - Uncommitted work with untracked files was read as two trees. git grep
63
+ searched only tracked files, so a new untracked class whose untracked
64
+ test calls it read as "nothing calls them, no static test link". An
65
+ untracked script naming a deleted path was also no stale reference. The
66
+ working tree is now tracked plus unignored untracked files for every
67
+ reader (#625).
68
+ - Impact answered a confident "0 callers" for what it never looked at. A
69
+ function only an `.astro` page calls, a module a CronWorkflow runs by
70
+ name, a name a template or config spells: none were searched, and the
71
+ zero read as a verdict. A zero now needs a witness. A changed definition
72
+ no traced caller reaches, whose name a file outside code spells, keeps
73
+ its row with "callers may be missing: named in `<file>:<line>` (a file
74
+ whose references are not traced)". A changed module named by its name in
75
+ a config or in another runtime's script is listed under "Named by path".
76
+ The header then reads "0 resolved caller(s) …, callers may be missing for
77
+ N symbol(s)", not a bare zero. A document mentioning a name is no reader,
78
+ and a name spelled in more than 12 such files is too common to count
79
+ (#505, #613). A verdict also needs a model: a changed method in a
80
+ language no binding model reads (C#, Ruby, C, PHP, …) whose only caller
81
+ is in its own file read "nothing calls them", and the hook said the
82
+ commit reached nothing; its callers are now unresolved, said so and
83
+ named in the header. And a hedge needs reach: a file over the size cap
84
+ that spells the name but never names its module (an unexported Go
85
+ function, a private Java method, a module function of another package)
86
+ is no "callers may be missing" (#591).
87
+ - A search for a name got an answer only when the pending change edited
88
+ that name, so on a clean tree, where most lookups happen, the hook said
89
+ nothing: 132 of 3,757 searches were answered in a week. A Bash or Grep
90
+ search for a name diffctx can define is now answered as `--symbol`
91
+ answers it (definition, callers, the tests that reach them), in at most
92
+ 200 tokens, once per name in a session, and only when it resolved a
93
+ caller: a caller in a file no model reads would otherwise read as none
94
+ (#337, #483, #628). A search the hook cannot place (`grep x $OUT/notes`)
95
+ and a name with more than three definitions get no answer: the first
96
+ was read as a search of the cwd's repository, the second printed the
97
+ first two of 44 `main`s. The answer is for what the search seeks and
98
+ where it looks: each name an alternation or `-e` searches for, up to
99
+ three (#634); never a word inside a line of code (`^from models
100
+ import`) or a file name (`AGENTS.md` is no search for `md`) (#643,
101
+ #646); and only the definitions under the searched paths or called from
102
+ them, so a grep of one file is not answered with a same-named symbol of
103
+ another subproject (fj#95). The paths are the files its result names
104
+ when it names any; an inverted search (`-v`, `-L`), one that found
105
+ nothing, and a `git grep` of a revision other than `HEAD` get no
106
+ answer: a subagent's searches of `origin/main` got 17 answers from a
107
+ checkout 36 commits behind. Replayed on the 38 field searches the
108
+ first version answered whose checkout still exists: the 12 answers
109
+ about another name or another place are gone, the 22 exact ones are
110
+ unchanged, and four also answer the second name searched.
111
+ - Subagents never heard that diffctx was installed: the standing context
112
+ reached the root session only. The plugin now gives each subagent the
113
+ same line at `SubagentStart` (#543).
114
+ - Under a tight budget, "Still naming a deleted or renamed path" was cut
115
+ to a bare count while routine callers printed in full, though those
116
+ entries were the answer's only definite defects. They now outlive every
117
+ caller row, and their first entries are kept (#600).
118
+ - A capture, log or document over the size cap beside a code change made
119
+ the whole answer "partial; callers may be missing". A file outside code
120
+ holds no caller, so it is now named as not followed and the answer stays
121
+ whole. Without a language it is listed as "other", not "code" (#626).
122
+ - Impact named a changed config, template, stylesheet, `requirements.txt`
123
+ or `CMakeLists.txt` as reaching nothing: a file outside code was dropped
124
+ from the answer when nothing named it by path, though nothing traced what
125
+ reads its keys and values. It is now listed as `content_untraced` ("not
126
+ followed"), and such an answer is not empty (#559). A prose document or a
127
+ binary is still found by its path alone, and a comment-only edit reaches
128
+ no reader.
129
+ - A method a supertype, an interface or the runtime calls — a Java
130
+ `@Override`, a Kotlin `override`, a class implementing an interface, a
131
+ Python `__eq__`, a Go method — read as "nothing calls them" when no direct
132
+ caller was found, and a change to it as reaching nothing. It now says
133
+ which route is not traced (#566). A private or static method keeps its
134
+ zero.
135
+ - A changed document was never "named by path": a config or code line naming
136
+ `docs/x.md` is now listed. A document naming it, an `@AGENTS.md` import
137
+ included, is not: on every edit the same line would repeat (#563, #564).
138
+ - A name several files of a language without a binding model define (Java's
139
+ `findOne`, `toReport`) lost every caller, the one in its own file too. A
140
+ call inside the definition's own file is now that file's own, with the
141
+ tests that reach it; callers in other files stay "not resolved", worded as
142
+ the ambiguity it is (#538).
143
+ - The hook never deleted an expired marker: one machine held 26,000 of them
144
+ after 13 days. A hook run sweeps them once a day (#569).
145
+ - The hook read text the shell never runs as commands: an issue body quoting
146
+ `git commit` in a quoted here-document drew "did not analyse this
147
+ command" (#534), and `--jq '.commit.author.date'` made a read-only line
148
+ claim another session's commit (#575). A line is now read by a lexer that
149
+ sets quoted data aside, and whether it records is read off its git
150
+ statements.
151
+ - A review of this session's files left out every file the session rewrote
152
+ through Bash (`sed -i`, a heredoc, `git rm`) and paired its edits with the
153
+ committed text of its own neighbours. A changed file that last changed
154
+ while one of the session's Bash calls ran is now its own; the files still
155
+ read as committed are named, with the definitions whose callers they may
156
+ hide (#453).
157
+ - The answer's header called a session's edits, a `git diff --cached` and a
158
+ commit's index alike "the snapshot tree"; it now says which (#549).
159
+ - The run log is `hook-runs.log`: a pin at or below 1.18.4 cut `hook.log` at
160
+ 256 KiB and overwrote its previous rotation, erasing the newer binary's
161
+ history (#555).
162
+ - Shell scripts read off the bash syntax tree: a library sourced as
163
+ `"$(dirname "$0")/lib.sh"`, through `BASH_SOURCE` or a variable, or
164
+ under a hyphenated name now binds its callers (#533); an extensionless
165
+ script is analysed, and a call in a quoted command substitution or after
166
+ `time -p` is a caller (#541); a broken parse hedges only the names in the
167
+ span it could not read (#521). A source no file resolves, or two files
168
+ resolve, is said to be unresolved or ambiguous, never a zero.
169
+ - SQL `CREATE [OR REPLACE] FUNCTION|PROCEDURE|VIEW [schema.]name` is a
170
+ definition and `[schema.]name(` a caller; comments and strings are no
171
+ code, a dollar-quoted body is, and an unqualified call is left to the
172
+ search path (#459, routines and views).
173
+ - Python imports in tests resolve through pytest's `pythonpath` (pytest.ini,
174
+ pyproject, tox.ini, setup.cfg) and a `conftest.py` that extends
175
+ `sys.path` (#553, #573), and through a uv project's path and workspace
176
+ sources; a package's `__init__` re-exports are read (#557). A test
177
+ that imported its module that way linked to a same-named module instead.
178
+ - Python: a method only a dispatch route reaches counts as tested when its
179
+ class is (#578); a nested `def` is local, so no unread file is searched
180
+ for its callers (#546, Python half); a removed definition is read off the
181
+ base's syntax, so a parameter or docstring word of the name is no caller
182
+ (#536); a field read through an instance a module builds at top level
183
+ (`settings = AppSettings()`) is a use of the field (#400).
184
+ - Swift and Java calls resolve through the binding model Kotlin uses:
185
+ typed parameters and fields, `x?.m()`, `self.m()`, implicit self,
186
+ `guard let`/`if let`, extension members across files (#526), and a Java
187
+ receiver typed by its field among same-named methods (#335, Java half).
188
+ A receiver nothing types is a "possibly called" caller.
189
+ - A declaration in a test file is no public or removed API contract; a
190
+ Gradle `testFixtures` source set and a `testing` package of main sources
191
+ still are (#517).
192
+ - A file parsed with errors hedges only the names spelled on the lines it
193
+ broke on, not every name it spells (#537, our half; the trigger is the
194
+ pinned Swift grammar).
195
+ - Removing a binding a module exports — `export const f = () => …`, a
196
+ Python module constant, a Rust `const`/`static`, a Go package-level
197
+ `const`/`var` — answered 0 callers and no removed API; the readers that
198
+ break are now named (#491). Go reads removals through its package and
199
+ import model, so another package's own constant of the name is no reader
200
+ and a declaration moved within its package is not removed.
201
+ - Rust callers resolve through a binding model: `use` imports and aliases,
202
+ `crate::`/`super::`/`self::` paths, methods through typed fields,
203
+ returned and aliased values, a function passed by name
204
+ (`.and_then(f)`, #594), and a constant read by its own file's functions
205
+ (#503, Rust half). A same-named local or imported function shadows one
206
+ elsewhere, and an `impl X` header is no caller of `X` (#548). A move
207
+ every importer follows, or a method moved to another `impl` of its type,
208
+ is no removal (#540). A private item is hedged only by files that can
209
+ name it (#599).
210
+ - A Kotlin removal from a renamed file names the base path its lines belong
211
+ to (#540).
212
+ - JS/TS: a bare `&` in JSX text no longer marks a valid file "parsed with
213
+ errors" (#531); a default import stands only for its module's default
214
+ export, so `--symbol` lists no file that never names the symbol (#558);
215
+ `self.x =`, `globalThis.x =`, `window.x =`, `module.exports.x =` and
216
+ `exports.x =` define `x` (#426); module bindings in modules and in a
217
+ page's scripts, interface and class members, and functions nested in a
218
+ long factory closure are definitions (#420, #488, #554, #577); an HTML
219
+ `<script type="module">` imports like a module and an import of a symlink
220
+ reaches the file it names (#372, in part). A function nested in a long
221
+ body is no longer dropped as a duplicate of the chunk holding the same
222
+ lines, in every language.
223
+ - YAML output escapes what falls outside YAML's printable set: a file
224
+ holding U+FFFE or U+FFFF made both writers emit a document every YAML
225
+ reader rejects.
226
+ - A run of a diff is layout only when the syntax tree of both whole files
227
+ is the same once a formatter's rewrites are taken out; a dedent out of a
228
+ block, a tuple's comma, ASI's `return` split, a rune turned string, a
229
+ regex's space, string content and an import alias swap read as
230
+ formatting, and impact skipped the definition (#442, a regression since
231
+ 1.18.4).
232
+ - A coverage block the fit or the raw-diff path added after the run names
233
+ its resource counts as `unknown` instead of reporting zeros (#550).
234
+ - `--symbol` reads every file naming the symbol under the raised cap, so a
235
+ module over the size cap no longer hides a caller or subclass; a caller
236
+ whose test file is over the cap names that test (#542).
237
+ - A changed Astro content-collection entry lists the `getCollection` /
238
+ `getEntry` calls reading its collection (#432).
239
+ - A call inside a sub-fragment of a long function is the function's call,
240
+ with the function's test link (#579); a Kotlin expression-bodied helper
241
+ (`fun client() = ApiClient(…)`) types the calls made on it (#562).
242
+ - tree-sitter-swift 0.7.4 parses `as? T ?? default` in a trailing closure,
243
+ which 0.7.3 read as a broken file (#537).
244
+ - A build no release pipeline made says so: `diffctx --version`,
245
+ `diffctx-mcp --version`, the MCP server's reported version and every
246
+ hook log line read `X.Y.Z+source`. A `uv tool install` of a checkout
247
+ satisfies the plugin's `==X.Y.Z` launch, and its runs read as the release
248
+ (#570).
249
+ - The MCP server no longer warns that `mcp` is the subcommand when a client
250
+ launches it in a repository with an `mcp/` directory; the hint is for a
251
+ terminal (#571).
252
+ - Impact counted what it had not looked at as a clean zero in more places:
253
+ untyped reads (#399), builtin and literal receivers (#389), code embedded
254
+ in shell scripts (#427), names too common to trace (#430), and callers the
255
+ graph's edge cap dropped (#547, #552) are now counted or named. The header
256
+ counts untested callers only beside a caller (#493).
257
+ - Callers by language: a Python assignment or attribute a method sets is a
258
+ definition, a returned receiver is a possible caller and a test importing
259
+ through `sys.path` reaches the module (#398, #477, #525); JS/TS uses are
260
+ read off the syntax, with glob imports and Vite `resolve.alias` (#357,
261
+ #504); a Rust inline `#[test]` is a test link (#528), one trait's
262
+ dyn-dispatched methods fold into one line (#545), and a module split's
263
+ re-exports are not removals.
264
+ - `named_by` lists the lines that run or ship a changed file by path (#393,
265
+ #523).
266
+ - The hook answers a recording line from git's record (#527), reviews a line
267
+ whose last command fails (#532), says once when a newer plugin is
268
+ installed beside an older pin, and every `hook.log` line names its version
269
+ (#524).
270
+ - The Windows test worker crash was pytest-timeout's thread method exiting
271
+ the xdist worker; the dependency is gone (#529).
272
+ - A budget-bound `-f json`/`-f yaml` artifact from the Python CLI was cut by
273
+ position: production before docs, and the rewrite of a multi-fragment
274
+ file before its one-line bumps. A changed fragment is now shortened before
275
+ it is dropped, so a larger budget never shows less of the change (#438).
276
+ - `--with-raw-diff` no longer spends `--budget`: the patch is not charged,
277
+ as documented, and the selection under a binding budget is the same with
278
+ and without it.
279
+ - The plugin's hook launches the pinned package with no environment
280
+ assignment, since `diffctx hook` reads the `CLAUDE_PLUGIN_ROOT` Claude
281
+ Code already exports, and its version variable is no longer named `pin`.
282
+ The plugin directory has flagged every main-branch plugin since the change
283
+ that introduced both as reading a credential; whether this clears the
284
+ finding is read off the next directory scan (#565).
285
+ - "Review my last commit" with the plugin loaded never reached impact: the
286
+ review skill asked only for the code (`pack`), and the session context
287
+ named only commit and push. The skill now asks for impact first, and the
288
+ session context names the review route. On the plugin's review eval, runs
289
+ with the plugin reach impact 3 of 3 times, up from 0 (#551).
290
+ - The weekly channel check names every release tag that `main` does not
291
+ reach and every tag whose release is missing or a draft: a consumer pins
292
+ the commit a tag first named, and a moved tag strands it (#500).
293
+ - A removed definition's markdown row read like a live one: its range is in
294
+ the base file, so a reader found the next definition there and its caller
295
+ read as calling something still present. The CLI answer and the hook's
296
+ block now print `path::name (removed; was 5-6)` (#598).
297
+
298
+ ## [1.19.1] - 2026-10-14
299
+
300
+ ### Added
301
+
302
+ - Go callers come from syntax facts: a package is its directory, an import
303
+ binds it by the path `go.mod` gives it, an alias or a dot import names it,
304
+ an unexported name never leaves its package, and a method call resolves
305
+ when the syntax states the value's type (a receiver, a parameter,
306
+ `x := &pkg.T{}`). A same-named function of another package, a struct
307
+ field, a local and a string are no longer callers (#506).
308
+
309
+ ### Fixed
310
+
311
+ - Module-level calls are listed beside a function-level caller in the same
312
+ file (#449), and a caller split into chunks spans every call site (#472).
313
+ - A call inside a function's local `const` names the function as the caller,
314
+ with its test link, not the local (#452).
315
+ - `async function` and generator functions are JS/TS definitions: a call
316
+ from the same file read as "nothing calls them" (#481).
317
+ - Shell functions are called from their own script's body and from scripts
318
+ that source them; a script calling its own `run_tool` read as no caller
319
+ (#497).
320
+ - Callers of a removed definition keep their test links; a removed `pub fn`
321
+ of a private Rust module or a binary is no removed API; possible callers
322
+ are shed before contracts, and the header counts every caller found and
323
+ every one without a test link at any budget (#413).
324
+ - `--full` reads under the run's deadline and names it, instead of exiting
325
+ with "files over the size cap" when a git read stalls (#439).
326
+ - A tree the hook builds from the session's edits is "the snapshot tree",
327
+ not "staged changes"; prose beside migrations is no schema contract; the
328
+ hook asks to check callers only when it lists some (#463).
329
+ - `selftest*` files are tests (#428).
330
+ - Deleting a module of tens of thousands of definitions no longer overflows
331
+ the argument list of the name search: the names go to `git grep` through a
332
+ pattern file, and the callers are found instead of a failed read (#440).
333
+ - The search hook reads `git grep PATTERN REV -- PATH`'s revision as one,
334
+ not as a directory outside any repository (#486), and a qualified search
335
+ word (`tests.direct`) searches for its last name, not its qualifier
336
+ (#402).
337
+ - A line the change itself wrote about a deletion (a changelog entry, a
338
+ comment) is no stale reference, and a path that ends a sentence still is
339
+ one (#456).
340
+ - A private Rust function removed in favour of an imported shared one has
341
+ no callers: a private item is reachable only from its own module and the
342
+ modules beneath it, a `use` from another module binds a file's calls
343
+ there, and a `use` line is no reference (#519).
344
+ - The search hook answers a pattern branch only when it names exactly one
345
+ identifier: a grep for a line of code is no search for each of its words
346
+ (#402).
347
+ - A changed constructor (`__init__`, `constructor`) is called by its
348
+ class's name: `cp.Model(…)`, `Model(…)` and `new Store(…)` are its callers
349
+ (#318).
350
+ - JS/TS class methods, object-literal methods and a store's actions built
351
+ inside `create(...)` are definitions with callers — through `this`, a typed
352
+ instance, the object, or possibly any receiver (#444, #473); a call wrapped
353
+ in parentheses at module level is a caller, and a call inside an anonymous
354
+ arrow belongs to the definition around it (#520); a component reached
355
+ through `lazy(() => import(…))` or `await import(…)` is referenced there
356
+ (#479); a workspace package's specifier (`@scope/core`) resolves into its
357
+ source (#474).
358
+ - Python: a pytest fixture is called by the tests and fixtures that take it
359
+ as a parameter (#401); an `Any` receiver and an object from a factory
360
+ classmethod are possible callers (#425).
361
+ - Java: a method calling a sibling of its own class with no qualifier is a
362
+ caller (#496). Rust: a local closure named like a changed function is no
363
+ caller of it (#391).
364
+ - A file over the size cap that names a changed definition is said as a
365
+ place callers may be missing, instead of the answer reading complete
366
+ (#484); a file of another runtime that breaks its parse is no such hedge
367
+ (#521).
368
+ - A hand-written "do not edit" header no longer marks a file generated;
369
+ a generator's header still does (#411).
370
+ - The native CLI refuses `--symbol` with another `--mode` named outright,
371
+ reads `PATH` in `--symbol PATH:NAME` from the path it was given, and parses
372
+ the watchdog override as the Python CLI does (#410).
373
+ - A file that declares a removed definition's name itself calls its own,
374
+ not the removed one: deleting a private `declared_name` in one Rust file
375
+ listed another file's calls to its own `declared_name` as broken callers.
376
+
10
377
  ## [1.19.0] - 2026-10-14
11
378
 
12
379
  ### Added
@@ -216,8 +583,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
216
583
  file knows `fun` and `typealias`.
217
584
  - A Kotlin type the text declares at the start of a line but the parse did
218
585
  not read — a grammar's silent misreading, with no error node — marks the
219
- file analysed only in part (0 of yay-tsa's 1,036 files with the shipped
220
- grammar; local classes count as read).
586
+ file analysed only in part (0 of 1,036 files in a Kotlin codebase with the
587
+ shipped grammar; local classes count as read).
221
588
  - The parse outcome is recorded when the fragmenter parses a file, not
222
589
  inferred from the fragments that came out: a file that parsed with errors
223
590
  is reported as analysed only in part even when a definition survived, and
@@ -2299,7 +2666,9 @@ Earlier releases shipped as `treemapper`; see
2299
2666
  <https://github.com/nikolay-e/diffctx/releases> for the corresponding GitHub
2300
2667
  release notes (`1.0.0` through `1.6.1`).
2301
2668
 
2302
- [Unreleased]: https://github.com/nikolay-e/diffctx/compare/v1.19.0...HEAD
2669
+ [Unreleased]: https://github.com/nikolay-e/diffctx/compare/v1.20.0...HEAD
2670
+ [1.20.0]: https://github.com/nikolay-e/diffctx/compare/v1.19.1...v1.20.0
2671
+ [1.19.1]: https://github.com/nikolay-e/diffctx/compare/v1.19.0...v1.19.1
2303
2672
  [1.19.0]: https://github.com/nikolay-e/diffctx/compare/v1.18.4...v1.19.0
2304
2673
  [1.18.4]: https://github.com/nikolay-e/diffctx/compare/v1.18.3...v1.18.4
2305
2674
  [1.18.3]: https://github.com/nikolay-e/diffctx/compare/v1.18.2...v1.18.3