cc-transcript 14.46.24__tar.gz → 14.47.0__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 (269) hide show
  1. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/PKG-INFO +1 -1
  2. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/__init__.py +3 -0
  3. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/__init__.pyi +9 -0
  4. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/_native.pyi +26 -5
  5. cc_transcript-14.47.0/cc_transcript/cursor.py +186 -0
  6. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/discovery.py +20 -11
  7. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/ids.py +24 -5
  8. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/query.py +23 -16
  9. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/snapshot_schema/response.schema.json +3 -1
  10. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/tools.py +2 -0
  11. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/pyproject.toml +1 -1
  12. cc_transcript-14.47.0/rust/crates/cli/src/commands/list.rs +365 -0
  13. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/cli/src/lib.rs +21 -2
  14. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/activity.rs +8 -2
  15. cc_transcript-14.47.0/rust/crates/core/src/cursor/discovery.rs +351 -0
  16. cc_transcript-14.47.0/rust/crates/core/src/cursor/lower.rs +340 -0
  17. cc_transcript-14.47.0/rust/crates/core/src/cursor/mod.rs +15 -0
  18. cc_transcript-14.47.0/rust/crates/core/src/cursor/parse.rs +1333 -0
  19. cc_transcript-14.47.0/rust/crates/core/src/cursor/probe.rs +281 -0
  20. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/gateway.rs +76 -11
  21. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/lib.rs +1 -0
  22. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/scan_grep_stream.rs +2 -2
  23. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot.rs +50 -2
  24. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_cache.rs +1 -0
  25. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/toolcall.rs +115 -15
  26. cc_transcript-14.47.0/rust/crates/py/src/cursor.rs +88 -0
  27. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/lib.rs +1 -0
  28. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/python.rs +56 -2
  29. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/views/transcript.rs +2 -2
  30. cc_transcript-14.46.24/rust/crates/cli/src/commands/list.rs +0 -226
  31. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/Cargo.lock +0 -0
  32. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/Cargo.toml +0 -0
  33. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/LICENSE +0 -0
  34. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/README.md +0 -0
  35. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/activity.py +0 -0
  36. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/activity_probe.py +0 -0
  37. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/builders.py +0 -0
  38. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/codex.py +0 -0
  39. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/command.py +0 -0
  40. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/context.py +0 -0
  41. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/corrections.py +0 -0
  42. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/cost.py +0 -0
  43. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/decision_store.py +0 -0
  44. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/decisions.py +0 -0
  45. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/disktruth.py +0 -0
  46. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/evidence.py +0 -0
  47. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/extract/__init__.py +0 -0
  48. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/extract/correct.py +0 -0
  49. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/facts.py +0 -0
  50. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/filterspec.py +0 -0
  51. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/heartbeats.py +0 -0
  52. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/judge/__init__.py +0 -0
  53. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/judge/llm.py +0 -0
  54. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/judge/similar.py +0 -0
  55. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/judge/verdicts.py +0 -0
  56. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/ledger.py +0 -0
  57. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/literals.py +0 -0
  58. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/mining/__init__.py +0 -0
  59. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/mining/candidates.py +0 -0
  60. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/mining/confidence.py +0 -0
  61. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/mining/engine.py +0 -0
  62. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/mining/formats.py +0 -0
  63. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/mining/sampling.py +0 -0
  64. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/mining/signals.py +0 -0
  65. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/mining/sourcekind.py +0 -0
  66. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/mining/spec.py +0 -0
  67. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/mining/store.py +0 -0
  68. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/models.py +0 -0
  69. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/nlp.py +0 -0
  70. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/notifications.py +0 -0
  71. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/parser.py +0 -0
  72. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/py.typed +0 -0
  73. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/render.py +0 -0
  74. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/sentiment/__init__.py +0 -0
  75. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/sentiment/buckets.py +0 -0
  76. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
  77. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
  78. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
  79. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/sentiment/engine.py +0 -0
  80. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/sentiment/lexicon.py +0 -0
  81. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/sentiment/scorespec.py +0 -0
  82. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/snapshot_schema/config.schema.json +0 -0
  83. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/snapshot_schema/context.schema.json +0 -0
  84. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/snapshot_schema/request.schema.json +0 -0
  85. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
  86. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/snapshots.py +0 -0
  87. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/synthetic.py +0 -0
  88. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/cc_transcript/watch.py +0 -0
  89. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/cli/Cargo.toml +0 -0
  90. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/cli/src/commands/blame.rs +0 -0
  91. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/cli/src/commands/corpus.rs +0 -0
  92. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/cli/src/commands/corrections.rs +0 -0
  93. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/cli/src/commands/digest.rs +0 -0
  94. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/cli/src/commands/facts.rs +0 -0
  95. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/cli/src/commands/grep.rs +0 -0
  96. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/cli/src/commands/mod.rs +0 -0
  97. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
  98. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/cli/src/commands/show.rs +0 -0
  99. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/cli/src/commands/slice.rs +0 -0
  100. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/cli/src/commands/stats.rs +0 -0
  101. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/cli/src/commands/watch.rs +0 -0
  102. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/cli/src/index.rs +0 -0
  103. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/cli/src/output.rs +0 -0
  104. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/cli/src/target.rs +0 -0
  105. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/cli/src/timearg.rs +0 -0
  106. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/Cargo.toml +0 -0
  107. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/benches/parse.rs +0 -0
  108. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/benches/render.rs +0 -0
  109. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/benches/toolcall.rs +0 -0
  110. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/build.rs +0 -0
  111. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/actor.rs +0 -0
  112. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/blame.rs +0 -0
  113. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/buckets.rs +0 -0
  114. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/codex/discovery.rs +0 -0
  115. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/codex/lower.rs +0 -0
  116. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/codex/mod.rs +0 -0
  117. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/codex/parse.rs +0 -0
  118. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/codex/probe.rs +0 -0
  119. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/codex/protocol.rs +0 -0
  120. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/codex/review_continuation.rs +0 -0
  121. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/codex/types.rs +0 -0
  122. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/command.rs +0 -0
  123. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/context.rs +0 -0
  124. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/corrections.rs +0 -0
  125. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/cost.rs +0 -0
  126. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/discovery.rs +0 -0
  127. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/facts.rs +0 -0
  128. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/feedback.rs +0 -0
  129. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/filter.rs +0 -0
  130. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/ids.rs +0 -0
  131. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/judge.rs +0 -0
  132. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/literals/command.rs +0 -0
  133. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/literals/corrections.rs +0 -0
  134. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/literals/feedback.rs +0 -0
  135. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/literals/mining.rs +0 -0
  136. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/literals/mod.rs +0 -0
  137. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/literals/protocol.rs +0 -0
  138. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/mining.rs +0 -0
  139. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/mining_index.rs +0 -0
  140. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/notifications.rs +0 -0
  141. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/parse.rs +0 -0
  142. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/protocol.rs +0 -0
  143. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/pystr.rs +0 -0
  144. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/query.rs +0 -0
  145. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/render.rs +0 -0
  146. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/request_body.rs +0 -0
  147. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/rng.rs +0 -0
  148. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/scan.rs +0 -0
  149. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/scan_checkpoint.rs +0 -0
  150. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/scan_grep.rs +0 -0
  151. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/scan_grep_stream_tests.rs +0 -0
  152. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/scan_index.rs +0 -0
  153. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/scan_projection.rs +0 -0
  154. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/scan_regressions.rs +0 -0
  155. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/scan_stream.rs +0 -0
  156. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/schema.rs +0 -0
  157. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_activity.rs +0 -0
  158. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_admission_report_tests.rs +0 -0
  159. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_cache_tests.rs +0 -0
  160. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_catalog.rs +0 -0
  161. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_catalog_owner.rs +0 -0
  162. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_catalog_tests.rs +0 -0
  163. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_codec.rs +0 -0
  164. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_codex_append.rs +0 -0
  165. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_common_borrowed_parent_tests.rs +0 -0
  166. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_compact_codex.rs +0 -0
  167. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_compact_codex_tests.rs +0 -0
  168. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_direct_tail.rs +0 -0
  169. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_direct_tail_tests.rs +0 -0
  170. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_graph_anchor_tests.rs +0 -0
  171. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_graph_validation_tests.rs +0 -0
  172. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_hydrate_budget_tests.rs +0 -0
  173. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_hydration_observations.rs +0 -0
  174. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_index_allocations.rs +0 -0
  175. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_input.rs +0 -0
  176. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_interaction_api.rs +0 -0
  177. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_interaction_api_tests.rs +0 -0
  178. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_interactions.rs +0 -0
  179. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_interactions_tests.rs +0 -0
  180. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_labels.rs +0 -0
  181. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_ledger.rs +0 -0
  182. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_ledger_tests.rs +0 -0
  183. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_load_charge_audit_tests.rs +0 -0
  184. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_load_charge_work_tests.rs +0 -0
  185. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_membership_progress.rs +0 -0
  186. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_membership_progress_controls.rs +0 -0
  187. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_membership_progress_tests.rs +0 -0
  188. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_memory.rs +0 -0
  189. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_owned.rs +0 -0
  190. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_persistent.rs +0 -0
  191. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_prepared.rs +0 -0
  192. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_prepared_disk.rs +0 -0
  193. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_prepared_service.rs +0 -0
  194. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_projection.rs +0 -0
  195. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_publication_shared_admission_tests.rs +0 -0
  196. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_query_hydration_tests.rs +0 -0
  197. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_raw_materialization.rs +0 -0
  198. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_raw_projection.rs +0 -0
  199. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_raw_projection_tests.rs +0 -0
  200. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_raw_scope.rs +0 -0
  201. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_raw_scope_tests.rs +0 -0
  202. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_raw_tail_tests.rs +0 -0
  203. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_raw_window.rs +0 -0
  204. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_registered_review_tests.rs +0 -0
  205. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_regressions.rs +0 -0
  206. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_reply_resume_tests.rs +0 -0
  207. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_review.rs +0 -0
  208. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_review_admission_tests.rs +0 -0
  209. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_review_context.rs +0 -0
  210. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_review_reader.rs +0 -0
  211. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_review_source.rs +0 -0
  212. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_root_warm.rs +0 -0
  213. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_sidechain_absence.rs +0 -0
  214. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_sidechain_absence_tests.rs +0 -0
  215. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_sidechain_feed.rs +0 -0
  216. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_sidechain_feed_tests.rs +0 -0
  217. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_skill_demand_controls.rs +0 -0
  218. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_skill_demand_tests.rs +0 -0
  219. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_skill_framing.rs +0 -0
  220. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_skills.rs +0 -0
  221. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_source_cache_index_tests.rs +0 -0
  222. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_spine.rs +0 -0
  223. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_spine_tests.rs +0 -0
  224. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_symlink_proof.rs +0 -0
  225. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/snapshot_text.rs +0 -0
  226. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/sqlite.rs +0 -0
  227. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/types.rs +0 -0
  228. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/value.rs +0 -0
  229. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/src/watch.rs +0 -0
  230. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/tests/mcp_registry.rs +0 -0
  231. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/tests/persistent_allocation_model.rs +0 -0
  232. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
  233. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/core/tests/std_allocation_model.rs +0 -0
  234. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/Cargo.toml +0 -0
  235. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/build.rs +0 -0
  236. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
  237. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/actor_bridge.rs +0 -0
  238. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/bin/stub_gen.rs +0 -0
  239. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/codex.rs +0 -0
  240. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/command.rs +0 -0
  241. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/context.rs +0 -0
  242. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/corrections.rs +0 -0
  243. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/discovery.rs +0 -0
  244. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/feedback.rs +0 -0
  245. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/judge.rs +0 -0
  246. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/lexicon.rs +0 -0
  247. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/mining.rs +0 -0
  248. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/nlp.rs +0 -0
  249. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/render.rs +0 -0
  250. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/score.rs +0 -0
  251. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/snapshot_decode.rs +0 -0
  252. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/snapshots.rs +0 -0
  253. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/snapshots_registered_review.rs +0 -0
  254. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/sqlite.rs +0 -0
  255. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/toolcall.rs +0 -0
  256. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/views/attachment.rs +0 -0
  257. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/views/blocks.rs +0 -0
  258. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/views/command.rs +0 -0
  259. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/views/convert.rs +0 -0
  260. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/views/dunder.rs +0 -0
  261. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/views/events.rs +0 -0
  262. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/views/meta.rs +0 -0
  263. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/views/mod.rs +0 -0
  264. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/views/print.rs +0 -0
  265. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/views/store.rs +0 -0
  266. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/views/system.rs +0 -0
  267. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/views/toolcall.rs +0 -0
  268. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/rust/crates/py/src/views/toolresult.rs +0 -0
  269. {cc_transcript-14.46.24 → cc_transcript-14.47.0}/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.24
