lighthouse 13.5.0 → 13.6.0-dev.20261028
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.
- package/.agents/skills/update-ard-port/SKILL.md +171 -0
- package/.agents/skills/update-trace-engine/SKILL.md +154 -0
- package/cli/bin.d.ts +2 -2
- package/cli/bin.js +5 -4
- package/cli/cli-flags.d.ts +16 -1
- package/cli/cli-flags.js +53 -2
- package/cli/printer.js +5 -8
- package/cli/run.d.ts +5 -5
- package/cli/run.js +97 -47
- package/cli/sentry-prompt.js +3 -4
- package/cli/test/smokehouse/__snapshots__/report-assert-test.js.snap +1 -1
- package/cli/test/smokehouse/config/exclusions.js +3 -1
- package/cli/test/smokehouse/frontends/smokehouse-bin.js +5 -3
- package/cli/test/smokehouse/report-assert-test.js +65 -0
- package/cli/test/smokehouse/report-assert.js +24 -39
- package/cli/test/smokehouse/smokehouse-test.d.ts +2 -0
- package/cli/test/smokehouse/smokehouse-test.js +120 -0
- package/cli/test/smokehouse/smokehouse.js +37 -15
- package/cli/test/smokehouse/version-check-test.js +5 -0
- package/cli/test/smokehouse/version-check.d.ts +1 -1
- package/cli/test/smokehouse/version-check.js +1 -1
- package/commitlint.config.js +1 -1
- package/core/audits/accessibility/accesskeys.js +1 -1
- package/core/audits/accessibility/aria-allowed-attr.js +1 -1
- package/core/audits/accessibility/aria-allowed-role.js +1 -1
- package/core/audits/accessibility/aria-command-name.js +1 -1
- package/core/audits/accessibility/aria-conditional-attr.js +1 -1
- package/core/audits/accessibility/aria-deprecated-role.js +1 -1
- package/core/audits/accessibility/aria-dialog-name.js +1 -1
- package/core/audits/accessibility/aria-hidden-body.js +1 -1
- package/core/audits/accessibility/aria-hidden-focus.js +1 -1
- package/core/audits/accessibility/aria-input-field-name.js +1 -1
- package/core/audits/accessibility/aria-meter-name.js +1 -1
- package/core/audits/accessibility/aria-progressbar-name.js +1 -1
- package/core/audits/accessibility/aria-prohibited-attr.js +1 -1
- package/core/audits/accessibility/aria-required-attr.js +1 -1
- package/core/audits/accessibility/aria-required-children.js +1 -1
- package/core/audits/accessibility/aria-required-parent.js +1 -1
- package/core/audits/accessibility/aria-roles.js +1 -1
- package/core/audits/accessibility/aria-text.js +1 -1
- package/core/audits/accessibility/aria-toggle-field-name.js +1 -1
- package/core/audits/accessibility/aria-tooltip-name.js +1 -1
- package/core/audits/accessibility/aria-treeitem-name.js +1 -1
- package/core/audits/accessibility/aria-valid-attr-value.js +1 -1
- package/core/audits/accessibility/aria-valid-attr.js +1 -1
- package/core/audits/accessibility/autocomplete-valid.js +1 -1
- package/core/audits/accessibility/button-name.js +1 -1
- package/core/audits/accessibility/bypass.js +1 -1
- package/core/audits/accessibility/color-contrast.js +1 -1
- package/core/audits/accessibility/definition-list.js +1 -1
- package/core/audits/accessibility/dlitem.js +1 -1
- package/core/audits/accessibility/document-title.js +1 -1
- package/core/audits/accessibility/duplicate-id-aria.js +1 -1
- package/core/audits/accessibility/empty-heading.js +1 -1
- package/core/audits/accessibility/form-field-multiple-labels.js +1 -1
- package/core/audits/accessibility/frame-title.js +1 -1
- package/core/audits/accessibility/heading-order.js +1 -1
- package/core/audits/accessibility/html-has-lang.js +1 -1
- package/core/audits/accessibility/html-lang-valid.js +1 -1
- package/core/audits/accessibility/html-xml-lang-mismatch.js +1 -1
- package/core/audits/accessibility/identical-links-same-purpose.js +1 -1
- package/core/audits/accessibility/image-alt.js +1 -1
- package/core/audits/accessibility/image-redundant-alt.js +1 -1
- package/core/audits/accessibility/input-button-name.js +1 -1
- package/core/audits/accessibility/input-image-alt.js +1 -1
- package/core/audits/accessibility/label-content-name-mismatch.js +1 -1
- package/core/audits/accessibility/label.js +1 -1
- package/core/audits/accessibility/landmark-one-main.js +1 -1
- package/core/audits/accessibility/link-in-text-block.js +1 -1
- package/core/audits/accessibility/link-name.js +1 -1
- package/core/audits/accessibility/list.js +1 -1
- package/core/audits/accessibility/listitem.js +1 -1
- package/core/audits/accessibility/meta-refresh.js +1 -1
- package/core/audits/accessibility/meta-viewport.js +1 -1
- package/core/audits/accessibility/object-alt.js +1 -1
- package/core/audits/accessibility/presentation-role-conflict.js +1 -1
- package/core/audits/accessibility/select-name.js +1 -1
- package/core/audits/accessibility/skip-link.js +1 -1
- package/core/audits/accessibility/svg-img-alt.js +1 -1
- package/core/audits/accessibility/tabindex.js +1 -1
- package/core/audits/accessibility/table-duplicate-name.js +1 -1
- package/core/audits/accessibility/table-fake-caption.js +1 -1
- package/core/audits/accessibility/target-size.js +1 -1
- package/core/audits/accessibility/td-has-header.js +1 -1
- package/core/audits/accessibility/td-headers-attr.js +1 -1
- package/core/audits/accessibility/th-has-data-cells.js +1 -1
- package/core/audits/accessibility/valid-lang.js +1 -1
- package/core/audits/accessibility/video-caption.js +1 -1
- package/core/audits/agentic/ard-schema.d.ts +13 -0
- package/core/audits/agentic/ard-schema.js +81 -33
- package/core/audits/agentic/llms-txt.js +5 -2
- package/core/audits/baseline.d.ts +29 -7
- package/core/audits/baseline.js +19 -6
- package/core/audits/byte-efficiency/byte-efficiency-audit.js +2 -2
- package/core/audits/insights/insight-audit.d.ts +9 -0
- package/core/audits/insights/insight-audit.js +35 -28
- package/core/audits/long-tasks.js +2 -1
- package/core/audits/predictive-perf.js +2 -2
- package/core/audits/screenshot-thumbnails.d.ts +0 -13
- package/core/audits/screenshot-thumbnails.js +0 -45
- package/core/audits/script-treemap-data.js +26 -6
- package/core/audits/seo/robots-txt.js +3 -8
- package/core/audits/unsized-images.d.ts +0 -7
- package/core/audits/unsized-images.js +7 -26
- package/core/computed/lcp-image-record.d.ts +2 -23
- package/core/computed/lcp-image-record.js +3 -67
- package/core/computed/lcp-network-record.d.ts +24 -0
- package/core/computed/lcp-network-record.js +74 -0
- package/core/computed/metrics/lantern-metric.js +1 -1
- package/core/computed/metrics/lcp-breakdown.js +6 -6
- package/core/computed/metrics/time-to-first-byte.js +5 -3
- package/core/computed/navigation-insights.js +3 -2
- package/core/computed/page-dependency-graph.js +55 -5
- package/core/computed/speedline.js +20 -5
- package/core/computed/trace-engine-result.js +25 -5
- package/core/computed/unused-css.js +15 -2
- package/core/config/config-helpers.d.ts +5 -0
- package/core/config/config-helpers.js +17 -28
- package/core/config/config-plugin.d.ts +7 -0
- package/core/config/config-plugin.js +49 -0
- package/core/config/config.js +10 -2
- package/core/config/constants.d.ts +2 -28
- package/core/config/filters.js +1 -0
- package/core/config/lr-desktop-config.js +13 -0
- package/core/config/lr-mobile-config.js +13 -0
- package/core/gather/base-artifacts.js +7 -1
- package/core/gather/driver/storage.js +3 -2
- package/core/gather/gatherers/agentic/ard.d.ts +59 -4
- package/core/gather/gatherers/agentic/ard.js +218 -56
- package/core/gather/gatherers/full-page-screenshot.js +2 -2
- package/core/gather/gatherers/image-elements.d.ts +7 -0
- package/core/gather/gatherers/image-elements.js +75 -24
- package/core/gather/gatherers/inspector-issues.js +2 -0
- package/core/gather/gatherers/js-usage.js +2 -0
- package/core/gather/gatherers/scripts.d.ts +16 -3
- package/core/gather/gatherers/scripts.js +157 -14
- package/core/gather/gatherers/stylesheets.js +2 -0
- package/core/gather/gatherers/trace-elements.js +2 -1
- package/core/gather/gatherers/trace.d.ts +6 -0
- package/core/gather/gatherers/trace.js +56 -16
- package/core/index.d.ts +2 -0
- package/core/index.js +2 -0
- package/core/lib/arbitrary-equality-map.d.ts +14 -3
- package/core/lib/arbitrary-equality-map.js +113 -6
- package/core/lib/baseline/web-features-data.json +32 -11
- package/core/lib/baseline/web-features-metadata.json +1 -1
- package/core/lib/bf-cache-strings.js +237 -254
- package/core/lib/cdt/Common.d.ts +1 -1
- package/core/lib/cdt/Common.js +2 -2
- package/core/lib/cdt/Platform.d.ts +7 -7
- package/core/lib/cdt/Platform.js +11 -8
- package/core/lib/cdt/SDK.d.ts +5 -1
- package/core/lib/cdt/SDK.js +4 -2
- package/core/lib/cdt/generated/ParsedURL.d.ts +0 -1
- package/core/lib/cdt/generated/ParsedURL.js +3 -9
- package/core/lib/cdt/generated/SourceMap.d.ts +24 -25
- package/core/lib/cdt/generated/SourceMap.js +7 -15
- package/core/lib/deprecations-strings.d.ts +93 -88
- package/core/lib/deprecations-strings.js +20 -14
- package/core/lib/i18n/i18n.d.ts +2 -1
- package/core/lib/i18n/i18n.js +25 -13
- package/core/lib/legacy-javascript/legacy-javascript.d.ts +3 -2
- package/core/lib/legacy-javascript/legacy-javascript.js +235 -111
- package/core/lib/legacy-javascript/polyfill-graph-data.json +94 -89
- package/core/lib/legacy-javascript/polyfill-module-data.json +48 -7
- package/core/lib/minification-estimator.js +10 -10
- package/core/lib/network-request.d.ts +2 -0
- package/core/lib/network-request.js +21 -0
- package/core/lib/page-functions.js +2 -5
- package/core/lib/sentry.d.ts +1 -0
- package/core/lib/sentry.js +3 -0
- package/core/lib/trace-engine.d.ts +1 -0
- package/core/lib/trace-engine.js +2 -0
- package/core/runner.js +9 -3
- package/dist/report/bundle.esm.js +10 -10
- package/dist/report/flow.js +13 -13
- package/dist/report/standalone.js +5 -5
- package/flow-report/src/common.tsx +5 -2
- package/flow-report/src/i18n/i18n.d.ts +2 -0
- package/flow-report/src/summary/summary.tsx +9 -1
- package/flow-report/src/util.d.ts +1 -1
- package/package.json +62 -98
- package/readme.md +13 -18
- package/report/generator/file-namer.d.ts +1 -1
- package/report/generator/file-namer.js +5 -4
- package/report/generator/flow-report-assets.js +1 -3
- package/report/generator/report-assets.js +1 -2
- package/report/renderer/category-renderer.js +2 -2
- package/report/renderer/details-renderer.js +3 -2
- package/report/renderer/dom.d.ts +8 -2
- package/report/renderer/dom.js +29 -1
- package/report/renderer/element-screenshot-renderer.js +3 -0
- package/report/renderer/performance-category-renderer.js +3 -1
- package/report/renderer/report-renderer.js +4 -0
- package/report/renderer/report-utils.d.ts +1 -0
- package/report/renderer/report-utils.js +2 -0
- package/report/renderer/text-encoding.js +2 -2
- package/report/types/augment-dom.d.ts +4 -0
- package/shared/esm-utils.d.ts +0 -8
- package/shared/esm-utils.js +0 -18
- package/shared/localization/format.js +5 -3
- package/shared/localization/locales/ar-XB.json +157 -142
- package/shared/localization/locales/ar.json +157 -142
- package/shared/localization/locales/bg.json +154 -139
- package/shared/localization/locales/ca.json +157 -142
- package/shared/localization/locales/cs.json +148 -133
- package/shared/localization/locales/da.json +153 -138
- package/shared/localization/locales/de.json +152 -137
- package/shared/localization/locales/el.json +153 -138
- package/shared/localization/locales/en-GB.json +160 -145
- package/shared/localization/locales/en-US.json +239 -218
- package/shared/localization/locales/en-XL.json +239 -218
- package/shared/localization/locales/es-419.json +150 -135
- package/shared/localization/locales/es.json +149 -134
- package/shared/localization/locales/fi.json +151 -136
- package/shared/localization/locales/fil.json +154 -139
- package/shared/localization/locales/fr.json +150 -135
- package/shared/localization/locales/he.json +160 -145
- package/shared/localization/locales/hi.json +156 -141
- package/shared/localization/locales/hr.json +154 -139
- package/shared/localization/locales/hu.json +111 -96
- package/shared/localization/locales/id.json +153 -138
- package/shared/localization/locales/it.json +153 -138
- package/shared/localization/locales/ja.json +150 -135
- package/shared/localization/locales/ko.json +42 -27
- package/shared/localization/locales/lt.json +152 -137
- package/shared/localization/locales/lv.json +93 -78
- package/shared/localization/locales/nl.json +149 -134
- package/shared/localization/locales/no.json +152 -137
- package/shared/localization/locales/pl.json +153 -138
- package/shared/localization/locales/pt-PT.json +152 -137
- package/shared/localization/locales/pt.json +157 -142
- package/shared/localization/locales/ro.json +149 -134
- package/shared/localization/locales/ru.json +76 -61
- package/shared/localization/locales/sk.json +153 -138
- package/shared/localization/locales/sl.json +149 -134
- package/shared/localization/locales/sr-Latn.json +151 -136
- package/shared/localization/locales/sr.json +151 -136
- package/shared/localization/locales/sv.json +152 -137
- package/shared/localization/locales/ta.json +156 -141
- package/shared/localization/locales/te.json +157 -142
- package/shared/localization/locales/th.json +111 -96
- package/shared/localization/locales/tr.json +153 -138
- package/shared/localization/locales/uk.json +149 -134
- package/shared/localization/locales/vi.json +162 -147
- package/shared/localization/locales/zh-HK.json +150 -135
- package/shared/localization/locales/zh-TW.json +154 -139
- package/shared/localization/locales/zh.json +152 -137
- package/shared/localization/swap-locale.js +10 -5
- package/shared/root.js +1 -3
- package/third-party/ard/README.md +19 -10
- package/third-party/ard/ard-test.js +189 -266
- package/third-party/ard/ard.d.ts +18 -1
- package/third-party/ard/ard.js +282 -45
- package/third-party/ard/schema-validator.d.ts +14 -5
- package/third-party/ard/schema-validator.js +921 -1177
- package/third-party/ard/spec/schemas/ard-entry.schema.json +176 -0
- package/tsconfig.json +0 -2
- package/types/artifacts.d.ts +43 -7
- package/types/config.d.ts +6 -1
- package/types/externs.d.ts +4 -0
- package/types/internal/test.d.ts +1 -0
- package/build-tracker.config.js +0 -16
- package/core/lib/cdt/package.json +0 -4
- package/eslint-local-rules.d.cts +0 -9
- package/eslint.config.mjs +0 -242
- package/third-party/ard/spec/schemas/ai-catalog.schema.json +0 -292
- package/third-party/esbuild-plugins-polyfills/LICENSE +0 -3
- package/third-party/esbuild-plugins-polyfills/README.md +0 -7
- package/third-party/esbuild-plugins-polyfills/esbuild-polyfills.d.ts +0 -9
- package/third-party/esbuild-plugins-polyfills/esbuild-polyfills.js +0 -129
- package/types/internal/lookup-closest-locale.d.ts +0 -13
|
@@ -1,292 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# @esbuild-plugins/node-modules-polyfill
|
|
2
|
-
|
|
3
|
-
This is `@esbuild-plugins/node-modules-polyfill`, with the following changes:
|
|
4
|
-
|
|
5
|
-
- using a better library for polyfills as proposed by this PR ... https://github.com/remorses/esbuild-plugins/pull/19
|
|
6
|
-
- ...but there are a couple correctness changes on top of the above PR, as described here: https://github.com/remorses/esbuild-plugins/pull/19#discussion_r990493080 (the PR has landed but is still broken for our use case)
|
|
7
|
-
- File converted from TS to JS
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
import path from 'path';
|
|
5
|
-
|
|
6
|
-
import escapeStringRegexp from 'escape-string-regexp';
|
|
7
|
-
import {getModules as builtinsPolyfills} from 'rollup-plugin-polyfill-node/dist/modules.js';
|
|
8
|
-
import polyfillLib from 'rollup-plugin-polyfill-node/dist/polyfills.js';
|
|
9
|
-
|
|
10
|
-
const NAME = 'node-modules-polyfills';
|
|
11
|
-
const NAMESPACE = NAME;
|
|
12
|
-
|
|
13
|
-
function removeEndingSlash(importee) {
|
|
14
|
-
if (importee && importee.slice(-1) === '/') {
|
|
15
|
-
importee = importee.slice(0, -1);
|
|
16
|
-
}
|
|
17
|
-
return importee;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function nodeModulesPolyfillPlugin(
|
|
21
|
-
options = {}
|
|
22
|
-
) {
|
|
23
|
-
const {namespace = NAMESPACE, name = NAME} = options;
|
|
24
|
-
if (namespace.endsWith('commonjs')) {
|
|
25
|
-
throw new Error(`namespace ${namespace} must not end with commonjs`);
|
|
26
|
-
}
|
|
27
|
-
// this namespace is needed to make ES modules expose their default export to require: require('assert') will give you import('assert').default
|
|
28
|
-
const commonjsNamespace = namespace + '-commonjs';
|
|
29
|
-
const polyfilledBuiltins = builtinsPolyfills();
|
|
30
|
-
const polyfilledBuiltinsNames = [...polyfilledBuiltins.keys()];
|
|
31
|
-
|
|
32
|
-
return {
|
|
33
|
-
name,
|
|
34
|
-
setup: function setup({onLoad, onResolve, initialOptions}) {
|
|
35
|
-
// polyfills contain global keyword, it must be defined
|
|
36
|
-
if (initialOptions?.define && !initialOptions.define?.global) {
|
|
37
|
-
initialOptions.define['global'] = 'globalThis';
|
|
38
|
-
} else if (!initialOptions?.define) {
|
|
39
|
-
initialOptions.define = {global: 'globalThis'};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// TODO these polyfill module cannot import anything, is that ok?
|
|
43
|
-
async function loader(
|
|
44
|
-
args
|
|
45
|
-
) {
|
|
46
|
-
try {
|
|
47
|
-
const isCommonjs = args.namespace.endsWith('commonjs');
|
|
48
|
-
|
|
49
|
-
const key = removeEndingSlash(args.path);
|
|
50
|
-
const contents = polyfilledBuiltins.get(key) || polyfillLib[key + '.js'];
|
|
51
|
-
const resolveDir = path.dirname(key);
|
|
52
|
-
|
|
53
|
-
if (isCommonjs) {
|
|
54
|
-
return {
|
|
55
|
-
loader: 'js',
|
|
56
|
-
contents: commonJsTemplate({
|
|
57
|
-
importPath: args.path,
|
|
58
|
-
}),
|
|
59
|
-
resolveDir,
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
loader: 'js',
|
|
64
|
-
contents,
|
|
65
|
-
resolveDir,
|
|
66
|
-
};
|
|
67
|
-
} catch (e) {
|
|
68
|
-
console.error('node-modules-polyfill', e);
|
|
69
|
-
return {
|
|
70
|
-
contents: `export {}`,
|
|
71
|
-
loader: 'js',
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
onLoad({filter: /.*/, namespace}, loader);
|
|
76
|
-
onLoad({filter: /.*/, namespace: commonjsNamespace}, loader);
|
|
77
|
-
const filter = new RegExp(
|
|
78
|
-
polyfilledBuiltinsNames.map(escapeStringRegexp).join('|') // TODO builtins could end with slash, keep in mind in regex
|
|
79
|
-
);
|
|
80
|
-
async function resolver(args) {
|
|
81
|
-
const ignoreRequire = args.namespace === commonjsNamespace;
|
|
82
|
-
|
|
83
|
-
let key;
|
|
84
|
-
if (args.path.startsWith('\0polyfill-node.')) {
|
|
85
|
-
key = args.path.replace('\0polyfill-node.', '');
|
|
86
|
-
} else {
|
|
87
|
-
if (args.path.startsWith('.')) {
|
|
88
|
-
key = path.join(path.dirname(args.importer), args.path);
|
|
89
|
-
} else {
|
|
90
|
-
key = args.path;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
if (!polyfilledBuiltins.has(key) && !polyfillLib[key + '.js']) {
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
const isCommonjs =
|
|
99
|
-
!ignoreRequire && args.kind === 'require-call';
|
|
100
|
-
|
|
101
|
-
return {
|
|
102
|
-
namespace: isCommonjs ? commonjsNamespace : namespace,
|
|
103
|
-
path: key,
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
onResolve({filter}, resolver);
|
|
107
|
-
onResolve({filter: /.*/, namespace}, resolver);
|
|
108
|
-
},
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
function commonJsTemplate({importPath}) {
|
|
113
|
-
return `
|
|
114
|
-
const polyfill = require('${importPath}')
|
|
115
|
-
|
|
116
|
-
if (polyfill && polyfill.default) {
|
|
117
|
-
module.exports = polyfill.default
|
|
118
|
-
for (let k in polyfill) {
|
|
119
|
-
module.exports[k] = polyfill[k]
|
|
120
|
-
}
|
|
121
|
-
} else if (polyfill) {
|
|
122
|
-
module.exports = polyfill
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
`;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export {nodeModulesPolyfillPlugin};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2018 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
type Locale = import('../lhr/settings.js').Locale;
|
|
8
|
-
|
|
9
|
-
declare module 'lookup-closest-locale' {
|
|
10
|
-
function lookupClosestLocale(locale: string[]|string|undefined, available: Record<Locale, any>): Locale|undefined;
|
|
11
|
-
|
|
12
|
-
export = lookupClosestLocale;
|
|
13
|
-
}
|