cc-transcript 14.46.13__tar.gz → 14.46.15__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 (257) hide show
  1. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/PKG-INFO +1 -1
  2. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/snapshot_schema/request.schema.json +115 -0
  3. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/pyproject.toml +1 -1
  4. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/query.rs +10 -1
  5. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot.rs +13 -9
  6. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_codec.rs +31 -0
  7. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_index_allocations.rs +31 -3
  8. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_prepared.rs +135 -0
  9. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_prepared_service.rs +1 -0
  10. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_projection.rs +20 -1
  11. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_regressions.rs +58 -5
  12. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/types.rs +44 -2
  13. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/Cargo.lock +0 -0
  14. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/Cargo.toml +0 -0
  15. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/LICENSE +0 -0
  16. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/README.md +0 -0
  17. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/__init__.py +0 -0
  18. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/__init__.pyi +0 -0
  19. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/_native.pyi +0 -0
  20. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/activity.py +0 -0
  21. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/activity_probe.py +0 -0
  22. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/builders.py +0 -0
  23. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/codex.py +0 -0
  24. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/command.py +0 -0
  25. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/context.py +0 -0
  26. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/corrections.py +0 -0
  27. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/cost.py +0 -0
  28. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/decision_store.py +0 -0
  29. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/decisions.py +0 -0
  30. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/discovery.py +0 -0
  31. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/disktruth.py +0 -0
  32. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/evidence.py +0 -0
  33. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/extract/__init__.py +0 -0
  34. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/extract/correct.py +0 -0
  35. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/facts.py +0 -0
  36. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/filterspec.py +0 -0
  37. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/heartbeats.py +0 -0
  38. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/ids.py +0 -0
  39. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/judge/__init__.py +0 -0
  40. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/judge/llm.py +0 -0
  41. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/judge/similar.py +0 -0
  42. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/judge/verdicts.py +0 -0
  43. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/ledger.py +0 -0
  44. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/literals.py +0 -0
  45. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/mining/__init__.py +0 -0
  46. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/mining/candidates.py +0 -0
  47. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/mining/confidence.py +0 -0
  48. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/mining/engine.py +0 -0
  49. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/mining/formats.py +0 -0
  50. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/mining/sampling.py +0 -0
  51. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/mining/signals.py +0 -0
  52. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/mining/sourcekind.py +0 -0
  53. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/mining/spec.py +0 -0
  54. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/mining/store.py +0 -0
  55. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/models.py +0 -0
  56. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/nlp.py +0 -0
  57. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/notifications.py +0 -0
  58. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/parser.py +0 -0
  59. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/py.typed +0 -0
  60. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/query.py +0 -0
  61. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/render.py +0 -0
  62. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/sentiment/__init__.py +0 -0
  63. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/sentiment/buckets.py +0 -0
  64. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
  65. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
  66. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
  67. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/sentiment/engine.py +0 -0
  68. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/sentiment/lexicon.py +0 -0
  69. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/sentiment/scorespec.py +0 -0
  70. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/snapshot_schema/config.schema.json +0 -0
  71. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/snapshot_schema/context.schema.json +0 -0
  72. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/snapshot_schema/response.schema.json +0 -0
  73. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
  74. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/snapshots.py +0 -0
  75. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/synthetic.py +0 -0
  76. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/tools.py +0 -0
  77. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/cc_transcript/watch.py +0 -0
  78. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/cli/Cargo.toml +0 -0
  79. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/cli/src/commands/blame.rs +0 -0
  80. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/cli/src/commands/corpus.rs +0 -0
  81. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/cli/src/commands/corrections.rs +0 -0
  82. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/cli/src/commands/digest.rs +0 -0
  83. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/cli/src/commands/facts.rs +0 -0
  84. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/cli/src/commands/grep.rs +0 -0
  85. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/cli/src/commands/list.rs +0 -0
  86. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/cli/src/commands/mod.rs +0 -0
  87. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
  88. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/cli/src/commands/show.rs +0 -0
  89. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/cli/src/commands/slice.rs +0 -0
  90. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/cli/src/commands/stats.rs +0 -0
  91. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/cli/src/commands/watch.rs +0 -0
  92. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/cli/src/lib.rs +0 -0
  93. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/cli/src/output.rs +0 -0
  94. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/cli/src/target.rs +0 -0
  95. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/cli/src/timearg.rs +0 -0
  96. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/Cargo.toml +0 -0
  97. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/benches/parse.rs +0 -0
  98. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/benches/render.rs +0 -0
  99. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/benches/toolcall.rs +0 -0
  100. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/build.rs +0 -0
  101. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/activity.rs +0 -0
  102. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/actor.rs +0 -0
  103. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/blame.rs +0 -0
  104. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/buckets.rs +0 -0
  105. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/codex/discovery.rs +0 -0
  106. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/codex/lower.rs +0 -0
  107. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/codex/mod.rs +0 -0
  108. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/codex/parse.rs +0 -0
  109. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/codex/probe.rs +0 -0
  110. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/codex/protocol.rs +0 -0
  111. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/codex/review_continuation.rs +0 -0
  112. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/codex/types.rs +0 -0
  113. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/command.rs +0 -0
  114. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/context.rs +0 -0
  115. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/corrections.rs +0 -0
  116. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/cost.rs +0 -0
  117. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/discovery.rs +0 -0
  118. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/facts.rs +0 -0
  119. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/feedback.rs +0 -0
  120. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/filter.rs +0 -0
  121. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/gateway.rs +0 -0
  122. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/ids.rs +0 -0
  123. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/judge.rs +0 -0
  124. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/lib.rs +0 -0
  125. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/literals/command.rs +0 -0
  126. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/literals/corrections.rs +0 -0
  127. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/literals/feedback.rs +0 -0
  128. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/literals/mining.rs +0 -0
  129. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/literals/mod.rs +0 -0
  130. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/literals/protocol.rs +0 -0
  131. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/mining.rs +0 -0
  132. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/mining_index.rs +0 -0
  133. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/notifications.rs +0 -0
  134. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/parse.rs +0 -0
  135. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/protocol.rs +0 -0
  136. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/pystr.rs +0 -0
  137. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/render.rs +0 -0
  138. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/request_body.rs +0 -0
  139. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/rng.rs +0 -0
  140. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/scan.rs +0 -0
  141. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/scan_checkpoint.rs +0 -0
  142. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/scan_grep.rs +0 -0
  143. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/scan_grep_stream.rs +0 -0
  144. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/scan_grep_stream_tests.rs +0 -0
  145. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/scan_index.rs +0 -0
  146. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/scan_projection.rs +0 -0
  147. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/scan_regressions.rs +0 -0
  148. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/scan_stream.rs +0 -0
  149. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/schema.rs +0 -0
  150. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_activity.rs +0 -0
  151. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_admission_report_tests.rs +0 -0
  152. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_cache.rs +0 -0
  153. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_cache_tests.rs +0 -0
  154. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_catalog.rs +0 -0
  155. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_catalog_owner.rs +0 -0
  156. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_catalog_tests.rs +0 -0
  157. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_codex_append.rs +0 -0
  158. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_common_borrowed_parent_tests.rs +0 -0
  159. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_compact_codex.rs +0 -0
  160. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_compact_codex_tests.rs +0 -0
  161. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_direct_tail.rs +0 -0
  162. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_direct_tail_tests.rs +0 -0
  163. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_graph_anchor_tests.rs +0 -0
  164. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_graph_validation_tests.rs +0 -0
  165. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_hydrate_budget_tests.rs +0 -0
  166. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_hydration_observations.rs +0 -0
  167. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_input.rs +0 -0
  168. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_interaction_api.rs +0 -0
  169. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_interaction_api_tests.rs +0 -0
  170. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_interactions.rs +0 -0
  171. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_interactions_tests.rs +0 -0
  172. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_labels.rs +0 -0
  173. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_ledger.rs +0 -0
  174. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_ledger_tests.rs +0 -0
  175. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_load_charge_audit_tests.rs +0 -0
  176. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_load_charge_work_tests.rs +0 -0
  177. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_membership_progress.rs +0 -0
  178. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_membership_progress_controls.rs +0 -0
  179. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_membership_progress_tests.rs +0 -0
  180. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_memory.rs +0 -0
  181. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_owned.rs +0 -0
  182. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_persistent.rs +0 -0
  183. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_prepared_disk.rs +0 -0
  184. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_publication_shared_admission_tests.rs +0 -0
  185. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_query_hydration_tests.rs +0 -0
  186. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_raw_materialization.rs +0 -0
  187. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_raw_projection.rs +0 -0
  188. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_raw_projection_tests.rs +0 -0
  189. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_raw_scope.rs +0 -0
  190. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_raw_scope_tests.rs +0 -0
  191. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_raw_tail_tests.rs +0 -0
  192. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_raw_window.rs +0 -0
  193. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_registered_review_tests.rs +0 -0
  194. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_reply_resume_tests.rs +0 -0
  195. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_review.rs +0 -0
  196. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_review_admission_tests.rs +0 -0
  197. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_review_context.rs +0 -0
  198. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_review_reader.rs +0 -0
  199. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_review_source.rs +0 -0
  200. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_root_warm.rs +0 -0
  201. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_sidechain_absence.rs +0 -0
  202. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_sidechain_absence_tests.rs +0 -0
  203. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_skill_demand_controls.rs +0 -0
  204. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_skill_demand_tests.rs +0 -0
  205. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_skill_framing.rs +0 -0
  206. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_skills.rs +0 -0
  207. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_source_cache_index_tests.rs +0 -0
  208. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_spine.rs +0 -0
  209. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_spine_tests.rs +0 -0
  210. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_symlink_proof.rs +0 -0
  211. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/snapshot_text.rs +0 -0
  212. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/sqlite.rs +0 -0
  213. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/toolcall.rs +0 -0
  214. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/value.rs +0 -0
  215. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/src/watch.rs +0 -0
  216. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/tests/persistent_allocation_model.rs +0 -0
  217. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
  218. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/core/tests/std_allocation_model.rs +0 -0
  219. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/Cargo.toml +0 -0
  220. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/build.rs +0 -0
  221. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
  222. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/actor_bridge.rs +0 -0
  223. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/bin/stub_gen.rs +0 -0
  224. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/codex.rs +0 -0
  225. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/command.rs +0 -0
  226. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/context.rs +0 -0
  227. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/corrections.rs +0 -0
  228. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/discovery.rs +0 -0
  229. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/feedback.rs +0 -0
  230. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/judge.rs +0 -0
  231. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/lexicon.rs +0 -0
  232. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/lib.rs +0 -0
  233. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/mining.rs +0 -0
  234. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/nlp.rs +0 -0
  235. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/python.rs +0 -0
  236. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/render.rs +0 -0
  237. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/score.rs +0 -0
  238. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/snapshot_decode.rs +0 -0
  239. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/snapshots.rs +0 -0
  240. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/snapshots_registered_review.rs +0 -0
  241. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/sqlite.rs +0 -0
  242. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/toolcall.rs +0 -0
  243. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/views/attachment.rs +0 -0
  244. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/views/blocks.rs +0 -0
  245. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/views/command.rs +0 -0
  246. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/views/convert.rs +0 -0
  247. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/views/dunder.rs +0 -0
  248. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/views/events.rs +0 -0
  249. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/views/meta.rs +0 -0
  250. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/views/mod.rs +0 -0
  251. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/views/print.rs +0 -0
  252. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/views/store.rs +0 -0
  253. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/views/system.rs +0 -0
  254. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/views/toolcall.rs +0 -0
  255. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/views/toolresult.rs +0 -0
  256. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/views/transcript.rs +0 -0
  257. {cc_transcript-14.46.13 → cc_transcript-14.46.15}/rust/crates/py/src/watch.rs +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cc-transcript