3
+ Version: 14.47.0
4
4
  Classifier: Development Status :: 3 - Alpha
5
5
  Classifier: Environment :: Console
6
6
  Classifier: Intended Audience :: Developers
@@ -38,7 +38,9 @@ EXPORTS: dict[str, str] = {
38
38
  "ToolDigest",
39
39
  "ToolUseId",
40
40
  "canonical_json",
41
+ "is_valid_session_id",
41
42
  "tool_digest",
43
+ "validate_session_id",
42
44
  ),
43
45
  "cc_transcript.tools": (
44
46
  "TOOL_ALIASES",
@@ -204,6 +206,7 @@ EXPORTS: dict[str, str] = {
204
206
  "CodexUsage",
205
207
  "Lifecycle",
206
208
  ),
209
+ "cc_transcript.cursor": ("CursorTranscript",),
207
210
  "cc_transcript.activity": (
208
211
  "ActivityLift",
209
212
  "Edit",
@@ -74,6 +74,10 @@ from cc_transcript.cost import (
74
74
  resolve_pricing as resolve_pricing,
75
75
  )
76
76
 
77
+ from cc_transcript.cursor import (
78
+ CursorTranscript as CursorTranscript,
79
+ )
80
+
77
81
  from cc_transcript.decisions import (
78
82
  Action as Action,
79
83
  DECISIONS_DDL as DECISIONS_DDL,
@@ -136,7 +140,9 @@ from cc_transcript.ids import (
136
140
  ToolDigest as ToolDigest,
137
141
  ToolUseId as ToolUseId,
138
142
  canonical_json as canonical_json,
143
+ is_valid_session_id as is_valid_session_id,
139
144
  tool_digest as tool_digest,
145
+ validate_session_id as validate_session_id,
140
146
  )
141
147
 
142
148
  from cc_transcript.models import (
@@ -351,6 +357,7 @@ __all__ = [
351
357
  "Correction",
352
358
  "CorrectionLog",
353
359
  "CostBreakdown",
360
+ "CursorTranscript",
354
361
  "DECISIONS_DDL",
355
362
  "Decision",
356
363
  "DecisionLog",
@@ -510,6 +517,7 @@ __all__ = [
510
517
  "hunk_overlap",
511
518
  "hunks_of",
512
519
  "hydrate_windows",
520
+ "is_valid_session_id",
513
521
  "keep",
514
522
  "keep_only",
515
523
  "labels_for",
@@ -555,4 +563,5 @@ __all__ = [
555
563
  "tool_uses",
556
564
  "unregister_mcp_tool",
557
565
  "user_line",
566
+ "validate_session_id",
558
567
  ]
@@ -51,8 +51,8 @@ __all__ = [
51
51
  "ModelRefusalFallback",
52
52
  "ModelUsage",
53
53
  "MultiEditCall",
54
- "NativeSnapshotScope",
55
54
  "NativeRegisteredReviewScope",
55
+ "NativeSnapshotScope",
56
56
  "NativeSnapshotStore",
57
57
  "NotebookEditCall",
58
58
  "Occurrence",
@@ -128,6 +128,12 @@ __all__ = [
128
128
  "context_render_preview",
129
129
  "context_roundtrip",
130
130
  "cost_of_json",
131
+ "cursor_discover",
132
+ "cursor_discover_cloud",
133
+ "cursor_is_subagent_path",
134
+ "cursor_resolve",
135
+ "cursor_subagent_paths",
136
+ "cursor_subagents_of",
131
137
  "decode_snapshot_events",
132
138
  "decode_snapshot_projection",
133
139
  "discovery_find_in",
@@ -160,6 +166,7 @@ __all__ = [
160
166
  "notifications_from_events",
161
167
  "parse_bytes",
162
168
  "parse_print_result",
169
+ "parse_remote_transcript",
163
170
  "project_request_body",
164
171
  "query_session",
165
172
  "register_mcp_tool",
@@ -1138,8 +1145,8 @@ class NativeRegisteredReviewScope:
1138
1145
  def event(self, index: builtins.int) -> typing.Any: ...
1139
1146
  def source_facts(self, first_user_contains: builtins.str) -> builtins.str: ...
1140
1147
  def mine(self, spec_json: builtins.str, callable_formats: typing.Sequence[tuple[builtins.str, typing.Any, typing.Any, builtins.bool]]) -> builtins.list[dict]: ...
1141
- def activity(self, classifier_json: builtins.str, anchors_json: typing.Optional[builtins.str] = None, lookback: builtins.int = 40, lookahead: builtins.int = 120) -> dict: ...
1142
1148
  def capture(self, anchors_json: builtins.str, before: builtins.int = 6, after: builtins.int = 2, preview_chars: builtins.int = 200) -> builtins.str: ...
1149
+ def activity(self, classifier_json: builtins.str, anchors_json: typing.Optional[builtins.str] = None, lookback: builtins.int = 40, lookahead: builtins.int = 120) -> dict: ...
1143
1150
  def hook_marker_indices(self) -> builtins.list[builtins.int]: ...
1144
1151
  def tool_use_digests(self) -> builtins.str: ...
1145
1152
  def publish_projection(self, request_json: builtins.str, metadata_json: builtins.str, field: builtins.str, records_json: list, usage_json: builtins.str, work_json: builtins.str) -> builtins.str: ...
@@ -1180,8 +1187,8 @@ class NativeSnapshotStore:
1180
1187
  def prepare_classifier(self, handle_json: builtins.str, classifier_json: builtins.str, context_json: builtins.str, cancel: SnapshotCancellation, limits_json: builtins.str) -> builtins.str: ...
1181
1188
  def submit_classifier(self, cursor: builtins.str, labels: list, context_json: builtins.str, cancel: SnapshotCancellation) -> builtins.str: ...
1182
1189
  def register_mining_policy(self, id: builtins.str, version: builtins.str, spec_json: builtins.str, callable_formats: typing.Sequence[tuple[builtins.str, typing.Any, typing.Any, builtins.bool]]) -> None: ...
1183
- def register_classifier(self, id: builtins.str, version: builtins.str, callback: typing.Any) -> None: ...
1184
1190
  def run_registered_review(self, path: builtins.str, policy_json: builtins.str, mining_spec_json: builtins.str, callable_formats: typing.Sequence[tuple[builtins.str, typing.Any, typing.Any, builtins.bool]], first_user_marker: builtins.str, prose_marker: typing.Any, request_json: builtins.str, context_json: builtins.str, cancel: SnapshotCancellation, handler: typing.Any) -> typing.Any: ...
1191
+ def register_classifier(self, id: builtins.str, version: builtins.str, callback: typing.Any) -> None: ...
1185
1192
 
1186
1193
  @typing.final
1187
1194
  class NotebookEditCall(ToolCallBase):
@@ -2113,7 +2120,7 @@ class Transcript:
2113
2120
  Attributes:
2114
2121
  path: The transcript's path on disk; None for a bytes parse.
2115
2122
  mtime: The transcript's modification time when parsed.
2116
- provider: The transcript's source provider: "claude" or "codex".
2123
+ provider: The transcript's source provider: "claude", "codex", "cursor_ide", or "cursor_cloud".
2117
2124
  events: The parsed events, in file order.
2118
2125
  """
2119
2126
  @property
@@ -2121,7 +2128,7 @@ class Transcript:
2121
2128
  @property
2122
2129
  def mtime(self) -> builtins.float: ...
2123
2130
  @property
2124
- def provider(self) -> typing.Literal["claude", "codex"]: ...
2131
+ def provider(self) -> typing.Literal["claude", "codex", "cursor_ide", "cursor_cloud"]: ...
2125
2132
  @property
2126
2133
  def events(self) -> EventList: ...
2127
2134
 
@@ -2417,6 +2424,18 @@ def context_roundtrip(data: builtins.str) -> builtins.str: ...
2417
2424
 
2418
2425
  def cost_of_json(usage_json: builtins.str, model: builtins.str) -> dict[str, float]: ...
2419
2426
 
2427
+ def cursor_discover(root: typing.Optional[builtins.str | os.PathLike | pathlib.Path] = None) -> builtins.list[tuple[pathlib.Path, builtins.str, builtins.str, builtins.bool, typing.Optional[builtins.str]]]: ...
2428
+
2429
+ def cursor_discover_cloud(root: typing.Optional[builtins.str | os.PathLike | pathlib.Path] = None) -> builtins.list[tuple[pathlib.Path, builtins.str, builtins.str, builtins.bool, typing.Optional[builtins.str]]]: ...
2430
+
2431
+ def cursor_is_subagent_path(path: builtins.str | os.PathLike | pathlib.Path) -> builtins.bool: ...
2432
+
2433
+ def cursor_resolve(session_id: builtins.str, root: typing.Optional[builtins.str | os.PathLike | pathlib.Path] = None) -> typing.Optional[pathlib.Path]: ...
2434
+
2435
+ def cursor_subagent_paths(path: builtins.str | os.PathLike | pathlib.Path) -> builtins.list[pathlib.Path]: ...
2436
+
2437
+ def cursor_subagents_of(session_id: builtins.str, root: typing.Optional[builtins.str | os.PathLike | pathlib.Path] = None) -> builtins.list[tuple[pathlib.Path, builtins.str, builtins.str, builtins.bool, typing.Optional[builtins.str]]]: ...
2438
+
2420
2439
  def decode_snapshot_events(records: typing.Sequence[builtins.str], max_bytes: builtins.int) -> list[models.TranscriptEvent]: ...
2421
2440
 
2422
2441
  def decode_snapshot_projection(record_schema: builtins.str, records: typing.Sequence[builtins.str], max_bytes: builtins.int, tool_registry_json: typing.Optional[builtins.str] = None) -> list[typing.Any]: ...
@@ -2563,6 +2582,8 @@ def parse_bytes(raw: bytes, spec_json: typing.Optional[builtins.str] = None) ->
2563
2582
 
2564
2583
  def parse_print_result(raw: bytes) -> PrintResult: ...
2565
2584
 
2585
+ def parse_remote_transcript(bc_id: builtins.str, body: bytes, fetched_at: typing.Optional[builtins.str] = None, spec_json: typing.Optional[builtins.str] = None) -> Transcript: ...
2586
+
2566
2587
  def project_request_body(path: builtins.str, *, transport: builtins.str = 'identity') -> typing.Optional[tuple[builtins.bool, typing.Optional[builtins.str]]]: ...
2567
2588
 
2568
2589
  def query_session(path: builtins.str, max_events: builtins.int) -> dict[str, typing.Any]: ...
@@ -0,0 +1,186 @@
1
+ """The Cursor transcript surface: IDE discovery, subagents, and Cloud Agent ingestion.
2
+
3
+ A sync facade over the native Cursor functions, mirroring
4
+ :mod:`cc_transcript.codex` for ``~/.cursor/projects`` and adding Cloud Agent
5
+ remote ingestion (``transcript.json``, REST v0 conversation JSON, and REST v1
6
+ SSE streams) over :class:`~cc_transcript.models.Transcript`.
7
+
8
+ Local Cursor IDE transcripts (``~/.cursor/projects/<project>/agent-transcripts/``)
9
+ and Cloud Agent ``transcript.json`` files are also provider-transparent through
10
+ :func:`cc_transcript.parse`. This module exposes explicit discovery, subagent
11
+ lookup, and remote ingestion with ``bc_id`` / ``fetched_at`` attribution.
12
+ """
13
+
14
+ from __future__ import annotations
15
+
16
+ import os
17
+ import urllib.request
18
+ from dataclasses import dataclass
19
+ from datetime import UTC, datetime
20
+ from pathlib import Path
21
+ from typing import TYPE_CHECKING
22
+
23
+ from cc_transcript.filterspec import spec_to_json
24
+
25
+ if TYPE_CHECKING:
26
+ from cc_transcript.filterspec import FilterSpec
27
+ from cc_transcript.ids import SessionId
28
+ from cc_transcript.models import Transcript
29
+
30
+ PROJECTS_ROOT = Path.home() / ".cursor" / "projects"
31
+ CLOUD_TRANSCRIPTS_ROOT = Path("/tmp/cursor/cloud-agent-transcripts")
32
+ DEFAULT_CLOUD_API_BASE = "https://api.cursor.com"
33
+
34
+
35
+ @dataclass(frozen=True, slots=True)
36
+ class CursorTranscript:
37
+ """A transcript found in the Cursor projects or Cloud Agent cache tree.
38
+
39
+ Attributes:
40
+ path: The transcript file's path on disk.
41
+ session_id: The conversation, subagent, or Cloud Agent (``bc-...``) id.
42
+ project: The Cursor project directory name (or batch directory for Cloud).
43
+ is_subagent: Whether this transcript sits under a ``subagents/`` directory.
44
+ parent_session_id: The parent conversation id for a subagent transcript, else None.
45
+ """
46
+
47
+ path: Path
48
+ session_id: str
49
+ project: str
50
+ is_subagent: bool
51
+ parent_session_id: str | None
52
+
53
+
54
+ def projects_root(root: Path | None = None) -> Path:
55
+ """The Cursor IDE projects root, defaulting to ``~/.cursor/projects``."""
56
+ return root or PROJECTS_ROOT
57
+
58
+
59
+ def cloud_transcripts_root(root: Path | None = None) -> Path:
60
+ """The local Cloud Agent transcript cache root."""
61
+ return root or CLOUD_TRANSCRIPTS_ROOT
62
+
63
+
64
+ def discover(root: Path | None = None) -> tuple[CursorTranscript, ...]:
65
+ """Every Cursor IDE transcript under ``root``, newest first.
66
+
67
+ Scans ``<root>/<project>/agent-transcripts/<conversation_id>/<conversation_id>.jsonl``
68
+ and ``.../subagents/<subagent_id>.jsonl``.
69
+ """
70
+ from cc_transcript import _native
71
+
72
+ return tuple(CursorTranscript(*item) for item in _native.cursor_discover(projects_root(root)))
73
+
74
+
75
+ def discover_cloud(root: Path | None = None) -> tuple[CursorTranscript, ...]:
76
+ """Every locally cached Cursor Cloud Agent ``transcript.json`` under ``root``, newest first."""
77
+ from cc_transcript import _native
78
+
79
+ return tuple(CursorTranscript(*item) for item in _native.cursor_discover_cloud(cloud_transcripts_root(root)))
80
+
81
+
82
+ def find_transcript(session_id: SessionId, root: Path | None = None) -> Path | None:
83
+ """Locates ``session_id``'s Cursor IDE transcript under ``root`` (or ``CURSOR_TRANSCRIPT_PATH``)."""
84
+ from cc_transcript import _native
85
+
86
+ return _native.cursor_resolve(session_id, projects_root(root))
87
+
88
+
89
+ def subagents_of(session_id: SessionId, *, root: Path | None = None) -> tuple[CursorTranscript, ...]:
90
+ """Direct subagent transcripts spawned by Cursor conversation ``session_id``."""
91
+ from cc_transcript import _native
92
+
93
+ return tuple(CursorTranscript(*item) for item in _native.cursor_subagents_of(session_id, projects_root(root)))
94
+
95
+
96
+ def subagent_paths(path: Path) -> tuple[Path, ...]:
97
+ """Subagent JSONL files adjacent to a Cursor IDE transcript at ``path``."""
98
+ from cc_transcript import _native
99
+
100
+ return tuple(_native.cursor_subagent_paths(path))
101
+
102
+
103
+ def is_subagent_path(path: Path) -> bool:
104
+ """Whether ``path`` matches the Cursor IDE ``agent-transcripts/<id>/subagents/<sub_id>.jsonl`` layout."""
105
+ from cc_transcript import _native
106
+
107
+ return bool(_native.cursor_is_subagent_path(path))
108
+
109
+
110
+ def parse_remote(
111
+ bc_id: str,
112
+ body: bytes | str,
113
+ *,
114
+ fetched_at: str | None = None,
115
+ drop: FilterSpec | None = None,
116
+ ) -> Transcript:
117
+ """Parses a Cursor Cloud Agent payload (``transcript.json``, v0 JSON, or v1 SSE) via Rust core.
118
+
119
+ Args:
120
+ bc_id: The Cloud Agent identifier (for example ``bc-<uuid>``), used as
121
+ the fallback session id when the payload does not carry one.
122
+ body: Raw payload bytes or UTF-8 string.
123
+ fetched_at: Optional RFC 3339 timestamp used as fallback when individual
124
+ events omit timestamps.
125
+ drop: Optional :class:`~cc_transcript.FilterSpec` applied during parsing.
126
+
127
+ Returns:
128
+ The parsed :class:`~cc_transcript.models.Transcript` with ``provider == "cursor_cloud"``.
129
+ """
130
+ from cc_transcript import _native
131
+
132
+ raw = body.encode("utf-8") if isinstance(body, str) else body
133
+ spec_json = spec_to_json(drop) if drop is not None else None
134
+ return _native.parse_remote_transcript(bc_id, raw, fetched_at, spec_json)
135
+
136
+
137
+ def parse_cloud_transcript(
138
+ path: Path,
139
+ *,
140
+ bc_id: str | None = None,
141
+ fetched_at: str | None = None,
142
+ drop: FilterSpec | None = None,
143
+ ) -> Transcript:
144
+ """Reads a locally saved Cloud Agent transcript file and parses it as ``cursor_cloud``.
145
+
146
+ When ``bc_id`` is omitted, it is inferred from the parent directory name if
147
+ the file is named ``transcript.json``, otherwise from ``path.stem``.
148
+ """
149
+ inferred_id = bc_id or (path.parent.name if path.name == "transcript.json" else path.stem)
150
+ return parse_remote(
151
+ inferred_id,
152
+ path.read_bytes(),
153
+ fetched_at=fetched_at,
154
+ drop=drop,
155
+ )
156
+
157
+
158
+ def fetch_cloud_conversation(
159
+ bc_id: str,
160
+ *,
161
+ api_key: str | None = None,
162
+ base_url: str = DEFAULT_CLOUD_API_BASE,
163
+ stream: bool = False,
164
+ timeout: float = 30.0,
165
+ drop: FilterSpec | None = None,
166
+ ) -> Transcript:
167
+ """Fetches a Cursor Cloud Agent conversation over HTTP and parses it natively.
168
+
169
+ Calls ``GET /v0/agents/{bc_id}/conversation`` (or ``GET /v1/agents/{bc_id}/stream``
170
+ when ``stream=True``) using ``api_key`` (defaulting to ``CURSOR_API_KEY``),
171
+ and hands the raw response body straight to :func:`parse_remote`.
172
+ """
173
+ token = api_key or os.environ.get("CURSOR_API_KEY")
174
+ endpoint = (
175
+ f"{base_url.rstrip('/')}/v1/agents/{bc_id}/stream"
176
+ if stream
177
+ else f"{base_url.rstrip('/')}/v0/agents/{bc_id}/conversation"
178
+ )
179
+ headers = {"Accept": "text/event-stream" if stream else "application/json"}
180
+ if token:
181
+ headers["Authorization"] = f"Bearer {token}"
182
+ request = urllib.request.Request(endpoint, headers=headers)
183
+ fetched_at = datetime.now(UTC).isoformat().replace("+00:00", "Z")
184
+ with urllib.request.urlopen(request, timeout=timeout) as response:
185
+ body = response.read()
186
+ return parse_remote(bc_id, body, fetched_at=fetched_at, drop=drop)
@@ -97,7 +97,8 @@ def resolve(session_id: SessionId, *, root: Path | None = None) -> Path | None:
97
97
  ``(session_id, resolved root)`` and revalidated on the next hit, so a
98
98
  repeated probe skips the recursive scan while a pruned transcript still
99
99
  forces a fresh one. When the projects tree yields nothing, the codex
100
- sessions tree is tried as a fallback, so a codex session id resolves too.
100
+ sessions tree and then the Cursor projects tree are tried as fallbacks, so
101
+ codex and Cursor session ids resolve too.
101
102
 
102
103
  Returns:
103
104
  The newest-mtime real path, or None when no transcript exists.
@@ -110,7 +111,11 @@ def resolve(session_id: SessionId, *, root: Path | None = None) -> Path | None:
110
111
  if hit is None:
111
112
  from cc_transcript import codex
112
113
 
113
- return codex.find_transcript(session_id)
114
+ if (codex_hit := codex.find_transcript(session_id)) is not None:
115
+ return codex_hit
116
+ from cc_transcript import cursor
117
+
118
+ return cursor.find_transcript(session_id)
114
119
  TRANSCRIPT_MEMO[key] = hit
115
120
  return hit
116
121
 
@@ -118,10 +123,10 @@ def resolve(session_id: SessionId, *, root: Path | None = None) -> Path | None:
118
123
  def is_subagent_path(path: Path) -> bool:
119
124
  """Whether ``path`` names a subagent sidechain transcript.
120
125
 
121
- Matches the ``agent-<tool_use_id>.jsonl`` naming convention that
122
- :func:`subagent_paths` discovers.
126
+ Matches the Claude Code ``agent-<tool_use_id>.jsonl`` convention and the
127
+ Cursor IDE ``agent-transcripts/<id>/subagents/<sub_id>.jsonl`` convention.
123
128
  """
124
- return _native.discovery_is_subagent_path(path)
129
+ return _native.discovery_is_subagent_path(path) or _native.cursor_is_subagent_path(path)
125
130
 
126
131
 
127
132
  def subagent_paths(path: Path) -> tuple[Path, ...]:
@@ -129,12 +134,19 @@ def subagent_paths(path: Path) -> tuple[Path, ...]:
129
134
 
130
135
  Claude Code writes subagent transcripts as
131
136
  ``<parent>/<stem>/subagents/agent-<tool_use_id>.jsonl`` next to the main
132
- transcript; macOS resource-fork artifacts (``._*``) are skipped.
137
+ transcript; Cursor IDE writes them under ``<parent>/subagents/<id>.jsonl``
138
+ inside ``agent-transcripts/<conversation_id>/``. macOS resource-fork
139
+ artifacts (``._*``) are skipped.
133
140
 
134
141
  Returns:
135
142
  The sidechain files sorted by path; ``()`` when none exist.
136
143
  """
137
- return tuple(_native.discovery_subagent_paths(path))
144
+ found = _native.discovery_subagent_paths(path)
145
+ if found:
146
+ return tuple(found)
147
+ if path.parent.name == path.stem and path.parent.parent.name == "agent-transcripts":
148
+ return tuple(_native.cursor_subagent_paths(path))
149
+ return ()
138
150
 
139
151
 
140
152
  def subagent_transcripts(path: Path) -> dict[ToolUseId, Path]:
@@ -147,7 +159,4 @@ def subagent_transcripts(path: Path) -> dict[ToolUseId, Path]:
147
159
  Returns:
148
160
  A mapping from tool-use id to sidechain file; ``{}`` when none exist.
149
161
  """
150
- return {
151
- ToolUseId(tool_use_id): p
152
- for tool_use_id, p in _native.discovery_subagent_transcripts(path).items()
153
- }
162
+ return {ToolUseId(tool_use_id): p for tool_use_id, p in _native.discovery_subagent_transcripts(path).items()}
@@ -2,15 +2,16 @@
2
2
 
3
3
  This module is import-light by contract: it depends on the standard library
4
4
  only, so the hook hot path can import it without paying for the parser or any
5
- heavy dependency. It defines the only session key in the system (the Claude
6
- session UUID), the universal :class:`EventRef` handle, and the single
7
- cross-language tool-content digest.
5
+ heavy dependency. It defines the session key (Claude UUIDs, Codex UUIDv7s,
6
+ Cursor conversation ids, and Cursor Cloud Agent ``bc-...`` ids), the universal
7
+ :class:`EventRef` handle, and the single cross-language tool-content digest.
8
8
  """
9
9
 
10
10
  from __future__ import annotations
11
11
 
12
12
  import json
13
13
  import math
14
+ import re
14
15
  from dataclasses import dataclass
15
16
  from hashlib import sha256
16
17
  from typing import TYPE_CHECKING, NewType
@@ -20,6 +21,7 @@ if TYPE_CHECKING:
20
21
  from typing import Any
21
22
 
22
23
  MAX_SAFE_INTEGER = 2**53 - 1
24
+ SESSION_ID_RE = re.compile(r"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$")
23
25
 
24
26
  SessionId = NewType("SessionId", str)
25
27
  EventUuid = NewType("EventUuid", str)
@@ -27,16 +29,33 @@ ToolUseId = NewType("ToolUseId", str)
27
29
  ToolDigest = NewType("ToolDigest", str)
28
30
 
29
31
 
32
+ def is_valid_session_id(value: str) -> bool:
33
+ """Whether ``value`` is a well-formed session identifier across providers.
34
+
35
+ Accepts Claude Code UUIDs, Codex UUIDv7s, Cursor IDE conversation ids, and
36
+ Cursor Cloud Agent ``bc-<uuid>`` ids while rejecting empty strings, path
37
+ separators, traversal tokens (``..``), and whitespace.
38
+ """
39
+ return bool(value) and ".." not in value and SESSION_ID_RE.fullmatch(value) is not None
40
+
41
+
42
+ def validate_session_id(value: str) -> SessionId:
43
+ """Validates ``value`` as a :data:`SessionId`, raising ``ValueError`` if malformed."""
44
+ if not is_valid_session_id(value):
45
+ raise ValueError(f"invalid session id: {value!r}")
46
+ return SessionId(value)
47
+
48
+
30
49
  @dataclass(frozen=True, slots=True)
31
50
  class EventRef:
32
51
  """A resolvable reference to a transcript event.
33
52
 
34
53
  The universal handle for pointing back at full content: every anchor
35
54
  parameter across the platform takes an ``EventRef``. Paths are never part
36
- of a reference — transcripts are located by session UUID.
55
+ of a reference — transcripts are located by session id.
37
56
 
38
57
  Attributes:
39
- session_id: The Claude session UUID the event belongs to.
58
+ session_id: The session identifier the event belongs to.
40
59
  event_uuid: The transcript entry's unique identifier.
41
60
  tool_use_id: The tool-use block id, when the reference names a tool
42
61
  call rather than a whole entry.
@@ -431,9 +431,7 @@ class ToolCallQuery:
431
431
  return self.where(
432
432
  lambda use: (
433
433
  isinstance(raw := use.call.raw, Mapping)
434
- and all(
435
- key in raw and input_rule_matches(rule, raw[key]) for key, rule in rules.items()
436
- )
434
+ and all(key in raw and input_rule_matches(rule, raw[key]) for key, rule in rules.items())
437
435
  )
438
436
  )
439
437
 
@@ -623,8 +621,7 @@ class Session:
623
621
  matches = [
624
622
  positions[use.ref.event_uuid]
625
623
  for use in self.tool_calls.with_errors
626
- if use.call.matches(tool)
627
- and (file is None or any(file in path for path in file_paths_of(use.call)))
624
+ if use.call.matches(tool) and (file is None or any(file in path for path in file_paths_of(use.call)))
628
625
  ]
629
626
  return windowed(self, max(matches) + 1, len(self)) if matches else windowed(self, 0, 0)
630
627
 
@@ -634,11 +631,7 @@ class Session:
634
631
  With no matching call the whole window is returned.
635
632
  """
636
633
  positions = event_positions(self.turns)
637
- matches = [
638
- positions[use.ref.event_uuid]
639
- for use in self.tool_calls.with_errors
640
- if use.call.matches(tool)
641
- ]
634
+ matches = [positions[use.ref.event_uuid] for use in self.tool_calls.with_errors if use.call.matches(tool)]
642
635
  return windowed(self, 0, max(matches)) if matches else self
643
636
 
644
637
  def prior(self) -> Session:
@@ -850,7 +843,7 @@ class DeepSession:
850
843
  Attributes:
851
844
  session: The whole-session view of the reached transcript.
852
845
  path: The transcript file it was loaded from.
853
- provider: Its source provider, ``"claude"`` or ``"codex"``.
846
+ provider: Its source provider: ``"claude"``, ``"codex"``, ``"cursor_ide"``, or ``"cursor_cloud"``.
854
847
  depth: Distance from the root; ``1`` is a direct sidechain or attachment.
855
848
  spawned_by: The dispatching tool-use id parsed from an ``agent-<id>``
856
849
  sidechain stem, or None for an attachment.
@@ -1042,7 +1035,10 @@ def reachable_from(
1042
1035
 
1043
1036
 
1044
1037
  def sidechain_listing(parent: Path) -> tuple[tuple[Path, Path], ...]:
1045
- directory = parent.parent / parent.stem / "subagents"
1038
+ if parent.parent.name == parent.stem and parent.parent.parent.name == "agent-transcripts":
1039
+ directory = parent.parent / "subagents"
1040
+ else:
1041
+ directory = parent.parent / parent.stem / "subagents"
1046
1042
  try:
1047
1043
  stat = directory.stat()
1048
1044
  except OSError:
@@ -1122,8 +1118,16 @@ def lift_deep_session(path: Path, depth: int, spawned_by: ToolUseId | None) -> t
1122
1118
  settled = stamp_of(os.fstat(handle.fileno())) == stamp
1123
1119
  events = list((transcript := parsed(path, raw, stamp, settled)).events)
1124
1120
  session_id = (found := session_id_of(events)) or SessionId(path.stem)
1125
- cut = raw.rfind(b"\n") + 1
1126
- committed = len(events) if cut == len(raw) else len(events) - len(parsed(path, raw[cut:], stamp, settled).events)
1121
+ if transcript.provider == "claude":
1122
+ cut = raw.rfind(b"\n") + 1
1123
+ committed = (
1124
+ len(events) if cut == len(raw) else len(events) - len(parsed(path, raw[cut:], stamp, settled).events)
1125
+ )
1126
+ fence = raw[max(cut - DEEP_LIFT_FENCE, 0) : cut]
1127
+ else:
1128
+ cut = len(raw)
1129
+ committed = len(events)
1130
+ fence = b""
1127
1131
  activity = (lift := ActivityLift(session_id)).extend(events[:committed])
1128
1132
  return DeepLift(
1129
1133
  stamp=stamp,
@@ -1138,16 +1142,19 @@ def lift_deep_session(path: Path, depth: int, spawned_by: ToolUseId | None) -> t
1138
1142
  ),
1139
1143
  lift=lift,
1140
1144
  consumed=cut,
1141
- fence=raw[max(cut - DEEP_LIFT_FENCE, 0) : cut],
1145
+ fence=fence,
1142
1146
  found=found,
1143
1147
  provider=transcript.provider if events else None,
1144
1148
  grown_at=monotonic(),
1145
1149
  ), settled
1146
1150
 
1147
1151
 
1152
+ INCREMENTAL_PROVIDERS = frozenset({"claude"})
1153
+
1154
+
1148
1155
  def grown_lift(held: DeepLift, path: Path, stamp: LiftStamp) -> DeepLift | None:
1149
1156
  if (
1150
- held.provider not in (None, "claude")
1157
+ (held.provider is not None and held.provider not in INCREMENTAL_PROVIDERS)
1151
1158
  or stamp[3] != held.stamp[3]
1152
1159
  or stamp[0] <= held.stamp[0]
1153
1160
  or stamp[0] < held.consumed
@@ -329,7 +329,9 @@
329
329
  "provider": {
330
330
  "enum": [
331
331
  "claude",
332
- "codex"
332
+ "codex",
333
+ "cursor_ide",
334
+ "cursor_cloud"
333
335
  ],
334
336
  "title": "Provider",
335
337
  "type": "string"
@@ -77,9 +77,11 @@ TOOL_ALIASES: dict[str, str] = {
77
77
  "Bash": "Execute",
78
78
  "Edit": "apply_patch",
79
79
  "Write": "Create",
80
+ "Read": "ReadCanvas",
80
81
  "Agent": "Task",
81
82
  "WebFetch": "FetchUrl",
82
83
  "ExitPlanMode": "ExitSpecMode",
84
+ "AskUserQuestion": "AskQuestion",
83
85
  }
84
86
 
85
87
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "cc-transcript"
3
- version = "14.46.24" # informational — releases stamp the version from the git tag
3
+ version = "14.47.0" # 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"