cc-transcript 14.45.19__tar.gz → 14.45.21__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.
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/PKG-INFO +1 -1
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/pyproject.toml +1 -1
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/ids.rs +67 -25
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/snapshot.rs +979 -207
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/snapshot_activity.rs +100 -36
- cc_transcript-14.45.21/rust/crates/core/src/snapshot_admission_report_tests.rs +56 -0
- cc_transcript-14.45.21/rust/crates/core/src/snapshot_cache.rs +352 -0
- cc_transcript-14.45.21/rust/crates/core/src/snapshot_cache_tests.rs +99 -0
- cc_transcript-14.45.21/rust/crates/core/src/snapshot_catalog.rs +1362 -0
- cc_transcript-14.45.21/rust/crates/core/src/snapshot_catalog_owner.rs +492 -0
- cc_transcript-14.45.21/rust/crates/core/src/snapshot_catalog_tests.rs +1073 -0
- cc_transcript-14.45.21/rust/crates/core/src/snapshot_common_borrowed_parent_tests.rs +67 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/snapshot_ledger_tests.rs +247 -61
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/snapshot_prepared_service.rs +64 -76
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/snapshot_projection.rs +101 -4
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/snapshot_regressions.rs +4 -4
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/snapshot_root_warm.rs +6 -10
- cc_transcript-14.45.21/rust/crates/core/src/snapshot_source_cache_index_tests.rs +128 -0
- cc_transcript-14.45.21/rust/crates/core/src/snapshot_spine.rs +40 -0
- cc_transcript-14.45.21/rust/crates/core/src/snapshot_spine_tests.rs +162 -0
- cc_transcript-14.45.21/rust/crates/core/src/snapshot_symlink_proof.rs +243 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/Cargo.lock +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/Cargo.toml +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/LICENSE +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/README.md +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/__init__.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/__init__.pyi +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/_native.pyi +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/activity.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/activity_probe.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/builders.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/codex.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/command.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/context.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/corrections.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/cost.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/decision_store.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/decisions.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/discovery.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/disktruth.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/evidence.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/extract/__init__.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/extract/correct.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/facts.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/filterspec.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/heartbeats.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/ids.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/judge/__init__.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/judge/llm.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/judge/similar.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/judge/verdicts.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/ledger.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/literals.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/mining/__init__.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/mining/candidates.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/mining/confidence.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/mining/engine.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/mining/formats.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/mining/sampling.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/mining/signals.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/mining/sourcekind.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/mining/spec.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/mining/store.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/models.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/nlp.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/notifications.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/parser.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/py.typed +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/query.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/render.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/sentiment/__init__.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/sentiment/buckets.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/sentiment/engine.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/sentiment/lexicon.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/sentiment/scorespec.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/snapshot_schema/config.schema.json +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/snapshot_schema/context.schema.json +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/snapshot_schema/request.schema.json +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/snapshot_schema/response.schema.json +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/snapshots.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/synthetic.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/tools.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/cc_transcript/watch.py +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/cli/Cargo.toml +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/cli/src/commands/blame.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/cli/src/commands/corpus.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/cli/src/commands/corrections.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/cli/src/commands/digest.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/cli/src/commands/facts.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/cli/src/commands/grep.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/cli/src/commands/list.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/cli/src/commands/mod.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/cli/src/commands/show.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/cli/src/commands/slice.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/cli/src/commands/stats.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/cli/src/commands/watch.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/cli/src/lib.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/cli/src/output.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/cli/src/target.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/cli/src/timearg.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/Cargo.toml +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/benches/parse.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/benches/render.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/benches/toolcall.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/build.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/activity.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/actor.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/blame.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/buckets.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/codex/discovery.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/codex/lower.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/codex/mod.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/codex/parse.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/codex/probe.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/codex/protocol.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/codex/types.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/command.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/context.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/corrections.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/cost.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/discovery.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/facts.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/feedback.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/filter.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/gateway.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/judge.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/lib.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/literals/command.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/literals/corrections.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/literals/feedback.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/literals/mining.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/literals/mod.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/literals/protocol.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/notifications.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/parse.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/protocol.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/pystr.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/query.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/render.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/rng.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/scan.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/scan_checkpoint.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/scan_grep.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/scan_grep_stream.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/scan_grep_stream_tests.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/scan_index.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/scan_projection.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/scan_regressions.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/scan_stream.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/schema.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/snapshot_codec.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/snapshot_codex_append.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/snapshot_labels.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/snapshot_ledger.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/snapshot_memory.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/snapshot_owned.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/snapshot_prepared.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/snapshot_prepared_disk.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/snapshot_text.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/sqlite.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/toolcall.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/types.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/value.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/src/watch.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/core/tests/std_allocation_model.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/Cargo.toml +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/build.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/actor_bridge.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/bin/stub_gen.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/codex.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/command.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/context.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/corrections.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/discovery.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/feedback.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/judge.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/lexicon.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/lib.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/mining.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/nlp.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/python.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/render.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/score.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/snapshot_decode.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/snapshots.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/sqlite.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/toolcall.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/views/attachment.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/views/blocks.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/views/command.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/views/convert.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/views/dunder.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/views/events.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/views/meta.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/views/mod.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/views/print.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/views/store.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/views/system.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/views/toolcall.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/views/toolresult.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/views/transcript.rs +0 -0
- {cc_transcript-14.45.19 → cc_transcript-14.45.21}/rust/crates/py/src/watch.rs +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "cc-transcript"
|
|
3
|
-
version = "14.45.
|
|
3
|
+
version = "14.45.21" # 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"
|
|
@@ -33,6 +33,21 @@ pub fn canonical_json(value: &Value) -> Result<String, String> {
|
|
|
33
33
|
Ok(out)
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
pub(crate) fn canonical_json_size(value: &Value) -> Result<usize, String> {
|
|
37
|
+
struct Counter(usize);
|
|
38
|
+
|
|
39
|
+
impl std::fmt::Write for Counter {
|
|
40
|
+
fn write_str(&mut self, text: &str) -> std::fmt::Result {
|
|
41
|
+
self.0 += text.len();
|
|
42
|
+
Ok(())
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
let mut out = Counter(0);
|
|
47
|
+
write_canonical(value, &mut out)?;
|
|
48
|
+
Ok(out.0)
|
|
49
|
+
}
|
|
50
|
+
|
|
36
51
|
// Parity: cc_transcript.ids.tool_digest. The two keys are already UTF-16-ordered
|
|
37
52
|
// ("input" < "tool"), so the wrapper is assembled directly.
|
|
38
53
|
pub fn tool_digest(tool_name: &str, tool_input: &Value) -> Result<String, String> {
|
|
@@ -46,45 +61,47 @@ pub fn tool_digest(tool_name: &str, tool_input: &Value) -> Result<String, String
|
|
|
46
61
|
Ok(hex_sha256(wrapper.as_bytes()))
|
|
47
62
|
}
|
|
48
63
|
|
|
49
|
-
fn write_canonical(value: &Value, out: &mut
|
|
64
|
+
pub(crate) fn write_canonical(value: &Value, out: &mut impl std::fmt::Write) -> Result<(), String> {
|
|
50
65
|
match value.get_type() {
|
|
51
|
-
JsonType::Null => out.
|
|
52
|
-
JsonType::Boolean => out
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
66
|
+
JsonType::Null => out.write_str("null").unwrap(),
|
|
67
|
+
JsonType::Boolean => out
|
|
68
|
+
.write_str(if value.as_bool().unwrap() {
|
|
69
|
+
"true"
|
|
70
|
+
} else {
|
|
71
|
+
"false"
|
|
72
|
+
})
|
|
73
|
+
.unwrap(),
|
|
57
74
|
JsonType::Number => encode_number(value, out)?,
|
|
58
|
-
JsonType::String =>
|
|
75
|
+
JsonType::String => encode_string_to(value.as_str().unwrap(), out).unwrap(),
|
|
59
76
|
JsonType::Array => {
|
|
60
|
-
out.
|
|
77
|
+
out.write_char('[').unwrap();
|
|
61
78
|
for (i, item) in value.as_array().unwrap().iter().enumerate() {
|
|
62
79
|
if i > 0 {
|
|
63
|
-
out.
|
|
80
|
+
out.write_char(',').unwrap();
|
|
64
81
|
}
|
|
65
82
|
write_canonical(item, out)?;
|
|
66
83
|
}
|
|
67
|
-
out.
|
|
84
|
+
out.write_char(']').unwrap();
|
|
68
85
|
}
|
|
69
86
|
JsonType::Object => {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
let mut deduped: HashMap<&str, &Value> = HashMap::new();
|
|
87
|
+
let mut deduped: HashMap<&str, &Value> =
|
|
88
|
+
HashMap::with_capacity(value.as_object().unwrap().len());
|
|
73
89
|
for (key, item) in value.as_object().unwrap().iter() {
|
|
74
90
|
deduped.insert(key, item);
|
|
75
91
|
}
|
|
76
|
-
let mut entries: Vec<(&str, &Value)> = deduped.
|
|
77
|
-
entries.
|
|
78
|
-
|
|
92
|
+
let mut entries: Vec<(&str, &Value)> = Vec::with_capacity(deduped.len());
|
|
93
|
+
entries.extend(deduped);
|
|
94
|
+
entries.sort_unstable_by(|a, b| a.0.encode_utf16().cmp(b.0.encode_utf16()));
|
|
95
|
+
out.write_char('{').unwrap();
|
|
79
96
|
for (i, (key, item)) in entries.iter().enumerate() {
|
|
80
97
|
if i > 0 {
|
|
81
|
-
out.
|
|
98
|
+
out.write_char(',').unwrap();
|
|
82
99
|
}
|
|
83
|
-
|
|
84
|
-
out.
|
|
100
|
+
encode_string_to(key, out).unwrap();
|
|
101
|
+
out.write_char(':').unwrap();
|
|
85
102
|
write_canonical(item, out)?;
|
|
86
103
|
}
|
|
87
|
-
out.
|
|
104
|
+
out.write_char('}').unwrap();
|
|
88
105
|
}
|
|
89
106
|
}
|
|
90
107
|
Ok(())
|
|
@@ -92,7 +109,7 @@ fn write_canonical(value: &Value, out: &mut String) -> Result<(), String> {
|
|
|
92
109
|
|
|
93
110
|
// Parity: canonical_parts int/float arms. Parsed numbers carry raw text
|
|
94
111
|
// (arbitrary_precision); constructed Values don't, so classify by numeric type.
|
|
95
|
-
fn encode_number(value: &Value, out: &mut
|
|
112
|
+
fn encode_number(value: &Value, out: &mut impl std::fmt::Write) -> Result<(), String> {
|
|
96
113
|
if let Some(raw) = value.as_raw_number() {
|
|
97
114
|
let text = raw.as_str();
|
|
98
115
|
return if text.bytes().any(|b| matches!(b, b'.' | b'e' | b'E')) {
|
|
@@ -113,7 +130,7 @@ fn encode_number(value: &Value, out: &mut String) -> Result<(), String> {
|
|
|
113
130
|
)
|
|
114
131
|
}
|
|
115
132
|
|
|
116
|
-
fn push_int(int: i64, out: &mut
|
|
133
|
+
fn push_int(int: i64, out: &mut impl std::fmt::Write) -> Result<(), String> {
|
|
117
134
|
if int.unsigned_abs() > MAX_SAFE_INTEGER as u64 {
|
|
118
135
|
return Err(int_out_of_range(&int.to_string()));
|
|
119
136
|
}
|
|
@@ -121,8 +138,8 @@ fn push_int(int: i64, out: &mut String) -> Result<(), String> {
|
|
|
121
138
|
Ok(())
|
|
122
139
|
}
|
|
123
140
|
|
|
124
|
-
fn push_float(value: f64, out: &mut
|
|
125
|
-
out.
|
|
141
|
+
fn push_float(value: f64, out: &mut impl std::fmt::Write) -> Result<(), String> {
|
|
142
|
+
out.write_str(&es_number(value)?).unwrap();
|
|
126
143
|
Ok(())
|
|
127
144
|
}
|
|
128
145
|
|
|
@@ -192,6 +209,31 @@ mod tests {
|
|
|
192
209
|
tool_digest(name, &sonic_rs::from_str(input_json).unwrap()).unwrap()
|
|
193
210
|
}
|
|
194
211
|
|
|
212
|
+
#[test]
|
|
213
|
+
fn registered_catalog_canonical_measurement_matches_exact_bytes() {
|
|
214
|
+
for raw in [
|
|
215
|
+
r#"{"authority":{"kind":"user","effective_uid":"501"},"roots":["/a\u0001\n\t\r\b\f\\\"é😀"]}"#,
|
|
216
|
+
r#"{"b":1,"a":2,"b":3,"\u0061":4,"😀":-0.0,"":1e21,"€":5e-324}"#,
|
|
217
|
+
r#"[null,true,false,[],{},[1.5,9007199254740991]]"#,
|
|
218
|
+
] {
|
|
219
|
+
let value: Value = sonic_rs::from_str(raw).unwrap();
|
|
220
|
+
let expected = canonical_json(&value).unwrap();
|
|
221
|
+
let bytes = canonical_json_size(&value).unwrap();
|
|
222
|
+
let mut encoded = String::with_capacity(bytes);
|
|
223
|
+
write_canonical(&value, &mut encoded).unwrap();
|
|
224
|
+
assert_eq!(encoded, expected);
|
|
225
|
+
assert_eq!(encoded.len(), bytes);
|
|
226
|
+
assert_eq!(encoded.capacity(), bytes);
|
|
227
|
+
}
|
|
228
|
+
for raw in ["9007199254740993", "100000000000000000000000000000"] {
|
|
229
|
+
let value: Value = sonic_rs::from_str(raw).unwrap();
|
|
230
|
+
assert_eq!(
|
|
231
|
+
canonical_json_size(&value).unwrap_err(),
|
|
232
|
+
canonical_json(&value).unwrap_err()
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
195
237
|
#[test]
|
|
196
238
|
fn es_number_matches_ecmascript_layout() {
|
|
197
239
|
for (json, expected) in [
|