cc-transcript 14.45.20__tar.gz → 14.45.22__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 (210) hide show
  1. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/Cargo.lock +1 -0
  2. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/PKG-INFO +1 -1
  3. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/_native.pyi +4 -1
  4. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/parser.py +11 -0
  5. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/pyproject.toml +1 -1
  6. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/Cargo.toml +1 -0
  7. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/lib.rs +1 -0
  8. cc_transcript-14.45.22/rust/crates/core/src/request_body.rs +472 -0
  9. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_activity.rs +100 -36
  10. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_projection.rs +101 -4
  11. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/python.rs +24 -0
  12. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/Cargo.toml +0 -0
  13. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/LICENSE +0 -0
  14. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/README.md +0 -0
  15. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/__init__.py +0 -0
  16. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/__init__.pyi +0 -0
  17. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/activity.py +0 -0
  18. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/activity_probe.py +0 -0
  19. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/builders.py +0 -0
  20. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/codex.py +0 -0
  21. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/command.py +0 -0
  22. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/context.py +0 -0
  23. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/corrections.py +0 -0
  24. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/cost.py +0 -0
  25. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/decision_store.py +0 -0
  26. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/decisions.py +0 -0
  27. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/discovery.py +0 -0
  28. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/disktruth.py +0 -0
  29. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/evidence.py +0 -0
  30. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/extract/__init__.py +0 -0
  31. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/extract/correct.py +0 -0
  32. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/facts.py +0 -0
  33. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/filterspec.py +0 -0
  34. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/heartbeats.py +0 -0
  35. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/ids.py +0 -0
  36. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/judge/__init__.py +0 -0
  37. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/judge/llm.py +0 -0
  38. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/judge/similar.py +0 -0
  39. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/judge/verdicts.py +0 -0
  40. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/ledger.py +0 -0
  41. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/literals.py +0 -0
  42. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/mining/__init__.py +0 -0
  43. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/mining/candidates.py +0 -0
  44. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/mining/confidence.py +0 -0
  45. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/mining/engine.py +0 -0
  46. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/mining/formats.py +0 -0
  47. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/mining/sampling.py +0 -0
  48. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/mining/signals.py +0 -0
  49. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/mining/sourcekind.py +0 -0
  50. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/mining/spec.py +0 -0
  51. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/mining/store.py +0 -0
  52. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/models.py +0 -0
  53. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/nlp.py +0 -0
  54. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/notifications.py +0 -0
  55. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/py.typed +0 -0
  56. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/query.py +0 -0
  57. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/render.py +0 -0
  58. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/sentiment/__init__.py +0 -0
  59. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/sentiment/buckets.py +0 -0
  60. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
  61. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
  62. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
  63. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/sentiment/engine.py +0 -0
  64. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/sentiment/lexicon.py +0 -0
  65. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/sentiment/scorespec.py +0 -0
  66. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/snapshot_schema/config.schema.json +0 -0
  67. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/snapshot_schema/context.schema.json +0 -0
  68. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/snapshot_schema/request.schema.json +0 -0
  69. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/snapshot_schema/response.schema.json +0 -0
  70. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
  71. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/snapshots.py +0 -0
  72. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/synthetic.py +0 -0
  73. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/tools.py +0 -0
  74. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/cc_transcript/watch.py +0 -0
  75. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/cli/Cargo.toml +0 -0
  76. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/cli/src/commands/blame.rs +0 -0
  77. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/cli/src/commands/corpus.rs +0 -0
  78. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/cli/src/commands/corrections.rs +0 -0
  79. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/cli/src/commands/digest.rs +0 -0
  80. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/cli/src/commands/facts.rs +0 -0
  81. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/cli/src/commands/grep.rs +0 -0
  82. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/cli/src/commands/list.rs +0 -0
  83. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/cli/src/commands/mod.rs +0 -0
  84. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
  85. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/cli/src/commands/show.rs +0 -0
  86. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/cli/src/commands/slice.rs +0 -0
  87. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/cli/src/commands/stats.rs +0 -0
  88. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/cli/src/commands/watch.rs +0 -0
  89. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/cli/src/lib.rs +0 -0
  90. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/cli/src/output.rs +0 -0
  91. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/cli/src/target.rs +0 -0
  92. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/cli/src/timearg.rs +0 -0
  93. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/benches/parse.rs +0 -0
  94. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/benches/render.rs +0 -0
  95. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/benches/toolcall.rs +0 -0
  96. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/build.rs +0 -0
  97. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/activity.rs +0 -0
  98. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/actor.rs +0 -0
  99. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/blame.rs +0 -0
  100. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/buckets.rs +0 -0
  101. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/codex/discovery.rs +0 -0
  102. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/codex/lower.rs +0 -0
  103. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/codex/mod.rs +0 -0
  104. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/codex/parse.rs +0 -0
  105. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/codex/probe.rs +0 -0
  106. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/codex/protocol.rs +0 -0
  107. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/codex/types.rs +0 -0
  108. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/command.rs +0 -0
  109. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/context.rs +0 -0
  110. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/corrections.rs +0 -0
  111. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/cost.rs +0 -0
  112. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/discovery.rs +0 -0
  113. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/facts.rs +0 -0
  114. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/feedback.rs +0 -0
  115. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/filter.rs +0 -0
  116. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/gateway.rs +0 -0
  117. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/ids.rs +0 -0
  118. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/judge.rs +0 -0
  119. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/literals/command.rs +0 -0
  120. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/literals/corrections.rs +0 -0
  121. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/literals/feedback.rs +0 -0
  122. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/literals/mining.rs +0 -0
  123. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/literals/mod.rs +0 -0
  124. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/literals/protocol.rs +0 -0
  125. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/notifications.rs +0 -0
  126. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/parse.rs +0 -0
  127. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/protocol.rs +0 -0
  128. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/pystr.rs +0 -0
  129. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/query.rs +0 -0
  130. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/render.rs +0 -0
  131. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/rng.rs +0 -0
  132. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/scan.rs +0 -0
  133. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/scan_checkpoint.rs +0 -0
  134. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/scan_grep.rs +0 -0
  135. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/scan_grep_stream.rs +0 -0
  136. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/scan_grep_stream_tests.rs +0 -0
  137. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/scan_index.rs +0 -0
  138. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/scan_projection.rs +0 -0
  139. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/scan_regressions.rs +0 -0
  140. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/scan_stream.rs +0 -0
  141. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/schema.rs +0 -0
  142. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot.rs +0 -0
  143. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_admission_report_tests.rs +0 -0
  144. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_cache.rs +0 -0
  145. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_cache_tests.rs +0 -0
  146. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_catalog.rs +0 -0
  147. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_catalog_owner.rs +0 -0
  148. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_catalog_tests.rs +0 -0
  149. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_codec.rs +0 -0
  150. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_codex_append.rs +0 -0
  151. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_common_borrowed_parent_tests.rs +0 -0
  152. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_labels.rs +0 -0
  153. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_ledger.rs +0 -0
  154. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_ledger_tests.rs +0 -0
  155. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_memory.rs +0 -0
  156. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_owned.rs +0 -0
  157. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_prepared.rs +0 -0
  158. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_prepared_disk.rs +0 -0
  159. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_prepared_service.rs +0 -0
  160. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_regressions.rs +0 -0
  161. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_root_warm.rs +0 -0
  162. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_source_cache_index_tests.rs +0 -0
  163. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_spine.rs +0 -0
  164. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_spine_tests.rs +0 -0
  165. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_symlink_proof.rs +0 -0
  166. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/snapshot_text.rs +0 -0
  167. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/sqlite.rs +0 -0
  168. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/toolcall.rs +0 -0
  169. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/types.rs +0 -0
  170. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/value.rs +0 -0
  171. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/src/watch.rs +0 -0
  172. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
  173. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/core/tests/std_allocation_model.rs +0 -0
  174. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/Cargo.toml +0 -0
  175. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/build.rs +0 -0
  176. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
  177. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/actor_bridge.rs +0 -0
  178. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/bin/stub_gen.rs +0 -0
  179. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/codex.rs +0 -0
  180. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/command.rs +0 -0
  181. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/context.rs +0 -0
  182. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/corrections.rs +0 -0
  183. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/discovery.rs +0 -0
  184. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/feedback.rs +0 -0
  185. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/judge.rs +0 -0
  186. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/lexicon.rs +0 -0
  187. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/lib.rs +0 -0
  188. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/mining.rs +0 -0
  189. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/nlp.rs +0 -0
  190. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/render.rs +0 -0
  191. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/score.rs +0 -0
  192. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/snapshot_decode.rs +0 -0
  193. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/snapshots.rs +0 -0
  194. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/sqlite.rs +0 -0
  195. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/toolcall.rs +0 -0
  196. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/views/attachment.rs +0 -0
  197. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/views/blocks.rs +0 -0
  198. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/views/command.rs +0 -0
  199. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/views/convert.rs +0 -0
  200. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/views/dunder.rs +0 -0
  201. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/views/events.rs +0 -0
  202. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/views/meta.rs +0 -0
  203. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/views/mod.rs +0 -0
  204. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/views/print.rs +0 -0
  205. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/views/store.rs +0 -0
  206. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/views/system.rs +0 -0
  207. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/views/toolcall.rs +0 -0
  208. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/views/toolresult.rs +0 -0
  209. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/views/transcript.rs +0 -0
  210. {cc_transcript-14.45.20 → cc_transcript-14.45.22}/rust/crates/py/src/watch.rs +0 -0
