lighthouse 13.4.1 → 13.5.0

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 (201) hide show
  1. package/build-tracker.config.js +1 -1
  2. package/cli/test/smokehouse/lighthouse-runners/bundle.js +3 -3
  3. package/cli/test/smokehouse/lighthouse-runners/devtools-mcp.js +2 -1
  4. package/core/audits/accessibility/accesskeys.js +1 -1
  5. package/core/audits/accessibility/aria-allowed-attr.js +1 -1
  6. package/core/audits/accessibility/aria-allowed-role.js +1 -1
  7. package/core/audits/accessibility/aria-command-name.js +1 -1
  8. package/core/audits/accessibility/aria-conditional-attr.js +1 -1
  9. package/core/audits/accessibility/aria-deprecated-role.js +1 -1
  10. package/core/audits/accessibility/aria-dialog-name.js +1 -1
  11. package/core/audits/accessibility/aria-hidden-body.js +1 -1
  12. package/core/audits/accessibility/aria-hidden-focus.js +1 -1
  13. package/core/audits/accessibility/aria-input-field-name.js +1 -1
  14. package/core/audits/accessibility/aria-meter-name.js +1 -1
  15. package/core/audits/accessibility/aria-progressbar-name.js +1 -1
  16. package/core/audits/accessibility/aria-prohibited-attr.js +1 -1
  17. package/core/audits/accessibility/aria-required-attr.js +1 -1
  18. package/core/audits/accessibility/aria-required-children.js +1 -1
  19. package/core/audits/accessibility/aria-required-parent.js +1 -1
  20. package/core/audits/accessibility/aria-roles.js +1 -1
  21. package/core/audits/accessibility/aria-text.js +1 -1
  22. package/core/audits/accessibility/aria-toggle-field-name.js +1 -1
  23. package/core/audits/accessibility/aria-tooltip-name.js +1 -1
  24. package/core/audits/accessibility/aria-treeitem-name.js +1 -1
  25. package/core/audits/accessibility/aria-valid-attr-value.js +1 -1
  26. package/core/audits/accessibility/aria-valid-attr.js +1 -1
  27. package/core/audits/accessibility/autocomplete-valid.js +1 -1
  28. package/core/audits/accessibility/button-name.js +1 -1
  29. package/core/audits/accessibility/bypass.js +1 -1
  30. package/core/audits/accessibility/color-contrast.js +1 -1
  31. package/core/audits/accessibility/definition-list.js +1 -1
  32. package/core/audits/accessibility/dlitem.js +1 -1
  33. package/core/audits/accessibility/document-title.js +1 -1
  34. package/core/audits/accessibility/duplicate-id-aria.js +1 -1
  35. package/core/audits/accessibility/empty-heading.js +1 -1
  36. package/core/audits/accessibility/form-field-multiple-labels.js +1 -1
  37. package/core/audits/accessibility/frame-title.js +1 -1
  38. package/core/audits/accessibility/heading-order.js +1 -1
  39. package/core/audits/accessibility/html-has-lang.js +1 -1
  40. package/core/audits/accessibility/html-lang-valid.js +1 -1
  41. package/core/audits/accessibility/html-xml-lang-mismatch.js +1 -1
  42. package/core/audits/accessibility/identical-links-same-purpose.js +1 -1
  43. package/core/audits/accessibility/image-alt.js +1 -1
  44. package/core/audits/accessibility/image-redundant-alt.js +1 -1
  45. package/core/audits/accessibility/input-button-name.js +1 -1
  46. package/core/audits/accessibility/input-image-alt.js +1 -1
  47. package/core/audits/accessibility/label-content-name-mismatch.js +1 -1
  48. package/core/audits/accessibility/label.js +1 -1
  49. package/core/audits/accessibility/landmark-one-main.js +1 -1
  50. package/core/audits/accessibility/link-in-text-block.js +1 -1
  51. package/core/audits/accessibility/link-name.js +1 -1
  52. package/core/audits/accessibility/list.js +1 -1
  53. package/core/audits/accessibility/listitem.js +1 -1
  54. package/core/audits/accessibility/meta-refresh.js +1 -1
  55. package/core/audits/accessibility/meta-viewport.js +1 -1
  56. package/core/audits/accessibility/object-alt.js +1 -1
  57. package/core/audits/accessibility/presentation-role-conflict.js +1 -1
  58. package/core/audits/accessibility/select-name.js +1 -1
  59. package/core/audits/accessibility/skip-link.js +1 -1
  60. package/core/audits/accessibility/svg-img-alt.js +1 -1
  61. package/core/audits/accessibility/tabindex.js +1 -1
  62. package/core/audits/accessibility/table-duplicate-name.js +1 -1
  63. package/core/audits/accessibility/table-fake-caption.js +1 -1
  64. package/core/audits/accessibility/target-size.js +1 -1
  65. package/core/audits/accessibility/td-has-header.js +1 -1
  66. package/core/audits/accessibility/td-headers-attr.js +1 -1
  67. package/core/audits/accessibility/th-has-data-cells.js +1 -1
  68. package/core/audits/accessibility/valid-lang.js +1 -1
  69. package/core/audits/accessibility/video-caption.js +1 -1
  70. package/core/audits/agentic/ard-schema.d.ts +19 -0
  71. package/core/audits/agentic/ard-schema.js +135 -0
  72. package/core/audits/baseline.d.ts +23 -10
  73. package/core/audits/deprecations.js +1 -2
  74. package/core/audits/webmcp-form-coverage.js +3 -1
  75. package/core/audits/webmcp-registered-tools.d.ts +2 -0
  76. package/core/audits/webmcp-registered-tools.js +16 -1
  77. package/core/audits/webmcp-schema-validity.js +1 -1
  78. package/core/computed/metrics/interactive.js +1 -1
  79. package/core/computed/metrics/lantern-metric.js +1 -1
  80. package/core/computed/trace-engine-result.d.ts +3 -3
  81. package/core/computed/trace-engine-result.js +4 -4
  82. package/core/computed/unused-javascript-summary.d.ts +0 -1
  83. package/core/computed/unused-javascript-summary.js +0 -1
  84. package/core/config/agentic-browsing-config.d.ts +2 -0
  85. package/core/config/agentic-browsing-config.js +13 -1
  86. package/core/config/default-config.js +13 -1
  87. package/core/config/validation.js +6 -0
  88. package/core/gather/driver/execution-context.js +0 -2
  89. package/core/gather/driver/navigation.d.ts +1 -0
  90. package/core/gather/driver/navigation.js +35 -7
  91. package/core/gather/driver/wait-for-condition.d.ts +5 -7
  92. package/core/gather/driver/wait-for-condition.js +15 -9
  93. package/core/gather/fetcher.d.ts +9 -2
  94. package/core/gather/fetcher.js +30 -4
  95. package/core/gather/gatherers/accessibility.js +1 -3
  96. package/core/gather/gatherers/agentic/ard.d.ts +30 -0
  97. package/core/gather/gatherers/agentic/ard.js +125 -0
  98. package/core/gather/gatherers/anchor-elements.js +0 -2
  99. package/core/gather/gatherers/full-page-screenshot.js +0 -4
  100. package/core/gather/gatherers/iframe-elements.js +0 -2
  101. package/core/gather/gatherers/image-elements.js +1 -13
  102. package/core/gather/gatherers/inputs.js +0 -2
  103. package/core/gather/gatherers/link-elements.js +0 -2
  104. package/core/gather/gatherers/meta-elements.js +0 -3
  105. package/core/gather/gatherers/seo/robots-txt.d.ts +1 -0
  106. package/core/gather/gatherers/seo/robots-txt.js +3 -0
  107. package/core/gather/gatherers/stacks.d.ts +1 -1
  108. package/core/gather/gatherers/stacks.js +1 -3
  109. package/core/gather/gatherers/trace-elements.js +1 -3
  110. package/core/gather/gatherers/viewport-dimensions.js +0 -2
  111. package/core/gather/navigation-runner.d.ts +3 -1
  112. package/core/gather/navigation-runner.js +6 -3
  113. package/core/gather/session.js +1 -0
  114. package/core/index.cjs +5 -5
  115. package/core/index.d.cts +5 -5
  116. package/core/lib/arbitrary-equality-map.d.ts +2 -2
  117. package/core/lib/arbitrary-equality-map.js +1 -1
  118. package/core/lib/baseline/web-features-data.json +52 -28
  119. package/core/lib/baseline/web-features-metadata.json +1 -1
  120. package/core/lib/deprecation-description.js +1 -1
  121. package/core/lib/page-functions.d.ts +0 -3
  122. package/core/lib/page-functions.js +0 -3
  123. package/core/lib/rect-helpers.js +0 -8
  124. package/core/runner.js +21 -0
  125. package/core/user-flow.d.ts +3 -0
  126. package/core/user-flow.js +12 -0
  127. package/dist/report/bundle.esm.js +10 -3
  128. package/dist/report/flow.js +20 -13
  129. package/dist/report/standalone.js +10 -3
  130. package/package.json +19 -14
  131. package/report/assets/styles.css +7 -0
  132. package/report/renderer/components.js +1 -1
  133. package/report/renderer/details-renderer.js +7 -5
  134. package/report/renderer/drop-down-menu.d.ts +2 -2
  135. package/report/renderer/drop-down-menu.js +1 -1
  136. package/report/renderer/report-renderer.js +24 -3
  137. package/report/renderer/report-utils.js +1 -1
  138. package/report/renderer/snippet-renderer.d.ts +4 -4
  139. package/report/renderer/snippet-renderer.js +3 -3
  140. package/report/renderer/text-encoding.js +2 -2
  141. package/shared/localization/locales/ar-XB.json +111 -72
  142. package/shared/localization/locales/ar.json +113 -74
  143. package/shared/localization/locales/bg.json +112 -73
  144. package/shared/localization/locales/ca.json +112 -73
  145. package/shared/localization/locales/cs.json +112 -73
  146. package/shared/localization/locales/da.json +112 -73
  147. package/shared/localization/locales/de.json +112 -73
  148. package/shared/localization/locales/el.json +112 -73
  149. package/shared/localization/locales/en-GB.json +111 -72
  150. package/shared/localization/locales/en-US.json +102 -66
  151. package/shared/localization/locales/en-XA.json +111 -72
  152. package/shared/localization/locales/en-XL.json +102 -66
  153. package/shared/localization/locales/es-419.json +112 -73
  154. package/shared/localization/locales/es.json +112 -73
  155. package/shared/localization/locales/fi.json +112 -73
  156. package/shared/localization/locales/fil.json +112 -73
  157. package/shared/localization/locales/fr.json +112 -73
  158. package/shared/localization/locales/he.json +112 -73
  159. package/shared/localization/locales/hi.json +112 -73
  160. package/shared/localization/locales/hr.json +112 -73
  161. package/shared/localization/locales/hu.json +112 -73
  162. package/shared/localization/locales/id.json +112 -73
  163. package/shared/localization/locales/it.json +113 -74
  164. package/shared/localization/locales/ja.json +112 -73
  165. package/shared/localization/locales/ko.json +112 -73
  166. package/shared/localization/locales/lt.json +112 -73
  167. package/shared/localization/locales/lv.json +112 -73
  168. package/shared/localization/locales/nl.json +112 -73
  169. package/shared/localization/locales/no.json +112 -73
  170. package/shared/localization/locales/pl.json +112 -73
  171. package/shared/localization/locales/pt-PT.json +112 -73
  172. package/shared/localization/locales/pt.json +112 -73
  173. package/shared/localization/locales/ro.json +112 -73
  174. package/shared/localization/locales/ru.json +112 -73
  175. package/shared/localization/locales/sk.json +112 -73
  176. package/shared/localization/locales/sl.json +112 -73
  177. package/shared/localization/locales/sr-Latn.json +112 -73
  178. package/shared/localization/locales/sr.json +112 -73
  179. package/shared/localization/locales/sv.json +124 -85
  180. package/shared/localization/locales/ta.json +112 -73
  181. package/shared/localization/locales/te.json +112 -73
  182. package/shared/localization/locales/th.json +112 -73
  183. package/shared/localization/locales/tr.json +113 -74
  184. package/shared/localization/locales/uk.json +112 -73
  185. package/shared/localization/locales/vi.json +112 -73
  186. package/shared/localization/locales/zh-HK.json +112 -73
  187. package/shared/localization/locales/zh-TW.json +113 -74
  188. package/shared/localization/locales/zh.json +113 -74
  189. package/shared/util.d.ts +6 -0
  190. package/shared/util.js +9 -0
  191. package/third-party/ard/LICENSE +201 -0
  192. package/third-party/ard/README.md +27 -0
  193. package/third-party/ard/ard-test.d.ts +2 -0
  194. package/third-party/ard/ard-test.js +358 -0
  195. package/third-party/ard/ard.d.ts +34 -0
  196. package/third-party/ard/ard.js +204 -0
  197. package/third-party/ard/schema-validator.d.ts +20 -0
  198. package/third-party/ard/schema-validator.js +1700 -0
  199. package/third-party/ard/spec/schemas/ai-catalog.schema.json +292 -0
  200. package/tsconfig.json +1 -0
  201. package/types/artifacts.d.ts +14 -0
