cc-transcript 14.45.36__tar.gz → 14.45.38__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 (258) hide show
  1. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/Cargo.lock +70 -2
  2. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/PKG-INFO +1 -1
  3. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/_native.pyi +23 -0
  4. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/activity.py +9 -8
  5. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/models.py +9 -9
  6. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/query.py +2 -2
  7. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/render.py +7 -7
  8. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/snapshots.py +96 -0
  9. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/tools.py +4 -1
  10. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/pyproject.toml +1 -1
  11. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/cli/src/commands/grep.rs +1 -1
  12. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/Cargo.toml +1 -0
  13. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/codex/mod.rs +2 -0
  14. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/codex/parse.rs +1 -1
  15. cc_transcript-14.45.38/rust/crates/core/src/codex/review_continuation.rs +674 -0
  16. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/context.rs +18 -13
  17. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/discovery.rs +52 -0
  18. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/lib.rs +5 -0
  19. {cc_transcript-14.45.36/rust/crates/py → cc_transcript-14.45.38/rust/crates/core}/src/mining.rs +1195 -502
  20. cc_transcript-14.45.38/rust/crates/core/src/mining_index.rs +649 -0
  21. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/render.rs +16 -0
  22. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/scan.rs +25 -0
  23. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/scan_grep.rs +102 -1
  24. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/scan_grep_stream.rs +199 -57
  25. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/scan_grep_stream_tests.rs +97 -11
  26. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/scan_regressions.rs +18 -0
  27. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/scan_stream.rs +22 -0
  28. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot.rs +837 -248
  29. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_activity.rs +1179 -242
  30. cc_transcript-14.45.38/rust/crates/core/src/snapshot_cache.rs +617 -0
  31. cc_transcript-14.45.38/rust/crates/core/src/snapshot_codex_append.rs +1254 -0
  32. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_compact_codex.rs +359 -107
  33. cc_transcript-14.45.38/rust/crates/core/src/snapshot_compact_codex_tests.rs +587 -0
  34. cc_transcript-14.45.38/rust/crates/core/src/snapshot_index_allocations.rs +501 -0
  35. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_ledger.rs +182 -0
  36. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_ledger_tests.rs +37 -23
  37. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_memory.rs +448 -0
  38. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_owned.rs +96 -8
  39. cc_transcript-14.45.38/rust/crates/core/src/snapshot_persistent.rs +416 -0
  40. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_prepared_service.rs +518 -328
  41. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_query_hydration_tests.rs +308 -86
  42. cc_transcript-14.45.38/rust/crates/core/src/snapshot_registered_review_tests.rs +476 -0
  43. cc_transcript-14.45.38/rust/crates/core/src/snapshot_review.rs +648 -0
  44. cc_transcript-14.45.38/rust/crates/core/src/snapshot_review_context.rs +802 -0
  45. cc_transcript-14.45.38/rust/crates/core/src/snapshot_review_reader.rs +1194 -0
  46. cc_transcript-14.45.38/rust/crates/core/src/snapshot_review_source.rs +181 -0
  47. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_source_cache_index_tests.rs +64 -17
  48. cc_transcript-14.45.38/rust/crates/core/src/snapshot_spine_tests.rs +329 -0
  49. cc_transcript-14.45.38/rust/crates/core/src/snapshot_text.rs +795 -0
  50. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/types.rs +2 -2
  51. cc_transcript-14.45.38/rust/crates/py/src/mining.rs +310 -0
  52. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/snapshot_decode.rs +1 -1
  53. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/snapshots.rs +60 -0
  54. cc_transcript-14.45.38/rust/crates/py/src/snapshots_registered_review.rs +896 -0
  55. cc_transcript-14.45.36/rust/crates/core/src/snapshot_cache.rs +0 -352
  56. cc_transcript-14.45.36/rust/crates/core/src/snapshot_codex_append.rs +0 -578
  57. cc_transcript-14.45.36/rust/crates/core/src/snapshot_compact_codex_tests.rs +0 -503
  58. cc_transcript-14.45.36/rust/crates/core/src/snapshot_spine_tests.rs +0 -162
  59. cc_transcript-14.45.36/rust/crates/core/src/snapshot_text.rs +0 -422
  60. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/Cargo.toml +0 -0
  61. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/LICENSE +0 -0
  62. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/README.md +0 -0
  63. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/__init__.py +0 -0
  64. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/__init__.pyi +0 -0
  65. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/activity_probe.py +0 -0
  66. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/builders.py +0 -0
  67. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/codex.py +0 -0
  68. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/command.py +0 -0
  69. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/context.py +0 -0
  70. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/corrections.py +0 -0
  71. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/cost.py +0 -0
  72. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/decision_store.py +0 -0
  73. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/decisions.py +0 -0
  74. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/discovery.py +0 -0
  75. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/disktruth.py +0 -0
  76. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/evidence.py +0 -0
  77. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/extract/__init__.py +0 -0
  78. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/extract/correct.py +0 -0
  79. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/facts.py +0 -0
  80. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/filterspec.py +0 -0
  81. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/heartbeats.py +0 -0
  82. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/ids.py +0 -0
  83. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/judge/__init__.py +0 -0
  84. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/judge/llm.py +0 -0
  85. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/judge/similar.py +0 -0
  86. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/judge/verdicts.py +0 -0
  87. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/ledger.py +0 -0
  88. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/literals.py +0 -0
  89. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/mining/__init__.py +0 -0
  90. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/mining/candidates.py +0 -0
  91. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/mining/confidence.py +0 -0
  92. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/mining/engine.py +0 -0
  93. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/mining/formats.py +0 -0
  94. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/mining/sampling.py +0 -0
  95. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/mining/signals.py +0 -0
  96. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/mining/sourcekind.py +0 -0
  97. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/mining/spec.py +0 -0
  98. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/mining/store.py +0 -0
  99. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/nlp.py +0 -0
  100. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/notifications.py +0 -0
  101. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/parser.py +0 -0
  102. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/py.typed +0 -0
  103. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/sentiment/__init__.py +0 -0
  104. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/sentiment/buckets.py +0 -0
  105. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
  106. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
  107. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
  108. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/sentiment/engine.py +0 -0
  109. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/sentiment/lexicon.py +0 -0
  110. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/sentiment/scorespec.py +0 -0
  111. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/snapshot_schema/config.schema.json +0 -0
  112. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/snapshot_schema/context.schema.json +0 -0
  113. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/snapshot_schema/request.schema.json +0 -0
  114. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/snapshot_schema/response.schema.json +0 -0
  115. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
  116. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/synthetic.py +0 -0
  117. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/cc_transcript/watch.py +0 -0
  118. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/cli/Cargo.toml +0 -0
  119. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/cli/src/commands/blame.rs +0 -0
  120. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/cli/src/commands/corpus.rs +0 -0
  121. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/cli/src/commands/corrections.rs +0 -0
  122. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/cli/src/commands/digest.rs +0 -0
  123. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/cli/src/commands/facts.rs +0 -0
  124. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/cli/src/commands/list.rs +0 -0
  125. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/cli/src/commands/mod.rs +0 -0
  126. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
  127. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/cli/src/commands/show.rs +0 -0
  128. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/cli/src/commands/slice.rs +0 -0
  129. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/cli/src/commands/stats.rs +0 -0
  130. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/cli/src/commands/watch.rs +0 -0
  131. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/cli/src/lib.rs +0 -0
  132. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/cli/src/output.rs +0 -0
  133. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/cli/src/target.rs +0 -0
  134. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/cli/src/timearg.rs +0 -0
  135. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/benches/parse.rs +0 -0
  136. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/benches/render.rs +0 -0
  137. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/benches/toolcall.rs +0 -0
  138. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/build.rs +0 -0
  139. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/activity.rs +0 -0
  140. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/actor.rs +0 -0
  141. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/blame.rs +0 -0
  142. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/buckets.rs +0 -0
  143. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/codex/discovery.rs +0 -0
  144. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/codex/lower.rs +0 -0
  145. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/codex/probe.rs +0 -0
  146. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/codex/protocol.rs +0 -0
  147. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/codex/types.rs +0 -0
  148. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/command.rs +0 -0
  149. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/corrections.rs +0 -0
  150. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/cost.rs +0 -0
  151. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/facts.rs +0 -0
  152. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/feedback.rs +0 -0
  153. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/filter.rs +0 -0
  154. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/gateway.rs +0 -0
  155. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/ids.rs +0 -0
  156. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/judge.rs +0 -0
  157. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/literals/command.rs +0 -0
  158. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/literals/corrections.rs +0 -0
  159. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/literals/feedback.rs +0 -0
  160. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/literals/mining.rs +0 -0
  161. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/literals/mod.rs +0 -0
  162. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/literals/protocol.rs +0 -0
  163. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/notifications.rs +0 -0
  164. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/parse.rs +0 -0
  165. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/protocol.rs +0 -0
  166. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/pystr.rs +0 -0
  167. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/query.rs +0 -0
  168. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/request_body.rs +0 -0
  169. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/rng.rs +0 -0
  170. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/scan_checkpoint.rs +0 -0
  171. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/scan_index.rs +0 -0
  172. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/scan_projection.rs +0 -0
  173. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/schema.rs +0 -0
  174. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_admission_report_tests.rs +0 -0
  175. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_cache_tests.rs +0 -0
  176. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_catalog.rs +0 -0
  177. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_catalog_owner.rs +0 -0
  178. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_catalog_tests.rs +0 -0
  179. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_codec.rs +0 -0
  180. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_common_borrowed_parent_tests.rs +0 -0
  181. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_direct_tail.rs +0 -0
  182. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_direct_tail_tests.rs +0 -0
  183. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_graph_anchor_tests.rs +0 -0
  184. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_graph_validation_tests.rs +0 -0
  185. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_hydrate_budget_tests.rs +0 -0
  186. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_hydration_observations.rs +0 -0
  187. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_interaction_api.rs +0 -0
  188. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_interaction_api_tests.rs +0 -0
  189. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_interactions.rs +0 -0
  190. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_interactions_tests.rs +0 -0
  191. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_labels.rs +0 -0
  192. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_load_charge_audit_tests.rs +0 -0
  193. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_load_charge_work_tests.rs +0 -0
  194. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_membership_progress.rs +0 -0
  195. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_membership_progress_controls.rs +0 -0
  196. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_membership_progress_tests.rs +0 -0
  197. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_prepared.rs +0 -0
  198. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_prepared_disk.rs +0 -0
  199. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_projection.rs +0 -0
  200. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_publication_shared_admission_tests.rs +0 -0
  201. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_raw_materialization.rs +0 -0
  202. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_raw_projection.rs +0 -0
  203. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_raw_projection_tests.rs +0 -0
  204. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_raw_scope.rs +0 -0
  205. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_raw_scope_tests.rs +0 -0
  206. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_raw_tail_tests.rs +0 -0
  207. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_raw_window.rs +0 -0
  208. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_regressions.rs +0 -0
  209. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_root_warm.rs +0 -0
  210. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_sidechain_absence.rs +0 -0
  211. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_sidechain_absence_tests.rs +0 -0
  212. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_skill_demand_controls.rs +0 -0
  213. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_skill_demand_tests.rs +0 -0
  214. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_skill_framing.rs +0 -0
  215. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_skills.rs +0 -0
  216. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_spine.rs +0 -0
  217. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/snapshot_symlink_proof.rs +0 -0
  218. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/sqlite.rs +0 -0
  219. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/toolcall.rs +0 -0
  220. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/value.rs +0 -0
  221. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/src/watch.rs +0 -0
  222. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
  223. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/core/tests/std_allocation_model.rs +0 -0
  224. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/Cargo.toml +0 -0
  225. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/build.rs +0 -0
  226. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
  227. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/actor_bridge.rs +0 -0
  228. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/bin/stub_gen.rs +0 -0
  229. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/codex.rs +0 -0
  230. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/command.rs +0 -0
  231. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/context.rs +0 -0
  232. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/corrections.rs +0 -0
  233. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/discovery.rs +0 -0
  234. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/feedback.rs +0 -0
  235. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/judge.rs +0 -0
  236. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/lexicon.rs +0 -0
  237. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/lib.rs +0 -0
  238. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/nlp.rs +0 -0
  239. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/python.rs +0 -0
  240. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/render.rs +0 -0
  241. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/score.rs +0 -0
  242. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/sqlite.rs +0 -0
  243. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/toolcall.rs +0 -0
  244. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/views/attachment.rs +0 -0
  245. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/views/blocks.rs +0 -0
  246. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/views/command.rs +0 -0
  247. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/views/convert.rs +0 -0
  248. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/views/dunder.rs +0 -0
  249. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/views/events.rs +0 -0
  250. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/views/meta.rs +0 -0
  251. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/views/mod.rs +0 -0
  252. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/views/print.rs +0 -0
  253. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/views/store.rs +0 -0
  254. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/views/system.rs +0 -0
  255. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/views/toolcall.rs +0 -0
  256. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/views/toolresult.rs +0 -0
  257. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/views/transcript.rs +0 -0
  258. {cc_transcript-14.45.36 → cc_transcript-14.45.38}/rust/crates/py/src/watch.rs +0 -0
