chrome-devtools-frontend 1.0.1642899 → 1.0.1643855
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/eslint.config.mjs +3 -1
- package/extension-api/ExtensionAPI.d.ts +83 -12
- package/front_end/core/host/UserMetrics.ts +0 -1
- package/front_end/core/protocol_client/InspectorBackend.ts +4 -0
- package/front_end/core/root/ExperimentNames.ts +0 -1
- package/front_end/core/sdk/ConsoleModel.ts +4 -0
- package/front_end/core/sdk/NetworkRequest.ts +12 -0
- package/front_end/core/sdk/SourceMap.ts +15 -18
- package/front_end/entrypoints/greendev_floaty/FloatyEntrypoint.ts +0 -2
- package/front_end/entrypoints/greendev_floaty/greendev_floaty.ts +0 -2
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +4 -5
- package/front_end/entrypoints/main/MainImpl.ts +0 -6
- package/front_end/generated/InspectorBackendCommands.ts +1 -1
- package/front_end/generated/protocol.ts +7 -0
- package/front_end/models/ai_assistance/AiAgent2.ts +24 -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 +47 -31
- package/front_end/models/ai_assistance/agents/AiAgent.ts +40 -12
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.snapshot.txt +11 -0
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +58 -8
- package/front_end/models/ai_assistance/agents/ExecuteJavascript.ts +1 -92
- package/front_end/models/ai_assistance/agents/NetworkAgent.ts +25 -0
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +94 -79
- package/front_end/models/ai_assistance/agents/StorageAgent.ts +101 -39
- package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +1 -2
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +27 -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 +134 -0
- package/front_end/models/ai_assistance/tools/GetStyles.ts +6 -2
- package/front_end/models/ai_assistance/tools/Tool.ts +16 -1
- package/front_end/models/ai_assistance/tools/ToolRegistry.ts +2 -0
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +6 -9
- package/front_end/models/bindings/DefaultScriptMapping.ts +2 -1
- package/front_end/models/bindings/SymbolizedError.ts +45 -35
- package/front_end/models/extensions/ExtensionAPI.ts +138 -47
- package/front_end/models/har/Importer.ts +1 -0
- package/front_end/models/heap_snapshot/HeapSnapshotProxy.ts +5 -7
- package/front_end/models/source_map_scopes/FunctionCodeResolver.ts +12 -2
- package/front_end/models/stack_trace/DetailedErrorStackParser.ts +44 -51
- package/front_end/models/stack_trace/StackTrace.ts +7 -0
- package/front_end/models/stack_trace/StackTraceImpl.ts +13 -4
- package/front_end/models/stack_trace/StackTraceModel.ts +9 -8
- package/front_end/panels/accessibility/AccessibilitySidebarView.ts +2 -1
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +8 -8
- 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/ApplicationPanelSidebar.ts +39 -0
- package/front_end/panels/application/ApplicationPanelTreeElement.ts +39 -0
- package/front_end/panels/application/CookieItemsView.ts +2 -2
- 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/application/resourcesSidebar.css +11 -0
- package/front_end/panels/console/SymbolizedErrorWidget.ts +79 -25
- package/front_end/panels/network/NetworkLogView.ts +5 -1
- package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +1 -0
- package/front_end/panels/sources/SourcesPanel.ts +2 -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/StackedPane.ts +229 -0
- package/front_end/ui/legacy/ViewManager.ts +59 -169
- package/front_end/ui/legacy/Widget.ts +32 -8
- package/front_end/ui/legacy/legacy.ts +3 -1
- package/front_end/ui/visual_logging/KnownContextValues.ts +2 -0
- package/mcp/mcp.ts +1 -0
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
+
import * as AdsView from './AdsView.js';
|
|
5
6
|
import * as BackForwardCacheView from './BackForwardCacheView.js';
|
|
6
7
|
import * as BounceTrackingMitigationsView from './BounceTrackingMitigationsView.js';
|
|
7
8
|
import * as CrashReportContextGrid from './CrashReportContextGrid.js';
|
|
@@ -17,6 +18,7 @@ import * as StorageMetadataView from './StorageMetadataView.js';
|
|
|
17
18
|
import * as TrustTokensView from './TrustTokensView.js';
|
|
18
19
|
|
|
19
20
|
export {
|
|
21
|
+
AdsView,
|
|
20
22
|
BackForwardCacheView,
|
|
21
23
|
BounceTrackingMitigationsView,
|
|
22
24
|
CrashReportContextGrid,
|
|
@@ -64,3 +64,14 @@ devtools-icon.navigator-font-tree-item {
|
|
|
64
64
|
.no-device-bound-session {
|
|
65
65
|
font-style: italic;
|
|
66
66
|
}
|
|
67
|
+
|
|
68
|
+
.ai-button-container {
|
|
69
|
+
display: none;
|
|
70
|
+
position: absolute;
|
|
71
|
+
z-index: 999;
|
|
72
|
+
right: var(--sys-size-3);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.tree-outline li:hover .ai-button-container {
|
|
76
|
+
display: inline-flex;
|
|
77
|
+
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
+
import type * as Platform from '../../core/platform/platform.js';
|
|
5
6
|
import * as Bindings from '../../models/bindings/bindings.js';
|
|
6
7
|
import type * as StackTrace from '../../models/stack_trace/stack_trace.js';
|
|
7
8
|
import type * as Workspace from '../../models/workspace/workspace.js';
|
|
@@ -9,6 +10,8 @@ import * as Components from '../../ui/legacy/components/utils/utils.js';
|
|
|
9
10
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
10
11
|
import * as Lit from '../../ui/lit/lit.js';
|
|
11
12
|
|
|
13
|
+
import {ConsoleViewMessage} from './ConsoleViewMessage.js';
|
|
14
|
+
|
|
12
15
|
const {html, render} = Lit;
|
|
13
16
|
|
|
14
17
|
export interface ViewInput {
|
|
@@ -24,20 +27,64 @@ function renderHeader(content: Lit.LitTemplate|Node|UI.Widget.Widget, isCause: b
|
|
|
24
27
|
return html`<span class="error-message-text">${content}</span>`;
|
|
25
28
|
}
|
|
26
29
|
|
|
27
|
-
function
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
function formatName(frame: StackTrace.StackTrace.ParsedErrorStackFrame): string {
|
|
31
|
+
const isInline = frame.isInline;
|
|
32
|
+
let name = isInline ? (frame.name || '') : (frame.rawName || frame.name || '');
|
|
33
|
+
const shouldAppendMethodAlias = !isInline && frame.methodName && name && name !== frame.methodName &&
|
|
34
|
+
!name.endsWith('.' + frame.methodName) && !name.endsWith(' ' + frame.methodName);
|
|
35
|
+
if (shouldAppendMethodAlias) {
|
|
36
|
+
name += ` [as ${frame.methodName}]`;
|
|
37
|
+
}
|
|
38
|
+
return name;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function renderLinkElement(frame: StackTrace.StackTrace.ParsedErrorStackFrame,
|
|
42
|
+
options: Components.Linkifier.LinkifyOptions): HTMLElement|Lit.LitTemplate {
|
|
43
|
+
if (frame.url || frame.uiSourceCode) {
|
|
44
|
+
const link = Components.Linkifier.Linkifier.linkifyStackTraceFrame(frame, options);
|
|
45
|
+
link.tabIndex = -1;
|
|
46
|
+
return link;
|
|
47
|
+
}
|
|
48
|
+
return html`<span><anonymous></span>`;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function renderEvalOrigin(frame: StackTrace.StackTrace.ParsedErrorStackFrame,
|
|
52
|
+
options: Components.Linkifier.LinkifyOptions): Lit.LitTemplate {
|
|
53
|
+
const name = formatName(frame);
|
|
54
|
+
const linkElement = renderLinkElement(frame, options);
|
|
55
|
+
|
|
56
|
+
const asyncPrefix = frame.isAsync ? 'async ' : '';
|
|
57
|
+
const constructorPrefix = frame.isConstructor ? 'new ' : '';
|
|
58
|
+
|
|
59
|
+
if (frame.isEval) {
|
|
60
|
+
const evalOrigin = frame.evalOrigin ? renderEvalOrigin(frame.evalOrigin, options) : '<anonymous>';
|
|
61
|
+
if (name) {
|
|
62
|
+
return html`${asyncPrefix}${constructorPrefix}eval at ${name} (${evalOrigin})`;
|
|
63
|
+
}
|
|
64
|
+
return html`${asyncPrefix}${constructorPrefix}eval at ${evalOrigin}`;
|
|
65
|
+
}
|
|
66
|
+
if (name) {
|
|
67
|
+
return html`${asyncPrefix}${constructorPrefix}eval at ${name} (${linkElement})`;
|
|
68
|
+
}
|
|
69
|
+
return html`${asyncPrefix}${constructorPrefix}eval at ${linkElement}`;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function renderFramePrefix(frame: StackTrace.StackTrace.ParsedErrorStackFrame,
|
|
73
|
+
options: Components.Linkifier.LinkifyOptions): Lit.LitTemplate {
|
|
30
74
|
const asyncPrefix = frame.isAsync ? 'async ' : '';
|
|
31
75
|
if (frame.promiseIndex !== undefined) {
|
|
32
76
|
const name = frame.name || 'Promise.all';
|
|
33
77
|
return html`${asyncPrefix}${name} (index ${frame.promiseIndex})`;
|
|
34
78
|
}
|
|
35
79
|
const constructorPrefix = frame.isConstructor ? 'new ' : '';
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
if (
|
|
39
|
-
|
|
40
|
-
name
|
|
80
|
+
const name = formatName(frame);
|
|
81
|
+
|
|
82
|
+
if (frame.isEval) {
|
|
83
|
+
const evalOrigin = frame.evalOrigin ? renderEvalOrigin(frame.evalOrigin, options) : '<anonymous>';
|
|
84
|
+
if (name) {
|
|
85
|
+
return html`${asyncPrefix}${constructorPrefix}${name} (${evalOrigin}, `;
|
|
86
|
+
}
|
|
87
|
+
return html`${asyncPrefix}${constructorPrefix}${evalOrigin}, `;
|
|
41
88
|
}
|
|
42
89
|
|
|
43
90
|
if (name) {
|
|
@@ -58,36 +105,43 @@ function renderFrameSuffix(frame: StackTrace.StackTrace.ParsedErrorStackFrame):
|
|
|
58
105
|
|
|
59
106
|
const DEFAULT_VIEW = (input: ViewInput, _output: object, target: HTMLElement): void => {
|
|
60
107
|
const renderError = (error: Bindings.SymbolizedError.SymbolizedError, isCause: boolean): Lit.LitTemplate => {
|
|
61
|
-
if (
|
|
62
|
-
|
|
63
|
-
|
|
108
|
+
if (error instanceof Bindings.SymbolizedError.UnparsableError) {
|
|
109
|
+
const fragment = ConsoleViewMessage.linkifyWithCustomLinkifier(
|
|
110
|
+
error.errorStack,
|
|
111
|
+
(text: string, url: Platform.DevToolsPath.UrlString, lineNumber?: number, columnNumber?: number) => {
|
|
112
|
+
const options = {text, lineNumber, columnNumber, ignoreListManager: input.ignoreListManager};
|
|
113
|
+
const linkElement = Components.Linkifier.Linkifier.linkifyURL(url, options);
|
|
114
|
+
linkElement.tabIndex = -1;
|
|
115
|
+
return linkElement;
|
|
116
|
+
});
|
|
117
|
+
const header = renderHeader(fragment, isCause);
|
|
118
|
+
return html`
|
|
119
|
+
<span class=${isCause ? 'console-message-stack-trace-wrapper' : ''}>${header}</span>
|
|
120
|
+
`;
|
|
64
121
|
}
|
|
122
|
+
|
|
65
123
|
const linkOptions: Components.Linkifier.LinkifyOptions = {
|
|
66
124
|
showColumnNumber: true,
|
|
67
125
|
inlineFrameIndex: 0,
|
|
68
126
|
maxLength: UI.UIUtils.MaxLengthForDisplayedURLsInConsole,
|
|
69
127
|
ignoreListManager: input.ignoreListManager,
|
|
70
128
|
};
|
|
71
|
-
|
|
129
|
+
|
|
130
|
+
let headerContent = html`${error.message}`;
|
|
131
|
+
if (error.syntaxErrorLocation) {
|
|
132
|
+
const linkElement = Components.Linkifier.Linkifier.linkifyUILocation(error.syntaxErrorLocation, linkOptions);
|
|
133
|
+
linkElement.tabIndex = -1;
|
|
134
|
+
headerContent = html`${error.message} (at ${linkElement})`;
|
|
135
|
+
}
|
|
136
|
+
|
|
72
137
|
const header = renderHeader(headerContent, isCause);
|
|
73
138
|
const syncFrames = error.stackTrace.syncFragment.frames;
|
|
74
139
|
// clang-format off
|
|
75
140
|
return html`
|
|
76
141
|
<span class=${isCause ? 'console-message-stack-trace-wrapper' : ''}
|
|
77
142
|
>${header}${syncFrames.length > 0 ? '\n' : ''}${syncFrames.map((frame: StackTrace.StackTrace.ParsedErrorStackFrame, i: number) => {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
if (frame.promiseIndex !== undefined) {
|
|
81
|
-
// Promise.all doesn't have a linkable location.
|
|
82
|
-
isBuiltin = true;
|
|
83
|
-
} else if (frame.url || frame.uiSourceCode) {
|
|
84
|
-
const link = Components.Linkifier.Linkifier.linkifyStackTraceFrame(frame, linkOptions);
|
|
85
|
-
link.tabIndex = -1;
|
|
86
|
-
linkElement = link;
|
|
87
|
-
} else {
|
|
88
|
-
linkElement = html`<span><anonymous></span>`;
|
|
89
|
-
isBuiltin = true;
|
|
90
|
-
}
|
|
143
|
+
const isBuiltin = frame.promiseIndex !== undefined || (!frame.url && !frame.uiSourceCode);
|
|
144
|
+
const linkElement = frame.promiseIndex !== undefined ? Lit.nothing : renderLinkElement(frame, linkOptions);
|
|
91
145
|
|
|
92
146
|
const newline = i < error.stackTrace.syncFragment.frames.length - 1 ? '\n' : '';
|
|
93
147
|
const frameClass = isBuiltin ? 'formatted-builtin-stack-frame' : 'formatted-stack-frame';
|
|
@@ -2507,7 +2507,11 @@ export class NetworkLogView extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
2507
2507
|
// (it may be different from the inspected page platform).
|
|
2508
2508
|
const escapeString = platform === 'win' ? escapeStringWin : escapeStringPosix;
|
|
2509
2509
|
|
|
2510
|
-
|
|
2510
|
+
// The shell escaping above protects the *shell* parser, but not curl's own
|
|
2511
|
+
// argv parser: if the (HAR-imported) URL begins with '-', curl will parse
|
|
2512
|
+
// it as an option (e.g. "-K//host/share/file" -> --config UNC path).
|
|
2513
|
+
// Passing the URL via --url forces curl to treat it as a URL operand.
|
|
2514
|
+
command.push('--url ' + escapeString(request.url()).replace(/[[{}\]]/g, '\\$&'));
|
|
2511
2515
|
|
|
2512
2516
|
let inferredMethod = 'GET';
|
|
2513
2517
|
const data = [];
|
|
@@ -177,6 +177,7 @@ export class DevicesSettingsTab extends UI.Widget.VBox implements
|
|
|
177
177
|
device.horizontal.height = 400;
|
|
178
178
|
device.vertical.width = 400;
|
|
179
179
|
device.vertical.height = 700;
|
|
180
|
+
device.userAgent = navigator.userAgent;
|
|
180
181
|
this.#customDeviceList.addNewItem(this.emulatedDevicesList.custom().length, device);
|
|
181
182
|
}
|
|
182
183
|
|
|
@@ -221,7 +221,7 @@ export class SourcesPanel extends UI.Panel.Panel implements
|
|
|
221
221
|
#paused?: boolean;
|
|
222
222
|
private switchToPausedTargetTimeout?: number;
|
|
223
223
|
private executionLineLocation?: Bindings.DebuggerWorkspaceBinding.Location|null;
|
|
224
|
-
private sidebarPaneStack?: UI.
|
|
224
|
+
private sidebarPaneStack?: UI.ViewManager.StackLocation;
|
|
225
225
|
private tabbedLocationHeader?: Element|null;
|
|
226
226
|
private extensionSidebarPanesContainer?: UI.View.ViewLocation;
|
|
227
227
|
sidebarPaneView?: UI.Widget.VBox|UI.SplitWidget.SplitWidget;
|
|
@@ -477,6 +477,7 @@ export class SourcesPanel extends UI.Panel.Panel implements
|
|
|
477
477
|
|
|
478
478
|
toggleDebuggerSidebar(): void {
|
|
479
479
|
this.splitWidget.toggleSidebar();
|
|
480
|
+
this.sidebarPaneStack?.notifyVisibilityChanged(this.splitWidget.sidebarIsShowing());
|
|
480
481
|
}
|
|
481
482
|
|
|
482
483
|
private debuggerPaused(event: Common.EventTarget.EventTargetEvent<SDK.DebuggerModel.DebuggerModel>): void {
|
|
@@ -194,7 +194,7 @@ export class EntryLabelOverlay extends HTMLElement {
|
|
|
194
194
|
#callTree: AiAssistanceModels.AICallTree.AICallTree|null = null;
|
|
195
195
|
// Creates or gets the setting if it exists.
|
|
196
196
|
#aiAnnotationsEnabledSetting = Common.Settings.Settings.instance().createSetting('ai-annotations-enabled', false);
|
|
197
|
-
#
|
|
197
|
+
#performanceAnnotations = new AiAssistanceModels.PerformanceAnnotations.PerformanceAnnotations({
|
|
198
198
|
aidaClient: new Host.AidaClient.AidaClient(),
|
|
199
199
|
serverSideLoggingEnabled: isAiAssistanceServerSideLoggingEnabled(),
|
|
200
200
|
});
|
|
@@ -254,8 +254,9 @@ export class EntryLabelOverlay extends HTMLElement {
|
|
|
254
254
|
/**
|
|
255
255
|
* So we can provide a mocked agent in tests. Do not call this method outside of a test!
|
|
256
256
|
*/
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
overridePerformanceAnnotationsForTest(performanceAnnotations:
|
|
258
|
+
AiAssistanceModels.PerformanceAnnotations.PerformanceAnnotations): void {
|
|
259
|
+
this.#performanceAnnotations = performanceAnnotations;
|
|
259
260
|
}
|
|
260
261
|
|
|
261
262
|
entryHighlightWrapper(): HTMLElement|null {
|
|
@@ -534,7 +535,7 @@ export class EntryLabelOverlay extends HTMLElement {
|
|
|
534
535
|
this.#focusInputBox();
|
|
535
536
|
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#render);
|
|
536
537
|
|
|
537
|
-
this.#label = await this.#
|
|
538
|
+
this.#label = await this.#performanceAnnotations.generateAIEntryLabel(this.#callTree);
|
|
538
539
|
this.dispatchEvent(new EntryLabelChangeEvent(this.#label));
|
|
539
540
|
this.#inputField.innerText = this.#label;
|
|
540
541
|
this.#placeCursorAtInputEnd();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Name: Dependencies sourced from the upstream `chromium` repository
|
|
2
2
|
URL: Internal
|
|
3
3
|
Version: N/A
|
|
4
|
-
Revision:
|
|
4
|
+
Revision: e1605f15bac37245745e5fb8327995ededbe2337
|
|
5
5
|
Update Mechanism: Manual (https://crbug.com/428069060)
|
|
6
6
|
License: BSD-3-Clause
|
|
7
7
|
License File: LICENSE
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Name: Lighthouse
|
|
2
2
|
Short Name: lighthouse
|
|
3
|
-
Version: 13.
|
|
4
|
-
Revision:
|
|
3
|
+
Version: 13.4.0
|
|
4
|
+
Revision: cb79bea56c4668fd7a338f2f421f87754ee927a2
|
|
5
5
|
Update Mechanism: Manual
|
|
6
6
|
URL: https://github.com/GoogleChrome/lighthouse
|
|
7
7
|
License: Apache-2.0
|