chrome-devtools-mcp 1.7.0 → 1.9.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 (74) hide show
  1. package/README.md +20 -874
  2. package/build/src/McpContext.js +98 -45
  3. package/build/src/McpPage.js +10 -4
  4. package/build/src/McpResponse.js +22 -4
  5. package/build/src/ToolHandler.js +81 -57
  6. package/build/src/bin/chrome-devtools-mcp-main.js +4 -4
  7. package/build/src/bin/chrome-devtools.js +29 -30
  8. package/build/src/browser.js +8 -17
  9. package/build/src/{PageCollector.js → collectors/PageCollector.js} +7 -7
  10. package/build/src/{ServiceWorkerCollector.js → collectors/ServiceWorkerCollector.js} +1 -1
  11. package/build/src/config/browser-options.js +123 -0
  12. package/build/src/config/category-options.js +80 -0
  13. package/build/src/{bin/chrome-devtools-cli-options.js → config/cli-options.js} +380 -25
  14. package/build/src/{bin/chrome-devtools-mcp-cli-options.js → config/mcp-options.js} +113 -148
  15. package/build/src/daemon/client.js +11 -2
  16. package/build/src/daemon/daemon.js +2 -2
  17. package/build/src/daemon/utils.js +6 -0
  18. package/build/src/devtools/DevtoolsUtils.js +29 -35
  19. package/build/src/formatters/ConsoleFormatter.js +43 -10
  20. package/build/src/formatters/HeapSnapshotFormatter.js +10 -2
  21. package/build/src/formatters/IssueFormatter.js +1 -1
  22. package/build/src/formatters/NetworkFormatter.js +12 -9
  23. package/build/src/index.js +185 -91
  24. package/build/src/{HeapSnapshotManager.js → processors/HeapSnapshotManager.js} +21 -5
  25. package/build/src/{trace-processing/parse.js → processors/PerformanceTrace.js} +1 -1
  26. package/build/src/telemetry/ClearcutLogger.js +18 -5
  27. package/build/src/telemetry/flagUtils.js +4 -3
  28. package/build/src/telemetry/types.js +4 -0
  29. package/build/src/third_party/THIRD_PARTY_NOTICES +8 -65
  30. package/build/src/third_party/bundled-packages.json +4 -4
  31. package/build/src/third_party/devtools-formatter-worker.js +22 -0
  32. package/build/src/third_party/devtools-heap-snapshot-worker.js +296 -42
  33. package/build/src/third_party/index.js +38728 -37176
  34. package/build/src/third_party/issue-descriptions/connectionAllowlistEmbeddingRequirementNotSatisfied.md +26 -0
  35. package/build/src/third_party/issue-descriptions/connectionAllowlistIFrameAttributeLoosensEmbeddingRequirement.md +19 -0
  36. package/build/src/third_party/issue-descriptions/connectionAllowlistInvalidAllowConnectionAllowlistFrom.md +21 -0
  37. package/build/src/third_party/issue-descriptions/federatedAuthRequestAccountsBlockedByConnectionAllowlist.md +1 -0
  38. package/build/src/third_party/issue-descriptions/federatedAuthRequestConfigBlockedByConnectionAllowlist.md +1 -0
  39. package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenBlockedByConnectionAllowlist.md +1 -0
  40. package/build/src/third_party/issue-descriptions/federatedAuthRequestWellKnownBlockedByConnectionAllowlist.md +1 -0
  41. package/build/src/tools/ToolDefinition.js +15 -0
  42. package/build/src/tools/categories.js +2 -5
  43. package/build/src/tools/console.js +9 -3
  44. package/build/src/tools/emulation.js +2 -2
  45. package/build/src/tools/extensions.js +7 -5
  46. package/build/src/tools/input.js +26 -16
  47. package/build/src/tools/lighthouse.js +3 -1
  48. package/build/src/tools/memory.js +112 -16
  49. package/build/src/tools/network.js +7 -4
  50. package/build/src/tools/pages.js +34 -23
  51. package/build/src/tools/performance.js +16 -25
  52. package/build/src/tools/pwa.js +128 -0
  53. package/build/src/tools/screencast.js +7 -4
  54. package/build/src/tools/screenshot.js +42 -9
  55. package/build/src/tools/script.js +29 -8
  56. package/build/src/tools/slim/tools.js +43 -35
  57. package/build/src/tools/snapshot.js +5 -3
  58. package/build/src/tools/thirdPartyDeveloper.js +2 -2
  59. package/build/src/tools/tools.js +2 -0
  60. package/build/src/tools/webmcp.js +2 -2
  61. package/build/src/{WaitForHelper.js → utils/WaitForHelper.js} +74 -38
  62. package/build/src/utils/bytes.js +105 -0
  63. package/build/src/utils/logger.js +25 -11
  64. package/build/src/utils/url.js +73 -0
  65. package/build/src/version.js +1 -1
  66. package/package.json +21 -13
  67. package/skills/a11y-debugging/SKILL.md +2 -0
  68. package/skills/chrome-devtools/SKILL.md +5 -4
  69. package/skills/chrome-devtools-cli/SKILL.md +103 -64
  70. package/skills/cookie-debugging/SKILL.md +149 -0
  71. package/skills/debug-optimize-lcp/SKILL.md +9 -9
  72. package/skills/memory-leak-debugging/SKILL.md +6 -2
  73. package/skills/troubleshooting/SKILL.md +1 -0
  74. package/build/src/utils/string.js +0 -37
