refactor(mcp): simplify tool inputs and inline results

This commit is contained in:
morluto
2026-09-29 11:22:00 +08:00
parent bd0e341572
commit f55c2b9267
70 changed files with 468 additions and 741 deletions
@@ -61,7 +61,7 @@ describeBrowser("CdpBrowserProvider: document script 1", () => {
artifact: expect.objectContaining({
text: "export const observed = 'source-secret';",
bytes: 40,
uri: expect.stringMatching(/^rea:\/\/web-content\/sha256\//u),
sha256: expect.stringMatching(/^[a-f0-9]{64}$/u),
}),
}),
);
@@ -297,7 +297,7 @@ describeBrowser("CdpBrowserProvider: document script 3", () => {
expect(result.value).toMatchObject({
viewport: { width: 1, height: 1 },
artifact: {
uri: expect.stringMatching(/^rea:\/\/web-screenshot\/sha256\//u),
sha256: expect.stringMatching(/^[a-f0-9]{64}$/u),
bytes: 70,
media_type: "image/png",
},