diffctx 1.18.0__tar.gz → 1.18.2__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 (169) hide show
  1. {diffctx-1.18.0 → diffctx-1.18.2}/CHANGELOG.md +93 -1
  2. {diffctx-1.18.0 → diffctx-1.18.2}/Cargo.lock +1 -1
  3. {diffctx-1.18.0 → diffctx-1.18.2}/PKG-INFO +2 -2
  4. {diffctx-1.18.0 → diffctx-1.18.2}/README.md +1 -1
  5. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/Cargo.toml +1 -1
  6. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/README.md +1 -1
  7. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/rust_lang.rs +13 -4
  8. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/hook.rs +274 -34
  9. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/impact.rs +392 -67
  10. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/locate.rs +26 -28
  11. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/pybridge.rs +41 -3
  12. {diffctx-1.18.0 → diffctx-1.18.2}/pyproject.toml +1 -1
  13. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/_diffctx.pyi +1 -0
  14. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/cli.py +33 -3
  15. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/mcp/server.py +28 -13
  16. diffctx-1.18.2/src/diffctx/version.py +1 -0
  17. diffctx-1.18.0/src/diffctx/version.py +0 -1
  18. {diffctx-1.18.0 → diffctx-1.18.2}/Cargo.toml +0 -0
  19. {diffctx-1.18.0 → diffctx-1.18.2}/LICENSE +0 -0
  20. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/analytics.rs +0 -0
  21. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/candidate_files.rs +0 -0
  22. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/change_class.rs +0 -0
  23. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/analytics.rs +0 -0
  24. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/bm25.rs +0 -0
  25. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/budget.rs +0 -0
  26. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/category_weights.rs +0 -0
  27. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/edge_weights.rs +0 -0
  28. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/env_overrides.rs +0 -0
  29. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/extensions.rs +0 -0
  30. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/filtering.rs +0 -0
  31. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/fragmentation.rs +0 -0
  32. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/git.rs +0 -0
  33. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/graph_filtering.rs +0 -0
  34. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/importance.rs +0 -0
  35. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/limits.rs +0 -0
  36. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/mod.rs +0 -0
  37. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/mode.rs +0 -0
  38. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/needs.rs +0 -0
  39. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/parsers.rs +0 -0
  40. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/render.rs +0 -0
  41. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/scoring.rs +0 -0
  42. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/selection.rs +0 -0
  43. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/tokenization.rs +0 -0
  44. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/config/weights.rs +0 -0
  45. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/core.rs +0 -0
  46. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/discovery.rs +0 -0
  47. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/base.rs +0 -0
  48. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/config_edges/build_system.rs +0 -0
  49. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/config_edges/cicd.rs +0 -0
  50. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/config_edges/docker.rs +0 -0
  51. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/config_edges/generic.rs +0 -0
  52. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/config_edges/helm.rs +0 -0
  53. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/config_edges/kubernetes.rs +0 -0
  54. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/config_edges/mod.rs +0 -0
  55. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/document/mod.rs +0 -0
  56. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/history/cochange.rs +0 -0
  57. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/history/mod.rs +0 -0
  58. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/mod.rs +0 -0
  59. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/ansible.rs +0 -0
  60. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/bazel.rs +0 -0
  61. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/c_family.rs +0 -0
  62. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/cargo_edges.rs +0 -0
  63. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/clojure.rs +0 -0
  64. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/css.rs +0 -0
  65. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/dart.rs +0 -0
  66. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/dbt.rs +0 -0
  67. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/dotnet.rs +0 -0
  68. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/elixir.rs +0 -0
  69. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/erlang.rs +0 -0
  70. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/go.rs +0 -0
  71. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/graphql.rs +0 -0
  72. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/haskell.rs +0 -0
  73. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/javascript.rs +0 -0
  74. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/julia.rs +0 -0
  75. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/jvm.rs +0 -0
  76. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/latex.rs +0 -0
  77. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/lua.rs +0 -0
  78. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/mod.rs +0 -0
  79. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/nim.rs +0 -0
  80. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/nix.rs +0 -0
  81. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/ocaml.rs +0 -0
  82. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/openapi.rs +0 -0
  83. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/perl.rs +0 -0
  84. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/php.rs +0 -0
  85. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/prisma.rs +0 -0
  86. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/protobuf.rs +0 -0
  87. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/python.rs +0 -0
  88. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/r_lang.rs +0 -0
  89. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/ruby.rs +0 -0
  90. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/shell.rs +0 -0
  91. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/sql.rs +0 -0
  92. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/swift.rs +0 -0
  93. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/tags.rs +0 -0
  94. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/terraform.rs +0 -0
  95. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/semantic/zig.rs +0 -0
  96. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/similarity/lexical.rs +0 -0
  97. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/similarity/mod.rs +0 -0
  98. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/structural/containment.rs +0 -0
  99. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/structural/mod.rs +0 -0
  100. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/structural/sibling.rs +0 -0
  101. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/edges/structural/testing.rs +0 -0
  102. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/effective_config.rs +0 -0
  103. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/excerpt.rs +0 -0
  104. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/facts/mod.rs +0 -0
  105. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/facts/scala.rs +0 -0
  106. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/filtering.rs +0 -0
  107. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/fragmentation.rs +0 -0
  108. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/git.rs +0 -0
  109. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/graph.rs +0 -0
  110. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/graph_export.rs +0 -0
  111. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/in_memory_harness.rs +0 -0
  112. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/interval.rs +0 -0
  113. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/languages.rs +0 -0
  114. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/lib.rs +0 -0
  115. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/main.rs +0 -0
  116. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/mode.rs +0 -0
  117. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/parsers/config_parser.rs +0 -0
  118. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/parsers/generic.rs +0 -0
  119. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/parsers/markdown.rs +0 -0
  120. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/parsers/mod.rs +0 -0
  121. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/parsers/tree_sitter_strategy.rs +0 -0
  122. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/paths.rs +0 -0
  123. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/peak_rss.rs +0 -0
  124. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/pipeline.rs +0 -0
  125. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/postpass.rs +0 -0
  126. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/ppr.rs +0 -0
  127. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/project_graph.rs +0 -0
  128. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/provenance.rs +0 -0
  129. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/render.rs +0 -0
  130. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/resource.rs +0 -0
  131. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/run_provenance.rs +0 -0
  132. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/sanitize.rs +0 -0
  133. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/scoring.rs +0 -0
  134. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/select.rs +0 -0
  135. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/signatures.rs +0 -0
  136. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/stopwords/code.txt +0 -0
  137. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/stopwords/docs.txt +0 -0
  138. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/stopwords.rs +0 -0
  139. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/test_rng.rs +0 -0
  140. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/testfiles.rs +0 -0
  141. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/token_corpus.rs +0 -0
  142. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/tokenizer.rs +0 -0
  143. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/types.rs +0 -0
  144. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/utility/boltzmann.rs +0 -0
  145. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/utility/importance.rs +0 -0
  146. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/utility/mod.rs +0 -0
  147. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/utility/needs.rs +0 -0
  148. {diffctx-1.18.0 → diffctx-1.18.2}/crates/diffctx-native/src/utility/objective.rs +0 -0
  149. {diffctx-1.18.0 → diffctx-1.18.2}/rust-toolchain.toml +0 -0
  150. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/__init__.py +0 -0
  151. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/__main__.py +0 -0
  152. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/_app.py +0 -0
  153. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/_native/__init__.py +0 -0
  154. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/_native/graph_analytics.py +0 -0
  155. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/_native/graph_export.py +0 -0
  156. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/_native/pipeline.py +0 -0
  157. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/_native/project_graph.py +0 -0
  158. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/clipboard.py +0 -0
  159. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/ignore.py +0 -0
  160. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/logger.py +0 -0
  161. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/mcp/__init__.py +0 -0
  162. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/mcp/__main__.py +0 -0
  163. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/mcp/fetch.py +0 -0
  164. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/mcp/legacy.py +0 -0
  165. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/mcp/security.py +0 -0
  166. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/py.typed +0 -0
  167. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/tokens.py +0 -0
  168. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/tree.py +0 -0
  169. {diffctx-1.18.0 → diffctx-1.18.2}/src/diffctx/writer.py +0 -0
