cc-transcript 14.46.22__tar.gz → 14.46.24__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 (261) hide show
  1. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/PKG-INFO +1 -1
  2. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/pyproject.toml +1 -1
  3. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/cli/src/commands/grep.rs +208 -103
  4. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/cli/src/target.rs +8 -4
  5. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/scan_grep_stream_tests.rs +69 -13
  6. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/Cargo.lock +0 -0
  7. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/Cargo.toml +0 -0
  8. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/LICENSE +0 -0
  9. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/README.md +0 -0
  10. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/__init__.py +0 -0
  11. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/__init__.pyi +0 -0
  12. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/_native.pyi +0 -0
  13. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/activity.py +0 -0
  14. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/activity_probe.py +0 -0
  15. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/builders.py +0 -0
  16. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/codex.py +0 -0
  17. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/command.py +0 -0
  18. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/context.py +0 -0
  19. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/corrections.py +0 -0
  20. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/cost.py +0 -0
  21. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/decision_store.py +0 -0
  22. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/decisions.py +0 -0
  23. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/discovery.py +0 -0
  24. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/disktruth.py +0 -0
  25. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/evidence.py +0 -0
  26. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/extract/__init__.py +0 -0
  27. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/extract/correct.py +0 -0
  28. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/facts.py +0 -0
  29. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/filterspec.py +0 -0
  30. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/heartbeats.py +0 -0
  31. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/ids.py +0 -0
  32. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/judge/__init__.py +0 -0
  33. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/judge/llm.py +0 -0
  34. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/judge/similar.py +0 -0
  35. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/judge/verdicts.py +0 -0
  36. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/ledger.py +0 -0
  37. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/literals.py +0 -0
  38. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/mining/__init__.py +0 -0
  39. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/mining/candidates.py +0 -0
  40. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/mining/confidence.py +0 -0
  41. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/mining/engine.py +0 -0
  42. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/mining/formats.py +0 -0
  43. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/mining/sampling.py +0 -0
  44. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/mining/signals.py +0 -0
  45. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/mining/sourcekind.py +0 -0
  46. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/mining/spec.py +0 -0
  47. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/mining/store.py +0 -0
  48. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/models.py +0 -0
  49. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/nlp.py +0 -0
  50. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/notifications.py +0 -0
  51. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/parser.py +0 -0
  52. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/py.typed +0 -0
  53. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/query.py +0 -0
  54. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/render.py +0 -0
  55. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/sentiment/__init__.py +0 -0
  56. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/sentiment/buckets.py +0 -0
  57. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
  58. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
  59. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
  60. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/sentiment/engine.py +0 -0
  61. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/sentiment/lexicon.py +0 -0
  62. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/sentiment/scorespec.py +0 -0
  63. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/snapshot_schema/config.schema.json +0 -0
  64. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/snapshot_schema/context.schema.json +0 -0
  65. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/snapshot_schema/request.schema.json +0 -0
  66. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/snapshot_schema/response.schema.json +0 -0
  67. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
  68. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/snapshots.py +0 -0
  69. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/synthetic.py +0 -0
  70. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/tools.py +0 -0
  71. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/cc_transcript/watch.py +0 -0
  72. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/cli/Cargo.toml +0 -0
  73. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/cli/src/commands/blame.rs +0 -0
  74. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/cli/src/commands/corpus.rs +0 -0
  75. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/cli/src/commands/corrections.rs +0 -0
  76. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/cli/src/commands/digest.rs +0 -0
  77. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/cli/src/commands/facts.rs +0 -0
  78. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/cli/src/commands/list.rs +0 -0
  79. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/cli/src/commands/mod.rs +0 -0
  80. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
  81. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/cli/src/commands/show.rs +0 -0
  82. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/cli/src/commands/slice.rs +0 -0
  83. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/cli/src/commands/stats.rs +0 -0
  84. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/cli/src/commands/watch.rs +0 -0
  85. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/cli/src/index.rs +0 -0
  86. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/cli/src/lib.rs +0 -0
  87. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/cli/src/output.rs +0 -0
  88. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/cli/src/timearg.rs +0 -0
  89. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/Cargo.toml +0 -0
  90. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/benches/parse.rs +0 -0
  91. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/benches/render.rs +0 -0
  92. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/benches/toolcall.rs +0 -0
  93. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/build.rs +0 -0
  94. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/activity.rs +0 -0
  95. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/actor.rs +0 -0
  96. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/blame.rs +0 -0
  97. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/buckets.rs +0 -0
  98. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/codex/discovery.rs +0 -0
  99. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/codex/lower.rs +0 -0
  100. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/codex/mod.rs +0 -0
  101. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/codex/parse.rs +0 -0
  102. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/codex/probe.rs +0 -0
  103. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/codex/protocol.rs +0 -0
  104. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/codex/review_continuation.rs +0 -0
  105. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/codex/types.rs +0 -0
  106. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/command.rs +0 -0
  107. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/context.rs +0 -0
  108. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/corrections.rs +0 -0
  109. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/cost.rs +0 -0
  110. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/discovery.rs +0 -0
  111. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/facts.rs +0 -0
  112. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/feedback.rs +0 -0
  113. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/filter.rs +0 -0
  114. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/gateway.rs +0 -0
  115. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/ids.rs +0 -0
  116. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/judge.rs +0 -0
  117. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/lib.rs +0 -0
  118. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/literals/command.rs +0 -0
  119. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/literals/corrections.rs +0 -0
  120. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/literals/feedback.rs +0 -0
  121. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/literals/mining.rs +0 -0
  122. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/literals/mod.rs +0 -0
  123. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/literals/protocol.rs +0 -0
  124. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/mining.rs +0 -0
  125. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/mining_index.rs +0 -0
  126. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/notifications.rs +0 -0
  127. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/parse.rs +0 -0
  128. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/protocol.rs +0 -0
  129. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/pystr.rs +0 -0
  130. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/query.rs +0 -0
  131. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/render.rs +0 -0
  132. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/request_body.rs +0 -0
  133. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/rng.rs +0 -0
  134. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/scan.rs +0 -0
  135. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/scan_checkpoint.rs +0 -0
  136. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/scan_grep.rs +0 -0
  137. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/scan_grep_stream.rs +0 -0
  138. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/scan_index.rs +0 -0
  139. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/scan_projection.rs +0 -0
  140. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/scan_regressions.rs +0 -0
  141. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/scan_stream.rs +0 -0
  142. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/schema.rs +0 -0
  143. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot.rs +0 -0
  144. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_activity.rs +0 -0
  145. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_admission_report_tests.rs +0 -0
  146. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_cache.rs +0 -0
  147. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_cache_tests.rs +0 -0
  148. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_catalog.rs +0 -0
  149. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_catalog_owner.rs +0 -0
  150. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_catalog_tests.rs +0 -0
  151. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_codec.rs +0 -0
  152. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_codex_append.rs +0 -0
  153. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_common_borrowed_parent_tests.rs +0 -0
  154. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_compact_codex.rs +0 -0
  155. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_compact_codex_tests.rs +0 -0
  156. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_direct_tail.rs +0 -0
  157. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_direct_tail_tests.rs +0 -0
  158. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_graph_anchor_tests.rs +0 -0
  159. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_graph_validation_tests.rs +0 -0
  160. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_hydrate_budget_tests.rs +0 -0
  161. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_hydration_observations.rs +0 -0
  162. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_index_allocations.rs +0 -0
  163. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_input.rs +0 -0
  164. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_interaction_api.rs +0 -0
  165. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_interaction_api_tests.rs +0 -0
  166. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_interactions.rs +0 -0
  167. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_interactions_tests.rs +0 -0
  168. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_labels.rs +0 -0
  169. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_ledger.rs +0 -0
  170. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_ledger_tests.rs +0 -0
  171. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_load_charge_audit_tests.rs +0 -0
  172. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_load_charge_work_tests.rs +0 -0
  173. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_membership_progress.rs +0 -0
  174. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_membership_progress_controls.rs +0 -0
  175. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_membership_progress_tests.rs +0 -0
  176. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_memory.rs +0 -0
  177. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_owned.rs +0 -0
  178. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_persistent.rs +0 -0
  179. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_prepared.rs +0 -0
  180. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_prepared_disk.rs +0 -0
  181. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_prepared_service.rs +0 -0
  182. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_projection.rs +0 -0
  183. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_publication_shared_admission_tests.rs +0 -0
  184. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_query_hydration_tests.rs +0 -0
  185. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_raw_materialization.rs +0 -0
  186. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_raw_projection.rs +0 -0
  187. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_raw_projection_tests.rs +0 -0
  188. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_raw_scope.rs +0 -0
  189. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_raw_scope_tests.rs +0 -0
  190. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_raw_tail_tests.rs +0 -0
  191. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_raw_window.rs +0 -0
  192. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_registered_review_tests.rs +0 -0
  193. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_regressions.rs +0 -0
  194. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_reply_resume_tests.rs +0 -0
  195. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_review.rs +0 -0
  196. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_review_admission_tests.rs +0 -0
  197. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_review_context.rs +0 -0
  198. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_review_reader.rs +0 -0
  199. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_review_source.rs +0 -0
  200. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_root_warm.rs +0 -0
  201. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_sidechain_absence.rs +0 -0
  202. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_sidechain_absence_tests.rs +0 -0
  203. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_sidechain_feed.rs +0 -0
  204. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_sidechain_feed_tests.rs +0 -0
  205. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_skill_demand_controls.rs +0 -0
  206. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_skill_demand_tests.rs +0 -0
  207. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_skill_framing.rs +0 -0
  208. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_skills.rs +0 -0
  209. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_source_cache_index_tests.rs +0 -0
  210. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_spine.rs +0 -0
  211. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_spine_tests.rs +0 -0
  212. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_symlink_proof.rs +0 -0
  213. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/snapshot_text.rs +0 -0
  214. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/sqlite.rs +0 -0
  215. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/toolcall.rs +0 -0
  216. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/types.rs +0 -0
  217. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/value.rs +0 -0
  218. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/src/watch.rs +0 -0
  219. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/tests/mcp_registry.rs +0 -0
  220. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/tests/persistent_allocation_model.rs +0 -0
  221. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
  222. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/core/tests/std_allocation_model.rs +0 -0
  223. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/Cargo.toml +0 -0
  224. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/build.rs +0 -0
  225. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
  226. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/actor_bridge.rs +0 -0
  227. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/bin/stub_gen.rs +0 -0
  228. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/codex.rs +0 -0
  229. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/command.rs +0 -0
  230. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/context.rs +0 -0
  231. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/corrections.rs +0 -0
  232. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/discovery.rs +0 -0
  233. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/feedback.rs +0 -0
  234. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/judge.rs +0 -0
  235. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/lexicon.rs +0 -0
  236. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/lib.rs +0 -0
  237. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/mining.rs +0 -0
  238. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/nlp.rs +0 -0
  239. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/python.rs +0 -0
  240. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/render.rs +0 -0
  241. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/score.rs +0 -0
  242. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/snapshot_decode.rs +0 -0
  243. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/snapshots.rs +0 -0
  244. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/snapshots_registered_review.rs +0 -0
  245. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/sqlite.rs +0 -0
  246. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/toolcall.rs +0 -0
  247. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/views/attachment.rs +0 -0
  248. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/views/blocks.rs +0 -0
  249. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/views/command.rs +0 -0
  250. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/views/convert.rs +0 -0
  251. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/views/dunder.rs +0 -0
  252. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/views/events.rs +0 -0
  253. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/views/meta.rs +0 -0
  254. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/views/mod.rs +0 -0
  255. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/views/print.rs +0 -0
  256. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/views/store.rs +0 -0
  257. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/views/system.rs +0 -0
  258. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/views/toolcall.rs +0 -0
  259. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/views/toolresult.rs +0 -0
  260. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/rust/crates/py/src/views/transcript.rs +0 -0
  261. {cc_transcript-14.46.22 → cc_transcript-14.46.24}/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.22
