feat(workbench): add bounded JSON and CSV ResourceView renderers

Serve static application/json and text/csv previews with outline/table
limits and flip extract_formats availability for those media types.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-10-27 13:55:35 +08:00
1 parent e833dc05e2
commit 43eebe5671
3 files changed
+289 -4

No files matched your search

+6 -1
View File
@@ -208,7 +208,12 @@ fn ma0_agent_reliability_protocol_freeze() {
.iter()
.find(|f| f["format"] == "json")
.expect("json row");
assert_eq!(json_fmt["available"], false);
assert_eq!(json_fmt["available"], true);
let csv_fmt = formats
.iter()
.find(|f| f["format"] == "csv")
.expect("csv row");
assert_eq!(csv_fmt["available"], true);
// Live contracts list still excludes unimplemented agent schemas.
let contracts = caps["result"]["contracts"].as_array().unwrap();