@@ -7,6 +7,96 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.18.2] - 2026-10-01
11
+
12
+ ### Changed
13
+
14
+ - **The Claude plugin no longer downloads anything but its pinned package.**
15
+ The directory runs only code from the reviewed repository or a package
16
+ pinned to an exact version, and refused 1.18.1 for fetching the release
17
+ binary at session start. The git hooks now run `diffctx hook <event>` from
18
+ `uvx diffctx[mcp]==<version>` — the MCP server's own pinned launch, so the
19
+ environment its start cached is the one the hook finds, `--offline` on the
20
+ commit path. The session start only warms that cache in the background and
21
+ names the command; `diffctx-install.sh` and `plugin/checksums.json` are
22
+ gone. The PyPI package gains the `diffctx hook` subcommand the native
23
+ binary had. The skills' no-MCP fallback names the same exact version
24
+ instead of a `<version>` placeholder, and the release bumps it.
25
+
26
+ ### Fixed
27
+
28
+ - 1.18.1's impact listed every resource cap as a limit, so the fragment and
29
+ edge caps nearly every repository hits printed `(partial: …)` and made the
30
+ hook speak on every commit; only the deadline, a truncated reverse
31
+ discovery and a capped candidate universe can lose a caller, and only those
32
+ are listed (#306).
33
+ - A test file named for a schema (`test_context_schema.py`) is no longer
34
+ reported as a schema contract.
35
+ - Impact: a changed module-level `export const f = (…) => …` is a changed
36
+ symbol whose importers are its callers; it used to read "Nothing outside the
37
+ diff depends on this change" (#324).
38
+ - Impact: "Contracts changed" lists an exported symbol only when its
39
+ declaration moved; a body-only edit is what its callers already say (#325).
40
+ A decorated export (`@Component({…}) export class …`) is public, and its
41
+ decorator is not mistaken for the declaration.
42
+ - The hook's "already reviewed" markers are per session: a change one session
43
+ was shown used to be silence for every other session for a day. A manual
44
+ `--mode impact` run still silences the hook on the same content, for 15
45
+ minutes (#323).
46
+ - `diffctx hook` from the PyPI package writes its answer as UTF-8: Windows'
47
+ cp1252 stdout turned the answer's dashes into bytes Claude Code cannot
48
+ read, and a character cp1252 lacks made the hook silent.
49
+ - `uv.lock`: urllib3 2.8.0 (GHSA-gh4c-6fx4-qh6g, GHSA-vxq7-64xx-v4gw,
50
+ GHSA-8988-9cw3-xx77) and virtualenv 21.14.1 (GHSA-94p9-xgh2-xp45,
51
+ GHSA-9h9j-4vrj-gf7g), both development-only.
52
+ - The hook no longer guesses the repository behind `cd $VAR`, `cd ~/…` or
53
+ `git -C "$REPO"`: a directory only the shell can expand is skipped instead
54
+ of reviewing whatever repository the agent's cwd is.
55
+
56
+ ## [1.18.1] - 2026-09-30
57
+
58
+ ### Fixed
59
+
60
+ - **The plugin's impact hook never ran under macOS `/bin/bash` 3.2**: an empty
61
+ `gate=()` expanded under `set -u` is an unbound variable there, the pipeline
62
+ died right of the pipe and `|| true` hid it. One never-empty argument array.
63
+ - Hook command parsing: `git add … && git commit` reviews the working tree
64
+ (the add has not run when the hook sees the line — it reviewed the stale
65
+ index and was silent on the commonest agent pattern); `-m a -m b`, `-F file`
66
+ and other value flags no longer count as pathspecs; `git diff A B` and
67
+ `git diff main` are history, not the pending change; `cd dir && git …` and
68
+ a relative `-C` resolve against the agent's cwd.
69
+ - Impact: a test guards a caller only when it names the symbol *and* reaches
70
+ the caller's module (a Rust test mentioning `render` was the guard of a
71
+ Python `render()`, #312); a chunk caller named `main[88]` is looked up as
72
+ `main`; two-letter modules (`db.py`) keep their callers; `*out = f()` and
73
+ `#[derive]` lines are code, not comments; a wide changed-file list folds
74
+ into a count before a single caller is dropped, and a symbol keeps its
75
+ strongest caller; a run that hit a limit says `(partial: …)` and is never
76
+ `empty`; schema contracts are listed before public symbols with a `+N more`
77
+ count; SHA-256 repositories count commits.
78
+ - `diffctx.impact.v1` and `diffctx.locate.v1` required every field the
79
+ serializer may omit (`truncated`, `commit_count`, `deleted_files`, …), so no
80
+ real document validated; the schemas now require what is always present,
81
+ and a test validates real impact and locate output against them.
82
+ - MCP: the default `diff_ref` on a clean single-commit repository is the
83
+ working tree, not an error naming a range the caller never passed; the
84
+ `git status` guess runs off the event loop with a 10 s cap and never leaks
85
+ the command line into the response.
86
+ - CLI: `--mode impact -o out.yaml` is refused like `-f yaml` instead of
87
+ writing JSON silently; `--mode` help names the text default.
88
+ - Plugin installer: the download is unpacked beside its target so the final
89
+ `mv` is a rename, never a copy another session could execute half-written.
90
+ - MCP `mode=impact` with `paths` no longer marks the whole change reviewed.
91
+ - Landing page: the four-part iOS viewport contract (`viewport-fit=cover`,
92
+ status-bar style, safe-area insets, taller `html`).
93
+ - Privacy page names the release-binary download the plugin makes.
94
+ - `bitcheck.sh` ranges re-pinned on the rewritten history; the old anchors
95
+ kept the pre-rewrite tree, with third-party tokens in retired benchmark
96
+ diffs, reachable on both forges.
97
+ - Runtime image: one package layer (Sonar `docker:S7031`/`S6595`); PyJWT
98
+ 2.15.1 in `uv.lock` (GHSA-w6j9-cwv2-h6wq, transitive).
99
+
10
100
  ## [1.18.0] - 2026-09-29
11
101
 
12
102
  ### Added
@@ -1672,7 +1762,9 @@ Earlier releases shipped as `treemapper`; see
1672
1762
  <https://github.com/nikolay-e/diffctx/releases> for the corresponding GitHub
1673
1763
  release notes (`1.0.0` through `1.6.1`).
1674
1764
 
1675
- [Unreleased]: https://github.com/nikolay-e/diffctx/compare/v1.18.0...HEAD
1765
+ [Unreleased]: https://github.com/nikolay-e/diffctx/compare/v1.18.2...HEAD
1766
+ [1.18.2]: https://github.com/nikolay-e/diffctx/compare/v1.18.1...v1.18.2
1767
+ [1.18.1]: https://github.com/nikolay-e/diffctx/compare/v1.18.0...v1.18.1
1676
1768
  [1.18.0]: https://github.com/nikolay-e/diffctx/compare/v1.17.0...v1.18.0
1677
1769
  [1.17.0]: https://github.com/nikolay-e/diffctx/compare/v1.16.0...v1.17.0
1678
1770
  [1.16.0]: https://github.com/nikolay-e/diffctx/compare/v1.15.0...v1.16.0
@@ -194,7 +194,7 @@ checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
194
194
 
195
195
  [[package]]
196
196
  name = "diffctx"
197
- version = "1.18.0"
197
+ version = "1.18.2"
198
198
  dependencies = [
199
199
  "aho-corasick",
200
200
  "anyhow",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: diffctx
3
- Version: 1.18.0
3
+ Version: 1.18.2
4
4
  Classifier: Development Status :: 5 - Production/Stable
5
5
  Classifier: Environment :: Console
6
6
  Classifier: Intended Audience :: Developers
@@ -154,7 +154,7 @@ keeps its git meaning.
154
154
  | `--full` | false | Only the changed files, every fragment, no related-code context |
155
155
  | `--timeout` | 300 | Wall-clock deadline in seconds; on expiry the run stops cooperatively and emits a partial artifact whose `coverage` block names the limit (exit 0). 124 is the watchdog behind it, 30 s later, for a phase that could not stop |
156
156
  | `--with-raw-diff` | false | Also embed git's raw unified diff ahead of the selected fragments — additive (selection unchanged), not charged to `--budget`, lock/ignored/secret-like sections omitted. Python CLI only |
157
- | `--mode` | `pack` | `locate` emits the same ranked selection as compact `diffctx.locate.v1` JSON — path, lines, score, provenance reasons, a blast-radius `summary` and per-item impact `group` (`test`/`type`/`config`), NO source bodies. Adds a `coverage` block naming what the run could not see (`unparsed_files`, `zero_edge_files`, `ppr_truncated`, `next_up`, a heuristic `confidence`) and an `overflow` ranking of what the budget left behind — omitted entirely when there is nothing to disclose. `diffctx . --diff --mode locate` = impact of your uncommitted change. The MCP tool takes it as `mode="locate"` |
157
+ | `--mode` | `pack` | `locate` emits the same ranked selection as compact `diffctx.locate.v1` JSON — path, lines, score, provenance reasons, a blast-radius `summary` and per-item impact `group` (`test`/`type`/`config`), NO source bodies. Adds a `coverage` block naming what the run could not see (`unparsed_files`, `zero_edge_files`, `ppr_truncated`, `next_up`, a heuristic `confidence`) and an `overflow` ranking of what the budget left behind — omitted entirely when there is nothing to disclose. `impact` answers, under 2k tokens, what the change reaches outside its diff: callers in files the diff does not touch, whether a test guards each, cross-commit overlap, and the public API and schema changes (text by default, `diffctx.impact.v1` JSON with `-f json`). The MCP tool takes both as `mode` |
158
158
 
159
159
  Every JSON/YAML artifact opens with `schema: diffctx.context.v1` and validates
160
160
  against [`schemas/diffctx.context.v1.json`](schemas/diffctx.context.v1.json),
@@ -95,7 +95,7 @@ keeps its git meaning.
95
95
  | `--full` | false | Only the changed files, every fragment, no related-code context |
96
96
  | `--timeout` | 300 | Wall-clock deadline in seconds; on expiry the run stops cooperatively and emits a partial artifact whose `coverage` block names the limit (exit 0). 124 is the watchdog behind it, 30 s later, for a phase that could not stop |
97
97
  | `--with-raw-diff` | false | Also embed git's raw unified diff ahead of the selected fragments — additive (selection unchanged), not charged to `--budget`, lock/ignored/secret-like sections omitted. Python CLI only |
98
- | `--mode` | `pack` | `locate` emits the same ranked selection as compact `diffctx.locate.v1` JSON — path, lines, score, provenance reasons, a blast-radius `summary` and per-item impact `group` (`test`/`type`/`config`), NO source bodies. Adds a `coverage` block naming what the run could not see (`unparsed_files`, `zero_edge_files`, `ppr_truncated`, `next_up`, a heuristic `confidence`) and an `overflow` ranking of what the budget left behind — omitted entirely when there is nothing to disclose. `diffctx . --diff --mode locate` = impact of your uncommitted change. The MCP tool takes it as `mode="locate"` |
98
+ | `--mode` | `pack` | `locate` emits the same ranked selection as compact `diffctx.locate.v1` JSON — path, lines, score, provenance reasons, a blast-radius `summary` and per-item impact `group` (`test`/`type`/`config`), NO source bodies. Adds a `coverage` block naming what the run could not see (`unparsed_files`, `zero_edge_files`, `ppr_truncated`, `next_up`, a heuristic `confidence`) and an `overflow` ranking of what the budget left behind — omitted entirely when there is nothing to disclose. `impact` answers, under 2k tokens, what the change reaches outside its diff: callers in files the diff does not touch, whether a test guards each, cross-commit overlap, and the public API and schema changes (text by default, `diffctx.impact.v1` JSON with `-f json`). The MCP tool takes both as `mode` |
99
99
 
100
100
  Every JSON/YAML artifact opens with `schema: diffctx.context.v1` and validates
101
101
  against [`schemas/diffctx.context.v1.json`](schemas/diffctx.context.v1.json),
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "diffctx"
3
- version = "1.18.0"
3
+ version = "1.18.2"
4
4
  edition = "2024"
5
5
  rust-version = "1.85"
6
6
  description = "Selects the minimum code an LLM needs to review a git diff: walks the dependency graph outward from changed lines and stops when extra context stops paying for itself"
@@ -95,7 +95,7 @@ keeps its git meaning.
95
95
  | `--full` | false | Only the changed files, every fragment, no related-code context |
96
96
  | `--timeout` | 300 | Wall-clock deadline in seconds; on expiry the run stops cooperatively and emits a partial artifact whose `coverage` block names the limit (exit 0). 124 is the watchdog behind it, 30 s later, for a phase that could not stop |
97
97
  | `--with-raw-diff` | false | Also embed git's raw unified diff ahead of the selected fragments — additive (selection unchanged), not charged to `--budget`, lock/ignored/secret-like sections omitted. Python CLI only |
98
- | `--mode` | `pack` | `locate` emits the same ranked selection as compact `diffctx.locate.v1` JSON — path, lines, score, provenance reasons, a blast-radius `summary` and per-item impact `group` (`test`/`type`/`config`), NO source bodies. Adds a `coverage` block naming what the run could not see (`unparsed_files`, `zero_edge_files`, `ppr_truncated`, `next_up`, a heuristic `confidence`) and an `overflow` ranking of what the budget left behind — omitted entirely when there is nothing to disclose. `diffctx . --diff --mode locate` = impact of your uncommitted change. The MCP tool takes it as `mode="locate"` |
98
+ | `--mode` | `pack` | `locate` emits the same ranked selection as compact `diffctx.locate.v1` JSON — path, lines, score, provenance reasons, a blast-radius `summary` and per-item impact `group` (`test`/`type`/`config`), NO source bodies. Adds a `coverage` block naming what the run could not see (`unparsed_files`, `zero_edge_files`, `ppr_truncated`, `next_up`, a heuristic `confidence`) and an `overflow` ranking of what the budget left behind — omitted entirely when there is nothing to disclose. `impact` answers, under 2k tokens, what the change reaches outside its diff: callers in files the diff does not touch, whether a test guards each, cross-commit overlap, and the public API and schema changes (text by default, `diffctx.impact.v1` JSON with `-f json`). The MCP tool takes both as `mode` |
99
99
 
100
100
  Every JSON/YAML artifact opens with `schema: diffctx.context.v1` and validates
101
101
  against [`schemas/diffctx.context.v1.json`](schemas/diffctx.context.v1.json),
@@ -32,7 +32,10 @@ static FN_DEF_RE: Lazy<Regex> = Lazy::new(|| {
32
32
  });
33
33
  static TYPE_REF_RE: Lazy<Regex> = Lazy::new(|| Regex::new(r"\b([A-Z]\w*)\b").unwrap());
34
34
  static FN_CALL_RE: Lazy<Regex> = Lazy::new(|| Regex::new(r"\b([a-z_]\w+)\s*[(<]").unwrap());
35
- static PATH_CALL_RE: Lazy<Regex> = Lazy::new(|| Regex::new(r"\b(\w+)::(\w+)").unwrap());
35
+ /// Whole `a::b::c` paths; every adjacent pair is a (module, symbol) call so
36
+ /// `crate::pricing::total(..)` names `pricing::total` and not only
37
+ /// `crate::pricing`, which a pairwise regex stopped at.
38
+ static PATH_RE: Lazy<Regex> = Lazy::new(|| Regex::new(r"\b\w+(?:::\w+)+").unwrap());
36
39
  static IMPL_RE: Lazy<Regex> =
37
40
  Lazy::new(|| Regex::new(r"(?m)^\s*impl(?:<[^>]*>)?\s+(\w+)\s+for\s+(\w+)").unwrap());
38
41
  static PUB_USE_RE: Lazy<Regex> = Lazy::new(|| Regex::new(r"(?m)^\s*pub\s+use\s+([\w:]+)").unwrap());
@@ -107,9 +110,15 @@ fn extract_references(content: &str) -> References {
107
110
  fn_calls.insert(name.to_string());
108
111
  }
109
112
  }
110
- let path_calls: FxHashSet<(String, String)> = PATH_CALL_RE
111
- .captures_iter(content)
112
- .map(|c| (c[1].to_string(), c[2].to_string()))
113
+ let path_calls: FxHashSet<(String, String)> = PATH_RE
114
+ .find_iter(content)
115
+ .flat_map(|m| {
116
+ let segments: Vec<&str> = m.as_str().split("::").collect();
117
+ segments
118
+ .windows(2)
119
+ .map(|w| (w[0].to_string(), w[1].to_string()))
120
+ .collect::<Vec<_>>()
121
+ })
113
122
  .collect();
114
123
  References {
115
124
  type_refs,