mcp-web-validator 1.3.50 → 1.3.53

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.
Files changed (175) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/README.md +66 -4
  3. package/dist/audit-history.d.ts +9 -0
  4. package/dist/audit-history.js +27 -0
  5. package/dist/audit-history.js.map +1 -1
  6. package/dist/index.js +2535 -30
  7. package/dist/index.js.map +1 -1
  8. package/dist/mcp-bounds.d.ts +11 -0
  9. package/dist/mcp-bounds.js +68 -0
  10. package/dist/mcp-bounds.js.map +1 -0
  11. package/dist/modules/browser-ux/lighthouse-lab-probe.d.ts +21 -0
  12. package/dist/modules/browser-ux/lighthouse-lab-probe.js +190 -0
  13. package/dist/modules/browser-ux/lighthouse-lab-probe.js.map +1 -0
  14. package/dist/modules/browser-ux/lighthouse-lab.d.ts +61 -0
  15. package/dist/modules/browser-ux/lighthouse-lab.js +98 -0
  16. package/dist/modules/browser-ux/lighthouse-lab.js.map +1 -0
  17. package/dist/modules/browser-ux/media-diagnostics.d.ts +41 -0
  18. package/dist/modules/browser-ux/media-diagnostics.js +183 -0
  19. package/dist/modules/browser-ux/media-diagnostics.js.map +1 -0
  20. package/dist/modules/browser-ux/raw-rendered-diff.d.ts +70 -0
  21. package/dist/modules/browser-ux/raw-rendered-diff.js +262 -0
  22. package/dist/modules/browser-ux/raw-rendered-diff.js.map +1 -0
  23. package/dist/modules/browser-ux/raw-rendered-probe.d.ts +17 -0
  24. package/dist/modules/browser-ux/raw-rendered-probe.js +163 -0
  25. package/dist/modules/browser-ux/raw-rendered-probe.js.map +1 -0
  26. package/dist/modules/browser-ux/resource-failures-probe.d.ts +11 -0
  27. package/dist/modules/browser-ux/resource-failures-probe.js +231 -0
  28. package/dist/modules/browser-ux/resource-failures-probe.js.map +1 -0
  29. package/dist/modules/browser-ux/resource-failures.d.ts +79 -0
  30. package/dist/modules/browser-ux/resource-failures.js +178 -0
  31. package/dist/modules/browser-ux/resource-failures.js.map +1 -0
  32. package/dist/modules/browser-ux/viewport-parity-probe.d.ts +5 -0
  33. package/dist/modules/browser-ux/viewport-parity-probe.js +307 -0
  34. package/dist/modules/browser-ux/viewport-parity-probe.js.map +1 -0
  35. package/dist/modules/browser-ux/viewport-parity.d.ts +112 -0
  36. package/dist/modules/browser-ux/viewport-parity.js +224 -0
  37. package/dist/modules/browser-ux/viewport-parity.js.map +1 -0
  38. package/dist/modules/browser-ux/wcag-interactions.d.ts +95 -0
  39. package/dist/modules/browser-ux/wcag-interactions.js +360 -0
  40. package/dist/modules/browser-ux/wcag-interactions.js.map +1 -0
  41. package/dist/modules/change-regression/availability-history-store.d.ts +18 -0
  42. package/dist/modules/change-regression/availability-history-store.js +168 -0
  43. package/dist/modules/change-regression/availability-history-store.js.map +1 -0
  44. package/dist/modules/change-regression/crawler-log-correlation.d.ts +111 -0
  45. package/dist/modules/change-regression/crawler-log-correlation.js +374 -0
  46. package/dist/modules/change-regression/crawler-log-correlation.js.map +1 -0
  47. package/dist/modules/change-regression/google-common-crawler-ip.d.ts +15 -0
  48. package/dist/modules/change-regression/google-common-crawler-ip.js +129 -0
  49. package/dist/modules/change-regression/google-common-crawler-ip.js.map +1 -0
  50. package/dist/modules/change-regression/historical-comparisons.d.ts +120 -0
  51. package/dist/modules/change-regression/historical-comparisons.js +330 -0
  52. package/dist/modules/change-regression/historical-comparisons.js.map +1 -0
  53. package/dist/modules/change-regression/production-change-comparison.d.ts +68 -0
  54. package/dist/modules/change-regression/production-change-comparison.js +214 -0
  55. package/dist/modules/change-regression/production-change-comparison.js.map +1 -0
  56. package/dist/modules/change-regression/regression-alerts.d.ts +73 -0
  57. package/dist/modules/change-regression/regression-alerts.js +183 -0
  58. package/dist/modules/change-regression/regression-alerts.js.map +1 -0
  59. package/dist/modules/change-regression/strict-observation-time.d.ts +7 -0
  60. package/dist/modules/change-regression/strict-observation-time.js +31 -0
  61. package/dist/modules/change-regression/strict-observation-time.js.map +1 -0
  62. package/dist/modules/content-schema/citation-methodology-consistency.d.ts +108 -0
  63. package/dist/modules/content-schema/citation-methodology-consistency.js +360 -0
  64. package/dist/modules/content-schema/citation-methodology-consistency.js.map +1 -0
  65. package/dist/modules/content-schema/competitor-intent-comparison.d.ts +74 -0
  66. package/dist/modules/content-schema/competitor-intent-comparison.js +185 -0
  67. package/dist/modules/content-schema/competitor-intent-comparison.js.map +1 -0
  68. package/dist/modules/content-schema/empty-boilerplate-content.d.ts +36 -0
  69. package/dist/modules/content-schema/empty-boilerplate-content.js +225 -0
  70. package/dist/modules/content-schema/empty-boilerplate-content.js.map +1 -0
  71. package/dist/modules/content-schema/extract-citation-methodology.d.ts +6 -0
  72. package/dist/modules/content-schema/extract-citation-methodology.js +201 -0
  73. package/dist/modules/content-schema/extract-citation-methodology.js.map +1 -0
  74. package/dist/modules/content-schema/extract-competitor-intent.d.ts +2 -0
  75. package/dist/modules/content-schema/extract-competitor-intent.js +140 -0
  76. package/dist/modules/content-schema/extract-competitor-intent.js.map +1 -0
  77. package/dist/modules/content-schema/extract-main-content.d.ts +6 -0
  78. package/dist/modules/content-schema/extract-main-content.js +33 -0
  79. package/dist/modules/content-schema/extract-main-content.js.map +1 -0
  80. package/dist/modules/content-schema/extract-metadata-consistency.d.ts +3 -0
  81. package/dist/modules/content-schema/extract-metadata-consistency.js +62 -0
  82. package/dist/modules/content-schema/extract-metadata-consistency.js.map +1 -0
  83. package/dist/modules/content-schema/extract-product-claims.d.ts +3 -0
  84. package/dist/modules/content-schema/extract-product-claims.js +58 -0
  85. package/dist/modules/content-schema/extract-product-claims.js.map +1 -0
  86. package/dist/modules/content-schema/extract-structured-data.d.ts +3 -0
  87. package/dist/modules/content-schema/extract-structured-data.js +25 -0
  88. package/dist/modules/content-schema/extract-structured-data.js.map +1 -0
  89. package/dist/modules/content-schema/metadata-consistency.d.ts +66 -0
  90. package/dist/modules/content-schema/metadata-consistency.js +282 -0
  91. package/dist/modules/content-schema/metadata-consistency.js.map +1 -0
  92. package/dist/modules/content-schema/product-claims.d.ts +73 -0
  93. package/dist/modules/content-schema/product-claims.js +195 -0
  94. package/dist/modules/content-schema/product-claims.js.map +1 -0
  95. package/dist/modules/content-schema/same-language-duplicates.d.ts +52 -0
  96. package/dist/modules/content-schema/same-language-duplicates.js +158 -0
  97. package/dist/modules/content-schema/same-language-duplicates.js.map +1 -0
  98. package/dist/modules/content-schema/structured-data-validation.d.ts +37 -0
  99. package/dist/modules/content-schema/structured-data-validation.js +385 -0
  100. package/dist/modules/content-schema/structured-data-validation.js.map +1 -0
  101. package/dist/modules/external-metrics/crux-field-probe.d.ts +10 -0
  102. package/dist/modules/external-metrics/crux-field-probe.js +113 -0
  103. package/dist/modules/external-metrics/crux-field-probe.js.map +1 -0
  104. package/dist/modules/external-metrics/crux-field.d.ts +61 -0
  105. package/dist/modules/external-metrics/crux-field.js +231 -0
  106. package/dist/modules/external-metrics/crux-field.js.map +1 -0
  107. package/dist/modules/http-crawl/availability-observations.d.ts +68 -0
  108. package/dist/modules/http-crawl/availability-observations.js +206 -0
  109. package/dist/modules/http-crawl/availability-observations.js.map +1 -0
  110. package/dist/modules/http-crawl/availability-probe.d.ts +8 -0
  111. package/dist/modules/http-crawl/availability-probe.js +46 -0
  112. package/dist/modules/http-crawl/availability-probe.js.map +1 -0
  113. package/dist/modules/http-crawl/crawler-access-probe.d.ts +6 -0
  114. package/dist/modules/http-crawl/crawler-access-probe.js +79 -0
  115. package/dist/modules/http-crawl/crawler-access-probe.js.map +1 -0
  116. package/dist/modules/http-crawl/crawler-access.d.ts +75 -0
  117. package/dist/modules/http-crawl/crawler-access.js +404 -0
  118. package/dist/modules/http-crawl/crawler-access.js.map +1 -0
  119. package/dist/modules/http-crawl/http-delivery-probe.d.ts +3 -0
  120. package/dist/modules/http-crawl/http-delivery-probe.js +44 -0
  121. package/dist/modules/http-crawl/http-delivery-probe.js.map +1 -0
  122. package/dist/modules/http-crawl/http-delivery.d.ts +64 -0
  123. package/dist/modules/http-crawl/http-delivery.js +269 -0
  124. package/dist/modules/http-crawl/http-delivery.js.map +1 -0
  125. package/dist/modules/http-crawl/https-security.d.ts +84 -0
  126. package/dist/modules/http-crawl/https-security.js +441 -0
  127. package/dist/modules/http-crawl/https-security.js.map +1 -0
  128. package/dist/modules/http-crawl/non-html-directives.d.ts +74 -0
  129. package/dist/modules/http-crawl/non-html-directives.js +353 -0
  130. package/dist/modules/http-crawl/non-html-directives.js.map +1 -0
  131. package/dist/modules/http-crawl/redirect-canonical-chains.d.ts +80 -0
  132. package/dist/modules/http-crawl/redirect-canonical-chains.js +459 -0
  133. package/dist/modules/http-crawl/redirect-canonical-chains.js.map +1 -0
  134. package/dist/modules/http-crawl/redirect-canonical-probe.d.ts +6 -0
  135. package/dist/modules/http-crawl/redirect-canonical-probe.js +83 -0
  136. package/dist/modules/http-crawl/redirect-canonical-probe.js.map +1 -0
  137. package/dist/modules/http-crawl/sitemap-inventory-probe.d.ts +8 -0
  138. package/dist/modules/http-crawl/sitemap-inventory-probe.js +155 -0
  139. package/dist/modules/http-crawl/sitemap-inventory-probe.js.map +1 -0
  140. package/dist/modules/http-crawl/sitemap-inventory.d.ts +107 -0
  141. package/dist/modules/http-crawl/sitemap-inventory.js +557 -0
  142. package/dist/modules/http-crawl/sitemap-inventory.js.map +1 -0
  143. package/dist/modules/http-crawl/url-variants.d.ts +86 -0
  144. package/dist/modules/http-crawl/url-variants.js +379 -0
  145. package/dist/modules/http-crawl/url-variants.js.map +1 -0
  146. package/dist/modules/site-architecture/extract-internal-links.d.ts +3 -0
  147. package/dist/modules/site-architecture/extract-internal-links.js +88 -0
  148. package/dist/modules/site-architecture/extract-internal-links.js.map +1 -0
  149. package/dist/modules/site-architecture/extract-multilingual-page.d.ts +2 -0
  150. package/dist/modules/site-architecture/extract-multilingual-page.js +29 -0
  151. package/dist/modules/site-architecture/extract-multilingual-page.js.map +1 -0
  152. package/dist/modules/site-architecture/internal-link-graph-probe.d.ts +7 -0
  153. package/dist/modules/site-architecture/internal-link-graph-probe.js +116 -0
  154. package/dist/modules/site-architecture/internal-link-graph-probe.js.map +1 -0
  155. package/dist/modules/site-architecture/internal-link-graph.d.ts +113 -0
  156. package/dist/modules/site-architecture/internal-link-graph.js +414 -0
  157. package/dist/modules/site-architecture/internal-link-graph.js.map +1 -0
  158. package/dist/modules/site-architecture/internal-link-quality.d.ts +77 -0
  159. package/dist/modules/site-architecture/internal-link-quality.js +260 -0
  160. package/dist/modules/site-architecture/internal-link-quality.js.map +1 -0
  161. package/dist/modules/site-architecture/multilingual-clusters.d.ts +82 -0
  162. package/dist/modules/site-architecture/multilingual-clusters.js +363 -0
  163. package/dist/modules/site-architecture/multilingual-clusters.js.map +1 -0
  164. package/dist/network.d.ts +4 -0
  165. package/dist/network.js +18 -2
  166. package/dist/network.js.map +1 -1
  167. package/dist/presentation.d.ts +53 -0
  168. package/dist/presentation.js +526 -0
  169. package/dist/presentation.js.map +1 -1
  170. package/dist/screenshot.d.ts +2 -1
  171. package/dist/screenshot.js +4 -2
  172. package/dist/screenshot.js.map +1 -1
  173. package/dist/seo-auditor.js +16 -6
  174. package/dist/seo-auditor.js.map +1 -1
  175. package/package.json +7 -4
