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.
- package/front_end/core/protocol_client/InspectorBackend.ts +4 -0
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +4 -5
- package/front_end/generated/InspectorBackendCommands.ts +1 -1
- package/front_end/generated/protocol.ts +7 -0
- package/front_end/models/ai_assistance/AiAgent2.ts +23 -5
- package/front_end/models/ai_assistance/AiConversation.ts +15 -12
- package/front_end/models/ai_assistance/AiUtils.ts +71 -0
- package/front_end/models/ai_assistance/ChangeManager.ts +2 -5
- package/front_end/models/ai_assistance/{agents/ConversationSummaryAgent.ts → ConversationSummary.ts} +29 -66
- package/front_end/models/ai_assistance/ExtensionScope.ts +1 -4
- package/front_end/models/ai_assistance/{agents/PerformanceAnnotationsAgent.ts → PerformanceAnnotations.ts} +47 -89
- package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +31 -21
- package/front_end/models/ai_assistance/agents/AiAgent.ts +21 -6
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.snapshot.txt +11 -0
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +53 -3
- package/front_end/models/ai_assistance/agents/ExecuteJavascript.ts +2 -0
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +72 -79
- package/front_end/models/ai_assistance/agents/StorageAgent.ts +47 -38
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +22 -21
- package/front_end/models/ai_assistance/ai_assistance.ts +6 -4
- package/front_end/models/ai_assistance/skills/styling.md +12 -4
- package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +140 -0
- package/front_end/models/ai_assistance/tools/GetStyles.ts +6 -2
- package/front_end/models/ai_assistance/tools/Tool.ts +10 -1
- package/front_end/models/ai_assistance/tools/ToolRegistry.ts +2 -0
- package/front_end/models/heap_snapshot/HeapSnapshotProxy.ts +5 -7
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +6 -7
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +96 -4
- package/front_end/panels/ai_assistance/components/chatMessage.css +6 -0
- package/front_end/panels/application/components/AdsView.ts +219 -0
- package/front_end/panels/application/components/adsView.css +54 -0
- package/front_end/panels/application/components/components.ts +2 -0
- package/front_end/panels/console/SymbolizedErrorWidget.ts +73 -22
- package/front_end/panels/network/NetworkLogView.ts +5 -1
- package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +5 -4
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/lighthouse/README.chromium +2 -2
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1607 -5733
- package/front_end/third_party/lighthouse/locales/ar-XB.json +290 -65
- package/front_end/third_party/lighthouse/locales/ar.json +290 -65
- package/front_end/third_party/lighthouse/locales/bg.json +290 -65
- package/front_end/third_party/lighthouse/locales/ca.json +295 -70
- package/front_end/third_party/lighthouse/locales/cs.json +290 -65
- package/front_end/third_party/lighthouse/locales/da.json +294 -69
- package/front_end/third_party/lighthouse/locales/de.json +295 -70
- package/front_end/third_party/lighthouse/locales/el.json +290 -65
- package/front_end/third_party/lighthouse/locales/en-GB.json +290 -65
- package/front_end/third_party/lighthouse/locales/en-US.json +79 -67
- package/front_end/third_party/lighthouse/locales/en-XA.json +253 -64
- package/front_end/third_party/lighthouse/locales/en-XL.json +79 -67
- package/front_end/third_party/lighthouse/locales/es-419.json +290 -65
- package/front_end/third_party/lighthouse/locales/es.json +298 -73
- package/front_end/third_party/lighthouse/locales/fi.json +290 -65
- package/front_end/third_party/lighthouse/locales/fil.json +290 -65
- package/front_end/third_party/lighthouse/locales/fr.json +294 -69
- package/front_end/third_party/lighthouse/locales/he.json +293 -68
- package/front_end/third_party/lighthouse/locales/hi.json +291 -66
- package/front_end/third_party/lighthouse/locales/hr.json +290 -65
- package/front_end/third_party/lighthouse/locales/hu.json +290 -65
- package/front_end/third_party/lighthouse/locales/id.json +290 -65
- package/front_end/third_party/lighthouse/locales/it.json +294 -69
- package/front_end/third_party/lighthouse/locales/ja.json +290 -65
- package/front_end/third_party/lighthouse/locales/ko.json +290 -65
- package/front_end/third_party/lighthouse/locales/lt.json +290 -65
- package/front_end/third_party/lighthouse/locales/lv.json +290 -65
- package/front_end/third_party/lighthouse/locales/nl.json +290 -65
- package/front_end/third_party/lighthouse/locales/no.json +290 -65
- package/front_end/third_party/lighthouse/locales/pl.json +290 -65
- package/front_end/third_party/lighthouse/locales/pt-PT.json +291 -66
- package/front_end/third_party/lighthouse/locales/pt.json +290 -65
- package/front_end/third_party/lighthouse/locales/ro.json +290 -65
- package/front_end/third_party/lighthouse/locales/ru.json +301 -76
- package/front_end/third_party/lighthouse/locales/sk.json +291 -66
- package/front_end/third_party/lighthouse/locales/sl.json +290 -65
- package/front_end/third_party/lighthouse/locales/sr-Latn.json +290 -65
- package/front_end/third_party/lighthouse/locales/sr.json +290 -65
- package/front_end/third_party/lighthouse/locales/sv.json +297 -72
- package/front_end/third_party/lighthouse/locales/ta.json +291 -66
- package/front_end/third_party/lighthouse/locales/te.json +293 -68
- package/front_end/third_party/lighthouse/locales/th.json +291 -66
- package/front_end/third_party/lighthouse/locales/tr.json +290 -65
- package/front_end/third_party/lighthouse/locales/uk.json +290 -65
- package/front_end/third_party/lighthouse/locales/vi.json +291 -66
- package/front_end/third_party/lighthouse/locales/zh-HK.json +292 -67
- package/front_end/third_party/lighthouse/locales/zh-TW.json +291 -66
- package/front_end/third_party/lighthouse/locales/zh.json +291 -66
- package/front_end/third_party/lighthouse/report/bundle.d.ts +6 -6
- package/front_end/third_party/lighthouse/report/bundle.js +4 -7
- package/front_end/third_party/lighthouse/report-assets/report-generator.mjs +2 -2
- package/front_end/ui/legacy/Widget.ts +32 -8
- package/front_end/ui/visual_logging/KnownContextValues.ts +2 -0
- package/mcp/mcp.ts +1 -0
- 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,
|
|
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
|
-
|
|
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
|
-
|
|
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