cc-transcript 14.46.21__tar.gz → 14.46.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 (261) hide show
  1. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/PKG-INFO +1 -1
  2. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/pyproject.toml +1 -1
  3. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/cli/src/commands/grep.rs +65 -44
  4. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/scan_grep.rs +14 -21
  5. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/scan_grep_stream.rs +138 -16
  6. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/scan_grep_stream_tests.rs +291 -0
  7. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot.rs +6 -2
  8. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_membership_progress_controls.rs +9 -14
  9. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/toolcall.rs +0 -138
  10. cc_transcript-14.46.22/rust/crates/core/tests/mcp_registry.rs +161 -0
  11. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/tests/persistent_allocation_model.rs +17 -13
  12. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/Cargo.lock +0 -0
  13. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/Cargo.toml +0 -0
  14. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/LICENSE +0 -0
  15. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/README.md +0 -0
  16. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/__init__.py +0 -0
  17. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/__init__.pyi +0 -0
  18. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/_native.pyi +0 -0
  19. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/activity.py +0 -0
  20. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/activity_probe.py +0 -0
  21. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/builders.py +0 -0
  22. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/codex.py +0 -0
  23. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/command.py +0 -0
  24. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/context.py +0 -0
  25. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/corrections.py +0 -0
  26. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/cost.py +0 -0
  27. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/decision_store.py +0 -0
  28. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/decisions.py +0 -0
  29. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/discovery.py +0 -0
  30. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/disktruth.py +0 -0
  31. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/evidence.py +0 -0
  32. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/extract/__init__.py +0 -0
  33. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/extract/correct.py +0 -0
  34. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/facts.py +0 -0
  35. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/filterspec.py +0 -0
  36. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/heartbeats.py +0 -0
  37. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/ids.py +0 -0
  38. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/judge/__init__.py +0 -0
  39. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/judge/llm.py +0 -0
  40. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/judge/similar.py +0 -0
  41. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/judge/verdicts.py +0 -0
  42. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/ledger.py +0 -0
  43. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/literals.py +0 -0
  44. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/mining/__init__.py +0 -0
  45. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/mining/candidates.py +0 -0
  46. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/mining/confidence.py +0 -0
  47. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/mining/engine.py +0 -0
  48. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/mining/formats.py +0 -0
  49. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/mining/sampling.py +0 -0
  50. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/mining/signals.py +0 -0
  51. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/mining/sourcekind.py +0 -0
  52. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/mining/spec.py +0 -0
  53. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/mining/store.py +0 -0
  54. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/models.py +0 -0
  55. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/nlp.py +0 -0
  56. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/notifications.py +0 -0
  57. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/parser.py +0 -0
  58. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/py.typed +0 -0
  59. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/query.py +0 -0
  60. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/render.py +0 -0
  61. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/sentiment/__init__.py +0 -0
  62. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/sentiment/buckets.py +0 -0
  63. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
  64. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
  65. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
  66. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/sentiment/engine.py +0 -0
  67. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/sentiment/lexicon.py +0 -0
  68. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/sentiment/scorespec.py +0 -0
  69. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/snapshot_schema/config.schema.json +0 -0
  70. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/snapshot_schema/context.schema.json +0 -0
  71. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/snapshot_schema/request.schema.json +0 -0
  72. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/snapshot_schema/response.schema.json +0 -0
  73. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
  74. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/snapshots.py +0 -0
  75. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/synthetic.py +0 -0
  76. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/tools.py +0 -0
  77. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/cc_transcript/watch.py +0 -0
  78. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/cli/Cargo.toml +0 -0
  79. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/cli/src/commands/blame.rs +0 -0
  80. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/cli/src/commands/corpus.rs +0 -0
  81. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/cli/src/commands/corrections.rs +0 -0
  82. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/cli/src/commands/digest.rs +0 -0
  83. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/cli/src/commands/facts.rs +0 -0
  84. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/cli/src/commands/list.rs +0 -0
  85. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/cli/src/commands/mod.rs +0 -0
  86. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
  87. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/cli/src/commands/show.rs +0 -0
  88. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/cli/src/commands/slice.rs +0 -0
  89. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/cli/src/commands/stats.rs +0 -0
  90. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/cli/src/commands/watch.rs +0 -0
  91. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/cli/src/index.rs +0 -0
  92. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/cli/src/lib.rs +0 -0
  93. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/cli/src/output.rs +0 -0
  94. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/cli/src/target.rs +0 -0
  95. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/cli/src/timearg.rs +0 -0
  96. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/Cargo.toml +0 -0
  97. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/benches/parse.rs +0 -0
  98. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/benches/render.rs +0 -0
  99. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/benches/toolcall.rs +0 -0
  100. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/build.rs +0 -0
  101. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/activity.rs +0 -0
  102. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/actor.rs +0 -0
  103. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/blame.rs +0 -0
  104. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/buckets.rs +0 -0
  105. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/codex/discovery.rs +0 -0
  106. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/codex/lower.rs +0 -0
  107. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/codex/mod.rs +0 -0
  108. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/codex/parse.rs +0 -0
  109. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/codex/probe.rs +0 -0
  110. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/codex/protocol.rs +0 -0
  111. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/codex/review_continuation.rs +0 -0
  112. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/codex/types.rs +0 -0
  113. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/command.rs +0 -0
  114. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/context.rs +0 -0
  115. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/corrections.rs +0 -0
  116. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/cost.rs +0 -0
  117. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/discovery.rs +0 -0
  118. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/facts.rs +0 -0
  119. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/feedback.rs +0 -0
  120. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/filter.rs +0 -0
  121. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/gateway.rs +0 -0
  122. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/ids.rs +0 -0
  123. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/judge.rs +0 -0
  124. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/lib.rs +0 -0
  125. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/literals/command.rs +0 -0
  126. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/literals/corrections.rs +0 -0
  127. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/literals/feedback.rs +0 -0
  128. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/literals/mining.rs +0 -0
  129. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/literals/mod.rs +0 -0
  130. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/literals/protocol.rs +0 -0
  131. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/mining.rs +0 -0
  132. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/mining_index.rs +0 -0
  133. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/notifications.rs +0 -0
  134. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/parse.rs +0 -0
  135. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/protocol.rs +0 -0
  136. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/pystr.rs +0 -0
  137. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/query.rs +0 -0
  138. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/render.rs +0 -0
  139. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/request_body.rs +0 -0
  140. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/rng.rs +0 -0
  141. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/scan.rs +0 -0
  142. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/scan_checkpoint.rs +0 -0
  143. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/scan_index.rs +0 -0
  144. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/scan_projection.rs +0 -0
  145. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/scan_regressions.rs +0 -0
  146. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/scan_stream.rs +0 -0
  147. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/schema.rs +0 -0
  148. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_activity.rs +0 -0
  149. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_admission_report_tests.rs +0 -0
  150. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_cache.rs +0 -0
  151. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_cache_tests.rs +0 -0
  152. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_catalog.rs +0 -0
  153. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_catalog_owner.rs +0 -0
  154. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_catalog_tests.rs +0 -0
  155. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_codec.rs +0 -0
  156. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_codex_append.rs +0 -0
  157. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_common_borrowed_parent_tests.rs +0 -0
  158. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_compact_codex.rs +0 -0
  159. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_compact_codex_tests.rs +0 -0
  160. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_direct_tail.rs +0 -0
  161. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_direct_tail_tests.rs +0 -0
  162. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_graph_anchor_tests.rs +0 -0
  163. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_graph_validation_tests.rs +0 -0
  164. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_hydrate_budget_tests.rs +0 -0
  165. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_hydration_observations.rs +0 -0
  166. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_index_allocations.rs +0 -0
  167. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_input.rs +0 -0
  168. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_interaction_api.rs +0 -0
  169. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_interaction_api_tests.rs +0 -0
  170. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_interactions.rs +0 -0
  171. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_interactions_tests.rs +0 -0
  172. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_labels.rs +0 -0
  173. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_ledger.rs +0 -0
  174. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_ledger_tests.rs +0 -0
  175. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_load_charge_audit_tests.rs +0 -0
  176. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_load_charge_work_tests.rs +0 -0
  177. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_membership_progress.rs +0 -0
  178. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_membership_progress_tests.rs +0 -0
  179. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_memory.rs +0 -0
  180. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_owned.rs +0 -0
  181. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_persistent.rs +0 -0
  182. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_prepared.rs +0 -0
  183. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_prepared_disk.rs +0 -0
  184. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_prepared_service.rs +0 -0
  185. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_projection.rs +0 -0
  186. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_publication_shared_admission_tests.rs +0 -0
  187. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_query_hydration_tests.rs +0 -0
  188. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_raw_materialization.rs +0 -0
  189. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_raw_projection.rs +0 -0
  190. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_raw_projection_tests.rs +0 -0
  191. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_raw_scope.rs +0 -0
  192. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_raw_scope_tests.rs +0 -0
  193. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_raw_tail_tests.rs +0 -0
  194. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_raw_window.rs +0 -0
  195. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_registered_review_tests.rs +0 -0
  196. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_regressions.rs +0 -0
  197. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_reply_resume_tests.rs +0 -0
  198. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_review.rs +0 -0
  199. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_review_admission_tests.rs +0 -0
  200. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_review_context.rs +0 -0
  201. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_review_reader.rs +0 -0
  202. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_review_source.rs +0 -0
  203. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_root_warm.rs +0 -0
  204. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_sidechain_absence.rs +0 -0
  205. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_sidechain_absence_tests.rs +0 -0
  206. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_sidechain_feed.rs +0 -0
  207. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_sidechain_feed_tests.rs +0 -0
  208. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_skill_demand_controls.rs +0 -0
  209. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_skill_demand_tests.rs +0 -0
  210. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_skill_framing.rs +0 -0
  211. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_skills.rs +0 -0
  212. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_source_cache_index_tests.rs +0 -0
  213. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_spine.rs +0 -0
  214. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_spine_tests.rs +0 -0
  215. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_symlink_proof.rs +0 -0
  216. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/snapshot_text.rs +0 -0
  217. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/sqlite.rs +0 -0
  218. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/types.rs +0 -0
  219. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/value.rs +0 -0
  220. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/src/watch.rs +0 -0
  221. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
  222. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/core/tests/std_allocation_model.rs +0 -0
  223. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/Cargo.toml +0 -0
  224. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/build.rs +0 -0
  225. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
  226. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/actor_bridge.rs +0 -0
  227. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/bin/stub_gen.rs +0 -0
  228. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/codex.rs +0 -0
  229. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/command.rs +0 -0
  230. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/context.rs +0 -0
  231. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/corrections.rs +0 -0
  232. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/discovery.rs +0 -0
  233. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/feedback.rs +0 -0
  234. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/judge.rs +0 -0
  235. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/lexicon.rs +0 -0
  236. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/lib.rs +0 -0
  237. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/mining.rs +0 -0
  238. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/nlp.rs +0 -0
  239. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/python.rs +0 -0
  240. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/render.rs +0 -0
  241. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/score.rs +0 -0
  242. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/snapshot_decode.rs +0 -0
  243. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/snapshots.rs +0 -0
  244. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/snapshots_registered_review.rs +0 -0
  245. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/sqlite.rs +0 -0
  246. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/toolcall.rs +0 -0
  247. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/views/attachment.rs +0 -0
  248. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/views/blocks.rs +0 -0
  249. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/views/command.rs +0 -0
  250. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/views/convert.rs +0 -0
  251. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/views/dunder.rs +0 -0
  252. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/views/events.rs +0 -0
  253. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/views/meta.rs +0 -0
  254. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/views/mod.rs +0 -0
  255. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/views/print.rs +0 -0
  256. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/views/store.rs +0 -0
  257. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/views/system.rs +0 -0
  258. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/views/toolcall.rs +0 -0
  259. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/views/toolresult.rs +0 -0
  260. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/rust/crates/py/src/views/transcript.rs +0 -0
  261. {cc_transcript-14.46.21 → cc_transcript-14.46.22}/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.21
