cc-transcript 14.46.14__tar.gz → 14.46.16__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.46.14 → cc_transcript-14.46.16}/PKG-INFO +1 -1
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/pyproject.toml +1 -1
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_codec.rs +31 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_index_allocations.rs +31 -3
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_projection.rs +67 -45
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/types.rs +44 -2
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/Cargo.lock +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/Cargo.toml +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/LICENSE +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/README.md +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/__init__.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/__init__.pyi +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/_native.pyi +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/activity.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/activity_probe.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/builders.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/codex.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/command.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/context.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/corrections.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/cost.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/decision_store.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/decisions.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/discovery.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/disktruth.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/evidence.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/extract/__init__.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/extract/correct.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/facts.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/filterspec.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/heartbeats.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/ids.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/judge/__init__.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/judge/llm.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/judge/similar.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/judge/verdicts.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/ledger.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/literals.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/mining/__init__.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/mining/candidates.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/mining/confidence.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/mining/engine.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/mining/formats.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/mining/sampling.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/mining/signals.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/mining/sourcekind.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/mining/spec.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/mining/store.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/models.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/nlp.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/notifications.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/parser.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/py.typed +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/query.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/render.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/sentiment/__init__.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/sentiment/buckets.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/sentiment/engine.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/sentiment/lexicon.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/sentiment/scorespec.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/snapshot_schema/config.schema.json +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/snapshot_schema/context.schema.json +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/snapshot_schema/request.schema.json +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/snapshot_schema/response.schema.json +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/snapshots.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/synthetic.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/tools.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/watch.py +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/cli/Cargo.toml +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/cli/src/commands/blame.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/cli/src/commands/corpus.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/cli/src/commands/corrections.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/cli/src/commands/digest.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/cli/src/commands/facts.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/cli/src/commands/grep.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/cli/src/commands/list.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/cli/src/commands/mod.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/cli/src/commands/show.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/cli/src/commands/slice.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/cli/src/commands/stats.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/cli/src/commands/watch.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/cli/src/lib.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/cli/src/output.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/cli/src/target.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/cli/src/timearg.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/Cargo.toml +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/benches/parse.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/benches/render.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/benches/toolcall.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/build.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/activity.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/actor.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/blame.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/buckets.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/codex/discovery.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/codex/lower.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/codex/mod.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/codex/parse.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/codex/probe.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/codex/protocol.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/codex/review_continuation.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/codex/types.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/command.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/context.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/corrections.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/cost.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/discovery.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/facts.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/feedback.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/filter.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/gateway.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/ids.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/judge.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/lib.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/literals/command.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/literals/corrections.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/literals/feedback.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/literals/mining.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/literals/mod.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/literals/protocol.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/mining.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/mining_index.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/notifications.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/parse.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/protocol.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/pystr.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/query.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/render.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/request_body.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/rng.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/scan.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/scan_checkpoint.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/scan_grep.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/scan_grep_stream.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/scan_grep_stream_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/scan_index.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/scan_projection.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/scan_regressions.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/scan_stream.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/schema.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_activity.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_admission_report_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_cache.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_cache_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_catalog.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_catalog_owner.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_catalog_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_codex_append.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_common_borrowed_parent_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_compact_codex.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_compact_codex_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_direct_tail.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_direct_tail_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_graph_anchor_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_graph_validation_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_hydrate_budget_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_hydration_observations.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_input.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_interaction_api.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_interaction_api_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_interactions.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_interactions_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_labels.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_ledger.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_ledger_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_load_charge_audit_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_load_charge_work_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_membership_progress.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_membership_progress_controls.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_membership_progress_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_memory.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_owned.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_persistent.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_prepared.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_prepared_disk.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_prepared_service.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_publication_shared_admission_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_query_hydration_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_raw_materialization.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_raw_projection.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_raw_projection_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_raw_scope.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_raw_scope_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_raw_tail_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_raw_window.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_registered_review_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_regressions.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_reply_resume_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_review.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_review_admission_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_review_context.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_review_reader.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_review_source.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_root_warm.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_sidechain_absence.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_sidechain_absence_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_skill_demand_controls.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_skill_demand_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_skill_framing.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_skills.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_source_cache_index_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_spine.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_spine_tests.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_symlink_proof.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_text.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/sqlite.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/toolcall.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/value.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/watch.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/tests/persistent_allocation_model.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/tests/std_allocation_model.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/Cargo.toml +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/build.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/actor_bridge.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/bin/stub_gen.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/codex.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/command.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/context.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/corrections.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/discovery.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/feedback.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/judge.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/lexicon.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/lib.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/mining.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/nlp.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/python.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/render.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/score.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/snapshot_decode.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/snapshots.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/snapshots_registered_review.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/sqlite.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/toolcall.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/views/attachment.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/views/blocks.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/views/command.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/views/convert.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/views/dunder.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/views/events.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/views/meta.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/views/mod.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/views/print.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/views/store.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/views/system.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/views/toolcall.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/views/toolresult.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/views/transcript.rs +0 -0
- {cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/py/src/watch.rs +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "cc-transcript"
|
|
3
|
-
version = "14.46.
|
|
3
|
+
version = "14.46.16" # 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"
|
|
@@ -939,6 +939,37 @@ mod tests {
|
|
|
939
939
|
)
|
|
940
940
|
}
|
|
941
941
|
|
|
942
|
+
#[test]
|
|
943
|
+
fn event_records_elide_base64_bodies_and_keep_the_rest() {
|
|
944
|
+
let body = "A".repeat(MAX_RECORD_BYTES);
|
|
945
|
+
let elided = format!("<elided {} bytes>", body.len());
|
|
946
|
+
let image = json!({"type":"image","source":{"type":"base64","media_type":"image/png","data":&body}});
|
|
947
|
+
let events = [
|
|
948
|
+
event(
|
|
949
|
+
json!({"type":"api-request-blob","hash":"h","data":"kept","message":{"content":[
|
|
950
|
+
{"type":"text","text":"kept"},
|
|
951
|
+
{"type":"tool_result","content":[image]},
|
|
952
|
+
]}}),
|
|
953
|
+
),
|
|
954
|
+
event(
|
|
955
|
+
json!({"type":"user","uuid":"u","sessionId":"s","timestamp":"2026-01-02T03:04:05Z",
|
|
956
|
+
"toolUseResult":{"data":"kept","file":{"base64":&body,"type":"image/png"}},
|
|
957
|
+
"message":{"content":[{"type":"tool_result","tool_use_id":"t","content":"kept"}]}}),
|
|
958
|
+
),
|
|
959
|
+
event(
|
|
960
|
+
json!({"type":"attachment","uuid":"a","sessionId":"s","timestamp":"2026-01-02T03:04:05Z",
|
|
961
|
+
"attachment":{"type":"file","data":"kept","content":{"file":{"base64":&body}}}}),
|
|
962
|
+
),
|
|
963
|
+
];
|
|
964
|
+
for (index, entry) in events.iter().enumerate() {
|
|
965
|
+
let record = encode(&EventWire::new(index, entry), MAX_RECORD_BYTES).unwrap();
|
|
966
|
+
assert!(record.contains(&elided), "{record}");
|
|
967
|
+
assert!(record.contains("kept"), "{record}");
|
|
968
|
+
assert!(!record.contains("AAAA"), "{record}");
|
|
969
|
+
decode_events(&[record], MAX_RECORD_BYTES).unwrap();
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
|
|
942
973
|
#[test]
|
|
943
974
|
fn native_events_roundtrip_every_variant_and_all_serialized_fields() {
|
|
944
975
|
let records = vec![
|
{cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_index_allocations.rs
RENAMED
|
@@ -4,7 +4,7 @@ use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
|
|
|
4
4
|
use std::sync::{Arc, Mutex, Weak};
|
|
5
5
|
|
|
6
6
|
use crate::snapshot_ledger::{
|
|
7
|
-
arc_bytes, LedgerEvent, LedgerHook, ReleaseQueue, MUTEX_STORAGE_BYTES,
|
|
7
|
+
arc_bytes, hashbrown_tier, LedgerEvent, LedgerHook, ReleaseQueue, MUTEX_STORAGE_BYTES,
|
|
8
8
|
};
|
|
9
9
|
use crate::snapshot_persistent::SLOTS_PER_ENTRY;
|
|
10
10
|
|
|
@@ -224,7 +224,10 @@ impl AllocationSet {
|
|
|
224
224
|
pending: Some(pending),
|
|
225
225
|
},
|
|
226
226
|
);
|
|
227
|
-
state.owners_capacity = state.owners_capacity.max(
|
|
227
|
+
state.owners_capacity = state.owners_capacity.max(hashbrown_tier(
|
|
228
|
+
state.owners.len(),
|
|
229
|
+
size_of::<(usize, RegistryOwner)>(),
|
|
230
|
+
));
|
|
228
231
|
state.queue.push((id, Arc::downgrade(&owner)));
|
|
229
232
|
self.registry
|
|
230
233
|
.pending_bytes
|
|
@@ -321,7 +324,7 @@ impl AllocationSet {
|
|
|
321
324
|
} else {
|
|
322
325
|
0
|
|
323
326
|
};
|
|
324
|
-
let table = if state.owners.len().saturating_add(inserts) > state.
|
|
327
|
+
let table = if state.owners.len().saturating_add(inserts) > state.owners_capacity {
|
|
325
328
|
state
|
|
326
329
|
.owners_capacity
|
|
327
330
|
.saturating_add(inserts)
|
|
@@ -487,6 +490,31 @@ mod tests {
|
|
|
487
490
|
assert_eq!(set.pending_bytes(), 0);
|
|
488
491
|
}
|
|
489
492
|
|
|
493
|
+
#[test]
|
|
494
|
+
fn registry_charge_is_identical_across_hash_seeds_under_churn() {
|
|
495
|
+
let churned = || {
|
|
496
|
+
let mut set = AllocationSet::default();
|
|
497
|
+
let (mut next, mut first) = (0, 0);
|
|
498
|
+
for (inserts, removes) in [(20, 12), (10, 9), (12, 10), (9, 7), (10, 9), (11, 8)] {
|
|
499
|
+
for _ in 0..inserts {
|
|
500
|
+
set.insert(next, 16);
|
|
501
|
+
next += 1;
|
|
502
|
+
let state = set.registry.state.lock().unwrap();
|
|
503
|
+
assert!(state.owners.capacity() <= 2 * state.owners_capacity);
|
|
504
|
+
}
|
|
505
|
+
for _ in 0..removes {
|
|
506
|
+
set.remove(first);
|
|
507
|
+
first += 1;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
set.registry_metadata_allocation().1
|
|
511
|
+
};
|
|
512
|
+
let charge = churned();
|
|
513
|
+
for _ in 0..256 {
|
|
514
|
+
assert_eq!(churned(), charge);
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
|
|
490
518
|
#[test]
|
|
491
519
|
fn dropping_unpublished_members_releases_pending_bytes_and_registry_identity() {
|
|
492
520
|
let mut set = AllocationSet::default();
|
{cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/snapshot_projection.rs
RENAMED
|
@@ -65,39 +65,6 @@ fn array<'a>(value: &'a Value, key: &str) -> Result<&'a sonic_rs::Array, Snapsho
|
|
|
65
65
|
.ok_or_else(|| invalid(format!("{key} must be an array")))
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
struct BoundedWriter {
|
|
69
|
-
bytes: Vec<u8>,
|
|
70
|
-
limit: usize,
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
impl Write for BoundedWriter {
|
|
74
|
-
fn write(&mut self, bytes: &[u8]) -> io::Result<usize> {
|
|
75
|
-
if bytes.len() > self.limit.saturating_sub(self.bytes.len()) {
|
|
76
|
-
return Err(io::Error::other("projection output limit"));
|
|
77
|
-
}
|
|
78
|
-
self.bytes.extend_from_slice(bytes);
|
|
79
|
-
Ok(bytes.len())
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
fn flush(&mut self) -> io::Result<()> {
|
|
83
|
-
Ok(())
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
fn encoded(value: &Value, limit: usize) -> Result<String, SnapshotError> {
|
|
88
|
-
let mut writer = BoundedWriter {
|
|
89
|
-
bytes: Vec::new(),
|
|
90
|
-
limit,
|
|
91
|
-
};
|
|
92
|
-
snapshot_codec::write_json(&mut writer, value, limit).map_err(|_| {
|
|
93
|
-
SnapshotError::new(
|
|
94
|
-
Status::OutputLimit,
|
|
95
|
-
"projection exceeds serialized output limit",
|
|
96
|
-
)
|
|
97
|
-
})?;
|
|
98
|
-
Ok(String::from_utf8(writer.bytes).expect("JSON is UTF-8"))
|
|
99
|
-
}
|
|
100
|
-
|
|
101
68
|
struct OutputCounter {
|
|
102
69
|
remaining: usize,
|
|
103
70
|
}
|
|
@@ -889,6 +856,8 @@ fn scalar(value: Value, work: &Work) -> Result<Projection, SnapshotError> {
|
|
|
889
856
|
finish(json!({"kind":"scalar","value":value}), work.limits, None)
|
|
890
857
|
}
|
|
891
858
|
|
|
859
|
+
const RECORD_PAGE_ENVELOPE_BYTES: usize = 128;
|
|
860
|
+
|
|
892
861
|
fn record_page(
|
|
893
862
|
values: impl DoubleEndedIterator<Item = Result<String, SnapshotError>> + ExactSizeIterator,
|
|
894
863
|
schema: &str,
|
|
@@ -907,21 +876,41 @@ fn record_page(
|
|
|
907
876
|
Box::new(values)
|
|
908
877
|
};
|
|
909
878
|
let mut records = Vec::new();
|
|
910
|
-
let mut remaining = work.limits
|
|
879
|
+
let mut remaining = record_page_budget(work.limits);
|
|
911
880
|
for value in values.skip(next).take(stop - next) {
|
|
912
881
|
work.cancel.check(work.limits.deadline_unix_ms)?;
|
|
913
882
|
let record = value?;
|
|
914
|
-
|
|
915
|
-
|
|
883
|
+
if !page_takes(&record, &mut remaining, records.is_empty())? {
|
|
884
|
+
break;
|
|
885
|
+
}
|
|
916
886
|
records.push(record);
|
|
917
887
|
}
|
|
888
|
+
let end = next + records.len();
|
|
918
889
|
finish(
|
|
919
890
|
json!({"kind":"records","record_schema":schema,"records_json":records}),
|
|
920
891
|
work.limits,
|
|
921
|
-
(
|
|
892
|
+
(end < len).then_some(end),
|
|
922
893
|
)
|
|
923
894
|
}
|
|
924
895
|
|
|
896
|
+
fn record_page_budget(limits: &WorkLimits) -> usize {
|
|
897
|
+
limits
|
|
898
|
+
.max_output_bytes
|
|
899
|
+
.saturating_sub(RECORD_PAGE_ENVELOPE_BYTES)
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
fn page_takes(record: &str, remaining: &mut usize, empty: bool) -> Result<bool, SnapshotError> {
|
|
903
|
+
let cost = snapshot_codec::encoded_size_bounded(
|
|
904
|
+
record,
|
|
905
|
+
snapshot_codec::Bound::budget("page record", usize::MAX),
|
|
906
|
+
)? + 1;
|
|
907
|
+
if cost > *remaining && !empty {
|
|
908
|
+
return Ok(false);
|
|
909
|
+
}
|
|
910
|
+
*remaining = remaining.saturating_sub(cost);
|
|
911
|
+
Ok(true)
|
|
912
|
+
}
|
|
913
|
+
|
|
925
914
|
fn output_limit() -> SnapshotError {
|
|
926
915
|
SnapshotError::new(Status::OutputLimit, "projection text exceeds output budget")
|
|
927
916
|
}
|
|
@@ -2189,6 +2178,7 @@ fn query(work: &mut Work, request: &Value, next: usize) -> Result<Projection, Sn
|
|
|
2189
2178
|
.min(next.saturating_add(work.limits.max_events)),
|
|
2190
2179
|
);
|
|
2191
2180
|
let mut records = Vec::new();
|
|
2181
|
+
let mut remaining = record_page_budget(work.limits);
|
|
2192
2182
|
for offset in next..stop {
|
|
2193
2183
|
let index = if reverse {
|
|
2194
2184
|
range.end - 1 - offset
|
|
@@ -2200,12 +2190,16 @@ fn query(work: &mut Work, request: &Value, next: usize) -> Result<Projection, Sn
|
|
|
2200
2190
|
&EventWire::new(index, work.snapshot.entry(index)),
|
|
2201
2191
|
work.limits.max_output_bytes,
|
|
2202
2192
|
)?;
|
|
2193
|
+
if !page_takes(&payload, &mut remaining, records.is_empty())? {
|
|
2194
|
+
break;
|
|
2195
|
+
}
|
|
2203
2196
|
records.push(payload);
|
|
2204
2197
|
}
|
|
2198
|
+
let end = next + records.len();
|
|
2205
2199
|
return finish(
|
|
2206
2200
|
json!({"kind":"records","record_schema":"cc-transcript.event/1","records_json":records}),
|
|
2207
2201
|
work.limits,
|
|
2208
|
-
(
|
|
2202
|
+
(end < range.len()).then_some(end),
|
|
2209
2203
|
);
|
|
2210
2204
|
}
|
|
2211
2205
|
if kind == "turns" {
|
|
@@ -3645,6 +3639,41 @@ mod tests {
|
|
|
3645
3639
|
assert_eq!(result.reason.as_deref(), Some("event_limit"));
|
|
3646
3640
|
}
|
|
3647
3641
|
|
|
3642
|
+
#[test]
|
|
3643
|
+
fn event_pages_stop_at_the_output_budget_and_resume_from_there() {
|
|
3644
|
+
let text = "\"".repeat(64 * 1024);
|
|
3645
|
+
let entries: Vec<_> = (0..40)
|
|
3646
|
+
.map(|index| user(&format!("u{index}"), &text))
|
|
3647
|
+
.collect();
|
|
3648
|
+
let snap = snapshot(&entries);
|
|
3649
|
+
let req = request(json!({"kind":"events","order":"forward"}), json!([]));
|
|
3650
|
+
let cap = limits();
|
|
3651
|
+
let (mut seen, mut pages, mut next) = (Vec::new(), 0, 0);
|
|
3652
|
+
loop {
|
|
3653
|
+
let result = project(&snap, &req, &cap, &Cancellation::default(), next).unwrap();
|
|
3654
|
+
pages += 1;
|
|
3655
|
+
for raw in result.data["records_json"].as_array().unwrap().iter() {
|
|
3656
|
+
let value: Value = sonic_rs::from_str(raw.as_str().unwrap()).unwrap();
|
|
3657
|
+
seen.push(value["i"].as_u64().unwrap());
|
|
3658
|
+
}
|
|
3659
|
+
match result.next {
|
|
3660
|
+
Some(cursor) => next = cursor,
|
|
3661
|
+
None => {
|
|
3662
|
+
assert!(result.complete);
|
|
3663
|
+
break;
|
|
3664
|
+
}
|
|
3665
|
+
}
|
|
3666
|
+
}
|
|
3667
|
+
assert!(pages > 1);
|
|
3668
|
+
assert_eq!(seen, (0..40).collect::<Vec<u64>>());
|
|
3669
|
+
let mut tiny = limits();
|
|
3670
|
+
tiny.max_output_bytes = 64;
|
|
3671
|
+
assert!(matches!(
|
|
3672
|
+
project(&snap, &req, &tiny, &Cancellation::default(), 0),
|
|
3673
|
+
Err(error) if error.status == Status::OutputLimit
|
|
3674
|
+
));
|
|
3675
|
+
}
|
|
3676
|
+
|
|
3648
3677
|
#[test]
|
|
3649
3678
|
fn pagination_is_positional_and_reversible() {
|
|
3650
3679
|
let snap = snapshot(&[
|
|
@@ -3759,13 +3788,6 @@ mod tests {
|
|
|
3759
3788
|
assert!(
|
|
3760
3789
|
matches!(project(&snap,&req,&cap,&Cancellation::default(),0),Err(error) if error.status == Status::OutputLimit)
|
|
3761
3790
|
);
|
|
3762
|
-
let mut writer = BoundedWriter {
|
|
3763
|
-
bytes: Vec::new(),
|
|
3764
|
-
limit: 8,
|
|
3765
|
-
};
|
|
3766
|
-
assert!(writer.write_all(b"12345678").is_ok());
|
|
3767
|
-
assert!(writer.write_all(b"9").is_err());
|
|
3768
|
-
assert_eq!(writer.bytes.len(), 8);
|
|
3769
3791
|
}
|
|
3770
3792
|
|
|
3771
3793
|
#[test]
|
|
@@ -1,12 +1,52 @@
|
|
|
1
1
|
use std::collections::{HashMap, HashSet};
|
|
2
2
|
|
|
3
3
|
use chrono::{DateTime, FixedOffset};
|
|
4
|
-
use
|
|
4
|
+
use serde::ser::{SerializeMap, SerializeSeq};
|
|
5
|
+
use serde::{Serialize, Serializer};
|
|
6
|
+
use sonic_rs::{JsonContainerTrait, JsonValueTrait, Value};
|
|
5
7
|
|
|
6
8
|
use crate::protocol::{interrupt_marker, is_agent_injection};
|
|
7
9
|
|
|
8
10
|
const TEXT_SEPARATOR: &str = " ";
|
|
9
11
|
|
|
12
|
+
/// Serializes a retained payload with its base64 bodies elided, since one image can outgrow the
|
|
13
|
+
/// 1 MiB frame a snapshot record has to cross.
|
|
14
|
+
struct WireValue<'a>(&'a Value);
|
|
15
|
+
|
|
16
|
+
impl Serialize for WireValue<'_> {
|
|
17
|
+
fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error> {
|
|
18
|
+
if let Some(items) = self.0.as_array() {
|
|
19
|
+
let mut seq = serializer.serialize_seq(Some(items.len()))?;
|
|
20
|
+
for item in items.iter() {
|
|
21
|
+
seq.serialize_element(&WireValue(item))?;
|
|
22
|
+
}
|
|
23
|
+
return seq.end();
|
|
24
|
+
}
|
|
25
|
+
let Some(fields) = self.0.as_object() else {
|
|
26
|
+
return self.0.serialize(serializer);
|
|
27
|
+
};
|
|
28
|
+
let base64_source = self.0.get("type").and_then(JsonValueTrait::as_str) == Some("base64");
|
|
29
|
+
let mut map = serializer.serialize_map(Some(fields.len()))?;
|
|
30
|
+
for (name, value) in fields.iter() {
|
|
31
|
+
match value.as_str() {
|
|
32
|
+
Some(payload) if name == "base64" || (name == "data" && base64_source) => {
|
|
33
|
+
map.serialize_entry(name, &format!("<elided {} bytes>", payload.len()))?;
|
|
34
|
+
}
|
|
35
|
+
_ => map.serialize_entry(name, &WireValue(value))?,
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
map.end()
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
fn wire_value<S: Serializer>(value: &Value, serializer: S) -> Result<S::Ok, S::Error> {
|
|
43
|
+
WireValue(value).serialize(serializer)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
fn wire_value_opt<S: Serializer>(value: &Option<Value>, serializer: S) -> Result<S::Ok, S::Error> {
|
|
47
|
+
value.as_ref().map(WireValue).serialize(serializer)
|
|
48
|
+
}
|
|
49
|
+
|
|
10
50
|
/// Envelope metadata shared by the conversational entry kinds (user, assistant,
|
|
11
51
|
/// system). Mode and Other entries carry no envelope on disk.
|
|
12
52
|
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
|
|
@@ -87,6 +127,7 @@ pub struct ToolResultBlock {
|
|
|
87
127
|
/// Computed at parse time from the payload's ``isAsync`` marker (parser.py parse_user_blocks).
|
|
88
128
|
pub is_async: bool,
|
|
89
129
|
/// The record-level ``toolUseResult`` payload verbatim; Python receives it exactly as written.
|
|
130
|
+
#[serde(serialize_with = "wire_value_opt")]
|
|
90
131
|
pub tool_use_result: Option<Value>,
|
|
91
132
|
/// The tool-denial kind, computed at parse time (parser.py parse_tool_result_block): the
|
|
92
133
|
/// record-level ``toolDenialKind`` when present, else ``user-rejected`` for a legacy-banner
|
|
@@ -319,6 +360,7 @@ pub struct ModeEntry {
|
|
|
319
360
|
pub struct OtherEntry {
|
|
320
361
|
pub ty: String,
|
|
321
362
|
/// The full decoded payload, passed through to Python verbatim.
|
|
363
|
+
#[serde(serialize_with = "wire_value")]
|
|
322
364
|
pub raw: Value,
|
|
323
365
|
}
|
|
324
366
|
|
|
@@ -421,7 +463,7 @@ pub enum AttachmentDetail {
|
|
|
421
463
|
AsyncHookResponse(AsyncHookResponse),
|
|
422
464
|
QueuedCommand(QueuedCommand),
|
|
423
465
|
DeferredToolsDelta(DeferredToolsDelta),
|
|
424
|
-
Other(Value),
|
|
466
|
+
Other(#[serde(serialize_with = "wire_value")] Value),
|
|
425
467
|
}
|
|
426
468
|
|
|
427
469
|
#[derive(Debug, serde::Serialize, serde::Deserialize)]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/sentiment/data/afinn-en-165.tsv
RENAMED
|
File without changes
|
{cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/sentiment/data/domain_overrides.tsv
RENAMED
|
File without changes
|
{cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/sentiment/data/en-ewt.udpipe
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/snapshot_schema/config.schema.json
RENAMED
|
File without changes
|
{cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/snapshot_schema/context.schema.json
RENAMED
|
File without changes
|
{cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/snapshot_schema/request.schema.json
RENAMED
|
File without changes
|
{cc_transcript-14.46.14 → cc_transcript-14.46.16}/cc_transcript/snapshot_schema/response.schema.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/cli/src/commands/corrections.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/cli/src/commands/scratchpad.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cc_transcript-14.46.14 → cc_transcript-14.46.16}/rust/crates/core/src/codex/review_continuation.rs
RENAMED
|
File without changes
|
|
File without changes
|