@@ -108,6 +108,12 @@ version = "1.0.103"
108
108
  source = "registry+https://github.com/rust-lang/crates.io-index"
109
109
  checksum = "2a4385e2e34eb35d6b3efe798b9eb88096925d87726c0798709bf56d9ed84af3"
110
110
 
111
+ [[package]]
112
+ name = "archery"
113
+ version = "1.2.3"
114
+ source = "registry+https://github.com/rust-lang/crates.io-index"
115
+ checksum = "33ca55ee147b1926dbea904f50fe4902494e97bc742205abbbf10c709e43815f"
116
+
111
117
  [[package]]
112
118
  name = "autocfg"
113
119
  version = "1.5.1"
@@ -177,6 +183,12 @@ version = "0.6.9"
177
183
  source = "registry+https://github.com/rust-lang/crates.io-index"
178
184
  checksum = "175812e0be2bccb6abe50bb8d566126198344f707e304f45c648fd8f2cc0365e"
179
185
 
186
+ [[package]]
187
+ name = "bytemuck"
188
+ version = "1.25.2"
189
+ source = "registry+https://github.com/rust-lang/crates.io-index"
190
+ checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797"
191
+
180
192
  [[package]]
181
193
  name = "bytes"
182
194
  version = "1.11.1"
@@ -221,6 +233,7 @@ version = "0.9.0"
221
233
  dependencies = [
222
234
  "chrono",
223
235
  "criterion",
236
+ "imbl",
224
237
  "libc",
225
238
  "memchr",
226
239
  "once_cell",
@@ -792,6 +805,27 @@ dependencies = [
792
805
  "cc",
793
806
  ]
794
807
 
808
+ [[package]]
809
+ name = "imbl"
810
+ version = "7.0.2"
811
+ source = "registry+https://github.com/rust-lang/crates.io-index"
812
+ checksum = "46bad832b9b463ed9398b8506488cc2e3b897a9d44f13af115f382aac71f4fec"
813
+ dependencies = [
814
+ "archery",
815
+ "equivalent",
816
+ "imbl-sized-chunks",
817
+ "rand_core 0.9.5",
818
+ "rand_xoshiro",
819
+ "version_check",
820
+ "wide",
821
+ ]
822
+
823
+ [[package]]
824
+ name = "imbl-sized-chunks"
825
+ version = "0.2.0"
826
+ source = "registry+https://github.com/rust-lang/crates.io-index"
827
+ checksum = "2a0813be332553f857953298749fa19549e8b61b80589757c29b4e2a804fa9c6"
828
+
795
829
  [[package]]
796
830
  name = "indexmap"
797
831
  version = "2.14.0"
@@ -1504,7 +1538,7 @@ checksum = "22f6172bdec972074665ed81ed53b71da00bfc44b65a753cfde883ec4c702a1a"
1504
1538
  dependencies = [
1505
1539
  "libc",
1506
1540
  "rand_chacha",
1507
- "rand_core",
1541
+ "rand_core 0.6.4",
1508
1542
  ]
1509
1543
 
1510
1544
  [[package]]
@@ -1514,7 +1548,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
1514
1548
  checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
1515
1549
  dependencies = [
1516
1550
  "ppv-lite86",
1517
- "rand_core",
1551
+ "rand_core 0.6.4",
1518
1552
  ]
1519
1553
 
1520
1554
  [[package]]
@@ -1526,6 +1560,21 @@ dependencies = [
1526
1560
  "getrandom 0.2.17",
1527
1561
  ]
1528
1562
 
1563
+ [[package]]
1564
+ name = "rand_core"
1565
+ version = "0.9.5"
1566
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1567
+ checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"
1568
+
1569
+ [[package]]
1570
+ name = "rand_xoshiro"
1571
+ version = "0.7.0"
1572
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1573
+ checksum = "f703f4665700daf5512dcca5f43afa6af89f09db47fb56be587f80636bda2d41"
1574
+ dependencies = [
1575
+ "rand_core 0.9.5",
1576
+ ]
1577
+
1529
1578
  [[package]]
1530
1579
  name = "rawpointer"
1531
1580
  version = "0.2.1"
@@ -1819,6 +1868,15 @@ version = "1.0.3"
1819
1868
  source = "registry+https://github.com/rust-lang/crates.io-index"
1820
1869
  checksum = "04d056b875a9d2e6cb9a61d127afee9ac5999b9f87bcb32079d1318e505be714"
1821
1870
 
1871
+ [[package]]
1872
+ name = "safe_arch"
1873
+ version = "0.7.4"
1874
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1875
+ checksum = "96b02de82ddbe1b636e6170c21be622223aea188ef2e139be0a5b219ec215323"
1876
+ dependencies = [
1877
+ "bytemuck",
1878
+ ]
1879
+
1822
1880
  [[package]]
1823
1881
  name = "same-file"
1824
1882
  version = "1.0.6"
@@ -2481,6 +2539,16 @@ dependencies = [
2481
2539
  "rustls-pki-types",
2482
2540
  ]
2483
2541
 
2542
+ [[package]]
2543
+ name = "wide"
2544
+ version = "0.7.33"
2545
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2546
+ checksum = "0ce5da8ecb62bcd8ec8b7ea19f69a51275e91299be594ea5cc6ef7819e16cd03"
2547
+ dependencies = [
2548
+ "bytemuck",
2549
+ "safe_arch",
2550
+ ]
2551
+
2484
2552
  [[package]]
2485
2553
  name = "winapi-util"
2486
2554
  version = "0.1.11"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cc-transcript
3
- Version: 14.45.36
3
+ Version: 14.45.38
4
4
  Classifier: Development Status :: 3 - Alpha
5
5
  Classifier: Environment :: Console
6
6
  Classifier: Intended Audience :: Developers
@@ -52,6 +52,7 @@ __all__ = [
52
52
  "ModelUsage",
53
53
  "MultiEditCall",
54
54
  "NativeSnapshotScope",
55
+ "NativeRegisteredReviewScope",
55
56
  "NativeSnapshotStore",
56
57
  "NotebookEditCall",
57
58
  "Occurrence",
@@ -1125,6 +1126,24 @@ class MultiEditCall(ToolCallBase):
1125
1126
  @property
1126
1127
  def edits(self) -> tuple[EditSpan, ...]: ...
1127
1128
 
1129
+ @typing.final
1130
+ class NativeRegisteredReviewScope:
1131
+ def close(self) -> None: ...
1132
+ def checkpoint(self) -> None: ...
1133
+ def consume(self, events: builtins.int, items: builtins.int, output_bytes: builtins.int) -> None: ...
1134
+ def usage(self) -> builtins.str: ...
1135
+ def work(self) -> builtins.str: ...
1136
+ def description(self) -> builtins.str: ...
1137
+ def event_count(self) -> builtins.int: ...
1138
+ def event(self, index: builtins.int) -> typing.Any: ...
1139
+ def source_facts(self, first_user_contains: builtins.str) -> builtins.str: ...
1140
+ def mine(self, spec_json: builtins.str, callable_formats: typing.Sequence[tuple[builtins.str, typing.Any, typing.Any, builtins.bool]]) -> builtins.list[dict]: ...
1141
+ def activity(self, classifier_json: builtins.str, anchors_json: typing.Optional[builtins.str] = None, lookback: builtins.int = 40, lookahead: builtins.int = 120) -> dict: ...
1142
+ def capture(self, anchors_json: builtins.str, before: builtins.int = 6, after: builtins.int = 2, preview_chars: builtins.int = 200) -> builtins.str: ...
1143
+ def hook_marker_indices(self) -> builtins.list[builtins.int]: ...
1144
+ def tool_use_digests(self) -> builtins.str: ...
1145
+ def publish_projection(self, request_json: builtins.str, metadata_json: builtins.str, field: builtins.str, records_json: list, usage_json: builtins.str, work_json: builtins.str) -> builtins.str: ...
1146
+
1128
1147
  @typing.final
1129
1148
  class NativeSnapshotScope:
1130
1149
  def close(self) -> None: ...
@@ -1146,11 +1165,14 @@ class NativeSnapshotScope:
1146
1165
  @typing.final
1147
1166
  class NativeSnapshotStore:
1148
1167
  def __new__(cls, config_json: builtins.str) -> NativeSnapshotStore: ...
1168
+ @staticmethod
1169
+ def new_agent(config_json: builtins.str) -> NativeSnapshotStore: ...
1149
1170
  def default_registry_generation(self) -> builtins.str: ...
1150
1171
  def register_tool_registry(self, specs_json: builtins.str, context_json: builtins.str) -> builtins.str: ...
1151
1172
  def owner_epoch(self) -> builtins.str: ...
1152
1173
  def record_transport(self, bytes: builtins.int) -> None: ...
1153
1174
  def request(self, request_json: builtins.str, context_json: builtins.str, cancel: SnapshotCancellation) -> builtins.str: ...
1175
+ def request_agent(self, request_json: builtins.str, context_json: builtins.str, cancel: SnapshotCancellation) -> builtins.str: ...
1154
1176
  def discard_response(self, response_json: builtins.str, context_json: builtins.str) -> None: ...
1155
1177
  def publish_projection(self, request_json: builtins.str, context_json: builtins.str, cancel: SnapshotCancellation, metadata_json: builtins.str, field: builtins.str, records_json: list, usage_json: builtins.str, work_json: builtins.str) -> str: ...
1156
1178
  def resume_projection(self, cursor: builtins.str, context_json: builtins.str, cancel: SnapshotCancellation) -> typing.Optional[str]: ...
@@ -1159,6 +1181,7 @@ class NativeSnapshotStore:
1159
1181
  def submit_classifier(self, cursor: builtins.str, labels: list, context_json: builtins.str, cancel: SnapshotCancellation) -> builtins.str: ...
1160
1182
  def register_mining_policy(self, id: builtins.str, version: builtins.str, spec_json: builtins.str, callable_formats: typing.Sequence[tuple[builtins.str, typing.Any, typing.Any, builtins.bool]]) -> None: ...
1161
1183
  def register_classifier(self, id: builtins.str, version: builtins.str, callback: typing.Any) -> None: ...
1184
+ def run_registered_review(self, path: builtins.str, policy_json: builtins.str, mining_spec_json: builtins.str, callable_formats: typing.Sequence[tuple[builtins.str, typing.Any, typing.Any, builtins.bool]], first_user_marker: builtins.str, prose_marker: typing.Any, request_json: builtins.str, context_json: builtins.str, cancel: SnapshotCancellation, handler: typing.Any) -> typing.Any: ...
1162
1185
 
1163
1186
  @typing.final
1164
1187
  class NotebookEditCall(ToolCallBase):
@@ -353,17 +353,18 @@ class ActivityLift:
353
353
  turns.extend(grown[1:])
354
354
  else:
355
355
  turns.extend(grown)
356
- repairs: dict[int, dict[int, UserEvent]] = {}
356
+ repairs: dict[int, dict[int, tuple[ToolUseId, UserEvent]]] = {}
357
357
  for tool_use_id, result_idx in lifted["results"]:
358
358
  for turn_index, position in self._uses.get(tool_use_id, ()):
359
- repairs.setdefault(turn_index, {})[position] = tail[result_idx]
359
+ repairs.setdefault(turn_index, {})[position] = (tool_use_id, tail[result_idx])
360
360
  self._results[tool_use_id] = tail[result_idx]
361
361
  for turn_index, at in repairs.items():
362
362
  turns[turn_index] = repaired(turns[turn_index], at)
363
- for turn in grown:
363
+ for turn, skeleton in zip(grown, lifted["turns"], strict=True):
364
364
  base = len(turns[turn.index].tool_uses) - len(turn.tool_uses)
365
- for position, use in enumerate(turn.tool_uses, base):
366
- self._uses[use.ref.tool_use_id] = (*self._uses.get(use.ref.tool_use_id, ()), (turn.index, position))
365
+ for position, use in enumerate(skeleton["tool_uses"], base):
366
+ tool_use_id: ToolUseId = use["tool_use_id"]
367
+ self._uses[tool_use_id] = (*self._uses.get(tool_use_id, ()), (turn.index, position))
367
368
  self._activity = SessionActivity(session_id=self._session_id, turns=tuple(turns))
368
369
  return self._activity
369
370
 
@@ -437,12 +438,12 @@ def continued(turn: Turn, tail: Turn) -> Turn:
437
438
  )
438
439
 
439
440
 
440
- def repaired(turn: Turn, at: Mapping[int, UserEvent]) -> Turn:
441
+ def repaired(turn: Turn, at: Mapping[int, tuple[ToolUseId, UserEvent]]) -> Turn:
441
442
  uses = list(turn.tool_uses)
442
- for position, event in at.items():
443
+ for position, (tool_use_id, event) in at.items():
443
444
  uses[position] = replace(
444
445
  uses[position],
445
- result=result_block(event, uses[position].ref.tool_use_id),
446
+ result=result_block(event, tool_use_id),
446
447
  result_ts=event.meta.timestamp,
447
448
  )
448
449
  return replace(turn, tool_uses=tuple(uses))
@@ -8,7 +8,7 @@ class names, field names, and semantics match the pre-inversion dataclasses;
8
8
 
9
9
  from __future__ import annotations
10
10
 
11
- from typing import NewType
11
+ from typing import Never, NewType
12
12
 
13
13
  from cc_transcript._native import ApiError as ApiError
14
14
  from cc_transcript._native import AssistantEvent as AssistantEvent
@@ -83,28 +83,28 @@ class ReadOnlyDict(dict):
83
83
 
84
84
  __slots__ = ()
85
85
 
86
- def __setitem__(self, *args: object, **kwargs: object) -> None:
86
+ def __setitem__(self, *args: object, **kwargs: object) -> Never:
87
87
  raise TypeError("ReadOnlyDict is read-only")
88
88
 
89
- def __delitem__(self, *args: object, **kwargs: object) -> None:
89
+ def __delitem__(self, *args: object, **kwargs: object) -> Never:
90
90
  raise TypeError("ReadOnlyDict is read-only")
91
91
 
92
- def __ior__(self, *args: object, **kwargs: object) -> None:
92
+ def __ior__(self, *args: object, **kwargs: object) -> Never:
93
93
  raise TypeError("ReadOnlyDict is read-only")
94
94
 
95
- def clear(self, *args: object, **kwargs: object) -> None:
95
+ def clear(self, *args: object, **kwargs: object) -> Never:
96
96
  raise TypeError("ReadOnlyDict is read-only")
97
97
 
98
- def pop(self, *args: object, **kwargs: object) -> None:
98
+ def pop(self, *args: object, **kwargs: object) -> Never:
99
99
  raise TypeError("ReadOnlyDict is read-only")
100
100
 
101
- def popitem(self, *args: object, **kwargs: object) -> None:
101
+ def popitem(self, *args: object, **kwargs: object) -> Never:
102
102
  raise TypeError("ReadOnlyDict is read-only")
103
103
 
104
- def setdefault(self, *args: object, **kwargs: object) -> None:
104
+ def setdefault(self, *args: object, **kwargs: object) -> Never:
105
105
  raise TypeError("ReadOnlyDict is read-only")
106
106
 
107
- def update(self, *args: object, **kwargs: object) -> None:
107
+ def update(self, *args: object, **kwargs: object) -> Never:
108
108
  raise TypeError("ReadOnlyDict is read-only")
109
109
 
110
110
 
@@ -430,9 +430,9 @@ class ToolCallQuery:
430
430
  """
431
431
  return self.where(
432
432
  lambda use: (
433
- isinstance(use.call.raw, Mapping)
433
+ isinstance(raw := use.call.raw, Mapping)
434
434
  and all(
435
- key in use.call.raw and input_rule_matches(rule, use.call.raw[key]) for key, rule in rules.items()
435
+ key in raw and input_rule_matches(rule, raw[key]) for key, rule in rules.items()
436
436
  )
437
437
  )
438
438
  )
@@ -7,11 +7,11 @@ from dataclasses import dataclass
7
7
  from typing import TYPE_CHECKING
8
8
 
9
9
  from cc_transcript import _native
10
- from cc_transcript.tools import ToolCallBase
10
+ from cc_transcript.tools import FallbackCall
11
11
 
12
12
  if TYPE_CHECKING:
13
13
  from cc_transcript.activity import SessionActivity, Turn
14
- from cc_transcript.tools import FallbackCall, ToolCall
14
+ from cc_transcript.tools import ToolCall
15
15
 
16
16
 
17
17
  @dataclass(frozen=True, slots=True)
@@ -46,11 +46,11 @@ def render_tool_call(call: ToolCall | FallbackCall, *, budget: Budget) -> str:
46
46
  >>> render_tool_call(parse_tool_call("Bash", {"command": "ls"}), budget=Budget())
47
47
  'ls'
48
48
  """
49
- if isinstance(call, ToolCallBase):
50
- return _native.render_tool_call_view(call, budget.turn_chars, budget.tool_chars)
51
- return _native.render_tool_call(
52
- call.name, json.dumps(call.raw, default=str), budget.turn_chars, budget.tool_chars
53
- )
49
+ if isinstance(call, FallbackCall):
50
+ return _native.render_tool_call(
51
+ call.name, json.dumps(call.raw, default=str), budget.turn_chars, budget.tool_chars
52
+ )
53
+ return _native.render_tool_call_view(call, budget.turn_chars, budget.tool_chars)
54
54
 
55
55
 
56
56
  def hunk_lines(old: str, new: str, *, budget: Budget) -> tuple[str, ...]:
@@ -6,6 +6,7 @@ from collections.abc import Callable, Iterator, Mapping, Sequence
6
6
  from contextlib import contextmanager
7
7
  from dataclasses import asdict
8
8
  from math import isfinite
9
+ from pathlib import Path
9
10
  from typing import Any, Literal, TypedDict, overload
10
11
 
11
12
  import orjson
@@ -272,6 +273,39 @@ class TranscriptSnapshot:
272
273
  ) -> list[Mapping[str, Any]]:
273
274
  return _call(self._native.mine, spec_json, list(callable_formats))
274
275
 
276
+ @property
277
+ def hook_marker_indices(self) -> tuple[int, ...]:
278
+ """Indices of original events matched by the registered marker controller."""
279
+ return tuple(_call(self._native.hook_marker_indices))
280
+
281
+ @property
282
+ def tool_use_digests(self) -> Mapping[str, str]:
283
+ """Canonical tool-use digests retained by the registered native reader."""
284
+ return orjson.loads(_call(self._native.tool_use_digests))
285
+
286
+ def publish_projection(
287
+ self,
288
+ request: Mapping[str, Any],
289
+ *,
290
+ metadata: Mapping[str, Any],
291
+ field: str,
292
+ records_json: Sequence[str],
293
+ usage: Mapping[str, int],
294
+ work: Mapping[str, int],
295
+ ) -> Mapping[str, Any]:
296
+ """Publish owned records under this registered frame's source authority."""
297
+ return orjson.loads(
298
+ _call(
299
+ self._native.publish_projection,
300
+ _json(request),
301
+ _json(metadata),
302
+ field,
303
+ list(records_json),
304
+ _json(usage),
305
+ _json(work),
306
+ )
307
+ )
308
+
275
309
  def capture(
276
310
  self,
277
311
  anchors: Sequence[EventRef],
@@ -302,6 +336,20 @@ class TranscriptStore:
302
336
  for (policy_id, version), predicate in (policies or {}).items():
303
337
  self.register_classifier(policy_id, version, predicate)
304
338
 
339
+ @classmethod
340
+ def new_agent(
341
+ cls,
342
+ config: Mapping[str, Any],
343
+ *,
344
+ policies: Mapping[tuple[str, str], Callable[[TranscriptEvent], bool]] | None = None,
345
+ ) -> TranscriptStore:
346
+ """Own append-only agent sources whose existing bytes remain immutable."""
347
+ store = cls.__new__(cls)
348
+ store._native = _native.NativeSnapshotStore.new_agent(_json(config))
349
+ for (policy_id, version), predicate in (policies or {}).items():
350
+ store.register_classifier(policy_id, version, predicate)
351
+ return store
352
+
305
353
  def register_tool_registry(self, specs: Sequence[Mapping[str, Any]], *, context: CallContext) -> str:
306
354
  return _call(self._native.register_tool_registry, _json(specs), _json(context))
307
355
 
@@ -320,6 +368,48 @@ class TranscriptStore:
320
368
  ) -> None:
321
369
  _call(self._native.register_mining_policy, policy_id, version, spec_json, list(callable_formats))
322
370
 
371
+ def run_registered_review(
372
+ self,
373
+ path: str | Path,
374
+ *,
375
+ policy: Mapping[str, Any],
376
+ mining_spec_json: str,
377
+ callable_formats: Sequence[tuple[str, Any, Any, bool]],
378
+ first_user_marker: str,
379
+ prose_marker: Callable[[TranscriptEvent], object],
380
+ request: Mapping[str, Any],
381
+ context: CallContext,
382
+ cancellation: CancellationToken,
383
+ handler: Callable[[TranscriptSnapshot], Any],
384
+ ) -> Any:
385
+ """Run a bounded handler over registered native facts, or return preparation progress.
386
+
387
+ Repeating the same registered request resumes native preparation. The handler
388
+ runs only when preparation is complete, and its snapshot closes on return.
389
+ """
390
+ def consume(native: Any) -> Any:
391
+ snapshot = TranscriptSnapshot(native)
392
+ try:
393
+ return handler(snapshot)
394
+ except SnapshotIncomplete as error:
395
+ error.usage = dict(snapshot.usage)
396
+ error.work = dict(snapshot.work)
397
+ raise
398
+
399
+ return _call(
400
+ self._native.run_registered_review,
401
+ str(path),
402
+ _json(policy),
403
+ mining_spec_json,
404
+ list(callable_formats),
405
+ first_user_marker,
406
+ prose_marker,
407
+ _json(request),
408
+ _json(context),
409
+ cancellation._native,
410
+ consume,
411
+ )
412
+
323
413
  @property