@@ -0,0 +1,292 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://raw.githubusercontent.com/ards-project/ard-spec/main/spec/schemas/ai-catalog.schema.json",
4
+ "title": "AICatalogManifest",
5
+ "description": "JSON Schema for the ai-catalog.json capability manifest, defining how AI artifacts are advertised.",
6
+ "type": "object",
7
+ "required": [
8
+ "specVersion",
9
+ "entries"
10
+ ],
11
+ "properties": {
12
+ "specVersion": {
13
+ "type": "string",
14
+ "description": "Version of the ai-catalog specification used in this manifest.",
15
+ "enum": [
16
+ "1.0"
17
+ ]
18
+ },
19
+ "host": {
20
+ "type": "object",
21
+ "description": "Information about the catalog publisher or hosting entity.",
22
+ "required": [
23
+ "displayName"
24
+ ],
25
+ "properties": {
26
+ "displayName": {
27
+ "type": "string",
28
+ "description": "Human-readable name of the host."
29
+ },
30
+ "identifier": {
31
+ "type": "string",
32
+ "description": "Cryptographic or verifiable identifier of the host (e.g. did:web:domain.com)."
33
+ },
34
+ "documentationUrl": {
35
+ "type": "string",
36
+ "format": "uri",
37
+ "description": "URL to publisher documentation."
38
+ },
39
+ "logoUrl": {
40
+ "type": "string",
41
+ "format": "uri",
42
+ "description": "URL to the publisher's logo image."
43
+ },
44
+ "trustManifest": {
45
+ "$ref": "#/$defs/trustManifest"
46
+ }
47
+ },
48
+ "additionalProperties": false
49
+ },
50
+ "entries": {
51
+ "type": "array",
52
+ "description": "List of AI agent or capability catalog entries.",
53
+ "items": {
54
+ "$ref": "#/$defs/catalogEntry"
55
+ }
56
+ }
57
+ },
58
+ "additionalProperties": false,
59
+ "$defs": {
60
+ "catalogEntry": {
61
+ "type": "object",
62
+ "description": "A single AI capability entry within the catalog.",
63
+ "required": [
64
+ "identifier",
65
+ "displayName",
66
+ "type"
67
+ ],
68
+ "oneOf": [
69
+ {
70
+ "required": [
71
+ "url"
72
+ ],
73
+ "not": {
74
+ "required": [
75
+ "data"
76
+ ]
77
+ }
78
+ },
79
+ {
80
+ "required": [
81
+ "data"
82
+ ],
83
+ "not": {
84
+ "required": [
85
+ "url"
86
+ ]
87
+ }
88
+ }
89
+ ],
90
+ "properties": {
91
+ "identifier": {
92
+ "type": "string",
93
+ "pattern": "^urn:air:[a-zA-Z0-9.-]+(:[a-zA-Z0-9._-]+)+$",
94
+ "description": "RFC 8141-compliant unique logical URN formatted as: urn:air:<publisher>:<namespace>:<agent-name>"
95
+ },
96
+ "displayName": {
97
+ "type": "string",
98
+ "description": "Human-friendly display name."
99
+ },
100
+ "type": {
101
+ "type": "string",
102
+ "description": "IANA Media Type indicating the specific protocol wrapper or payload structure (e.g. application/mcp-server-card+json)."
103
+ },
104
+ "url": {
105
+ "type": "string",
106
+ "format": "uri",
107
+ "description": "HTTP URL reference to retrieve the full artifact document."
108
+ },
109
+ "data": {
110
+ "type": "object",
111
+ "description": "Embedded JSON object containing the complete artifact specification inline."
112
+ },
113
+ "description": {
114
+ "type": "string",
115
+ "description": "Brief natural-language description of the capability."
116
+ },
117
+ "tags": {
118
+ "type": "array",
119
+ "items": {
120
+ "type": "string"
121
+ },
122
+ "description": "Tags or keywords for basic categorizing and filtering."
123
+ },
124
+ "capabilities": {
125
+ "type": "array",
126
+ "items": {
127
+ "type": "string"
128
+ },
129
+ "description": "Explicit high-performance indexing tags representing skills, tools, or functions (e.g. ['WeatherTool', 'ForecastTool'])."
130
+ },
131
+ "representativeQueries": {
132
+ "type": "array",
133
+ "minItems": 2,
134
+ "maxItems": 5,
135
+ "items": {
136
+ "type": "string"
137
+ },
138
+ "description": "Representative natural-language search queries used for indexing and vector embedding generation."
139
+ },
140
+ "version": {
141
+ "type": "string",
142
+ "description": "Semantic version of the capability."
143
+ },
144
+ "updatedAt": {
145
+ "type": "string",
146
+ "format": "date-time",
147
+ "description": "ISO 8601 timestamp of the last modification."
148
+ },
149
+ "metadata": {
150
+ "type": "object",
151
+ "description": "Arbitrary key-value pairs for custom extensions.",
152
+ "additionalProperties": {
153
+ "type": [
154
+ "string",
155
+ "number",
156
+ "boolean",
157
+ "null"
158
+ ]
159
+ }
160
+ },
161
+ "trustManifest": {
162
+ "$ref": "#/$defs/trustManifest"
163
+ }
164
+ }
165
+ },
166
+ "trustManifest": {
167
+ "type": "object",
168
+ "description": "Zero-trust security, identity, and compliance envelope metadata.",
169
+ "required": [
170
+ "identity"
171
+ ],
172
+ "properties": {
173
+ "identity": {
174
+ "type": "string",
175
+ "description": "Globally unique cryptographic workload identifier principal (e.g. SPIFFE ID or DID URI)."
176
+ },
177
+ "identityType": {
178
+ "type": "string",
179
+ "enum": [
180
+ "spiffe",
181
+ "did",
182
+ "https",
183
+ "other"
184
+ ],
185
+ "description": "Hint representing the cryptographic format of the identity."
186
+ },
187
+ "trustSchema": {
188
+ "$ref": "#/$defs/trustSchema"
189
+ },
190
+ "attestations": {
191
+ "type": "array",
192
+ "description": "List of verifiable claims (SOC 2 audits, compliance statements, HIPAA checks).",
193
+ "items": {
194
+ "type": "object",
195
+ "required": [
196
+ "type",
197
+ "uri",
198
+ "mediaType"
199
+ ],
200
+ "properties": {
201
+ "type": {
202
+ "type": "string",
203
+ "description": "Attestation standard type (e.g., SOC2-Type2, HIPAA)."
204
+ },
205
+ "uri": {
206
+ "type": "string",
207
+ "format": "uri",
208
+ "description": "Location of the attestation certificate or document."
209
+ },
210
+ "mediaType": {
211
+ "type": "string",
212
+ "description": "Format of the attestation document (e.g. application/pdf, text/html)."
213
+ },
214
+ "digest": {
215
+ "type": "string",
216
+ "description": "Cryptographic sha256 digest for document integrity verification."
217
+ }
218
+ },
219
+ "additionalProperties": false
220
+ }
221
+ },
222
+ "provenance": {
223
+ "type": "array",
224
+ "description": "Cryptographic lineage trail of the artifact.",
225
+ "items": {
226
+ "type": "object",
227
+ "required": [
228
+ "relation",
229
+ "sourceId"
230
+ ],
231
+ "properties": {
232
+ "relation": {
233
+ "type": "string",
234
+ "enum": [
235
+ "derivedFrom",
236
+ "publishedFrom",
237
+ "copiedFrom"
238
+ ],
239
+ "description": "Lineage relation."
240
+ },
241
+ "sourceId": {
242
+ "type": "string",
243
+ "description": "Identifier of the source artifact."
244
+ },
245
+ "sourceDigest": {
246
+ "type": "string",
247
+ "description": "Optional sha256 digest for safety."
248
+ }
249
+ },
250
+ "additionalProperties": false
251
+ }
252
+ },
253
+ "signature": {
254
+ "type": "string",
255
+ "description": "Detached JWS signature generated over the fields of the trustManifest."
256
+ }
257
+ },
258
+ "additionalProperties": false
259
+ },
260
+ "trustSchema": {
261
+ "type": "object",
262
+ "description": "Describes the trust framework applied to the artifact.",
263
+ "required": [
264
+ "identifier",
265
+ "version"
266
+ ],
267
+ "properties": {
268
+ "identifier": {
269
+ "type": "string",
270
+ "description": "Unique identifier of the trust schema/framework (e.g. URN)."
271
+ },
272
+ "version": {
273
+ "type": "string",
274
+ "description": "Version of the trust schema/framework."
275
+ },
276
+ "governanceUri": {
277
+ "type": "string",
278
+ "format": "uri",
279
+ "description": "URI pointing to the governance policy document."
280
+ },
281
+ "verificationMethods": {
282
+ "type": "array",
283
+ "items": {
284
+ "type": "string"
285
+ },
286
+ "description": "Verification methods supported by the schema (e.g., ['did', 'x509', 'dns-01'])."
287
+ }
288
+ },
289
+ "additionalProperties": false
290
+ }
291
+ }
292
+ }
package/tsconfig.json CHANGED
@@ -21,6 +21,7 @@
21
21
  "eslint-local-rules.cjs",
