chrome-devtools-frontend 1.0.1732697 → 1.0.1733843

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 (65) hide show
  1. package/front_end/core/host/AidaClientTypes.ts +5 -1
  2. package/front_end/core/host/AidaGcaTranslation.ts +29 -1
  3. package/front_end/core/platform/browser/HostRuntime.ts +5 -1
  4. package/front_end/design_system_tokens.css +5 -0
  5. package/front_end/generated/InspectorBackendCommands.ts +5 -5
  6. package/front_end/generated/SupportedCSSProperties.ts +6 -0
  7. package/front_end/generated/protocol.ts +29 -7
  8. package/front_end/models/ai_assistance/AiConversation.ts +1 -0
  9. package/front_end/models/ai_assistance/agents/AiAgent.ts +59 -6
  10. package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +2 -1
  11. package/front_end/models/web_mcp/WebMCPModel.ts +1 -1
  12. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +35 -17
  13. package/front_end/panels/ai_assistance/components/chatMessage.css +1 -1
  14. package/front_end/panels/ai_assistance/components/exploreWidget.css +1 -1
  15. package/front_end/panels/application/backgroundServiceView.css +2 -2
  16. package/front_end/panels/application/deviceBoundSessionsView.css +1 -1
  17. package/front_end/panels/application/frameDetailsReportView.css +0 -4
  18. package/front_end/panels/application/resourcesPanel.css +0 -4
  19. package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +346 -286
  20. package/front_end/panels/common/CommentsOverlayWidget.ts +3 -2
  21. package/front_end/panels/console/consoleView.css +1 -1
  22. package/front_end/panels/elements/components/cssPropertyDocsView.css +1 -1
  23. package/front_end/panels/elements/components/stylePropertyEditor.css +1 -5
  24. package/front_end/panels/elements/layoutPane.css +1 -1
  25. package/front_end/panels/elements/stylesSidebarPane.css +3 -2
  26. package/front_end/panels/issues/issuesTree.css +4 -3
  27. package/front_end/panels/lighthouse/LighthousePanel.ts +16 -1
  28. package/front_end/panels/linear_memory_inspector/components/LinearMemoryHighlightChipList.ts +10 -6
  29. package/front_end/panels/linear_memory_inspector/components/linearMemoryHighlightChipList.css +1 -26
  30. package/front_end/panels/media/playerListView.css +3 -4
  31. package/front_end/panels/network/networkTimingTable.css +0 -4
  32. package/front_end/panels/profiler/ProfileFlameChartDataProvider.ts +114 -18
  33. package/front_end/panels/recorder/stepEditor.css +1 -1
  34. package/front_end/panels/search/searchResultsPane.css +1 -1
  35. package/front_end/panels/security/mainView.css +1 -1
  36. package/front_end/panels/settings/AISettingsTab.ts +1 -0
  37. package/front_end/panels/sources/NavigatorView.ts +120 -49
  38. package/front_end/panels/sources/components/HeadersView.css +2 -2
  39. package/front_end/panels/timeline/TimelinePanel.ts +24 -3
  40. package/front_end/panels/timeline/components/metricCard.css +1 -1
  41. package/front_end/panels/timeline/timelineMiniMap.css +1 -1
  42. package/front_end/panels/web_audio/WebAudioModel.ts +14 -5
  43. package/front_end/panels/web_audio/WebAudioView.ts +34 -1
  44. package/front_end/panels/web_audio/webAudio.css +17 -3
  45. package/front_end/panels/webauthn/webauthnPane.css +2 -4
  46. package/front_end/panels/whats_new/ReleaseNoteText.ts +19 -1
  47. package/front_end/panels/whats_new/ReleaseNoteView.ts +15 -1
  48. package/front_end/panels/whats_new/releaseNoteView.css +49 -0
  49. package/front_end/third_party/chromium/README.chromium +1 -1
  50. package/front_end/third_party/puppeteer-replay/README.chromium +9 -1
  51. package/front_end/third_party/puppeteer-replay/package/lib/main.d.ts +2 -2
  52. package/front_end/ui/components/markdown_view/codeBlock.css +1 -1
  53. package/front_end/ui/components/markdown_view/markdownView.css +1 -5
  54. package/front_end/ui/components/panel_introduction_steps/panelIntroductionSteps.css +1 -1
  55. package/front_end/ui/components/switch/switch.css +2 -1
  56. package/front_end/ui/legacy/TabbedPane.ts +1 -1
  57. package/front_end/ui/legacy/components/inline_editor/bezierEditor.css +10 -3
  58. package/front_end/ui/legacy/inspectorCommon.css +3 -2
  59. package/front_end/ui/legacy/listWidget.css +1 -1
  60. package/front_end/ui/legacy/reportView.css +1 -1
  61. package/front_end/ui/legacy/searchableView.css +2 -1
  62. package/front_end/ui/legacy/suggestBox.css +2 -1
  63. package/front_end/ui/legacy/tabbedPane.css +1 -1
  64. package/front_end/ui/visual_logging/KnownContextValues.ts +3 -0
  65. package/package.json +1 -1
@@ -199,7 +199,11 @@ export interface DoConversationRequest {
199
199
  options?: ConversationOptions;
200
200
  metadata: RequestMetadata;
201
201
  functionality_type?: FunctionalityType;
202
- client_feature?: ClientFeature;
202
+ /**
203
+ * Identifies the DevTools agent or feature making the request so GCA can resolve
204
+ * the corresponding server-side experience configuration.
205
+ */
206
+ client_feature: ClientFeature;
203
207
  }
204
208
  /* eslint-enable @typescript-eslint/naming-convention */
205
209
 
@@ -23,6 +23,33 @@ function createBaseGcaRequest(
23
23
  return gcaRequest;
24
24
  }
25
25
 
