fix(protocol): keep generic trace schema compatible with v2 and v3

Split standalone v2/v3 schemas and drop TraceV2 deny_unknown_fields so legacy traces with extra keys still parse; mix and version checks stay in RecordedTrace.
This commit is contained in:
“haonan”
2026-08-23 21:26:39 +08:00
committed by GitHub
parent 368507b07d
commit e64f4cac9f
10 changed files with 1471 additions and 495 deletions
+2 -1
View File
@@ -114,7 +114,8 @@ fn main() {
dump!(RequestHelpResult, "tool_request_help_result");
dump!(TraceV2, "trace_v2");
dump!(TraceV3, "trace");
dump!(TraceV3, "trace_v3");
dump!(RecordedTrace, "trace");
dump!(StepV3, "trace_step");
dump!(RecordStartParams, "tool_record_start_params");
dump!(RecordStartResult, "tool_record_start_result");