3
+ Version: 14.46.24
4
4
  Classifier: Development Status :: 3 - Alpha
5
5
  Classifier: Environment :: Console
6
6
  Classifier: Intended Audience :: Developers
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "cc-transcript"
3
- version = "14.46.22" # informational — releases stamp the version from the git tag
3
+ version = "14.46.24" # 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"
@@ -2,7 +2,10 @@ use std::collections::HashMap;
2
2
  use std::os::unix::fs::MetadataExt;
3
3
  use std::path::{Path, PathBuf};
4
4
 
5
- use cc_transcript_core::render::{compact_line, display_path, event_json, transcript_header, Json};
5
+ use cc_transcript_core::filter::event_kind;
6
+ use cc_transcript_core::render::{
7
+ compact_line, display_path, event_json, transcript_header, truncate, Json,
8
+ };
6
9
  use cc_transcript_core::scan::{
7
10
  scan_corpus, Budget, ScanBudget, ScanControl, ScanOutcome, ScanPlan, ScanSession,
8
11
  };
@@ -16,12 +19,13 @@ use regex::{Regex, RegexBuilder};
16
19
  use sonic_rs::json;
17
20
 
18
21
  use crate::output::{click_error, eline, usage_error, CliExit, Out};
19
- use crate::target::{discover, py_path};
22
+ use crate::target::{discover, py_path, warn_unparseable};
20
23
  use crate::DiscoveryOpts;