26
+ // Maps to experiences defined in g3; search for chrome_devtools/mapping_rules.gcl to find it.
27
+ const CLIENT_FEATURE_TO_EXPERIENCE:
28
+ Record<Exclude<AIDA.ClientFeature, AIDA.ClientFeature.CLIENT_FEATURE_UNSPECIFIED>, string> = {
29
+ [AIDA.ClientFeature.CHROME_CONSOLE_INSIGHTS]: 'chat_console_insights',
30
+ [AIDA.ClientFeature.CHROME_STYLING_AGENT]: 'chat_freestyler',
31
+ [AIDA.ClientFeature.CHROME_NETWORK_AGENT]: 'chat_drjones_network_agent',
32
+ [AIDA.ClientFeature.CHROME_FILE_AGENT]: 'chat_drjones_file_agent',
33
+ [AIDA.ClientFeature.CHROME_PATCH_AGENT]: 'chat_patch_agent',
34
+ [AIDA.ClientFeature.CHROME_PERFORMANCE_ANNOTATIONS_AGENT]: 'chat_performance_annotations_agent',
35
+ [AIDA.ClientFeature.CHROME_PERFORMANCE_FULL_AGENT]: 'chat_performance_full_agent',
36
+ [AIDA.ClientFeature.CHROME_CONTEXT_SELECTION_AGENT]: 'chat_context_selection_agent',
37
+ [AIDA.ClientFeature.CHROME_ACCESSIBILITY_AGENT]: 'chat_accessibility_agent',
38
+ [AIDA.ClientFeature.CHROME_CONVERSATION_SUMMARY_AGENT]: 'chat_conversation_summary_agent',
39
+ [AIDA.ClientFeature.CHROME_STORAGE_AGENT]: 'chat_storage_agent',
40
+ [AIDA.ClientFeature.CHROME_DEVTOOLS_V2_AGENT]: 'chat_devtools_v2_agent',
41
+ };
42
+
43
+ function getConversationExperience(clientFeature: AIDA.ClientFeature): string {
44
+ // A specific client feature is required to resolve the corresponding server-side
45
+ // GCA experience configuration for the conversation request.
46
+ if (clientFeature === AIDA.ClientFeature.CLIENT_FEATURE_UNSPECIFIED ||
47
+ !Object.hasOwn(CLIENT_FEATURE_TO_EXPERIENCE, clientFeature)) {
48
+ throw new Error(`Unsupported client feature for GCA conversation: ${clientFeature}`);
49
+ }
50
+ return CLIENT_FEATURE_TO_EXPERIENCE[clientFeature];
51
+ }
52
+
26
53
  export function aidaDoConversationRequestToGcaRequest(request: AIDA.DoConversationRequest): GCA.GenerateContentRequest {
27
54
  try {
28
55
  const contents: GCA.Content[] = [];
@@ -36,7 +63,8 @@ export function aidaDoConversationRequestToGcaRequest(request: AIDA.DoConversati
36
63
  }
37
64
  contents.push(convertAidaContentToGcaContent(request.current_message));
38
65
 
39
- const gcaRequest = createBaseGcaRequest(request, contents, 'chat_console_insights');
66
+ const experience = getConversationExperience(request.client_feature);
67
+ const gcaRequest = createBaseGcaRequest(request, contents, experience);
40
68
 
41
69
  if (request.function_declarations) {
42
70
  gcaRequest.tools = [{
@@ -154,7 +154,11 @@ export const HOST_RUNTIME: Api.HostRuntime.HostRuntime = {
154
154
  },
155
155
  getLocalStorage(): Storage |
156
156
  undefined {
157
- return 'localStorage' in globalThis ? globalThis.localStorage : undefined;
157
+ try {
158
+ return 'localStorage' in globalThis ? globalThis.localStorage : undefined;
159
+ } catch {
160
+ return undefined;
161
+ }
158
162
  },
159
163
  getCacheStorage(): Api.HostRuntime.CacheStorageLike |
160
164
  undefined {
@@ -708,6 +708,9 @@
708
708
  --sys-typescale-body5-bold: var(--ref-typeface-weight-bold)
709
709
  var(--sys-typescale-body5-size) / var(--sys-typescale-body5-line-height)
710
710
  var(--default-font-family);
711
+ --sys-typescale-label: var(--ref-typeface-weight-bold)
712
+ var(--sys-typescale-label-size) / var(--sys-typescale-label-line-height)
713
+ var(--default-font-family);
711
714
  --sys-typescale-monospace-regular: var(--ref-typeface-weight-regular)
712
715
  var(--sys-typescale-monospace-size) /
713
716
  var(--sys-typescale-monospace-line-height) var(--monospace-font-family);
@@ -724,6 +727,7 @@
724
727
  --sys-typescale-body3-size: 13px;
725
728
  --sys-typescale-body4-size: 12px;
726
729
  --sys-typescale-body5-size: 11px;
730
+ --sys-typescale-label-size: 9px;
727
731
  --sys-typescale-monospace-size: 11px;
728
732
  --sys-typescale-headline1-line-height: 32px;
729
733
  --sys-typescale-headline2-line-height: 24px;
@@ -735,6 +739,7 @@
735
739
  --sys-typescale-body3-line-height: 20px;
736
740
  --sys-typescale-body4-line-height: 16px;
737
741
  --sys-typescale-body5-line-height: 16px;
742
+ --sys-typescale-label-line-height: 9px;
738
743
  --sys-typescale-monospace-line-height: 1.2;
739
744
 
740
745
  /* Typography end */
@@ -204,7 +204,7 @@ inspectorBackend.registerType("BluetoothEmulation.CharacteristicProperties", [{"
204
204
 
205
205
  // Browser.
206
206
  inspectorBackend.registerEnum("Browser.WindowState", {Normal: "normal", Minimized: "minimized", Maximized: "maximized", Fullscreen: "fullscreen"});
207
- inspectorBackend.registerEnum("Browser.PermissionType", {Ar: "ar", AudioCapture: "audioCapture", AutomaticFullscreen: "automaticFullscreen", BackgroundFetch: "backgroundFetch", BackgroundSync: "backgroundSync", CameraPanTiltZoom: "cameraPanTiltZoom", CapturedSurfaceControl: "capturedSurfaceControl", ClipboardReadWrite: "clipboardReadWrite", ClipboardSanitizedWrite: "clipboardSanitizedWrite", DisplayCapture: "displayCapture", DurableStorage: "durableStorage", Geolocation: "geolocation", HandTracking: "handTracking", IdleDetection: "idleDetection", KeyboardLock: "keyboardLock", LocalFonts: "localFonts", LocalNetwork: "localNetwork", LocalNetworkAccess: "localNetworkAccess", LoopbackNetwork: "loopbackNetwork", Midi: "midi", MidiSysex: "midiSysex", Nfc: "nfc", Notifications: "notifications", PaymentHandler: "paymentHandler", PeriodicBackgroundSync: "periodicBackgroundSync", PointerLock: "pointerLock", ProtectedMediaIdentifier: "protectedMediaIdentifier", Sensors: "sensors", SmartCard: "smartCard", SpeakerSelection: "speakerSelection", StorageAccess: "storageAccess", TopLevelStorageAccess: "topLevelStorageAccess", VideoCapture: "videoCapture", Vr: "vr", WakeLockScreen: "wakeLockScreen", WakeLockSystem: "wakeLockSystem", WebAppInstallation: "webAppInstallation", WebPrinting: "webPrinting", WindowManagement: "windowManagement"});
207
+ inspectorBackend.registerEnum("Browser.PermissionType", {Ar: "ar", AudioCapture: "audioCapture", AutomaticFullscreen: "automaticFullscreen", BackgroundFetch: "backgroundFetch", BackgroundSync: "backgroundSync", CameraPanTiltZoom: "cameraPanTiltZoom", CapturedSurfaceControl: "capturedSurfaceControl", ClipboardReadWrite: "clipboardReadWrite", ClipboardSanitizedWrite: "clipboardSanitizedWrite", DisplayCapture: "displayCapture", DurableStorage: "durableStorage", Geolocation: "geolocation", HandTracking: "handTracking", IdleDetection: "idleDetection", KeyboardLock: "keyboardLock", LocalFonts: "localFonts", LocalNetwork: "localNetwork", LocalNetworkAccess: "localNetworkAccess", LoopbackNetwork: "loopbackNetwork", Midi: "midi", MidiSysex: "midiSysex", Nfc: "nfc", Notifications: "notifications", PaymentHandler: "paymentHandler", PeriodicBackgroundSync: "periodicBackgroundSync", PointerLock: "pointerLock", ProtectedMediaIdentifier: "protectedMediaIdentifier", Sensors: "sensors", SmartCard: "smartCard", SpeakerSelection: "speakerSelection", StorageAccess: "storageAccess", VideoCapture: "videoCapture", Vr: "vr", WakeLockScreen: "wakeLockScreen", WakeLockSystem: "wakeLockSystem", WebAppInstallation: "webAppInstallation", WebPrinting: "webPrinting", WindowManagement: "windowManagement"});
208
208
  inspectorBackend.registerEnum("Browser.PermissionSetting", {Granted: "granted", Denied: "denied", Prompt: "prompt"});
209
209
  inspectorBackend.registerEnum("Browser.BrowserCommandId", {OpenTabSearch: "openTabSearch", CloseTabSearch: "closeTabSearch", OpenGlic: "openGlic"});
210
210
  inspectorBackend.registerEvent("Browser.downloadWillBegin", ["frameId", "guid", "url", "suggestedFilename"]);
@@ -1059,7 +1059,7 @@ inspectorBackend.registerEnum("Page.AdFrameExplanation", {ParentIsAd: "ParentIsA
1059
1059
  inspectorBackend.registerEnum("Page.SecureContextType", {Secure: "Secure", SecureLocalhost: "SecureLocalhost", InsecureScheme: "InsecureScheme", InsecureAncestor: "InsecureAncestor"});
1060
1060
  inspectorBackend.registerEnum("Page.CrossOriginIsolatedContextType", {Isolated: "Isolated", NotIsolated: "NotIsolated", NotIsolatedFeatureDisabled: "NotIsolatedFeatureDisabled"});
1061
1061
  inspectorBackend.registerEnum("Page.GatedAPIFeatures", {SharedArrayBuffers: "SharedArrayBuffers", SharedArrayBuffersTransferAllowed: "SharedArrayBuffersTransferAllowed", PerformanceMeasureMemory: "PerformanceMeasureMemory", PerformanceProfile: "PerformanceProfile"});
1062
- inspectorBackend.registerEnum("Page.PermissionsPolicyFeature", {Accelerometer: "accelerometer", AllScreensCapture: "all-screens-capture", AmbientLightSensor: "ambient-light-sensor", AriaNotify: "aria-notify", Autofill: "autofill", Autoplay: "autoplay", Bluetooth: "bluetooth", BrowsingTopics: "browsing-topics", Camera: "camera", CapturedSurfaceControl: "captured-surface-control", ChDpr: "ch-dpr", ChDeviceMemory: "ch-device-memory", ChDownlink: "ch-downlink", ChEct: "ch-ect", ChPrefersColorScheme: "ch-prefers-color-scheme", ChPrefersReducedMotion: "ch-prefers-reduced-motion", ChPrefersReducedTransparency: "ch-prefers-reduced-transparency", ChRtt: "ch-rtt", ChSaveData: "ch-save-data", ChUa: "ch-ua", ChUaArch: "ch-ua-arch", ChUaBitness: "ch-ua-bitness", ChUaHighEntropyValues: "ch-ua-high-entropy-values", ChUaPlatform: "ch-ua-platform", ChUaModel: "ch-ua-model", ChUaMobile: "ch-ua-mobile", ChUaFormFactors: "ch-ua-form-factors", ChUaFullVersion: "ch-ua-full-version", ChUaFullVersionList: "ch-ua-full-version-list", ChUaPlatformVersion: "ch-ua-platform-version", ChUaWow64: "ch-ua-wow64", ChViewportHeight: "ch-viewport-height", ChViewportWidth: "ch-viewport-width", ChWidth: "ch-width", ClipboardRead: "clipboard-read", ClipboardWrite: "clipboard-write", ComputePressure: "compute-pressure", ControlledFrame: "controlled-frame", CrossOriginIsolated: "cross-origin-isolated", DeferredFetch: "deferred-fetch", DeferredFetchMinimal: "deferred-fetch-minimal", DeviceAttributes: "device-attributes", DigitalCredentialsCreate: "digital-credentials-create", DigitalCredentialsGet: "digital-credentials-get", DirectSockets: "direct-sockets", DirectSocketsMulticast: "direct-sockets-multicast", DisplayCapture: "display-capture", DocumentDomain: "document-domain", EncryptedMedia: "encrypted-media", ExecutionWhileOutOfViewport: "execution-while-out-of-viewport", ExecutionWhileNotRendered: "execution-while-not-rendered", FocusWithoutUserActivation: "focus-without-user-activation", Fullscreen: "fullscreen", Frobulate: "frobulate", Gamepad: "gamepad", Geolocation: "geolocation", Gyroscope: "gyroscope", Haptics: "haptics", Hid: "hid", IdentityCredentialsGet: "identity-credentials-get", IdleDetection: "idle-detection", InterestCohort: "interest-cohort", KeyboardMap: "keyboard-map", LanguageDetector: "language-detector", LanguageModel: "language-model", LocalFonts: "local-fonts", LocalNetwork: "local-network", LocalNetworkAccess: "local-network-access", LoopbackNetwork: "loopback-network", Magnetometer: "magnetometer", ManualText: "manual-text", MediaPlaybackWhileNotVisible: "media-playback-while-not-visible", Microphone: "microphone", Midi: "midi", OnDeviceSpeechRecognition: "on-device-speech-recognition", OtpCredentials: "otp-credentials", Payment: "payment", PictureInPicture: "picture-in-picture", PrivateStateTokenIssuance: "private-state-token-issuance", PrivateStateTokenRedemption: "private-state-token-redemption", PublickeyCredentialsCreate: "publickey-credentials-create", PublickeyCredentialsGet: "publickey-credentials-get", PublickeyCredentialsRemoteClientDataJson: "publickey-credentials-remote-client-data-json", Rewriter: "rewriter", ScreenWakeLock: "screen-wake-lock", Serial: "serial", SmartCard: "smart-card", SpeakerSelection: "speaker-selection", StorageAccess: "storage-access", SubApps: "sub-apps", Summarizer: "summarizer", SyncXhr: "sync-xhr", Tools: "tools", Translator: "translator", UnboundedElement: "unbounded-element", Unload: "unload", Usb: "usb", UsbUnrestricted: "usb-unrestricted", VerticalScroll: "vertical-scroll", WebAppInstallation: "web-app-installation", Webnn: "webnn", WebPrinting: "web-printing", WebShare: "web-share", WindowManagement: "window-management", Writer: "writer", XrSpatialTracking: "xr-spatial-tracking"});
1062
+ inspectorBackend.registerEnum("Page.PermissionsPolicyFeature", {Accelerometer: "accelerometer", AllScreensCapture: "all-screens-capture", AmbientLightSensor: "ambient-light-sensor", AriaNotify: "aria-notify", Autofill: "autofill", Autoplay: "autoplay", Bluetooth: "bluetooth", Camera: "camera", CapturedSurfaceControl: "captured-surface-control", ChDpr: "ch-dpr", ChDeviceMemory: "ch-device-memory", ChDownlink: "ch-downlink", ChEct: "ch-ect", ChPrefersColorScheme: "ch-prefers-color-scheme", ChPrefersReducedMotion: "ch-prefers-reduced-motion", ChPrefersReducedTransparency: "ch-prefers-reduced-transparency", ChRtt: "ch-rtt", ChSaveData: "ch-save-data", ChUa: "ch-ua", ChUaArch: "ch-ua-arch", ChUaBitness: "ch-ua-bitness", ChUaHighEntropyValues: "ch-ua-high-entropy-values", ChUaPlatform: "ch-ua-platform", ChUaModel: "ch-ua-model", ChUaMobile: "ch-ua-mobile", ChUaFormFactors: "ch-ua-form-factors", ChUaFullVersion: "ch-ua-full-version", ChUaFullVersionList: "ch-ua-full-version-list", ChUaPlatformVersion: "ch-ua-platform-version", ChUaWow64: "ch-ua-wow64", ChViewportHeight: "ch-viewport-height", ChViewportWidth: "ch-viewport-width", ChWidth: "ch-width", ClipboardRead: "clipboard-read", ClipboardWrite: "clipboard-write", ComputePressure: "compute-pressure", ControlledFrame: "controlled-frame", CrossOriginIsolated: "cross-origin-isolated", DeferredFetch: "deferred-fetch", DeferredFetchMinimal: "deferred-fetch-minimal", DeviceAttributes: "device-attributes", DigitalCredentialsCreate: "digital-credentials-create", DigitalCredentialsGet: "digital-credentials-get", DirectSockets: "direct-sockets", DirectSocketsMulticast: "direct-sockets-multicast", DisplayCapture: "display-capture", DocumentDomain: "document-domain", EncryptedMedia: "encrypted-media", ExecutionWhileOutOfViewport: "execution-while-out-of-viewport", ExecutionWhileNotRendered: "execution-while-not-rendered", FocusWithoutUserActivation: "focus-without-user-activation", Fullscreen: "fullscreen", Frobulate: "frobulate", Gamepad: "gamepad", Geolocation: "geolocation", Gyroscope: "gyroscope", Haptics: "haptics", Hid: "hid", IdentityCredentialsGet: "identity-credentials-get", IdleDetection: "idle-detection", KeyboardMap: "keyboard-map", LanguageDetector: "language-detector", LanguageModel: "language-model", LocalFonts: "local-fonts", LocalNetwork: "local-network", LocalNetworkAccess: "local-network-access", LoopbackNetwork: "loopback-network", Magnetometer: "magnetometer", ManualText: "manual-text", MediaPlaybackWhileNotVisible: "media-playback-while-not-visible", Microphone: "microphone", Midi: "midi", OnDeviceSpeechRecognition: "on-device-speech-recognition", OtpCredentials: "otp-credentials", Payment: "payment", PictureInPicture: "picture-in-picture", PrivateStateTokenIssuance: "private-state-token-issuance", PrivateStateTokenRedemption: "private-state-token-redemption", PublickeyCredentialsCreate: "publickey-credentials-create", PublickeyCredentialsGet: "publickey-credentials-get", PublickeyCredentialsRemoteClientDataJson: "publickey-credentials-remote-client-data-json", Rewriter: "rewriter", ScreenWakeLock: "screen-wake-lock", Serial: "serial", SmartCard: "smart-card", SpeakerSelection: "speaker-selection", StorageAccess: "storage-access", SubApps: "sub-apps", Summarizer: "summarizer", SyncXhr: "sync-xhr", Tools: "tools", Translator: "translator", UnboundedElement: "unbounded-element", Unload: "unload", Usb: "usb", UsbUnrestricted: "usb-unrestricted", VerticalScroll: "vertical-scroll", WebAppInstallation: "web-app-installation", Webnn: "webnn", WebPrinting: "web-printing", WebShare: "web-share", WindowManagement: "window-management", Writer: "writer", XrSpatialTracking: "xr-spatial-tracking"});
1063
1063
  inspectorBackend.registerEnum("Page.PermissionsPolicyBlockReason", {Header: "Header", IframeAttribute: "IframeAttribute", InFencedFrameTree: "InFencedFrameTree", InIsolatedApp: "InIsolatedApp"});
1064
1064
  inspectorBackend.registerEnum("Page.OriginTrialTokenStatus", {Success: "Success", NotSupported: "NotSupported", Insecure: "Insecure", Expired: "Expired", WrongOrigin: "WrongOrigin", InvalidSignature: "InvalidSignature", Malformed: "Malformed", WrongVersion: "WrongVersion", FeatureDisabled: "FeatureDisabled", TokenDisabled: "TokenDisabled", FeatureDisabledForUser: "FeatureDisabledForUser", UnknownTrial: "UnknownTrial"});
1065
1065
  inspectorBackend.registerEnum("Page.OriginTrialStatus", {Enabled: "Enabled", ValidTokenNotProvided: "ValidTokenNotProvided", OSNotSupported: "OSNotSupported", TrialNotAllowed: "TrialNotAllowed"});
@@ -1512,15 +1512,15 @@ inspectorBackend.registerType("WebAuthn.Credential", [{"name": "credentialId", "
1512
1512
  inspectorBackend.registerEnum("WebMCP.InvocationStatus", {Completed: "Completed", Canceled: "Canceled", Error: "Error"});
1513
1513
  inspectorBackend.registerEvent("WebMCP.toolsAdded", ["tools"]);
1514
1514
  inspectorBackend.registerEvent("WebMCP.toolsRemoved", ["tools"]);
1515
- inspectorBackend.registerEvent("WebMCP.toolInvoked", ["toolName", "frameId", "invocationId", "input"]);
1515
+ inspectorBackend.registerEvent("WebMCP.toolInvoked", ["frameId", "invocationId", "input", "toolName", "toolId"]);
1516
1516
  inspectorBackend.registerEvent("WebMCP.toolResponded", ["invocationId", "status", "output", "errorText", "exception"]);
1517
1517
  inspectorBackend.registerCommand("WebMCP.enable", [], [], "Enables the WebMCP domain, allowing events to be sent. Enabling the domain will trigger a toolsAdded event for all currently registered tools.");
1518
1518
  inspectorBackend.registerCommand("WebMCP.disable", [], [], "Disables the WebMCP domain.");
1519
1519
  inspectorBackend.registerCommand("WebMCP.invokeTool", [{"name": "frameId", "type": "string", "optional": false, "description": "Frame in which to invoke the tool.", "typeRef": "Page.FrameId"}, {"name": "toolName", "type": "string", "optional": false, "description": "Name of the tool to invoke.", "typeRef": null}, {"name": "input", "type": "object", "optional": false, "description": "Input parameters for the tool, matching the tool's inputSchema.", "typeRef": null}], ["invocationId"], "Invokes a registered tool.");
1520
1520
  inspectorBackend.registerCommand("WebMCP.cancelInvocation", [{"name": "invocationId", "type": "string", "optional": false, "description": "Invocation identifier to cancel.", "typeRef": null}], [], "Cancels a pending tool invocation.");
1521
1521
  inspectorBackend.registerType("WebMCP.Annotation", [{"name": "readOnly", "type": "boolean", "optional": true, "description": "A hint indicating that the tool does not modify any state.", "typeRef": null}, {"name": "untrustedContent", "type": "boolean", "optional": true, "description": "A hint indicating that the tool output may contain untrusted content, ex: UGC, 3rd party data.", "typeRef": null}, {"name": "consequential", "type": "boolean", "optional": true, "description": "A hint indicating that executing the tool will result in consequential actions, ex: booking a flight, transferring money.", "typeRef": null}, {"name": "debugging", "type": "boolean", "optional": true, "description": "If true, indicates that the tool is intended for debugging and developer tooling rather than end-user interactions.", "typeRef": null}, {"name": "autosubmit", "type": "boolean", "optional": true, "description": "If the declarative tool was declared with the autosubmit attribute.", "typeRef": null}]);
1522
- inspectorBackend.registerType("WebMCP.Tool", [{"name": "name", "type": "string", "optional": false, "description": "Tool name.", "typeRef": null}, {"name": "description", "type": "string", "optional": false, "description": "Tool description.", "typeRef": null}, {"name": "inputSchema", "type": "object", "optional": true, "description": "Schema for the tool's input parameters.", "typeRef": null}, {"name": "annotations", "type": "object", "optional": true, "description": "Optional annotations for the tool.", "typeRef": "WebMCP.Annotation"}, {"name": "frameId", "type": "string", "optional": false, "description": "Frame identifier associated with the tool registration.", "typeRef": "Page.FrameId"}, {"name": "backendNodeId", "type": "number", "optional": true, "description": "Optional node ID for declarative tools.", "typeRef": "DOM.BackendNodeId"}, {"name": "stackTrace", "type": "object", "optional": true, "description": "The stack trace at the time of the registration.", "typeRef": "Runtime.StackTrace"}]);
1523
- inspectorBackend.registerType("WebMCP.RemovedTool", [{"name": "name", "type": "string", "optional": false, "description": "Tool name.", "typeRef": null}, {"name": "frameId", "type": "string", "optional": false, "description": "Frame identifier associated with the tool registration.", "typeRef": "Page.FrameId"}]);
1522
+ inspectorBackend.registerType("WebMCP.Tool", [{"name": "toolId", "type": "string", "optional": false, "description": "Tool identifier.", "typeRef": "WebMCP.ToolId"}, {"name": "name", "type": "string", "optional": false, "description": "Tool name.", "typeRef": null}, {"name": "description", "type": "string", "optional": false, "description": "Tool description.", "typeRef": null}, {"name": "inputSchema", "type": "object", "optional": true, "description": "Schema for the tool's input parameters.", "typeRef": null}, {"name": "outputSchema", "type": "object", "optional": true, "description": "Schema for the tool's output structure.", "typeRef": null}, {"name": "annotations", "type": "object", "optional": true, "description": "Optional annotations for the tool.", "typeRef": "WebMCP.Annotation"}, {"name": "frameId", "type": "string", "optional": false, "description": "Frame identifier associated with the tool registration.", "typeRef": "Page.FrameId"}, {"name": "backendNodeId", "type": "number", "optional": true, "description": "Optional node ID for declarative tools.", "typeRef": "DOM.BackendNodeId"}, {"name": "stackTrace", "type": "object", "optional": true, "description": "The stack trace at the time of the registration.", "typeRef": "Runtime.StackTrace"}]);
1523
+ inspectorBackend.registerType("WebMCP.RemovedTool", [{"name": "toolId", "type": "string", "optional": false, "description": "Identifier of the removed tool.", "typeRef": "WebMCP.ToolId"}, {"name": "name", "type": "string", "optional": false, "description": "Tool name.", "typeRef": null}, {"name": "frameId", "type": "string", "optional": false, "description": "Frame identifier associated with the tool registration.", "typeRef": "Page.FrameId"}]);
1524
1524
 
1525
1525
  // Debugger.
1526
1526
  inspectorBackend.registerEnum("Debugger.ScopeType", {Global: "global", Local: "local", With: "with", Closure: "closure", Catch: "catch", Block: "block", Script: "script", Eval: "eval", Module: "module", WasmExpressionStack: "wasm-expression-stack"});
@@ -4732,6 +4732,9 @@ export const generatedProperties: CSSProperty[] = [
4732
4732
  "grid-rows",
4733
4733
  "grid-columns",
4734
4734
  "grid-order",
4735
+ "grid-lanes-flow",
4736
+ "grid-lanes-track",
4737
+ "grid-lanes-order",
4735
4738
  "source-order"
4736
4739
  ],
4737
4740
  "name": "reading-flow"
@@ -8587,6 +8590,9 @@ export const generatedPropertyValues: Record<string, CSSPropertyValue> = {
8587
8590
  "grid-rows",
8588
8591
  "grid-columns",
8589
8592
  "grid-order",
8593
+ "grid-lanes-flow",
8594
+ "grid-lanes-track",
8595
+ "grid-lanes-order",
8590
8596
  "source-order"
8591
8597
  ]
8592
8598
  },
@@ -2465,7 +2465,6 @@ export namespace Browser {
2465
2465
  SmartCard = 'smartCard',
2466
2466
  SpeakerSelection = 'speakerSelection',
2467
2467
  StorageAccess = 'storageAccess',
2468
- TopLevelStorageAccess = 'topLevelStorageAccess',
2469
2468
  VideoCapture = 'videoCapture',
2470
2469
  Vr = 'vr',
2471
2470
  WakeLockScreen = 'wakeLockScreen',
@@ -14780,7 +14779,6 @@ export namespace Page {
14780
14779
  Autofill = 'autofill',
14781
14780
  Autoplay = 'autoplay',
14782
14781
  Bluetooth = 'bluetooth',
14783
- BrowsingTopics = 'browsing-topics',
14784
14782
  Camera = 'camera',
14785
14783
  CapturedSurfaceControl = 'captured-surface-control',
14786
14784
  ChDpr = 'ch-dpr',
@@ -14834,7 +14832,6 @@ export namespace Page {
14834
14832
  Hid = 'hid',
14835
14833
  IdentityCredentialsGet = 'identity-credentials-get',
14836
14834
  IdleDetection = 'idle-detection',
14837
- InterestCohort = 'interest-cohort',
14838
14835
  KeyboardMap = 'keyboard-map',
14839
14836
  LanguageDetector = 'language-detector',
14840
14837
  LanguageModel = 'language-model',
@@ -20533,10 +20530,21 @@ export namespace WebMCP {
20533
20530
  Error = 'Error',
20534
20531
  }
20535
20532
 
20533
+ /**
20534
+ * Unique identifier of a registered tool. A new identifier is created every time a tool is registered, so a tool that
20535
+ * is unregistered and then registered again under the same name gets a different identifier. Clients should treat it
20536
+ * as an opaque string.
20537
+ */
20538
+ export type ToolId = OpaqueIdentifier<string, 'Protocol.WebMCP.ToolId'>;
20539
+
20536
20540
  /**
20537
20541
  * Definition of a tool that can be invoked.
20538
20542
  */
20539
20543
  export interface Tool {
20544
+ /**
20545
+ * Tool identifier.
20546
+ */
20547
+ toolId: ToolId;
20540
20548
  /**
20541
20549
  * Tool name.
20542
20550
  */
@@ -20549,6 +20557,10 @@ export namespace WebMCP {
20549
20557
  * Schema for the tool's input parameters.
20550
20558
  */
20551
20559
  inputSchema?: any;
20560
+ /**
20561
+ * Schema for the tool's output structure.
20562
+ */
20563
+ outputSchema?: any;
20552
20564
  /**
20553
20565
  * Optional annotations for the tool.
20554
20566
  */
@@ -20571,6 +20583,10 @@ export namespace WebMCP {
20571
20583
  * Definition of a tool that was removed.
20572
20584
  */
20573
20585
  export interface RemovedTool {
20586
+ /**
20587
+ * Identifier of the removed tool.
20588
+ */
20589
+ toolId: ToolId;
20574
20590
  /**
20575
20591
  * Tool name.
20576
20592
  */
@@ -20634,10 +20650,6 @@ export namespace WebMCP {
20634
20650
  * Event fired when a tool invocation starts.
20635
20651
  */
20636
20652
  export interface ToolInvokedEvent {
20637
- /**
20638
- * Name of the tool to invoke.
20639
- */
20640
- toolName: string;
20641
20653
  /**
20642
20654
  * Frame id
20643
20655
  */
@@ -20650,6 +20662,16 @@ export namespace WebMCP {
20650
20662
  * The input parameters used for the invocation.
20651
20663
  */
20652
20664
  input: string;
20665
+ /**
20666
+ * Name of the tool to invoke. Missing if the tool was invoked by its identifier, but could not be found (e.g.,
20667
+ * it was already unregistered), so its name could not be recovered.
20668
+ */
20669
+ toolName?: string;
20670
+ /**
20671
+ * Identifier of the tool to invoke. Missing if the tool was invoked by name, but could not be found, so its
20672
+ * identifier could not be recovered.
20673
+ */
20674
+ toolId?: ToolId;
20653
20675
  }
20654
20676
 
20655
20677
  /**
@@ -354,6 +354,7 @@ export class AiConversation {
354
354
  output: shouldRedact ? '<redacted>' : item.output,
355
355
  widgets: undefined,
356
356
  loadedSkills: undefined,
357
+ autoApproved: undefined,
357
358
  };
358
359
  }
359
360
  default:
@@ -262,6 +262,10 @@ export interface ContextChangeResponse {
262
262
  * to emit UI telemetry.
263
263
  */
264
264
  toolName?: string;
265
+ /**
266
+ * True when the call skipped a permission prompt via `AlwaysAllowedTools`.
267
+ */
268
+ autoApproved?: boolean;
265
269
  }
266
270
 
267
271
  interface SerializedSideEffectResponse extends Omit<SideEffectResponse, 'confirm'> {}
@@ -303,6 +307,10 @@ export interface ActionResponse extends ToolCallEvent {
303
307
  * `ai-v2-learn-skill` visual logging events.
304
308
  */
305
309
  loadedSkills?: string[];
310
+ /**
311
+ * True when the call skipped a permission prompt via `AlwaysAllowedTools`.
312
+ */
313
+ autoApproved?: boolean;
306
314
  }
307
315
 
308
316
  /**
@@ -1288,6 +1296,7 @@ export abstract class AiAgent<T> {
1288
1296
  context: result.context,
1289
1297
  widgets: result.widgets,
1290
1298
  toolName: functionCall.name,
1299
+ autoApproved: result.autoApproved,
1291
1300
  };
1292
1301
  return {type: 'contextChanged'};
1293
1302
  }
@@ -1354,7 +1363,12 @@ export abstract class AiAgent<T> {
1354
1363
  result: unknown,
1355
1364
  widgets?: AiWidget[],
1356
1365
  loadedSkills?: string[],
1357
- }|{error: string}|{context: ConversationContext<unknown>, description: string, widgets?: AiWidget[]}> {
1366
+ }|{error: string}|{
1367
+ context: ConversationContext<unknown>,
1368
+ description: string,
1369
+ widgets?: AiWidget[],
1370
+ autoApproved?: boolean,
1371
+ }> {
1358
1372
  const callId = crypto.randomUUID();
1359
1373
  const call = this.#functionDeclarations.get(name);
1360
1374
  if (!call) {
@@ -1401,14 +1415,43 @@ export abstract class AiAgent<T> {
1401
1415
  return Boolean(allowedOriginResult && 'blocked' in allowedOriginResult);
1402
1416
  };
1403
1417
 
1418
+ const isAlwaysAllowed = call.permissionPrompt === PermissionPrompt.ALLOW_ONCE_OR_ALWAYS &&
1419
+ Boolean(this.#alwaysAllowedTools?.isAllowed(name as ToolName));
1420
+
1404
1421
  // Turns an error thrown by the handler into an error result, so the other
1405
1422
  // calls in the same model response still run and the history keeps their
1406
- // results.
1423
+ // results. Races the handler against the abort signal so a hung tool call
1424
+ // does not block the agent loop after the user aborts the run.
1407
1425
  const runHandler = async(handlerOptions?: FunctionHandlerOptions): Promise<ToolResult<unknown>> => {
1426
+ const signal = handlerOptions?.signal;
1427
+ if (signal?.aborted) {
1428
+ return {error: 'Aborted'};
1429
+ }
1408
1430
  try {
1409
- const isAlwaysAllowed = call.permissionPrompt === PermissionPrompt.ALLOW_ONCE_OR_ALWAYS &&
1410
- this.#alwaysAllowedTools?.isAllowed(name as ToolName);
1411
- return await call.handler(args, isAlwaysAllowed ? {...handlerOptions, approved: true} : handlerOptions);
1431
+ const handlerPromise =
1432
+ call.handler(args, isAlwaysAllowed ? {...handlerOptions, approved: true} : handlerOptions);
1433
+ if (!signal) {
1434
+ return await handlerPromise;
1435
+ }
1436
+ if (signal.aborted) {
1437
+ return {error: 'Aborted'};
1438
+ }
1439
+ return await new Promise<ToolResult<unknown>>((resolve, reject) => {
1440
+ const onAbort = (): void => {
1441
+ resolve({error: 'Aborted'});
1442
+ };
1443
+ signal.addEventListener('abort', onAbort, {once: true});
1444
+ handlerPromise.then(
1445
+ value => {
1446
+ signal.removeEventListener('abort', onAbort);
1447
+ resolve(value);
1448
+ },
1449
+ err => {
1450
+ signal.removeEventListener('abort', onAbort);
1451
+ reject(err);
1452
+ },
1453
+ );
1454
+ });
1412
1455
  } catch (err) {
1413
1456
  debugLog(`[AiAgent] Tool '${name}' threw:`, err);
1414
1457
  return {error: `Error: ${err instanceof Error ? err.message : String(err)}`};
@@ -1416,6 +1459,9 @@ export abstract class AiAgent<T> {
1416
1459
  };
1417
1460
 
1418
1461
  let result = await runHandler(options);
1462
+ if (options?.signal?.aborted) {
1463
+ return {error: 'Aborted'};
1464
+ }
1419
1465
 
1420
1466
  // Check 1: After first handler execution.
1421
1467
  // Navigation could have occurred during the async handler execution.
@@ -1498,6 +1544,9 @@ export abstract class AiAgent<T> {
1498
1544
  ...options,
1499
1545
  approved: true,
1500
1546
  });
1547
+ if (options?.signal?.aborted) {
1548
+ return {error: 'Aborted'};
1549
+ }
1501
1550
 
1502
1551
  // Check 3: After second handler execution (approved run).
1503
1552
  // Navigation could have occurred during the async execution of the approved action.
@@ -1515,6 +1564,7 @@ export abstract class AiAgent<T> {
1515
1564
  widgets: result.widgets,
1516
1565
  canceled: false,
1517
1566
  toolName: name,
1567
+ autoApproved: isAlwaysAllowed,
1518
1568
  ...(result.loadedSkills ? {loadedSkills: result.loadedSkills} : {}),
1519
1569
  };
1520
1570
  }
@@ -1533,7 +1583,10 @@ export abstract class AiAgent<T> {
1533
1583
  debugLog(`[AiAgent] Tool '${name}' result:`, result);
1534
1584
 
1535
1585
  if ('context' in result) {
1536
- return result;
1586
+ return {
1587
+ ...result,
1588
+ autoApproved: isAlwaysAllowed,
1589
+ };
1537
1590
  }
1538
1591
 
1539
1592
  return result as {result: unknown, widgets?: AiWidget[]};
@@ -368,7 +368,8 @@ Content:
368
368
  "action": "console.log('hello');",
369
369
  "output": "hello",
370
370
  "canceled": false,
371
- "toolName": "executeJavaScript"
371
+ "toolName": "executeJavaScript",
372
+ "autoApproved": false
372
373
  },
373
374
  {
374
375
  "type": "querying"
@@ -228,7 +228,7 @@ export class WebMCPModel extends SDK.SDKModel.SDKModel<EventTypes> implements Pr
228
228
  }
229
229
 
230
230
  toolInvoked(params: Protocol.WebMCP.ToolInvokedEvent): void {
231
- const tool = this.#tools.get(params.frameId)?.get(params.toolName);
231
+ const tool = params.toolName ? this.#tools.get(params.frameId)?.get(params.toolName) : undefined;
232
232
  if (!tool) {
233
233
  return;
234
234
  }
@@ -916,14 +916,20 @@ export class AiAssistancePanel extends UI.Panel.Panel {
916
916
  }
917
917
 
918
918
  async #handlePerformanceRecordAndReload(): Promise<Trace.TraceModel.ParsedTrace> {
919
- return await TimelinePanel.TimelinePanel.TimelinePanel.executeRecordAndReload();
919
+ return await TimelinePanel.TimelinePanel.TimelinePanel.executeRecordAndReload({
920
+ signal: this.#runAbortController.signal,
921
+ });
920
922
  }
921
923
 
922
924
  async #handleLighthouseRun(overrides?: LHModel.RunTypes.RunOverrides): Promise<LHModel.RunTypes.RunResult> {
923
- return await LighthousePanel.LighthousePanel.LighthousePanel.executeLighthouseRecording({
924
- isAIControlled: true,
925
- ...overrides,
926
- });
925
+ return await LighthousePanel.LighthousePanel.LighthousePanel.executeLighthouseRecording(
926
+ {
927
+ isAIControlled: true,
928
+ ...overrides,
929
+ },
930
+ {
931
+ signal: this.#runAbortController.signal,
932
+ });
927
933
  }
928
934
 
929
935
  #getDefaultConversationType(): AiAssistanceModel.AiHistoryStorage.ConversationType|undefined {
@@ -1117,6 +1123,9 @@ export class AiAssistancePanel extends UI.Panel.Panel {
1117
1123
  TimelinePanel.TimelinePanel.TimelinePanel, this.#bindTimelineTraceListener, this);
1118
1124
  this.#bindTimelineTraceListener();
1119
1125
  this.#selectDefaultAgentIfNeeded();
1126
+ if (AiAssistanceModel.AiUtils.isNaturalLanguageInterfaceEnabled()) {
1127
+ void VisualLogging.logFunctionCall('ai-allowed-tools-count', String(this.#alwaysAllowedTools.list().length));
1128
+ }
1120
1129
 
1121
1130
  Host.userMetrics.actionTaken(Host.UserMetrics.Action.AiAssistancePanelOpened);
1122
1131
  }
@@ -1853,6 +1862,9 @@ export class AiAssistancePanel extends UI.Panel.Panel {
1853
1862
  let announcedAnswerLoading = false;
1854
1863
  let announcedAnswerReady = false;
1855
1864
  for await (const data of items) {
1865
+ const toolNameForLogging = 'toolName' in data && data.toolName !== undefined ?
1866
+ Platform.StringUtilities.toKebabCase(data.toolName) :
1867
+ undefined;
1856
1868
  switch (data.type) {
1857
1869
  case AiAssistanceModel.AiAgent.ResponseType.USER_QUERY: {
1858
1870
  this.#messages.push({
@@ -1937,8 +1949,6 @@ export class AiAssistancePanel extends UI.Panel.Panel {
1937
1949
  const approvalStep = step;
1938
1950
  approvalStep.javascriptCode = data.javascriptCode;
1939
1951
  const promptShownAt = performance.now();
1940
- const toolNameForLogging =
1941
- data.toolName !== undefined ? Platform.StringUtilities.toKebabCase(data.toolName) : undefined;
1942
1952
  approvalStep.state = {
1943
1953
  type: 'needs_approval',
1944
1954
  sideEffectDialog: {
@@ -1983,14 +1993,18 @@ export class AiAssistancePanel extends UI.Panel.Panel {
1983
1993
  step.output ??= data.output;
1984
1994
  step.widgets ??= data.widgets;
1985
1995
  commitStep();
1986
- if (AiAssistanceModel.AiUtils.isAiV2Enabled() && !this.#conversation?.isReadOnly) {
1987
- if (data.toolName === 'learnSkills') {
1988
- for (const skill of data.loadedSkills ?? []) {
1989
- void VisualLogging.logFunctionCall('ai-v2-learn-skill', skill);
1996
+ if (!this.#conversation?.isReadOnly) {
1997
+ if (AiAssistanceModel.AiUtils.isAiV2Enabled()) {
1998
+ if (data.toolName === 'learnSkills') {
1999
+ for (const skill of data.loadedSkills ?? []) {
2000
+ void VisualLogging.logFunctionCall('ai-v2-learn-skill', skill);
2001
+ }
2002
+ } else if (toolNameForLogging) {
2003
+ void VisualLogging.logFunctionCall('ai-v2-tool-call', toolNameForLogging);
1990
2004
  }
1991
- } else if (data.toolName) {
1992
- void VisualLogging.logFunctionCall('ai-v2-tool-call',
1993
- Platform.StringUtilities.toKebabCase(data.toolName));
2005
+ }
2006
+ if (AiAssistanceModel.AiUtils.isNaturalLanguageInterfaceEnabled() && data.autoApproved) {
2007
+ void VisualLogging.logFunctionCall('ai-permission-auto-allowed', toolNameForLogging);
1994
2008
  }
1995
2009
  }
1996
2010
  break;
@@ -2062,9 +2076,13 @@ export class AiAssistancePanel extends UI.Panel.Panel {
2062
2076
  }
2063
2077
 
2064
2078
  case AiAssistanceModel.AiAgent.ResponseType.CONTEXT_CHANGE: {
2065
- if (AiAssistanceModel.AiUtils.isAiV2Enabled() && !this.#conversation?.isReadOnly && data.toolName) {
2066
- void VisualLogging.logFunctionCall('ai-v2-tool-call',
2067
- Platform.StringUtilities.toKebabCase(data.toolName));
2079
+ if (!this.#conversation?.isReadOnly) {
2080
+ if (AiAssistanceModel.AiUtils.isAiV2Enabled() && toolNameForLogging) {
2081
+ void VisualLogging.logFunctionCall('ai-v2-tool-call', toolNameForLogging);
2082
+ }
2083
+ if (AiAssistanceModel.AiUtils.isNaturalLanguageInterfaceEnabled() && data.autoApproved) {
2084
+ void VisualLogging.logFunctionCall('ai-permission-auto-allowed', toolNameForLogging);
2085
+ }
2068
2086
  }
2069
2087
  this.#handleConversationContextChange(data.context);
2070
2088
  step.state = {type: 'completed'};
@@ -419,7 +419,7 @@
419
419
 
420
420
  .styling-preview-widget {
421
421
  width: 100%;
422
- min-height: 100px;
422
+ min-height: var(--sys-size-19);
423
423
  }
424
424
 
425
425
  .main-widgets-wrapper {
@@ -109,7 +109,7 @@
109
109
 
110
110
  p {
111
111
  font: var(--sys-typescale-body4-regular);
112
- line-height: 18px;
112
+ line-height: var(--sys-typescale-body4-line-height);
113
113
  }
114
114
  }
115
115
  }
@@ -40,8 +40,8 @@
40
40
  }
41
41
 
42
42
  .background-service-metadata-entry {
43
- padding-left: 10px;
44
- padding-bottom: 5px;
43
+ padding-left: var(--sys-size-5);
44
+ padding-bottom: var(--sys-size-3);
45
45
  }
46
46
 
47
47
  .background-service-metadata-name {
@@ -4,7 +4,7 @@
4
4
  * found in the LICENSE file.
5
5
  */
6
6
  .device-bound-session-grid-wrapper {
7
- margin: 0 var(--sys-size-9) 5px;
7
+ margin: 0 var(--sys-size-9) var(--sys-size-3);
8
8
  }
9
9
 
10
10
  .device-bound-session-grid-wrapper devtools-data-grid {
@@ -37,10 +37,6 @@ button.link {
37
37
  height: var(--sys-size-8);
38
38
  }
39
39
 
40
- button.link:has(devtools-icon) {
41
- margin-top: 5px;
42
- }
43
-
44
40
  devtools-button.help-button {
45
41
  top: var(--sys-size-3);
46
42
  position: relative;
@@ -113,10 +113,6 @@
113
113
  user-select: text;
114
114
  }
115
115
 
116
- .database-query-result.error .prompt-icon {
117
- margin-top: -9px;
118
- }
119
-
120
116
  .resources-sidebar {
121
117
  padding: 0;
122
118
  overflow-x: auto;