refactor(cli): drop the always-empty interface_metadata wire projection

embeddedMCPMetadata only feeds interface validation now; its summary was
projected onto every schema payload as a constant-empty blob. Remove the
SchemaRegistry field, all three payload projections, the snapshot wire
field, the overview copy, the compact strip entry, and the jq policy gate.
Also delete the redundant io.Discard dead-code suppressor in
event_command.go (io has five genuine uses there).
This commit is contained in:
玉澜
2026-08-03 22:21:30 +08:00
parent 5c7407532a
commit affc8715be
12 changed files with 27 additions and 127 deletions
-1
View File
@@ -101,7 +101,6 @@ jq -S '
]
} +
(if (($catalog.source // "") | type == "string" and length > 0) then {source: $catalog.source} else {} end) +
(if $catalog | has("interface_metadata") then {interface_metadata: $catalog.interface_metadata} else {} end) +
(if $catalog | has("agent_metadata") then {agent_metadata: $catalog.agent_metadata} else {} end) +
{catalog_hash: $snapshot.source_hash} +
(if (($snapshot.surface_hash // "") | nonempty) then {surface_hash: $snapshot.surface_hash} else {} end)