chrome-devtools-frontend 1.0.1522145 → 1.0.1524741
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/AUTHORS +1 -0
- package/docs/README.md +1 -0
- package/docs/policy/README.md +1 -0
- package/docs/policy/console-policy.md +144 -0
- package/docs/policy/images/console-policy1.png +0 -0
- package/docs/policy/images/console-policy2.png +0 -0
- package/docs/policy/images/console-policy3.png +0 -0
- package/docs/ui_engineering.md +98 -0
- package/front_end/Tests.js +1 -1
- package/front_end/core/common/Color.ts +13 -9
- package/front_end/core/common/ColorConverter.ts +9 -7
- package/front_end/core/common/Gzip.ts +1 -1
- package/front_end/core/common/MapWithDefault.ts +5 -3
- package/front_end/core/common/ResourceType.ts +0 -12
- package/front_end/core/common/ReturnToPanel.ts +6 -4
- package/front_end/core/common/Trie.ts +4 -2
- package/front_end/core/host/AidaClient.ts +3 -3
- package/front_end/core/host/GdpClient.ts +7 -5
- package/front_end/core/host/InspectorFrontendHostAPI.ts +7 -5
- package/front_end/core/host/Platform.ts +5 -3
- package/front_end/core/host/UserMetrics.ts +6 -4
- package/front_end/core/platform/ArrayUtilities.ts +1 -1
- package/front_end/core/platform/StringUtilities.ts +34 -31
- package/front_end/core/root/Runtime.ts +1 -1
- package/front_end/core/sdk/CSSMetadata.ts +6 -4
- package/front_end/core/sdk/CSSPropertyParser.ts +17 -13
- package/front_end/core/sdk/CSSPropertyParserMatchers.ts +19 -13
- package/front_end/core/sdk/ChildTargetManager.ts +35 -0
- package/front_end/core/sdk/DOMModel.ts +1 -1
- package/front_end/core/sdk/EnhancedTracesParser.ts +13 -6
- package/front_end/core/sdk/EventBreakpointsModel.ts +4 -2
- package/front_end/core/sdk/HttpReasonPhraseStrings.ts +4 -2
- package/front_end/core/sdk/NetworkManager.ts +8 -48
- package/front_end/core/sdk/NetworkRequest.ts +0 -28
- package/front_end/core/sdk/PageResourceLoader.ts +1 -1
- package/front_end/core/sdk/PreloadingModel.ts +22 -18
- package/front_end/core/sdk/RehydratingConnection.ts +1 -1
- package/front_end/core/sdk/RehydratingObject.ts +1 -1
- package/front_end/core/sdk/RemoteObject.ts +1 -1
- package/front_end/core/sdk/ResourceTreeModel.ts +2 -0
- package/front_end/core/sdk/ScreenCaptureModel.ts +24 -20
- package/front_end/core/sdk/Target.ts +7 -1
- package/front_end/core/sdk/TraceObject.ts +2 -2
- package/front_end/entrypoints/formatter_worker/Substitute.ts +6 -4
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +24 -16
- package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +2 -1
- package/front_end/entrypoints/main/MainImpl.ts +6 -4
- package/front_end/generated/Deprecation.ts +4 -4
- package/front_end/generated/InspectorBackendCommands.js +2 -2
- package/front_end/generated/protocol-mapping.d.ts +3 -2
- package/front_end/generated/protocol-proxy-api.d.ts +3 -1
- package/front_end/generated/protocol.ts +7 -1
- package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +600 -0
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +83 -222
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +23 -0
- package/front_end/models/ai_assistance/performance/AIContext.ts +19 -4
- package/front_end/models/ai_code_completion/AiCodeCompletion.ts +4 -2
- package/front_end/models/autofill_manager/AutofillManager.ts +4 -2
- package/front_end/models/cpu_profile/CPUProfileDataModel.ts +1 -1
- package/front_end/models/crux-manager/CrUXManager.ts +1 -1
- package/front_end/models/extensions/HostUrlPattern.ts +13 -5
- package/front_end/models/issues_manager/CookieDeprecationMetadataIssue.ts +1 -1
- package/front_end/models/issues_manager/CookieIssue.ts +2 -2
- package/front_end/models/issues_manager/MarkdownIssueDescription.ts +1 -1
- package/front_end/models/issues_manager/SharedDictionaryIssue.ts +20 -0
- package/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidTTLField.md +1 -0
- package/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonIntegerTTLField.md +1 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +9 -1
- package/front_end/models/network_time_calculator/Calculator.ts +4 -2
- package/front_end/models/network_time_calculator/RequestTimeRanges.ts +6 -4
- package/front_end/models/source_map_scopes/NamesResolver.ts +7 -5
- package/front_end/models/text_utils/ContentProvider.ts +6 -4
- package/front_end/models/trace/LanternComputationData.ts +1 -0
- package/front_end/models/trace/extras/TraceTree.ts +1 -1
- package/front_end/models/trace/handlers/FramesHandler.ts +7 -5
- package/front_end/models/trace/handlers/LayoutShiftsHandler.ts +13 -7
- package/front_end/models/trace/handlers/MetaHandler.ts +16 -14
- package/front_end/models/trace/handlers/NetworkRequestsHandler.ts +30 -8
- package/front_end/models/trace/handlers/helpers.ts +1 -1
- package/front_end/models/trace/handlers/types.ts +23 -19
- package/front_end/models/trace/helpers/Timing.ts +4 -2
- package/front_end/models/trace/helpers/Trace.ts +8 -4
- package/front_end/models/trace/insights/DocumentLatency.ts +10 -11
- package/front_end/models/trace/insights/INPBreakdown.ts +13 -2
- package/front_end/models/trace/insights/LCPBreakdown.ts +14 -2
- package/front_end/models/trace/insights/NetworkDependencyTree.ts +2 -2
- package/front_end/models/trace/types/File.ts +12 -8
- package/front_end/models/trace/types/Timing.ts +1 -1
- package/front_end/models/trace/types/TraceEvents.ts +43 -28
- package/front_end/models/trace_source_maps_resolver/SourceMapsResolver.ts +1 -1
- package/front_end/panels/ai_assistance/components/MarkdownRendererWithCodeBlock.ts +12 -10
- package/front_end/panels/application/KeyValueStorageItemsView.ts +31 -33
- package/front_end/panels/application/components/InterestGroupAccessGrid.ts +6 -11
- package/front_end/panels/application/components/OriginTrialTreeView.ts +7 -5
- package/front_end/panels/application/components/PermissionsPolicySection.ts +1 -0
- package/front_end/panels/application/components/ReportsGrid.ts +4 -10
- package/front_end/panels/application/components/SharedStorageAccessGrid.ts +5 -13
- package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +1 -1
- package/front_end/panels/application/preloading/components/PreloadingGrid.ts +3 -7
- package/front_end/panels/application/preloading/components/PreloadingString.ts +2 -2
- package/front_end/panels/application/preloading/components/RuleSetGrid.ts +3 -10
- package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +4 -2
- package/front_end/panels/browser_debugger/browser_debugger-meta.ts +7 -5
- package/front_end/panels/changes/ChangesSidebar.ts +97 -95
- package/front_end/panels/changes/changesSidebar.css +3 -0
- package/front_end/panels/console/ConsoleView.ts +2 -2
- package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +22 -35
- package/front_end/panels/elements/ComputedStyleWidget.ts +1 -1
- package/front_end/panels/elements/ElementStatePaneWidget.ts +12 -0
- package/front_end/panels/elements/ElementsTreeElement.ts +9 -5
- package/front_end/panels/elements/ElementsTreeOutline.ts +11 -8
- package/front_end/panels/elements/PropertyRenderer.ts +19 -15
- package/front_end/panels/elements/StylePropertyTreeElement.ts +6 -4
- package/front_end/panels/elements/StylesSidebarPane.ts +2 -2
- package/front_end/panels/elements/components/AccessibilityTreeNode.ts +4 -2
- package/front_end/panels/elements/components/AdornerManager.ts +5 -3
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +6 -4
- package/front_end/panels/media/PlayerPropertiesView.ts +1 -1
- package/front_end/panels/network/NetworkDataGridNode.ts +2 -44
- package/front_end/panels/network/NetworkLogView.ts +6 -4
- package/front_end/panels/network/RequestPreviewView.ts +0 -7
- package/front_end/panels/network/components/RequestHeadersView.ts +0 -6
- package/front_end/panels/network/components/components.ts +0 -2
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +1 -1
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +4 -2
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +40 -48
- package/front_end/panels/search/SearchResultsPane.ts +2 -3
- package/front_end/panels/security/IPProtectionView.ts +1 -1
- package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +4 -0
- package/front_end/panels/settings/emulation/utils/StructuredHeaders.ts +45 -37
- package/front_end/panels/sources/BreakpointsViewUtils.ts +11 -9
- package/front_end/panels/sources/DebuggerPlugin.ts +8 -4
- package/front_end/panels/sources/SourcesPanel.ts +1 -1
- package/front_end/panels/sources/UISourceCodeFrame.ts +1 -1
- package/front_end/panels/timeline/CompatibilityTracksAppender.ts +4 -2
- package/front_end/panels/timeline/CountersGraph.ts +12 -5
- package/front_end/panels/timeline/EasterEgg.d.ts +5 -3
- package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +8 -6
- package/front_end/panels/timeline/ModificationsManager.ts +5 -3
- package/front_end/panels/timeline/ThreadAppender.ts +7 -5
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +10 -8
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +1 -1
- package/front_end/panels/timeline/TimelineFlameChartView.ts +17 -0
- package/front_end/panels/timeline/TimelinePanel.ts +15 -8
- package/front_end/panels/timeline/TimelineSelection.ts +4 -2
- package/front_end/panels/timeline/TimelineUIUtils.ts +17 -6
- package/front_end/panels/timeline/components/BreadcrumbsUI.ts +6 -4
- package/front_end/panels/timeline/components/ExportTraceOptions.ts +21 -9
- package/front_end/panels/timeline/components/Utils.ts +1 -1
- package/front_end/panels/timeline/overlays/OverlaysImpl.ts +5 -3
- package/front_end/panels/timeline/timelineDetailsView.css +5 -0
- package/front_end/panels/timeline/utils/Helpers.ts +1 -1
- package/front_end/panels/utils/utils.ts +1 -7
- package/front_end/services/trace_bounds/TraceBounds.ts +4 -2
- package/front_end/services/tracing/PerformanceTracing.ts +1 -1
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/codemirror.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/php.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/php.js.map +1 -1
- package/front_end/third_party/codemirror.next/package.json +3 -2
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Dialog.d.ts +8 -10
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Dialog.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Dialog.js +8 -10
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Dialog.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.d.ts +28 -30
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.js +27 -29
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.d.ts +34 -38
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.js +34 -38
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.d.ts +8 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.js +12 -14
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +92 -108
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js +33 -39
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js +5 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.d.ts +4 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.js +14 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +12 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.js +24 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Realm.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/PredefinedNetworkConditions.d.ts +13 -22
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/PredefinedNetworkConditions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/PredefinedNetworkConditions.js +13 -22
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/PredefinedNetworkConditions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Device.d.ts +6 -8
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Device.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Device.js +6 -8
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Device.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js +6 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.d.ts +5 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.js +5 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +188 -224
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +140 -166
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Dialog.d.ts +8 -10
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Dialog.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Dialog.js +8 -10
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Dialog.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.d.ts +28 -30
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.js +27 -29
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.d.ts +34 -38
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.js +34 -38
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.d.ts +8 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.js +12 -14
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +92 -108
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js +33 -39
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js +5 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.d.ts +4 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.js +15 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +12 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.js +24 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.d.ts +13 -22
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.js +13 -22
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.d.ts +6 -8
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.js +6 -8
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js +6 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.d.ts +5 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.js +5 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +188 -224
- package/front_end/third_party/puppeteer/package/package.json +3 -3
- package/front_end/third_party/puppeteer/package/src/api/Dialog.ts +8 -10
- package/front_end/third_party/puppeteer/package/src/api/ElementHandle.ts +27 -29
- package/front_end/third_party/puppeteer/package/src/api/Frame.ts +34 -38
- package/front_end/third_party/puppeteer/package/src/api/HTTPRequest.ts +17 -14
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +92 -108
- package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +5 -3
- package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +5 -1
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPRequest.ts +28 -3
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +16 -7
- package/front_end/third_party/puppeteer/package/src/bidi/core/Browser.ts +28 -2
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +4 -0
- package/front_end/third_party/puppeteer/package/src/cdp/PredefinedNetworkConditions.ts +13 -22
- package/front_end/third_party/puppeteer/package/src/common/Device.ts +6 -8
- package/front_end/third_party/puppeteer/package/src/generated/version.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +6 -3
- package/front_end/third_party/puppeteer/package/src/node/PuppeteerNode.ts +5 -7
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/ui/components/chrome_link/ChromeLink.ts +4 -2
- package/front_end/ui/components/dialogs/Dialog.ts +13 -9
- package/front_end/ui/components/highlighting/HighlightElement.ts +77 -0
- package/front_end/ui/components/highlighting/HighlightManager.ts +37 -0
- package/front_end/ui/components/highlighting/highlighting.ts +2 -0
- package/front_end/ui/components/markdown_view/MarkdownImagesMap.ts +5 -3
- package/front_end/ui/components/markdown_view/MarkdownLinksMap.ts +5 -3
- package/front_end/ui/components/menus/SelectMenu.ts +6 -4
- package/front_end/ui/components/survey_link/SurveyLink.ts +4 -2
- package/front_end/ui/components/text_editor/config.ts +10 -6
- package/front_end/ui/components/text_editor/javascript.ts +8 -4
- package/front_end/ui/components/tooltips/Tooltip.ts +13 -4
- package/front_end/ui/legacy/ForwardedInputEventHandler.ts +4 -2
- package/front_end/ui/legacy/GlassPane.ts +1 -1
- package/front_end/ui/legacy/SettingsUI.ts +1 -5
- package/front_end/ui/legacy/Treeoutline.ts +12 -33
- package/front_end/ui/legacy/UIUtils.ts +19 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +12 -10
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +30 -32
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -1
- package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +25 -25
- package/front_end/ui/legacy/components/data_grid/dataGrid.css +5 -0
- package/front_end/ui/legacy/components/inline_editor/AnimationTimingModel.ts +4 -2
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +4 -2
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +8 -6
- package/front_end/ui/legacy/components/perf_ui/PieChart.ts +6 -4
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +3 -3
- package/front_end/ui/legacy/components/source_frame/XMLView.ts +22 -16
- package/front_end/ui/legacy/components/source_frame/xmlView.css +0 -2
- package/front_end/ui/legacy/components/utils/Linkifier.ts +6 -4
- package/front_end/ui/visual_logging/Debugging.ts +10 -6
- package/front_end/ui/visual_logging/KnownContextValues.ts +1 -3
- package/inspector_overlay/common.ts +5 -3
- package/inspector_overlay/highlight_grid_common.ts +1 -1
- package/package.json +1 -1
- package/front_end/Images/src/bundle.svg +0 -3
- package/front_end/panels/network/components/WebBundleInfoView.css +0 -27
- package/front_end/panels/network/components/WebBundleInfoView.ts +0 -95
|
@@ -0,0 +1,600 @@
|
|
|
1
|
+
Title: StylingAgent describeElement should describe an element with no children, siblings, or parent
|
|
2
|
+
Content:
|
|
3
|
+
* Element's uid is 99.
|
|
4
|
+
* Its selector is `div#myElement`
|
|
5
|
+
=== end content
|
|
6
|
+
|
|
7
|
+
Title: StylingAgent describeElement should describe an element with child element and text nodes
|
|
8
|
+
Content:
|
|
9
|
+
* Element's uid is 99.
|
|
10
|
+
* Its selector is `div#parentElement`
|
|
11
|
+
* It has 2 child element nodes: `span.child1` (uid=undefined), `span.child2` (uid=undefined)
|
|
12
|
+
* It only has 1 child text node
|
|
13
|
+
=== end content
|
|
14
|
+
|
|
15
|
+
Title: StylingAgent describeElement should describe an element with siblings and a parent
|
|
16
|
+
Content:
|
|
17
|
+
* Element's uid is 99.
|
|
18
|
+
* Its selector is `div#parentElement`
|
|
19
|
+
* It has a next sibling and it is an element (uid=undefined) node
|
|
20
|
+
* It has a previous sibling and it is a non element node
|
|
21
|
+
* Its parent's selector is `div#grandparentElement` (uid=undefined)
|
|
22
|
+
* Its parent is a non element node
|
|
23
|
+
* Its parent has only 1 child element node
|
|
24
|
+
* Its parent has only 1 child text node
|
|
25
|
+
=== end content
|
|
26
|
+
|
|
27
|
+
Title: StylingAgent buildRequest structure matches the snapshot
|
|
28
|
+
Content:
|
|
29
|
+
{
|
|
30
|
+
"client": "CHROME_DEVTOOLS",
|
|
31
|
+
"current_message": {
|
|
32
|
+
"parts": [
|
|
33
|
+
{
|
|
34
|
+
"text": "test input"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"role": 1
|
|
38
|
+
},
|
|
39
|
+
"historical_contexts": [
|
|
40
|
+
{
|
|
41
|
+
"parts": [
|
|
42
|
+
{
|
|
43
|
+
"text": "QUERY: question"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"role": 1
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"parts": [
|
|
50
|
+
{
|
|
51
|
+
"text": "answer"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"role": 2
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"function_declarations": [
|
|
58
|
+
{
|
|
59
|
+
"name": "getStyles",
|
|
60
|
+
"description": "Get computed and source styles for one or multiple elements on the inspected page for multiple elements at once by uid.\n\n**CRITICAL** Use selectors to refer to elements in the text output. Do not use uids.\n**CRITICAL** Always provide the explanation argument to explain what and why you query.",
|
|
61
|
+
"parameters": {
|
|
62
|
+
"type": 6,
|
|
63
|
+
"description": "",
|
|
64
|
+
"nullable": false,
|
|
65
|
+
"properties": {
|
|
66
|
+
"explanation": {
|
|
67
|
+
"type": 1,
|
|
68
|
+
"description": "Explain why you want to get styles",
|
|
69
|
+
"nullable": false
|
|
70
|
+
},
|
|
71
|
+
"elements": {
|
|
72
|
+
"type": 5,
|
|
73
|
+
"description": "A list of element uids to get data for",
|
|
74
|
+
"items": {
|
|
75
|
+
"type": 1,
|
|
76
|
+
"description": "An element uid."
|
|
77
|
+
},
|
|
78
|
+
"nullable": false
|
|
79
|
+
},
|
|
80
|
+
"styleProperties": {
|
|
81
|
+
"type": 5,
|
|
82
|
+
"description": "One or more CSS style property names to fetch.",
|
|
83
|
+
"nullable": false,
|
|
84
|
+
"items": {
|
|
85
|
+
"type": 1,
|
|
86
|
+
"description": "A CSS style property name to retrieve. For example, 'background-color'."
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "executeJavaScript",
|
|
94
|
+
"description": "This function allows you to run JavaScript code on the inspected page to access the element styles and page content.\nCall this function to gather additional information or modify the page state. Call this function enough times to investigate the user request.",
|
|
95
|
+
"parameters": {
|
|
96
|
+
"type": 6,
|
|
97
|
+
"description": "",
|
|
98
|
+
"nullable": false,
|
|
99
|
+
"properties": {
|
|
100
|
+
"code": {
|
|
101
|
+
"type": 1,
|
|
102
|
+
"description": "JavaScript code snippet to run on the inspected page. Make sure the code is formatted for readability.\n\n# Instructions\n\n* To return data, define a top-level `data` variable and populate it with data you want to get. Only JSON-serializable objects can be assigned to `data`.\n* If you modify styles on an element, ALWAYS call the pre-defined global `async setElementStyles(el: Element, styles: object)` function. This function is an internal mechanism for you and should never be presented as a command/advice to the user.\n* **CRITICAL** Only get styles that might be relevant to the user request.\n* **CRITICAL** Never assume a selector for the elements unless you verified your knowledge.\n* **CRITICAL** Consider that `data` variable from the previous function calls are not available in a new function call.\n\nFor example, the code to change element styles:\n\n```\nawait setElementStyles($0, {\n color: 'blue',\n});\n```\n\nFor example, the code to get overlapping elements:\n\n```\nconst data = {\n overlappingElements: Array.from(document.querySelectorAll('*'))\n .filter(el => {\n const rect = el.getBoundingClientRect();\n const popupRect = $0.getBoundingClientRect();\n return (\n el !== $0 &&\n rect.left < popupRect.right &&\n rect.right > popupRect.left &&\n rect.top < popupRect.bottom &&\n rect.bottom > popupRect.top\n );\n })\n .map(el => ({\n tagName: el.tagName,\n id: el.id,\n className: el.className,\n zIndex: window.getComputedStyle(el)['z-index']\n }))\n};\n```\n"
|
|
103
|
+
},
|
|
104
|
+
"thought": {
|
|
105
|
+
"type": 1,
|
|
106
|
+
"description": "Explain why you want to run this code"
|
|
107
|
+
},
|
|
108
|
+
"title": {
|
|
109
|
+
"type": 1,
|
|
110
|
+
"description": "Provide a summary of what the code does. For example, \"Checking related element styles\"."
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"options": {
|
|
117
|
+
"model_id": "test model"
|
|
118
|
+
},
|
|
119
|
+
"metadata": {
|
|
120
|
+
"disable_user_content_logging": false,
|
|
121
|
+
"string_session_id": "sessionId",
|
|
122
|
+
"user_tier": 2,
|
|
123
|
+
"client_version": "unit_test+function_calling"
|
|
124
|
+
},
|
|
125
|
+
"functionality_type": 5,
|
|
126
|
+
"client_feature": 2
|
|
127
|
+
}
|
|
128
|
+
=== end content
|
|
129
|
+
|
|
130
|
+
Title: StylingAgent buildRequest builds a request with aborted query in history before a real request
|
|
131
|
+
Content:
|
|
132
|
+
[
|
|
133
|
+
{
|
|
134
|
+
"parts": [
|
|
135
|
+
{
|
|
136
|
+
"text": "# Inspected element\n\nelement-description\n\n# User request\n\nQUERY: test2"
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"role": 1
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"parts": [
|
|
143
|
+
{
|
|
144
|
+
"functionCall": {
|
|
145
|
+
"name": "executeJavaScript",
|
|
146
|
+
"args": {
|
|
147
|
+
"title": "title2",
|
|
148
|
+
"thought": "thought2",
|
|
149
|
+
"code": "action2"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"role": 2
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"parts": [
|
|
158
|
+
{
|
|
159
|
+
"functionResponse": {
|
|
160
|
+
"name": "executeJavaScript",
|
|
161
|
+
"response": {
|
|
162
|
+
"result": "result2"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"role": 0
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"parts": [
|
|
171
|
+
{
|
|
172
|
+
"text": "answer2"
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"role": 2
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
=== end content
|
|
179
|
+
|
|
180
|
+
Title: StylingAgent run generates an answer immediately
|
|
181
|
+
Content:
|
|
182
|
+
[
|
|
183
|
+
{
|
|
184
|
+
"type": "user-query",
|
|
185
|
+
"query": "test"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"type": "context",
|
|
189
|
+
"title": "Analyzing the prompt",
|
|
190
|
+
"details": [
|
|
191
|
+
{
|
|
192
|
+
"title": "Data used",
|
|
193
|
+
"text": "* Element's uid is 99.\n* Its selector is `undefined`"
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"type": "querying"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"type": "answer",
|
|
202
|
+
"text": "this is the answer",
|
|
203
|
+
"complete": true
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
=== end content
|
|
207
|
+
|
|
208
|
+
Title: StylingAgent run generates an answer immediately with correct historical contexts in the new request
|
|
209
|
+
Content:
|
|
210
|
+
[
|
|
211
|
+
{
|
|
212
|
+
"parts": [
|
|
213
|
+
{
|
|
214
|
+
"text": "# Inspected element\n\n* Element's uid is 99.\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"role": 1
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"parts": [
|
|
221
|
+
{
|
|
222
|
+
"text": "this is the answer"
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
"role": 2
|
|
226
|
+
}
|
|
227
|
+
]
|
|
228
|
+
=== end content
|
|
229
|
+
|
|
230
|
+
Title: StylingAgent run correctly handles historical_contexts in AIDA requests
|
|
231
|
+
Content:
|
|
232
|
+
[
|
|
233
|
+
{
|
|
234
|
+
"text": "# Inspected element\n\n* Element's uid is 99.\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test"
|
|
235
|
+
},
|
|
236
|
+
[
|
|
237
|
+
{
|
|
238
|
+
"parts": [
|
|
239
|
+
{
|
|
240
|
+
"text": "# Inspected element\n\n* Element's uid is 99.\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test"
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"role": 1
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"parts": [
|
|
247
|
+
{
|
|
248
|
+
"functionCall": {
|
|
249
|
+
"name": "executeJavaScript",
|
|
250
|
+
"args": {
|
|
251
|
+
"code": "const data = {\"test\": \"observation\"}",
|
|
252
|
+
"thought": "I am thinking.",
|
|
253
|
+
"title": "thinking"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
"role": 2
|
|
259
|
+
}
|
|
260
|
+
]
|
|
261
|
+
]
|
|
262
|
+
=== end content
|
|
263
|
+
|
|
264
|
+
Title: StylingAgent run generates an rpcId for the answer
|
|
265
|
+
Content:
|
|
266
|
+
[
|
|
267
|
+
{
|
|
268
|
+
"type": "user-query",
|
|
269
|
+
"query": "test"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"type": "context",
|
|
273
|
+
"title": "Analyzing the prompt",
|
|
274
|
+
"details": [
|
|
275
|
+
{
|
|
276
|
+
"title": "Data used",
|
|
277
|
+
"text": "* Element's uid is 99.\n* Its selector is `undefined`"
|
|
278
|
+
}
|
|
279
|
+
]
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"type": "querying"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"type": "answer",
|
|
286
|
+
"text": "this is the answer",
|
|
287
|
+
"complete": true,
|
|
288
|
+
"rpcId": 123
|
|
289
|
+
}
|
|
290
|
+
]
|
|
291
|
+
=== end content
|
|
292
|
+
|
|
293
|
+
Title: StylingAgent run throws an error based on the attribution metadata including RecitationAction.BLOCK
|
|
294
|
+
Content:
|
|
295
|
+
[
|
|
296
|
+
{
|
|
297
|
+
"type": "user-query",
|
|
298
|
+
"query": "test"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"type": "context",
|
|
302
|
+
"title": "Analyzing the prompt",
|
|
303
|
+
"details": [
|
|
304
|
+
{
|
|
305
|
+
"title": "Data used",
|
|
306
|
+
"text": "* Element's uid is 99.\n* Its selector is `undefined`"
|
|
307
|
+
}
|
|
308
|
+
]
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"type": "querying"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"type": "answer",
|
|
315
|
+
"text": "this is the partial answer",
|
|
316
|
+
"complete": false
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"type": "error",
|
|
320
|
+
"error": "block"
|
|
321
|
+
}
|
|
322
|
+
]
|
|
323
|
+
=== end content
|
|
324
|
+
|
|
325
|
+
Title: StylingAgent run does not throw an error based on attribution metadata not including RecitationAction.BLOCK
|
|
326
|
+
Content:
|
|
327
|
+
[
|
|
328
|
+
{
|
|
329
|
+
"type": "user-query",
|
|
330
|
+
"query": "test"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"type": "context",
|
|
334
|
+
"title": "Analyzing the prompt",
|
|
335
|
+
"details": [
|
|
336
|
+
{
|
|
337
|
+
"title": "Data used",
|
|
338
|
+
"text": "* Element's uid is 99.\n* Its selector is `undefined`"
|
|
339
|
+
}
|
|
340
|
+
]
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"type": "querying"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"type": "answer",
|
|
347
|
+
"text": "this is the answer",
|
|
348
|
+
"complete": true,
|
|
349
|
+
"rpcId": 123
|
|
350
|
+
}
|
|
351
|
+
]
|
|
352
|
+
=== end content
|
|
353
|
+
|
|
354
|
+
Title: StylingAgent run generates a response if nothing is returned
|
|
355
|
+
Content:
|
|
356
|
+
[
|
|
357
|
+
{
|
|
358
|
+
"type": "user-query",
|
|
359
|
+
"query": "test"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"type": "context",
|
|
363
|
+
"title": "Analyzing the prompt",
|
|
364
|
+
"details": [
|
|
365
|
+
{
|
|
366
|
+
"title": "Data used",
|
|
367
|
+
"text": "* Element's uid is 99.\n* Its selector is `undefined`"
|
|
368
|
+
}
|
|
369
|
+
]
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"type": "querying"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"type": "error",
|
|
376
|
+
"error": "unknown"
|
|
377
|
+
}
|
|
378
|
+
]
|
|
379
|
+
=== end content
|
|
380
|
+
|
|
381
|
+
Title: StylingAgent run generates an action response if action and answer both present
|
|
382
|
+
Content:
|
|
383
|
+
[
|
|
384
|
+
{
|
|
385
|
+
"type": "user-query",
|
|
386
|
+
"query": "test"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"type": "context",
|
|
390
|
+
"title": "Analyzing the prompt",
|
|
391
|
+
"details": [
|
|
392
|
+
{
|
|
393
|
+
"title": "Data used",
|
|
394
|
+
"text": "* Element's uid is 99.\n* Its selector is `undefined`"
|
|
395
|
+
}
|
|
396
|
+
]
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"type": "querying"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"type": "thought",
|
|
403
|
+
"thought": "I am thinking."
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"type": "action",
|
|
407
|
+
"code": "console.log('hello');",
|
|
408
|
+
"output": "hello",
|
|
409
|
+
"canceled": false
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"type": "querying"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"type": "answer",
|
|
416
|
+
"text": "this is the actual answer",
|
|
417
|
+
"complete": true
|
|
418
|
+
}
|
|
419
|
+
]
|
|
420
|
+
=== end content
|
|
421
|
+
|
|
422
|
+
Title: StylingAgent run generates history for multiple actions
|
|
423
|
+
Content:
|
|
424
|
+
[
|
|
425
|
+
{
|
|
426
|
+
"parts": [
|
|
427
|
+
{
|
|
428
|
+
"text": "# Inspected element\n\n* Element's uid is 99.\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test"
|
|
429
|
+
}
|
|
430
|
+
],
|
|
431
|
+
"role": 1
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"parts": [
|
|
435
|
+
{
|
|
436
|
+
"functionCall": {
|
|
437
|
+
"name": "executeJavaScript",
|
|
438
|
+
"args": {
|
|
439
|
+
"thought": "thought 1",
|
|
440
|
+
"title": "test",
|
|
441
|
+
"code": "console.log('test')"
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
],
|
|
446
|
+
"role": 2
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"parts": [
|
|
450
|
+
{
|
|
451
|
+
"functionResponse": {
|
|
452
|
+
"name": "executeJavaScript",
|
|
453
|
+
"response": {
|
|
454
|
+
"result": "undefined"
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
],
|
|
459
|
+
"role": 0
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"parts": [
|
|
463
|
+
{
|
|
464
|
+
"functionCall": {
|
|
465
|
+
"name": "executeJavaScript",
|
|
466
|
+
"args": {
|
|
467
|
+
"thought": "thought 2",
|
|
468
|
+
"title": "test",
|
|
469
|
+
"code": "console.log('test')"
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
],
|
|
474
|
+
"role": 2
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"parts": [
|
|
478
|
+
{
|
|
479
|
+
"functionResponse": {
|
|
480
|
+
"name": "executeJavaScript",
|
|
481
|
+
"response": {
|
|
482
|
+
"result": "undefined"
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
],
|
|
487
|
+
"role": 0
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"parts": [
|
|
491
|
+
{
|
|
492
|
+
"functionCall": {
|
|
493
|
+
"name": "executeJavaScript",
|
|
494
|
+
"args": {
|
|
495
|
+
"thought": "thought 3",
|
|
496
|
+
"title": "test",
|
|
497
|
+
"code": "console.log('test')"
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
],
|
|
502
|
+
"role": 2
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"parts": [
|
|
506
|
+
{
|
|
507
|
+
"functionResponse": {
|
|
508
|
+
"name": "executeJavaScript",
|
|
509
|
+
"response": {
|
|
510
|
+
"result": "undefined"
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
],
|
|
515
|
+
"role": 0
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"parts": [
|
|
519
|
+
{
|
|
520
|
+
"text": "this is the answer"
|
|
521
|
+
}
|
|
522
|
+
],
|
|
523
|
+
"role": 2
|
|
524
|
+
}
|
|
525
|
+
]
|
|
526
|
+
=== end content
|
|
527
|
+
|
|
528
|
+
Title: StylingAgent enhanceQuery does not add multimodal input evaluation prompt when multimodal is disabled
|
|
529
|
+
Content:
|
|
530
|
+
# Inspected element
|
|
531
|
+
|
|
532
|
+
* Element's uid is 99.
|
|
533
|
+
* Its selector is `div#myElement`
|
|
534
|
+
|
|
535
|
+
# User request
|
|
536
|
+
|
|
537
|
+
QUERY: test query
|
|
538
|
+
=== end content
|
|
539
|
+
|
|
540
|
+
Title: StylingAgent enhanceQuery does not add multimodal input evaluation prompt when multimodal is enabled but multimodalInputType is missing
|
|
541
|
+
Content:
|
|
542
|
+
# Inspected element
|
|
543
|
+
|
|
544
|
+
* Element's uid is 99.
|
|
545
|
+
* Its selector is `div#myElement`
|
|
546
|
+
|
|
547
|
+
# User request
|
|
548
|
+
|
|
549
|
+
QUERY: test query
|
|
550
|
+
=== end content
|
|
551
|
+
|
|
552
|
+
Title: StylingAgent enhanceQuery adds multimodal input evaluation prompt when multimodal is enabled and multimodalInputType is screenshot
|
|
553
|
+
Content:
|
|
554
|
+
The user has provided you a screenshot of the page (as visible in the viewport) in base64-encoded format. You SHOULD use it while answering user's queries.
|
|
555
|
+
|
|
556
|
+
* Try to connect the screenshot to actual DOM elements in the page.
|
|
557
|
+
# Considerations for evaluating image:
|
|
558
|
+
* Pay close attention to the spatial details as well as the visual appearance of the selected element in the image, particularly in relation to layout, spacing, and styling.
|
|
559
|
+
* Analyze the image to identify the layout structure surrounding the element, including the positioning of neighboring elements.
|
|
560
|
+
* Extract visual information from the image, such as colors, fonts, spacing, and sizes, that might be relevant to the user's query.
|
|
561
|
+
* If the image suggests responsiveness issues (e.g., cropped content, overlapping elements), consider those in your response.
|
|
562
|
+
* Consider the surrounding elements and overall layout in the image, but prioritize the selected element's styling and positioning.
|
|
563
|
+
* **CRITICAL** When the user provides image input, interpret and use content and information from the image STRICTLY for web site debugging purposes.
|
|
564
|
+
|
|
565
|
+
* As part of THOUGHT, evaluate the image to gather data that might be needed to answer the question.
|
|
566
|
+
In case query is related to the image, ALWAYS first use image evaluation to get all details from the image. ONLY after you have all data needed from image, you should move to other steps.
|
|
567
|
+
|
|
568
|
+
# Inspected element
|
|
569
|
+
|
|
570
|
+
* Element's uid is 99.
|
|
571
|
+
* Its selector is `div#myElement`
|
|
572
|
+
|
|
573
|
+
# User request
|
|
574
|
+
|
|
575
|
+
QUERY: test query
|
|
576
|
+
=== end content
|
|
577
|
+
|
|
578
|
+
Title: StylingAgent enhanceQuery adds multimodal input evaluation prompt when multimodal is enabled and multimodalInputType is uploaded image
|
|
579
|
+
Content:
|
|
580
|
+
The user has uploaded an image in base64-encoded format. You SHOULD use it while answering user's queries.
|
|
581
|
+
# Considerations for evaluating image:
|
|
582
|
+
* Pay close attention to the spatial details as well as the visual appearance of the selected element in the image, particularly in relation to layout, spacing, and styling.
|
|
583
|
+
* Analyze the image to identify the layout structure surrounding the element, including the positioning of neighboring elements.
|
|
584
|
+
* Extract visual information from the image, such as colors, fonts, spacing, and sizes, that might be relevant to the user's query.
|
|
585
|
+
* If the image suggests responsiveness issues (e.g., cropped content, overlapping elements), consider those in your response.
|
|
586
|
+
* Consider the surrounding elements and overall layout in the image, but prioritize the selected element's styling and positioning.
|
|
587
|
+
* **CRITICAL** When the user provides image input, interpret and use content and information from the image STRICTLY for web site debugging purposes.
|
|
588
|
+
|
|
589
|
+
* As part of THOUGHT, evaluate the image to gather data that might be needed to answer the question.
|
|
590
|
+
In case query is related to the image, ALWAYS first use image evaluation to get all details from the image. ONLY after you have all data needed from image, you should move to other steps.
|
|
591
|
+
|
|
592
|
+
# Inspected element
|
|
593
|
+
|
|
594
|
+
* Element's uid is 99.
|
|
595
|
+
* Its selector is `div#myElement`
|
|
596
|
+
|
|
597
|
+
# User request
|
|
598
|
+
|
|
599
|
+
QUERY: test query
|
|
600
|
+
=== end content
|