@@ -5,12 +5,19 @@
5
5
  */
6
6
  import fsSync from 'node:fs';
7
7
  import path from 'node:path';
8
- import { DevTools } from './third_party/index.js';
9
- import { createIdGenerator, stableIdSymbol, } from './utils/id.js';
8
+ import { DevTools } from '../third_party/index.js';
9
+ import { createIdGenerator, stableIdSymbol, } from '../utils/id.js';
10
+ const VALID_EXTENSIONS = ['.heapsnapshot', '.heaptimeline'];
11
+ function hasValidHeapSnapshotExtension(filePath) {
12
+ return VALID_EXTENSIONS.some(ext => filePath.endsWith(ext));
13
+ }
10
14
  export class HeapSnapshotManager {
11
15
  #snapshotIdGenerator = createIdGenerator();
12
16
  #snapshots = new Map();
13
17
  async getSnapshot(filePath) {
18
+ if (!hasValidHeapSnapshotExtension(filePath)) {
19
+ throw new Error(`File ${filePath} must have a .heapsnapshot or .heaptimeline extension.`);
20
+ }
14
21
  const absolutePath = path.resolve(filePath);
15
22
  const cached = this.#snapshots.get(absolutePath);
16
23
  if (cached) {
@@ -72,6 +79,10 @@ export class HeapSnapshotManager {
72
79
  const snapshot = await this.getSnapshot(filePath);
73
80
  return await snapshot.getNativeContextSizes();
74
81
  }
82
+ async getRetainedByContextSummary(filePath) {
83
+ const snapshot = await this.getSnapshot(filePath);
84
+ return await snapshot.getRetainedByContextSummary();
85
+ }
75
86
  async getOrCreateIdForClassKey(filePath, classKey) {
76
87
  const cached = this.#getCachedSnapshot(filePath);
77
88
  let id = cached.classKeyToId.get(classKey);
@@ -126,13 +137,13 @@ export class HeapSnapshotManager {
126
137
  }
127
138
  return await snapshot.getDominatorsOf(nodeIndex);
128
139
  }
129
- async getEdges(filePath, nodeId) {
140
+ async getEdges(filePath, nodeId, options) {
130
141
  const snapshot = await this.getSnapshot(filePath);
131
142
  const nodeIndex = await snapshot.nodeIndexForId(nodeId);
132
143
  if (nodeIndex === undefined) {
133
144
  throw new Error(`Node with ID ${nodeId} not found`);
134
145
  }
135
- const provider = snapshot.createEdgesProvider(nodeIndex);
146
+ const provider = snapshot.createEdgesProvider(nodeIndex, options);
136
147
  return await provider.serializeItemsRange(0, Infinity);
137
148
  }
138
149
  async getClassDiffs(baseFilePath, currentFilePath) {
@@ -201,7 +212,7 @@ export class HeapSnapshotManager {
201
212
  async #loadSnapshot(absolutePath, uid) {
202
213
  const workerProxy = new DevTools.HeapSnapshotModel.HeapSnapshotProxy.HeapSnapshotWorkerProxy(() => {
203
214
  /* noop */
204
- }, DevTools.Common.Console.Console.instance(), import.meta.resolve('./third_party/devtools-heap-snapshot-worker.js'));
215
+ }, DevTools.Common.Console.Console.instance(), import.meta.resolve('../third_party/devtools-heap-snapshot-worker.js'));
205
216
  try {
206
217
  const { promise: snapshotPromise, resolve: resolveSnapshot } = Promise.withResolvers();
207
218
  const loaderProxy = workerProxy.createLoader(uid, snapshotProxy => {
@@ -231,6 +242,11 @@ export class HeapSnapshotManager {
231
242
  const snapshot = await this.getSnapshot(filePath);
232
243
  return await snapshot.getDuplicateStrings();
233
244
  }
245
+ async queryObjects(filePath, options) {
246
+ const snapshot = await this.getSnapshot(filePath);
247
+ const provider = snapshot.queryObjects(options);
248
+ return await provider.serializeItemsRange(0, Infinity);
249
+ }
234
250
  hasSnapshots() {
235
251
  return this.#snapshots.size > 0;
236
252
  }
@@ -82,4 +82,4 @@ export function getInsightOutput(result, insightSetId, insightName, deviceScope)
82
82
  const formatter = new DevTools.PerformanceInsightFormatter(DevTools.AgentFocus.fromParsedTrace(result.parsedTrace), matchingInsight, deviceScope);
83
83
  return { output: formatter.formatInsight() };
84
84
  }
85
- //# sourceMappingURL=parse.js.map
85
+ //# sourceMappingURL=PerformanceTrace.js.map
@@ -6,7 +6,7 @@
6
6
  import process from 'node:process';
7
7
  import { DAEMON_CLIENT_NAME } from '../daemon/utils.js';
8
8
  import { logger } from '../utils/logger.js';
9
- import { sanitizeParams, stripUnderscoreBeforeNumber } from './transformation.js';
9
+ import { bucketizeLatency, buildContext, sanitizeParams, stripUnderscoreBeforeNumber, } from './transformation.js';
10
10
  import { McpClient, WatchdogMessageType, OsType, } from './types.js';
11
11
  import { WatchdogClient } from './WatchdogClient.js';
12
12
  const MS_PER_DAY = 24 * 60 * 60 * 1000;
@@ -58,7 +58,10 @@ export class ClearcutLogger {
58
58
  }
59
59
  setClientName(clientName) {
60
60
  const lowerName = clientName.toLowerCase();
61
- if (lowerName.includes('claude')) {
61
+ if (lowerName.includes('claude-desktop')) {
62
+ this.#mcpClient = McpClient.MCP_CLIENT_CLAUDE_DESKTOP;
63
+ }
64
+ else if (lowerName.includes('claude')) {
62
65
  this.#mcpClient = McpClient.MCP_CLIENT_CLAUDE_CODE;
63
66
  }
64
67
  else if (lowerName.includes('gemini')) {
@@ -70,25 +73,35 @@ export class ClearcutLogger {
70
73
  else if (lowerName.includes('openclaw')) {
71
74
  this.#mcpClient = McpClient.MCP_CLIENT_OPENCLAW;
72
75
  }
76
+ else if (lowerName.includes('opencode')) {
77
+ this.#mcpClient = McpClient.MCP_CLIENT_OPENCODE;
78
+ }
73
79
  else if (lowerName.includes('codex')) {
74
80
  this.#mcpClient = McpClient.MCP_CLIENT_CODEX;
75
81
  }
76
82
  else if (lowerName.includes('antigravity')) {
77
83
  this.#mcpClient = McpClient.MCP_CLIENT_ANTIGRAVITY;
78
84
  }
85
+ else if (lowerName.includes('grok') || lowerName.includes('xai')) {
86
+ this.#mcpClient = McpClient.MCP_CLIENT_GROK;
87
+ }
88
+ else if (lowerName.includes('copilot')) {
89
+ this.#mcpClient = McpClient.MCP_CLIENT_GITHUB_COPILOT;
90
+ }
79
91
  else {
80
92
  this.#mcpClient = McpClient.MCP_CLIENT_OTHER;
81
93
  }
82
94
  }
83
95
  async logToolInvocation(args) {
96
+ const context = buildContext(args.devToolsData, args.pageUrl);
84
97
  const sanitizedToolName = stripUnderscoreBeforeNumber(args.toolName);
85
98
  const tool_invocation = {
86
99
  tool_name: sanitizedToolName,
87
100
  success: args.success,
88
- latency_ms: args.latencyMs,
101
+ latency_ms: bucketizeLatency(args.latencyMs),
89
102
  };
90
- if (Object.keys(args.context).length > 0) {
91
- tool_invocation.context = args.context;
103
+ if (Object.keys(context).length > 0) {
104
+ tool_invocation.context = context;
92
105
  }
93
106
  if (Object.keys(args.params).length > 0) {
94
107
  tool_invocation.tool_params = {
@@ -3,8 +3,9 @@
3
3
  * Copyright 2026 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { toSnakeCase } from '../utils/string.js';
6
+ import { DevTools } from '../third_party/index.js';
7
7
  import { stripUnderscoreBeforeNumber } from './transformation.js';
8
+ const { StringUtilities } = DevTools.Platform;
8
9
  /**
9
10
  * For enums, log the value as uppercase.
10
11
  * We're going to have an enum for such flags with choices represented
@@ -30,7 +31,7 @@ export function computeFlagUsage(args, options) {
30
31
  const usage = {};
31
32
  for (const [flagName, config] of Object.entries(options)) {
32
33
  const value = args[flagName];
33
- const snakeCaseName = stripUnderscoreBeforeNumber(toSnakeCase(flagName));
34
+ const snakeCaseName = stripUnderscoreBeforeNumber(StringUtilities.toSnakeCase(flagName));
34
35
  // If there isn't a default value provided for the flag,
35
36
  // we're going to log whether it's present on the args user
36
37
  // provided or not. If there is a default value, we only log presence
@@ -59,7 +60,7 @@ export function computeFlagUsage(args, options) {
59
60
  export function getPossibleFlagMetrics(options) {
60
61
  const metrics = [];
61
62
  for (const [flagName, config] of Object.entries(options)) {
62
- const snakeCaseName = stripUnderscoreBeforeNumber(toSnakeCase(flagName));
63
+ const snakeCaseName = stripUnderscoreBeforeNumber(StringUtilities.toSnakeCase(flagName));
63
64
  // _present is always a possible metric
64
65
  metrics.push({
65
66
  name: `${snakeCaseName}_present`,
@@ -20,6 +20,10 @@ export var McpClient;
20
20
  McpClient[McpClient["MCP_CLIENT_OPENCLAW"] = 5] = "MCP_CLIENT_OPENCLAW";
21
21
  McpClient[McpClient["MCP_CLIENT_CODEX"] = 6] = "MCP_CLIENT_CODEX";
22
22
  McpClient[McpClient["MCP_CLIENT_ANTIGRAVITY"] = 7] = "MCP_CLIENT_ANTIGRAVITY";
23
+ McpClient[McpClient["MCP_CLIENT_GROK"] = 8] = "MCP_CLIENT_GROK";
24
+ McpClient[McpClient["MCP_CLIENT_OPENCODE"] = 9] = "MCP_CLIENT_OPENCODE";
25
+ McpClient[McpClient["MCP_CLIENT_CLAUDE_DESKTOP"] = 10] = "MCP_CLIENT_CLAUDE_DESKTOP";
26
+ McpClient[McpClient["MCP_CLIENT_GITHUB_COPILOT"] = 11] = "MCP_CLIENT_GITHUB_COPILOT";
23
27
  McpClient[McpClient["MCP_CLIENT_OTHER"] = 3] = "MCP_CLIENT_OTHER";
24
28
  })(McpClient || (McpClient = {}));
25
29
  // IPC types for messages between the main process and the
@@ -1,6 +1,6 @@
1
1
  Name: core-js
2
2
  URL: https://core-js.io
3
- Version: 3.49.0
3
+ Version: 3.50.0
4
4
  License: MIT
5
5
 
6
6
  Copyright (c) 2013–2025 Denis Pushkarev (zloirock.ru)
@@ -317,65 +317,6 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
317
317
  IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
318
318
 
319
319
 
320
- -------------------- DEPENDENCY DIVIDER --------------------
321
-
322
- Name: debug
323
- URL: git://github.com/debug-js/debug.git
324
- Version: 4.4.3
325
- License: MIT
326
-
327
- (The MIT License)
328
-
329
- Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
330
- Copyright (c) 2018-2021 Josh Junon
331
-
332
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software
333
- and associated documentation files (the 'Software'), to deal in the Software without restriction,
334
- including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
335
- and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
336
- subject to the following conditions:
337
-
338
- The above copyright notice and this permission notice shall be included in all copies or substantial
339
- portions of the Software.
340
-
341
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
342
- LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
343
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
344
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
345
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
346
-
347
-
348
-
349
- -------------------- DEPENDENCY DIVIDER --------------------
350
-
351
- Name: ms
352
- URL: vercel/ms
353
- Version: 2.1.3
354
- License: MIT
355
-
356
- The MIT License (MIT)
357
-
358
- Copyright (c) 2020 Vercel, Inc.
359
-
360
- Permission is hereby granted, free of charge, to any person obtaining a copy
361
- of this software and associated documentation files (the "Software"), to deal
362
- in the Software without restriction, including without limitation the rights
363
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
364
- copies of the Software, and to permit persons to whom the Software is
365
- furnished to do so, subject to the following conditions:
366
-
367
- The above copyright notice and this permission notice shall be included in all
368
- copies or substantial portions of the Software.
369
-
370
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
371
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
372
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
373
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
374
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
375
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
376
- SOFTWARE.
377
-
378
-
379
320
  -------------------- DEPENDENCY DIVIDER --------------------
380
321
 
381
322
  Name: zod
@@ -554,7 +495,7 @@ SOFTWARE.
554
495
 
555
496
  Name: fast-uri
556
497
  URL: https://github.com/fastify/fast-uri
557
- Version: 3.1.5
498
+ Version: 3.1.7
558
499
  License: BSD-3-Clause
559
500
 
560
501
  Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae
@@ -804,21 +745,21 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
804
745
 
805
746
  Name: puppeteer-core
806
747
  URL: https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer-core
807
- Version: 25.5.0
748
+ Version: 25.10.0
808
749
  License: Apache-2.0
809
750
 
810
751
  -------------------- DEPENDENCY DIVIDER --------------------
811
752
 
812
753
  Name: @puppeteer/browsers
813
754
  URL: https://github.com/puppeteer/puppeteer/tree/main/packages/browsers
814
- Version: 3.1.0
755
+ Version: 3.2.2
815
756
  License: Apache-2.0
816
757
 
817
758
  -------------------- DEPENDENCY DIVIDER --------------------
818
759
 
819
760
  Name: ws
820
761
  URL: https://github.com/websockets/ws
821
- Version: 8.21.1
762
+ Version: 8.21.3
822
763
  License: MIT
823
764
 
824
765
  Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.com>
@@ -852,7 +793,9 @@ License: MIT
852
793
 
853
794
  -------------------- DEPENDENCY DIVIDER --------------------
854
795
 
855
- Name: chrome-devtools-frontend
796
+ Name: devtools-frontend
797
+ URL: https://github.com/ChromeDevTools/devtools-frontend
798
+ Version: d1a4fbfd673fecf19981c27b3a461f9881eebe8e
856
799
  License: Apache-2.0
857
800
 
858
801
  // Copyright 2014 The Chromium Authors
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "@modelcontextprotocol/sdk": "1.30.0",
3
- "core-js": "3.49.0",
4
- "debug": "4.4.3",
5
- "lighthouse": "13.4.0",
3
+ "core-js": "3.50.0",
4
+ "lighthouse": "13.4.1",
6
5
  "semver": "7.8.5",
7
6
  "yargs": "18.1.0",
8
- "puppeteer-core": "25.5.0"
7
+ "puppeteer-core": "25.10.0",
8
+ "https://github.com/ChromeDevTools/devtools-frontend": "d1a4fbfd673fecf19981c27b3a461f9881eebe8e"
9
9
  }
@@ -8557,6 +8557,16 @@ class ColorConverter {
8557
8557
  const rgbOutput = NAMED_GAMUTS.displayP3_INVERSE.multiply(xyzInput);
8558
8558
  return applyTransferFns(NAMED_TRANSFER_FN.sRGB_INVERSE, rgbOutput.values[0], rgbOutput.values[1], rgbOutput.values[2]);
8559
8559
  }
8560
+ static displayP3LinearToXyzd50(r, g, b) {
8561
+ const rgbInput = new Vector3([r, g, b]);
8562
+ const xyzOutput = NAMED_GAMUTS.displayP3.multiply(rgbInput);
8563
+ return xyzOutput.values;
8564
+ }
8565
+ static xyzd50ToDisplayP3Linear(x, y, z) {
8566
+ const xyzInput = new Vector3([x, y, z]);
8567
+ const rgbResult = NAMED_GAMUTS.displayP3_INVERSE.multiply(xyzInput);
8568
+ return rgbResult.values;
8569
+ }
8560
8570
  static proPhotoToXyzd50(r, g, b) {
8561
8571
  const [mappedR, mappedG, mappedB] = applyTransferFns(NAMED_TRANSFER_FN.proPhotoRGB, r, g, b);
8562
8572
  const rgbInput = new Vector3([mappedR, mappedG, mappedB]);
@@ -8756,6 +8766,8 @@ function getColorSpace(colorSpaceText) {
8756
8766
  return "srgb-linear" ;
8757
8767
  case "display-p3" :
8758
8768
  return "display-p3" ;
8769
+ case "display-p3-linear" :
8770
+ return "display-p3-linear" ;
8759
8771
  case "a98-rgb" :
8760
8772
  return "a98-rgb" ;
8761
8773
  case "prophoto-rgb" :
@@ -8974,6 +8986,7 @@ class Lab {
8974
8986
  ["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
8975
8987
  ["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
8976
8988
  ["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
8989
+ ["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
8977
8990
  ["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
8978
8991
  ["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
8979
8992
  ["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
@@ -9090,6 +9103,7 @@ class LCH {
9090
9103
  ["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
9091
9104
  ["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
9092
9105
  ["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
9106
+ ["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
9093
9107
  ["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
9094
9108
  ["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
9095
9109
  ["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
@@ -9208,6 +9222,7 @@ class Oklab {
9208
9222
  ["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
9209
9223
  ["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
9210
9224
  ["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
9225
+ ["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
9211
9226
  ["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
9212
9227
  ["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
9213
9228
  ["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
@@ -9324,6 +9339,7 @@ class Oklch {
9324
9339
  ["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
9325
9340
  ["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
9326
9341
  ["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
9342
+ ["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
9327
9343
  ["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
9328
9344
  ["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
9329
9345
  ["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
@@ -9443,6 +9459,7 @@ class ColorFunction {
9443
9459
  ["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
9444
9460
  ["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
9445
9461
  ["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
9462
+ ["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
9446
9463
  ["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
9447
9464
  ["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
9448
9465
  ["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
@@ -9459,6 +9476,8 @@ class ColorFunction {
9459
9476
  return ColorConverter.srgbLinearToXyzd50(p0, p1, p2);
9460
9477
  case "display-p3" :
9461
9478
  return ColorConverter.displayP3ToXyzd50(p0, p1, p2);
9479
+ case "display-p3-linear" :
9480
+ return ColorConverter.displayP3LinearToXyzd50(p0, p1, p2);
9462
9481
  case "a98-rgb" :
9463
9482
  return ColorConverter.adobeRGBToXyzd50(p0, p1, p2);
9464
9483
  case "prophoto-rgb" :
@@ -9614,6 +9633,7 @@ class HSL {
9614
9633
  ["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
9615
9634
  ["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
9616
9635
  ["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
9636
+ ["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
9617
9637
  ["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
9618
9638
  ["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
9619
9639
  ["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
@@ -9741,6 +9761,7 @@ class HWB {
9741
9761
  ["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
9742
9762
  ["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
9743
9763
  ["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
9764
+ ["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
9744
9765
  ["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
9745
9766
  ["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
9746
9767
  ["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
@@ -9969,6 +9990,7 @@ class Legacy {
9969
9990
  ["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
9970
9991
  ["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
9971
9992
  ["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
9993
+ ["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
9972
9994
  ["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
9973
9995
  ["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
9974
9996
  ["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),