@@ -82,6 +82,153 @@ function toolContent(options) {
82
82
  sections.push(`**Next step:** ${collapseWhitespace(options.nextStep, 400)}`);
83
83
  return sections.join("\n\n");
84
84
  }
85
+ /** Human-oriented triage for the same bounded, structured delivery evidence. */
86
+ export function httpDeliveryContent(review) {
87
+ const codes = new Set(review.findings.map((finding) => finding.code));
88
+ const nextStep = codes.has("cloudflare_challenge") || codes.has("http_forbidden")
89
+ ? "Compare the affected path and time with Cloudflare WAF/challenge events and origin access logs; separately verify the permitted public response without bypassing protections."
90
+ : codes.has("http_rate_limited")
91
+ ? "Review observed 429 responses against authorized rate-limit rules and Retry-After, then repeat a bounded check after any approved change."
92
+ : codes.has("http_server_error")
93
+ ? "Correlate observed 5xx responses with origin/edge error logs and deployment timing, then repeat a bounded delivery check."
94
+ : !review.redirect_chain_complete
95
+ ? "Review the unobserved redirect destination with a bounded public same-origin check; an incomplete chain cannot verify final delivery."
96
+ : "Keep this point-in-time response as a baseline and compare it with independent availability and crawler evidence.";
97
+ return toolContent({
98
+ title: "HTTP delivery diagnostics",
99
+ status: review.findings.some(f => f.severity === "warning") ? "attention needed" : "review suggested",
100
+ outcome: `${review.hops_observed} observed response(s), ${review.redirects_observed} followed redirect(s), ` +
101
+ `${review.errors_observed} HTTP error response(s), ${review.challenges_observed} confirmed Cloudflare challenge signal(s). ` +
102
+ "These observations do not establish Googlebot identity or historical availability.",
103
+ actions: review.findings.map(f => ({
104
+ priority: f.severity === "warning" ? 1 : 2,
105
+ location: `Hop #${f.hop}`,
106
+ message: f.message,
107
+ })),
108
+ nextStep,
109
+ });
110
+ }
111
+ export function browserResourceContent(review) {
112
+ const nextStep = review.critical_resource_failures > 0
113
+ ? "Inspect the failing document/script/stylesheet categories in independent browser/network logs and confirm user-visible effects; separate site HTTP errors from tool policy blocks before changing production."
114
+ : review.transport_failures > 0 || review.api_failures > 0
115
+ ? "Correlate the sampled transport/API failures with authorized network observations, then retest the affected request category."
116
+ : review.tool_blocked_requests > 0 || review.pending_requests > 0
117
+ ? "Treat policy-blocked and pending requests as missing evidence, not website failures; compare with an independently authorized sample if needed."
118
+ : "Keep this bounded resource observation as a baseline and repeat after a relevant website change.";
119
+ return toolContent({
120
+ title: "Browser resource loading",
121
+ status: review.findings.some(f => f.severity === "warning")
122
+ ? "attention needed" : "review suggested",
123
+ outcome: `${review.requests_recorded} sampled resource request(s): ${review.http_4xx} HTTP 4xx, ` +
124
+ `${review.http_5xx} HTTP 5xx, ${review.transport_failures} transport failures, ` +
125
+ `${review.tool_blocked_requests} validator-policy blocks and ${review.pending_requests} pending. ` +
126
+ "Policy blocks and incomplete requests are not confirmed site defects.",
127
+ actions: review.findings.map(f => ({
128
+ priority: f.severity === "warning" ? 1 : 2,
129
+ message: f.message,
130
+ })),
131
+ nextStep,
132
+ });
133
+ }
134
+ export function sitemapInventoryContent(review) {
135
+ const nextStep = review.known_indexability_conflicts > 0
136
+ ? "Review numbered entries with independently observed 404/410, noindex, disallow or canonical conflicts; align submitted sitemap URLs with intentionally indexable pages, then revalidate."
137
+ : review.lastmod_invalid_count > 0 || review.lastmod_future_count > 0
138
+ ? "Correct invalid or future sitemap lastmod dates using verified publication evidence, then revalidate XML before submission."
139
+ : review.missing_child_documents > 0
140
+ ? "Supply or inspect the referenced child sitemap documents before drawing inventory-coverage conclusions."
141
+ : "Compare the sampled sitemap inventory against independently discovered canonical pages; an XML listing alone does not prove Google indexing.";
142
+ return toolContent({
143
+ title: "Sitemap inventory",
144
+ status: review.findings.some(f => f.severity === "warning")
145
+ ? "attention needed" : "review suggested",
146
+ outcome: `${review.documents_observed} document(s) with ${review.distinct_page_urls} distinct page URL(s), ` +
147
+ `${review.missing_child_documents} missing child document(s), ${review.duplicate_url_entries} duplicates, ` +
148
+ `${review.lastmod_invalid_count} invalid lastmod and ${review.known_indexability_conflicts} independently observed indexability conflicts. ` +
149
+ (review.inventory_complete ? "The supplied document inventory is complete by its evidence." :
150
+ "Collection completeness is unknown or partial."),
151
+ actions: review.findings.map(f => ({
152
+ priority: f.severity === "warning" ? 1 : 2,
153
+ location: `Sitemap #${f.document}${f.entry === undefined ? "" : `, entry #${f.entry}`}`,
154
+ message: f.message,
155
+ })),
156
+ nextStep,
157
+ });
158
+ }
159
+ export function crawlerAccessContent(review) {
160
+ const nextStep = review.crawler_disallowed_rows > 0
161
+ ? "Compare the numbered page/profile rows with intended robots.txt rules. Crawl disallow and noindex are different; confirm both directives before changing crawl policy."
162
+ : review.noindex_declared_rows > 0
163
+ ? "Confirm that the sampled pages are intended to be excluded, then review the declared meta and X-Robots-Tag directives for each affected crawler profile."
164
+ : review.unknown_access_rows > 0 || review.unknown_indexing_rows > 0
165
+ ? "Obtain authorized robots.txt status and response indexing evidence for unresolved rows; unknown does not mean allowed or indexed."
166
+ : "Use independent search-engine evidence to check actual crawl/index status; these observations alone do not establish indexing.";
167
+ return toolContent({
168
+ title: "Crawler access matrix",
169
+ status: review.findings.some(f => f.severity === "warning")
170
+ ? "attention needed" : "review suggested",
171
+ outcome: `${review.rows_checked} page/profile comparisons: ${review.crawler_disallowed_rows} crawl disallow, ` +
172
+ `${review.noindex_declared_rows} declared noindex, ${review.unknown_access_rows} unknown access, ` +
173
+ `${review.unknown_indexing_rows} unknown indexing signals. These are declarations, not verified search-engine indexing verdicts.`,
174
+ actions: review.findings.map(f => ({
175
+ priority: f.severity === "warning" ? 1 : 2,
176
+ location: `Page #${f.page} · ${f.profile}`,
177
+ message: f.message,
178
+ })),
179
+ nextStep,
180
+ });
181
+ }
182
+ export function redirectCanonicalContent(review) {
183
+ const nextStep = review.nonindexable_destination
184
+ ? "Inspect the final observed HTTP status, robots and canonical declarations; repair only confirmed unintentional destination blocks, then recheck the chain."
185
+ : review.loop_detected || !review.chain_complete
186
+ ? "Verify the unresolved or looping redirect hops with bounded same-origin observations before concluding where users or crawlers land."
187
+ : review.conflicting_canonical_hops > 0 || review.canonical_cycles > 0
188
+ ? "Compare the conflicting canonical declarations on numbered hops and resolve unintended conflicts before requesting reindexing."
189
+ : review.expected_destination_match === false
190
+ ? "Check the caller's expected destination against the completed redirect chain and update only the incorrect redirect policy."
191
+ : "Keep the observed redirect chain as evidence and separately check actual Google-selected canonicals and indexing in an authorized source.";
192
+ return toolContent({
193
+ title: "Redirect and canonical chain",
194
+ status: review.findings.some(f => f.severity === "warning")
195
+ ? "attention needed" : "review suggested",
196
+ outcome: `${review.hops_observed} observed response(s), ${review.redirects_observed} redirect(s), ` +
197
+ `${review.conflicting_canonical_hops} conflicting canonical hop(s), ${review.canonical_cycles} canonical cycle(s). ` +
198
+ (review.chain_complete ? "Sampled chain complete. " : "Sampled chain incomplete. ") +
199
+ "Actual Google canonical selection and indexing are not verified.",
200
+ actions: review.findings.map(f => ({
201
+ priority: f.severity === "warning" ? 1 : 2,
202
+ location: `Hop #${f.hop}`,
203
+ message: f.message,
204
+ })),
205
+ nextStep,
206
+ });
207
+ }
208
+ export function availabilityReviewContent(review) {
209
+ const nextStep = review.observed_http_5xx > 0 || review.observed_timeouts > 0 ||
210
+ review.observed_transport_failures > 0
211
+ ? "Compare the sampled failures with authorized server/edge logs and deployment times, then repeat bounded checks across equivalent observation windows."
212
+ : review.observed_rate_limits > 0 || review.observed_challenges > 0
213
+ ? "Review the affected rate-limit or challenge configuration against intended visitors and crawler policy, then repeat an authorized bounded check."
214
+ : review.findings.some(f => f.code === "large_sampling_gap" || f.code === "sparse_samples")
215
+ ? "Treat the gaps between observations as unknown; collect comparable samples before inferring availability trends."
216
+ : "Use this bounded response sample as a baseline; continuous uptime and Googlebot availability require separate evidence.";
217
+ return toolContent({
218
+ title: "Availability observations",
219
+ status: review.findings.some(f => f.severity === "warning")
220
+ ? "attention needed" : "review suggested",
221
+ outcome: `${review.observed_successes}/${review.observations_count} HTTP 2xx observations ` +
222
+ `(${review.observed_success_percent}% of supplied samples), ${review.observed_http_5xx} HTTP 5xx, ` +
223
+ `${review.observed_rate_limits} rate limited, ${review.observed_transport_failures} transport failures and ` +
224
+ `${review.http_status_changes} status transition(s). Sample ratios are not uptime measurements.`,
225
+ actions: review.findings.map(f => ({
226
+ priority: f.severity === "warning" ? 1 : 2,
227
+ message: f.message,
228
+ })),
229
+ nextStep,
230
+ });
231
+ }
85
232
  export function htmlValidationContent(messages, source, totalMessages = messages.length, counts) {
86
233
  const errorCount = counts?.error
87
234
  ?? messages.filter((message) => getW3CMessageSeverity(message) === "error").length;
@@ -308,6 +455,385 @@ export function linkCheckContent(links, baseUrl) {
308
455
  : "Update failed destinations and review redirects, then rerun the link check.",
309
456
  });
