mcp: simplify minify and remove eval quota

This commit is contained in:
Adrià Arrufat
2026-03-02 22:46:20 +09:00
parent 982b8e2d72
commit 4f99df694b

View File

@@ -113,8 +113,7 @@ pub const Tool = struct {
}; };
pub fn minify(comptime json: []const u8) []const u8 { pub fn minify(comptime json: []const u8) []const u8 {
@setEvalBranchQuota(100000); return comptime blk: {
const minified = comptime blk: {
var res: []const u8 = ""; var res: []const u8 = "";
var in_string = false; var in_string = false;
var escaped = false; var escaped = false;
@@ -141,7 +140,6 @@ pub fn minify(comptime json: []const u8) []const u8 {
} }
break :blk res; break :blk res;
}; };
return minified;
} }
pub const Resource = struct { pub const Resource = struct {