3
- Version: 14.46.13
3
+ Version: 14.46.15
4
4
  Classifier: Development Status :: 3 - Alpha
5
5
  Classifier: Environment :: Console
6
6
  Classifier: Intended Audience :: Developers
@@ -1525,6 +1525,60 @@
1525
1525
  "title": "PreparedRegexPredicate",
1526
1526
  "type": "object"
1527
1527
  },
1528
+ "PreparedSourceEditPredicate": {
1529
+ "additionalProperties": false,
1530
+ "properties": {
1531
+ "exclude_prefixes": {
1532
+ "items": {
1533
+ "maxLength": 1048576,
1534
+ "type": "string"
1535
+ },
1536
+ "maxItems": 256,
1537
+ "title": "Exclude Prefixes",
1538
+ "type": "array"
1539
+ },
1540
+ "exclude_suffixes": {
1541
+ "items": {
1542
+ "maxLength": 1048576,
1543
+ "type": "string"
1544
+ },
1545
+ "maxItems": 256,
1546
+ "title": "Exclude Suffixes",
1547
+ "type": "array"
1548
+ },
1549
+ "kind": {
1550
+ "const": "has_source_edit",
1551
+ "title": "Kind",
1552
+ "type": "string"
1553
+ },
1554
+ "root": {
1555
+ "anyOf": [
1556
+ {
1557
+ "maxLength": 1048576,
1558
+ "type": "string"
1559
+ },
1560
+ {
1561
+ "type": "null"
1562
+ }
1563
+ ],
1564
+ "title": "Root"
1565
+ },
1566
+ "subagents": {
1567
+ "const": true,
1568
+ "title": "Subagents",
1569
+ "type": "boolean"
1570
+ }
1571
+ },
1572
+ "required": [
1573
+ "kind",
1574
+ "root",
1575
+ "exclude_suffixes",
1576
+ "exclude_prefixes",
1577
+ "subagents"
1578
+ ],
1579
+ "title": "PreparedSourceEditPredicate",
1580
+ "type": "object"
1581
+ },
1528
1582
  "PreparedToolPredicate": {
1529
1583
  "additionalProperties": false,
1530
1584
  "properties": {
@@ -1751,6 +1805,7 @@
1751
1805
  "has_read_glob": "#/$defs/PreparedGlobPredicate",
1752
1806
  "has_skill": "#/$defs/PreparedListPredicate",
1753
1807
  "has_skill_suffix": "#/$defs/PreparedListPredicate",
1808
+ "has_source_edit": "#/$defs/PreparedSourceEditPredicate",
1754
1809
  "has_tool": "#/$defs/PreparedToolPredicate"
1755
1810
  },
1756
1811
  "propertyName": "kind"
@@ -1771,6 +1826,9 @@
1771
1826
  {
1772
1827
  "$ref": "#/$defs/PreparedGlobPredicate"
1773
1828
  },
1829
+ {
1830
+ "$ref": "#/$defs/PreparedSourceEditPredicate"
1831
+ },
1774
1832
  {
1775
1833
  "$ref": "#/$defs/PreparedOverridePredicate"
1776
1834
  },
@@ -1881,6 +1939,7 @@
1881
1939
  "has_read_glob": "#/$defs/ListPredicate",
1882
1940
  "has_skill": "#/$defs/ListPredicate",
1883
1941
  "has_skill_suffix": "#/$defs/ListPredicate",
1942
+ "has_source_edit": "#/$defs/SourceEditPredicate",
1884
1943
  "has_tool": "#/$defs/ToolPredicate",
1885
1944
  "instruction_turns": "#/$defs/Page",
1886
1945
  "interaction_keys": "#/$defs/InteractionKeys",
@@ -1911,6 +1970,9 @@
1911
1970
  {
1912
1971
  "$ref": "#/$defs/ListPredicate"
1913
1972
  },
1973
+ {
1974
+ "$ref": "#/$defs/SourceEditPredicate"
1975
+ },
1914
1976
  {
1915
1977
  "$ref": "#/$defs/OverridePredicate"
1916
1978
  },
@@ -2394,6 +2456,59 @@
2394
2456
  "title": "SignalTexts",
2395
2457
  "type": "object"
2396
2458
  },
