chrome-devtools-frontend 1.0.1380117 → 1.0.1402249
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/.git-blame-ignore-revs +3 -0
- package/.stylelintrc.json +3 -4
- package/AUTHORS +3 -1
- package/config/gni/devtools_grd_files.gni +61 -33
- package/config/gni/devtools_image_files.gni +6 -1
- package/docs/README.md +5 -0
- package/docs/contributing/issues.md +14 -11
- package/docs/get_the_code.md +4 -1
- package/docs/policy/README.md +7 -0
- package/docs/policy/gar-page-zoom-policy.md +43 -0
- package/docs/policy/images/devtools-gar-testing.png +0 -0
- package/docs/policy/images/docked-devtools.webp +0 -0
- package/docs/policy/images/undocked-devtools.png +0 -0
- package/docs/policy/slow-close.md +52 -0
- package/docs/styleguide/ux/README.md +1 -0
- package/docs/styleguide/ux/components.md +98 -22
- package/docs/styleguide/ux/images/radio-buttons-variations.png +0 -0
- package/docs/styleguide/ux/images/sliders-variations.png +0 -0
- package/docs/styleguide/ux/numbers.md +106 -0
- package/docs/styleguide/ux/styles.md +29 -7
- package/eslint.config.mjs +725 -0
- package/extensions/cxx_debugging/src/CreditsItem.ts +1 -1
- package/extensions/cxx_debugging/src/ExtensionOptions.ts +4 -4
- package/extensions/cxx_debugging/src/ModuleConfigurationList.ts +1 -1
- package/extensions/cxx_debugging/src/rollup.config.in.js +1 -3
- package/extensions/cxx_debugging/tests/Formatters_test.ts +2 -1
- package/front_end/Images/rollup.config.mjs +1 -1
- package/front_end/Images/src/compress.svg +8 -0
- package/front_end/Images/src/cookie_off.svg +3 -0
- package/front_end/Images/src/devtools-thumbnail.svg +57 -0
- package/front_end/Images/src/devtools-tips.svg +61 -0
- package/front_end/Images/src/domain.svg +3 -0
- package/front_end/Images/src/whatsnew.svg +61 -0
- package/front_end/Tests.js +27 -33
- package/front_end/core/common/CharacterIdMap.test.ts +1 -1
- package/front_end/core/common/Color.ts +3 -3
- package/front_end/core/common/ColorUtils.test.ts +2 -2
- package/front_end/core/common/Console.test.ts +7 -7
- package/front_end/core/common/Lazy.test.ts +12 -14
- package/front_end/core/common/MapWithDefault.test.ts +61 -0
- package/front_end/core/common/MapWithDefault.ts +24 -0
- package/front_end/core/common/ParsedURL.test.ts +5 -5
- package/front_end/core/common/Progress.test.ts +7 -7
- package/front_end/core/common/ResolverBase.test.ts +2 -2
- package/front_end/core/common/ResourceType.test.ts +3 -3
- package/front_end/core/common/SettingRegistration.test.ts +2 -4
- package/front_end/core/common/SettingRegistration.ts +8 -1
- package/front_end/core/common/Settings.ts +7 -7
- package/front_end/core/common/common.ts +4 -3
- package/front_end/core/dom_extension/DOMExtension.test.ts +4 -2
- package/front_end/core/dom_extension/DOMExtension.ts +5 -4
- package/front_end/core/host/AidaClient.test.ts +92 -38
- package/front_end/core/host/AidaClient.ts +132 -29
- package/front_end/core/host/InspectorFrontendHost.ts +15 -5
- package/front_end/core/host/InspectorFrontendHostAPI.ts +1 -5
- package/front_end/core/host/UserMetrics.ts +27 -69
- package/front_end/core/i18n/i18n.test.ts +45 -0
- package/front_end/core/i18n/locales/af.json +1031 -887
- package/front_end/core/i18n/locales/am.json +1036 -892
- package/front_end/core/i18n/locales/ar.json +1039 -895
- package/front_end/core/i18n/locales/as.json +1032 -888
- package/front_end/core/i18n/locales/az.json +1034 -890
- package/front_end/core/i18n/locales/be.json +1031 -887
- package/front_end/core/i18n/locales/bg.json +1031 -887
- package/front_end/core/i18n/locales/bn.json +1033 -889
- package/front_end/core/i18n/locales/bs.json +1036 -892
- package/front_end/core/i18n/locales/ca.json +1031 -887
- package/front_end/core/i18n/locales/cs.json +1030 -886
- package/front_end/core/i18n/locales/cy.json +1032 -888
- package/front_end/core/i18n/locales/da.json +1031 -887
- package/front_end/core/i18n/locales/de.json +1033 -889
- package/front_end/core/i18n/locales/el.json +1031 -887
- package/front_end/core/i18n/locales/en-GB.json +1033 -889
- package/front_end/core/i18n/locales/es-419.json +1029 -885
- package/front_end/core/i18n/locales/es.json +1032 -888
- package/front_end/core/i18n/locales/et.json +1033 -889
- package/front_end/core/i18n/locales/eu.json +1031 -887
- package/front_end/core/i18n/locales/fa.json +1035 -891
- package/front_end/core/i18n/locales/fi.json +1035 -891
- package/front_end/core/i18n/locales/fil.json +1034 -890
- package/front_end/core/i18n/locales/fr-CA.json +1031 -887
- package/front_end/core/i18n/locales/fr.json +1049 -905
- package/front_end/core/i18n/locales/gl.json +1032 -888
- package/front_end/core/i18n/locales/gu.json +1035 -891
- package/front_end/core/i18n/locales/he.json +1031 -887
- package/front_end/core/i18n/locales/hi.json +1034 -890
- package/front_end/core/i18n/locales/hr.json +1031 -887
- package/front_end/core/i18n/locales/hu.json +1033 -889
- package/front_end/core/i18n/locales/hy.json +1046 -902
- package/front_end/core/i18n/locales/id.json +1023 -879
- package/front_end/core/i18n/locales/is.json +1032 -888
- package/front_end/core/i18n/locales/it.json +1031 -887
- package/front_end/core/i18n/locales/ja.json +1042 -898
- package/front_end/core/i18n/locales/ka.json +1034 -890
- package/front_end/core/i18n/locales/kk.json +1035 -891
- package/front_end/core/i18n/locales/km.json +1035 -891
- package/front_end/core/i18n/locales/kn.json +1036 -892
- package/front_end/core/i18n/locales/ko.json +1031 -887
- package/front_end/core/i18n/locales/ky.json +1032 -888
- package/front_end/core/i18n/locales/lo.json +1030 -886
- package/front_end/core/i18n/locales/lt.json +1032 -888
- package/front_end/core/i18n/locales/lv.json +1032 -888
- package/front_end/core/i18n/locales/mk.json +1032 -888
- package/front_end/core/i18n/locales/ml.json +1033 -889
- package/front_end/core/i18n/locales/mn.json +1034 -890
- package/front_end/core/i18n/locales/mr.json +1035 -891
- package/front_end/core/i18n/locales/ms.json +1033 -889
- package/front_end/core/i18n/locales/my.json +1033 -889
- package/front_end/core/i18n/locales/ne.json +1036 -892
- package/front_end/core/i18n/locales/nl.json +1033 -889
- package/front_end/core/i18n/locales/no.json +1036 -892
- package/front_end/core/i18n/locales/or.json +1043 -899
- package/front_end/core/i18n/locales/pa.json +1030 -886
- package/front_end/core/i18n/locales/pl.json +1032 -888
- package/front_end/core/i18n/locales/pt-PT.json +1033 -889
- package/front_end/core/i18n/locales/pt.json +1033 -889
- package/front_end/core/i18n/locales/ro.json +1029 -885
- package/front_end/core/i18n/locales/ru.json +1026 -882
- package/front_end/core/i18n/locales/si.json +1031 -887
- package/front_end/core/i18n/locales/sk.json +1033 -889
- package/front_end/core/i18n/locales/sl.json +1031 -887
- package/front_end/core/i18n/locales/sq.json +1061 -917
- package/front_end/core/i18n/locales/sr-Latn.json +1033 -889
- package/front_end/core/i18n/locales/sr.json +1033 -889
- package/front_end/core/i18n/locales/sv.json +1031 -887
- package/front_end/core/i18n/locales/sw.json +1033 -889
- package/front_end/core/i18n/locales/ta.json +1058 -914
- package/front_end/core/i18n/locales/te.json +1037 -893
- package/front_end/core/i18n/locales/th.json +1032 -888
- package/front_end/core/i18n/locales/tr.json +1031 -887
- package/front_end/core/i18n/locales/uk.json +1030 -886
- package/front_end/core/i18n/locales/ur.json +1031 -887
- package/front_end/core/i18n/locales/uz.json +1023 -879
- package/front_end/core/i18n/locales/vi.json +1032 -888
- package/front_end/core/i18n/locales/zh-HK.json +1032 -888
- package/front_end/core/i18n/locales/zh-TW.json +1032 -888
- package/front_end/core/i18n/locales/zh.json +1033 -889
- package/front_end/core/i18n/locales/zu.json +1032 -888
- package/front_end/core/i18n/time-utilities.ts +17 -0
- package/front_end/core/platform/ArrayUtilities.test.ts +7 -8
- package/front_end/core/platform/MapUtilities.ts +1 -1
- package/front_end/core/platform/StringUtilities.test.ts +1 -1
- package/front_end/core/platform/TypedArrayUtilities.test.ts +6 -6
- package/front_end/core/root/Runtime.test.ts +5 -3
- package/front_end/core/root/Runtime.ts +21 -4
- package/front_end/core/sdk/AnimationModel.test.ts +4 -4
- package/front_end/core/sdk/AutofillModel.test.ts +1 -1
- package/front_end/core/sdk/CSSMatchedStyles.test.ts +44 -45
- package/front_end/core/sdk/CSSModel.test.ts +1 -1
- package/front_end/core/sdk/CSSStyleDeclaration.test.ts +7 -7
- package/front_end/core/sdk/ChildTargetManager.test.ts +10 -10
- package/front_end/core/sdk/Connections.ts +5 -0
- package/front_end/core/sdk/Cookie.test.ts +37 -37
- package/front_end/core/sdk/CookieModel.test.ts +5 -5
- package/front_end/core/sdk/DOMModel.ts +5 -0
- package/front_end/core/sdk/DebuggerModel.test.ts +2 -2
- package/front_end/core/sdk/EnhancedTracesParser.test.ts +7 -7
- package/front_end/core/sdk/EnhancedTracesParser.ts +3 -1
- package/front_end/core/sdk/FrameManager.test.ts +4 -4
- package/front_end/core/sdk/NetworkManager.test.ts +53 -3
- package/front_end/core/sdk/NetworkManager.ts +7 -5
- package/front_end/core/sdk/NetworkRequest.test.ts +5 -5
- package/front_end/core/sdk/PreloadingModel.test.ts +226 -10
- package/front_end/core/sdk/PreloadingModel.ts +184 -15
- package/front_end/core/sdk/RehydratingConnection.test.ts +3 -3
- package/front_end/core/sdk/RehydratingConnection.ts +49 -7
- package/front_end/core/sdk/RemoteObject.test.ts +60 -60
- package/front_end/core/sdk/ResourceTreeModel.test.ts +5 -5
- package/front_end/core/sdk/ServiceWorkerManager.test.ts +3 -3
- package/front_end/core/sdk/SourceMap.test.ts +35 -35
- package/front_end/core/sdk/SourceMapScopeChainEntry.test.ts +7 -2
- package/front_end/core/sdk/SourceMapScopeChainEntry.ts +2 -2
- package/front_end/core/sdk/SourceMapScopes.test.ts +112 -45
- package/front_end/core/sdk/SourceMapScopes.ts +39 -14
- package/front_end/core/sdk/SourceMapScopesInfo.test.ts +135 -50
- package/front_end/core/sdk/SourceMapScopesInfo.ts +64 -2
- package/front_end/core/sdk/TraceObject.test.ts +1 -1
- package/front_end/devtools_compatibility.js +1 -5
- package/front_end/entrypoints/devtools_app/devtools_app.ts +1 -0
- package/front_end/entrypoints/formatter_worker/FormattedContentBuilder.test.ts +1 -1
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +1 -1
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +1 -2
- package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +1 -2
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +2 -2
- package/front_end/entrypoints/inspector_main/nodeIcon.css +1 -0
- package/front_end/entrypoints/inspector_main/renderingOptions.css +1 -1
- package/front_end/entrypoints/main/ExecutionContextSelector.test.ts +13 -3
- package/front_end/entrypoints/main/ExecutionContextSelector.ts +23 -1
- package/front_end/entrypoints/main/MainImpl.ts +40 -27
- package/front_end/entrypoints/node_app/NodeConnectionsPanel.ts +1 -1
- package/front_end/entrypoints/node_app/NodeMain.ts +6 -0
- package/front_end/entrypoints/node_app/node_app.ts +2 -2
- package/front_end/entrypoints/shell/shell.ts +1 -1
- package/front_end/generated/ARIAProperties.js +1 -1
- package/front_end/generated/Deprecation.ts +8 -31
- package/front_end/generated/InspectorBackendCommands.js +23 -14
- package/front_end/generated/SupportedCSSProperties.js +51 -76
- package/front_end/generated/protocol-mapping.d.ts +25 -0
- package/front_end/generated/protocol-proxy-api.d.ts +19 -0
- package/front_end/generated/protocol.ts +185 -11
- package/front_end/legacy/legacy-defs.d.ts +4 -6
- package/front_end/models/autofill_manager/AutofillManager.test.ts +1 -1
- package/front_end/models/bindings/DebuggerLanguagePlugins.test.ts +3 -3
- package/front_end/models/bindings/DefaultScriptMapping.test.ts +3 -3
- package/front_end/models/bindings/FileUtils.test.ts +2 -2
- package/front_end/models/bindings/IgnoreListManager.ts +28 -5
- package/front_end/models/breakpoints/BreakpointManager.test.ts +24 -23
- package/front_end/models/crux-manager/CrUXManager.test.ts +90 -10
- package/front_end/models/crux-manager/CrUXManager.ts +80 -10
- package/front_end/models/emulation/DeviceModeModel.ts +15 -0
- package/front_end/models/emulation/EmulatedDevices.test.ts +20 -0
- package/front_end/models/emulation/EmulatedDevices.ts +22 -18
- package/front_end/models/extensions/ExtensionAPI.ts +1 -1
- package/front_end/models/extensions/ExtensionServer.test.ts +135 -40
- package/front_end/models/extensions/ExtensionServer.ts +34 -17
- package/front_end/models/extensions/LanguageExtensionEndpoint.test.ts +59 -0
- package/front_end/models/extensions/LanguageExtensionEndpoint.ts +25 -6
- package/front_end/models/extensions/RecorderPluginManager.test.ts +1 -1
- package/front_end/models/extensions/extensions.ts +4 -0
- package/front_end/models/formatter/FormatterWorkerPool.ts +2 -1
- package/front_end/models/har/Importer.test.ts +4 -4
- package/front_end/models/har/Log.test.ts +1 -1
- package/front_end/models/issues_manager/CookieIssue.ts +82 -4
- package/front_end/models/issues_manager/DeprecationIssue.test.ts +3 -3
- package/front_end/models/issues_manager/DeprecationIssue.ts +1 -1
- package/front_end/models/issues_manager/FederatedAuthUserInfoRequestIssue.test.ts +1 -1
- package/front_end/models/issues_manager/GenericIssue.test.ts +2 -2
- package/front_end/models/issues_manager/IssueResolver.test.ts +2 -2
- package/front_end/models/issues_manager/IssuesManager.test.ts +19 -19
- package/front_end/models/issues_manager/IssuesManager.ts +1 -1
- package/front_end/models/issues_manager/LowTextContrastIssue.test.ts +2 -2
- package/front_end/models/issues_manager/PropertyRuleIssue.test.ts +1 -1
- package/front_end/models/issues_manager/RelatedIssue.test.ts +7 -7
- package/front_end/models/issues_manager/SharedDictionaryIssue.test.ts +1 -1
- package/front_end/models/issues_manager/StylesheetLoadingIssue.test.ts +7 -7
- package/front_end/models/issues_manager/descriptions/cookieExcludePortMismatch.md +8 -0
- package/front_end/models/issues_manager/descriptions/cookieExcludeSchemeMismatch.md +7 -0
- package/front_end/models/javascript_metadata/JavaScriptMetadata.test.ts +6 -6
- package/front_end/models/javascript_metadata/NativeFunctions.js +95 -73
- package/front_end/models/live-metrics/LiveMetrics.ts +92 -44
- package/front_end/models/live-metrics/web-vitals-injected/web-vitals-injected.ts +3 -3
- package/front_end/models/logs/NetworkLog.test.ts +3 -3
- package/front_end/models/logs/RequestResolver.test.ts +2 -2
- package/front_end/models/persistence/EditFileSystemView.ts +1 -1
- package/front_end/models/persistence/NetworkPersistenceManager.test.ts +2 -2
- package/front_end/models/persistence/WorkspaceSettingsTab.ts +2 -1
- package/front_end/models/persistence/editFileSystemView.css +15 -7
- package/front_end/models/persistence/workspaceSettingsTab.css +2 -2
- package/front_end/models/text_utils/Text.test.ts +1 -1
- package/front_end/models/text_utils/TextRange.test.ts +2 -4
- package/front_end/models/text_utils/TextUtils.test.ts +29 -30
- package/front_end/models/trace/ModelImpl.test.ts +2 -2
- package/front_end/models/trace/ModelImpl.ts +1 -0
- package/front_end/models/trace/Processor.test.ts +75 -12
- package/front_end/models/trace/Processor.ts +108 -9
- package/front_end/models/trace/extras/Metadata.test.ts +38 -2
- package/front_end/models/trace/extras/Metadata.ts +27 -5
- package/front_end/models/trace/extras/StackTraceForEvent.test.ts +259 -0
- package/front_end/models/trace/extras/StackTraceForEvent.ts +173 -0
- package/front_end/models/trace/extras/ThirdParties.test.ts +0 -27
- package/front_end/models/trace/extras/ThirdParties.ts +3 -76
- package/front_end/models/trace/extras/TraceTree.ts +28 -18
- package/front_end/models/trace/extras/extras.ts +1 -1
- package/front_end/models/trace/handlers/AnimationFramesHandler.test.ts +40 -0
- package/front_end/models/trace/handlers/AnimationFramesHandler.ts +119 -0
- package/front_end/models/trace/handlers/AsyncJSCallsHandler.test.ts +211 -0
- package/front_end/models/trace/handlers/AsyncJSCallsHandler.ts +185 -0
- package/front_end/models/trace/handlers/ExtensionTraceDataHandler.test.ts +7 -7
- package/front_end/models/trace/handlers/ExtensionTraceDataHandler.ts +2 -2
- package/front_end/models/trace/handlers/FlowsHandler.test.ts +185 -0
- package/front_end/models/trace/handlers/FlowsHandler.ts +176 -0
- package/front_end/models/trace/handlers/ImagePaintingHandler.ts +12 -0
- package/front_end/models/trace/handlers/InitiatorsHandler.test.ts +56 -49
- package/front_end/models/trace/handlers/InitiatorsHandler.ts +37 -25
- package/front_end/models/trace/handlers/LargestImagePaintHandler.test.ts +19 -1
- package/front_end/models/trace/handlers/LargestImagePaintHandler.ts +18 -6
- package/front_end/models/trace/handlers/LayoutShiftsHandler.test.ts +8 -8
- package/front_end/models/trace/handlers/MetaHandler.test.ts +10 -10
- package/front_end/models/trace/handlers/ModelHandlers.ts +3 -0
- package/front_end/models/trace/handlers/NetworkRequestsHandler.test.ts +116 -10
- package/front_end/models/trace/handlers/NetworkRequestsHandler.ts +23 -1
- package/front_end/models/trace/handlers/PageLoadMetricsHandler.test.ts +2 -2
- package/front_end/models/trace/handlers/PageLoadMetricsHandler.ts +2 -0
- package/front_end/models/trace/handlers/RendererHandler.test.ts +25 -6
- package/front_end/models/trace/handlers/RendererHandler.ts +39 -1
- package/front_end/models/trace/handlers/SamplesHandler.test.ts +1 -1
- package/front_end/models/trace/handlers/ScreenshotsHandler.test.ts +3 -3
- package/front_end/models/trace/handlers/Threads.test.ts +1 -1
- package/front_end/models/trace/handlers/UserInteractionsHandler.test.ts +3 -3
- package/front_end/models/trace/handlers/handlers.ts +1 -0
- package/front_end/models/trace/{extras/URLForEntry.test.ts → handlers/helpers.test.ts} +34 -7
- package/front_end/models/trace/handlers/helpers.ts +159 -0
- package/front_end/models/trace/helpers/SamplesIntegrator.test.ts +13 -13
- package/front_end/models/trace/helpers/Timing.ts +8 -0
- package/front_end/models/trace/helpers/Trace.test.ts +2 -2
- package/front_end/models/trace/helpers/Trace.ts +65 -16
- package/front_end/models/trace/helpers/TreeHelpers.test.ts +5 -5
- package/front_end/models/trace/helpers/TreeHelpers.ts +1 -1
- package/front_end/models/trace/insights/CLSCulprits.test.ts +9 -19
- package/front_end/models/trace/insights/CLSCulprits.ts +18 -3
- package/front_end/models/trace/insights/Common.test.ts +52 -0
- package/front_end/models/trace/insights/Common.ts +118 -1
- package/front_end/models/trace/insights/DOMSize.test.ts +31 -0
- package/front_end/models/trace/insights/DOMSize.ts +121 -0
- package/front_end/models/trace/insights/DocumentLatency.test.ts +6 -10
- package/front_end/models/trace/insights/DocumentLatency.ts +16 -3
- package/front_end/models/trace/insights/FontDisplay.test.ts +3 -13
- package/front_end/models/trace/insights/FontDisplay.ts +10 -3
- package/front_end/models/trace/insights/ImageDelivery.test.ts +103 -0
- package/front_end/models/trace/insights/ImageDelivery.ts +271 -0
- package/front_end/models/trace/insights/InteractionToNextPaint.test.ts +1 -11
- package/front_end/models/trace/insights/InteractionToNextPaint.ts +9 -3
- package/front_end/models/trace/insights/LCPDiscovery.test.ts +4 -14
- package/front_end/models/trace/insights/LCPDiscovery.ts +24 -3
- package/front_end/models/trace/insights/LCPPhases.test.ts +4 -14
- package/front_end/models/trace/insights/LCPPhases.ts +25 -3
- package/front_end/models/trace/insights/Models.ts +2 -0
- package/front_end/models/trace/insights/RenderBlocking.test.ts +14 -25
- package/front_end/models/trace/insights/RenderBlocking.ts +10 -2
- package/front_end/models/trace/insights/SlowCSSSelector.test.ts +5 -15
- package/front_end/models/trace/insights/SlowCSSSelector.ts +10 -3
- package/front_end/models/trace/insights/Statistics.test.ts +145 -0
- package/front_end/models/trace/insights/Statistics.ts +93 -0
- package/front_end/models/trace/insights/ThirdParties.test.ts +1 -11
- package/front_end/models/trace/insights/ThirdParties.ts +13 -5
- package/front_end/models/trace/insights/Viewport.test.ts +8 -13
- package/front_end/models/trace/insights/Viewport.ts +18 -5
- package/front_end/models/trace/insights/insights.ts +1 -0
- package/front_end/models/trace/insights/types.ts +16 -3
- package/front_end/models/trace/lantern/core/NetworkAnalyzer.test.ts +21 -21
- package/front_end/models/trace/lantern/core/NetworkAnalyzer.ts +1 -1
- package/front_end/models/trace/lantern/graph/BaseNode.test.ts +24 -24
- package/front_end/models/trace/lantern/graph/PageDependencyGraph.test.ts +26 -26
- package/front_end/models/trace/lantern/metrics/FirstContentfulPaint.test.ts +3 -3
- package/front_end/models/trace/lantern/metrics/Interactive.test.ts +6 -6
- package/front_end/models/trace/lantern/metrics/LargestContentfulPaint.test.ts +3 -3
- package/front_end/models/trace/lantern/metrics/SpeedIndex.test.ts +3 -3
- package/front_end/models/trace/lantern/metrics/TBTUtils.test.ts +1 -1
- package/front_end/models/trace/lantern/simulation/ConnectionPool.test.ts +22 -22
- package/front_end/models/trace/lantern/simulation/Simulator.test.ts +1 -1
- package/front_end/models/trace/lantern/simulation/TCPConnection.test.ts +1 -1
- package/front_end/models/trace/root-causes/LayoutShift.test.ts +15 -15
- package/front_end/models/trace/types/Extensions.ts +4 -3
- package/front_end/models/trace/types/File.ts +10 -1
- package/front_end/models/trace/types/TraceEvents.ts +108 -13
- package/front_end/models/workspace/UISourceCode.test.ts +1 -1
- package/front_end/models/workspace/WorkspaceImpl.test.ts +6 -6
- package/front_end/panels/accessibility/AccessibilitySubPane.ts +1 -1
- package/front_end/panels/accessibility/accessibilityNode.css +2 -2
- package/front_end/panels/accessibility/axBreadcrumbs.css +1 -1
- package/front_end/panels/{freestyler/FreestylerPanel.test.ts → ai_assistance/AiAssistancePanel.test.ts} +218 -113
- package/front_end/panels/{freestyler/FreestylerPanel.ts → ai_assistance/AiAssistancePanel.ts} +277 -200
- package/front_end/panels/ai_assistance/AiHistoryStorage.test.ts +182 -0
- package/front_end/panels/ai_assistance/AiHistoryStorage.ts +71 -0
- package/front_end/panels/{freestyler → ai_assistance}/ChangeManager.test.ts +6 -6
- package/front_end/panels/{freestyler → ai_assistance}/ChangeManager.ts +2 -2
- package/front_end/panels/{freestyler/FreestylerEvaluateAction.test.ts → ai_assistance/EvaluateAction.test.ts} +37 -35
- package/front_end/panels/{freestyler/FreestylerEvaluateAction.ts → ai_assistance/EvaluateAction.ts} +10 -5
- package/front_end/panels/ai_assistance/agents/AiAgent.test.ts +589 -0
- package/front_end/panels/{freestyler → ai_assistance/agents}/AiAgent.ts +273 -184
- package/front_end/panels/{freestyler/DrJonesFileAgent.test.ts → ai_assistance/agents/FileAgent.test.ts} +197 -98
- package/front_end/panels/{freestyler/DrJonesFileAgent.ts → ai_assistance/agents/FileAgent.ts} +32 -37
- package/front_end/panels/{freestyler/DrJonesNetworkAgent.test.ts → ai_assistance/agents/NetworkAgent.test.ts} +50 -50
- package/front_end/panels/{freestyler/DrJonesNetworkAgent.ts → ai_assistance/agents/NetworkAgent.ts} +16 -23
- package/front_end/panels/ai_assistance/agents/PatchAgent.ts +405 -0
- package/front_end/panels/{freestyler/DrJonesPerformanceAgent.test.ts → ai_assistance/agents/PerformanceAgent.test.ts} +65 -64
- package/front_end/panels/{freestyler/DrJonesPerformanceAgent.ts → ai_assistance/agents/PerformanceAgent.ts} +10 -28
- package/front_end/panels/{freestyler/FreestylerAgent.test.ts → ai_assistance/agents/StylingAgent.test.ts} +445 -212
- package/front_end/panels/{freestyler/FreestylerAgent.ts → ai_assistance/agents/StylingAgent.ts} +85 -73
- package/front_end/panels/{freestyler/freestylerPanel.css → ai_assistance/aiAssistancePanel.css} +2 -2
- package/front_end/panels/{freestyler/freestyler-meta.ts → ai_assistance/ai_assistance-meta.ts} +71 -45
- package/front_end/panels/ai_assistance/ai_assistance.ts +16 -0
- package/front_end/panels/{freestyler/components/FreestylerChatUi.test.ts → ai_assistance/components/ChatView.test.ts} +21 -24
- package/front_end/panels/{freestyler/components/FreestylerChatUi.ts → ai_assistance/components/ChatView.ts} +266 -76
- package/front_end/panels/{freestyler → ai_assistance}/components/UserActionRow.test.ts +1 -1
- package/front_end/panels/{freestyler → ai_assistance}/components/UserActionRow.ts +20 -15
- package/front_end/panels/{freestyler/components/freestylerChatUi.css → ai_assistance/components/chatView.css} +79 -4
- package/front_end/panels/{freestyler → ai_assistance}/components/userActionRow.css +2 -1
- package/front_end/panels/animation/AnimationTimeline.ts +5 -7
- package/front_end/panels/animation/AnimationUI.ts +1 -1
- package/front_end/panels/animation/animationTimeline.css +7 -10
- package/front_end/panels/application/AppManifestView.test.ts +7 -7
- package/front_end/panels/application/AppManifestView.ts +1 -1
- package/front_end/panels/application/ApplicationPanelSidebar.test.ts +8 -16
- package/front_end/panels/application/ApplicationPanelSidebar.ts +15 -21
- package/front_end/panels/application/BackgroundServiceView.ts +1 -1
- package/front_end/panels/application/DOMStorageModel.test.ts +1 -1
- package/front_end/panels/application/ExtensionStorageItemsView.test.ts +3 -5
- package/front_end/panels/application/ExtensionStorageModel.test.ts +5 -5
- package/front_end/panels/application/IndexedDBViews.test.ts +6 -8
- package/front_end/panels/application/IndexedDBViews.ts +4 -1
- package/front_end/panels/application/InterestGroupTreeElement.test.ts +1 -1
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +4 -1
- package/front_end/panels/application/ServiceWorkerUpdateCycleView.test.ts +9 -10
- package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +2 -2
- package/front_end/panels/application/ServiceWorkersView.ts +0 -1
- package/front_end/panels/application/SharedStorageItemsView.test.ts +13 -15
- package/front_end/panels/application/SharedStorageModel.test.ts +1 -1
- package/front_end/panels/application/SharedStorageTreeElement.test.ts +2 -4
- package/front_end/panels/application/StorageView.test.ts +3 -5
- package/front_end/panels/application/StorageView.ts +5 -5
- package/front_end/panels/application/components/BackForwardCacheView.test.ts +10 -12
- package/front_end/panels/application/components/BackForwardCacheView.ts +2 -4
- package/front_end/panels/application/components/BounceTrackingMitigationsView.test.ts +11 -13
- package/front_end/panels/application/components/EndpointsGrid.test.ts +4 -6
- package/front_end/panels/application/components/FrameDetailsView.test.ts +3 -5
- package/front_end/panels/application/components/FrameDetailsView.ts +2 -4
- package/front_end/panels/application/components/InterestGroupAccessGrid.test.ts +2 -4
- package/front_end/panels/application/components/OriginTrialTreeView.test.ts +2 -4
- package/front_end/panels/application/components/PermissionsPolicySection.ts +2 -4
- package/front_end/panels/application/components/ProtocolHandlersView.ts +1 -1
- package/front_end/panels/application/components/ReportsGrid.test.ts +2 -4
- package/front_end/panels/application/components/ServiceWorkerRouterView.test.ts +3 -5
- package/front_end/panels/application/components/SharedStorageAccessGrid.test.ts +2 -4
- package/front_end/panels/application/components/SharedStorageMetadataView.test.ts +5 -7
- package/front_end/panels/application/components/StorageMetadataView.test.ts +3 -5
- package/front_end/panels/application/components/StorageMetadataView.ts +2 -3
- package/front_end/panels/application/components/TrustTokensView.test.ts +2 -4
- package/front_end/panels/application/components/TrustTokensView.ts +1 -3
- package/front_end/panels/application/preloading/PreloadingView.test.ts +42 -27
- package/front_end/panels/application/preloading/PreloadingView.ts +12 -9
- package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.test.ts +2 -4
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.test.ts +115 -25
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +51 -26
- package/front_end/panels/application/preloading/components/PreloadingDisabledInfobar.ts +10 -20
- package/front_end/panels/application/preloading/components/PreloadingGrid.test.ts +169 -17
- package/front_end/panels/application/preloading/components/PreloadingGrid.ts +73 -50
- package/front_end/panels/application/preloading/components/PreloadingMismatchedHeadersGrid.test.ts +3 -4
- package/front_end/panels/application/preloading/components/RuleSetDetailsView.test.ts +7 -15
- package/front_end/panels/application/preloading/components/RuleSetDetailsView.ts +4 -5
- package/front_end/panels/application/preloading/components/RuleSetGrid.test.ts +2 -4
- package/front_end/panels/application/preloading/components/UsedPreloadingView.test.ts +57 -37
- package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +2 -4
- package/front_end/panels/application/preloading/components/preloadingDisabledInfobar.css +4 -17
- package/front_end/panels/application/resourcesPanel.css +1 -2
- package/front_end/panels/application/resourcesSidebar.css +1 -1
- package/front_end/panels/application/serviceWorkersView.css +0 -5
- package/front_end/panels/autofill/AutofillView.test.ts +12 -14
- package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +1 -1
- package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +1 -1
- package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +3 -3
- package/front_end/panels/browser_debugger/categorizedBreakpointsSidebarPane.css +1 -1
- package/front_end/panels/browser_debugger/xhrBreakpointsSidebarPane.css +1 -1
- package/front_end/panels/console/ConsoleContextSelector.ts +1 -2
- package/front_end/panels/console/ConsolePinPane.ts +3 -4
- package/front_end/panels/console/ConsoleSidebar.ts +1 -1
- package/front_end/panels/console/ConsoleView.test.ts +2 -2
- package/front_end/panels/console/ConsoleView.ts +5 -4
- package/front_end/panels/console/ConsoleViewMessage.test.ts +101 -9
- package/front_end/panels/console/ConsoleViewMessage.ts +34 -6
- package/front_end/panels/console/ConsoleViewport.ts +2 -2
- package/front_end/panels/console/ErrorStackParser.test.ts +31 -11
- package/front_end/panels/console/ErrorStackParser.ts +10 -2
- package/front_end/panels/console/consolePinPane.css +1 -1
- package/front_end/panels/console/consoleView.css +11 -5
- package/front_end/panels/coverage/CoverageListView.ts +1 -1
- package/front_end/panels/coverage/CoverageView.test.ts +4 -6
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -2
- package/front_end/panels/css_overview/CSSOverviewSidebarPanel.ts +1 -2
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +3 -2
- package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +5 -1
- package/front_end/panels/developer_resources/DeveloperResourcesView.ts +17 -0
- package/front_end/panels/elements/CSSRuleValidator.ts +4 -10
- package/front_end/panels/elements/ClassesPaneWidget.ts +3 -3
- package/front_end/panels/elements/ComputedStyleModel.test.ts +157 -0
- package/front_end/panels/elements/ComputedStyleModel.ts +79 -17
- package/front_end/panels/elements/ComputedStyleWidget.ts +7 -13
- package/front_end/panels/elements/DOMLinkifier.ts +18 -17
- package/front_end/panels/elements/ElementStatePaneWidget.test.ts +4 -3
- package/front_end/panels/elements/ElementStatePaneWidget.ts +9 -3
- package/front_end/panels/elements/ElementsPanel.ts +22 -25
- package/front_end/panels/elements/ElementsSidebarPane.ts +7 -7
- package/front_end/panels/elements/ElementsTreeElement.ts +3 -2
- package/front_end/panels/elements/ElementsTreeOutline.ts +2 -9
- package/front_end/panels/elements/LayersWidget.ts +1 -1
- package/front_end/panels/elements/MetricsSidebarPane.ts +3 -2
- package/front_end/panels/elements/PlatformFontsWidget.ts +1 -0
- package/front_end/panels/elements/PropertyMatchers.test.ts +33 -27
- package/front_end/panels/elements/PropertyMatchers.ts +3 -0
- package/front_end/panels/elements/PropertyRenderer.test.ts +5 -5
- package/front_end/panels/elements/StylePropertiesSection.test.ts +9 -4
- package/front_end/panels/elements/StylePropertiesSection.ts +1 -1
- package/front_end/panels/elements/StylePropertyHighlighter.test.ts +2 -1
- package/front_end/panels/elements/StylePropertyTreeElement.test.ts +23 -21
- package/front_end/panels/elements/StylePropertyTreeElement.ts +3 -2
- package/front_end/panels/elements/StylesSidebarPane.test.ts +8 -6
- package/front_end/panels/elements/StylesSidebarPane.ts +9 -21
- package/front_end/panels/elements/classesPaneWidget.css +1 -1
- package/front_end/panels/elements/components/AccessibilityTreeNode.test.ts +3 -5
- package/front_end/panels/elements/components/AccessibilityTreeNode.ts +5 -7
- package/front_end/panels/elements/components/CSSQuery.ts +1 -1
- package/front_end/panels/elements/components/ElementsBreadcrumbs.test.ts +13 -15
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +7 -8
- package/front_end/panels/elements/components/ElementsTreeExpandButton.test.ts +3 -5
- package/front_end/panels/elements/components/LayoutPane.test.ts +14 -10
- package/front_end/panels/elements/components/LayoutPane.ts +3 -4
- package/front_end/panels/elements/components/QueryContainer.test.ts +1 -1
- package/front_end/panels/elements/components/QueryContainer.ts +1 -1
- package/front_end/panels/elements/components/components.ts +0 -2
- package/front_end/panels/elements/elementsPanel.css +4 -4
- package/front_end/panels/elements/elementsTreeOutline.css +6 -5
- package/front_end/panels/elements/metricsSidebarPane.css +1 -1
- package/front_end/panels/elements/stylePropertiesTreeOutline.css +4 -0
- package/front_end/panels/emulation/DeviceModeToolbar.ts +1 -2
- package/front_end/panels/emulation/DeviceModeView.ts +18 -21
- package/front_end/panels/emulation/DeviceModeWrapper.ts +27 -2
- package/front_end/panels/emulation/InspectedPagePlaceholder.ts +1 -1
- package/front_end/panels/emulation/MediaQueryInspector.test.ts +2 -2
- package/front_end/panels/emulation/components/DeviceSizeInputElement.ts +1 -1
- package/front_end/panels/emulation/deviceModeView.css +9 -16
- package/front_end/panels/emulation/mediaQueryInspector.css +3 -6
- package/front_end/panels/event_listeners/EventListenersView.ts +1 -1
- package/front_end/panels/explain/PromptBuilder.test.ts +9 -9
- package/front_end/panels/explain/components/ConsoleInsight.test.ts +37 -1
- package/front_end/panels/explain/components/ConsoleInsight.ts +46 -5
- package/front_end/panels/explain/components/consoleInsight.css +13 -9
- package/front_end/panels/explain/explain-meta.ts +12 -8
- package/front_end/panels/issues/IssueAggregator.test.ts +73 -20
- package/front_end/panels/issues/IssueAggregator.ts +18 -13
- package/front_end/panels/issues/issuesTree.css +3 -4
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +5 -5
- package/front_end/panels/layer_viewer/Layers3DView.ts +5 -4
- package/front_end/panels/layer_viewer/PaintProfilerView.ts +2 -2
- package/front_end/panels/layer_viewer/layerDetailsView.css +1 -2
- package/front_end/panels/layers/LayersPanel.ts +1 -1
- package/front_end/panels/lighthouse/LighthouseReportRenderer.test.ts +1 -1
- package/front_end/panels/lighthouse/LighthouseStatusView.ts +2 -2
- package/front_end/panels/lighthouse/LighthouseTimespanView.ts +2 -2
- package/front_end/panels/lighthouse/lighthousePanel.css +5 -5
- package/front_end/panels/lighthouse/lighthouseStartView.css +2 -1
- package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorController.test.ts +3 -3
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.test.ts +3 -3
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryViewer.test.ts +2 -2
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplay.test.ts +3 -3
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplay.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/valueInterpreterSettings.css +1 -2
- package/front_end/panels/media/MainView.test.ts +2 -2
- package/front_end/panels/media/PlayerMessagesView.ts +2 -3
- package/front_end/panels/media/TickingFlameChart.ts +1 -1
- package/front_end/panels/mobile_throttling/ThrottlingManager.test.ts +1 -1
- package/front_end/panels/mobile_throttling/ThrottlingManager.ts +119 -65
- package/front_end/panels/mobile_throttling/ThrottlingPresets.ts +37 -1
- package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +5 -4
- package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +13 -8
- package/front_end/panels/network/BlockedURLsPane.ts +2 -2
- package/front_end/panels/network/NetworkConfigView.test.ts +15 -0
- package/front_end/panels/network/NetworkConfigView.ts +11 -11
- package/front_end/panels/network/NetworkDataGridNode.test.ts +2 -2
- package/front_end/panels/network/NetworkDataGridNode.ts +1 -0
- package/front_end/panels/network/NetworkLogView.test.ts +48 -18
- package/front_end/panels/network/NetworkLogView.ts +11 -13
- package/front_end/panels/network/NetworkLogViewColumns.ts +5 -8
- package/front_end/panels/network/NetworkOverview.test.ts +2 -4
- package/front_end/panels/network/NetworkOverview.ts +2 -4
- package/front_end/panels/network/NetworkPanel.test.ts +5 -7
- package/front_end/panels/network/NetworkPanel.ts +43 -36
- package/front_end/panels/network/NetworkWaterfallColumn.ts +4 -6
- package/front_end/panels/network/RequestPayloadView.ts +2 -2
- package/front_end/panels/network/RequestTimingView.test.ts +1 -1
- package/front_end/panels/network/RequestTimingView.ts +9 -10
- package/front_end/panels/network/blockedURLsPane.css +1 -2
- package/front_end/panels/network/components/HeaderSectionRow.test.ts +25 -27
- package/front_end/panels/network/components/RequestHeaderSection.test.ts +3 -5
- package/front_end/panels/network/components/RequestHeadersView.test.ts +27 -29
- package/front_end/panels/network/components/RequestHeadersView.ts +2 -4
- package/front_end/panels/network/components/RequestTrustTokensView.test.ts +1 -1
- package/front_end/panels/network/components/ResponseHeaderSection.test.ts +32 -34
- package/front_end/panels/network/networkConfigView.css +0 -8
- package/front_end/panels/network/networkLogView.css +2 -5
- package/front_end/panels/network/networkTimingTable.css +1 -1
- package/front_end/panels/network/webSocketFrameView.css +1 -1
- package/front_end/panels/performance_monitor/PerformanceMonitor.ts +4 -4
- package/front_end/panels/performance_monitor/performanceMonitor.css +1 -2
- package/front_end/panels/profiler/HeapDetachedElementsView.ts +4 -0
- package/front_end/panels/profiler/HeapProfileView.ts +9 -9
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +2 -2
- package/front_end/panels/profiler/HeapSnapshotView.ts +1 -1
- package/front_end/panels/profiler/HeapTimelineOverview.ts +2 -3
- package/front_end/panels/profiler/IsolateSelector.ts +1 -1
- package/front_end/panels/profiler/LiveHeapProfileView.ts +3 -1
- package/front_end/panels/profiler/ProfileFlameChartDataProvider.ts +4 -5
- package/front_end/panels/profiler/ProfileLauncherView.ts +7 -10
- package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +8 -2
- package/front_end/panels/profiler/ProfileView.ts +2 -2
- package/front_end/panels/profiler/ProfilesPanel.ts +4 -1
- package/front_end/panels/profiler/heapProfiler.css +8 -4
- package/front_end/panels/profiler/profileLauncherView.css +26 -31
- package/front_end/panels/profiler/profilesPanel.css +1 -4
- package/front_end/panels/profiler/profilesSidebarTree.css +11 -1
- package/front_end/panels/protocol_monitor/ProtocolMonitor.test.ts +12 -12
- package/front_end/panels/protocol_monitor/components/JSONEditor.test.ts +40 -42
- package/front_end/panels/protocol_monitor/components/JSONEditor.ts +0 -1
- package/front_end/panels/recorder/RecorderController.test.ts +11 -13
- package/front_end/panels/recorder/RecorderController.ts +5 -5
- package/front_end/panels/recorder/components/CreateRecordingView.test.ts +9 -9
- package/front_end/panels/recorder/components/CreateRecordingView.ts +1 -1
- package/front_end/panels/recorder/components/RecordingListView.test.ts +7 -9
- package/front_end/panels/recorder/components/RecordingView.test.ts +7 -9
- package/front_end/panels/recorder/components/RecordingView.ts +0 -2
- package/front_end/panels/recorder/components/ReplaySection.test.ts +3 -5
- package/front_end/panels/recorder/components/SelectButton.test.ts +3 -5
- package/front_end/panels/recorder/components/StepEditor.test.ts +38 -38
- package/front_end/panels/recorder/components/StepView.test.ts +10 -10
- package/front_end/panels/recorder/components/StepView.ts +4 -4
- package/front_end/panels/recorder/components/controlButton.css +3 -4
- package/front_end/panels/recorder/components/stepView.css +4 -4
- package/front_end/panels/recorder/converters/LighthouseConverter.test.ts +1 -1
- package/front_end/panels/recorder/converters/PuppeteerConverter.test.ts +2 -2
- package/front_end/panels/recorder/converters/PuppeteerReplayConverter.test.ts +1 -1
- package/front_end/panels/recorder/injected/selectors/CSSSelector.test.ts +1 -1
- package/front_end/panels/recorder/models/RecordingPlayer.test.ts +7 -7
- package/front_end/panels/recorder/models/SchemaUtils.ts +6 -1
- package/front_end/panels/recorder/models/ScreenshotUtils.test.ts +4 -4
- package/front_end/panels/recorder/models/Section.test.ts +5 -5
- package/front_end/panels/recorder/models/recording-storage.test.ts +1 -1
- package/front_end/panels/recorder/models/screenshot-storage.test.ts +1 -1
- package/front_end/panels/recorder/recorderController.css +1 -1
- package/front_end/panels/screencast/ScreencastView.ts +17 -19
- package/front_end/panels/screencast/screencastView.css +1 -0
- package/front_end/panels/search/SearchView.ts +2 -4
- package/front_end/panels/security/CookieControlsTreeElement.ts +18 -0
- package/front_end/panels/security/CookieControlsView.test.ts +29 -0
- package/front_end/panels/security/CookieControlsView.ts +288 -0
- package/front_end/panels/security/CookieReportView.test.ts +157 -0
- package/front_end/panels/security/CookieReportView.ts +397 -13
- package/front_end/panels/security/SecurityPanel.ts +6 -5
- package/front_end/panels/security/SecurityPanelSidebar.ts +6 -1
- package/front_end/panels/security/cookieControlsView.css +101 -0
- package/front_end/panels/security/cookieReportView.css +26 -3
- package/front_end/panels/security/mainView.css +1 -2
- package/front_end/panels/security/originView.css +1 -2
- package/front_end/panels/security/security.ts +4 -0
- package/front_end/panels/security/sidebar.css +1 -1
- package/front_end/panels/sensors/SensorsView.ts +10 -10
- package/front_end/panels/sensors/locationsSettingsTab.css +1 -1
- package/front_end/panels/sensors/sensors.css +1 -4
- package/front_end/panels/settings/AISettingsTab.test.ts +53 -7
- package/front_end/panels/settings/AISettingsTab.ts +77 -39
- package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +3 -3
- package/front_end/panels/settings/KeybindsSettingsTab.ts +10 -10
- package/front_end/panels/settings/SettingsScreen.ts +9 -5
- package/front_end/panels/settings/aiSettingsTab.css +14 -4
- package/front_end/panels/settings/components/SyncSection.test.ts +2 -2
- package/front_end/panels/settings/components/SyncSection.ts +1 -1
- package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +2 -2
- package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +1 -2
- package/front_end/panels/settings/emulation/devicesSettingsTab.css +3 -1
- package/front_end/panels/settings/emulation/utils/StructuredHeaders.test.ts +2 -2
- package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +1 -1
- package/front_end/panels/settings/keybindsSettingsTab.css +7 -6
- package/front_end/panels/settings/settings-meta.ts +3 -1
- package/front_end/panels/settings/settingsScreen.css +41 -13
- package/front_end/panels/sources/CSSPlugin.test.ts +1 -1
- package/front_end/panels/sources/CallStackSidebarPane.ts +3 -3
- package/front_end/panels/sources/DebuggerPausedMessage.ts +3 -3
- package/front_end/panels/sources/DebuggerPlugin.test.ts +5 -5
- package/front_end/panels/sources/DebuggerPlugin.ts +1 -1
- package/front_end/panels/sources/NavigatorView.test.ts +3 -3
- package/front_end/panels/sources/NavigatorView.ts +8 -0
- package/front_end/panels/sources/OutlineQuickOpen.ts +1 -1
- package/front_end/panels/sources/SourcesNavigator.test.ts +1 -1
- package/front_end/panels/sources/SourcesView.test.ts +5 -5
- package/front_end/panels/sources/TabbedEditorContainer.test.ts +5 -5
- package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
- package/front_end/panels/sources/UISourceCodeFrame.ts +2 -5
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +2 -2
- package/front_end/panels/sources/components/BreakpointsView.test.ts +28 -30
- package/front_end/panels/sources/components/BreakpointsView.ts +7 -9
- package/front_end/panels/sources/components/HeadersView.test.ts +21 -23
- package/front_end/panels/sources/navigatorTree.css +5 -5
- package/front_end/panels/sources/sources-meta.ts +17 -1
- package/front_end/panels/sources/sourcesPanel.css +2 -2
- package/front_end/panels/timeline/AnimationsTrackAppender.ts +1 -7
- package/front_end/panels/timeline/AppenderUtils.ts +3 -1
- package/front_end/panels/timeline/CompatibilityTracksAppender.ts +43 -43
- package/front_end/panels/timeline/CountersGraph.ts +5 -4
- package/front_end/panels/timeline/EntriesFilter.test.ts +10 -10
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +1 -6
- package/front_end/panels/timeline/ExtensionTrackAppender.ts +4 -8
- package/front_end/panels/timeline/Initiators.test.ts +149 -168
- package/front_end/panels/timeline/InteractionsTrackAppender.ts +3 -4
- package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +9 -38
- package/front_end/panels/timeline/ModificationsManager.test.ts +5 -5
- package/front_end/panels/timeline/ServerTimingsTrackAppender.ts +1 -10
- package/front_end/panels/timeline/ThreadAppender.ts +9 -12
- package/front_end/panels/timeline/TimelineController.ts +51 -5
- package/front_end/panels/timeline/TimelineDetailsView.test.ts +4 -8
- package/front_end/panels/timeline/TimelineDetailsView.ts +21 -23
- package/front_end/panels/timeline/TimelineEventOverview.ts +1 -1
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.test.ts +4 -8
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +120 -111
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.test.ts +3 -3
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +33 -29
- package/front_end/panels/timeline/TimelineFlameChartView.test.ts +180 -201
- package/front_end/panels/timeline/TimelineFlameChartView.ts +199 -64
- package/front_end/panels/timeline/TimelineHistoryManager.test.ts +21 -52
- package/front_end/panels/timeline/TimelineHistoryManager.ts +67 -112
- package/front_end/panels/timeline/TimelineLayersView.ts +1 -1
- package/front_end/panels/timeline/TimelineLoader.test.ts +11 -11
- package/front_end/panels/timeline/TimelineLoader.ts +28 -15
- package/front_end/panels/timeline/TimelineMiniMap.test.ts +1 -2
- package/front_end/panels/timeline/TimelineMiniMap.ts +5 -11
- package/front_end/panels/timeline/TimelinePaintProfilerView.ts +2 -2
- package/front_end/panels/timeline/TimelinePanel.ts +351 -99
- package/front_end/panels/timeline/TimelineTreeView.ts +71 -27
- package/front_end/panels/timeline/TimelineUIUtils.test.ts +131 -33
- package/front_end/panels/timeline/TimelineUIUtils.ts +108 -66
- package/front_end/panels/timeline/TimingsTrackAppender.ts +25 -90
- package/front_end/panels/timeline/components/BreadcrumbsUI.test.ts +8 -10
- package/front_end/panels/timeline/components/CPUThrottlingSelector.test.ts +7 -9
- package/front_end/panels/timeline/components/CPUThrottlingSelector.ts +33 -3
- package/front_end/panels/timeline/components/FieldSettingsDialog.test.ts +55 -311
- package/front_end/panels/timeline/components/FieldSettingsDialog.ts +19 -256
- package/front_end/panels/timeline/components/IgnoreListSetting.test.ts +425 -0
- package/front_end/panels/timeline/components/IgnoreListSetting.ts +362 -0
- package/front_end/panels/timeline/components/InteractionBreakdown.test.ts +2 -3
- package/front_end/panels/timeline/components/LiveMetricsView.test.ts +94 -115
- package/front_end/panels/timeline/components/LiveMetricsView.ts +115 -153
- package/front_end/panels/timeline/components/MetricCard.test.ts +58 -37
- package/front_end/panels/timeline/components/MetricCard.ts +5 -1
- package/front_end/panels/timeline/components/MetricCompareStrings.ts +9 -9
- package/front_end/panels/timeline/components/NetworkRequestDetails.ts +5 -8
- package/front_end/panels/timeline/components/NetworkThrottlingSelector.test.ts +14 -15
- package/front_end/panels/timeline/components/NetworkThrottlingSelector.ts +35 -5
- package/front_end/panels/timeline/components/OriginMap.test.ts +359 -0
- package/front_end/panels/timeline/components/OriginMap.ts +278 -0
- package/front_end/panels/timeline/components/RelatedInsightChips.test.ts +37 -6
- package/front_end/panels/timeline/components/RelatedInsightChips.ts +34 -10
- package/front_end/panels/timeline/components/Sidebar.test.ts +1 -7
- package/front_end/panels/timeline/components/Sidebar.ts +7 -15
- package/front_end/panels/timeline/components/SidebarAnnotationsTab.test.ts +18 -21
- package/front_end/panels/timeline/components/SidebarInsightsTab.test.ts +2 -4
- package/front_end/panels/timeline/components/SidebarInsightsTab.ts +1 -2
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.test.ts +86 -48
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +71 -79
- package/front_end/panels/timeline/components/TimelineSummary.test.ts +75 -0
- package/front_end/panels/timeline/components/TimelineSummary.ts +101 -0
- package/front_end/panels/timeline/components/Utils.test.ts +65 -18
- package/front_end/panels/timeline/components/Utils.ts +2 -2
- package/front_end/panels/timeline/components/breadcrumbsUI.css +1 -2
- package/front_end/panels/timeline/components/components.ts +6 -0
- package/front_end/panels/timeline/components/cpuThrottlingSelector.css +5 -2
- package/front_end/panels/timeline/components/fieldSettingsDialog.css +7 -10
- package/front_end/panels/timeline/components/ignoreListSetting.css +68 -0
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.test.ts +82 -0
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +304 -0
- package/front_end/panels/timeline/components/insights/CLSCulprits.test.ts +44 -0
- package/front_end/panels/timeline/components/insights/CLSCulprits.ts +36 -53
- package/front_end/panels/timeline/components/insights/DOMSize.ts +62 -0
- package/front_end/panels/timeline/components/insights/DocumentLatency.ts +28 -54
- package/front_end/panels/timeline/components/insights/EventRef.ts +59 -2
- package/front_end/panels/timeline/components/insights/FontDisplay.ts +24 -50
- package/front_end/panels/timeline/components/insights/Helpers.ts +5 -208
- package/front_end/panels/timeline/components/insights/ImageDelivery.ts +117 -0
- package/front_end/panels/timeline/components/insights/InteractionToNextPaint.ts +33 -55
- package/front_end/panels/timeline/components/insights/LCPDiscovery.ts +48 -81
- package/front_end/panels/timeline/components/insights/LCPPhases.ts +21 -55
- package/front_end/panels/timeline/components/insights/README.md +10 -24
- package/front_end/panels/timeline/components/insights/RenderBlocking.ts +33 -49
- package/front_end/panels/timeline/components/insights/SidebarInsight.ts +3 -197
- package/front_end/panels/timeline/components/insights/SlowCSSSelector.ts +70 -77
- package/front_end/panels/timeline/components/insights/Table.ts +15 -5
- package/front_end/panels/timeline/components/insights/ThirdParties.ts +56 -71
- package/front_end/panels/timeline/components/insights/Viewport.ts +17 -36
- package/front_end/panels/timeline/components/insights/{sidebarInsight.css → baseInsightComponent.css} +20 -13
- package/front_end/panels/timeline/components/insights/insights.ts +6 -0
- package/front_end/panels/timeline/components/insights/table.css +1 -1
- package/front_end/panels/timeline/components/insights/types.ts +0 -7
- package/front_end/panels/timeline/components/liveMetricsView.css +44 -5
- package/front_end/panels/timeline/components/metricCard.css +39 -4
- package/front_end/panels/timeline/components/networkThrottlingSelector.css +5 -2
- package/front_end/panels/timeline/components/originMap.css +71 -0
- package/front_end/panels/timeline/components/relatedInsightChips.css +29 -0
- package/front_end/panels/timeline/components/sidebarSingleInsightSet.css +8 -0
- package/front_end/panels/timeline/components/timelineSummary.css +64 -0
- package/front_end/panels/timeline/docs/flame_chart_migration.md +1 -1
- package/front_end/panels/timeline/fixtures/traces/README.md +33 -4
- package/front_end/panels/timeline/fixtures/traces/async-js-calls.json.gz +0 -0
- package/front_end/panels/timeline/fixtures/traces/dom-size-long.json.gz +0 -0
- package/front_end/panels/timeline/fixtures/traces/dom-size.json.gz +0 -0
- package/front_end/panels/timeline/fixtures/traces/extension-tracks-and-marks.json.gz +0 -0
- package/front_end/panels/timeline/fixtures/traces/image-delivery.json.gz +0 -0
- package/front_end/panels/timeline/fixtures/traces/lcp-multiple-frames.json.gz +0 -0
- package/front_end/panels/timeline/fixtures/traces/web-dev-animation-frames.json.gz +0 -0
- package/front_end/panels/timeline/overlays/OverlaysImpl.test.ts +45 -18
- package/front_end/panels/timeline/overlays/OverlaysImpl.ts +220 -64
- package/front_end/panels/timeline/overlays/components/EntriesLinkOverlay.ts +16 -8
- package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +2 -1
- package/front_end/panels/timeline/overlays/components/TimeRangeOverlay.ts +2 -1
- package/front_end/panels/timeline/overlays/components/TimespanBreakdownOverlay.test.ts +1 -2
- package/front_end/panels/timeline/timeline-meta.ts +1 -1
- package/front_end/panels/timeline/timeline.ts +0 -2
- package/front_end/panels/timeline/timelineFlameChartView.css +44 -5
- package/front_end/panels/timeline/timelineFlamechartPopover.css +16 -6
- package/front_end/panels/timeline/timelineHistoryManager.css +7 -3
- package/front_end/panels/timeline/timelinePanel.css +4 -4
- package/front_end/panels/timeline/timelineStatusDialog.css +1 -0
- package/front_end/panels/timeline/track_appenders/AnimationsTrackAppender.test.ts +1 -1
- package/front_end/panels/timeline/track_appenders/CompatibilityTracksAppender.test.ts +11 -25
- package/front_end/panels/timeline/track_appenders/ExtensionTrackAppender.test.ts +25 -12
- package/front_end/panels/timeline/track_appenders/GPUTrackAppender.test.ts +1 -1
- package/front_end/panels/timeline/track_appenders/InteractionsTrackAppender.test.ts +3 -3
- package/front_end/panels/timeline/track_appenders/LayoutShiftsTrackAppender.test.ts +13 -4
- package/front_end/panels/timeline/track_appenders/NetworkTrackAppender.test.ts +1 -1
- package/front_end/panels/timeline/track_appenders/ServerTimingsTrackAppender.test.ts +2 -11
- package/front_end/panels/timeline/track_appenders/ThreadAppender.test.ts +50 -56
- package/front_end/panels/timeline/track_appenders/TimingsTrackAppender.test.ts +48 -94
- package/front_end/panels/timeline/utils/AICallTree.test.ts +11 -11
- package/front_end/panels/timeline/utils/AICallTree.ts +1 -1
- package/front_end/panels/timeline/utils/EntityMapper.test.ts +124 -0
- package/front_end/panels/timeline/utils/EntityMapper.ts +164 -0
- package/front_end/panels/timeline/utils/EntryName.ts +1 -2
- package/front_end/panels/timeline/utils/EntryStyles.ts +40 -2
- package/front_end/panels/timeline/utils/Helpers.ts +39 -0
- package/front_end/panels/timeline/utils/IgnoreList.test.ts +53 -1
- package/front_end/panels/timeline/utils/IgnoreList.ts +68 -7
- package/front_end/panels/timeline/utils/ImageCache.test.ts +2 -2
- package/front_end/panels/timeline/utils/SourceMapsResolver.test.ts +83 -2
- package/front_end/panels/timeline/utils/SourceMapsResolver.ts +25 -21
- package/front_end/panels/timeline/utils/utils.ts +2 -0
- package/front_end/panels/utils/utils.test.ts +2 -2
- package/front_end/panels/web_audio/AudioContextSelector.ts +1 -2
- package/front_end/panels/webauthn/WebauthnPane.test.ts +55 -11
- package/front_end/panels/webauthn/WebauthnPane.ts +47 -27
- package/front_end/panels/webauthn/webauthnPane.css +3 -10
- package/front_end/panels/whats_new/ReleaseNote.test.ts +91 -0
- package/front_end/panels/whats_new/ReleaseNoteText.ts +67 -0
- package/front_end/panels/whats_new/ReleaseNoteView.test.ts +159 -0
- package/front_end/panels/whats_new/ReleaseNoteView.ts +160 -0
- package/front_end/panels/whats_new/WhatsNewImpl.ts +102 -0
- package/front_end/panels/whats_new/releaseNoteView.css +111 -0
- package/front_end/panels/whats_new/resources/WNDT.md +6 -0
- package/front_end/panels/whats_new/whats_new-meta.ts +142 -0
- package/front_end/panels/whats_new/whats_new.ts +13 -0
- package/front_end/services/puppeteer/PuppeteerConnection.ts +4 -3
- package/front_end/testing/DOMHelpers.ts +15 -1
- package/front_end/testing/DataGridHelpers.ts +2 -3
- package/front_end/testing/EnvironmentHelpers.ts +18 -7
- package/front_end/testing/InsightHelpers.ts +11 -0
- package/front_end/testing/NetworkHelpers.ts +2 -4
- package/front_end/testing/SourceMapEncoder.ts +27 -11
- package/front_end/testing/StubIssue.ts +1 -1
- package/front_end/testing/TraceHelpers.ts +106 -12
- package/front_end/testing/TraceLoader.ts +20 -2
- package/front_end/third_party/axe-core/README.chromium +2 -2
- package/front_end/third_party/i18n/localized-string-set.ts +13 -3
- package/front_end/third_party/lighthouse/README.chromium +2 -2
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1726 -1431
- package/front_end/third_party/lighthouse/locales/ar-XB.json +148 -85
- package/front_end/third_party/lighthouse/locales/ar.json +158 -95
- package/front_end/third_party/lighthouse/locales/bg.json +148 -85
- package/front_end/third_party/lighthouse/locales/ca.json +151 -88
- package/front_end/third_party/lighthouse/locales/cs.json +151 -88
- package/front_end/third_party/lighthouse/locales/da.json +154 -91
- package/front_end/third_party/lighthouse/locales/de.json +152 -89
- package/front_end/third_party/lighthouse/locales/el.json +152 -89
- package/front_end/third_party/lighthouse/locales/en-GB.json +149 -86
- package/front_end/third_party/lighthouse/locales/en-US.json +177 -60
- package/front_end/third_party/lighthouse/locales/en-XA.json +88 -85
- package/front_end/third_party/lighthouse/locales/en-XL.json +177 -60
- package/front_end/third_party/lighthouse/locales/es-419.json +152 -89
- package/front_end/third_party/lighthouse/locales/es.json +151 -88
- package/front_end/third_party/lighthouse/locales/fi.json +152 -89
- package/front_end/third_party/lighthouse/locales/fil.json +153 -90
- package/front_end/third_party/lighthouse/locales/fr.json +154 -91
- package/front_end/third_party/lighthouse/locales/he.json +157 -94
- package/front_end/third_party/lighthouse/locales/hi.json +152 -89
- package/front_end/third_party/lighthouse/locales/hr.json +150 -87
- package/front_end/third_party/lighthouse/locales/hu.json +150 -87
- package/front_end/third_party/lighthouse/locales/id.json +151 -88
- package/front_end/third_party/lighthouse/locales/it.json +150 -87
- package/front_end/third_party/lighthouse/locales/ja.json +150 -87
- package/front_end/third_party/lighthouse/locales/ko.json +150 -87
- package/front_end/third_party/lighthouse/locales/lt.json +150 -87
- package/front_end/third_party/lighthouse/locales/lv.json +151 -88
- package/front_end/third_party/lighthouse/locales/nl.json +150 -87
- package/front_end/third_party/lighthouse/locales/no.json +152 -89
- package/front_end/third_party/lighthouse/locales/pl.json +150 -87
- package/front_end/third_party/lighthouse/locales/pt-PT.json +171 -108
- package/front_end/third_party/lighthouse/locales/pt.json +157 -94
- package/front_end/third_party/lighthouse/locales/ro.json +154 -91
- package/front_end/third_party/lighthouse/locales/ru.json +153 -90
- package/front_end/third_party/lighthouse/locales/sk.json +153 -90
- package/front_end/third_party/lighthouse/locales/sl.json +151 -88
- package/front_end/third_party/lighthouse/locales/sr-Latn.json +151 -88
- package/front_end/third_party/lighthouse/locales/sr.json +151 -88
- package/front_end/third_party/lighthouse/locales/sv.json +152 -89
- package/front_end/third_party/lighthouse/locales/ta.json +161 -98
- package/front_end/third_party/lighthouse/locales/te.json +152 -89
- package/front_end/third_party/lighthouse/locales/th.json +155 -92
- package/front_end/third_party/lighthouse/locales/tr.json +151 -88
- package/front_end/third_party/lighthouse/locales/uk.json +153 -90
- package/front_end/third_party/lighthouse/locales/vi.json +155 -92
- package/front_end/third_party/lighthouse/locales/zh-HK.json +152 -89
- package/front_end/third_party/lighthouse/locales/zh-TW.json +158 -95
- package/front_end/third_party/lighthouse/locales/zh.json +156 -93
- package/front_end/third_party/lighthouse/report-assets/report-generator.mjs +1 -1
- package/front_end/third_party/lit/lib/decorators.d.ts +5 -2
- package/front_end/third_party/lit/lib/decorators.js +5 -5
- package/front_end/third_party/lit/lib/decorators.js.map +1 -1
- package/front_end/third_party/lit/lib/directive.d.ts +15 -7
- package/front_end/third_party/lit/lib/directive.js.map +1 -1
- package/front_end/third_party/lit/lib/directives.d.ts +147 -7
- package/front_end/third_party/lit/lib/directives.js +9 -9
- package/front_end/third_party/lit/lib/directives.js.map +1 -1
- package/front_end/third_party/lit/lib/lit.d.ts +126 -13
- package/front_end/third_party/lit/lib/lit.js +5 -5
- package/front_end/third_party/lit/lib/lit.js.map +1 -1
- package/front_end/third_party/lit/lib/static-html.d.ts +202 -0
- package/front_end/third_party/lit/lib/static-html.js +13 -0
- package/front_end/third_party/lit/lib/static-html.js.map +1 -0
- package/front_end/third_party/lit/lit.ts +2 -1
- package/front_end/third_party/lit/package.json +2 -2
- package/front_end/third_party/lit/{rollup.config.js → rollup.config.mjs} +2 -2
- package/front_end/third_party/lit/src/static-html.ts +5 -0
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts +36 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js +33 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts +14 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.js +12 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/CDPSession.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.d.ts +5 -0
- 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.map +1 -1
- 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 +3 -1
- 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 +1 -0
- 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 +1 -0
- 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 +26 -6
- 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 +0 -1
- 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/BidiOverCdp.js +17 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.js +19 -8
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts +3 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js +35 -9
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.js +15 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ExposedFunction.js +17 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ExposedFunction.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 +13 -2
- 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 +2 -1
- 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 +4 -1
- 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 +12 -1
- 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 +33 -2
- 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/BrowsingContext.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Request.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Request.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/UserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.d.ts +8 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js +100 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js +10 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js +35 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CDPSession.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CDPSession.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CDPSession.js +9 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CDPSession.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.js +12 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.js +11 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/EmulationManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/EmulationManager.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/EmulationManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Frame.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Frame.js.map +1 -1
- 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/HTTPResponse.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.js +24 -12
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js +21 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +17 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts +11 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Cookie.d.ts +85 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Cookie.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js +17 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DownloadBehavior.d.ts +30 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DownloadBehavior.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DownloadBehavior.js +8 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DownloadBehavior.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/common.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/common.d.ts.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.d.ts.map +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/generated/version.js.map +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/injected/injected.js +17 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts +6 -6
- 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 +22 -12
- 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/ChromeLauncher.d.ts +5 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +7 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts +4 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts +50 -48
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.d.ts +14 -13
- 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 +34 -24
- 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/puppeteer-core.d.ts +7 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.js +17 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.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/util/Mutex.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/third_party/parsel-js/parsel-js.js +11 -21
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +328 -116
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +809 -562
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +36 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js +33 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts +14 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.js +12 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/CDPSession.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.d.ts +5 -0
- 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.map +1 -1
- 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 +3 -1
- 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 +1 -0
- 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 +1 -0
- 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 +26 -6
- 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 +0 -1
- 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/BrowserConnector.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts +3 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js +36 -10
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.js +15 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.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 +14 -3
- 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 +2 -1
- 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 +4 -1
- 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 +12 -1
- 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 +30 -4
- 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/BrowsingContext.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Request.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Request.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/UserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.d.ts +8 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js +100 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js +10 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js +35 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CDPSession.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CDPSession.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CDPSession.js +9 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CDPSession.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.js +12 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.js +11 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/EmulationManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/EmulationManager.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/EmulationManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Frame.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Frame.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/HTTPResponse.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.js +24 -12
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js +20 -13
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts +11 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Cookie.d.ts +85 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Cookie.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DownloadBehavior.d.ts +30 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DownloadBehavior.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DownloadBehavior.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DownloadBehavior.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/common.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/common.d.ts.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.d.ts.map +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/generated/version.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts +6 -6
- 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 +5 -5
- 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/ChromeLauncher.d.ts +5 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +7 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.d.ts +4 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts +50 -48
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.d.ts +14 -13
- 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 +34 -24
- 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/puppeteer-core.d.ts +7 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.d.ts.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/third_party/parsel-js/parsel-js.js +11 -21
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +328 -116
- package/front_end/third_party/puppeteer/package/package.json +8 -8
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +45 -0
- package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +26 -0
- package/front_end/third_party/puppeteer/package/src/api/ElementHandle.ts +6 -0
- package/front_end/third_party/puppeteer/package/src/api/Frame.ts +3 -1
- package/front_end/third_party/puppeteer/package/src/api/HTTPRequest.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +27 -8
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserConnector.ts +4 -6
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserContext.ts +57 -10
- package/front_end/third_party/puppeteer/package/src/bidi/ElementHandle.ts +17 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +20 -3
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPRequest.ts +6 -2
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +47 -5
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +10 -0
- package/front_end/third_party/puppeteer/package/src/bidi/core/Request.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +55 -3
- package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +11 -3
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserConnector.ts +4 -5
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserContext.ts +44 -0
- package/front_end/third_party/puppeteer/package/src/cdp/CDPSession.ts +12 -5
- package/front_end/third_party/puppeteer/package/src/cdp/Connection.ts +15 -6
- package/front_end/third_party/puppeteer/package/src/cdp/ElementHandle.ts +13 -1
- package/front_end/third_party/puppeteer/package/src/cdp/EmulationManager.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Frame.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +4 -0
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPResponse.ts +3 -5
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkManager.ts +34 -17
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +29 -13
- package/front_end/third_party/puppeteer/package/src/common/BrowserConnector.ts +1 -2
- package/front_end/third_party/puppeteer/package/src/common/CallbackRegistry.ts +8 -0
- package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +12 -6
- package/front_end/third_party/puppeteer/package/src/common/Cookie.ts +87 -4
- package/front_end/third_party/puppeteer/package/src/common/DownloadBehavior.ts +31 -0
- package/front_end/third_party/puppeteer/package/src/common/common.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/generated/version.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +16 -12
- package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +11 -12
- package/front_end/third_party/puppeteer/package/src/node/FirefoxLauncher.ts +9 -9
- package/front_end/third_party/puppeteer/package/src/node/LaunchOptions.ts +52 -50
- package/front_end/third_party/puppeteer/package/src/node/PuppeteerNode.ts +55 -45
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +1 -0
- package/front_end/ui/components/adorners/Adorner.test.ts +2 -2
- package/front_end/ui/components/buttons/button.css +5 -5
- package/front_end/ui/components/cards/Card.test.ts +1 -1
- package/front_end/ui/components/cards/card.css +2 -2
- package/front_end/ui/components/chrome_link/ChromeLink.test.ts +2 -4
- package/front_end/ui/components/chrome_link/ChromeLink.ts +1 -1
- package/front_end/ui/components/data_grid/DataGrid.test.ts +65 -67
- package/front_end/ui/components/data_grid/DataGrid.ts +11 -16
- package/front_end/ui/components/data_grid/DataGridController.test.ts +34 -36
- package/front_end/ui/components/data_grid/DataGridControllerIntegrator.ts +4 -1
- package/front_end/ui/components/data_grid/dataGrid.css +1 -1
- package/front_end/ui/components/dialogs/ButtonDialog.test.ts +76 -0
- package/front_end/ui/components/dialogs/ButtonDialog.ts +133 -0
- package/front_end/ui/components/dialogs/Dialog.test.ts +86 -46
- package/front_end/ui/components/dialogs/Dialog.ts +73 -99
- package/front_end/ui/components/dialogs/ShortcutDialog.test.ts +16 -18
- package/front_end/ui/components/dialogs/ShortcutDialog.ts +26 -97
- package/front_end/ui/components/dialogs/buttonDialog.css +9 -0
- package/front_end/ui/components/dialogs/dialog.css +21 -4
- package/front_end/ui/components/dialogs/dialogs.ts +2 -2
- package/front_end/ui/components/dialogs/shortcutDialog.css +40 -10
- package/front_end/ui/components/diff_view/DiffView.test.ts +1 -1
- package/front_end/ui/components/diff_view/diffView.css +2 -2
- package/front_end/ui/components/docs/{freestyler → ai_assistance}/basic.ts +8 -8
- package/front_end/ui/components/docs/{freestyler → ai_assistance}/empty_state.ts +5 -5
- package/front_end/ui/components/docs/building-ui-documentation/TestingComponents.md +6 -7
- package/front_end/ui/components/docs/button/basic.html +18 -34
- package/front_end/ui/components/docs/button/basic.ts +135 -371
- package/front_end/ui/components/docs/create_breadcrumbs.ts +1 -1
- package/front_end/ui/components/docs/dialog/basic.ts +71 -7
- package/front_end/ui/components/docs/{icon_dialog/basic.html → dialog/button_dialog.html} +4 -4
- package/front_end/ui/components/docs/dialog/button_dialog.ts +30 -0
- package/front_end/ui/components/docs/{shortcut_dialog/basic.html → dialog/shortcut_dialog.html} +1 -1
- package/front_end/ui/components/docs/{shortcut_dialog/basic.ts → dialog/shortcut_dialog.ts} +5 -5
- package/front_end/ui/components/docs/menu/basic.ts +0 -1
- package/front_end/ui/components/docs/performance_panel/basic.ts +1 -6
- package/front_end/ui/components/docs/performance_panel/timeline_history_manager.ts +6 -7
- package/front_end/ui/components/docs/{two_states_counter → radio_button}/basic.html +7 -11
- package/front_end/ui/components/docs/radio_button/basic.ts +50 -0
- package/front_end/ui/components/docs/recorder_control_button/basic.ts +1 -1
- package/front_end/ui/components/docs/recorder_create_recording_view/basic.ts +1 -1
- package/front_end/ui/components/docs/recorder_recording_list_view/basic.ts +1 -1
- package/front_end/ui/components/docs/recorder_recording_view/basic.ts +1 -1
- package/front_end/ui/components/docs/recorder_select_button/basic.ts +1 -1
- package/front_end/ui/components/docs/recorder_split_view/basic.ts +1 -1
- package/front_end/ui/components/docs/recorder_start_view/basic.ts +1 -1
- package/front_end/ui/components/docs/select_menu/basic.ts +3 -4
- package/front_end/ui/components/docs/slider/basic.html +20 -0
- package/front_end/ui/components/docs/slider/basic.ts +62 -0
- package/front_end/ui/components/expandable_list/ExpandableList.test.ts +4 -4
- package/front_end/ui/components/floating_button/FloatingButton.ts +3 -2
- package/front_end/ui/components/helpers/helpers.test.ts +4 -6
- package/front_end/ui/components/helpers/scheduled-render.ts +4 -3
- package/front_end/ui/components/highlighting/HighlightManager.test.ts +7 -7
- package/front_end/ui/components/icon_button/FileSourceIcon.ts +0 -1
- package/front_end/ui/components/icon_button/IconButton.test.ts +8 -8
- package/front_end/ui/components/icon_button/fileSourceIcon.css +7 -3
- package/front_end/ui/components/icon_button/icon.css +1 -1
- package/front_end/ui/components/issue_counter/IssueCounter.test.ts +10 -10
- package/front_end/ui/components/issue_counter/IssueCounter.ts +15 -2
- package/front_end/ui/components/issue_counter/IssueLinkIcon.test.ts +4 -6
- package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +2 -4
- package/front_end/ui/components/legacy_wrapper/LegacyWrapper.ts +1 -1
- package/front_end/ui/components/linkifier/LinkifierImpl.test.ts +8 -10
- package/front_end/ui/components/linkifier/LinkifierImpl.ts +3 -5
- package/front_end/ui/components/markdown_view/MarkdownImage.test.ts +2 -4
- package/front_end/ui/components/markdown_view/MarkdownView.test.ts +9 -9
- package/front_end/ui/components/markdown_view/MarkdownView.ts +15 -0
- package/front_end/ui/components/markdown_view/markdownLink.css +0 -4
- package/front_end/ui/components/markdown_view/markdownView.css +2 -6
- package/front_end/ui/components/menus/Menu.ts +3 -22
- package/front_end/ui/components/menus/SelectMenu.test.ts +5 -7
- package/front_end/ui/components/menus/SelectMenu.ts +6 -39
- package/front_end/ui/components/menus/selectMenuButton.css +1 -1
- package/front_end/ui/components/panel_feedback/FeedbackButton.test.ts +2 -4
- package/front_end/ui/components/panel_feedback/PanelFeedback.test.ts +2 -4
- package/front_end/ui/components/panel_feedback/PreviewToggle.test.ts +5 -7
- package/front_end/ui/components/render_coordinator/render_coordinator.test.ts +53 -52
- package/front_end/ui/components/render_coordinator/render_coordinator.ts +301 -2
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.test.ts +5 -7
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +30 -27
- package/front_end/ui/components/request_link_icon/requestLinkIcon.css +3 -0
- package/front_end/ui/components/settings/SettingCheckbox.test.ts +3 -3
- package/front_end/ui/components/settings/SettingCheckbox.ts +4 -3
- package/front_end/ui/components/spinners/spinner.css +4 -4
- package/front_end/ui/components/split_view/SplitView.test.ts +6 -8
- package/front_end/ui/components/srgb_overlay/SrgbOverlay.ts +2 -4
- package/front_end/ui/components/srgb_overlay/srgbOverlay.css +2 -2
- package/front_end/ui/components/suggestion_input/SuggestionInput.ts +1 -1
- package/front_end/ui/components/suggestion_input/suggestionInput.css +1 -2
- package/front_end/ui/components/survey_link/SurveyLink.ts +1 -1
- package/front_end/ui/components/switch/SwitchImpl.test.ts +1 -1
- package/front_end/ui/components/switch/SwitchImpl.ts +4 -4
- package/front_end/ui/components/text_editor/TextEditor.test.ts +6 -6
- package/front_end/ui/components/text_editor/config.ts +22 -4
- package/front_end/ui/components/text_prompt/TextPrompt.test.ts +3 -3
- package/front_end/ui/components/tree_outline/TreeOutline.test.ts +46 -48
- package/front_end/ui/components/tree_outline/TreeOutline.ts +3 -5
- package/front_end/ui/legacy/ARIAUtils.ts +1 -5
- package/front_end/ui/legacy/Dialog.ts +2 -4
- package/front_end/ui/legacy/DockController.test.ts +2 -2
- package/front_end/ui/legacy/DropTarget.ts +1 -2
- package/front_end/ui/legacy/EmptyWidget.ts +1 -1
- package/front_end/ui/legacy/FilterBar.ts +3 -5
- package/front_end/ui/legacy/Infobar.ts +11 -7
- package/front_end/ui/legacy/InspectorView.ts +40 -0
- package/front_end/ui/legacy/ListWidget.ts +5 -3
- package/front_end/ui/legacy/ProgressIndicator.ts +2 -3
- package/front_end/ui/legacy/ReportView.ts +2 -2
- package/front_end/ui/legacy/SearchableView.ts +4 -7
- package/front_end/ui/legacy/SettingsUI.ts +2 -2
- package/front_end/ui/legacy/ShortcutRegistry.test.ts +3 -3
- package/front_end/ui/legacy/SoftDropDown.ts +0 -1
- package/front_end/ui/legacy/SplitWidget.ts +2 -2
- package/front_end/ui/legacy/SuggestBox.test.ts +5 -5
- package/front_end/ui/legacy/SuggestBox.ts +1 -2
- package/front_end/ui/legacy/TabbedPane.ts +42 -2
- package/front_end/ui/legacy/TextPrompt.ts +1 -1
- package/front_end/ui/legacy/ThrottledWidget.ts +2 -2
- package/front_end/ui/legacy/Toolbar.test.ts +2 -5
- package/front_end/ui/legacy/Toolbar.ts +14 -11
- package/front_end/ui/legacy/Treeoutline.ts +1 -2
- package/front_end/ui/legacy/UIUtils.ts +169 -134
- package/front_end/ui/legacy/ViewRegistration.test.ts +1 -1
- package/front_end/ui/legacy/Widget.test.ts +111 -4
- package/front_end/ui/legacy/Widget.ts +96 -17
- package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +4 -4
- package/front_end/ui/legacy/components/color_picker/Spectrum.test.ts +1 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +2 -2
- package/front_end/ui/legacy/components/color_picker/spectrum.css +2 -1
- package/front_end/ui/legacy/components/data_grid/DataGrid.test.ts +7 -10
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +43 -42
- package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +3 -5
- package/front_end/ui/legacy/components/data_grid/dataGrid.css +10 -17
- package/front_end/ui/legacy/components/inline_editor/CSSAngle.test.ts +3 -3
- package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +1 -0
- package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +2 -2
- package/front_end/ui/legacy/components/inline_editor/ColorMixSwatch.test.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/ColorSwatch.test.ts +5 -5
- package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +22 -23
- package/front_end/ui/legacy/components/inline_editor/Swatches.ts +26 -26
- package/front_end/ui/legacy/components/inline_editor/bezierSwatch.css +4 -4
- package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +1 -4
- package/front_end/ui/legacy/components/inline_editor/cssAngleSwatch.css +1 -4
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +2 -4
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +2 -5
- package/front_end/ui/legacy/components/perf_ui/BrickBreaker.ts +4 -4
- package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +73 -72
- package/front_end/ui/legacy/components/perf_ui/FilmStripView.test.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +2 -2
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +203 -132
- package/front_end/ui/legacy/components/perf_ui/OverviewGrid.ts +3 -3
- package/front_end/ui/legacy/components/perf_ui/PieChart.test.ts +6 -6
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewCalculator.ts +18 -4
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +109 -50
- package/front_end/ui/legacy/components/perf_ui/filmStripView.css +1 -2
- package/front_end/ui/legacy/components/perf_ui/flameChart.css +1 -12
- package/front_end/ui/legacy/components/perf_ui/overviewGrid.css +1 -4
- package/front_end/ui/legacy/components/perf_ui/perf_ui-meta.ts +17 -15
- package/front_end/ui/legacy/components/perf_ui/pieChart.css +1 -1
- package/front_end/ui/legacy/components/perf_ui/timelineGrid.css +1 -4
- package/front_end/ui/legacy/components/quick_open/CommandMenu.test.ts +3 -3
- package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +2 -2
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +3 -1
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +1 -2
- package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +2 -4
- package/front_end/ui/legacy/components/utils/ImagePreview.ts +22 -19
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +3 -4
- package/front_end/ui/legacy/components/utils/Linkifier.test.ts +4 -0
- package/front_end/ui/legacy/components/utils/jsUtils.css +8 -0
- package/front_end/ui/legacy/dropTarget.css +1 -4
- package/front_end/ui/legacy/filter.css +1 -1
- package/front_end/ui/legacy/glassPane.css +2 -4
- package/front_end/ui/legacy/inspectorCommon.css +87 -21
- package/front_end/ui/legacy/inspectorViewTabbedPane.css +0 -19
- package/front_end/ui/legacy/legacy.ts +0 -2
- package/front_end/ui/legacy/listWidget.css +4 -1
- package/front_end/ui/legacy/reportView.css +8 -2
- package/front_end/ui/legacy/rootView.css +1 -4
- package/front_end/ui/legacy/softDropDown.css +1 -2
- package/front_end/ui/legacy/tabbedPane.css +10 -18
- package/front_end/ui/legacy/textButton.css +6 -6
- package/front_end/ui/legacy/themeColors.css +50 -28
- package/front_end/ui/legacy/toolbar.css +7 -34
- package/front_end/ui/legacy/treeoutline.css +4 -2
- package/front_end/ui/lit-html/i18n-template.test.ts +53 -0
- package/front_end/ui/lit-html/i18n-template.ts +32 -0
- package/front_end/ui/lit-html/lit-html.ts +13 -14
- package/front_end/ui/visual_logging/Debugging.test.ts +0 -9
- package/front_end/ui/visual_logging/Debugging.ts +45 -12
- package/front_end/ui/visual_logging/DomState.test.ts +6 -6
- package/front_end/ui/visual_logging/KnownContextValues.ts +211 -4
- package/front_end/ui/visual_logging/LoggingDriver.test.ts +33 -8
- package/front_end/ui/visual_logging/LoggingDriver.ts +10 -8
- package/front_end/ui/visual_logging/LoggingEvents.test.ts +16 -16
- package/front_end/ui/visual_logging/LoggingEvents.ts +1 -1
- package/front_end/ui/visual_logging/visual_logging.ts +12 -1
- package/inspector_overlay/common.css +1 -4
- package/inspector_overlay/css_grid_label_helpers.test.ts +14 -15
- package/inspector_overlay/css_grid_label_helpers.ts +2 -2
- package/inspector_overlay/highlight_common.test.ts +6 -6
- package/inspector_overlay/highlight_common.ts +1 -1
- package/inspector_overlay/highlight_flex_common.test.ts +45 -45
- package/inspector_overlay/main.ts +7 -7
- package/inspector_overlay/tool_highlight.css +1 -1
- package/inspector_overlay/tool_highlight.test.ts +3 -3
- package/inspector_overlay/tool_highlight.ts +1 -1
- package/inspector_overlay/tool_window_controls.test.ts +2 -2
- package/package.json +16 -16
- package/scripts/{freestyler → ai_assistance}/README.md +11 -10
- package/scripts/{freestyler/auto_freestyler.js → ai_assistance/auto-run.js} +43 -6
- package/scripts/{freestyler → ai_assistance}/eval/index.js +1 -1
- package/scripts/ai_assistance/to_tsv.mjs +40 -0
- package/scripts/ai_assistance/types.d.ts +54 -0
- package/scripts/build/typescript/ts_library.py +3 -0
- package/scripts/build/typescript/typescript.gni +4 -1
- package/scripts/build/wasm-as.py +1 -1
- package/scripts/check_experiments.js +82 -23
- package/scripts/component_server/server.js +142 -48
- package/scripts/devtools_paths.js +25 -9
- package/scripts/eslint_rules/README.md +5 -1
- package/scripts/eslint_rules/lib/{l10n_no_locked_or_placeholder_only_phrase.js → l10n-no-locked-or-placeholder-only-phrase.js} +1 -1
- package/scripts/eslint_rules/lib/{l10n_no_uistrings_export.js → l10n-no-uistrings-export.js} +1 -1
- package/scripts/eslint_rules/lib/{l10n_no_unused_message.js → l10n-no-unused-message.js} +1 -1
- package/scripts/eslint_rules/lib/{ban_a_tags_in_lit_html.js → no-a-tags-in-lit-html.js} +0 -1
- package/scripts/eslint_rules/lib/no-assert-deep-strict-equal.js +61 -0
- package/scripts/eslint_rules/lib/no-assert-equal-boolean-null-undefined.js +125 -0
- package/scripts/eslint_rules/lib/no-assert-strict-equal-for-arrays-and-objects.js +75 -0
- package/scripts/eslint_rules/lib/no-customized-builtin-elements.js +120 -0
- package/scripts/eslint_rules/lib/{ban_imports_in_directory.js → no-imports-in-directory.js} +0 -1
- package/scripts/eslint_rules/lib/{ban_new_lit_element_components.js → no-new-lit-element-components.js} +0 -1
- package/scripts/eslint_rules/lib/{ban_style_tags_in_lit_html.js → no-style-tags-in-lit-html.js} +14 -3
- package/scripts/eslint_rules/lib/prefer-assert-instance-of.js +89 -0
- package/scripts/eslint_rules/lib/prefer-assert-is-ok.js +71 -0
- package/scripts/eslint_rules/lib/prefer-assert-length-of.js +79 -0
- package/scripts/eslint_rules/lib/{use_private_class_members.js → prefer-private-class-members.js} +4 -6
- package/scripts/eslint_rules/lib/prefer-readonly-keyword.js +57 -0
- package/scripts/eslint_rules/tests/{canvas_context_tracking_test.js → canvas-context-tracking.test.js} +2 -2
- package/scripts/eslint_rules/tests/{check_css_import_test.js → check-css-import.test.js} +2 -2
- package/scripts/eslint_rules/tests/{check_enumerated_histograms_test.js → check-enumerated-histograms.test.js} +2 -2
- package/scripts/eslint_rules/tests/{check_license_header_test.js → check-license-header.test.js} +2 -2
- package/scripts/eslint_rules/tests/{check_test_definitions_test.js → check-test-definitions.test.js} +2 -2
- package/scripts/eslint_rules/tests/{check_was_shown_methods_test.js → check-was-shown-methods.test.js} +2 -2
- package/scripts/eslint_rules/tests/{enforce_bound_render_for_schedule_render_test.js → enforce-bound-render-for-schedule-render.test.js} +2 -2
- package/scripts/eslint_rules/tests/{enforce_custom_event_names_test.js → enforce-custom-event-names.test.js} +2 -2
- package/scripts/eslint_rules/tests/{enforce_default_import_name_test.js → enforce-default-import-name.test.js} +2 -2
- package/scripts/eslint_rules/tests/{es_modules_import_test.js → es-modules-import.test.js} +2 -2
- package/scripts/eslint_rules/tests/{html_tagged_template_test.js → html-tagged-template.test.js} +2 -2
- package/scripts/eslint_rules/tests/{inject_checkbox_styles_test.js → inject-checkbox-styles.test.js} +2 -2
- package/scripts/eslint_rules/tests/{inline_type_imports_test.js → inline-type-imports.test.js} +2 -2
- package/scripts/eslint_rules/tests/{jslog_context_list_test.js → jslog-context-list.test.js} +2 -2
- package/scripts/eslint_rules/tests/{l10n_filename_matches_test.js → l10n-filename-matches.test.js} +2 -2
- package/scripts/eslint_rules/tests/{l10n_i18nString_call_only_with_uistrings_test.js → l10n-i18nString-call-only-with-uistrings.test.js} +2 -2
- package/scripts/eslint_rules/tests/{l10n_no_i18nString_calls_module_instantiation_test.js → l10n-no-i18nString-calls-module-instantiation.test.js} +2 -2
- package/scripts/eslint_rules/tests/{l10n_no_locked_or_placeholder_only_phrase_test.js → l10n-no-locked-or-placeholder-only-phrase.test.js} +2 -2
- package/scripts/eslint_rules/tests/{l10n_no_uistrings_export_test.js → l10n-no-uistrings-export.test.js} +2 -2
- package/scripts/eslint_rules/tests/{l10n_no_unused_message_test.js → l10n-no-unused-message.test.js} +2 -2
- package/scripts/eslint_rules/tests/{lit_html_host_this_test.js → lit-html-host-this.test.js} +2 -2
- package/scripts/eslint_rules/tests/{lit_html_no_attribute_quotes_test.js → lit-html-no-attribute-quotes.test.js} +2 -2
- package/scripts/eslint_rules/tests/{lit_template_result_or_nothing_test.js → lit-template-result-or-nothing.test.js} +2 -2
- package/scripts/eslint_rules/tests/{ban_a_tags_in_lit_html_test.js → no-a-tags-in-lit-html.test.js} +2 -2
- package/scripts/eslint_rules/tests/no-assert-deep-strict-equal.test.js +53 -0
- package/scripts/eslint_rules/tests/no-assert-equal-boolean-null-undefined.test.js +209 -0
- package/scripts/eslint_rules/tests/{avoid_assert_equal_test.js → no-assert-equal.test.js} +2 -2
- package/scripts/eslint_rules/tests/no-assert-strict-equal-for-arrays-and-objects.test.js +89 -0
- package/scripts/eslint_rules/tests/{no_bound_component_methods_test.js → no-bound-component-methods.test.js} +2 -2
- package/scripts/eslint_rules/tests/{commented_out_console_test.js → no-commented-out-console.test.js} +2 -2
- package/scripts/eslint_rules/tests/{commented_out_import_test.js → no-commented-out-import.test.js} +2 -2
- package/scripts/eslint_rules/tests/no-customized-builtin-elements.test.js +152 -0
- package/scripts/eslint_rules/tests/{no_importing_images_from_src_test.js → no-importing-images-from-src.test.js} +2 -2
- package/scripts/eslint_rules/tests/{ban_imports_in_directory_test.js → no-imports-in-directory.test.js} +2 -2
- package/scripts/eslint_rules/tests/{no_it_screenshot_only_or_repeat_test.js → no-it-screenshot-only-or-repeat.test.js} +2 -2
- package/scripts/eslint_rules/tests/{ban_new_lit_element_components_test.js → no-new-lit-element-components.test.js} +2 -2
- package/scripts/eslint_rules/tests/{no_only_eslint_tests_test.js → no-only-eslint-tests.test.js} +9 -9
- package/scripts/eslint_rules/tests/{ban_screenshot_test_outside_perf_panel_test.js → no-screenshot-test-outside-perf-panel.test.js} +2 -2
- package/scripts/eslint_rules/tests/{ban_self_closing_custom_element_tagnames_test.js → no-self-closing-custom-element-tagnames.test.js} +2 -2
- package/scripts/eslint_rules/tests/{ban_style_tags_in_lit_html_test.js → no-style-tags-in-lit-html.test.js} +2 -2
- package/scripts/eslint_rules/tests/{no_underscored_properties_test.js → no-underscored-properties.test.js} +2 -2
- package/scripts/eslint_rules/tests/prefer-assert-instance-of.test.js +197 -0
- package/scripts/eslint_rules/tests/prefer-assert-is-ok.test.js +81 -0
- package/scripts/eslint_rules/tests/prefer-assert-length-of.test.js +145 -0
- package/scripts/eslint_rules/tests/{use_private_class_members_test.js → prefer-private-class-members.test.js} +2 -2
- package/scripts/eslint_rules/tests/{prefer_readonly_keyword_test.js → prefer-readonly-keyword.test.js} +31 -15
- package/scripts/eslint_rules/tests/{screenshot_assertion_in_it_screenshot_test.js → screenshot-assertion-in-it-screenshot.test.js} +2 -2
- package/scripts/eslint_rules/tests/{set_data_type_reference_test.js → set-data-type-reference.test.js} +2 -2
- package/scripts/eslint_rules/tests/{single_screenshot_assertion_per_test_test.js → single-screenshot-assertion-per-test.test.js} +2 -2
- package/scripts/eslint_rules/tests/{static_custom_event_names_test.js → static-custom-event-names.test.js} +2 -2
- package/scripts/eslint_rules/tests/{trace_engine_test_timeouts_test.js → trace-engine-test-timeouts.test.js} +2 -2
- package/scripts/generate_metric_compare_strings.js +1 -1
- package/scripts/stylelint_rules/lib/{use_theme_colors.js → use_theme_colors.mjs} +150 -52
- package/scripts/stylelint_rules/tests/use_theme_colors_test.js +102 -42
- package/scripts/tools/update_goldens.py +11 -13
- package/.eslintignore +0 -41
- package/.eslintrc.js +0 -315
- package/front_end/.eslintrc.js +0 -96
- package/front_end/Images/whatsnew.avif +0 -0
- package/front_end/legacy_test_runner/.eslintrc.js +0 -13
- package/front_end/models/trace/extras/URLForEntry.ts +0 -55
- package/front_end/models/trace/handlers/.eslintrc.js +0 -18
- package/front_end/models/trace/lantern/.eslintrc.js +0 -16
- package/front_end/panels/elements/ComputedStyleWidget.test.ts +0 -72
- package/front_end/panels/elements/components/AdornerSettingsPane.ts +0 -132
- package/front_end/panels/elements/components/adornerSettingsPane.css +0 -40
- package/front_end/panels/freestyler/AiAgent.test.ts +0 -285
- package/front_end/panels/freestyler/freestyler.ts +0 -15
- package/front_end/panels/recorder/injected/.eslintrc.js +0 -14
- package/front_end/panels/timeline/ExtensionDataGatherer.ts +0 -65
- package/front_end/panels/timeline/TimelineLandingPage.ts +0 -108
- package/front_end/panels/timeline/components/insights/SidebarInsight.test.ts +0 -72
- package/front_end/panels/timeline/fixtures/traces/nested-initiators.json.gz +0 -0
- package/front_end/panels/timeline/fixtures/traces/set-timeout-long-task.json.gz +0 -0
- package/front_end/ui/components/dialogs/IconDialog.ts +0 -160
- package/front_end/ui/components/dialogs/iconDialog.css +0 -24
- package/front_end/ui/components/docs/.eslintrc.js +0 -19
- package/front_end/ui/components/docs/icon_dialog/basic.ts +0 -46
- package/front_end/ui/components/docs/two_states_counter/basic.ts +0 -45
- package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +0 -325
- package/front_end/ui/components/two_states_counter/TwoStatesCounter.test.ts +0 -73
- package/front_end/ui/components/two_states_counter/TwoStatesCounter.ts +0 -104
- package/front_end/ui/components/two_states_counter/twoStatesCounter.css +0 -37
- package/front_end/ui/components/two_states_counter/two_states_counter.ts +0 -9
- package/front_end/ui/legacy/HistoryInput.ts +0 -61
- package/front_end/ui/legacy/components/perf_ui/.eslintrc.js +0 -18
- package/front_end/ui/legacy/radioButton.css +0 -32
- package/front_end/ui/legacy/slider.css +0 -51
- package/front_end/ui/lit-html/static.test.ts +0 -153
- package/front_end/ui/lit-html/static.ts +0 -127
- package/scripts/.eslintrc.js +0 -9
- package/scripts/eslint_rules/lib/compare_arrays_with_assert_deepequal.js +0 -60
- package/scripts/eslint_rules/lib/lit_no_style_interpolation.js +0 -80
- package/scripts/eslint_rules/lib/migrate_create_shadow_root_with_styles.js +0 -110
- package/scripts/eslint_rules/lib/migrate_register_required_css.js +0 -240
- package/scripts/eslint_rules/lib/no_repeated_tests.js +0 -30
- package/scripts/eslint_rules/lib/prefer_readonly_keyword.js +0 -27
- package/scripts/eslint_rules/lib/static_tag_must_be_static_property.js +0 -71
- package/scripts/eslint_rules/tests/.eslintrc.js +0 -18
- package/scripts/eslint_rules/tests/compare_arrays_with_assert_deepequal_test.js +0 -110
- package/scripts/eslint_rules/tests/lit_no_style_interpolation_test.js +0 -60
- package/scripts/eslint_rules/tests/migrate_create_shadow_root_with_styles_test.js +0 -265
- package/scripts/eslint_rules/tests/migrate_register_required_css_test.js +0 -473
- package/scripts/eslint_rules/tests/no_repeated_tests_test.js +0 -49
- package/scripts/eslint_rules/tests/static_tag_must_be_static_property_test.js +0 -93
- /package/front_end/panels/{freestyler → ai_assistance}/ExtensionScope.ts +0 -0
- /package/front_end/ui/components/docs/{freestyler → ai_assistance}/basic.html +0 -0
- /package/front_end/ui/components/docs/{freestyler → ai_assistance}/empty_state.html +0 -0
- /package/scripts/{freestyler → ai_assistance}/eval/index.html +0 -0
- /package/scripts/eslint_rules/lib/{canvas_context_tracking.js → canvas-context-tracking.js} +0 -0
- /package/scripts/eslint_rules/lib/{check_css_import.js → check-css-import.js} +0 -0
- /package/scripts/eslint_rules/lib/{check_enumerated_histograms.js → check-enumerated-histograms.js} +0 -0
- /package/scripts/eslint_rules/lib/{check_license_header.js → check-license-header.js} +0 -0
- /package/scripts/eslint_rules/lib/{check_test_definitions.js → check-test-definitions.js} +0 -0
- /package/scripts/eslint_rules/lib/{check_was_shown_methods.js → check-was-shown-methods.js} +0 -0
- /package/scripts/eslint_rules/lib/{enforce_bound_render_for_schedule_render.js → enforce-bound-render-for-schedule-render.js} +0 -0
- /package/scripts/eslint_rules/lib/{enforce_custom_event_names.js → enforce-custom-event-names.js} +0 -0
- /package/scripts/eslint_rules/lib/{enforce_default_import_name.js → enforce-default-import-name.js} +0 -0
- /package/scripts/eslint_rules/lib/{es_modules_import.js → es-modules-import.js} +0 -0
- /package/scripts/eslint_rules/lib/{html_tagged_template.js → html-tagged-template.js} +0 -0
- /package/scripts/eslint_rules/lib/{inject_checkbox_styles.js → inject-checkbox-styles.js} +0 -0
- /package/scripts/eslint_rules/lib/{inline_type_imports.js → inline-type-imports.js} +0 -0
- /package/scripts/eslint_rules/lib/{jslog_context_list.js → jslog-context-list.js} +0 -0
- /package/scripts/eslint_rules/lib/{l10n_filename_matches.js → l10n-filename-matches.js} +0 -0
- /package/scripts/eslint_rules/lib/{l10n_helper.js → l10n-helper.js} +0 -0
- /package/scripts/eslint_rules/lib/{l10n_i18nString_call_only_with_uistrings.js → l10n-i18nString-call-only-with-uistrings.js} +0 -0
- /package/scripts/eslint_rules/lib/{l10n_no_i18nString_calls_module_instantiation.js → l10n-no-i18nString-calls-module-instantiation.js} +0 -0
- /package/scripts/eslint_rules/lib/{lit_html_host_this.js → lit-html-host-this.js} +0 -0
- /package/scripts/eslint_rules/lib/{lit_html_no_attribute_quotes.js → lit-html-no-attribute-quotes.js} +0 -0
- /package/scripts/eslint_rules/lib/{lit_template_result_or_nothing.js → lit-template-result-or-nothing.js} +0 -0
- /package/scripts/eslint_rules/lib/{avoid_assert_equal.js → no-assert-equal.js} +0 -0
- /package/scripts/eslint_rules/lib/{no_bound_component_methods.js → no-bound-component-methods.js} +0 -0
- /package/scripts/eslint_rules/lib/{commented_out_console.js → no-commented-out-console.js} +0 -0
- /package/scripts/eslint_rules/lib/{commented_out_import.js → no-commented-out-import.js} +0 -0
- /package/scripts/eslint_rules/lib/{no_importing_images_from_src.js → no-importing-images-from-src.js} +0 -0
- /package/scripts/eslint_rules/lib/{no_it_screenshot_only_or_repeat.js → no-it-screenshot-only-or-repeat.js} +0 -0
- /package/scripts/eslint_rules/lib/{no_only_eslint_tests.js → no-only-eslint-tests.js} +0 -0
- /package/scripts/eslint_rules/lib/{ban_screenshot_test_outside_perf_panel.js → no-screenshot-test-outside-perf-panel.js} +0 -0
- /package/scripts/eslint_rules/lib/{ban_self_closing_custom_element_tagnames.js → no-self-closing-custom-element-tagnames.js} +0 -0
- /package/scripts/eslint_rules/lib/{no_underscored_properties.js → no-underscored-properties.js} +0 -0
- /package/scripts/eslint_rules/lib/{screenshot_assertion_in_it_screenshot.js → screenshot-assertion-in-it-screenshot.js} +0 -0
- /package/scripts/eslint_rules/lib/{set_data_type_reference.js → set-data-type-reference.js} +0 -0
- /package/scripts/eslint_rules/lib/{single_screenshot_assertion_per_test.js → single-screenshot-assertion-per-test.js} +0 -0
- /package/scripts/eslint_rules/lib/{static_custom_event_names.js → static-custom-event-names.js} +0 -0
- /package/scripts/eslint_rules/lib/{trace_engine_test_timeouts.js → trace-engine-test-timeouts.js} +0 -0
- /package/scripts/eslint_rules/tests/{enforce-optional-properties-last_test.js → enforce-optional-properties-last.test.js} +0 -0
- /package/scripts/eslint_rules/tests/{utils_test.js → utils.test.js} +0 -0
@@ -2,19 +2,18 @@
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
3
3
|
// found in the LICENSE file.
|
4
4
|
|
5
|
-
import * as Host from '
|
6
|
-
import * as Root from '
|
7
|
-
import * as SDK from '
|
5
|
+
import * as Host from '../../../core/host/host.js';
|
6
|
+
import * as Root from '../../../core/root/root.js';
|
7
|
+
import * as SDK from '../../../core/sdk/sdk.js';
|
8
8
|
import {
|
9
9
|
describeWithEnvironment,
|
10
10
|
getGetHostConfigStub,
|
11
|
-
} from '
|
11
|
+
} from '../../../testing/EnvironmentHelpers.js';
|
12
|
+
import * as AiAssistance from '../ai_assistance.js';
|
12
13
|
|
13
|
-
|
14
|
+
const {StylingAgent, ErrorType} = AiAssistance;
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
describeWithEnvironment('FreestylerAgent', () => {
|
16
|
+
describeWithEnvironment('StylingAgent', () => {
|
18
17
|
function mockHostConfig(
|
19
18
|
modelId?: string, temperature?: number, userTier?: string,
|
20
19
|
executionMode?: Root.Runtime.HostConfigFreestylerExecutionMode) {
|
@@ -39,28 +38,36 @@ describeWithEnvironment('FreestylerAgent', () => {
|
|
39
38
|
};
|
40
39
|
}
|
41
40
|
describe('parseResponse', () => {
|
42
|
-
const agent = new
|
41
|
+
const agent = new StylingAgent({
|
43
42
|
aidaClient: {} as Host.AidaClient.AidaClient,
|
44
43
|
});
|
45
44
|
|
45
|
+
function getParsedTextResponse(explanation: string): AiAssistance.ParsedResponse {
|
46
|
+
return agent.parseResponse({
|
47
|
+
explanation,
|
48
|
+
metadata: {},
|
49
|
+
completed: false,
|
50
|
+
});
|
51
|
+
}
|
52
|
+
|
46
53
|
it('parses a thought', async () => {
|
47
54
|
const payload = 'some response';
|
48
|
-
assert.
|
49
|
-
|
55
|
+
assert.deepEqual(
|
56
|
+
getParsedTextResponse(`THOUGHT: ${payload}`),
|
50
57
|
{
|
51
58
|
title: undefined,
|
52
59
|
thought: payload,
|
53
60
|
},
|
54
61
|
);
|
55
|
-
assert.
|
56
|
-
|
62
|
+
assert.deepEqual(
|
63
|
+
getParsedTextResponse(` THOUGHT: ${payload}`),
|
57
64
|
{
|
58
65
|
title: undefined,
|
59
66
|
thought: payload,
|
60
67
|
},
|
61
68
|
);
|
62
|
-
assert.
|
63
|
-
|
69
|
+
assert.deepEqual(
|
70
|
+
getParsedTextResponse(`Something\n THOUGHT: ${payload}`),
|
64
71
|
{
|
65
72
|
title: undefined,
|
66
73
|
thought: payload,
|
@@ -69,22 +76,22 @@ describeWithEnvironment('FreestylerAgent', () => {
|
|
69
76
|
});
|
70
77
|
it('parses a answer', async () => {
|
71
78
|
const payload = 'some response';
|
72
|
-
assert.
|
73
|
-
|
79
|
+
assert.deepEqual(
|
80
|
+
getParsedTextResponse(`ANSWER: ${payload}`),
|
74
81
|
{
|
75
82
|
answer: payload,
|
76
83
|
suggestions: undefined,
|
77
84
|
},
|
78
85
|
);
|
79
|
-
assert.
|
80
|
-
|
86
|
+
assert.deepEqual(
|
87
|
+
getParsedTextResponse(` ANSWER: ${payload}`),
|
81
88
|
{
|
82
89
|
answer: payload,
|
83
90
|
suggestions: undefined,
|
84
91
|
},
|
85
92
|
);
|
86
|
-
assert.
|
87
|
-
|
93
|
+
assert.deepEqual(
|
94
|
+
getParsedTextResponse(`Something\n ANSWER: ${payload}`),
|
88
95
|
{
|
89
96
|
answer: payload,
|
90
97
|
suggestions: undefined,
|
@@ -95,36 +102,36 @@ describeWithEnvironment('FreestylerAgent', () => {
|
|
95
102
|
const payload = `a
|
96
103
|
b
|
97
104
|
c`;
|
98
|
-
assert.
|
99
|
-
|
105
|
+
assert.deepEqual(
|
106
|
+
getParsedTextResponse(`ANSWER: ${payload}`),
|
100
107
|
{
|
101
108
|
answer: payload,
|
102
109
|
suggestions: undefined,
|
103
110
|
},
|
104
111
|
);
|
105
|
-
assert.
|
106
|
-
|
112
|
+
assert.deepEqual(
|
113
|
+
getParsedTextResponse(` ANSWER: ${payload}`),
|
107
114
|
{
|
108
115
|
answer: payload,
|
109
116
|
suggestions: undefined,
|
110
117
|
},
|
111
118
|
);
|
112
|
-
assert.
|
113
|
-
|
119
|
+
assert.deepEqual(
|
120
|
+
getParsedTextResponse(`Something\n ANSWER: ${payload}`),
|
114
121
|
{
|
115
122
|
answer: payload,
|
116
123
|
suggestions: undefined,
|
117
124
|
},
|
118
125
|
);
|
119
|
-
assert.
|
120
|
-
|
126
|
+
assert.deepEqual(
|
127
|
+
getParsedTextResponse(`ANSWER: ${payload}\nTHOUGHT: thought`),
|
121
128
|
{
|
122
129
|
answer: payload,
|
123
130
|
suggestions: undefined,
|
124
131
|
},
|
125
132
|
);
|
126
|
-
assert.
|
127
|
-
|
133
|
+
assert.deepEqual(
|
134
|
+
getParsedTextResponse(
|
128
135
|
`ANSWER: ${payload}\nOBSERVATION: observation`,
|
129
136
|
),
|
130
137
|
{
|
@@ -132,8 +139,8 @@ c`;
|
|
132
139
|
suggestions: undefined,
|
133
140
|
},
|
134
141
|
);
|
135
|
-
assert.
|
136
|
-
|
142
|
+
assert.deepEqual(
|
143
|
+
getParsedTextResponse(
|
137
144
|
`ANSWER: ${payload}\nACTION\naction\nSTOP`,
|
138
145
|
),
|
139
146
|
{
|
@@ -147,24 +154,24 @@ c`;
|
|
147
154
|
const payload = `const data = {
|
148
155
|
someKey: "value",
|
149
156
|
}`;
|
150
|
-
assert.
|
151
|
-
|
157
|
+
assert.deepEqual(
|
158
|
+
getParsedTextResponse(`ACTION\n${payload}\nSTOP`),
|
152
159
|
{
|
153
160
|
action: payload,
|
154
161
|
title: undefined,
|
155
162
|
thought: undefined,
|
156
163
|
},
|
157
164
|
);
|
158
|
-
assert.
|
159
|
-
|
165
|
+
assert.deepEqual(
|
166
|
+
getParsedTextResponse(`ACTION\n${payload}`),
|
160
167
|
{
|
161
168
|
action: payload,
|
162
169
|
title: undefined,
|
163
170
|
thought: undefined,
|
164
171
|
},
|
165
172
|
);
|
166
|
-
assert.
|
167
|
-
|
173
|
+
assert.deepEqual(
|
174
|
+
getParsedTextResponse(`ACTION\n\n${payload}\n\nSTOP`),
|
168
175
|
{
|
169
176
|
action: payload,
|
170
177
|
title: undefined,
|
@@ -172,8 +179,8 @@ c`;
|
|
172
179
|
},
|
173
180
|
);
|
174
181
|
|
175
|
-
assert.
|
176
|
-
|
182
|
+
assert.deepEqual(
|
183
|
+
getParsedTextResponse(`ACTION\n\n${payload}\n\nANSWER: answer`),
|
177
184
|
{
|
178
185
|
action: payload,
|
179
186
|
title: undefined,
|
@@ -186,8 +193,8 @@ c`;
|
|
186
193
|
const data = {
|
187
194
|
styles
|
188
195
|
};`;
|
189
|
-
assert.
|
190
|
-
|
196
|
+
assert.deepEqual(
|
197
|
+
getParsedTextResponse(`ACTION\n${payload}STOP`),
|
191
198
|
{
|
192
199
|
action: payload,
|
193
200
|
title: undefined,
|
@@ -198,8 +205,8 @@ c`;
|
|
198
205
|
it('parses a thought and title', async () => {
|
199
206
|
const payload = 'some response';
|
200
207
|
const title = 'this is the title';
|
201
|
-
assert.
|
202
|
-
|
208
|
+
assert.deepEqual(
|
209
|
+
getParsedTextResponse(`THOUGHT: ${payload}\nTITLE: ${title}`),
|
203
210
|
{
|
204
211
|
thought: payload,
|
205
212
|
title,
|
@@ -211,8 +218,8 @@ c`;
|
|
211
218
|
const payload = `const data = {
|
212
219
|
someKey: "value",
|
213
220
|
}`;
|
214
|
-
assert.
|
215
|
-
|
221
|
+
assert.deepEqual(
|
222
|
+
getParsedTextResponse(
|
216
223
|
`ACTION\n\`\`\`\n${payload}\n\`\`\`\nSTOP`,
|
217
224
|
),
|
218
225
|
{
|
@@ -227,8 +234,8 @@ c`;
|
|
227
234
|
const payload = `const data = {
|
228
235
|
someKey: "value",
|
229
236
|
}`;
|
230
|
-
assert.
|
231
|
-
|
237
|
+
assert.deepEqual(
|
238
|
+
getParsedTextResponse(
|
232
239
|
`ACTION\n\`\`\`\`\`\njs\n${payload}\n\`\`\`\`\`\nSTOP`,
|
233
240
|
),
|
234
241
|
{
|
@@ -244,8 +251,8 @@ c`;
|
|
244
251
|
someKey: "value",
|
245
252
|
}`;
|
246
253
|
const thoughtPayload = 'thought';
|
247
|
-
assert.
|
248
|
-
|
254
|
+
assert.deepEqual(
|
255
|
+
getParsedTextResponse(
|
249
256
|
`THOUGHT:${thoughtPayload}\nACTION\n${actionPayload}\nSTOP`,
|
250
257
|
),
|
251
258
|
{
|
@@ -259,8 +266,8 @@ c`;
|
|
259
266
|
it('parses a thought and an answer', async () => {
|
260
267
|
const answerPayload = 'answer';
|
261
268
|
const thoughtPayload = 'thought';
|
262
|
-
assert.
|
263
|
-
|
269
|
+
assert.deepEqual(
|
270
|
+
getParsedTextResponse(
|
264
271
|
`THOUGHT:${thoughtPayload}\nANSWER:${answerPayload}`,
|
265
272
|
),
|
266
273
|
{
|
@@ -274,8 +281,8 @@ c`;
|
|
274
281
|
const answerPayload = 'answer';
|
275
282
|
const suggestions = ['suggestion'] as [string];
|
276
283
|
const suggestionsText = JSON.stringify(suggestions);
|
277
|
-
assert.
|
278
|
-
|
284
|
+
assert.deepEqual(
|
285
|
+
getParsedTextResponse(
|
279
286
|
`ANSWER:${answerPayload}\nSUGGESTIONS: ${suggestionsText}`,
|
280
287
|
),
|
281
288
|
{
|
@@ -292,8 +299,8 @@ c`;
|
|
292
299
|
someKey: "value",
|
293
300
|
}`;
|
294
301
|
const title = 'title';
|
295
|
-
assert.
|
296
|
-
|
302
|
+
assert.deepEqual(
|
303
|
+
getParsedTextResponse(
|
297
304
|
`THOUGHT: ${thoughtPayload}\nTITLE: ${title}\nACTION\n${actionPayload}\nSTOP\nANSWER:${answerPayload}`,
|
298
305
|
),
|
299
306
|
{
|
@@ -310,8 +317,8 @@ c`;
|
|
310
317
|
const data = {
|
311
318
|
styles
|
312
319
|
};`;
|
313
|
-
assert.
|
314
|
-
|
320
|
+
assert.deepEqual(
|
321
|
+
getParsedTextResponse(
|
315
322
|
`ACTION\n${payload}STOP\nANSWER:${answerPayload}\nSUGGESTIONS: ${JSON.stringify(suggestions)}`),
|
316
323
|
{
|
317
324
|
action: payload,
|
@@ -325,8 +332,8 @@ c`;
|
|
325
332
|
const data = {
|
326
333
|
styles
|
327
334
|
};`;
|
328
|
-
assert.
|
329
|
-
|
335
|
+
assert.deepEqual(
|
336
|
+
getParsedTextResponse(`ACTION\n${payload}STOP\nOBSERVATION:{styles: {}}`),
|
330
337
|
{
|
331
338
|
action: payload,
|
332
339
|
thought: undefined,
|
@@ -340,8 +347,8 @@ c`;
|
|
340
347
|
styles
|
341
348
|
};`;
|
342
349
|
const thoughtPayload = 'thought';
|
343
|
-
assert.
|
344
|
-
|
350
|
+
assert.deepEqual(
|
351
|
+
getParsedTextResponse(`ACTION\n${payload}STOP\nTHOUGHT:${thoughtPayload}`),
|
345
352
|
{
|
346
353
|
action: payload,
|
347
354
|
thought: thoughtPayload,
|
@@ -351,8 +358,8 @@ c`;
|
|
351
358
|
});
|
352
359
|
|
353
360
|
it('parses a response as an answer', async () => {
|
354
|
-
assert.
|
355
|
-
|
361
|
+
assert.deepEqual(
|
362
|
+
getParsedTextResponse(
|
356
363
|
'This is also an answer',
|
357
364
|
),
|
358
365
|
{
|
@@ -363,8 +370,8 @@ c`;
|
|
363
370
|
});
|
364
371
|
|
365
372
|
it('parses a response with no instruction tags as an answer and correctly parses suggestions', async () => {
|
366
|
-
assert.
|
367
|
-
|
373
|
+
assert.deepEqual(
|
374
|
+
getParsedTextResponse(
|
368
375
|
'This is also an answer\nSUGGESTIONS: [\"suggestion\"]',
|
369
376
|
),
|
370
377
|
{
|
@@ -376,8 +383,8 @@ c`;
|
|
376
383
|
|
377
384
|
it('parses multi line thoughts', () => {
|
378
385
|
const thoughtText = 'first line\nsecond line';
|
379
|
-
assert.
|
380
|
-
|
386
|
+
assert.deepEqual(
|
387
|
+
getParsedTextResponse(`THOUGHT: ${thoughtText}`),
|
381
388
|
{
|
382
389
|
thought: thoughtText,
|
383
390
|
title: undefined,
|
@@ -401,7 +408,7 @@ c`;
|
|
401
408
|
element.simpleSelector.returns('div#myElement');
|
402
409
|
element.getChildNodesPromise.resolves(null);
|
403
410
|
|
404
|
-
const result = await
|
411
|
+
const result = await StylingAgent.describeElement(element);
|
405
412
|
|
406
413
|
assert.strictEqual(result, '* Its selector is `div#myElement`');
|
407
414
|
});
|
@@ -424,7 +431,7 @@ c`;
|
|
424
431
|
element.previousSibling = null;
|
425
432
|
element.parentNode = null;
|
426
433
|
|
427
|
-
const result = await
|
434
|
+
const result = await StylingAgent.describeElement(element);
|
428
435
|
const expectedOutput = `* Its selector is \`div#parentElement\`
|
429
436
|
* It has 2 child element nodes: \`span.child1\`, \`span.child2\`
|
430
437
|
* It only has 1 child text node`;
|
@@ -455,7 +462,7 @@ c`;
|
|
455
462
|
element.previousSibling = previousSibling;
|
456
463
|
element.parentNode = parentNode;
|
457
464
|
|
458
|
-
const result = await
|
465
|
+
const result = await StylingAgent.describeElement(element);
|
459
466
|
const expectedOutput = `* Its selector is \`div#parentElement\`
|
460
467
|
* It has a next sibling and it is an element node
|
461
468
|
* It has a previous sibling and it is a non element node
|
@@ -478,33 +485,33 @@ c`;
|
|
478
485
|
|
479
486
|
it('builds a request with a model id', async () => {
|
480
487
|
mockHostConfig('test model');
|
481
|
-
const agent = new
|
488
|
+
const agent = new StylingAgent({
|
482
489
|
aidaClient: {} as Host.AidaClient.AidaClient,
|
483
490
|
});
|
484
491
|
assert.strictEqual(
|
485
|
-
agent.buildRequest({
|
492
|
+
agent.buildRequest({text: 'test input'}).options?.model_id,
|
486
493
|
'test model',
|
487
494
|
);
|
488
495
|
});
|
489
496
|
|
490
497
|
it('builds a request with a temperature', async () => {
|
491
498
|
mockHostConfig('test model', 1);
|
492
|
-
const agent = new
|
499
|
+
const agent = new StylingAgent({
|
493
500
|
aidaClient: {} as Host.AidaClient.AidaClient,
|
494
501
|
});
|
495
502
|
assert.strictEqual(
|
496
|
-
agent.buildRequest({
|
503
|
+
agent.buildRequest({text: 'test input'}).options?.temperature,
|
497
504
|
1,
|
498
505
|
);
|
499
506
|
});
|
500
507
|
|
501
508
|
it('builds a request with a user tier', async () => {
|
502
509
|
mockHostConfig('test model', 1, 'PUBLIC');
|
503
|
-
const agent = new
|
510
|
+
const agent = new StylingAgent({
|
504
511
|
aidaClient: {} as Host.AidaClient.AidaClient,
|
505
512
|
});
|
506
513
|
assert.strictEqual(
|
507
|
-
agent.buildRequest({
|
514
|
+
agent.buildRequest({text: 'test input'}).metadata?.user_tier,
|
508
515
|
3,
|
509
516
|
);
|
510
517
|
});
|
@@ -512,40 +519,41 @@ c`;
|
|
512
519
|
it('structure matches the snapshot', () => {
|
513
520
|
mockHostConfig('test model');
|
514
521
|
|
515
|
-
const agent = new
|
522
|
+
const agent = new StylingAgent({
|
516
523
|
aidaClient: {} as Host.AidaClient.AidaClient,
|
517
524
|
serverSideLoggingEnabled: true,
|
518
525
|
});
|
519
526
|
sinon.stub(agent, 'preamble').value('preamble');
|
520
|
-
agent.chatNewHistoryForTesting =
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
527
|
+
agent.chatNewHistoryForTesting = [
|
528
|
+
{
|
529
|
+
type: AiAssistance.ResponseType.USER_QUERY,
|
530
|
+
query: 'question',
|
531
|
+
},
|
532
|
+
{
|
533
|
+
type: AiAssistance.ResponseType.QUERYING,
|
534
|
+
query: 'question',
|
535
|
+
},
|
536
|
+
{
|
537
|
+
type: AiAssistance.ResponseType.ANSWER,
|
538
|
+
text: 'answer',
|
539
|
+
},
|
540
|
+
];
|
541
|
+
assert.deepEqual(
|
534
542
|
agent.buildRequest({
|
535
|
-
|
543
|
+
text: 'test input',
|
536
544
|
}),
|
537
545
|
{
|
538
|
-
|
546
|
+
current_message: {role: Host.AidaClient.Role.USER, parts: [{text: 'test input'}]},
|
539
547
|
client: 'CHROME_DEVTOOLS',
|
540
548
|
preamble: 'preamble',
|
541
|
-
|
549
|
+
historical_contexts: [
|
542
550
|
{
|
543
|
-
|
544
|
-
text: 'question',
|
551
|
+
role: 1,
|
552
|
+
parts: [{text: 'question'}],
|
545
553
|
},
|
546
554
|
{
|
547
|
-
|
548
|
-
text: 'ANSWER: answer',
|
555
|
+
role: 2,
|
556
|
+
parts: [{text: 'ANSWER: answer'}],
|
549
557
|
},
|
550
558
|
],
|
551
559
|
metadata: {
|
@@ -565,7 +573,8 @@ c`;
|
|
565
573
|
});
|
566
574
|
|
567
575
|
function mockAidaClient(
|
568
|
-
fetch: (_:
|
576
|
+
fetch: (_: Host.AidaClient.AidaRequest, options?: {signal: AbortSignal}) =>
|
577
|
+
AsyncGenerator<Host.AidaClient.AidaResponse, void, void>,
|
569
578
|
): Host.AidaClient.AidaClient {
|
570
579
|
return {
|
571
580
|
fetch,
|
@@ -606,8 +615,8 @@ c`;
|
|
606
615
|
count++;
|
607
616
|
}
|
608
617
|
const execJs =
|
609
|
-
sinon.mock().throws(new
|
610
|
-
const agent = new
|
618
|
+
sinon.mock().throws(new AiAssistance.SideEffectError('EvalError: Possible side-effect in debug-evaluate'));
|
619
|
+
const agent = new StylingAgent({
|
611
620
|
aidaClient: mockAidaClient(generateActionAndAnswer),
|
612
621
|
createExtensionScope,
|
613
622
|
confirmSideEffectForTest: stub,
|
@@ -616,7 +625,7 @@ c`;
|
|
616
625
|
});
|
617
626
|
|
618
627
|
promise.resolve(true);
|
619
|
-
await Array.fromAsync(agent.run('test', {selected: new
|
628
|
+
await Array.fromAsync(agent.run('test', {selected: new AiAssistance.NodeContext(element)}));
|
620
629
|
|
621
630
|
sinon.assert.match(execJs.getCall(0).args[1], sinon.match({throwOnSideEffect: true}));
|
622
631
|
});
|
@@ -645,9 +654,9 @@ c`;
|
|
645
654
|
count++;
|
646
655
|
}
|
647
656
|
const execJs = sinon.mock().twice();
|
648
|
-
execJs.onCall(0).throws(new
|
657
|
+
execJs.onCall(0).throws(new AiAssistance.SideEffectError('EvalError: Possible side-effect in debug-evaluate'));
|
649
658
|
execJs.onCall(1).resolves('value');
|
650
|
-
const agent = new
|
659
|
+
const agent = new StylingAgent({
|
651
660
|
aidaClient: mockAidaClient(generateActionAndAnswer),
|
652
661
|
createExtensionScope,
|
653
662
|
confirmSideEffectForTest: stub,
|
@@ -655,9 +664,9 @@ c`;
|
|
655
664
|
|
656
665
|
});
|
657
666
|
promise.resolve(true);
|
658
|
-
await Array.fromAsync(agent.run('test', {selected: new
|
667
|
+
await Array.fromAsync(agent.run('test', {selected: new AiAssistance.NodeContext(element)}));
|
659
668
|
|
660
|
-
assert.
|
669
|
+
assert.lengthOf(execJs.getCalls(), 2);
|
661
670
|
sinon.assert.match(execJs.getCall(1).args[1], sinon.match({throwOnSideEffect: false}));
|
662
671
|
});
|
663
672
|
|
@@ -684,9 +693,9 @@ c`;
|
|
684
693
|
|
685
694
|
count++;
|
686
695
|
}
|
687
|
-
const execJs = sinon.mock().
|
688
|
-
execJs.onCall(0).throws(new
|
689
|
-
const agent = new
|
696
|
+
const execJs = sinon.mock().once();
|
697
|
+
execJs.onCall(0).throws(new AiAssistance.SideEffectError('EvalError: Possible side-effect in debug-evaluate'));
|
698
|
+
const agent = new StylingAgent({
|
690
699
|
aidaClient: mockAidaClient(generateActionAndAnswer),
|
691
700
|
createExtensionScope,
|
692
701
|
confirmSideEffectForTest: stub,
|
@@ -694,12 +703,52 @@ c`;
|
|
694
703
|
|
695
704
|
});
|
696
705
|
promise.resolve(false);
|
697
|
-
const responses = await Array.fromAsync(agent.run('test', {selected: new
|
706
|
+
const responses = await Array.fromAsync(agent.run('test', {selected: new AiAssistance.NodeContext(element)}));
|
698
707
|
|
699
|
-
const actionStep = responses.find(response => response.type ===
|
708
|
+
const actionStep = responses.find(response => response.type === AiAssistance.ResponseType.ACTION)!;
|
700
709
|
|
701
710
|
assert.strictEqual(actionStep.output, 'Error: User denied code execution with side effects.');
|
702
|
-
assert.
|
711
|
+
assert.lengthOf(execJs.getCalls(), 1);
|
712
|
+
});
|
713
|
+
|
714
|
+
it('returns error when side effect is aborted', async () => {
|
715
|
+
const selected = new AiAssistance.NodeContext(element);
|
716
|
+
async function* generateAction() {
|
717
|
+
yield {
|
718
|
+
explanation: `ACTION
|
719
|
+
$0.style.backgroundColor = 'red'
|
720
|
+
STOP`,
|
721
|
+
metadata: {},
|
722
|
+
completed: true,
|
723
|
+
};
|
724
|
+
}
|
725
|
+
const execJs = sinon.mock().once().throws(
|
726
|
+
new AiAssistance.SideEffectError('EvalError: Possible side-effect in debug-evaluate'));
|
727
|
+
const sideEffectConfirmationPromise = Promise.withResolvers();
|
728
|
+
const agent = new StylingAgent({
|
729
|
+
aidaClient: mockAidaClient(generateAction),
|
730
|
+
createExtensionScope,
|
731
|
+
confirmSideEffectForTest: sinon.stub().returns(sideEffectConfirmationPromise),
|
732
|
+
execJs,
|
733
|
+
});
|
734
|
+
|
735
|
+
const responses: AiAssistance.ResponseData[] = [];
|
736
|
+
const controller = new AbortController();
|
737
|
+
for await (const result of agent.run('test', {selected, signal: controller.signal})) {
|
738
|
+
responses.push(result);
|
739
|
+
if (result.type === 'side-effect') {
|
740
|
+
// Initial code invocation resulting in a side-effect
|
741
|
+
// happened.
|
742
|
+
assert.isTrue(execJs.calledOnce);
|
743
|
+
// Emulate abort when waiting for the side-effect confirmation.
|
744
|
+
controller.abort();
|
745
|
+
}
|
746
|
+
}
|
747
|
+
|
748
|
+
const errorStep = responses.at(-1) as AiAssistance.ErrorResponse;
|
749
|
+
assert.exists(errorStep);
|
750
|
+
assert.strictEqual(errorStep.error, ErrorType.ABORT);
|
751
|
+
assert.isFalse(await sideEffectConfirmationPromise.promise);
|
703
752
|
});
|
704
753
|
});
|
705
754
|
|
@@ -725,16 +774,16 @@ c`;
|
|
725
774
|
count++;
|
726
775
|
}
|
727
776
|
const execJs = sinon.mock().returns(new Array(10_000).fill('<div>...</div>').join());
|
728
|
-
const agent = new
|
777
|
+
const agent = new StylingAgent({
|
729
778
|
aidaClient: mockAidaClient(generateActionAndAnswer),
|
730
779
|
createExtensionScope,
|
731
780
|
execJs,
|
732
781
|
|
733
782
|
});
|
734
783
|
|
735
|
-
const result = await Array.fromAsync(agent.run('test', {selected: new
|
784
|
+
const result = await Array.fromAsync(agent.run('test', {selected: new AiAssistance.NodeContext(element)}));
|
736
785
|
const actionSteps = result.filter(step => {
|
737
|
-
return step.type ===
|
786
|
+
return step.type === AiAssistance.ResponseType.ACTION;
|
738
787
|
});
|
739
788
|
assert(actionSteps.length === 1, 'Found non or multiple action steps');
|
740
789
|
const actionStep = actionSteps.at(0)!;
|
@@ -752,19 +801,19 @@ c`;
|
|
752
801
|
}
|
753
802
|
|
754
803
|
const execJs = sinon.spy();
|
755
|
-
const agent = new
|
804
|
+
const agent = new StylingAgent({
|
756
805
|
aidaClient: mockAidaClient(generateAnswer),
|
757
806
|
execJs,
|
758
807
|
});
|
759
808
|
|
760
|
-
const responses = await Array.fromAsync(agent.run('test', {selected: new
|
761
|
-
assert.
|
809
|
+
const responses = await Array.fromAsync(agent.run('test', {selected: new AiAssistance.NodeContext(element)}));
|
810
|
+
assert.deepEqual(responses, [
|
762
811
|
{
|
763
|
-
type:
|
812
|
+
type: AiAssistance.ResponseType.USER_QUERY,
|
764
813
|
query: 'test',
|
765
814
|
},
|
766
815
|
{
|
767
|
-
type:
|
816
|
+
type: AiAssistance.ResponseType.CONTEXT,
|
768
817
|
title: 'Analyzing the prompt',
|
769
818
|
details: [
|
770
819
|
{
|
@@ -774,29 +823,97 @@ c`;
|
|
774
823
|
],
|
775
824
|
},
|
776
825
|
{
|
777
|
-
type:
|
826
|
+
type: AiAssistance.ResponseType.QUERYING,
|
778
827
|
query: '# Inspected element\n\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test',
|
779
828
|
},
|
780
829
|
{
|
781
|
-
type:
|
830
|
+
type: AiAssistance.ResponseType.ANSWER,
|
782
831
|
text: 'this is the answer',
|
783
832
|
suggestions: undefined,
|
784
833
|
rpcId: undefined,
|
785
834
|
},
|
786
835
|
]);
|
787
836
|
sinon.assert.notCalled(execJs);
|
788
|
-
assert.
|
837
|
+
assert.deepEqual(agent.chatHistoryForTesting, [
|
789
838
|
{
|
790
|
-
|
791
|
-
text: '# Inspected element\n\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test',
|
839
|
+
role: 1,
|
840
|
+
parts: [{text: '# Inspected element\n\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test'}],
|
792
841
|
},
|
793
842
|
{
|
794
|
-
|
795
|
-
text: 'ANSWER: this is the answer',
|
843
|
+
role: 2,
|
844
|
+
parts: [{text: 'ANSWER: this is the answer'}],
|
796
845
|
},
|
797
846
|
]);
|
798
847
|
});
|
799
848
|
|
849
|
+
it('correctly handles historical_contexts in AIDA requests', async () => {
|
850
|
+
const requests: Host.AidaClient.AidaRequest[] = [];
|
851
|
+
|
852
|
+
let i = 0;
|
853
|
+
async function* generateAnswer(request: Host.AidaClient.AidaRequest) {
|
854
|
+
requests.push(request);
|
855
|
+
if (i !== 0) {
|
856
|
+
yield {
|
857
|
+
explanation: 'ANSWER: this is the actual answer',
|
858
|
+
metadata: {},
|
859
|
+
completed: true,
|
860
|
+
};
|
861
|
+
return;
|
862
|
+
}
|
863
|
+
yield {
|
864
|
+
explanation: `THOUGHT: I am thinking.
|
865
|
+
TITLE: thinking
|
866
|
+
ACTION
|
867
|
+
const data = {"test": "observation"};
|
868
|
+
STOP`,
|
869
|
+
metadata: {},
|
870
|
+
completed: false,
|
871
|
+
};
|
872
|
+
i++;
|
873
|
+
}
|
874
|
+
|
875
|
+
const execJs = sinon.mock().once();
|
876
|
+
execJs.onCall(0).returns('test data');
|
877
|
+
const agent = new StylingAgent({
|
878
|
+
aidaClient: mockAidaClient(generateAnswer),
|
879
|
+
createExtensionScope,
|
880
|
+
execJs,
|
881
|
+
});
|
882
|
+
|
883
|
+
await Array.fromAsync(agent.run('test', {selected: new AiAssistance.NodeContext(element)}));
|
884
|
+
|
885
|
+
assert.lengthOf(requests, 2, 'Unexpected number of AIDA requests');
|
886
|
+
assert.isUndefined(requests[0].historical_contexts, 'Unexpected historical contexts in the initial request');
|
887
|
+
assert.exists(requests[0].current_message);
|
888
|
+
assert.lengthOf(requests[0].current_message.parts, 1);
|
889
|
+
assert.deepEqual(
|
890
|
+
requests[0].current_message.parts[0],
|
891
|
+
{text: '# Inspected element\n\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test'},
|
892
|
+
'Unexpected input text in the initial request');
|
893
|
+
assert.strictEqual(requests[0].current_message.role, Host.AidaClient.Role.USER);
|
894
|
+
assert.deepEqual(
|
895
|
+
requests[1].historical_contexts,
|
896
|
+
[
|
897
|
+
{
|
898
|
+
role: 1,
|
899
|
+
parts: [{text: '# Inspected element\n\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test'}],
|
900
|
+
},
|
901
|
+
{
|
902
|
+
role: 2,
|
903
|
+
parts: [{
|
904
|
+
text:
|
905
|
+
'THOUGHT: I am thinking.\nTITLE: thinking\nACTION\nconst data = {\"test\": \"observation\"};\nSTOP',
|
906
|
+
}],
|
907
|
+
},
|
908
|
+
],
|
909
|
+
'Unexpected historical contexts in the follow-up request');
|
910
|
+
assert.exists(requests[1].current_message);
|
911
|
+
assert.lengthOf(requests[1].current_message.parts, 1);
|
912
|
+
assert.deepEqual(
|
913
|
+
requests[1].current_message.parts[0], {text: 'OBSERVATION: test data'},
|
914
|
+
'Unexpected input in the follow-up request');
|
915
|
+
});
|
916
|
+
|
800
917
|
it('generates an rpcId for the answer', async () => {
|
801
918
|
async function* generateAnswer() {
|
802
919
|
yield {
|
@@ -808,20 +925,20 @@ c`;
|
|
808
925
|
};
|
809
926
|
}
|
810
927
|
|
811
|
-
const agent = new
|
928
|
+
const agent = new StylingAgent({
|
812
929
|
aidaClient: mockAidaClient(generateAnswer),
|
813
930
|
execJs: sinon.spy(),
|
814
931
|
|
815
932
|
});
|
816
933
|
|
817
|
-
const responses = await Array.fromAsync(agent.run('test', {selected: new
|
818
|
-
assert.
|
934
|
+
const responses = await Array.fromAsync(agent.run('test', {selected: new AiAssistance.NodeContext(element)}));
|
935
|
+
assert.deepEqual(responses, [
|
819
936
|
{
|
820
|
-
type:
|
937
|
+
type: AiAssistance.ResponseType.USER_QUERY,
|
821
938
|
query: 'test',
|
822
939
|
},
|
823
940
|
{
|
824
|
-
type:
|
941
|
+
type: AiAssistance.ResponseType.CONTEXT,
|
825
942
|
title: 'Analyzing the prompt',
|
826
943
|
details: [
|
827
944
|
{
|
@@ -831,11 +948,11 @@ c`;
|
|
831
948
|
],
|
832
949
|
},
|
833
950
|
{
|
834
|
-
type:
|
951
|
+
type: AiAssistance.ResponseType.QUERYING,
|
835
952
|
query: '# Inspected element\n\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test',
|
836
953
|
},
|
837
954
|
{
|
838
|
-
type:
|
955
|
+
type: AiAssistance.ResponseType.ANSWER,
|
839
956
|
text: 'this is the answer',
|
840
957
|
suggestions: undefined,
|
841
958
|
rpcId: 123,
|
@@ -849,29 +966,25 @@ c`;
|
|
849
966
|
explanation: 'ANSWER: this is the answer',
|
850
967
|
metadata: {
|
851
968
|
rpcGlobalId: 123,
|
852
|
-
attributionMetadata: [{
|
853
|
-
attributionAction: Host.AidaClient.RecitationAction.BLOCK,
|
854
|
-
citations: [],
|
855
|
-
}],
|
856
969
|
},
|
857
|
-
completed:
|
970
|
+
completed: false,
|
858
971
|
};
|
972
|
+
throw new Host.AidaClient.AidaBlockError();
|
859
973
|
}
|
860
974
|
|
861
|
-
const agent = new
|
975
|
+
const agent = new StylingAgent({
|
862
976
|
aidaClient: mockAidaClient(generateAnswer),
|
863
977
|
execJs: sinon.spy(),
|
864
|
-
|
865
978
|
});
|
866
979
|
|
867
|
-
const responses = await Array.fromAsync(agent.run('test', {selected: new
|
868
|
-
assert.
|
980
|
+
const responses = await Array.fromAsync(agent.run('test', {selected: new AiAssistance.NodeContext(element)}));
|
981
|
+
assert.deepEqual(responses, [
|
869
982
|
{
|
870
|
-
type:
|
983
|
+
type: AiAssistance.ResponseType.USER_QUERY,
|
871
984
|
query: 'test',
|
872
985
|
},
|
873
986
|
{
|
874
|
-
type:
|
987
|
+
type: AiAssistance.ResponseType.CONTEXT,
|
875
988
|
title: 'Analyzing the prompt',
|
876
989
|
details: [
|
877
990
|
{
|
@@ -881,13 +994,16 @@ c`;
|
|
881
994
|
],
|
882
995
|
},
|
883
996
|
{
|
884
|
-
type:
|
997
|
+
type: AiAssistance.ResponseType.QUERYING,
|
885
998
|
query: '# Inspected element\n\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test',
|
886
999
|
},
|
887
1000
|
{
|
888
|
-
|
889
|
-
type:
|
890
|
-
|
1001
|
+
text: 'this is the answer',
|
1002
|
+
type: AiAssistance.ResponseType.ANSWER,
|
1003
|
+
},
|
1004
|
+
{
|
1005
|
+
type: AiAssistance.ResponseType.ERROR,
|
1006
|
+
error: AiAssistance.ErrorType.BLOCK,
|
891
1007
|
},
|
892
1008
|
]);
|
893
1009
|
});
|
@@ -898,29 +1014,29 @@ c`;
|
|
898
1014
|
explanation: 'ANSWER: this is the answer',
|
899
1015
|
metadata: {
|
900
1016
|
rpcGlobalId: 123,
|
901
|
-
attributionMetadata:
|
1017
|
+
attributionMetadata: {
|
902
1018
|
attributionAction: Host.AidaClient.RecitationAction.ACTION_UNSPECIFIED,
|
903
1019
|
citations: [],
|
904
|
-
}
|
1020
|
+
},
|
905
1021
|
},
|
906
1022
|
completed: true,
|
907
1023
|
};
|
908
1024
|
}
|
909
1025
|
|
910
|
-
const agent = new
|
1026
|
+
const agent = new StylingAgent({
|
911
1027
|
aidaClient: mockAidaClient(generateAnswer),
|
912
1028
|
execJs: sinon.spy(),
|
913
1029
|
|
914
1030
|
});
|
915
1031
|
|
916
|
-
const responses = await Array.fromAsync(agent.run('test', {selected: new
|
917
|
-
assert.
|
1032
|
+
const responses = await Array.fromAsync(agent.run('test', {selected: new AiAssistance.NodeContext(element)}));
|
1033
|
+
assert.deepEqual(responses, [
|
918
1034
|
{
|
919
|
-
type:
|
1035
|
+
type: AiAssistance.ResponseType.USER_QUERY,
|
920
1036
|
query: 'test',
|
921
1037
|
},
|
922
1038
|
{
|
923
|
-
type:
|
1039
|
+
type: AiAssistance.ResponseType.CONTEXT,
|
924
1040
|
title: 'Analyzing the prompt',
|
925
1041
|
details: [
|
926
1042
|
{
|
@@ -930,11 +1046,11 @@ c`;
|
|
930
1046
|
],
|
931
1047
|
},
|
932
1048
|
{
|
933
|
-
type:
|
1049
|
+
type: AiAssistance.ResponseType.QUERYING,
|
934
1050
|
query: '# Inspected element\n\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test',
|
935
1051
|
},
|
936
1052
|
{
|
937
|
-
type:
|
1053
|
+
type: AiAssistance.ResponseType.ANSWER,
|
938
1054
|
text: 'this is the answer',
|
939
1055
|
suggestions: undefined,
|
940
1056
|
rpcId: 123,
|
@@ -942,6 +1058,43 @@ c`;
|
|
942
1058
|
]);
|
943
1059
|
});
|
944
1060
|
|
1061
|
+
it('should execute an action only once even when the partial response contains an action', async () => {
|
1062
|
+
const execJs = sinon.spy();
|
1063
|
+
async function* generatePartialAndFullAction() {
|
1064
|
+
yield {
|
1065
|
+
explanation: `THOUGHT: I am thinking.
|
1066
|
+
|
1067
|
+
ACTION
|
1068
|
+
console.log('hel
|
1069
|
+
`,
|
1070
|
+
metadata: {},
|
1071
|
+
completed: false,
|
1072
|
+
};
|
1073
|
+
|
1074
|
+
sinon.assert.notCalled(execJs);
|
1075
|
+
yield {
|
1076
|
+
explanation: `THOUGHT: I am thinking.
|
1077
|
+
|
1078
|
+
ACTION
|
1079
|
+
console.log('hello');
|
1080
|
+
STOP
|
1081
|
+
`,
|
1082
|
+
metadata: {},
|
1083
|
+
completed: true,
|
1084
|
+
};
|
1085
|
+
}
|
1086
|
+
|
1087
|
+
const agent = new StylingAgent({
|
1088
|
+
aidaClient: mockAidaClient(generatePartialAndFullAction),
|
1089
|
+
createExtensionScope,
|
1090
|
+
execJs,
|
1091
|
+
});
|
1092
|
+
await Array.fromAsync(agent.run('test', {selected: new AiAssistance.NodeContext(element)}));
|
1093
|
+
|
1094
|
+
sinon.assert.calledOnce(execJs);
|
1095
|
+
assert.include(execJs.lastCall.args[0], 'console.log(\'hello\');');
|
1096
|
+
});
|
1097
|
+
|
945
1098
|
it('generates a response if nothing is returned', async () => {
|
946
1099
|
async function* generateNothing() {
|
947
1100
|
yield {
|
@@ -952,18 +1105,18 @@ c`;
|
|
952
1105
|
}
|
953
1106
|
|
954
1107
|
const execJs = sinon.spy();
|
955
|
-
const agent = new
|
1108
|
+
const agent = new StylingAgent({
|
956
1109
|
aidaClient: mockAidaClient(generateNothing),
|
957
1110
|
execJs,
|
958
1111
|
});
|
959
|
-
const responses = await Array.fromAsync(agent.run('test', {selected: new
|
960
|
-
assert.
|
1112
|
+
const responses = await Array.fromAsync(agent.run('test', {selected: new AiAssistance.NodeContext(element)}));
|
1113
|
+
assert.deepEqual(responses, [
|
961
1114
|
{
|
962
|
-
type:
|
1115
|
+
type: AiAssistance.ResponseType.USER_QUERY,
|
963
1116
|
query: 'test',
|
964
1117
|
},
|
965
1118
|
{
|
966
|
-
type:
|
1119
|
+
type: AiAssistance.ResponseType.CONTEXT,
|
967
1120
|
title: 'Analyzing the prompt',
|
968
1121
|
details: [
|
969
1122
|
{
|
@@ -973,17 +1126,16 @@ c`;
|
|
973
1126
|
],
|
974
1127
|
},
|
975
1128
|
{
|
976
|
-
type:
|
1129
|
+
type: AiAssistance.ResponseType.QUERYING,
|
977
1130
|
query: '# Inspected element\n\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test',
|
978
1131
|
},
|
979
1132
|
{
|
980
|
-
type:
|
981
|
-
error:
|
982
|
-
rpcId: undefined,
|
1133
|
+
type: AiAssistance.ResponseType.ERROR,
|
1134
|
+
error: AiAssistance.ErrorType.UNKNOWN,
|
983
1135
|
},
|
984
1136
|
]);
|
985
1137
|
sinon.assert.notCalled(execJs);
|
986
|
-
assert.
|
1138
|
+
assert.deepEqual(agent.chatHistoryForTesting, []);
|
987
1139
|
});
|
988
1140
|
|
989
1141
|
it('generates an action response if action and answer both present', async () => {
|
@@ -1013,20 +1165,20 @@ ANSWER: this is the answer`,
|
|
1013
1165
|
|
1014
1166
|
const execJs = sinon.mock().once();
|
1015
1167
|
execJs.onCall(0).returns('hello');
|
1016
|
-
const agent = new
|
1168
|
+
const agent = new StylingAgent({
|
1017
1169
|
aidaClient: mockAidaClient(generateNothing),
|
1018
1170
|
createExtensionScope,
|
1019
1171
|
execJs,
|
1020
1172
|
|
1021
1173
|
});
|
1022
|
-
const responses = await Array.fromAsync(agent.run('test', {selected: new
|
1023
|
-
assert.
|
1174
|
+
const responses = await Array.fromAsync(agent.run('test', {selected: new AiAssistance.NodeContext(element)}));
|
1175
|
+
assert.deepEqual(responses, [
|
1024
1176
|
{
|
1025
|
-
type:
|
1177
|
+
type: AiAssistance.ResponseType.USER_QUERY,
|
1026
1178
|
query: 'test',
|
1027
1179
|
},
|
1028
1180
|
{
|
1029
|
-
type:
|
1181
|
+
type: AiAssistance.ResponseType.CONTEXT,
|
1030
1182
|
title: 'Analyzing the prompt',
|
1031
1183
|
details: [
|
1032
1184
|
{
|
@@ -1036,27 +1188,26 @@ ANSWER: this is the answer`,
|
|
1036
1188
|
],
|
1037
1189
|
},
|
1038
1190
|
{
|
1039
|
-
type:
|
1191
|
+
type: AiAssistance.ResponseType.QUERYING,
|
1040
1192
|
query: '# Inspected element\n\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test',
|
1041
1193
|
},
|
1042
1194
|
{
|
1043
|
-
type:
|
1195
|
+
type: AiAssistance.ResponseType.THOUGHT,
|
1044
1196
|
thought: 'I am thinking.',
|
1045
1197
|
rpcId: undefined,
|
1046
1198
|
},
|
1047
1199
|
{
|
1048
|
-
type:
|
1200
|
+
type: AiAssistance.ResponseType.ACTION,
|
1049
1201
|
code: 'console.log(\'hello\');',
|
1050
1202
|
output: 'hello',
|
1051
1203
|
canceled: false,
|
1052
|
-
rpcId: undefined,
|
1053
1204
|
},
|
1054
1205
|
{
|
1055
|
-
type:
|
1206
|
+
type: AiAssistance.ResponseType.QUERYING,
|
1056
1207
|
query: 'OBSERVATION: hello',
|
1057
1208
|
},
|
1058
1209
|
{
|
1059
|
-
type:
|
1210
|
+
type: AiAssistance.ResponseType.ANSWER,
|
1060
1211
|
text: 'this is the actual answer',
|
1061
1212
|
suggestions: undefined,
|
1062
1213
|
rpcId: undefined,
|
@@ -1085,47 +1236,47 @@ ANSWER: this is the answer`,
|
|
1085
1236
|
}
|
1086
1237
|
|
1087
1238
|
const execJs = sinon.spy(async () => 'undefined');
|
1088
|
-
const agent = new
|
1239
|
+
const agent = new StylingAgent({
|
1089
1240
|
aidaClient: mockAidaClient(generateMultipleTimes),
|
1090
1241
|
createExtensionScope,
|
1091
1242
|
execJs,
|
1092
1243
|
|
1093
1244
|
});
|
1094
1245
|
|
1095
|
-
await Array.fromAsync(agent.run('test', {selected: new
|
1246
|
+
await Array.fromAsync(agent.run('test', {selected: new AiAssistance.NodeContext(element)}));
|
1096
1247
|
|
1097
|
-
assert.
|
1248
|
+
assert.deepEqual(agent.chatHistoryForTesting, [
|
1098
1249
|
{
|
1099
|
-
|
1100
|
-
text: '# Inspected element\n\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test',
|
1250
|
+
role: 1,
|
1251
|
+
parts: [{text: '# Inspected element\n\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test'}],
|
1101
1252
|
},
|
1102
1253
|
{
|
1103
|
-
|
1104
|
-
text: 'THOUGHT: thought 1\nTITLE: test\nACTION\nconsole.log(\'test\')\nSTOP',
|
1254
|
+
role: 2,
|
1255
|
+
parts: [{text: 'THOUGHT: thought 1\nTITLE: test\nACTION\nconsole.log(\'test\')\nSTOP'}],
|
1105
1256
|
},
|
1106
1257
|
{
|
1107
|
-
|
1108
|
-
text: 'OBSERVATION: undefined',
|
1258
|
+
role: 1,
|
1259
|
+
parts: [{text: 'OBSERVATION: undefined'}],
|
1109
1260
|
},
|
1110
1261
|
{
|
1111
|
-
|
1112
|
-
text: 'THOUGHT: thought 2\nTITLE: test\nACTION\nconsole.log(\'test\')\nSTOP',
|
1262
|
+
role: 2,
|
1263
|
+
parts: [{text: 'THOUGHT: thought 2\nTITLE: test\nACTION\nconsole.log(\'test\')\nSTOP'}],
|
1113
1264
|
},
|
1114
1265
|
{
|
1115
|
-
|
1116
|
-
text: 'OBSERVATION: undefined',
|
1266
|
+
role: 1,
|
1267
|
+
parts: [{text: 'OBSERVATION: undefined'}],
|
1117
1268
|
},
|
1118
1269
|
{
|
1119
|
-
|
1120
|
-
text: 'THOUGHT: thought 3\nTITLE: test\nACTION\nconsole.log(\'test\')\nSTOP',
|
1270
|
+
role: 2,
|
1271
|
+
parts: [{text: 'THOUGHT: thought 3\nTITLE: test\nACTION\nconsole.log(\'test\')\nSTOP'}],
|
1121
1272
|
},
|
1122
1273
|
{
|
1123
|
-
|
1124
|
-
text: 'OBSERVATION: undefined',
|
1274
|
+
role: 1,
|
1275
|
+
parts: [{text: 'OBSERVATION: undefined'}],
|
1125
1276
|
},
|
1126
1277
|
{
|
1127
|
-
|
1128
|
-
text: 'ANSWER: this is the answer',
|
1278
|
+
role: 2,
|
1279
|
+
parts: [{text: 'ANSWER: this is the answer'}],
|
1129
1280
|
},
|
1130
1281
|
]);
|
1131
1282
|
});
|
@@ -1153,7 +1304,7 @@ ANSWER: this is the answer`,
|
|
1153
1304
|
}
|
1154
1305
|
|
1155
1306
|
const execJs = sinon.spy();
|
1156
|
-
const agent = new
|
1307
|
+
const agent = new StylingAgent({
|
1157
1308
|
aidaClient: mockAidaClient(generateAndAbort),
|
1158
1309
|
createExtensionScope,
|
1159
1310
|
execJs,
|
@@ -1162,9 +1313,91 @@ ANSWER: this is the answer`,
|
|
1162
1313
|
const controller = new AbortController();
|
1163
1314
|
controller.abort();
|
1164
1315
|
await Array.fromAsync(
|
1165
|
-
agent.run('test', {selected: new
|
1316
|
+
agent.run('test', {selected: new AiAssistance.NodeContext(element), signal: controller.signal}));
|
1317
|
+
|
1318
|
+
assert.deepEqual(agent.chatHistoryForTesting, []);
|
1319
|
+
});
|
1320
|
+
});
|
1321
|
+
|
1322
|
+
describe('history', () => {
|
1323
|
+
let element: sinon.SinonStubbedInstance<SDK.DOMModel.DOMNode>;
|
1324
|
+
beforeEach(() => {
|
1325
|
+
mockHostConfig();
|
1326
|
+
element = sinon.createStubInstance(SDK.DOMModel.DOMNode);
|
1327
|
+
});
|
1328
|
+
|
1329
|
+
it('stores history via AiHistoryStorage', async () => {
|
1330
|
+
let count = 0;
|
1331
|
+
async function* generateMultipleTimes() {
|
1332
|
+
if (count === 1) {
|
1333
|
+
yield {
|
1334
|
+
explanation: 'ANSWER: this is the answer',
|
1335
|
+
metadata: {},
|
1336
|
+
completed: true,
|
1337
|
+
};
|
1338
|
+
return;
|
1339
|
+
}
|
1340
|
+
count++;
|
1341
|
+
yield {
|
1342
|
+
explanation: `THOUGHT: thought ${count}\nTITLE:test\nACTION\nconsole.log('test')\nSTOP\n`,
|
1343
|
+
metadata: {},
|
1344
|
+
completed: false,
|
1345
|
+
};
|
1346
|
+
}
|
1347
|
+
const historyStub = sinon.stub(AiAssistance.AiHistoryStorage.instance(), 'upsertHistoryEntry');
|
1348
|
+
const execJs = sinon.spy(async () => 'undefined');
|
1349
|
+
const agent = new StylingAgent({
|
1350
|
+
aidaClient: mockAidaClient(generateMultipleTimes),
|
1351
|
+
createExtensionScope,
|
1352
|
+
execJs,
|
1353
|
+
});
|
1166
1354
|
|
1167
|
-
|
1355
|
+
await Array.fromAsync(agent.run('test', {selected: new AiAssistance.NodeContext(element)}));
|
1356
|
+
|
1357
|
+
assert.deepEqual(historyStub.lastCall.args[0].history, [
|
1358
|
+
{
|
1359
|
+
type: AiAssistance.ResponseType.USER_QUERY,
|
1360
|
+
query: 'test',
|
1361
|
+
},
|
1362
|
+
{
|
1363
|
+
type: AiAssistance.ResponseType.CONTEXT,
|
1364
|
+
title: 'Analyzing the prompt',
|
1365
|
+
details: [{
|
1366
|
+
text: '* Its selector is `undefined`',
|
1367
|
+
title: 'Data used',
|
1368
|
+
}],
|
1369
|
+
},
|
1370
|
+
{
|
1371
|
+
type: AiAssistance.ResponseType.QUERYING,
|
1372
|
+
query: '# Inspected element\n\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test',
|
1373
|
+
},
|
1374
|
+
{
|
1375
|
+
type: AiAssistance.ResponseType.TITLE,
|
1376
|
+
title: 'test',
|
1377
|
+
rpcId: undefined,
|
1378
|
+
},
|
1379
|
+
{
|
1380
|
+
type: AiAssistance.ResponseType.THOUGHT,
|
1381
|
+
thought: 'thought 1',
|
1382
|
+
rpcId: undefined,
|
1383
|
+
},
|
1384
|
+
{
|
1385
|
+
type: AiAssistance.ResponseType.ACTION,
|
1386
|
+
code: 'console.log(\'test\')',
|
1387
|
+
output: 'undefined',
|
1388
|
+
canceled: false,
|
1389
|
+
},
|
1390
|
+
{
|
1391
|
+
type: AiAssistance.ResponseType.QUERYING,
|
1392
|
+
query: 'OBSERVATION: undefined',
|
1393
|
+
},
|
1394
|
+
{
|
1395
|
+
type: AiAssistance.ResponseType.ANSWER,
|
1396
|
+
text: 'this is the answer',
|
1397
|
+
suggestions: undefined,
|
1398
|
+
rpcId: undefined,
|
1399
|
+
},
|
1400
|
+
]);
|
1168
1401
|
});
|
1169
1402
|
});
|
1170
1403
|
|
@@ -1205,15 +1438,15 @@ ANSWER: this is the answer`,
|
|
1205
1438
|
|
1206
1439
|
it('returns an error if scripts are disabled', async () => {
|
1207
1440
|
const execJs = sinon.mock();
|
1208
|
-
const agent = new
|
1441
|
+
const agent = new StylingAgent({
|
1209
1442
|
aidaClient: getMockClient(),
|
1210
1443
|
createExtensionScope,
|
1211
1444
|
execJs,
|
1212
1445
|
});
|
1213
|
-
const responses = await Array.fromAsync(agent.run('test', {selected: new
|
1214
|
-
const actionStep = responses.find(response => response.type ===
|
1446
|
+
const responses = await Array.fromAsync(agent.run('test', {selected: new AiAssistance.NodeContext(element)}));
|
1447
|
+
const actionStep = responses.find(response => response.type === AiAssistance.ResponseType.ACTION)!;
|
1215
1448
|
assert.strictEqual(actionStep.output, 'Error: JavaScript execution is currently disabled.');
|
1216
|
-
assert.
|
1449
|
+
assert.lengthOf(execJs.getCalls(), 0);
|
1217
1450
|
});
|
1218
1451
|
});
|
1219
1452
|
|
@@ -1226,17 +1459,17 @@ ANSWER: this is the answer`,
|
|
1226
1459
|
|
1227
1460
|
it('returns an error if a script causes a side effect', async () => {
|
1228
1461
|
const execJs =
|
1229
|
-
sinon.mock().throws(new
|
1230
|
-
const agent = new
|
1462
|
+
sinon.mock().throws(new AiAssistance.SideEffectError('EvalError: Possible side-effect in debug-evaluate'));
|
1463
|
+
const agent = new StylingAgent({
|
1231
1464
|
aidaClient: getMockClient(),
|
1232
1465
|
createExtensionScope,
|
1233
1466
|
execJs,
|
1234
1467
|
});
|
1235
|
-
const responses = await Array.fromAsync(agent.run('test', {selected: new
|
1236
|
-
const actionStep = responses.find(response => response.type ===
|
1468
|
+
const responses = await Array.fromAsync(agent.run('test', {selected: new AiAssistance.NodeContext(element)}));
|
1469
|
+
const actionStep = responses.find(response => response.type === AiAssistance.ResponseType.ACTION)!;
|
1237
1470
|
assert.strictEqual(
|
1238
1471
|
actionStep.output, 'Error: JavaScript execution that modifies the page is currently disabled.');
|
1239
|
-
assert.
|
1472
|
+
assert.lengthOf(execJs.getCalls(), 1);
|
1240
1473
|
});
|
1241
1474
|
});
|
1242
1475
|
});
|