cbrowser 18.75.2 → 18.75.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../src/mcp-server.ts"],"names":[],"mappings":";AACA;;;;GAIG;AAEH;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAmxIpE;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,SAAS,CAAC,CAE1D;AAED;;;GAGG;AACH,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAWvE;AAED,wBAAsB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAWpD"}
1
+ {"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../src/mcp-server.ts"],"names":[],"mappings":";AACA;;;;GAIG;AAEH;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAo0IpE;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,SAAS,CAAC,CAE1D;AAED;;;GAGG;AACH,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAWvE;AAED,wBAAsB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAWpD"}
@@ -970,6 +970,37 @@ async function registerCBrowserTools() {
970
970
  url: result.url,
971
971
  overallStatus: result.overallStatus,
972
972
  summary: result.summary,
973
+ // The evidence used to be collapsed to two integers —
974
+ // screenshotCount / comparisonCount — while `result` carried every
975
+ // screenshot path, every pairwise similarity score, and
976
+ // problematicBrowsers. So the caller received an absolute verdict
977
+ // ("renders consistently across all tested browsers") with every
978
+ // number that could falsify it removed, and no way to open the
979
+ // screenshots it said it had taken.
980
+ //
981
+ // It also explains the contradiction with cross_browser_diff: this
982
+ // tool compares ABOVE-THE-FOLD PIXELS at a forced 1920x1080, while
983
+ // the diff compares FULL-PAGE TEXT at 1280x720. Two different
984
+ // measurements reported in language that claims to settle the same
985
+ // question. `scope` now says which one you are reading.
986
+ // (2026-07-29)
987
+ scope: "above-the-fold pixels at 1920x1080; page TEXT is not compared — use cross_browser_diff for content",
988
+ screenshots: result.screenshots.map((s) => ({
989
+ browser: s.browser,
990
+ path: s.screenshotPath,
991
+ viewport: s.viewport,
992
+ })),
993
+ comparisons: result.comparisons.map((c) => ({
994
+ browserA: c.browserA,
995
+ browserB: c.browserB,
996
+ status: c.analysis?.overallStatus,
997
+ similarity: c.analysis?.similarityScore,
998
+ changes: (c.analysis?.changes ?? []).map((ch) => ({
999
+ severity: ch.severity,
1000
+ description: ch.description,
1001
+ })),
1002
+ })),
1003
+ ...(result.problematicBrowsers?.length ? { problematicBrowsers: result.problematicBrowsers } : {}),
973
1004
  screenshotCount: result.screenshots.length,
974
1005
  comparisonCount: result.comparisons.length,
975
1006
  ...(result.missingBrowsers?.length ? { missingBrowsers: result.missingBrowsers } : {}),
@@ -1015,6 +1046,24 @@ async function registerCBrowserTools() {
1015
1046
  url: result.url,
1016
1047
  overallStatus: result.overallStatus,
1017
1048
  summary: result.summary,
1049
+ // `result.issues` and `problematicViewports` were both computed and
1050
+ // then dropped here, so the caller got "13 issues: 7 overflow, 2
1051
+ // unreadable text..." with no way to learn WHICH viewport or WHICH
1052
+ // element — a count they could not act on. Same computed-then-
1053
+ // discarded shape as the cross-browser handler above. (2026-07-29)
1054
+ issues: (result.issues ?? []).map((i) => ({
1055
+ type: i.type,
1056
+ severity: i.severity,
1057
+ description: i.description,
1058
+ affectedViewports: i.affectedViewports,
1059
+ ...(i.breakpointRange ? { breakpointRange: i.breakpointRange } : {}),
1060
+ })),
1061
+ ...(result.problematicViewports?.length ? { problematicViewports: result.problematicViewports } : {}),
1062
+ viewports: result.screenshots.map((s) => ({
1063
+ name: s.viewport
1064
+ ?? s.name,
1065
+ path: s.screenshotPath,
1066
+ })),
1018
1067
  viewportsCount: result.screenshots.length,
1019
1068
  }, null, 2),
1020
1069
  },