2459
+ "SourceEditPredicate": {
2460
+ "additionalProperties": false,
2461
+ "properties": {
2462
+ "exclude_prefixes": {
2463
+ "items": {
2464
+ "maxLength": 1048576,
2465
+ "type": "string"
2466
+ },
2467
+ "maxItems": 256,
2468
+ "title": "Exclude Prefixes",
2469
+ "type": "array"
2470
+ },
2471
+ "exclude_suffixes": {
2472
+ "items": {
2473
+ "maxLength": 1048576,
2474
+ "type": "string"
2475
+ },
2476
+ "maxItems": 256,
2477
+ "title": "Exclude Suffixes",
2478
+ "type": "array"
2479
+ },
2480
+ "kind": {
2481
+ "const": "has_source_edit",
2482
+ "title": "Kind",
2483
+ "type": "string"
2484
+ },
2485
+ "root": {
2486
+ "anyOf": [
2487
+ {
2488
+ "maxLength": 1048576,
2489
+ "type": "string"
2490
+ },
2491
+ {
2492
+ "type": "null"
2493
+ }
2494
+ ],
2495
+ "title": "Root"
2496
+ },
2497
+ "subagents": {
2498
+ "title": "Subagents",
2499
+ "type": "boolean"
2500
+ }
2501
+ },
2502
+ "required": [
2503
+ "kind",
2504
+ "root",
2505
+ "exclude_suffixes",
2506
+ "exclude_prefixes",
2507
+ "subagents"
2508
+ ],
2509
+ "title": "SourceEditPredicate",
2510
+ "type": "object"
2511
+ },
2397
2512
  "Stats": {
2398
2513
  "additionalProperties": false,
2399
2514
  "properties": {
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "cc-transcript"
3
- version = "14.46.13" # informational — releases stamp the version from the git tag
3
+ version = "14.46.15" # informational — releases stamp the version from the git tag
4
4
  description = "Grep every Claude Code session you've ever run."
5
5
  readme = "README.md"
6
6
  license = "PolyForm-Noncommercial-1.0.0"
@@ -10,6 +10,7 @@
10
10
  //! methods port the self-session branch only (sidechain recursion is `subagents=False`).
11
11
 
12
12
  use std::collections::HashMap;
13
+ use std::sync::LazyLock;
13
14
 
14
15
  use regex::Regex;
15
16
  use sonic_rs::Value;
@@ -140,7 +141,15 @@ impl FileRef {
140
141
 
141
142
  /// Whether the path names a Python test file.
142
143
  pub fn is_test(&self) -> bool {
143
- self.matches(&TEST_PATTERNS)
144
+ static PATTERNS: LazyLock<[Regex; 3]> = LazyLock::new(|| {
145
+ TEST_PATTERNS.map(|glob| {
146
+ Regex::new(&glob_to_regex(glob)).expect("translated glob is valid regex")
147
+ })
148
+ });
149
+ let name = pure_name(&self.path);
150
+ PATTERNS
151
+ .iter()
152
+ .any(|pattern| pattern.is_match(&self.path) || pattern.is_match(name))
144
153
  }
145
154
 
146
155
  /// The file extension including the leading dot (e.g. `.py`), or `""`.
@@ -14600,16 +14600,20 @@ mod tests {
14600
14600
  id: &str,
14601
14601
  owner: &Value,
14602
14602
  ) -> Arc<TranscriptSnapshot> {
14603
- let response = finish(
14604
- store,
14605
- store.test_request(
14606
- &classifier_acquire(path, id, 1024 * 1024),
14603
+ loop {
14604
+ let response = finish(
14605
+ store,
14606
+ store.test_request(
14607
+ &classifier_acquire(path, id, 1024 * 1024),
14608
+ owner,
14609
+ &Cancellation::default(),
14610
+ ),
14607
14611
  owner,
14608
- &Cancellation::default(),
14609
- ),
14610
- owner,
14611
- );
14612
- store.pin(handle(&response), owner).unwrap()
14612
+ );
14613
+ if response["status"].as_str() != Some("changed") {
14614
+ return store.pin(handle(&response), owner).unwrap();
14615
+ }
14616
+ }
14613
14617
  }
14614
14618
 
14615
14619
  fn users(range: Range<usize>) -> String {
@@ -939,6 +939,37 @@ mod tests {
939
939
  )
940
940
  }
941
941
 
942
+ #[test]
943
+ fn event_records_elide_base64_bodies_and_keep_the_rest() {
944
+ let body = "A".repeat(MAX_RECORD_BYTES);
945
+ let elided = format!("<elided {} bytes>", body.len());
946
+ let image = json!({"type":"image","source":{"type":"base64","media_type":"image/png","data":&body}});
947
+ let events = [
948
+ event(
949
+ json!({"type":"api-request-blob","hash":"h","data":"kept","message":{"content":[
950
+ {"type":"text","text":"kept"},
951
+ {"type":"tool_result","content":[image]},
952
+ ]}}),
953
+ ),
954
+ event(
955
+ json!({"type":"user","uuid":"u","sessionId":"s","timestamp":"2026-01-02T03:04:05Z",
956
+ "toolUseResult":{"data":"kept","file":{"base64":&body,"type":"image/png"}},
957
+ "message":{"content":[{"type":"tool_result","tool_use_id":"t","content":"kept"}]}}),
958
+ ),
959
+ event(
960
+ json!({"type":"attachment","uuid":"a","sessionId":"s","timestamp":"2026-01-02T03:04:05Z",
961
+ "attachment":{"type":"file","data":"kept","content":{"file":{"base64":&body}}}}),
962
+ ),
963
+ ];
964
+ for (index, entry) in events.iter().enumerate() {
965
+ let record = encode(&EventWire::new(index, entry), MAX_RECORD_BYTES).unwrap();
966
+ assert!(record.contains(&elided), "{record}");
967
+ assert!(record.contains("kept"), "{record}");
968
+ assert!(!record.contains("AAAA"), "{record}");
969
+ decode_events(&[record], MAX_RECORD_BYTES).unwrap();
970
+ }
971
+ }
972
+
942
973
  #[test]
943
974
  fn native_events_roundtrip_every_variant_and_all_serialized_fields() {
944
975
  let records = vec![
@@ -4,7 +4,7 @@ use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
4
4
  use std::sync::{Arc, Mutex, Weak};
5
5
 
6
6
  use crate::snapshot_ledger::{
7
- arc_bytes, LedgerEvent, LedgerHook, ReleaseQueue, MUTEX_STORAGE_BYTES,
7
+ arc_bytes, hashbrown_tier, LedgerEvent, LedgerHook, ReleaseQueue, MUTEX_STORAGE_BYTES,
8
8
  };
9
9
  use crate::snapshot_persistent::SLOTS_PER_ENTRY;
10
10
 
@@ -224,7 +224,10 @@ impl AllocationSet {
224
224
  pending: Some(pending),
225
225
  },
226
226
  );
227
- state.owners_capacity = state.owners_capacity.max(state.owners.capacity());
227
+ state.owners_capacity = state.owners_capacity.max(hashbrown_tier(
228
+ state.owners.len(),
229
+ size_of::<(usize, RegistryOwner)>(),
230
+ ));
228
231
  state.queue.push((id, Arc::downgrade(&owner)));
229
232
  self.registry
230
233
  .pending_bytes
@@ -321,7 +324,7 @@ impl AllocationSet {
321
324
  } else {
322
325
  0
323
326
  };
324
- let table = if state.owners.len().saturating_add(inserts) > state.owners.capacity() {
327
+ let table = if state.owners.len().saturating_add(inserts) > state.owners_capacity {
325
328
  state
326
329
  .owners_capacity
327
330
  .saturating_add(inserts)
@@ -487,6 +490,31 @@ mod tests {
487
490
  assert_eq!(set.pending_bytes(), 0);
488
491
  }
489
492
 
493
+ #[test]
494
+ fn registry_charge_is_identical_across_hash_seeds_under_churn() {
495
+ let churned = || {
496
+ let mut set = AllocationSet::default();
497
+ let (mut next, mut first) = (0, 0);
498
+ for (inserts, removes) in [(20, 12), (10, 9), (12, 10), (9, 7), (10, 9), (11, 8)] {
499
+ for _ in 0..inserts {
500
+ set.insert(next, 16);
501
+ next += 1;
502
+ let state = set.registry.state.lock().unwrap();
503
+ assert!(state.owners.capacity() <= 2 * state.owners_capacity);
504
+ }
505
+ for _ in 0..removes {
506
+ set.remove(first);
507
+ first += 1;
508
+ }
509
+ }
510
+ set.registry_metadata_allocation().1
511
+ };
512
+ let charge = churned();
513
+ for _ in 0..256 {
514
+ assert_eq!(churned(), charge);
515
+ }
516
+ }
517
+
490
518
  #[test]
491
519
  fn dropping_unpublished_members_releases_pending_bytes_and_registry_identity() {
492
520
  let mut set = AllocationSet::default();
@@ -1,3 +1,6 @@
1
+ use std::collections::{HashMap, HashSet};
2
+ use std::path::{Component, Path, PathBuf};
3
+
1
4
  use regex::Regex;
2
5
  use sonic_rs::{json, JsonContainerTrait, JsonValueTrait, Value};
3
6
 
@@ -48,6 +51,101 @@ fn call_paths(call: &Value) -> Result<&sonic_rs::Array, SnapshotError> {
48
51
  .ok_or_else(|| invalid("prepared call paths missing"))
49
52
  }
50
53
 
54
+ fn resolved(path: &Path) -> PathBuf {
55
+ path.ancestors()
56
+ .find_map(|ancestor| {
57
+ Some((
58
+ std::fs::canonicalize(ancestor).ok()?,
59
+ path.strip_prefix(ancestor).ok()?,
60
+ ))
61
+ })
62
+ .map_or_else(
63
+ || path.to_path_buf(),
64
+ |(base, rest)| {
65
+ rest.components().fold(base, |mut resolved, component| {
66
+ match component {
67
+ Component::ParentDir => {
68
+ resolved.pop();
69
+ }
70
+ Component::Normal(name) => resolved.push(name),
71
+ _ => {}
72
+ }
73
+ resolved
74
+ })
75
+ },
76
+ )
77
+ }
78
+
79
+ pub(crate) struct SourceEditFilter<'q> {
80
+ root: Option<PathBuf>,
81
+ exclude_suffixes: Vec<&'q str>,
82
+ exclude_prefixes: Vec<&'q str>,
83
+ }
84
+
85
+ impl<'q> SourceEditFilter<'q> {
86
+ pub(crate) fn of(query: &'q Value) -> Result<Self, SnapshotError> {
87
+ let root = query
88
+ .get("root")
89
+ .ok_or_else(|| invalid("missing or invalid root"))?;
90
+ Ok(Self {
91
+ root: if root.is_null() {
92
+ None
93
+ } else {
94
+ Some(resolved(Path::new(string(query, "root")?)))
95
+ },
96
+ exclude_suffixes: strings(query, "exclude_suffixes")?,
97
+ exclude_prefixes: strings(query, "exclude_prefixes")?,
98
+ })
99
+ }
100
+
101
+ pub(crate) fn matches(&self, path: &str) -> bool {
102
+ let file = FileRef::new(path);
103
+ !self
104
+ .exclude_suffixes
105
+ .iter()
106
+ .any(|suffix| *suffix == file.suffix())
107
+ && !file.under(&self.exclude_prefixes)
108
+ && !file.is_test()
109
+ && self.in_project(path)
110
+ }
111
+
112
+ fn in_project(&self, path: &str) -> bool {
113
+ let path = Path::new(path);
114
+ !path.is_absolute()
115
+ || self
116
+ .root
117
+ .as_ref()
118
+ .is_none_or(|root| resolved(path).starts_with(root))
119
+ }
120
+ }
121
+
122
+ fn any_source_edit(
123
+ calls: &sonic_rs::Array,
124
+ filter: &SourceEditFilter<'_>,
125
+ ) -> Result<bool, SnapshotError> {
126
+ let mut edit_tools: HashMap<&str, bool> = HashMap::new();
127
+ let mut seen: HashSet<&str> = HashSet::new();
128
+ for call in calls.iter() {
129
+ let Some(tool) = call_name(call) else {
130
+ continue;
131
+ };
132
+ if !*edit_tools
133
+ .entry(tool)
134
+ .or_insert_with(|| tool_name_matches(tool, "Edit|Write"))
135
+ {
136
+ continue;
137
+ }
138
+ if call_paths(call)?
139
+ .iter()
140
+ .filter_map(Value::as_str)
141
+ .any(|path| seen.insert(path) && filter.matches(path))
142
+ {
143
+ return Ok(true);
144
+ }
145
+ }
146
+ Ok(false)
147
+ }
148
+
51
149
  #[derive(serde::Serialize, serde::Deserialize)]
52
150
  pub struct OverrideEvent {
53
151
  pub text: String,
@@ -427,6 +525,7 @@ impl PreparedFacts {
427
525
  .is_some_and(|path| FileRef::new(path).matches(&globs))
428
526
  })
429
527
  }
528
+ "has_source_edit" => any_source_edit(calls, &SourceEditFilter::of(query)?)?,
430
529
  "has_command" => {
431
530
  #[cfg(feature = "command")]
432
531
  {
@@ -563,4 +662,40 @@ mod tests {
563
662
  assert!(!restored.serves(FactsNeed::Index));
564
663
  assert!(!restored.serves(FactsNeed::Full));
565
664
  }
665
+
666
+ #[test]
667
+ fn source_edit_filter_gives_the_answers_python_is_pinned_to() {
668
+ let table: Value = sonic_rs::from_str(include_str!(
669
+ "../../../../tests/testdata/source_edit_cases.json"
670
+ ))
671
+ .unwrap();
672
+ for case in table["cases"].as_array().unwrap().iter() {
673
+ let query = json!({"root":case["root"],"exclude_suffixes":table["exclude_suffixes"],
674
+ "exclude_prefixes":table["exclude_prefixes"]});
675
+ assert_eq!(
676
+ SourceEditFilter::of(&query)
677
+ .unwrap()
678
+ .matches(case["path"].as_str().unwrap()),
679
+ case["expected"].as_bool().unwrap(),
680
+ "{case:?}"
681
+ );
682
+ }
683
+ }
684
+
685
+ #[cfg(unix)]
686
+ #[test]
687
+ fn source_edit_filter_resolves_symlinks_like_python_path_resolve() {
688
+ let directory = std::env::temp_dir().join(format!("cc-source-edit-{}", std::process::id()));
689
+ let real = directory.join("real");
690
+ let link = directory.join("link");
691
+ std::fs::create_dir_all(&real).unwrap();
692
+ std::os::unix::fs::symlink(&real, &link).unwrap();
693
+ let query = json!({"root":link.to_str().unwrap(),"exclude_suffixes":Vec::<&str>::new(),
694
+ "exclude_prefixes":Vec::<&str>::new()});
695
+ let filter = SourceEditFilter::of(&query).unwrap();
696
+ assert!(filter.matches(real.join("app.py").to_str().unwrap()));
697
+ assert!(filter.matches(link.join("missing/app.py").to_str().unwrap()));
698
+ assert!(!filter.matches(directory.join("app.py").to_str().unwrap()));
699
+ std::fs::remove_dir_all(&directory).unwrap();
700
+ }
566
701
  }
@@ -2998,6 +2998,7 @@ impl NativeStore {
2998
2998
  | "has_tool"
2999
2999
  | "has_command"
3000
3000
  | "has_edit_to"
3001
+ | "has_source_edit"
3001
3002
  | "has_read"
3002
3003
  | "has_skill"
3003
3004
  | "has_override"
@@ -16,7 +16,7 @@ use crate::snapshot::{
16
16
  };
17
17
  use crate::snapshot_codec::{self, EventWire, FileRefRecord, ToolUseWire, TurnWire, TURN_CODEC};
18
18
  use crate::snapshot_ledger::hashbrown_tier;
19
- use crate::snapshot_prepared::FactsNeed;
19
+ use crate::snapshot_prepared::{FactsNeed, SourceEditFilter};
20
20
  use crate::toolcall::{
21
21
  expand_tool_names, tool_name_matches, with_registry, ToolCall, ToolRegistrySnapshot,
22
22
  };
@@ -2216,6 +2216,7 @@ fn query(work: &mut Work, request: &Value, next: usize) -> Result<Projection, Sn
2216
2216
  let name = match kind {
2217
2217
  "has_tool" => Some(string(query, "pattern")?),
2218
2218
  "has_read" | "has_read_glob" => Some("Read"),
2219
+ "has_source_edit" => Some("Edit|Write"),
2219
2220
  "has_skill" | "has_skill_suffix" => Some("Skill"),
2220
2221
  "has_command_regex" => Some("Bash"),
2221
2222
  "has_pending_tool" => {
@@ -2240,6 +2241,18 @@ fn query(work: &mut Work, request: &Value, next: usize) -> Result<Projection, Sn
2240
2241
  "has_tool" => scalar(json!(session.has_tool(pattern()?)), work),
2241
2242
  "has_read" => scalar(json!(session.has_read(pattern()?)), work),
2242
2243
  "has_edit_to" => scalar(json!(session.has_edit_to(&values()?)), work),
2244
+ "has_source_edit" => {
2245
+ let filter = SourceEditFilter::of(query)?;
2246
+ scalar(
2247
+ json!(session
2248
+ .tool_calls()
2249
+ .named("Edit|Write")
2250
+ .files()
2251
+ .iter()
2252
+ .any(|file| filter.matches(&file.path))),
2253
+ work,
2254
+ )
2255
+ }
2243
2256
  "has_skill" => scalar(json!(session.has_skill(&values()?)), work),
2244
2257
  "has_edit" => scalar(json!(!session.edited_files().is_empty()), work),
2245
2258
  "has_error" => scalar(json!(session.count_failures() != 0), work),
@@ -3494,6 +3507,12 @@ mod tests {
3494
3507
  json!({"kind":"has_read","pattern":"example.rs","subagents":true}),
3495
3508
  json!({"kind":"has_read_glob","values":["**/*.rs"],"subagents":true}),
3496
3509
  json!({"kind":"has_edit_to","values":["**/change.rs"],"subagents":true}),
3510
+ json!({"kind":"has_source_edit","root":null,"exclude_suffixes":[".md"],
3511
+ "exclude_prefixes":["docs"],"subagents":true}),
3512
+ json!({"kind":"has_source_edit","root":null,"exclude_suffixes":[".rs"],
3513
+ "exclude_prefixes":["docs"],"subagents":true}),
3514
+ json!({"kind":"has_source_edit","root":null,"exclude_suffixes":[".md"],
3515
+ "exclude_prefixes":["src"],"subagents":true}),
3497
3516
  json!({"kind":"has_skill","values":["repo:review"],"subagents":true}),
3498
3517
  json!({"kind":"has_skill","values":["repo:failed"],"subagents":true}),
3499
3518
  json!({"kind":"has_skill_suffix","values":["review"],"subagents":true}),
@@ -644,19 +644,27 @@ struct Family {
644
644
 
645
645
  impl Family {
646
646
  fn new(store: NativeStore) -> Self {
647
- let source = RaceSource::new(
647
+ let members: Vec<(&str, String)> =
648
+ MEMBERS.iter().map(|name| (*name, member(name))).collect();
649
+ Self::with(
650
+ store,
648
651
  &[
649
652
  user("root"),
650
653
  call("root-read", "Read", json!({"file_path":"root.rs"})),
651
654
  ]
652
655
  .concat(),
653
- );
656
+ &members,
657
+ )
658
+ }
659
+
660
+ fn with(store: NativeStore, root: &str, members: &[(&str, String)]) -> Self {
661
+ let source = RaceSource::new(root);
654
662
  let owner = context(&store, &source, "observer");
655
- let members: Vec<PathBuf> = MEMBERS
663
+ let members: Vec<PathBuf> = members
656
664
  .iter()
657
- .map(|name| {
665
+ .map(|(name, contents)| {
658
666
  let path = source.directory.join(format!("{name}.jsonl"));
659
- std::fs::write(&path, member(name)).unwrap();
667
+ std::fs::write(&path, contents).unwrap();
660
668
  path
661
669
  })
662
670
  .collect();
@@ -1367,6 +1375,51 @@ fn glob_and_regex_kinds_answer_only_as_the_primary_while_the_other_eight_settle_
1367
1375
  );
1368
1376
  }
1369
1377
 
1378
+ #[test]
1379
+ fn has_source_edit_reaches_subagents_and_ignores_what_the_predicate_excludes() {
1380
+ let query = json!({"kind":"has_source_edit","root":null,"exclude_suffixes":[".md"],
1381
+ "exclude_prefixes":["docs"],"subagents":true});
1382
+ let excluded = [
1383
+ user("root"),
1384
+ call(
1385
+ "root-docs",
1386
+ "Edit",
1387
+ json!({"file_path":"docs/guide.py","old_string":"a","new_string":"b"}),
1388
+ ),
1389
+ call(
1390
+ "root-prose",
1391
+ "Write",
1392
+ json!({"file_path":"notes.md","content":"x"}),
1393
+ ),
1394
+ call(
1395
+ "root-test",
1396
+ "Write",
1397
+ json!({"file_path":"pkg/tests/test_app.py","content":"x"}),
1398
+ ),
1399
+ call("root-read", "Read", json!({"file_path":"src/app.py"})),
1400
+ ]
1401
+ .concat();
1402
+ let quiet = Family::with(swift_store(), &excluded, &[]);
1403
+ assert_eq!(
1404
+ quiet.ask(query.clone(), None)["data"],
1405
+ json!({"kind":"scalar","value":false})
1406
+ );
1407
+ let member = [
1408
+ user("member"),
1409
+ call(
1410
+ "member-write",
1411
+ "Write",
1412
+ json!({"file_path":"src/app.py","content":"x"}),
1413
+ ),
1414
+ ]
1415
+ .concat();
1416
+ let edited = Family::with(swift_store(), &excluded, &[("member", member)]);
1417
+ assert_eq!(
1418
+ edited.ask(query, None)["data"],
1419
+ json!({"kind":"scalar","value":true})
1420
+ );
1421
+ }
1422
+
1370
1423
  #[test]
1371
1424
  fn uncompilable_glob_observer_is_never_evaluated() {
1372
1425
  let glob = json!({"kind":"has_read_glob","values":["[z-a]"],"subagents":true});