chrome-devtools-frontend 1.0.1642899 → 1.0.1643099

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 (93) hide show
  1. package/front_end/core/protocol_client/InspectorBackend.ts +4 -0
  2. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +4 -5
  3. package/front_end/generated/InspectorBackendCommands.ts +1 -1
  4. package/front_end/generated/protocol.ts +7 -0
  5. package/front_end/models/ai_assistance/AiAgent2.ts +23 -5
  6. package/front_end/models/ai_assistance/AiConversation.ts +15 -12
  7. package/front_end/models/ai_assistance/AiUtils.ts +71 -0
  8. package/front_end/models/ai_assistance/ChangeManager.ts +2 -5
  9. package/front_end/models/ai_assistance/{agents/ConversationSummaryAgent.ts → ConversationSummary.ts} +29 -66
  10. package/front_end/models/ai_assistance/ExtensionScope.ts +1 -4
  11. package/front_end/models/ai_assistance/{agents/PerformanceAnnotationsAgent.ts → PerformanceAnnotations.ts} +47 -89
  12. package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +31 -21
  13. package/front_end/models/ai_assistance/agents/AiAgent.ts +21 -6
  14. package/front_end/models/ai_assistance/agents/ContextSelectionAgent.snapshot.txt +11 -0
  15. package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +53 -3
  16. package/front_end/models/ai_assistance/agents/ExecuteJavascript.ts +2 -0
  17. package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +72 -79
  18. package/front_end/models/ai_assistance/agents/StorageAgent.ts +47 -38
  19. package/front_end/models/ai_assistance/agents/StylingAgent.ts +22 -21
  20. package/front_end/models/ai_assistance/ai_assistance.ts +6 -4
  21. package/front_end/models/ai_assistance/skills/styling.md +12 -4
  22. package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +140 -0
  23. package/front_end/models/ai_assistance/tools/GetStyles.ts +6 -2
  24. package/front_end/models/ai_assistance/tools/Tool.ts +10 -1
  25. package/front_end/models/ai_assistance/tools/ToolRegistry.ts +2 -0
  26. package/front_end/models/heap_snapshot/HeapSnapshotProxy.ts +5 -7
  27. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +6 -7
  28. package/front_end/panels/ai_assistance/components/ChatMessage.ts +96 -4
  29. package/front_end/panels/ai_assistance/components/chatMessage.css +6 -0
  30. package/front_end/panels/application/components/AdsView.ts +219 -0
  31. package/front_end/panels/application/components/adsView.css +54 -0
  32. package/front_end/panels/application/components/components.ts +2 -0
  33. package/front_end/panels/console/SymbolizedErrorWidget.ts +73 -22
  34. package/front_end/panels/network/NetworkLogView.ts +5 -1
  35. package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +5 -4
  36. package/front_end/third_party/chromium/README.chromium +1 -1
  37. package/front_end/third_party/lighthouse/README.chromium +2 -2
  38. package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1607 -5733
  39. package/front_end/third_party/lighthouse/locales/ar-XB.json +290 -65
  40. package/front_end/third_party/lighthouse/locales/ar.json +290 -65
  41. package/front_end/third_party/lighthouse/locales/bg.json +290 -65
  42. package/front_end/third_party/lighthouse/locales/ca.json +295 -70
  43. package/front_end/third_party/lighthouse/locales/cs.json +290 -65
  44. package/front_end/third_party/lighthouse/locales/da.json +294 -69
  45. package/front_end/third_party/lighthouse/locales/de.json +295 -70
  46. package/front_end/third_party/lighthouse/locales/el.json +290 -65
  47. package/front_end/third_party/lighthouse/locales/en-GB.json +290 -65
  48. package/front_end/third_party/lighthouse/locales/en-US.json +79 -67
  49. package/front_end/third_party/lighthouse/locales/en-XA.json +253 -64
  50. package/front_end/third_party/lighthouse/locales/en-XL.json +79 -67
  51. package/front_end/third_party/lighthouse/locales/es-419.json +290 -65
  52. package/front_end/third_party/lighthouse/locales/es.json +298 -73
  53. package/front_end/third_party/lighthouse/locales/fi.json +290 -65
  54. package/front_end/third_party/lighthouse/locales/fil.json +290 -65
  55. package/front_end/third_party/lighthouse/locales/fr.json +294 -69
  56. package/front_end/third_party/lighthouse/locales/he.json +293 -68
  57. package/front_end/third_party/lighthouse/locales/hi.json +291 -66
  58. package/front_end/third_party/lighthouse/locales/hr.json +290 -65
  59. package/front_end/third_party/lighthouse/locales/hu.json +290 -65
  60. package/front_end/third_party/lighthouse/locales/id.json +290 -65
  61. package/front_end/third_party/lighthouse/locales/it.json +294 -69
  62. package/front_end/third_party/lighthouse/locales/ja.json +290 -65
  63. package/front_end/third_party/lighthouse/locales/ko.json +290 -65
  64. package/front_end/third_party/lighthouse/locales/lt.json +290 -65
  65. package/front_end/third_party/lighthouse/locales/lv.json +290 -65
  66. package/front_end/third_party/lighthouse/locales/nl.json +290 -65
  67. package/front_end/third_party/lighthouse/locales/no.json +290 -65
  68. package/front_end/third_party/lighthouse/locales/pl.json +290 -65
  69. package/front_end/third_party/lighthouse/locales/pt-PT.json +291 -66
  70. package/front_end/third_party/lighthouse/locales/pt.json +290 -65
  71. package/front_end/third_party/lighthouse/locales/ro.json +290 -65
  72. package/front_end/third_party/lighthouse/locales/ru.json +301 -76
  73. package/front_end/third_party/lighthouse/locales/sk.json +291 -66
  74. package/front_end/third_party/lighthouse/locales/sl.json +290 -65
  75. package/front_end/third_party/lighthouse/locales/sr-Latn.json +290 -65
  76. package/front_end/third_party/lighthouse/locales/sr.json +290 -65
  77. package/front_end/third_party/lighthouse/locales/sv.json +297 -72
  78. package/front_end/third_party/lighthouse/locales/ta.json +291 -66
  79. package/front_end/third_party/lighthouse/locales/te.json +293 -68
  80. package/front_end/third_party/lighthouse/locales/th.json +291 -66
  81. package/front_end/third_party/lighthouse/locales/tr.json +290 -65
  82. package/front_end/third_party/lighthouse/locales/uk.json +290 -65
  83. package/front_end/third_party/lighthouse/locales/vi.json +291 -66
  84. package/front_end/third_party/lighthouse/locales/zh-HK.json +292 -67
  85. package/front_end/third_party/lighthouse/locales/zh-TW.json +291 -66
  86. package/front_end/third_party/lighthouse/locales/zh.json +291 -66
  87. package/front_end/third_party/lighthouse/report/bundle.d.ts +6 -6
  88. package/front_end/third_party/lighthouse/report/bundle.js +4 -7
  89. package/front_end/third_party/lighthouse/report-assets/report-generator.mjs +2 -2
  90. package/front_end/ui/legacy/Widget.ts +32 -8
  91. package/front_end/ui/visual_logging/KnownContextValues.ts +2 -0
  92. package/mcp/mcp.ts +1 -0
  93. package/package.json +1 -1