@@ -230,6 +230,7 @@ dependencies = [
230
230
  "rusqlite",
231
231
  "ryu-js",
232
232
  "serde",
233
+ "serde_json",
233
234
  "sha2",
234
235
  "sonic-rs",
235
236
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cc-transcript
3
- Version: 14.45.20
3
+ Version: 14.45.22
4
4
  Classifier: Development Status :: 3 - Alpha
5
5
  Classifier: Environment :: Console
6
6
  Classifier: Intended Audience :: Developers
@@ -159,6 +159,7 @@ __all__ = [
159
159
  "notifications_from_events",
160
160
  "parse_bytes",
161
161
  "parse_print_result",
162
+ "project_request_body",
162
163
  "query_session",
163
164
  "register_mcp_tool",
164
165
  "render_compact_lines",
@@ -2082,7 +2083,7 @@ class Transcript:
2082
2083
  The parsed events of a single transcript file, backed by the native parse
2083
2084
  output; ``events`` materializes lazy views on access.
2084
2085
 
2085
- One parse owns one ``Arc<Vec<Entry>>`` shared by every view, so retaining any
2086
+ One parse owns one ``Arc<ChunkRows>`` shared by every view, so retaining any
2086
2087
  view keeps the whole parse's entries alive; the live
2087
2088
  :class:`~watch.WatchEvent` stream is exempt (one-entry Arc each).
2088
2089
 
@@ -2539,6 +2540,8 @@ def parse_bytes(raw: bytes, spec_json: typing.Optional[builtins.str] = None) ->
2539
2540
 
2540
2541
  def parse_print_result(raw: bytes) -> PrintResult: ...
2541
2542
 
2543
+ def project_request_body(path: builtins.str, *, transport: builtins.str = 'identity') -> typing.Optional[tuple[builtins.bool, typing.Optional[builtins.str]]]: ...
2544
+
2542
2545
  def query_session(path: builtins.str, max_events: builtins.int) -> dict[str, typing.Any]: ...
2543
2546
 
2544
2547
  def register_mcp_tool(tool: builtins.str, behaves_like: builtins.str, span_edit: collections.abc.Mapping[str, str] | None = None) -> None:
@@ -152,3 +152,14 @@ def parse_print_result(raw: bytes) -> PrintResult:
152
152
  snapshot, and the conversational messages.
153
153
  """
154
154
  return _native.parse_print_result(raw)
155
+
156
+
157
+ def project_request_body(path: str | Path, *, transport: str = "identity") -> dict[str, object] | None:
158
+ """Read the merge bypass fields without materializing the request body.
159
+
160
+ The native reader validates the entire JSON document and retains only its
161
+ last top-level bypass flag and full Git object ID candidate. Curl data-file
162
+ transport removes CR, LF and NUL bytes before validation.
163
+ """
164
+ result = _native.project_request_body(str(path), transport=transport)
165
+ return None if result is None else {"bypass_rules": result[0], "sha": result[1]}
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "cc-transcript"
3
- version = "14.45.20" # informational — releases stamp the version from the git tag
3
+ version = "14.45.22" # 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"
@@ -6,6 +6,7 @@ publish = false
6
6
 
7
7
  [dependencies]
8
8
  serde = { version = "1", features = ["derive"] }
9
+ serde_json = { version = "1", features = ["arbitrary_precision"] }
9
10
  libc = "0.2"
10
11
  # arbitrary_precision keeps each number's raw text so json_to_py (the py crate's
11
12
  # event.rs) can mirror Python json semantics for numbers sonic-rs stores lossily
@@ -29,6 +29,7 @@ pub mod protocol;
29
29
  pub mod pystr;
30
30
  pub mod query;
31
31
  pub mod render;
32
+ pub mod request_body;
32
33
  pub mod rng;
33
34
  pub mod scan;
34
35
  pub mod scan_checkpoint;
@@ -0,0 +1,472 @@
1
+ use std::io::{self, BufRead, BufReader, Read};
2
+ use std::path::Path;
3
+
4
+ use serde::de::IgnoredAny;
5
+ use serde::Deserialize;
6
+
7
+ const INPUT_BYTES: usize = 8192;
8
+ const KEY_BYTES: usize = 12 * 6 + 2;
9
+ const SHA_CHARS: usize = 64;
10
+ const SHA_BYTES: usize = SHA_CHARS * 6 + 2;
11
+
12
+ #[derive(Debug, Default, PartialEq, Eq)]
13
+ pub struct RequestBody {
14
+ pub bypass_rules: bool,
15
+ pub sha: Option<String>,
16
+ }
17
+
18
+ #[derive(Clone, Copy)]
19
+ enum Field {
20
+ Bypass,
21
+ Sha,
22
+ }
23
+
24
+ struct Projection {
25
+ body: RequestBody,
26
+ started: bool,
27
+ object: bool,
28
+ depth: usize,
29
+ in_string: bool,
30
+ escaped: bool,
31
+ key_expected: bool,
32
+ value_expected: bool,
33
+ field: Option<Field>,
34
+ capture_key: bool,
35
+ capture_sha: bool,
36
+ token: Vec<u8>,
37
+ }
38
+
39
+ impl Default for Projection {
40
+ fn default() -> Self {
41
+ Self {
42
+ body: RequestBody::default(),
43
+ started: false,
44
+ object: false,
45
+ depth: 0,
46
+ in_string: false,
47
+ escaped: false,
48
+ key_expected: false,
49
+ value_expected: false,
50
+ field: None,
51
+ capture_key: false,
52
+ capture_sha: false,
53
+ token: Vec::with_capacity(SHA_BYTES),
54
+ }
55
+ }
56
+ }
57
+
58
+ impl Projection {
59
+ fn feed(&mut self, byte: u8) {
60
+ if self.in_string {
61
+ if self.capture_key || self.capture_sha {
62
+ let limit = if self.capture_key {
63
+ KEY_BYTES
64
+ } else {
65
+ SHA_BYTES
66
+ };
67
+ if self.token.len() == limit {
68
+ self.capture_key = false;
69
+ self.capture_sha = false;
70
+ self.token.clear();
71
+ } else {
72
+ self.token.push(byte);
73
+ }
74
+ }
75
+ if self.escaped {
76
+ self.escaped = false;
77
+ } else if byte == b'\\' {
78
+ self.escaped = true;
79
+ } else if byte == b'"' {
80
+ self.in_string = false;
81
+ if self.capture_key {
82
+ self.field = match sonic_rs::from_slice::<String>(&self.token).ok().as_deref() {
83
+ Some("bypass_rules") => Some(Field::Bypass),
84
+ Some("sha") => Some(Field::Sha),
85
+ _ => None,
86
+ };
87
+ } else if self.capture_sha {
88
+ self.body.sha = sonic_rs::from_slice::<String>(&self.token)
89
+ .ok()
90
+ .filter(|value| value.len() <= SHA_CHARS);
91
+ }
92
+ self.capture_key = false;
93
+ self.capture_sha = false;
94
+ self.token.clear();
95
+ }
96
+ return;
97
+ }
98
+ if byte.is_ascii_whitespace() {
99
+ return;
100
+ }
101
+ if !self.started {
102
+ self.started = true;
103
+ self.object = byte == b'{';
104
+ }
105
+ let root = self.object && self.depth == 1;
106
+ let value = root && self.value_expected;
107
+ if value {
108
+ match self.field {
109
+ Some(Field::Bypass) => self.body.bypass_rules = byte == b't',
110
+ Some(Field::Sha) => self.body.sha = None,
111
+ None => {}
112
+ }
113
+ self.value_expected = false;
114
+ }
115
+ match byte {
116
+ b'"' => {
117
+ self.in_string = true;
118
+ self.capture_key = root && self.key_expected;
119
+ self.capture_sha = value && matches!(self.field, Some(Field::Sha));
120
+ if self.capture_key {
121
+ self.field = None;
122
+ self.key_expected = false;
123
+ }
124
+ if self.capture_key || self.capture_sha {
125
+ self.token.push(byte);
126
+ }
127
+ }
128
+ b'{' | b'[' => {
129
+ self.depth += 1;
130
+ if self.object && self.depth == 1 {
131
+ self.key_expected = true;
132
+ }
133
+ }
134
+ b'}' | b']' => self.depth = self.depth.saturating_sub(1),
135
+ b',' if root => self.key_expected = true,
136
+ b':' if root => self.value_expected = true,
137
+ _ => {}
138
+ }
139
+ }
140
+ }
141
+
142
+ #[derive(Clone, Copy)]
143
+ pub enum RequestBodyTransport {
144
+ Identity,
145
+ CurlData,
146
+ }
147
+
148
+ struct TransportRead<R> {
149
+ source: R,
150
+ transport: RequestBodyTransport,
151
+ }
152
+
153
+ impl<R: Read> Read for TransportRead<R> {
154
+ fn read(&mut self, output: &mut [u8]) -> io::Result<usize> {
155
+ if output.is_empty() {
156
+ return Ok(0);
157
+ }
158
+ loop {
159
+ let count = self.source.read(output)?;
160
+ if count == 0 || matches!(self.transport, RequestBodyTransport::Identity) {
161
+ return Ok(count);
162
+ }
163
+ let mut retained = 0;
164
+ for index in 0..count {
165
+ if !matches!(output[index], b'\r' | b'\n' | 0) {
166
+ output[retained] = output[index];
167
+ retained += 1;
168
+ }
169
+ }
170
+ if retained > 0 {
171
+ return Ok(retained);
172
+ }
173
+ }
174
+ }
175
+ }
176
+
177
+ struct Utf8Read<R> {
178
+ source: R,
179
+ tail: [u8; 4],
180
+ tail_len: usize,
181
+ }
182
+
183
+ impl<R: Read> Read for Utf8Read<R> {
184
+ fn read(&mut self, output: &mut [u8]) -> io::Result<usize> {
185
+ if output.is_empty() {
186
+ return Ok(0);
187
+ }
188
+ let count = self.source.read(output)?;
189
+ if count == 0 {
190
+ return if self.tail_len == 0 {
191
+ Ok(0)
192
+ } else {
193
+ Err(invalid_utf8())
194
+ };
195
+ }
196
+ let mut start = 0;
197
+ if self.tail_len > 0 {
198
+ while start < count && self.tail_len < self.tail.len() {
199
+ self.tail[self.tail_len] = output[start];
200
+ self.tail_len += 1;
201
+ start += 1;
202
+ match std::str::from_utf8(&self.tail[..self.tail_len]) {
203
+ Ok(_) => {
204
+ self.tail_len = 0;
205
+ break;
206
+ }
207
+ Err(error) if error.error_len().is_none() => {}
208
+ Err(_) => return Err(invalid_utf8()),
209
+ }
210
+ }
211
+ if self.tail_len > 0 {
212
+ return Ok(count);
213
+ }
214
+ }
215
+ match std::str::from_utf8(&output[start..count]) {
216
+ Ok(_) => {}
217
+ Err(error) if error.error_len().is_none() => {
218
+ let remaining = &output[start + error.valid_up_to()..count];
219
+ self.tail[..remaining.len()].copy_from_slice(remaining);
220
+ self.tail_len = remaining.len();
221
+ }
222
+ Err(_) => return Err(invalid_utf8()),
223
+ }
224
+ Ok(count)
225
+ }
226
+ }
227
+
228
+ fn invalid_utf8() -> io::Error {
229
+ io::Error::new(io::ErrorKind::InvalidData, "invalid request JSON UTF-8")
230
+ }
231
+
232
+ struct ProjectedRead<R> {
233
+ source: BufReader<Utf8Read<R>>,
234
+ projection: Projection,
235
+ replacement: &'static [u8],
236
+ }
237
+
238
+ impl<R: Read> ProjectedRead<R> {
239
+ fn new(source: R) -> Self {
240
+ Self {
241
+ source: BufReader::with_capacity(
242
+ INPUT_BYTES,
243
+ Utf8Read {
244
+ source,
245
+ tail: [0; 4],
246
+ tail_len: 0,
247
+ },
248
+ ),
249
+ projection: Projection::default(),
250
+ replacement: &[],
251
+ }
252
+ }
253
+
254
+ fn original(&mut self) -> io::Result<Option<u8>> {
255
+ let mut byte = [0];
256
+ if self.source.read(&mut byte)? == 0 {
257
+ return Ok(None);
258
+ }
259
+ self.projection.feed(byte[0]);
260
+ Ok(Some(byte[0]))
261
+ }
262
+
263
+ fn nonfinite(&mut self, suffix: &[u8]) -> io::Result<()> {
264
+ for expected in suffix {
265
+ if self.original()? != Some(*expected) {
266
+ return Err(io::Error::new(
267
+ io::ErrorKind::InvalidData,
268
+ "invalid request JSON literal",
269
+ ));
270
+ }
271
+ }
272
+ self.replacement = b"ull";
273
+ Ok(())
274
+ }
275
+ }
276
+
277
+ impl<R: Read> Read for ProjectedRead<R> {
278
+ fn read(&mut self, output: &mut [u8]) -> io::Result<usize> {
279
+ if output.is_empty() {
280
+ return Ok(0);
281
+ }
282
+ if let Some((&first, rest)) = self.replacement.split_first() {
283
+ output[0] = first;
284
+ self.replacement = rest;
285
+ return Ok(1);
286
+ }
287
+ let in_string = self.projection.in_string;
288
+ let Some(byte) = self.original()? else {
289
+ return Ok(0);
290
+ };
291
+ if !in_string {
292
+ let suffix = match byte {
293
+ b'N' => Some(&b"aN"[..]),
294
+ b'I' => Some(&b"nfinity"[..]),
295
+ b'-' if self.source.fill_buf()?.first() == Some(&b'I') => Some(&b"Infinity"[..]),
296
+ _ => None,
297
+ };
298
+ if let Some(suffix) = suffix {
299
+ self.nonfinite(suffix)?;
300
+ output[0] = b'n';
301
+ return Ok(1);
302
+ }
303
+ }
304
+ output[0] = byte;
305
+ Ok(1)
306
+ }
307
+ }
308
+
309
+ pub fn project_request_body(source: impl Read) -> Result<Option<RequestBody>, serde_json::Error> {
310
+ let mut reader = ProjectedRead::new(source);
311
+ let mut decoder = serde_json::Deserializer::from_reader(&mut reader);
312
+ IgnoredAny::deserialize(&mut decoder)?;
313
+ decoder.end()?;
314
+ Ok(reader.projection.object.then_some(reader.projection.body))
315
+ }
316
+
317
+ pub fn read_request_body(
318
+ path: &Path,
319
+ transport: RequestBodyTransport,
320
+ ) -> io::Result<Option<RequestBody>> {
321
+ #[cfg(not(unix))]
322
+ if !path.metadata()?.is_file() {
323
+ return Ok(None);
324
+ }
325
+ let mut options = std::fs::OpenOptions::new();
326
+ options.read(true);
327
+ #[cfg(unix)]
328
+ {
329
+ use std::os::unix::fs::OpenOptionsExt;
330
+ options.custom_flags(libc::O_NONBLOCK);
331
+ }
332
+ let source = options.open(path)?;
333
+ if !source.metadata()?.is_file() {
334
+ return Ok(None);
335
+ }
336
+ Ok(project_request_body(TransportRead { source, transport })
337
+ .ok()
338
+ .flatten())
339
+ }
340
+
341
+ #[cfg(test)]
342
+ mod tests {
343
+ use super::*;
344
+
345
+ struct ShortReads<'a> {
346
+ input: &'a [u8],
347
+ width: usize,
348
+ }
349
+
350
+ impl Read for ShortReads<'_> {
351
+ fn read(&mut self, output: &mut [u8]) -> io::Result<usize> {
352
+ assert!(output.len() <= INPUT_BYTES);
353
+ let count = self.width.min(output.len()).min(self.input.len());
354
+ output[..count].copy_from_slice(&self.input[..count]);
355
+ self.input = &self.input[count..];
356
+ Ok(count)
357
+ }
358
+ }
359
+
360
+ #[test]
361
+ fn request_projection_curl_data_matches_filtered_bytes_across_chunk_boundaries() {
362
+ let input = b"\r\n\0{\"by\r\n\0pass_rules\":tr\r\n\0ue,\"sha\":\"aaaaaaaaaaaaaaaaaaaa\0aaaaaaaaaaaaaaaaaaaa\",\"ignored\":\"\xc3\0\xa9\xf0\r\n\x9f\x99\x82\"}\r\n\0";
363
+ let expected: Vec<_> = input
364
+ .iter()
365
+ .copied()
366
+ .filter(|byte| !matches!(*byte, b'\r' | b'\n' | 0))
367
+ .collect();
368
+ let expected = project_request_body(expected.as_slice()).unwrap();
369
+ assert!(expected.as_ref().unwrap().bypass_rules);
370
+ for width in 1..=17 {
371
+ let source = ShortReads { input, width };
372
+ let actual = project_request_body(TransportRead {
373
+ source,
374
+ transport: RequestBodyTransport::CurlData,
375
+ })
376
+ .unwrap();
377
+ assert_eq!(actual, expected);
378
+ let source = ShortReads { input, width };
379
+ assert!(project_request_body(TransportRead {
380
+ source,
381
+ transport: RequestBodyTransport::Identity
382
+ })
383
+ .is_err());
384
+ }
385
+ for width in 1..=17 {
386
+ let source = ShortReads {
387
+ input: b"\r\n\0\r\n\0",
388
+ width,
389
+ };
390
+ assert!(project_request_body(TransportRead {
391
+ source,
392
+ transport: RequestBodyTransport::CurlData
393
+ })
394
+ .is_err());
395
+ }
396
+ }
397
+
398
+ #[test]
399
+ fn request_projection_preserves_duplicates_extensions_and_utf8_boundaries() {
400
+ let input = br#"{"bypass_rules":false,"\u0062ypass_rules":true,"sha":"wrong","\u0073ha":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","nested":{"bypass_rules":false,"value":[NaN,Infinity,-Infinity,"\ud800"]},"text":"\"escaped\""}"#;
401
+ for width in 1..=17 {
402
+ let actual = project_request_body(ShortReads { input, width })
403
+ .unwrap()
404
+ .unwrap();
405
+ assert!(actual.bypass_rules);
406
+ assert_eq!(
407
+ actual.sha.as_deref(),
408
+ Some("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
409
+ );
410
+ let actual = project_request_body(ShortReads {
411
+ input: "{\"ignored\":\"é🦀\",\"bypass_rules\":true}".as_bytes(),
412
+ width,
413
+ })
414
+ .unwrap()
415
+ .unwrap();
416
+ assert!(actual.bypass_rules);
417
+ }
418
+ }
419
+
420
+ #[test]
421
+ fn request_projection_rejects_partial_or_invalid_documents() {
422
+ for input in [
423
+ &b"{\"bypass_rules\":true"[..],
424
+ &b"{\"bypass_rules\":true} trailing"[..],
425
+ &b"{\"bypass_rules\":true,}"[..],
426
+ &b"{\"bypass_rules\":true,\"ignored\":\"\xff\"}"[..],
427
+ &b"{\"bypass_rules\":true,\"ignored\":\"\xf0\x9f\"}"[..],
428
+ &b"{\"bypass_rules\":true,\"ignored\":Infinityx}"[..],
429
+ ] {
430
+ for width in 1..=7 {
431
+ assert!(project_request_body(ShortReads { input, width }).is_err());
432
+ }
433
+ }
434
+ for input in [
435
+ "[]",
436
+ "true",
437
+ "NaN",
438
+ "Infinity",
439
+ "-Infinity",
440
+ "null",
441
+ "\"text\"",
442
+ ] {
443
+ assert_eq!(project_request_body(input.as_bytes()).unwrap(), None);
444
+ }
445
+ }
446
+
447
+ #[test]
448
+ fn request_projection_keeps_oversized_sha_recognized_and_validates_deep_values() {
449
+ let mut input = format!(
450
+ "{{\"bypass_rules\":true,\"sha\":\"{}\",\"ignored\":",
451
+ "a".repeat(4096)
452
+ );
453
+ input.push_str(&"[".repeat(8192));
454
+ input.push_str("0");
455
+ input.push_str(&"]".repeat(8192));
456
+ input.push('}');
457
+ let actual = project_request_body(input.as_bytes()).unwrap().unwrap();
458
+ assert!(actual.bypass_rules);
459
+ assert_eq!(actual.sha, None);
460
+ for value in [
461
+ "1", "\"true\"", "null", "false", "{}", "[]", "NaN", "Infinity",
462
+ ] {
463
+ let input = format!("{{\"bypass_rules\":true,\"bypass_rules\":{value}}}");
464
+ assert!(
465
+ !project_request_body(input.as_bytes())
466
+ .unwrap()
467
+ .unwrap()
468
+ .bypass_rules
469
+ );
470
+ }
471
+ }
472
+ }