324
414
  def owner_epoch(self) -> str:
325
415
  return self._native.owner_epoch()
@@ -332,6 +422,12 @@ class TranscriptStore:
332
422
  ) -> Mapping[str, Any]:
333
423
  return orjson.loads(_call(self._native.request, _json(request), _json(context), cancellation._native))
334
424
 
425
+ def request_agent(
426
+ self, request: Mapping[str, Any], *, cancellation: CancellationToken, context: CallContext
427
+ ) -> Mapping[str, Any]:
428
+ """Request an immutable-prefix agent source from this agent store."""
429
+ return orjson.loads(_call(self._native.request_agent, _json(request), _json(context), cancellation._native))
430
+
335
431
  def prepare_classifier(
336
432
  self,
337
433
  handle: Mapping[str, str],
@@ -13,6 +13,7 @@ parsing a command pulls in no Python module or bash grammar on the hook hot path
13
13
  from __future__ import annotations
14
14
 
15
15
  import json
16
+ from collections.abc import Mapping
16
17
  from dataclasses import dataclass, field
17
18
  from functools import partial
18
19
  from typing import TYPE_CHECKING, Literal
@@ -70,7 +71,7 @@ from cc_transcript.ids import ToolDigest as ToolDigest
70
71
  from cc_transcript.ids import tool_digest as tool_digest
71
72
 
72
73
  if TYPE_CHECKING:
73
- from collections.abc import Callable, Mapping
74
+ from collections.abc import Callable
74
75
  from typing import Any
75
76
 
76
77
  TOOL_ALIASES: dict[str, str] = {
@@ -228,6 +229,8 @@ def parse_tool_call(
228
229
  >>> call.new
229
230
  'y'
230
231
  """
232
+ if not isinstance(input, Mapping):
233
+ return _native.toolcall_parse_view(name, json.dumps(input), on_error)
231
234
  try:
232
235
  return _native.toolcall_parse_view(name, json.dumps(input), on_error)
233
236
  except (TypeError, ValueError) as exc:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "cc-transcript"
3
- version = "14.45.36" # informational — releases stamp the version from the git tag
3
+ version = "14.45.38" # 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"
@@ -405,7 +405,7 @@ pub fn run(args: GrepArgs) -> Result<(), CliExit> {
405
405
  if let Some(control) = reducer.scan_stream(
406
406
  path,
407
407
  !structured,
408
- Some(&checkpoints),
408
+ (!reducer.prefilters()).then_some(&checkpoints),
409
409
  &mut session.budget,
410
410
  &cancel,
411
411
  |event, budget, cancel| render.event(path, event, budget, cancel),
@@ -14,6 +14,7 @@ libc = "0.2"
14
14
  sonic-rs = { version = "0.5", features = ["arbitrary_precision"] }
15
15
  chrono = { version = "0.4", default-features = false, features = ["std", "serde"] }
16
16
  memchr = "2.7"
17
+ imbl = "=7.0.2"
17
18
  once_cell = "1"
18
19
  regex = "1"
19
20
  regex-syntax = "0.8"
@@ -3,6 +3,7 @@ pub mod lower;
3
3
  pub mod parse;
4
4
  pub mod probe;
5
5
  pub mod protocol;
6
+ pub mod review_continuation;
6
7
  pub mod types;
7
8
 
8
9
  pub use discovery::{children_of, discover, resolve, sessions_root, RolloutFile};
@@ -10,6 +11,7 @@ pub use lower::{lower, CodexLowering, CodexUsageAggregate};
10
11
  pub use parse::parse_codex_bytes;
11
12
  pub use probe::{codex_session_activity, session_probe, CodexProbe, Lifecycle};
12
13
  pub use protocol::{injection_wrapper, mcp_tool_name, output_exit_code, INJECTION_WRAPPERS};
14
+ pub use review_continuation::{CodexReviewContinuation, CodexReviewDelta};
13
15
  pub use types::{
14
16
  CodexEntry, CodexItem, CodexOther, CodexSession, Compacted, EventMsg, ResponseItem,
15
17
  ResponseItemPayload, SessionMeta, TokenUsage, TokenUsageInfo, WorldState,
@@ -62,7 +62,7 @@ pub fn parse_codex_bytes(bytes: &[u8]) -> CodexSession {
62
62
  fold_session(entries)
63
63
  }
64
64
 
65
- fn parse_codex_line(line: &[u8], line_index: usize, entries: &mut Vec<CodexEntry>) {
65
+ pub(crate) fn parse_codex_line(line: &[u8], line_index: usize, entries: &mut Vec<CodexEntry>) {
66
66
  if line.iter().all(u8::is_ascii_whitespace) {
67
67
  return;
68
68
  }