@@ -118,13 +118,31 @@ function cancelUpdate(widget: AnyWidget): void {
118
118
  }
119
119
  }
120
120
 
121
+ function resolveOverallUpdatePromise(): void {
122
+ if (currentlyProcessed.size === 0 && (!currentUpdateQueue || currentUpdateQueue.size === 0) &&
123
+ nextUpdateQueue.size === 0 && !pendingAnimationFrame && overallUpdatePromise) {
124
+ overallUpdatePromise.resolve();
125
+ overallUpdatePromise = null;
126
+ }
127
+ }
128
+
121
129
  function runNextUpdate(): void {
122
130
  pendingAnimationFrame = null;
123
131
  if (!currentUpdateQueue) {
124
132
  currentUpdateQueue = nextUpdateQueue;
125
133
  nextUpdateQueue = new Map();
126
134
  }
127
- for (const [widget, {resolve}] of currentUpdateQueue) {
135
+ for (const [widget, update] of currentUpdateQueue) {
136
+ if (currentlyProcessed.has(widget)) {
137
+ const scheduledUpdate = nextUpdateQueue.get(widget);
138
+ if (!scheduledUpdate) {
139
+ nextUpdateQueue.set(widget, update);
140
+ } else {
141
+ void scheduledUpdate.promise.then(update.resolve);
142
+ }
143
+ continue;
144
+ }
145
+ const {resolve} = update;
128
146
  currentlyProcessed.add(widget);
129
147
  void (async () => {
130
148
  try {
@@ -132,7 +150,17 @@ function runNextUpdate(): void {
132
150
  widget.addUpdateController(controller);
133
151
  await widget.performUpdate(controller.signal);
134
152
  } finally {
135
- resolve();
153
+ currentlyProcessed.delete(widget);
154
+ const nextUpdate = nextUpdateQueue.get(widget);
155
+ if (nextUpdate) {
156
+ void nextUpdate.promise.then(resolve);
157
+ if (pendingAnimationFrame === null) {
158
+ pendingAnimationFrame = requestAnimationFrame(runNextUpdate);
159
+ }
160
+ } else {
161
+ resolve();
162
+ }
163
+ resolveOverallUpdatePromise();
136
164
  }
137
165
  })().catch(e => {
138
166
  if (e.name !== 'AbortError') {
@@ -146,11 +174,7 @@ function runNextUpdate(): void {
146
174
  runNextUpdate();
147
175
  } else {
148
176
  currentUpdateQueue = null;
149
- currentlyProcessed.clear();
150
- if (!pendingAnimationFrame && overallUpdatePromise) {
151
- overallUpdatePromise.resolve();
152
- overallUpdatePromise = null;
153
- }
177
+ resolveOverallUpdatePromise();
154
178
  }
155
179
  });
156
180
  }
@@ -545,7 +569,7 @@ export class Widget<ContentTypeT extends HTMLElement|DocumentFragment = HTMLElem
545
569
  }
546
570
 
547
571
  static get allUpdatesComplete(): Promise<void> {
548
- if (!pendingAnimationFrame && !currentUpdateQueue) {
572
+ if (!pendingAnimationFrame && !currentUpdateQueue && currentlyProcessed.size === 0) {
549
573
  return Promise.resolve();
550
574
  }
551
575
  if (!overallUpdatePromise) {
@@ -2826,6 +2826,7 @@ export const knownContextValues = new Set([
2826
2826
  'network-record-film-strip-setting',
2827
2827
  'network-request',
2828
2828
  'network-request-general-headers-widget',
2829
+ 'network-requests-list-widget',
2829
2830
  'network-resource-type-filters',
2830
2831
  'network-settings',
2831
2832
  'network-show-blocked-cookies-only-setting',
@@ -3680,6 +3681,7 @@ export const knownContextValues = new Set([
3680
3681
  'show-all',
3681
3682
  'show-all-nodes',
3682
3683
  'show-all-properties',
3684
+ 'show-all-widget-requests-button',
3683
3685
  'show-as-javascript-object',
3684
3686
  'show-console-insight-teasers',
3685
3687
  'show-content-scripts',
package/mcp/mcp.ts CHANGED
@@ -48,6 +48,7 @@ export {
48
48
  createIssuesFromProtocolIssue,
49
49
  Events as IssuesManagerEvents,
50
50
  type EventTypes as IssuesManagerEventTypes,
51
+ isIssueCodeSupported,
51
52
  IssuesManager
52
53
  } from '../front_end/models/issues_manager/IssuesManager.js';
53
54
  export * as MarkdownIssueDescription from '../front_end/models/issues_manager/MarkdownIssueDescription.js';
package/package.json CHANGED
@@ -92,5 +92,5 @@
92
92
  "webidl2": "24.5.0",
93
93
  "yargs": "17.7.2"
94
94
  },
95
- "version": "1.0.1642899"
95
+ "version": "1.0.1643099"
96
96
  }