3
+ Version: 14.46.22
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.21" # informational — releases stamp the version from the git tag
3
+ version = "14.46.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"
@@ -188,6 +188,14 @@ struct Emitter {
188
188
  exit: Option<i32>,
189
189
  limits: WorkLimits,
190
190
  timeout_ms: u64,
191
+ refused: Option<Refused>,
192
+ }
193
+
194
+ #[derive(Clone, Copy)]
195
+ struct Refused {
196
+ event: usize,
197
+ bytes: usize,
198
+ used: usize,
191
199
  }
192
200
 
193
201
  impl Emitter {
@@ -214,6 +222,7 @@ impl Emitter {
214
222
  exit: None,
215
223
  limits: budget.limits,
216
224
  timeout_ms,
225
+ refused: None,
217
226
  })
218
227
  }
219
228
 
@@ -227,9 +236,23 @@ impl Emitter {
227
236
  self.write(line)
228
237
  }
229
238
 
230
- fn summary(&mut self, line: String, budget: &mut ScanBudget) -> Result<(), SnapshotError> {
231
- budget.reserve_output(line.len().saturating_add(2))?;
232
- self.write(line)
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);
254
+ }
255
+ })
233
256
  }
234
257
 
235
258
  fn write(&mut self, line: String) -> Result<(), SnapshotError> {
@@ -268,13 +291,16 @@ impl Emitter {
268
291
  eline(&format!("warning: partial view: {scope}"));
269
292
  }
270
293
  } else {
271
- match outcome.budget {
272
- Some(budget) => eline(&format!(
273
- "warning: scan incomplete: {reason}; {}",
274
- raise(budget, &self.limits, self.timeout_ms)
275
- )),
276
- None => eline(&format!("warning: scan incomplete: {reason}")),
277
- }
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
+ };
303
+ eline(&format!("warning: scan incomplete: {reason}{hint}"));
278
304
  return Err(CliExit(3));
