Merge master into Auto review and reconcile recorded API types

This commit is contained in:
Tianyi Cui committed 2026-09-12 14:17:13 +08:00
commit 647e2aefbf
483 files changed
+96242 -11858

No files matched your search

+4 -4
View File
@@ -2238,7 +2238,7 @@ def project_session_snapshot(records: list[dict[str, object]]) -> list[dict[str,
return projected
SESSION_FORMAT_PROVENANCE = "{{sessionFormatVersion}}"
SESSION_FORMAT_TOKEN = "{{sessionFormatVersion}}"
def expand_snapshot_stream_member(member: object) -> list[dict[str, object]]:
@@ -2327,7 +2327,7 @@ def normalize_session_format_comparison(
value: object,
source_session_version: int | None = None,
) -> object:
"""Canonicalize only generation provenance that differs across immutable Session files."""
"""Canonicalize only generation metadata that differs across immutable Session files."""
if isinstance(value, list):
return [
normalize_session_format_comparison(expanded, source_session_version)
@@ -2342,7 +2342,7 @@ def normalize_session_format_comparison(
for key, item in value.items()
}
if normalized.get("type") == "session" and "version" in normalized:
normalized["version"] = SESSION_FORMAT_PROVENANCE
normalized["version"] = SESSION_FORMAT_TOKEN
normalized.setdefault("isSeeded", False)
ordered_header = {
key: normalized[key]
@@ -2362,7 +2362,7 @@ def normalize_session_format_comparison(
def normalize_snapshot_comparison_text(name: str, content: str) -> str:
"""Normalize Session generation provenance only while comparing committed expected outputs."""
"""Normalize Session generation metadata only while comparing committed expected outputs."""
if name.startswith("session") and name.endswith(".jsonl"):
parsed = [json.loads(line) for line in content.splitlines() if line]
header = parsed[0] if parsed else None