21
24
 
22
25
  const USAGE: &str = "cc-transcript grep [OPTIONS] PATTERN [PATHS]...";
23
26
  const HELP_PATH: &str = "cc-transcript grep";
24
27
  const DEFAULT_MAX_MATCHES: usize = 20;
28
+ const PREVIEW_WIDTH: usize = 100;
25
29
 
26
30
  #[derive(clap::Args, Default)]
27
31
  pub struct ScanOptions {
@@ -184,26 +188,46 @@ fn stopped(outcome: &ScanOutcome) -> bool {
184
188
  struct Emitter {
185
189
  out: Out,
186
190
  scan_json: bool,
191
+ unit: &'static str,
187
192
  first: bool,
188
193
  exit: Option<i32>,
189
194
  limits: WorkLimits,
190
195
  timeout_ms: u64,
191
- refused: Option<Refused>,
196
+ whole_bytes: usize,
197
+ cut: Option<Tally>,
198
+ left_out: Option<Tally>,
192
199
  }
193
200
 
194
201
  #[derive(Clone, Copy)]
195
- struct Refused {
196
- event: usize,
197
- bytes: usize,
198
- used: usize,
202
+ struct Tally {
203
+ first: usize,
204
+ lines: usize,
205
+ }
206
+
207
+ impl Tally {
208
+ fn add(tally: &mut Option<Self>, at: usize) {
209
+ tally
210
+ .get_or_insert(Self {
211
+ first: at,
212
+ lines: 0,
213
+ })
214
+ .lines += 1;
215
+ }
216
+
217
+ fn describe(&self, done: &str, unit: &str) -> String {
218
+ match self.lines {
219
+ 1 => format!("{done} 1 line at {unit} {}", self.first),
220
+ n => format!("{done} {n} lines from {unit} {} on", self.first),
221
+ }
222
+ }
199
223
  }
200
224
 
201
225
  impl Emitter {
202
226
  fn new(
203
227
  scan_json: bool,
228
+ unit: &'static str,
204
229
  timeout_ms: u64,
205
230
  budget: &mut ScanBudget,
206
- _cancel: &Cancellation,
207
231
  ) -> Result<Self, CliExit> {
208
232
  let mut out = Out::new();
209
233
  if scan_json {
@@ -218,41 +242,42 @@ impl Emitter {
218
242
  Ok(Self {
219
243
  out,
220
244
  scan_json,
245
+ unit,
221
246
  first: true,
222
247
  exit: None,
223
248
  limits: budget.limits,
224
249
  timeout_ms,
225
- refused: None,
250
+ whole_bytes: budget.progress.output_bytes,
251
+ cut: None,
252
+ left_out: None,
226
253
  })
227
254
  }
228
255
 
229
256
  fn emit(
230
257
  &mut self,
258
+ at: usize,
231
259
  line: String,
260
+ cut: impl FnOnce(usize) -> Option<String>,
232
261
  budget: &mut ScanBudget,
233
262
  cancel: &Cancellation,
234
263
  ) -> Result<(), SnapshotError> {
235
- budget.charge_output(line.len().saturating_add(2), cancel)?;
236
- self.write(line)
237
- }
238
-
239
- fn emit_event(
240
- &mut self,
241
- event: usize,
242
- line: String,
243
- budget: &mut ScanBudget,
244
- cancel: &Cancellation,
245
- ) -> Result<(), SnapshotError> {
246
- let refused = Refused {
247
- event,
248
- bytes: line.len().saturating_add(2),
249
- used: budget.progress.output_bytes,
250
- };
251
- self.emit(line, budget, cancel).inspect_err(|error| {
252
- if error.status == Status::OutputLimit {
253
- self.refused = Some(refused);
264
+ budget.checkpoint(cancel)?;
265
+ let charge = line.len().saturating_add(2);
266
+ self.whole_bytes = self.whole_bytes.saturating_add(charge);
267
+ if self.left_out.is_none() {
268
+ let left = budget.remaining().max_output_bytes;
269
+ if charge <= left {
270
+ budget.reserve_output(charge)?;
271
+ return self.write(line);
254
272
  }
255
- })
273
+ if let Some(short) = cut(line.len()).filter(|short| short.len() + 2 <= left) {
274
+ budget.reserve_output(short.len() + 2)?;
275
+ Tally::add(&mut self.cut, at);
276
+ return self.write(short);
277
+ }
278
+ }
279
+ Tally::add(&mut self.left_out, at);
280
+ Ok(())
256
281
  }
257
282
 
258
283
  fn write(&mut self, line: String) -> Result<(), SnapshotError> {
@@ -284,6 +309,22 @@ impl Emitter {
284
309
  self.out.line(&format!("],{}", &status[1..]))?;
285
310
  }
286
311
  self.out.finish()?;
312
+ let fitted: Vec<_> = [
313
+ self.cut.map(|cut| cut.describe("shortened", self.unit)),
314
+ self.left_out
315
+ .map(|left_out| left_out.describe("left out", self.unit)),
316
+ ]
317
+ .into_iter()
318
+ .flatten()
319
+ .collect();
320
+ if !fitted.is_empty() {
321
+ eline(&format!(
322
+ "warning: --max-output-bytes {} {}; raise it to {} to print every line whole",
323
+ self.limits.max_output_bytes,
324
+ fitted.join(" and "),
325
+ self.whole_bytes,
326
+ ));
327
+ }
287
328
  if let Some(reason) = &outcome.reason {
288
329
  if let Some(scope) = reason.strip_prefix("result_limit") {
289
330
  eline(&format!("warning: stopped at --max-matches {}; more matches may exist — raise it, or pass --max-matches 0 for no cap",counts.first().copied().unwrap_or(0)));
@@ -291,15 +332,9 @@ impl Emitter {
291
332
  eline(&format!("warning: partial view: {scope}"));
292
333
  }
293
334
  } else {
294
- let hint = match (outcome.budget, self.refused) {
295
- (Some(Budget::OutputBytes), Some(Refused { event, bytes, used })) => format!(
296
- " at event {event}: its next line is {bytes} bytes and {} remained; raise --max-output-bytes to {} or more",
297
- self.limits.max_output_bytes.saturating_sub(used),
298
- used.saturating_add(bytes),
299
- ),
300
- (Some(budget), _) => format!("; {}", raise(budget, &self.limits, self.timeout_ms)),
301
- (None, _) => String::new(),
302
- };
335
+ let hint = outcome.budget.map_or_else(String::new, |budget| {
336
+ format!("; {}", raise(budget, &self.limits, self.timeout_ms))
337
+ });
303
338
  eline(&format!("warning: scan incomplete: {reason}{hint}"));
304
339
  return Err(CliExit(3));
305
340
  }
@@ -396,12 +431,7 @@ pub fn run(args: GrepArgs) -> Result<(), CliExit> {
396
431
  return Err(usage_error(USAGE, HELP_PATH, &error.reason))
397
432
  }
398
433
  Err(error) => {
399
- let emitter = Emitter::new(
400
- args.scan_json,
401
- timeout_ms,
402
- &mut session.budget,
403
- &Cancellation::default(),
404
- )?;
434
+ let emitter = Emitter::new(args.scan_json, "event", timeout_ms, &mut session.budget)?;
405
435
  return emitter.finish(
406
436
  &failed_outcome(error, &session.budget),
407
437
  &vec![0; args.patterns.len() + 1],
@@ -414,8 +444,18 @@ pub fn run(args: GrepArgs) -> Result<(), CliExit> {
414
444
  .paths
415
445
  .iter()
416
446
  .map(|path| py_path(&path.to_string_lossy()))
447
+ .flat_map(|path| {
448
+ if path.is_dir() {
449
+ discover(&path, None, None)
450
+ .into_iter()
451
+ .map(|transcript| transcript.path)
452
+ .collect()
453
+ } else {
454
+ vec![path]
455
+ }
456
+ })
417
457
  .collect(),
418
- listed: args.paths.is_empty().then(|| {
458
+ listed: Some(if args.paths.is_empty() {
419
459
  discover(
420
460
  &root,
421
461
  args.discovery.project.as_deref(),
@@ -424,6 +464,8 @@ pub fn run(args: GrepArgs) -> Result<(), CliExit> {
424
464
  .into_iter()
425
465
  .map(|transcript| (transcript.path, transcript.mtime))
426
466
  .collect()
467
+ } else {
468
+ Vec::new()
427
469
  }),
428
470
  root,
429
471
  project: args.discovery.project.clone(),
@@ -434,35 +476,49 @@ pub fn run(args: GrepArgs) -> Result<(), CliExit> {
434
476
  let checkpoints = checkpoints();
435
477
  let mut render = Render {
436
478
  args: &args,
437
- emitter: Emitter::new(args.scan_json, timeout_ms, &mut session.budget, &cancel)?,
479
+ emitter: Emitter::new(args.scan_json, "event", timeout_ms, &mut session.budget)?,
438
480
  files: 0,
439
481
  };
440
482
  reducer.survey(plan.sources(), session.budget.limits.deadline_unix_ms);
483
+ let mut unparseable = Vec::new();
441
484
  let mut outcome = session.each_source(&plan, |session, path| {
442
- if let Some(control) = reducer.scan_stream(
443
- path,
444
- !structured,
445
- reducer.caches().then_some(&checkpoints),
446
- &mut session.budget,
447
- &cancel,
448
- |event, budget, cancel| render.event(path, event, budget, cancel),
449
- )? {
450
- return Ok(control);
485
+ let matched: usize = reducer.counts().iter().sum();
486
+ let scanned = reducer
487
+ .scan_stream(
488
+ path,
489
+ !structured,
490
+ reducer.caches().then_some(&checkpoints),
491
+ &mut session.budget,
492
+ &cancel,
493
+ |event, budget, cancel| render.event(path, event, budget, cancel),
494
+ )
495
+ .and_then(|control| match control {
496
+ Some(control) => Ok(control),
497
+ None => session.visit_snapshot(path, &mut |path, snapshot, budget, cancel| {
498
+ let result = reducer.scan_source(snapshot, budget, cancel)?;
499
+ result.emit(snapshot, budget, cancel, |event, budget, cancel| {
500
+ render.event(path, event, budget, cancel)
501
+ })?;
502
+ Ok(if result.quota_reached {
503
+ ScanControl::Stop {
504
+ source_complete: result.source_complete,
505
+ names_through: None,
506
+ }
507
+ } else {
508
+ ScanControl::Continue
509
+ })
510
+ }),
511
+ });
512
+ match scanned {
513
+ Err(error)
514
+ if error.status == Status::ParseError
515
+ && reducer.counts().iter().sum::<usize>() == matched =>
516
+ {
517
+ unparseable.push(display_path(&path.to_string_lossy()));
518
+ Ok(ScanControl::Continue)
519
+ }
520
+ scanned => scanned,
451
521
  }
452
- session.visit_snapshot(path, &mut |path, snapshot, budget, cancel| {
453
- let result = reducer.scan_source(snapshot, budget, cancel)?;
454
- result.emit(snapshot, budget, cancel, |event, budget, cancel| {
455
- render.event(path, event, budget, cancel)
456
- })?;
457
- Ok(if result.quota_reached {
458
- ScanControl::Stop {
459
- source_complete: result.source_complete,
460
- names_through: None,
461
- }
462
- } else {
463
- ScanControl::Continue
464
- })
465
- })
466
522
  });
467
523
  if outcome.complete && !reducer.complete() {
468
524
  outcome.complete = false;
@@ -503,7 +559,9 @@ pub fn run(args: GrepArgs) -> Result<(), CliExit> {
503
559
  }
504
560
  outcome.progress = session.budget.progress.clone();
505
561
  }
506
- render.emitter.finish(&outcome, counts)
562
+ let finished = render.emitter.finish(&outcome, counts);
563
+ warn_unparseable(&unparseable);
564
+ finished
507
565
  }
508
566
 
509
567
  struct Render<'a> {
@@ -525,9 +583,10 @@ impl Render<'_> {
525
583
  if event.opens_source {
526
584
  self.files += 1;
527
585
  if !structured {
528
- self.emitter.emit_event(
586
+ self.emitter.emit(
529
587
  event.index,
530
588
  transcript_header(&path.to_string_lossy()),
589
+ |_| None,
531
590
  budget,
532
591
  cancel,
533
592
  )?;
@@ -535,32 +594,27 @@ impl Render<'_> {
535
594
  }
536
595
  if !structured && args.context > 0 && event.opens_window && !event.opens_source {
537
596
  self.emitter
538
- .emit_event(event.index, "--".to_owned(), budget, cancel)?;
597
+ .emit(event.index, "--".to_owned(), |_| None, budget, cancel)?;
539
598
  }
540
599
  let _render_staging = event.preflight_render(budget, cancel)?;
541
- let line = if structured {
600
+ let range = format!("--range {}:{}", event.index, event.index + 1);
601
+ if structured {
542
602
  let Json::Obj(mut fields) = event_json(event.index, event.entry) else {
543
603
  unreachable!("event_json object")
544
604
  };
545
- fields.insert(
546
- 0,
547
- (
548
- "path".into(),
549
- Json::Str(path.to_string_lossy().into_owned()),
550
- ),
551
- );
605
+ let mut tags = Vec::new();
552
606
  if event.pattern_ids.is_none() {
553
- fields.push(("context".into(), Json::Bool(true)));
607
+ tags.push(("context".into(), Json::Bool(true)));
554
608
  }
555
609
  if args.with_result {
556
610
  let results = result_fields(event.entry, event.results);
557
611
  if !results.is_empty() {
558
- fields.push(("results".into(), Json::Obj(results)));
612
+ tags.push(("results".into(), Json::Obj(results)));
559
613
  }
560
614
  }
561
615
  if args.scan_json {
562
- fields.push(("generation".into(), Json::Str(event.generation.to_owned())));
563
- fields.push((
616
+ tags.push(("generation".into(), Json::Str(event.generation.to_owned())));
617
+ tags.push((
564
618
  "pattern_ids".into(),
565
619
  Json::Arr(
566
620
  event
@@ -570,13 +624,39 @@ impl Render<'_> {
570
624
  ),
571
625
  ));
572
626
  }
573
- Json::Obj(fields).dumps()
574
- } else {
627
+ let path = path.to_string_lossy().into_owned();
628
+ fields.insert(0, ("path".into(), Json::Str(path.clone())));
629
+ fields.extend(tags.iter().cloned());
630
+ return self.emitter.emit(
631
+ event.index,
632
+ Json::Obj(fields).dumps(),
633
+ |bytes| {
634
+ let show = format!("cc-transcript show {path} {range} --json");
635
+ let mut cut = vec![
636
+ ("path".into(), Json::Str(path)),
637
+ ("i".into(), Json::UInt(event.index as u64)),
638
+ ("kind".into(), Json::Str(event_kind(event.entry).to_owned())),
639
+ (
640
+ "cut".into(),
641
+ Json::Obj(vec![
642
+ ("bytes".into(), Json::UInt(bytes as u64)),
643
+ ("show".into(), Json::Str(show)),
644
+ ]),
645
+ ),
646
+ ];
647
+ cut.extend(tags);
648
+ Some(Json::Obj(cut).dumps())
649
+ },
650
+ budget,
651
+ cancel,
652
+ );
653
+ }
654
+ let render = |width| {
575
655
  let mut line = compact_line(
576
656
  event.index,
577
657
  event.entry,
578
658
  event.names,
579
- args.width,
659
+ width,
580
660
  false,
581
661
  args.uuids,
582
662
  );
@@ -585,10 +665,29 @@ impl Render<'_> {
585
665
  }
586
666
  line
587
667
  };
588
- self.emitter.emit_event(event.index, line, budget, cancel)
668
+ self.emitter.emit(
669
+ event.index,
670
+ render(args.width),
671
+ |bytes| {
672
+ Some(cut_line(
673
+ render(PREVIEW_WIDTH),
674
+ bytes,
675
+ &format!(
676
+ "cc-transcript show {} {range} --width 0",
677
+ display_path(&path.to_string_lossy())
678
+ ),
679
+ ))
680
+ },
681
+ budget,
682
+ cancel,
683
+ )
589
684
  }
590
685
  }
591
686
 
687
+ fn cut_line(preview: String, bytes: usize, whole: &str) -> String {
688
+ format!("{preview} [cut from {bytes} bytes; read it whole with {whole}]")
689
+ }
690
+
592
691
  fn run_over_corpus(
593
692
  store: &NativeStore,
594
693
  args: &GrepArgs,
@@ -604,19 +703,14 @@ fn run_over_corpus(
604
703
  return Err(usage_error(USAGE, HELP_PATH, &error.reason))
605
704
  }
606
705
  Err(error) => {
607
- let emitter = Emitter::new(
608
- args.scan_json,
609
- timeout_ms,
610
- &mut budget,
611
- &Cancellation::default(),
612
- )?;
706
+ let emitter = Emitter::new(args.scan_json, "corpus line", timeout_ms, &mut budget)?;
613
707
  return emitter.finish(
614
708
  &failed_outcome(error, &budget),
615
709
  &vec![0; args.patterns.len() + 1],
616
710
  );
617
711
  }
618
712
  };
619
- let mut emitter = Emitter::new(args.scan_json, timeout_ms, &mut budget, &cancel)?;
713
+ let mut emitter = Emitter::new(args.scan_json, "corpus line", timeout_ms, &mut budget)?;
620
714
  let mut outcome = scan_corpus(
621
715
  path,
622
716
  &mut budget,
@@ -632,24 +726,35 @@ fn run_over_corpus(
632
726
  } else {
633
727
  line.len().saturating_add(2)
634
728
  };
635
- if render_bound > budget.remaining().max_output_bytes {
636
- return Err(SnapshotError::new(
637
- Status::OutputLimit,
638
- "corpus match exceeds remaining output budget",
639
- ));
640
- }
641
729
  let _render_staging = budget.reserve_staging(render_bound, cancel)?;
642
730
  budget.charge_projection(
643
731
  line.len().saturating_add(path.as_os_str().len()),
644
732
  0,
645
733
  cancel,
646
734
  )?;
735
+ let shown = path.to_string_lossy();
647
736
  let rendered = if args.scan_json {
648
- sonic_rs::to_string(&json!({"path":path.to_string_lossy().as_ref(),"line":line_number,"text":line,"pattern_ids":ids})).map_err(|e|SnapshotError::new(Status::OutputLimit,e.to_string()))?
737
+ sonic_rs::to_string(&json!({"path":shown.as_ref(),"line":line_number,"text":line,"pattern_ids":&ids})).map_err(|e|SnapshotError::new(Status::OutputLimit,e.to_string()))?
649
738
  } else {
650
739
  line.to_owned()
651
740
  };
652
- emitter.emit(rendered, budget, cancel)?;
741
+ emitter.emit(
742
+ line_number,
743
+ rendered,
744
+ |bytes| {
745
+ Some(if args.scan_json {
746
+ sonic_rs::to_string(&json!({"path":shown.as_ref(),"line":line_number,"cut":{"bytes":bytes,"show":format!("sed -n {line_number}p {shown}")},"pattern_ids":&ids})).expect("corpus cut record serializes")
747
+ } else {
748
+ cut_line(
749
+ truncate(line, PREVIEW_WIDTH),
750
+ bytes,
751
+ &format!("sed -n {line_number}p {}", display_path(&shown)),
752
+ )
753
+ })
754
+ },
755
+ budget,
756
+ cancel,
757
+ )?;
653
758
  }
654
759
  Ok(reducer.satisfied())
655
760
  },
@@ -275,14 +275,18 @@ pub fn stream_transcripts<T: Send>(
275
275
  }
276
276
  },
277
277
  )?;
278
- if !missing.is_empty() {
278
+ warn_unparseable(&missing);
279
+ Ok(())
280
+ }
281
+
282
+ pub fn warn_unparseable(skipped: &[String]) {
283
+ if !skipped.is_empty() {
279
284
  eline(&format!(
280
285
  "warning: skipped {} unparseable transcript(s): {}",
281
- missing.len(),
282
- missing.join(", ")
286
+ skipped.len(),
287
+ skipped.join(", ")
283
288
  ));
284
289
  }
285
- Ok(())
286
290
  }
287
291
 
288
292
  /// Parse every target and keep its events, in target order (cli.py parse_transcripts).