cc-transcript 14.46.12__tar.gz → 14.46.14__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.12 → cc_transcript-14.46.14}/PKG-INFO +1 -1
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/snapshot_schema/request.schema.json +115 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/pyproject.toml +1 -1
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/lib.rs +1 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/query.rs +10 -1
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot.rs +20 -11
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_activity.rs +2 -1
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_index_allocations.rs +5 -4
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_persistent.rs +6 -3
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_prepared.rs +135 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_prepared_service.rs +1 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_projection.rs +20 -1
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_regressions.rs +58 -5
- cc_transcript-14.46.14/rust/crates/core/tests/persistent_allocation_model.rs +139 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/Cargo.lock +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/Cargo.toml +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/LICENSE +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/README.md +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/__init__.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/__init__.pyi +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/_native.pyi +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/activity.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/activity_probe.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/builders.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/codex.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/command.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/context.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/corrections.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/cost.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/decision_store.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/decisions.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/discovery.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/disktruth.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/evidence.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/extract/__init__.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/extract/correct.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/facts.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/filterspec.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/heartbeats.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/ids.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/judge/__init__.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/judge/llm.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/judge/similar.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/judge/verdicts.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/ledger.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/literals.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/mining/__init__.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/mining/candidates.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/mining/confidence.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/mining/engine.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/mining/formats.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/mining/sampling.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/mining/signals.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/mining/sourcekind.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/mining/spec.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/mining/store.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/models.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/nlp.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/notifications.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/parser.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/py.typed +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/query.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/render.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/sentiment/__init__.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/sentiment/buckets.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/sentiment/engine.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/sentiment/lexicon.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/sentiment/scorespec.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/snapshot_schema/config.schema.json +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/snapshot_schema/context.schema.json +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/snapshot_schema/response.schema.json +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/snapshots.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/synthetic.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/tools.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/watch.py +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/cli/Cargo.toml +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/cli/src/commands/blame.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/cli/src/commands/corpus.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/cli/src/commands/corrections.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/cli/src/commands/digest.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/cli/src/commands/facts.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/cli/src/commands/grep.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/cli/src/commands/list.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/cli/src/commands/mod.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/cli/src/commands/show.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/cli/src/commands/slice.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/cli/src/commands/stats.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/cli/src/commands/watch.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/cli/src/lib.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/cli/src/output.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/cli/src/target.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/cli/src/timearg.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/Cargo.toml +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/benches/parse.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/benches/render.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/benches/toolcall.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/build.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/activity.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/actor.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/blame.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/buckets.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/codex/discovery.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/codex/lower.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/codex/mod.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/codex/parse.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/codex/probe.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/codex/protocol.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/codex/review_continuation.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/codex/types.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/command.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/context.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/corrections.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/cost.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/discovery.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/facts.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/feedback.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/filter.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/gateway.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/ids.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/judge.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/literals/command.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/literals/corrections.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/literals/feedback.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/literals/mining.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/literals/mod.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/literals/protocol.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/mining.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/mining_index.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/notifications.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/parse.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/protocol.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/pystr.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/render.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/request_body.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/rng.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/scan.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/scan_checkpoint.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/scan_grep.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/scan_grep_stream.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/scan_grep_stream_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/scan_index.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/scan_projection.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/scan_regressions.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/scan_stream.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/schema.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_admission_report_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_cache.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_cache_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_catalog.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_catalog_owner.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_catalog_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_codec.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_codex_append.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_common_borrowed_parent_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_compact_codex.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_compact_codex_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_direct_tail.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_direct_tail_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_graph_anchor_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_graph_validation_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_hydrate_budget_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_hydration_observations.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_input.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_interaction_api.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_interaction_api_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_interactions.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_interactions_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_labels.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_ledger.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_ledger_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_load_charge_audit_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_load_charge_work_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_membership_progress.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_membership_progress_controls.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_membership_progress_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_memory.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_owned.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_prepared_disk.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_publication_shared_admission_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_query_hydration_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_raw_materialization.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_raw_projection.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_raw_projection_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_raw_scope.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_raw_scope_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_raw_tail_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_raw_window.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_registered_review_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_reply_resume_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_review.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_review_admission_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_review_context.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_review_reader.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_review_source.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_root_warm.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_sidechain_absence.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_sidechain_absence_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_skill_demand_controls.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_skill_demand_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_skill_framing.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_skills.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_source_cache_index_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_spine.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_spine_tests.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_symlink_proof.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_text.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/sqlite.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/toolcall.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/types.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/value.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/watch.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/tests/std_allocation_model.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/Cargo.toml +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/build.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/actor_bridge.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/bin/stub_gen.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/codex.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/command.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/context.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/corrections.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/discovery.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/feedback.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/judge.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/lexicon.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/lib.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/mining.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/nlp.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/python.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/render.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/score.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/snapshot_decode.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/snapshots.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/snapshots_registered_review.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/sqlite.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/toolcall.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/views/attachment.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/views/blocks.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/views/command.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/views/convert.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/views/dunder.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/views/events.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/views/meta.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/views/mod.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/views/print.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/views/store.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/views/system.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/views/toolcall.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/views/toolresult.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/views/transcript.rs +0 -0
- {cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/py/src/watch.rs +0 -0
{cc_transcript-14.46.12 → cc_transcript-14.46.14}/cc_transcript/snapshot_schema/request.schema.json
RENAMED
|
@@ -1525,6 +1525,60 @@
|
|
|
1525
1525
|
"title": "PreparedRegexPredicate",
|
|
1526
1526
|
"type": "object"
|
|
1527
1527
|
},
|
|
1528
|
+
"PreparedSourceEditPredicate": {
|
|
1529
|
+
"additionalProperties": false,
|
|
1530
|
+
"properties": {
|
|
1531
|
+
"exclude_prefixes": {
|
|
1532
|
+
"items": {
|
|
1533
|
+
"maxLength": 1048576,
|
|
1534
|
+
"type": "string"
|
|
1535
|
+
},
|
|
1536
|
+
"maxItems": 256,
|
|
1537
|
+
"title": "Exclude Prefixes",
|
|
1538
|
+
"type": "array"
|
|
1539
|
+
},
|
|
1540
|
+
"exclude_suffixes": {
|
|
1541
|
+
"items": {
|
|
1542
|
+
"maxLength": 1048576,
|
|
1543
|
+
"type": "string"
|
|
1544
|
+
},
|
|
1545
|
+
"maxItems": 256,
|
|
1546
|
+
"title": "Exclude Suffixes",
|
|
1547
|
+
"type": "array"
|
|
1548
|
+
},
|
|
1549
|
+
"kind": {
|
|
1550
|
+
"const": "has_source_edit",
|
|
1551
|
+
"title": "Kind",
|
|
1552
|
+
"type": "string"
|
|
1553
|
+
},
|
|
1554
|
+
"root": {
|
|
1555
|
+
"anyOf": [
|
|
1556
|
+
{
|
|
1557
|
+
"maxLength": 1048576,
|
|
1558
|
+
"type": "string"
|
|
1559
|
+
},
|
|
1560
|
+
{
|
|
1561
|
+
"type": "null"
|
|
1562
|
+
}
|
|
1563
|
+
],
|
|
1564
|
+
"title": "Root"
|
|
1565
|
+
},
|
|
1566
|
+
"subagents": {
|
|
1567
|
+
"const": true,
|
|
1568
|
+
"title": "Subagents",
|
|
1569
|
+
"type": "boolean"
|
|
1570
|
+
}
|
|
1571
|
+
},
|
|
1572
|
+
"required": [
|
|
1573
|
+
"kind",
|
|
1574
|
+
"root",
|
|
1575
|
+
"exclude_suffixes",
|
|
1576
|
+
"exclude_prefixes",
|
|
1577
|
+
"subagents"
|
|
1578
|
+
],
|
|
1579
|
+
"title": "PreparedSourceEditPredicate",
|
|
1580
|
+
"type": "object"
|
|
1581
|
+
},
|
|
1528
1582
|
"PreparedToolPredicate": {
|
|
1529
1583
|
"additionalProperties": false,
|
|
1530
1584
|
"properties": {
|
|
@@ -1751,6 +1805,7 @@
|
|
|
1751
1805
|
"has_read_glob": "#/$defs/PreparedGlobPredicate",
|
|
1752
1806
|
"has_skill": "#/$defs/PreparedListPredicate",
|
|
1753
1807
|
"has_skill_suffix": "#/$defs/PreparedListPredicate",
|
|
1808
|
+
"has_source_edit": "#/$defs/PreparedSourceEditPredicate",
|
|
1754
1809
|
"has_tool": "#/$defs/PreparedToolPredicate"
|
|
1755
1810
|
},
|
|
1756
1811
|
"propertyName": "kind"
|
|
@@ -1771,6 +1826,9 @@
|
|
|
1771
1826
|
{
|
|
1772
1827
|
"$ref": "#/$defs/PreparedGlobPredicate"
|
|
1773
1828
|
},
|
|
1829
|
+
{
|
|
1830
|
+
"$ref": "#/$defs/PreparedSourceEditPredicate"
|
|
1831
|
+
},
|
|
1774
1832
|
{
|
|
1775
1833
|
"$ref": "#/$defs/PreparedOverridePredicate"
|
|
1776
1834
|
},
|
|
@@ -1881,6 +1939,7 @@
|
|
|
1881
1939
|
"has_read_glob": "#/$defs/ListPredicate",
|
|
1882
1940
|
"has_skill": "#/$defs/ListPredicate",
|
|
1883
1941
|
"has_skill_suffix": "#/$defs/ListPredicate",
|
|
1942
|
+
"has_source_edit": "#/$defs/SourceEditPredicate",
|
|
1884
1943
|
"has_tool": "#/$defs/ToolPredicate",
|
|
1885
1944
|
"instruction_turns": "#/$defs/Page",
|
|
1886
1945
|
"interaction_keys": "#/$defs/InteractionKeys",
|
|
@@ -1911,6 +1970,9 @@
|
|
|
1911
1970
|
{
|
|
1912
1971
|
"$ref": "#/$defs/ListPredicate"
|
|
1913
1972
|
},
|
|
1973
|
+
{
|
|
1974
|
+
"$ref": "#/$defs/SourceEditPredicate"
|
|
1975
|
+
},
|
|
1914
1976
|
{
|
|
1915
1977
|
"$ref": "#/$defs/OverridePredicate"
|
|
1916
1978
|
},
|
|
@@ -2394,6 +2456,59 @@
|
|
|
2394
2456
|
"title": "SignalTexts",
|
|
2395
2457
|
"type": "object"
|
|
2396
2458
|
},
|
|
2459
|
+
"SourceEditPredicate": {
|
|
2460
|
+
"additionalProperties": false,
|
|
2461
|
+
"properties": {
|
|
2462
|
+
"exclude_prefixes": {
|
|
2463
|
+
"items": {
|
|
2464
|
+
"maxLength": 1048576,
|
|
2465
|
+
"type": "string"
|
|
2466
|
+
},
|
|
2467
|
+
"maxItems": 256,
|
|
2468
|
+
"title": "Exclude Prefixes",
|
|
2469
|
+
"type": "array"
|
|
2470
|
+
},
|
|
2471
|
+
"exclude_suffixes": {
|
|
2472
|
+
"items": {
|
|
2473
|
+
"maxLength": 1048576,
|
|
2474
|
+
"type": "string"
|
|
2475
|
+
},
|
|
2476
|
+
"maxItems": 256,
|
|
2477
|
+
"title": "Exclude Suffixes",
|
|
2478
|
+
"type": "array"
|
|
2479
|
+
},
|
|
2480
|
+
"kind": {
|
|
2481
|
+
"const": "has_source_edit",
|
|
2482
|
+
"title": "Kind",
|
|
2483
|
+
"type": "string"
|
|
2484
|
+
},
|
|
2485
|
+
"root": {
|
|
2486
|
+
"anyOf": [
|
|
2487
|
+
{
|
|
2488
|
+
"maxLength": 1048576,
|
|
2489
|
+
"type": "string"
|
|
2490
|
+
},
|
|
2491
|
+
{
|
|
2492
|
+
"type": "null"
|
|
2493
|
+
}
|
|
2494
|
+
],
|
|
2495
|
+
"title": "Root"
|
|
2496
|
+
},
|
|
2497
|
+
"subagents": {
|
|
2498
|
+
"title": "Subagents",
|
|
2499
|
+
"type": "boolean"
|
|
2500
|
+
}
|
|
2501
|
+
},
|
|
2502
|
+
"required": [
|
|
2503
|
+
"kind",
|
|
2504
|
+
"root",
|
|
2505
|
+
"exclude_suffixes",
|
|
2506
|
+
"exclude_prefixes",
|
|
2507
|
+
"subagents"
|
|
2508
|
+
],
|
|
2509
|
+
"title": "SourceEditPredicate",
|
|
2510
|
+
"type": "object"
|
|
2511
|
+
},
|
|
2397
2512
|
"Stats": {
|
|
2398
2513
|
"additionalProperties": false,
|
|
2399
2514
|
"properties": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "cc-transcript"
|
|
3
|
-
version = "14.46.
|
|
3
|
+
version = "14.46.14" # 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"
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
//! methods port the self-session branch only (sidechain recursion is `subagents=False`).
|
|
11
11
|
|
|
12
12
|
use std::collections::HashMap;
|
|
13
|
+
use std::sync::LazyLock;
|
|
13
14
|
|
|
14
15
|
use regex::Regex;
|
|
15
16
|
use sonic_rs::Value;
|
|
@@ -140,7 +141,15 @@ impl FileRef {
|
|
|
140
141
|
|
|
141
142
|
/// Whether the path names a Python test file.
|
|
142
143
|
pub fn is_test(&self) -> bool {
|
|
143
|
-
|
|
144
|
+
static PATTERNS: LazyLock<[Regex; 3]> = LazyLock::new(|| {
|
|
145
|
+
TEST_PATTERNS.map(|glob| {
|
|
146
|
+
Regex::new(&glob_to_regex(glob)).expect("translated glob is valid regex")
|
|
147
|
+
})
|
|
148
|
+
});
|
|
149
|
+
let name = pure_name(&self.path);
|
|
150
|
+
PATTERNS
|
|
151
|
+
.iter()
|
|
152
|
+
.any(|pattern| pattern.is_match(&self.path) || pattern.is_match(name))
|
|
144
153
|
}
|
|
145
154
|
|
|
146
155
|
/// The file extension including the leading dot (e.g. `.py`), or `""`.
|
|
@@ -14600,16 +14600,20 @@ mod tests {
|
|
|
14600
14600
|
id: &str,
|
|
14601
14601
|
owner: &Value,
|
|
14602
14602
|
) -> Arc<TranscriptSnapshot> {
|
|
14603
|
-
|
|
14604
|
-
|
|
14605
|
-
|
|
14606
|
-
|
|
14603
|
+
loop {
|
|
14604
|
+
let response = finish(
|
|
14605
|
+
store,
|
|
14606
|
+
store.test_request(
|
|
14607
|
+
&classifier_acquire(path, id, 1024 * 1024),
|
|
14608
|
+
owner,
|
|
14609
|
+
&Cancellation::default(),
|
|
14610
|
+
),
|
|
14607
14611
|
owner,
|
|
14608
|
-
|
|
14609
|
-
)
|
|
14610
|
-
|
|
14611
|
-
|
|
14612
|
-
|
|
14612
|
+
);
|
|
14613
|
+
if response["status"].as_str() != Some("changed") {
|
|
14614
|
+
return store.pin(handle(&response), owner).unwrap();
|
|
14615
|
+
}
|
|
14616
|
+
}
|
|
14613
14617
|
}
|
|
14614
14618
|
|
|
14615
14619
|
fn users(range: Range<usize>) -> String {
|
|
@@ -14871,7 +14875,13 @@ mod tests {
|
|
|
14871
14875
|
owner,
|
|
14872
14876
|
&Cancellation::default(),
|
|
14873
14877
|
)
|
|
14874
|
-
.
|
|
14878
|
+
.unwrap_or_else(|error| {
|
|
14879
|
+
panic!(
|
|
14880
|
+
"{error:?} at page {:?}: {:?}",
|
|
14881
|
+
pages.last(),
|
|
14882
|
+
store.take_admission_refusal()
|
|
14883
|
+
)
|
|
14884
|
+
});
|
|
14875
14885
|
}
|
|
14876
14886
|
(
|
|
14877
14887
|
store.pin(&reply["description"]["handle"], owner).unwrap(),
|
|
@@ -15841,7 +15851,6 @@ mod tests {
|
|
|
15841
15851
|
}
|
|
15842
15852
|
|
|
15843
15853
|
#[test]
|
|
15844
|
-
#[ignore = "publication now charges growth and extends its reservation, but a one-event append still hits accounted storage admission at a 64 MiB cap; the holder is not yet known"]
|
|
15845
15854
|
fn carried_labels_publish_within_the_page_reservation() {
|
|
15846
15855
|
let source = Source::new(&users(0..5000));
|
|
15847
15856
|
let store = NativeStore::new_agent(&json!({"max_events_per_step":4096,"max_retained_bytes":64*1024*1024,"reserved_hook_accounted_bytes":4096,"max_leases":64,"reserved_hook_leases":1})).unwrap();
|
|
@@ -1580,7 +1580,8 @@ impl ActivityIndex {
|
|
|
1580
1580
|
if len == 0 {
|
|
1581
1581
|
5 * size_of::<usize>()
|
|
1582
1582
|
} else {
|
|
1583
|
-
(len *
|
|
1583
|
+
(len * crate::snapshot_persistent::SLOTS_PER_ENTRY + root)
|
|
1584
|
+
* (width + 4 * size_of::<usize>())
|
|
1584
1585
|
}
|
|
1585
1586
|
};
|
|
1586
1587
|
allocations.extend([
|
{cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_index_allocations.rs
RENAMED
|
@@ -6,6 +6,7 @@ use std::sync::{Arc, Mutex, Weak};
|
|
|
6
6
|
use crate::snapshot_ledger::{
|
|
7
7
|
arc_bytes, LedgerEvent, LedgerHook, ReleaseQueue, MUTEX_STORAGE_BYTES,
|
|
8
8
|
};
|
|
9
|
+
use crate::snapshot_persistent::SLOTS_PER_ENTRY;
|
|
9
10
|
|
|
10
11
|
#[derive(Debug)]
|
|
11
12
|
struct RegistryOwner {
|
|
@@ -174,7 +175,7 @@ impl AllocationSet {
|
|
|
174
175
|
let membership = if count == 0 {
|
|
175
176
|
0
|
|
176
177
|
} else {
|
|
177
|
-
(count.saturating_mul(
|
|
178
|
+
(count.saturating_mul(SLOTS_PER_ENTRY) + 64)
|
|
178
179
|
.saturating_mul(width)
|
|
179
180
|
.saturating_add((count.ilog2() as usize + 4).saturating_mul(64 * width))
|
|
180
181
|
};
|
|
@@ -259,7 +260,7 @@ impl AllocationSet {
|
|
|
259
260
|
let nodes = if self.entries.is_empty() {
|
|
260
261
|
0
|
|
261
262
|
} else {
|
|
262
|
-
(self.len().saturating_mul(
|
|
263
|
+
(self.len().saturating_mul(SLOTS_PER_ENTRY) + 64).saturating_mul(width)
|
|
263
264
|
};
|
|
264
265
|
(
|
|
265
266
|
Arc::as_ptr(&self.metadata) as usize,
|
|
@@ -302,9 +303,9 @@ impl AllocationSet {
|
|
|
302
303
|
let state = self.registry.state.lock().expect("allocation registry");
|
|
303
304
|
let count = self.len().saturating_add(inserts);
|
|
304
305
|
let width = size_of::<usize>() + size_of::<Arc<AllocationOwner>>() + 4 * size_of::<usize>();
|
|
305
|
-
let bound = (count.saturating_mul(
|
|
306
|
+
let bound = (count.saturating_mul(SLOTS_PER_ENTRY) + 64).saturating_mul(width);
|
|
306
307
|
let nodes = bound
|
|
307
|
-
.saturating_sub((self.len().saturating_mul(
|
|
308
|
+
.saturating_sub((self.len().saturating_mul(SLOTS_PER_ENTRY) + 64).saturating_mul(width))
|
|
308
309
|
.saturating_add(
|
|
309
310
|
inserts
|
|
310
311
|
.saturating_mul(count.max(1).ilog2() as usize + 4)
|
{cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_persistent.rs
RENAMED
|
@@ -6,6 +6,8 @@ use std::sync::Arc;
|
|
|
6
6
|
|
|
7
7
|
use crate::snapshot_ledger::arc_slice_bytes;
|
|
8
8
|
|
|
9
|
+
pub const SLOTS_PER_ENTRY: usize = 3;
|
|
10
|
+
|
|
9
11
|
#[derive(Debug)]
|
|
10
12
|
pub(crate) struct Counted<T> {
|
|
11
13
|
value: T,
|
|
@@ -49,7 +51,7 @@ impl<K: Ord + Clone + Borrow<str>, V: Clone> Tree<K, V> {
|
|
|
49
51
|
return 5 * size_of::<usize>();
|
|
50
52
|
}
|
|
51
53
|
let width = size_of::<K>() + size_of::<Counted<V>>() + 4 * size_of::<usize>();
|
|
52
|
-
(len.saturating_mul(
|
|
54
|
+
(len.saturating_mul(SLOTS_PER_ENTRY) + 64)
|
|
53
55
|
.saturating_mul(width)
|
|
54
56
|
.saturating_add(len.saturating_mul(max_key_bytes))
|
|
55
57
|
}
|
|
@@ -210,7 +212,7 @@ impl<T: Clone> Vector<T> {
|
|
|
210
212
|
if len == 0 {
|
|
211
213
|
return 5 * size_of::<usize>();
|
|
212
214
|
}
|
|
213
|
-
(len.saturating_mul(
|
|
215
|
+
(len.saturating_mul(SLOTS_PER_ENTRY) + 256)
|
|
214
216
|
.saturating_mul(size_of::<Counted<T>>() + 4 * size_of::<usize>())
|
|
215
217
|
}
|
|
216
218
|
|
|
@@ -382,7 +384,8 @@ mod tests {
|
|
|
382
384
|
assert_eq!(tree.max_key_bytes, expected_max);
|
|
383
385
|
let metadata = tree.allocations(string_allocation).next().unwrap().1;
|
|
384
386
|
let width = size_of::<Arc<str>>() + size_of::<Counted<usize>>() + 4 * size_of::<usize>();
|
|
385
|
-
let expected_metadata =
|
|
387
|
+
let expected_metadata =
|
|
388
|
+
(tree.len() * SLOTS_PER_ENTRY + 64) * width + tree.len() * expected_max;
|
|
386
389
|
assert_eq!(metadata, expected_metadata);
|
|
387
390
|
let incoming_max = arc_slice_mirror::<u8>(8195);
|
|
388
391
|
assert_eq!(
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
use std::collections::{HashMap, HashSet};
|
|
2
|
+
use std::path::{Component, Path, PathBuf};
|
|
3
|
+
|
|
1
4
|
use regex::Regex;
|
|
2
5
|
use sonic_rs::{json, JsonContainerTrait, JsonValueTrait, Value};
|
|
3
6
|
|
|
@@ -48,6 +51,101 @@ fn call_paths(call: &Value) -> Result<&sonic_rs::Array, SnapshotError> {
|
|
|
48
51
|
.ok_or_else(|| invalid("prepared call paths missing"))
|
|
49
52
|
}
|
|
50
53
|
|
|
54
|
+
fn resolved(path: &Path) -> PathBuf {
|
|
55
|
+
path.ancestors()
|
|
56
|
+
.find_map(|ancestor| {
|
|
57
|
+
Some((
|
|
58
|
+
std::fs::canonicalize(ancestor).ok()?,
|
|
59
|
+
path.strip_prefix(ancestor).ok()?,
|
|
60
|
+
))
|
|
61
|
+
})
|
|
62
|
+
.map_or_else(
|
|
63
|
+
|| path.to_path_buf(),
|
|
64
|
+
|(base, rest)| {
|
|
65
|
+
rest.components().fold(base, |mut resolved, component| {
|
|
66
|
+
match component {
|
|
67
|
+
Component::ParentDir => {
|
|
68
|
+
resolved.pop();
|
|
69
|
+
}
|
|
70
|
+
Component::Normal(name) => resolved.push(name),
|
|
71
|
+
_ => {}
|
|
72
|
+
}
|
|
73
|
+
resolved
|
|
74
|
+
})
|
|
75
|
+
},
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
pub(crate) struct SourceEditFilter<'q> {
|
|
80
|
+
root: Option<PathBuf>,
|
|
81
|
+
exclude_suffixes: Vec<&'q str>,
|
|
82
|
+
exclude_prefixes: Vec<&'q str>,
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
impl<'q> SourceEditFilter<'q> {
|
|
86
|
+
pub(crate) fn of(query: &'q Value) -> Result<Self, SnapshotError> {
|
|
87
|
+
let root = query
|
|
88
|
+
.get("root")
|
|
89
|
+
.ok_or_else(|| invalid("missing or invalid root"))?;
|
|
90
|
+
Ok(Self {
|
|
91
|
+
root: if root.is_null() {
|
|
92
|
+
None
|
|
93
|
+
} else {
|
|
94
|
+
Some(resolved(Path::new(string(query, "root")?)))
|
|
95
|
+
},
|
|
96
|
+
exclude_suffixes: strings(query, "exclude_suffixes")?,
|
|
97
|
+
exclude_prefixes: strings(query, "exclude_prefixes")?,
|
|
98
|
+
})
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
pub(crate) fn matches(&self, path: &str) -> bool {
|
|
102
|
+
let file = FileRef::new(path);
|
|
103
|
+
!self
|
|
104
|
+
.exclude_suffixes
|
|
105
|
+
.iter()
|
|
106
|
+
.any(|suffix| *suffix == file.suffix())
|
|
107
|
+
&& !file.under(&self.exclude_prefixes)
|
|
108
|
+
&& !file.is_test()
|
|
109
|
+
&& self.in_project(path)
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
fn in_project(&self, path: &str) -> bool {
|
|
113
|
+
let path = Path::new(path);
|
|
114
|
+
!path.is_absolute()
|
|
115
|
+
|| self
|
|
116
|
+
.root
|
|
117
|
+
.as_ref()
|
|
118
|
+
.is_none_or(|root| resolved(path).starts_with(root))
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
fn any_source_edit(
|
|
123
|
+
calls: &sonic_rs::Array,
|
|
124
|
+
filter: &SourceEditFilter<'_>,
|
|
125
|
+
) -> Result<bool, SnapshotError> {
|
|
126
|
+
let mut edit_tools: HashMap<&str, bool> = HashMap::new();
|
|
127
|
+
let mut seen: HashSet<&str> = HashSet::new();
|
|
128
|
+
for call in calls.iter() {
|
|
129
|
+
let Some(tool) = call_name(call) else {
|
|
130
|
+
continue;
|
|
131
|
+
};
|
|
132
|
+
if !*edit_tools
|
|
133
|
+
.entry(tool)
|
|
134
|
+
.or_insert_with(|| tool_name_matches(tool, "Edit|Write"))
|
|
135
|
+
{
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
if call_paths(call)?
|
|
139
|
+
.iter()
|
|
140
|
+
.filter_map(Value::as_str)
|
|
141
|
+
.any(|path| seen.insert(path) && filter.matches(path))
|
|
142
|
+
{
|
|
143
|
+
return Ok(true);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
Ok(false)
|
|
147
|
+
}
|
|
148
|
+
|
|
51
149
|
#[derive(serde::Serialize, serde::Deserialize)]
|
|
52
150
|
pub struct OverrideEvent {
|
|
53
151
|
pub text: String,
|
|
@@ -427,6 +525,7 @@ impl PreparedFacts {
|
|
|
427
525
|
.is_some_and(|path| FileRef::new(path).matches(&globs))
|
|
428
526
|
})
|
|
429
527
|
}
|
|
528
|
+
"has_source_edit" => any_source_edit(calls, &SourceEditFilter::of(query)?)?,
|
|
430
529
|
"has_command" => {
|
|
431
530
|
#[cfg(feature = "command")]
|
|
432
531
|
{
|
|
@@ -563,4 +662,40 @@ mod tests {
|
|
|
563
662
|
assert!(!restored.serves(FactsNeed::Index));
|
|
564
663
|
assert!(!restored.serves(FactsNeed::Full));
|
|
565
664
|
}
|
|
665
|
+
|
|
666
|
+
#[test]
|
|
667
|
+
fn source_edit_filter_gives_the_answers_python_is_pinned_to() {
|
|
668
|
+
let table: Value = sonic_rs::from_str(include_str!(
|
|
669
|
+
"../../../../tests/testdata/source_edit_cases.json"
|
|
670
|
+
))
|
|
671
|
+
.unwrap();
|
|
672
|
+
for case in table["cases"].as_array().unwrap().iter() {
|
|
673
|
+
let query = json!({"root":case["root"],"exclude_suffixes":table["exclude_suffixes"],
|
|
674
|
+
"exclude_prefixes":table["exclude_prefixes"]});
|
|
675
|
+
assert_eq!(
|
|
676
|
+
SourceEditFilter::of(&query)
|
|
677
|
+
.unwrap()
|
|
678
|
+
.matches(case["path"].as_str().unwrap()),
|
|
679
|
+
case["expected"].as_bool().unwrap(),
|
|
680
|
+
"{case:?}"
|
|
681
|
+
);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
#[cfg(unix)]
|
|
686
|
+
#[test]
|
|
687
|
+
fn source_edit_filter_resolves_symlinks_like_python_path_resolve() {
|
|
688
|
+
let directory = std::env::temp_dir().join(format!("cc-source-edit-{}", std::process::id()));
|
|
689
|
+
let real = directory.join("real");
|
|
690
|
+
let link = directory.join("link");
|
|
691
|
+
std::fs::create_dir_all(&real).unwrap();
|
|
692
|
+
std::os::unix::fs::symlink(&real, &link).unwrap();
|
|
693
|
+
let query = json!({"root":link.to_str().unwrap(),"exclude_suffixes":Vec::<&str>::new(),
|
|
694
|
+
"exclude_prefixes":Vec::<&str>::new()});
|
|
695
|
+
let filter = SourceEditFilter::of(&query).unwrap();
|
|
696
|
+
assert!(filter.matches(real.join("app.py").to_str().unwrap()));
|
|
697
|
+
assert!(filter.matches(link.join("missing/app.py").to_str().unwrap()));
|
|
698
|
+
assert!(!filter.matches(directory.join("app.py").to_str().unwrap()));
|
|
699
|
+
std::fs::remove_dir_all(&directory).unwrap();
|
|
700
|
+
}
|
|
566
701
|
}
|
{cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_projection.rs
RENAMED
|
@@ -16,7 +16,7 @@ use crate::snapshot::{
|
|
|
16
16
|
};
|
|
17
17
|
use crate::snapshot_codec::{self, EventWire, FileRefRecord, ToolUseWire, TurnWire, TURN_CODEC};
|
|
18
18
|
use crate::snapshot_ledger::hashbrown_tier;
|
|
19
|
-
use crate::snapshot_prepared::FactsNeed;
|
|
19
|
+
use crate::snapshot_prepared::{FactsNeed, SourceEditFilter};
|
|
20
20
|
use crate::toolcall::{
|
|
21
21
|
expand_tool_names, tool_name_matches, with_registry, ToolCall, ToolRegistrySnapshot,
|
|
22
22
|
};
|
|
@@ -2216,6 +2216,7 @@ fn query(work: &mut Work, request: &Value, next: usize) -> Result<Projection, Sn
|
|
|
2216
2216
|
let name = match kind {
|
|
2217
2217
|
"has_tool" => Some(string(query, "pattern")?),
|
|
2218
2218
|
"has_read" | "has_read_glob" => Some("Read"),
|
|
2219
|
+
"has_source_edit" => Some("Edit|Write"),
|
|
2219
2220
|
"has_skill" | "has_skill_suffix" => Some("Skill"),
|
|
2220
2221
|
"has_command_regex" => Some("Bash"),
|
|
2221
2222
|
"has_pending_tool" => {
|
|
@@ -2240,6 +2241,18 @@ fn query(work: &mut Work, request: &Value, next: usize) -> Result<Projection, Sn
|
|
|
2240
2241
|
"has_tool" => scalar(json!(session.has_tool(pattern()?)), work),
|
|
2241
2242
|
"has_read" => scalar(json!(session.has_read(pattern()?)), work),
|
|
2242
2243
|
"has_edit_to" => scalar(json!(session.has_edit_to(&values()?)), work),
|
|
2244
|
+
"has_source_edit" => {
|
|
2245
|
+
let filter = SourceEditFilter::of(query)?;
|
|
2246
|
+
scalar(
|
|
2247
|
+
json!(session
|
|
2248
|
+
.tool_calls()
|
|
2249
|
+
.named("Edit|Write")
|
|
2250
|
+
.files()
|
|
2251
|
+
.iter()
|
|
2252
|
+
.any(|file| filter.matches(&file.path))),
|
|
2253
|
+
work,
|
|
2254
|
+
)
|
|
2255
|
+
}
|
|
2243
2256
|
"has_skill" => scalar(json!(session.has_skill(&values()?)), work),
|
|
2244
2257
|
"has_edit" => scalar(json!(!session.edited_files().is_empty()), work),
|
|
2245
2258
|
"has_error" => scalar(json!(session.count_failures() != 0), work),
|
|
@@ -3494,6 +3507,12 @@ mod tests {
|
|
|
3494
3507
|
json!({"kind":"has_read","pattern":"example.rs","subagents":true}),
|
|
3495
3508
|
json!({"kind":"has_read_glob","values":["**/*.rs"],"subagents":true}),
|
|
3496
3509
|
json!({"kind":"has_edit_to","values":["**/change.rs"],"subagents":true}),
|
|
3510
|
+
json!({"kind":"has_source_edit","root":null,"exclude_suffixes":[".md"],
|
|
3511
|
+
"exclude_prefixes":["docs"],"subagents":true}),
|
|
3512
|
+
json!({"kind":"has_source_edit","root":null,"exclude_suffixes":[".rs"],
|
|
3513
|
+
"exclude_prefixes":["docs"],"subagents":true}),
|
|
3514
|
+
json!({"kind":"has_source_edit","root":null,"exclude_suffixes":[".md"],
|
|
3515
|
+
"exclude_prefixes":["src"],"subagents":true}),
|
|
3497
3516
|
json!({"kind":"has_skill","values":["repo:review"],"subagents":true}),
|
|
3498
3517
|
json!({"kind":"has_skill","values":["repo:failed"],"subagents":true}),
|
|
3499
3518
|
json!({"kind":"has_skill_suffix","values":["review"],"subagents":true}),
|
{cc_transcript-14.46.12 → cc_transcript-14.46.14}/rust/crates/core/src/snapshot_regressions.rs
RENAMED
|
@@ -644,19 +644,27 @@ struct Family {
|
|
|
644
644
|
|
|
645
645
|
impl Family {
|
|
646
646
|
fn new(store: NativeStore) -> Self {
|
|
647
|
-
let
|
|
647
|
+
let members: Vec<(&str, String)> =
|
|
648
|
+
MEMBERS.iter().map(|name| (*name, member(name))).collect();
|
|
649
|
+
Self::with(
|
|
650
|
+
store,
|
|
648
651
|
&[
|
|
649
652
|
user("root"),
|
|
650
653
|
call("root-read", "Read", json!({"file_path":"root.rs"})),
|
|
651
654
|
]
|
|
652
655
|
.concat(),
|
|
653
|
-
|
|
656
|
+
&members,
|
|
657
|
+
)
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
fn with(store: NativeStore, root: &str, members: &[(&str, String)]) -> Self {
|
|
661
|
+
let source = RaceSource::new(root);
|
|
654
662
|
let owner = context(&store, &source, "observer");
|
|
655
|
-
let members: Vec<PathBuf> =
|
|
663
|
+
let members: Vec<PathBuf> = members
|
|
656
664
|
.iter()
|
|
657
|
-
.map(|name| {
|
|
665
|
+
.map(|(name, contents)| {
|
|
658
666
|
let path = source.directory.join(format!("{name}.jsonl"));
|
|
659
|
-
std::fs::write(&path,
|
|
667
|
+
std::fs::write(&path, contents).unwrap();
|
|
660
668
|
path
|
|
661
669
|
})
|
|
662
670
|
.collect();
|
|
@@ -1367,6 +1375,51 @@ fn glob_and_regex_kinds_answer_only_as_the_primary_while_the_other_eight_settle_
|
|
|
1367
1375
|
);
|
|
1368
1376
|
}
|
|
1369
1377
|
|
|
1378
|
+
#[test]
|
|
1379
|
+
fn has_source_edit_reaches_subagents_and_ignores_what_the_predicate_excludes() {
|
|
1380
|
+
let query = json!({"kind":"has_source_edit","root":null,"exclude_suffixes":[".md"],
|
|
1381
|
+
"exclude_prefixes":["docs"],"subagents":true});
|
|
1382
|
+
let excluded = [
|
|
1383
|
+
user("root"),
|
|
1384
|
+
call(
|
|
1385
|
+
"root-docs",
|
|
1386
|
+
"Edit",
|
|
1387
|
+
json!({"file_path":"docs/guide.py","old_string":"a","new_string":"b"}),
|
|
1388
|
+
),
|
|
1389
|
+
call(
|
|
1390
|
+
"root-prose",
|
|
1391
|
+
"Write",
|
|
1392
|
+
json!({"file_path":"notes.md","content":"x"}),
|
|
1393
|
+
),
|
|
1394
|
+
call(
|
|
1395
|
+
"root-test",
|
|
1396
|
+
"Write",
|
|
1397
|
+
json!({"file_path":"pkg/tests/test_app.py","content":"x"}),
|
|
1398
|
+
),
|
|
1399
|
+
call("root-read", "Read", json!({"file_path":"src/app.py"})),
|
|
1400
|
+
]
|
|
1401
|
+
.concat();
|
|
1402
|
+
let quiet = Family::with(swift_store(), &excluded, &[]);
|
|
1403
|
+
assert_eq!(
|
|
1404
|
+
quiet.ask(query.clone(), None)["data"],
|
|
1405
|
+
json!({"kind":"scalar","value":false})
|
|
1406
|
+
);
|
|
1407
|
+
let member = [
|
|
1408
|
+
user("member"),
|
|
1409
|
+
call(
|
|
1410
|
+
"member-write",
|
|
1411
|
+
"Write",
|
|
1412
|
+
json!({"file_path":"src/app.py","content":"x"}),
|
|
1413
|
+
),
|
|
1414
|
+
]
|
|
1415
|
+
.concat();
|
|
1416
|
+
let edited = Family::with(swift_store(), &excluded, &[("member", member)]);
|
|
1417
|
+
assert_eq!(
|
|
1418
|
+
edited.ask(query, None)["data"],
|
|
1419
|
+
json!({"kind":"scalar","value":true})
|
|
1420
|
+
);
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1370
1423
|
#[test]
|
|
1371
1424
|
fn uncompilable_glob_observer_is_never_evaluated() {
|
|
1372
1425
|
let glob = json!({"kind":"has_read_glob","values":["[z-a]"],"subagents":true});
|