310
457
  }
458
+ export function contentDuplicateContent(analysis) {
459
+ const matches = analysis.pairs;
460
+ const coverage = `${analysis.eligible_pages}/${analysis.sampled_pages} sampled pages had usable main content and a known language`;
461
+ return toolContent({
462
+ title: "Same-language main-content comparison",
463
+ status: matches.length ? "attention needed" : analysis.coverage_limited ? "partial" : "clean",
464
+ outcome: analysis.total_pairs
465
+ ? `${countLabel(analysis.total_pairs, "duplicate-content pair")} found in the sampled pages; ${coverage}.`
466
+ : `No duplicate main-content pairs found; ${coverage}. This is not evidence of site-wide uniqueness.`,
467
+ actions: matches.map((pair) => ({
468
+ priority: pair.kind === "exact" ? 1 : 2,
469
+ location: `${pair.first_url} vs ${pair.second_url}`,
470
+ message: `${pair.kind === "exact" ? "Exact" : "Near"} ${pair.language} main-text match (${pair.similarity_percent}%, ${pair.confidence}).`,
471
+ })),
472
+ nextStep: analysis.pairs_truncated
473
+ ? "More matches exist than the result cap; review these pairs and repeat on a narrower page sample."
474
+ : "Review matched pages manually; this static-text comparison cannot infer search-engine canonicalization or semantic equivalence.",
475
+ });
476
+ }
477
+ export function contentQualityContent(analysis) {
478
+ return toolContent({
479
+ title: "Sampled main-content quality review",
480
+ status: analysis.total_findings ? "attention needed" : analysis.coverage_limited ? "partial" : "clean",
481
+ outcome: analysis.total_findings
482
+ ? `${countLabel(analysis.total_findings, "potential content-quality finding")} across ${analysis.eligible_pages}/${analysis.sampled_pages} sampled pages.`
483
+ : `No checked content-quality signals were found across ${analysis.eligible_pages}/${analysis.sampled_pages} sampled pages. This is not a usefulness or site-wide verdict.`,
484
+ actions: analysis.findings.map((finding) => ({
485
+ priority: finding.severity === "warning" ? 1 : 2,
486
+ location: finding.example_urls.join(", "),
487
+ message: `${finding.code}: ${finding.message}`,
488
+ })),
489
+ nextStep: analysis.findings_truncated
490
+ ? "More review findings exist than the preview cap. Inspect the affected page families and narrow the sample."
491
+ : "Inspect flagged pages in a browser, verify their purpose and unique value, then rerun the bounded comparison.",
492
+ });
493
+ }
494
+ export function productClaimContent(analysis) {
495
+ return toolContent({
496
+ title: "Landing-page promises versus registered MCP tools",
497
+ status: analysis.contradicted_claims > 0 ? "attention needed"
498
+ : analysis.coverage_limited ? "partial" : "clean",
499
+ outcome: analysis.catalog_available
500
+ ? analysis.checked_claims + " explicit or bounded claims checked; " +
501
+ analysis.consistent_claims + " consistent with the registered " + analysis.surface +
502
+ " tool catalog, " + analysis.contradicted_claims + " contradicted and " +
503
+ analysis.unverified_claims + " unverified."
504
+ : "The MCP tool registry was unavailable, so no claim is verified.",
505
+ actions: analysis.findings.map((finding) => ({
506
+ priority: finding.severity === "warning" ? 1 : 2,
507
+ location: finding.claim,
508
+ message: finding.message,
509
+ })),
510
+ nextStep: "Confirm any discrepancies against current tools/list output and exercise the affected tool. Registry exposure is not proof of successful behavior.",
511
+ });
512
+ }
513
+ export function provenanceContent(analysis) {
514
+ return toolContent({
515
+ title: "Citation, dataset, freshness and methodology evidence",
516
+ status: analysis.conflicting_declarations > 0 ? "attention needed"
517
+ : analysis.coverage_limited ? "partial" : "clean",
518
+ outcome: `${analysis.consistent_declarations} declarations agree with supplied or on-page evidence, ` +
519
+ `${analysis.conflicting_declarations} have observed inconsistencies, ` +
520
+ `${analysis.unverified_declarations} remain unverified ` +
521
+ `across ${analysis.pages_eligible}/${analysis.pages_sampled} supplied pages.`,
522
+ actions: analysis.findings.map((finding) => ({
523
+ priority: finding.severity === "warning" ? 1 : 2,
524
+ location: finding.page_url,
525
+ message: `${finding.code}: ${finding.message}`,
526
+ })),
527
+ nextStep: analysis.findings_truncated
528
+ ? "More evidence findings exist than the result cap; inspect sources and compare smaller authorized page batches."
529
+ : "Verify the underlying sources, dataset release and methodology independently before asserting factual accuracy or current freshness.",
530
+ });
531
+ }
532
+ export function intentComparisonContent(analysis) {
533
+ return toolContent({
534
+ title: "Competitor search-intent evidence comparison",
535
+ status: analysis.findings.some((finding) => finding.severity === "warning")
536
+ ? "attention needed" : "partial",
537
+ outcome: `${analysis.competitors_eligible}/${analysis.competitors_submitted} competitor pages compared from supplied static HTML` +
538
+ (analysis.expected_intent ? `; selected intent: ${analysis.expected_intent}` : "; no explicit intent selected") +
539
+ ". This does not predict Google rankings or semantic relevance.",
540
+ actions: analysis.findings.map((finding) => ({
541
+ priority: finding.severity === "warning" ? 1 : 2,
542
+ message: `${finding.code}: ${finding.message}`,
543
+ })),
544
+ nextStep: "Review the indicated headings and static structured signals, check page purpose manually, and use authorized search or analytics data before drawing competitive SEO conclusions.",
545
+ });
546
+ }
547
+ export function supportedSchemaContent(analysis) {
548
+ return toolContent({
549
+ title: "Supported JSON-LD structural review",
550
+ status: analysis.errors > 0 || analysis.warnings > 0 ? "attention needed" : "partial",
551
+ outcome: `${analysis.supported_nodes} recognized node profiles across ${analysis.blocks_checked}/${analysis.blocks_seen} inspected JSON-LD blocks; ` +
552
+ `${analysis.errors} syntax/document errors, ${analysis.warnings} review warnings, ${analysis.unverified} unresolved signals. ` +
553
+ "This does not determine rich-result eligibility.",
554
+ actions: analysis.findings.map((finding) => ({
555
+ priority: finding.severity === "error" ? 0 : finding.severity === "warning" ? 1 : 2,
556
+ location: `JSON-LD block ${finding.block}, node ${finding.node}`,
557
+ message: `${finding.code}: ${finding.message}`,
558
+ })),
559
+ nextStep: analysis.findings_truncated
560
+ ? "Review the first prioritized findings and rerun a smaller supported JSON-LD sample for the rest."
561
+ : "Review structural findings, then use the official Rich Results Test and inspect page content for actual feature eligibility.",
562
+ });
563
+ }
564
+ export function internalLinkContent(analysis) {
565
+ return toolContent({
566
+ title: "Sampled internal links and anchor evidence",
567
+ status: analysis.missing_anchor_labels > 0 ? "attention needed" : "partial",
568
+ outcome: `${analysis.internal_links_observed} contextual same-origin links across ${analysis.pages_sampled} supplied pages; ` +
569
+ `${analysis.linked_sample_targets} sampled targets referenced, ${analysis.missing_anchor_labels} without observed accessible names, ` +
570
+ `${analysis.generic_anchor_links} generic anchors, ${analysis.unmatched_internal_links} unsupplied target links.`,
571
+ actions: analysis.findings.map((finding) => ({
572
+ priority: finding.severity === "warning" ? 1 : 2,
573
+ location: `Supplied page ${finding.source_page}`,
574
+ message: `${finding.code}: ${finding.message}`,
575
+ })),
576
+ nextStep: "Review contextual anchor labels against actual page purpose; supply more authorized target pages to inspect the sample. Unvisited links have not been tested, and lexical overlap is not a ranking signal.",
577
+ });
578
+ }
579
+ export function metadataConsistencyContent(analysis) {
580
+ return toolContent({
581
+ title: "Sampled metadata consistency review",
582
+ status: analysis.conflicting_declaration_fields > 0 ? "attention needed" : "partial",
583
+ outcome: `${analysis.pages_sampled} supplied pages: ${analysis.conflicting_declaration_fields} conflicting field groups, ` +
584
+ `${analysis.duplicate_declaration_fields} repeated equivalent fields, ` +
585
+ `${analysis.cross_field_review_leads} cross-field review leads, ` +
586
+ `${analysis.duplicate_title_groups + analysis.duplicate_description_groups} cross-page metadata groups.`,
587
+ actions: analysis.findings.map((finding) => ({
588
+ priority: finding.severity === "warning" ? 1 : 2,
589
+ location: `Supplied page ${finding.source_page} - ${finding.field}`,
590
+ message: `${finding.code}: ${finding.message}`,
591
+ })),
592
+ nextStep: "Review on-page declarations in context. Identical titles and social-metadata variations may be intentional; use authorized crawling and Search Console evidence before attributing search performance.",
593
+ });
594
+ }
595
+ export function wcagInteractionsContent(review) {
596
+ const warnings = review.findings.filter((finding) => finding.severity === "warning").length;
597
+ return toolContent({
598
+ title: "Browser keyboard and WCAG evidence",
599
+ status: warnings ? "attention needed" : "partial",
600
+ outcome: `In script-disabled, offline Chromium, ${review.controls_inspected} of ${review.controls_seen} ` +
601
+ `controls were sampled at ${review.viewport_width} × ${review.viewport_height}; ` +
602
+ `${review.tab_steps} Tab key steps covered ${review.unique_tab_targets} distinct targets. ` +
603
+ `${review.visible_controls_without_name} accessible-name review leads, ` +
604
+ `${review.focus_indicator_review_leads} possible focus-indicator gaps, ` +
605
+ `${review.native_summaries_toggled}/${review.native_summaries_tested} native summaries toggled with Enter.`,
606
+ actions: review.findings.map((finding) => ({
607
+ priority: finding.severity === "warning" ? 1 : 2,
608
+ location: `Rendered control ${finding.control} · ${finding.evidence}`,
609
+ message: `${finding.code}: ${finding.message}`,
610
+ })),
611
+ nextStep: "Recheck the flagged focus/name signals in a fully styled, authorized website with JavaScript enabled and a screen reader. This inert sample is not an accessibility audit or WCAG 2.2 compliance determination.",
612
+ });
613
+ }
614
+ export function mediaDiagnosticsContent(review) {
615
+ const warningCount = review.findings.filter((finding) => finding.severity === "warning").length;
616
+ return toolContent({
617
+ title: "Static media markup diagnostics",
618
+ status: warningCount ? "attention needed" : "partial",
619
+ outcome: `${review.media_elements_checked} of ${review.images_observed + review.pictures_observed +
620
+ review.videos_observed} sampled media elements reviewed: ${review.images_observed} images, ` +
621
+ `${review.videos_observed} videos and ${review.pictures_observed} pictures. ` +
622
+ `${review.total_findings} review findings; media loading and playback not checked.`,
623
+ actions: review.findings.map((finding) => ({
624
+ priority: finding.severity === "warning" ? 1 : 2,
625
+ location: `Static ${finding.media_type} element ${finding.element}`,
626
+ message: `${finding.code}: ${finding.message}`,
627
+ })),
628
+ nextStep: "Inspect the flagged elements and verify their rendered behavior separately. Static metadata cannot prove actual resource availability, accessibility compliance, loading speed or video caption accuracy.",
629
+ });
630
+ }
631
+ export function regressionPreviewContent(preview) {
632
+ return toolContent({
633
+ title: "Manual dry-run regression alert preview",
634
+ status: preview.candidate_count ? "attention needed" : "partial",
635
+ outcome: `${preview.candidate_count} unsent alert candidate(s), ` +
636
+ `${preview.review_only_count} coverage/discovery review observation(s) and ` +
637
+ `${preview.suppressed_count} suppressed defect rule(s) for the latest comparison of ` +
638
+ `${preview.latest_completed_pairs} completed matching page pairs. ` +
639
+ "Notifications sent: 0. No schedule, network or delivery was enabled.",
640
+ actions: preview.rules
641
+ .filter((rule) => rule.review_required)
642
+ .map((rule) => ({
643
+ priority: rule.decision === "preview_candidate" ? 1 : 2,
644
+ location: "Manual review only",
645
+ message: `${rule.rule}: ${rule.message}`,
646
+ })),
647
+ nextStep: "Inspect actual saved audit coverage and comparable page observations manually before any action. This is a simulation only; no alerts are sent or monitored automatically. A clean preview does not establish sitewide health or Google outcomes.",
648
+ });
649
+ }
650
+ export function historicalComparisonContent(review) {
651
+ const warnings = review.findings.filter((finding) => finding.severity === "warning").length;
652
+ return toolContent({
653
+ title: "Saved site-audit history trends",
654
+ status: warnings ? "attention needed" : "partial",
655
+ outcome: `${review.versions_compared} versions, ${review.comparisons_made} adjacent comparisons; ` +
656
+ `${review.comparable_transitions} comparable samples, ${review.partial_transitions} limited and ` +
657
+ `${review.not_comparable_transitions} nonoverlapping transitions. Across their matching checked pages, ` +
658
+ `${review.total_regressed_page_transitions} page regressions and ` +
659
+ `${review.total_improved_page_transitions} improvements were observed. ` +
660
+ `${review.complete_stable_cohort_pages} pages have fully checked evidence across all versions.`,
661
+ actions: review.findings.map((finding) => ({
662
+ priority: finding.severity === "warning" ? 1 : 2,
663
+ location: `Saved version ${finding.version}`,
664
+ message: `${finding.code}: ${finding.message}`,
665
+ })),
666
+ nextStep: "Review the per-version complete-cohort error/warning totals and changes, then collect comparable authorized audits where coverage is missing. Unobserved pages and unavailable validators cannot establish fixes, website-wide improvement, ranking changes or causality.",
667
+ });
668
+ }
669
+ export function productionChangeContent(review) {
670
+ const warnings = review.findings.filter((finding) => finding.severity === "warning").length;
671
+ const changed = review.html_fingerprint_changed === null
672
+ ? "Full HTML byte comparison unavailable."
673
+ : review.html_fingerprint_changed
674
+ ? "Supplied HTML bytes differ."
675
+ : "Supplied HTML bytes match.";
676
+ return toolContent({
677
+ title: "Production HTML baseline comparison",
678
+ status: review.status === "not_comparable" ? "partial" :
679
+ warnings ? "attention needed" : "partial",
680
+ outcome: `${review.status}: ${changed} ` +
681
+ (review.main_words_added === null || review.main_words_removed === null
682
+ ? "Comparable sampled main-text word changes are unavailable. "
683
+ : `${review.main_words_added} sampled main-text words added, ` +
684
+ `${review.main_words_removed} removed. `) +
685
+ "No production fetch, deployment or search-ranking attribution was performed.",
686
+ actions: review.findings.map((finding) => ({
687
+ priority: finding.severity === "warning" ? 1 : 2,
688
+ location: "Supplied baseline versus current HTML",
689
+ message: `${finding.code}: ${finding.message}`,
690
+ })),
691
+ nextStep: "Confirm capture timestamps and HTTP statuses against independent delivery evidence. Compare source deployments and crawler observations separately before attributing a production or Google visibility change.",
692
+ });
693
+ }
694
+ export function lighthouseLabContent(review) {
695
+ const score = review.performance_score_percent === null
696
+ ? "unavailable" : String(review.performance_score_percent) + "/100";
697
+ const metric = (value, unit = "ms") => value === null ? "unavailable" : String(value) + unit;
698
+ return toolContent({
699
+ title: "Isolated Lighthouse performance laboratory",
700
+ status: review.status === "failed" ? "partial" :
701
+ review.findings.some((finding) => finding.severity === "warning")
702
+ ? "attention needed" : "partial",
703
+ outcome: `${review.status}: Lighthouse ${review.form_factor} lab score ${score}; ` +
704
+ `FCP ${metric(review.metrics.fcp_ms)}, LCP ${metric(review.metrics.lcp_ms)}, ` +
705
+ `TBT ${metric(review.metrics.tbt_ms)}, Speed Index ${metric(review.metrics.speed_index_ms)}, ` +
706
+ `CLS ${metric(review.metrics.cls, "")}. ` +
707
+ `${review.requests_blocked} requests blocked by the offline security policy.`,
708
+ actions: review.findings.map((finding) => ({
709
+ priority: finding.severity === "warning" ? 1 : 2,
710
+ location: "One isolated static-HTML lab run",
711
+ message: `${finding.code}: ${finding.message}`,
712
+ })),
713
+ nextStep: "Repeat consistent Lighthouse runs for trends. This sandboxed static HTML audit did not load live production JavaScript, CSS, network assets or real-user CrUX field data; it cannot establish production Core Web Vitals, SEO rankings or visibility-cause conclusions.",
714
+ });
715
+ }
716
+ export function cruxFieldContent(review) {
717
+ const display = (value, unit = "ms") => value === null ? "unavailable" : String(value) + unit;
718
+ const warning = review.findings.some(x => x.severity === "warning");
719
+ return toolContent({
720
+ title: "Real-user CrUX Core Web Vitals",
721
+ status: warning ? "attention needed" : "partial",
722
+ outcome: `${review.source === "verified_crux_api" ? "Direct CrUX API" : "Caller-supplied CrUX"} ` +
723
+ `${review.mode} ${review.granularity} ${review.form_factor} field data: ` +
724
+ `CWV verdict ${review.core_web_vitals}; p75 LCP ${display(review.p75.largest_contentful_paint)}, ` +
725
+ `INP ${display(review.p75.interaction_to_next_paint)}, CLS ${display(review.p75.cumulative_layout_shift, "")}, ` +
726
+ `FCP ${display(review.p75.first_contentful_paint)}, ` +
727
+ `TTFB ${display(review.p75.experimental_time_to_first_byte)}. ` +
728
+ `${review.periods_available} source period(s), ${review.periods_returned} historical excerpts.`,
729
+ actions: review.findings.map(f => ({
730
+ priority: f.severity === "warning" ? 1 : 2,
731
+ location: "Aggregated real-user CrUX evidence",
732
+ message: `${f.code}: ${f.message}`,
733
+ })),
734
+ nextStep: "Interpret p75 metrics by page-versus-origin and device cohort, repeat after additional eligible collection periods and correlate with independent deployment records; rolling 28-day CrUX data do not prove a Google ranking or traffic cause.",
735
+ });
736
+ }
737
+ export function crawlerLogContent(review) {
738
+ const percent = (value) => value === null ? "unavailable" : String(value) + "%";
739
+ const delta = review.failure_rate_delta_percentage_points === null
740
+ ? "unavailable" : String(review.failure_rate_delta_percentage_points) + " percentage points";
741
+ const ip = review.googlebot_ip_evidence;
742
+ const ipEvidence = ip.status === "not_requested"
743
+ ? " Source-IP range check was not requested."
744
+ : ip.status === "unavailable"
745
+ ? " Official Google common-crawler IP ranges were unavailable; no source IP check was completed."
746
+ : ` Current Google common-crawler ranges matched ${ip.matched_current_ranges}/${ip.claimed_requests} claimed Googlebot requests; ${ip.outside_current_ranges} outside and ${ip.missing_or_invalid_ip} missing/invalid source IPs. ${ip.matched_after_problem_responses} matched-source requests had post-cutover 4xx/5xx.`;
747
+ return toolContent({
748
+ title: "Crawler access-log correlation with optional Googlebot IP evidence",
749
+ status: review.findings.some(f => f.severity === "warning") ? "attention needed" : "partial",
750
+ outcome: `${review.status}: ${review.matched_requests}/${review.source_records} source records matched ` +
751
+ `${review.important_urls_supplied} supplied important URL labels. ` +
752
+ `Observed before ${review.before.requests} requests (${percent(review.before.failure_rate_percent)} 4xx/5xx), ` +
753
+ `after ${review.after.requests} (${percent(review.after.failure_rate_percent)} 4xx/5xx); ` +
754
+ `failure-rate change ${delta}. ${review.invalid_records} unparsed/unsafe records.` + ipEvidence,
755
+ actions: review.findings.map(f => ({
756
+ priority: f.severity === "warning" ? 1 : 2,
757
+ location: f.url_index === undefined ? "Supplied sampled logs" : `Important URL #${f.url_index}`,
758
+ message: `${f.code}: ${f.message}`,
759
+ })),
760
+ nextStep: "Review access logs privately, confirm the log field contains actual visitor source IP (not a proxy), and corroborate current IP-range matches with forward/reverse DNS and contemporaneous evidence. Compare delivery, deployments and Search Console before attributing visibility changes. No target site or log provider was contacted.",
761
+ });
762
+ }
763
+ export function urlVariantsContent(review) {
764
+ const warnings = review.findings.filter((finding) => finding.severity === "warning").length;
765
+ return toolContent({
766
+ title: "Supplied URL variant comparison",
767
+ status: warnings ? "attention needed" : "partial",
768
+ outcome: `${review.pages_sampled} supplied same-path URL observations: ` +
769
+ `${review.scheme_variants} scheme, ${review.www_variants} apex/www, ` +
770
+ `${review.slash_variants} trailing-slash, ${review.case_variants} path-case and ` +
771
+ `${review.query_variants} query dimensions; ${review.redirects_to_reference} redirect ` +
772
+ `declarations point to the supplied reference, ${review.matching_content_variants} ` +
773
+ `HTTP 200 variants carry matching caller SHA-256 body fingerprints.`,
774
+ actions: review.findings.map((finding) => ({
775
+ priority: finding.severity === "warning" ? 1 : 2,
776
+ location: `Supplied URL observation ${finding.page}`,
777
+ message: `${finding.code}: ${finding.message}`,
778
+ })),
779
+ nextStep: "Verify HTTP redirects to completion, intended query behavior, observed page bodies and canonical declarations with authorized live requests and Search Console. Path case and query parameters can represent different content; neither byte equality nor a declared canonical proves Google's selected canonical.",
780
+ });
781
+ }
782
+ export function httpsSecurityContent(review) {
783
+ const warnings = review.findings.filter((finding) => finding.severity === "warning").length;
784
+ return toolContent({
785
+ title: "Sampled HTTPS and HTTP security signals",
786
+ status: warnings ? "attention needed" : "partial",
787
+ outcome: `${review.pages_sampled} supplied same-host observations: ${review.http_observations} HTTP, ` +
788
+ `${review.https_observations} HTTPS; ${review.https_redirect_declarations} declared HTTPS redirects, ` +
789
+ `${review.https_without_hsts_observation} without supplied HTTPS HSTS, ` +
790
+ `${review.mixed_blockable_declarations} potentially blockable mixed resources, ` +
791
+ `${review.mixed_upgradable_declarations} upgrade candidates, ` +
792
+ `${review.insecure_form_actions} HTTP form-action declarations.`,
793
+ actions: review.findings.map((finding) => ({
794
+ priority: finding.severity === "warning" ? 1 : 2,
795
+ location: `Supplied page ${finding.page}`,
796
+ message: `${finding.code}: ${finding.message}`,
797
+ })),
798
+ nextStep: "Verify observations against authorized live HTTPS/HTTP GET responses, redirect chains, browser DevTools, CSP enforcement and TLS certificates. Supplied headers or static markup do not establish production security, certificate validity or actual browser mixed-content blocking.",
799
+ });
800
+ }
801
+ export function httpDirectivesContent(review) {
802
+ return toolContent({
803
+ title: "Sampled non-HTML HTTP directive review",
804
+ status: review.conflicting_robots_resources + review.conflicting_canonical_resources > 0
805
+ ? "attention needed" : "partial",
806
+ outcome: `${review.non_html_resources} non-HTML declarations in ${review.resources_sampled} supplied HTTP observations: ` +
807
+ `${review.googlebot_noindex_resources} with a Googlebot-applicable noindex declaration, ` +
808
+ `${review.canonical_header_resources} with HTTP canonical declarations, ` +
809
+ `${review.conflicting_robots_resources + review.conflicting_canonical_resources} conflicting groups.`,
810
+ actions: review.findings.map((finding) => ({
811
+ priority: finding.severity === "warning" ? 1 : 2,
812
+ location: `Supplied response ${finding.resource}`,
813
+ message: `${finding.code}: ${finding.message}`,
814
+ })),
815
+ nextStep: "Compare these supplied headers against live authorized GET/HEAD observations, robots.txt and Search Console. No resource was fetched; missing X-Robots-Tag does not prove indexability, and Link canonicals are not Google selections.",
816
+ });
817
+ }
818
+ export function multilingualClusterContent(analysis) {
819
+ const observed = `${analysis.eligible_pages}/${analysis.sampled_pages} supplied pages were eligible`;
820
+ const count = analysis.total_findings;
821
+ return toolContent({
822
+ title: "Multilingual hreflang and canonical clusters",
823
+ status: count ? "attention needed" : analysis.coverage_limited ? "partial" : "clean",
824
+ outcome: count
825
+ ? `${countLabel(count, "cluster finding")} found across the supplied pages; ${observed}.`
826
+ : `No checked hreflang/canonical conflicts were found; ${observed}. This is not evidence that unseen targets are healthy.`,
827
+ actions: analysis.findings.map((finding) => ({
828
+ priority: finding.severity === "error" ? 0 : 1,
829
+ location: finding.example_urls.join(" ↔ "),
830
+ message: `${finding.code}: ${finding.message}`,
831
+ })),
832
+ nextStep: analysis.findings_truncated
833
+ ? "More findings exist than the result cap. Address the displayed conflicts and retest."
834
+ : "Review observed conflicts and provide additional authorized localized page HTML to verify any unseen reciprocal links.",
835
+ });
836
+ }
311
837
  function reportActionItems(reportData) {
312
838
  return [
313
839
  ...(reportData.errors ?? []).map((message) => ({