refactor: return complete tool results inline

This commit is contained in:
morluto
2026-09-29 07:08:46 +08:00
parent 2160d4fae5
commit 0d96275b68
535 changed files with 4084 additions and 13537 deletions
-2
View File
@@ -21,7 +21,6 @@ export const comparePngScreenshots = (
const after = decodePng(input.after, input.maximum_pixels);
if (before.width !== after.width || before.height !== after.height)
return {
schema_version: 1,
status: "dimension_mismatch",
before: dimensions(before),
after: dimensions(after),
@@ -51,7 +50,6 @@ export const comparePngScreenshots = (
}
const pixels = before.width * before.height;
const context = {
schema_version: 1 as const,
before: dimensions(before),
after: dimensions(after),
channel_threshold: input.channel_threshold,