22
22
  "third-party/axe/valid-langs.js",
23
23
  "third-party/esbuild-plugins-polyfills/esbuild-polyfills.js",
24
+ "third-party/ard/**/*.js",
24
25
 
25
26
  "core/test/results/sample_v2.json",
26
27
  "core/test/fixtures/unresolved-perflog.json",
@@ -138,6 +138,20 @@ export interface GathererArtifacts extends PublicGathererArtifacts {
138
138
  RobotsTxt: { status: number | null, content: string | null, errorMessage?: string };
139
139
  /** Information on fetching and the content of the /llm.txt file. */
140
140
  LlmsTxt: { status: number | null, content: string | null, errorMessage?: string };
141
+ /** Information on fetching and the content of the /ai-catalog.json manifest file. */
142
+ AgentResourceDiscovery: {
143
+ status: number | null;
144
+ content: string | null;
145
+ headers: Record<string, string> | null;
146
+ catalogUrl: string | null;
147
+ discoverySignals: {
148
+ robotsTxtAgentmap: string | null;
149
+ htmlLink: string | null;
150
+ httpHeaderLink: string | null;
151
+ wellKnown: string;
152
+ };
153
+ errorMessage?: string;
154
+ };
141
155
  /** Source maps of scripts executed in the page. */
142
156
  SourceMaps: Array<Artifacts.SourceMap>;
143
157
  /** Information on detected tech stacks (e.g. JS libraries) used by the page. */