279
305
  }
280
306
  }
@@ -411,21 +437,17 @@ pub fn run(args: GrepArgs) -> Result<(), CliExit> {
411
437
  emitter: Emitter::new(args.scan_json, timeout_ms, &mut session.budget, &cancel)?,
412
438
  files: 0,
413
439
  };
414
- if reducer.streams() {
415
- reducer.survey(plan.sources(), session.budget.limits.deadline_unix_ms);
416
- }
440
+ reducer.survey(plan.sources(), session.budget.limits.deadline_unix_ms);
417
441
  let mut outcome = session.each_source(&plan, |session, path| {
418
- if reducer.streams() {
419
- if let Some(control) = reducer.scan_stream(
420
- path,
421
- !structured,
422
- (!reducer.prefilters()).then_some(&checkpoints),
423
- &mut session.budget,
424
- &cancel,
425
- |event, budget, cancel| render.event(path, event, budget, cancel),
426
- )? {
427
- return Ok(control);
428
- }
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);
429
451
  }
430
452
  session.visit_snapshot(path, &mut |path, snapshot, budget, cancel| {
431
453
  let result = reducer.scan_source(snapshot, budget, cancel)?;
@@ -469,14 +491,11 @@ pub fn run(args: GrepArgs) -> Result<(), CliExit> {
469
491
  } else {
470
492
  ""
471
493
  };
472
- if let Err(error) = render.emitter.summary(
473
- format!(
474
- "{} files, {} matches{partial}{note}{validated}",
475
- render.files,
476
- counts.iter().sum::<usize>()
477
- ),
478
- &mut session.budget,
479
- ) {
494
+ if let Err(error) = render.emitter.write(format!(
495
+ "{} files, {} matches{partial}{note}{validated}",
496
+ render.files,
497
+ counts.iter().sum::<usize>()
498
+ )) {
480
499
  if !stopped(&outcome) {
481
500
  outcome.complete = false;
482
501
  (outcome.reason, outcome.budget) = session.budget.explain(error);
@@ -506,12 +525,17 @@ impl Render<'_> {
506
525
  if event.opens_source {
507
526
  self.files += 1;
508
527
  if !structured {
509
- self.emitter
510
- .emit(transcript_header(&path.to_string_lossy()), budget, cancel)?;
528
+ self.emitter.emit_event(
529
+ event.index,
530
+ transcript_header(&path.to_string_lossy()),
531
+ budget,
532
+ cancel,
533
+ )?;
511
534
  }
512
535
  }
513
536
  if !structured && args.context > 0 && event.opens_window && !event.opens_source {
514
- self.emitter.emit("--".to_owned(), budget, cancel)?;
537
+ self.emitter
538
+ .emit_event(event.index, "--".to_owned(), budget, cancel)?;
515
539
  }
516
540
  let _render_staging = event.preflight_render(budget, cancel)?;
517
541
  let line = if structured {
@@ -561,7 +585,7 @@ impl Render<'_> {
561
585
  }
562
586
  line
563
587
  };
564
- self.emitter.emit(line, budget, cancel)
588
+ self.emitter.emit_event(event.index, line, budget, cancel)
565
589
  }
566
590
  }
567
591
 
@@ -641,14 +665,11 @@ fn run_over_corpus(
641
665
  } else {
642
666
  ""
643
667
  };
644
- if let Err(error) = emitter.summary(
645
- format!(
646
- "{} matches in {}{partial}",
647
- counts.iter().sum::<usize>(),
648
- display_path(&path.to_string_lossy())
649
- ),
650
- &mut budget,
651
- ) {
668
+ if let Err(error) = emitter.write(format!(
669
+ "{} matches in {}{partial}",
670
+ counts.iter().sum::<usize>(),
671
+ display_path(&path.to_string_lossy())
672
+ )) {
652
673
  if !stopped(&outcome) {
653
674
  outcome.complete = false;
654
675
  (outcome.reason, outcome.budget) = budget.explain(error);
@@ -536,12 +536,8 @@ impl<'store> GrepReducer<'store> {
536
536
  Ok(output)
537
537
  }
538
538
 
539
- pub fn streams(&self) -> bool {
540
- !self.options.errors && !self.options.with_result
541
- }
542
-
543
- pub fn prefilters(&self) -> bool {
544
- self.prefilter.is_some()
539
+ pub fn caches(&self) -> bool {
540
+ self.prefilter.is_none() && !self.options.errors && !self.options.with_result
545
541
  }
546
542
 
547
543
  fn matches(
@@ -764,12 +760,6 @@ fn preflight_render<'store>(
764
760
  .saturating_mul(8),
765
761
  );
766
762
  }
767
- if bytes > budget.remaining().max_output_bytes {
768
- return Err(SnapshotError::new(
769
- Status::OutputLimit,
770
- "event render exceeds remaining output budget",
771
- ));
772
- }
773
763
  let staging = budget.reserve_staging(bytes, cancel)?;
774
764
  let projected = crate::snapshot_codec::encoded_size(
775
765
  &crate::snapshot_codec::EventWire::new(index, entry),
@@ -1137,7 +1127,7 @@ mod tests {
1137
1127
  }
1138
1128
 
1139
1129
  #[test]
1140
- fn context_render_rejects_output_before_producer_is_visited() {
1130
+ fn context_render_leaves_the_output_cap_to_the_rendered_line() {
1141
1131
  let source = snapshot(&[user("hit"), user(&"x".repeat(32768))]);
1142
1132
  let owner = crate::snapshot::NativeStore::new(&json!({})).unwrap();
1143
1133
  let mut budget = budget(&owner);
@@ -1148,15 +1138,18 @@ mod tests {
1148
1138
  .scan_source(&source, &mut budget, &Cancellation::default())
1149
1139
  .unwrap();
1150
1140
  budget.limits.max_output_bytes = 1024;
1151
- let mut visited = false;
1152
- let admission = result
1141
+ let output = budget.progress.output_bytes;
1142
+ let _staging = result
1153
1143
  .preflight_render(&source, 1, &mut budget, &Cancellation::default())
1154
- .map(|_staging| {
1155
- visited = true;
1156
- haystack(source.entry(1), true, true, true)
1157
- });
1158
- assert_eq!(admission.err().unwrap().status, Status::OutputLimit);
1159
- assert!(!visited);
1144
+ .unwrap();
1145
+ assert_eq!(budget.progress.output_bytes, output);
1146
+ assert_eq!(
1147
+ budget
1148
+ .charge_output(1025, &Cancellation::default())
1149
+ .unwrap_err()
1150
+ .status,
1151
+ Status::OutputLimit
1152
+ );
1160
1153
  }
1161
1154
 
1162
1155
  #[test]
@@ -10,7 +10,8 @@ use std::thread::JoinHandle;
10
10
  use memchr::memmem;
11
11
  use sonic_rs::{json, JsonValueTrait};
12
12
 
13
- use super::{incomplete, GrepEvent, GrepReducer, Searched};
13
+ use super::{incomplete, GrepEvent, GrepReducer, GrepResultMetadata, Searched};
14
+ use crate::activity::tool_result_metadata;
14
15
  use crate::gateway::{sniff_provider, Provider};
15
16
  use crate::scan::{ScanBudget, ScanControl, StagingReservation};
16
17
  use crate::scan_checkpoint::{
@@ -139,6 +140,12 @@ enum Validity {
139
140
  Unverified,
140
141
  }
141
142
 
143
+ enum Join {
144
+ Settled,
145
+ Open,
146
+ Unloaded(usize),
147
+ }
148
+
142
149
  struct GrepStream<'store> {
143
150
  query_key: Option<String>,
144
151
  size: u64,
@@ -220,6 +227,69 @@ fn resolve<'n>(
220
227
  .collect()
221
228
  }
222
229
 
230
+ fn joined<'q>(
231
+ queue: &'q VecDeque<StreamSlot<'_>>,
232
+ position: usize,
233
+ ) -> (HashMap<&'q str, GrepResultMetadata<'q>>, Join) {
234
+ let Some(entry @ Entry::Assistant(assistant)) = queue[position].entry.as_ref() else {
235
+ return (HashMap::new(), Join::Settled);
236
+ };
237
+ let uses: Vec<_> = entry.tool_uses().collect();
238
+ let mut found = HashMap::new();
239
+ let mut join = Join::Open;
240
+ for (at, later) in queue.iter().enumerate().skip(position + 1) {
241
+ if found.len() == uses.len() {
242
+ break;
243
+ }
244
+ match &later.entry {
245
+ None => {
246
+ join = Join::Unloaded(at);
247
+ break;
248
+ }
249
+ Some(Entry::Assistant(next))
250
+ if next.request_id.is_none() || next.request_id != assistant.request_id =>
251
+ {
252
+ join = Join::Settled;
253
+ break;
254
+ }
255
+ Some(Entry::User(user)) => {
256
+ for block in user.tool_results() {
257
+ if uses.iter().any(|tool| tool.id == block.tool_use_id) {
258
+ found
259
+ .entry(block.tool_use_id.as_str())
260
+ .or_insert((block, user.meta.timestamp));
261
+ }
262
+ }
263
+ }
264
+ Some(_) => {}
265
+ }
266
+ }
267
+ if found.len() == uses.len() {
268
+ join = Join::Settled;
269
+ }
270
+ let results = uses
271
+ .into_iter()
272
+ .map(|tool| {
273
+ let result = found.get(tool.id.as_str());
274
+ let metadata = tool_result_metadata(
275
+ assistant.meta.timestamp,
276
+ result.map(|(block, _)| *block),
277
+ result.map(|(_, at)| *at),
278
+ );
279
+ (
280
+ tool.id.as_str(),
281
+ GrepResultMetadata {
282
+ tool: tool.name.as_str(),
283
+ is_error: metadata.is_error,
284
+ denied: metadata.denied,
285
+ duration_ms: metadata.duration_ms,
286
+ },
287
+ )
288
+ })
289
+ .collect();
290
+ (results, join)
291
+ }
292
+
223
293
  fn parse(
224
294
  bytes: &[u8],
225
295
  budget: &mut ScanBudget<'_>,
@@ -682,7 +752,7 @@ impl<'store> GrepReducer<'store> {
682
752
  &Cancellation,
683
753
  ) -> Result<(), SnapshotError>,
684
754
  {
685
- stream.decide(self, false, budget, cancel)?;
755
+ stream.decide(self, false, source, budget, cancel)?;
686
756
  stream.emit(self, false, source, budget, cancel, emit)?;
687
757
  stream.feed(self, source, budget, cancel, emit)?;
688
758
  while !stream.finished(self.options.context) {
@@ -690,7 +760,7 @@ impl<'store> GrepReducer<'store> {
690
760
  if stream.capture.is_none() {
691
761
  stream.capture = stream.capture(self);
692
762
  }
693
- stream.decide(self, true, budget, cancel)?;
763
+ stream.decide(self, true, source, budget, cancel)?;
694
764
  stream.emit(self, true, source, budget, cancel, emit)?;
695
765
  return Ok(Some(true));
696
766
  };
@@ -706,8 +776,7 @@ impl<'store> GrepReducer<'store> {
706
776
  }
707
777
  }
708
778
  if stream.raw && line.terminated && !self.candidate(bytes) {
709
- let names =
710
- stream.render_names || !self.options.errors && self.tool_names.is_some();
779
+ let names = stream.render_names || self.tool_names.is_some();
711
780
  stream.skip(line, bytes, names, budget, cancel)?;
712
781
  } else {
713
782
  let sum = digest(bytes);
@@ -725,7 +794,7 @@ impl<'store> GrepReducer<'store> {
725
794
  if line.terminated {
726
795
  stream.commit(line, source, budget, cancel)?;
727
796
  }
728
- stream.decide(self, false, budget, cancel)?;
797
+ stream.decide(self, false, source, budget, cancel)?;
729
798
  stream.emit(self, false, source, budget, cancel, emit)?;
730
799
  }
731
800
  Ok(Some(false))
@@ -1121,7 +1190,7 @@ impl<'store> GrepStream<'store> {
1121
1190
  continue;
1122
1191
  }
1123
1192
  self.push_indexed(index, next, budget, cancel)?;
1124
- self.decide(grep, false, budget, cancel)?;
1193
+ self.decide(grep, false, source, budget, cancel)?;
1125
1194
  self.emit(grep, false, source, budget, cancel, emit)?;
1126
1195
  if self.finished(grep.options.context) {
1127
1196
  return Ok(());
@@ -1282,15 +1351,20 @@ impl<'store> GrepStream<'store> {
1282
1351
  &mut self,
1283
1352
  grep: &mut GrepReducer<'store>,
1284
1353
  eof: bool,
1354
+ source: &mut SourceStream<'store>,
1285
1355
  budget: &mut ScanBudget<'store>,
1286
1356
  cancel: &Cancellation,
1287
1357
  ) -> Result<(), SnapshotError> {
1288
- let filtering = !grep.options.errors && grep.tool_names.is_some();
1289
- let results = HashMap::new();
1358
+ let filtering = grep.tool_names.is_some();
1359
+ let errors = grep.options.errors;
1290
1360
  while self.stopped.is_none() && self.decided < self.parsed {
1291
1361
  let position = self.decided - self.emitted;
1362
+ let skipped = self.queue[position].span.is_some();
1363
+ if errors && !skipped && !self.settle(position, eof, source, budget, cancel)? {
1364
+ break;
1365
+ }
1292
1366
  let slot = &self.queue[position];
1293
- let lookup = filtering && slot.is_user();
1367
+ let lookup = filtering && !skipped && slot.is_user();
1294
1368
  let ids = slot.results();
1295
1369
  if lookup && !eof && unresolved(&self.names, &ids) {
1296
1370
  break;
@@ -1301,10 +1375,31 @@ impl<'store> GrepStream<'store> {
1301
1375
  HashMap::new()
1302
1376
  };
1303
1377
  let searched = match (&slot.projected, &slot.entry) {
1378
+ _ if skipped => None,
1304
1379
  (Some(projected), _) => Some(Searched::Projected(projected)),
1305
1380
  (None, Some(entry)) => Some(Searched::Entry(entry)),
1306
1381
  (None, None) => None,
1307
1382
  };
1383
+ let results = match &slot.entry {
1384
+ _ if !errors => HashMap::new(),
1385
+ Some(Entry::User(user)) => user
1386
+ .tool_results()
1387
+ .map(|block| {
1388
+ let id = block.tool_use_id.as_str();
1389
+ let metadata = tool_result_metadata(user.meta.timestamp, Some(block), None);
1390
+ (
1391
+ id,
1392
+ GrepResultMetadata {
1393
+ tool: names.get(id).copied().unwrap_or_default(),
1394
+ is_error: metadata.is_error,
1395
+ denied: metadata.denied,
1396
+ duration_ms: metadata.duration_ms,
1397
+ },
1398
+ )
1399
+ })
1400
+ .collect(),
1401
+ _ => joined(&self.queue, position).0,
1402
+ };
1308
1403
  let matched = match searched {
1309
1404
  Some(searched) => {
1310
1405
  grep.matches(searched, slot.charge, &names, &results, budget, cancel)?
@@ -1314,6 +1409,7 @@ impl<'store> GrepStream<'store> {
1314
1409
  None
1315
1410
  }
1316
1411
  };
1412
+ drop(results);
1317
1413
  drop(names);
1318
1414
  let slot = &mut self.queue[position];
1319
1415
  slot.projected = None;
@@ -1329,13 +1425,31 @@ impl<'store> GrepStream<'store> {
1329
1425
  Ok(())
1330
1426
  }
1331
1427
 
1428
+ fn settle(
1429
+ &mut self,
1430
+ position: usize,
1431
+ eof: bool,
1432
+ source: &mut SourceStream<'store>,
1433
+ budget: &mut ScanBudget<'store>,
1434
+ cancel: &Cancellation,
1435
+ ) -> Result<bool, SnapshotError> {
1436
+ loop {
1437
+ match joined(&self.queue, position).1 {
1438
+ Join::Settled => return Ok(true),
1439
+ Join::Open => return Ok(eof),
1440
+ Join::Unloaded(at) => self.load(at, source, budget, cancel)?,
1441
+ }
1442
+ }
1443
+ }
1444
+
1332
1445
  fn load(
1333
1446
  &mut self,
1447
+ position: usize,
1334
1448
  source: &mut SourceStream<'store>,
1335
1449
  budget: &mut ScanBudget<'store>,
1336
1450
  cancel: &Cancellation,
1337
1451
  ) -> Result<(), SnapshotError> {
1338
- let (line, sum, bytes) = match self.queue[0].span {
1452
+ let (line, sum, bytes) = match self.queue[position].span {
1339
1453
  Some(line) => {
1340
1454
  let bytes = source.read_span(&line, budget, cancel)?;
1341
1455
  (line, digest(&bytes), bytes)
@@ -1345,7 +1459,7 @@ impl<'store> GrepStream<'store> {
1345
1459
  .index
1346
1460
  .as_ref()
1347
1461
  .expect("unparsed slots come from an index or a skipped line");
1348
- let (line, sum) = reader.row(self.queue[0].index, budget, cancel)?;
1462
+ let (line, sum) = reader.row(self.queue[position].index, budget, cancel)?;
1349
1463
  let bytes = source.read_span(&line, budget, cancel)?;
1350
1464
  if digest(&bytes) != sum {
1351
1465
  return Err(reader.damage());
@@ -1355,7 +1469,7 @@ impl<'store> GrepStream<'store> {
1355
1469
  };
1356
1470
  let entry = match parse(&bytes, budget, cancel)? {
1357
1471
  Some(entry) => entry,
1358
- None if self.queue[0].span.is_some() => {
1472
+ None if self.queue[position].span.is_some() => {
1359
1473
  return Err(SnapshotError::new(
1360
1474
  Status::Changed,
1361
1475
  "skipped line no longer parses as an event",
@@ -1364,7 +1478,7 @@ impl<'store> GrepStream<'store> {
1364
1478
  None => return Err(self.index.as_ref().expect("indexed slot").damage()),
1365
1479
  };
1366
1480
  let charge = charge_of(&entry);
1367
- let slot = &mut self.queue[0];
1481
+ let slot = &mut self.queue[position];
1368
1482
  budget.extend_staging(&mut slot.staging, charge, cancel)?;
1369
1483
  slot.line = Some((line, sum));
1370
1484
  slot.charge = charge;
@@ -1389,7 +1503,7 @@ impl<'store> GrepStream<'store> {
1389
1503
  ) -> Result<(), SnapshotError>,
1390
1504
  {
1391
1505
  let context = grep.options.context;
1392
- let results = HashMap::new();
1506
+ let with_result = grep.options.with_result;
1393
1507
  while let Some(slot) = self.queue.front() {
1394
1508
  let index = slot.index;
1395
1509
  let finalized = match self.stopped {
@@ -1407,7 +1521,10 @@ impl<'store> GrepStream<'store> {
1407
1521
  .any(|slot| slot.pattern_ids.is_some());
1408
1522
  if windowed {
1409
1523
  if self.queue[0].entry.is_none() {
1410
- self.load(source, budget, cancel)?;
1524
+ self.load(0, source, budget, cancel)?;
1525
+ }
1526
+ if with_result && !self.settle(0, eof, source, budget, cancel)? {
1527
+ break;
1411
1528
  }
1412
1529
  let slot = &self.queue[0];
1413
1530
  let entry = slot.entry.as_ref().expect("windowed slots are loaded");
@@ -1421,6 +1538,11 @@ impl<'store> GrepStream<'store> {
1421
1538
  let (line, digest) = slot.line.expect("loaded slots carry their line");
1422
1539
  let opens_window = self.last_emitted.is_none_or(|last| last + 1 != index);
1423
1540
  budget.extend_staging(&mut self.staging, size_of::<Replayed>(), cancel)?;
1541
+ let results = if with_result {
1542
+ joined(&self.queue, 0).0
1543
+ } else {
1544
+ HashMap::new()
1545
+ };
1424
1546
  let names = resolve(&mut self.names, &ids, self.render_names);
1425
1547
  emit(
1426
1548
  GrepEvent {