chrome-devtools-frontend 1.0.1386602 → 1.0.1418433

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2535) hide show
  1. package/.git-blame-ignore-revs +8 -0
  2. package/.stylelintrc.json +1 -3
  3. package/.vscode/devtools-workspace-launch.json +13 -31
  4. package/.vscode/devtools-workspace-settings.json +2 -4
  5. package/.vscode/devtools-workspace-tasks.json +5 -4
  6. package/AUTHORS +4 -1
  7. package/config/gni/devtools_grd_files.gni +134 -114
  8. package/config/gni/devtools_image_files.gni +18 -1
  9. package/config/owner/INFRA_OWNERS +1 -0
  10. package/config/typescript/tsconfig.eslint.json +2 -1
  11. package/docs/README.md +5 -0
  12. package/docs/contributing/issues.md +1 -1
  13. package/docs/cookbook/localization.md +1 -1
  14. package/docs/get_the_code.md +0 -17
  15. package/docs/playbook.md +176 -0
  16. package/docs/policy/README.md +1 -0
  17. package/docs/policy/gar-page-zoom-policy.md +43 -0
  18. package/docs/policy/images/devtools-gar-testing.png +0 -0
  19. package/docs/policy/images/docked-devtools.webp +0 -0
  20. package/docs/policy/images/undocked-devtools.png +0 -0
  21. package/docs/styleguide/ux/README.md +1 -0
  22. package/docs/styleguide/ux/components.md +150 -22
  23. package/docs/styleguide/ux/images/combo-box-variations.png +0 -0
  24. package/docs/styleguide/ux/images/radio-buttons-variations.png +0 -0
  25. package/docs/styleguide/ux/images/sliders-variations.png +0 -0
  26. package/docs/styleguide/ux/patterns.md +87 -0
  27. package/docs/styleguide/ux/styles.md +40 -7
  28. package/eslint.config.mjs +746 -0
  29. package/extension-api/ExtensionAPI.d.ts +22 -0
  30. package/extensions/cxx_debugging/e2e/TestDriver.ts +1 -3
  31. package/extensions/cxx_debugging/e2e/cxx-debugging-extension-helpers.ts +1 -0
  32. package/extensions/cxx_debugging/e2e/standalone/MemoryInspector_test.ts +0 -1
  33. package/extensions/cxx_debugging/src/CreditsItem.ts +5 -6
  34. package/extensions/cxx_debugging/src/CustomFormatters.ts +4 -4
  35. package/extensions/cxx_debugging/src/DWARFSymbols.ts +10 -10
  36. package/extensions/cxx_debugging/src/DevToolsPluginHost.ts +6 -6
  37. package/extensions/cxx_debugging/src/DevToolsPluginWorker.ts +3 -6
  38. package/extensions/cxx_debugging/src/DevToolsPluginWorkerMain.ts +1 -0
  39. package/extensions/cxx_debugging/src/ExtensionOptions.ts +6 -10
  40. package/extensions/cxx_debugging/src/Formatters.ts +15 -8
  41. package/extensions/cxx_debugging/src/MEMFSResourceLoader.ts +7 -7
  42. package/extensions/cxx_debugging/src/ModuleConfiguration.ts +6 -6
  43. package/extensions/cxx_debugging/src/ModuleConfigurationList.ts +4 -4
  44. package/extensions/cxx_debugging/src/WasmTypes.ts +21 -11
  45. package/extensions/cxx_debugging/src/WorkerRPC.ts +3 -4
  46. package/extensions/cxx_debugging/src/rollup.config.in.js +1 -3
  47. package/extensions/cxx_debugging/tests/CreditsItem_test.ts +2 -3
  48. package/extensions/cxx_debugging/tests/DevToolsPluginTestWorker.ts +4 -4
  49. package/extensions/cxx_debugging/tests/DevToolsPlugin_test.ts +12 -12
  50. package/extensions/cxx_debugging/tests/Externref_test.ts +3 -6
  51. package/extensions/cxx_debugging/tests/Formatters_test.ts +4 -3
  52. package/extensions/cxx_debugging/tests/Interpreter_test.ts +1 -1
  53. package/extensions/cxx_debugging/tests/RealBackend.ts +9 -9
  54. package/extensions/cxx_debugging/tests/SymbolsBackend_test.ts +31 -29
  55. package/extensions/cxx_debugging/tests/TestUtils.ts +8 -7
  56. package/extensions/cxx_debugging/tests/inputs/externref.js +14 -4
  57. package/extensions/cxx_debugging/tests/inputs/page.js +3 -1
  58. package/front_end/Images/generate-css-vars.js +1 -0
  59. package/front_end/Images/rollup.config.mjs +0 -1
  60. package/front_end/Images/src/account-tree.svg +1 -0
  61. package/front_end/Images/src/arrow-collapse.svg +3 -0
  62. package/front_end/Images/src/arrow-drop-down.svg +3 -0
  63. package/front_end/Images/src/compress.svg +8 -0
  64. package/front_end/Images/src/devtools-thumbnail.svg +57 -0
  65. package/front_end/Images/src/devtools-tips.svg +61 -0
  66. package/front_end/Images/src/difference.svg +3 -0
  67. package/front_end/Images/src/global.svg +5 -0
  68. package/front_end/Images/src/grid-on.svg +10 -0
  69. package/front_end/Images/src/keyboard-full.svg +10 -0
  70. package/front_end/Images/src/label.svg +10 -0
  71. package/front_end/Images/src/node-stack-icon.svg +1 -0
  72. package/front_end/Images/src/override.svg +11 -0
  73. package/front_end/Images/src/palette.svg +10 -0
  74. package/front_end/Images/src/photo-camera.svg +10 -0
  75. package/front_end/Images/src/terminal.svg +10 -0
  76. package/front_end/Images/src/tonality.svg +10 -0
  77. package/front_end/Images/src/whatsnew.svg +61 -0
  78. package/front_end/Tests.js +28 -41
  79. package/front_end/application_tokens.css +407 -0
  80. package/front_end/core/common/Base64.test.ts +3 -3
  81. package/front_end/core/common/CharacterIdMap.test.ts +1 -1
  82. package/front_end/core/common/Color.ts +8 -0
  83. package/front_end/core/common/ColorUtils.test.ts +2 -2
  84. package/front_end/core/common/Console.test.ts +7 -7
  85. package/front_end/core/common/Console.ts +3 -3
  86. package/front_end/core/common/EventTarget.test.ts +7 -7
  87. package/front_end/core/common/EventTarget.ts +3 -3
  88. package/front_end/core/common/Lazy.test.ts +12 -14
  89. package/front_end/core/common/MapWithDefault.test.ts +61 -0
  90. package/front_end/core/common/MapWithDefault.ts +24 -0
  91. package/front_end/core/common/ParsedURL.test.ts +38 -42
  92. package/front_end/core/common/ParsedURL.ts +1 -1
  93. package/front_end/core/common/Progress.test.ts +7 -7
  94. package/front_end/core/common/ResolverBase.test.ts +3 -3
  95. package/front_end/core/common/ResolverBase.ts +2 -7
  96. package/front_end/core/common/ResourceType.test.ts +22 -26
  97. package/front_end/core/common/Revealer.ts +5 -0
  98. package/front_end/core/common/SettingRegistration.test.ts +3 -5
  99. package/front_end/core/common/SettingRegistration.ts +1 -1
  100. package/front_end/core/common/Settings.ts +13 -13
  101. package/front_end/core/common/Throttler.ts +3 -3
  102. package/front_end/core/common/common.ts +4 -3
  103. package/front_end/core/dom_extension/DOMExtension.test.ts +38 -41
  104. package/front_end/core/dom_extension/DOMExtension.ts +5 -4
  105. package/front_end/core/host/AidaClient.test.ts +106 -39
  106. package/front_end/core/host/AidaClient.ts +152 -34
  107. package/front_end/core/host/InspectorFrontendHost.ts +21 -5
  108. package/front_end/core/host/InspectorFrontendHostAPI.ts +33 -38
  109. package/front_end/core/host/ResourceLoader.ts +1 -1
  110. package/front_end/core/host/UserMetrics.ts +125 -185
  111. package/front_end/core/i18n/collect-ui-strings.js +5 -4
  112. package/front_end/core/i18n/generate-locales-js.js +4 -2
  113. package/front_end/core/i18n/i18n.test.ts +45 -0
  114. package/front_end/core/i18n/i18nImpl.ts +1 -1
  115. package/front_end/core/i18n/i18nTypes.ts +3 -3
  116. package/front_end/core/i18n/locales/af.json +848 -518
  117. package/front_end/core/i18n/locales/am.json +857 -527
  118. package/front_end/core/i18n/locales/ar.json +864 -534
  119. package/front_end/core/i18n/locales/as.json +853 -523
  120. package/front_end/core/i18n/locales/az.json +856 -526
  121. package/front_end/core/i18n/locales/be.json +854 -524
  122. package/front_end/core/i18n/locales/bg.json +844 -514
  123. package/front_end/core/i18n/locales/bn.json +851 -521
  124. package/front_end/core/i18n/locales/bs.json +861 -531
  125. package/front_end/core/i18n/locales/ca.json +851 -521
  126. package/front_end/core/i18n/locales/cs.json +854 -524
  127. package/front_end/core/i18n/locales/cy.json +849 -519
  128. package/front_end/core/i18n/locales/da.json +850 -520
  129. package/front_end/core/i18n/locales/de.json +848 -518
  130. package/front_end/core/i18n/locales/el.json +851 -521
  131. package/front_end/core/i18n/locales/en-GB.json +845 -515
  132. package/front_end/core/i18n/locales/es-419.json +847 -517
  133. package/front_end/core/i18n/locales/es.json +847 -517
  134. package/front_end/core/i18n/locales/et.json +843 -513
  135. package/front_end/core/i18n/locales/eu.json +861 -531
  136. package/front_end/core/i18n/locales/fa.json +860 -530
  137. package/front_end/core/i18n/locales/fi.json +848 -518
  138. package/front_end/core/i18n/locales/fil.json +849 -519
  139. package/front_end/core/i18n/locales/fr-CA.json +849 -519
  140. package/front_end/core/i18n/locales/fr.json +849 -519
  141. package/front_end/core/i18n/locales/gl.json +852 -522
  142. package/front_end/core/i18n/locales/gu.json +846 -516
  143. package/front_end/core/i18n/locales/he.json +867 -537
  144. package/front_end/core/i18n/locales/hi.json +853 -523
  145. package/front_end/core/i18n/locales/hr.json +854 -524
  146. package/front_end/core/i18n/locales/hu.json +848 -518
  147. package/front_end/core/i18n/locales/hy.json +850 -520
  148. package/front_end/core/i18n/locales/id.json +849 -519
  149. package/front_end/core/i18n/locales/is.json +850 -520
  150. package/front_end/core/i18n/locales/it.json +852 -522
  151. package/front_end/core/i18n/locales/ja.json +844 -514
  152. package/front_end/core/i18n/locales/ka.json +847 -517
  153. package/front_end/core/i18n/locales/kk.json +850 -520
  154. package/front_end/core/i18n/locales/km.json +853 -523
  155. package/front_end/core/i18n/locales/kn.json +857 -527
  156. package/front_end/core/i18n/locales/ko.json +850 -520
  157. package/front_end/core/i18n/locales/ky.json +846 -516
  158. package/front_end/core/i18n/locales/lo.json +851 -521
  159. package/front_end/core/i18n/locales/lt.json +845 -515
  160. package/front_end/core/i18n/locales/lv.json +849 -519
  161. package/front_end/core/i18n/locales/mk.json +851 -521
  162. package/front_end/core/i18n/locales/ml.json +850 -520
  163. package/front_end/core/i18n/locales/mn.json +860 -530
  164. package/front_end/core/i18n/locales/mr.json +852 -522
  165. package/front_end/core/i18n/locales/ms.json +848 -518
  166. package/front_end/core/i18n/locales/my.json +857 -527
  167. package/front_end/core/i18n/locales/ne.json +857 -527
  168. package/front_end/core/i18n/locales/nl.json +847 -517
  169. package/front_end/core/i18n/locales/no.json +848 -518
  170. package/front_end/core/i18n/locales/or.json +969 -639
  171. package/front_end/core/i18n/locales/pa.json +850 -520
  172. package/front_end/core/i18n/locales/pl.json +849 -519
  173. package/front_end/core/i18n/locales/pt-PT.json +850 -520
  174. package/front_end/core/i18n/locales/pt.json +844 -514
  175. package/front_end/core/i18n/locales/ro.json +850 -520
  176. package/front_end/core/i18n/locales/ru.json +861 -531
  177. package/front_end/core/i18n/locales/si.json +850 -520
  178. package/front_end/core/i18n/locales/sk.json +850 -520
  179. package/front_end/core/i18n/locales/sl.json +851 -521
  180. package/front_end/core/i18n/locales/sq.json +847 -517
  181. package/front_end/core/i18n/locales/sr-Latn.json +848 -518
  182. package/front_end/core/i18n/locales/sr.json +848 -518
  183. package/front_end/core/i18n/locales/sv.json +849 -519
  184. package/front_end/core/i18n/locales/sw.json +856 -526
  185. package/front_end/core/i18n/locales/ta.json +853 -523
  186. package/front_end/core/i18n/locales/te.json +854 -524
  187. package/front_end/core/i18n/locales/th.json +839 -509
  188. package/front_end/core/i18n/locales/tr.json +850 -520
  189. package/front_end/core/i18n/locales/uk.json +850 -520
  190. package/front_end/core/i18n/locales/ur.json +849 -519
  191. package/front_end/core/i18n/locales/uz.json +854 -524
  192. package/front_end/core/i18n/locales/vi.json +847 -517
  193. package/front_end/core/i18n/locales/zh-HK.json +852 -522
  194. package/front_end/core/i18n/locales/zh-TW.json +852 -522
  195. package/front_end/core/i18n/locales/zh.json +849 -519
  196. package/front_end/core/i18n/locales/zu.json +855 -525
  197. package/front_end/core/i18n/time-utilities.ts +17 -0
  198. package/front_end/core/platform/ArrayUtilities.test.ts +7 -8
  199. package/front_end/core/platform/DevToolsPath.test.ts +80 -41
  200. package/front_end/core/platform/DevToolsPath.ts +32 -9
  201. package/front_end/core/platform/MapUtilities.ts +1 -1
  202. package/front_end/core/platform/ServerTiming.ts +8 -8
  203. package/front_end/core/platform/StringUtilities.test.ts +1 -1
  204. package/front_end/core/platform/StringUtilities.ts +1 -1
  205. package/front_end/core/platform/TypedArrayUtilities.test.ts +6 -6
  206. package/front_end/core/protocol_client/InspectorBackend.ts +15 -22
  207. package/front_end/core/protocol_client/protocol_client.ts +1 -0
  208. package/front_end/core/root/Runtime.test.ts +22 -3
  209. package/front_end/core/root/Runtime.ts +99 -52
  210. package/front_end/core/sdk/AccessibilityModel.ts +3 -3
  211. package/front_end/core/sdk/AnimationModel.test.ts +4 -4
  212. package/front_end/core/sdk/AnimationModel.ts +5 -5
  213. package/front_end/core/sdk/AutofillModel.test.ts +1 -1
  214. package/front_end/core/sdk/AutofillModel.ts +3 -3
  215. package/front_end/core/sdk/CPUProfilerModel.ts +4 -4
  216. package/front_end/core/sdk/CPUThrottlingManager.ts +157 -17
  217. package/front_end/core/sdk/CSSMatchedStyles.test.ts +47 -45
  218. package/front_end/core/sdk/CSSMatchedStyles.ts +73 -6
  219. package/front_end/core/sdk/CSSMetadata.ts +21 -0
  220. package/front_end/core/sdk/CSSModel.test.ts +8 -10
  221. package/front_end/core/sdk/CSSModel.ts +53 -34
  222. package/front_end/core/sdk/CSSProperty.ts +16 -6
  223. package/front_end/core/sdk/CSSPropertyParser.ts +4 -4
  224. package/front_end/{panels/elements/PropertyMatchers.test.ts → core/sdk/CSSPropertyParserMatchers.test.ts} +158 -96
  225. package/front_end/{panels/elements/PropertyMatchers.ts → core/sdk/CSSPropertyParserMatchers.ts} +126 -59
  226. package/front_end/core/sdk/CSSStyleDeclaration.test.ts +7 -7
  227. package/front_end/core/sdk/CSSStyleDeclaration.ts +13 -1
  228. package/front_end/core/sdk/CSSStyleSheetHeader.test.ts +29 -0
  229. package/front_end/core/sdk/CSSStyleSheetHeader.ts +1 -1
  230. package/front_end/core/sdk/ChildTargetManager.test.ts +30 -14
  231. package/front_end/core/sdk/ChildTargetManager.ts +8 -11
  232. package/front_end/core/sdk/Connections.ts +26 -8
  233. package/front_end/core/sdk/ConsoleModel.test.ts +6 -4
  234. package/front_end/core/sdk/ConsoleModel.ts +11 -6
  235. package/front_end/core/sdk/Cookie.test.ts +37 -37
  236. package/front_end/core/sdk/CookieModel.test.ts +13 -12
  237. package/front_end/core/sdk/CookieModel.ts +3 -3
  238. package/front_end/core/sdk/DOMDebuggerModel.ts +5 -5
  239. package/front_end/core/sdk/DOMModel.ts +40 -17
  240. package/front_end/core/sdk/DebuggerModel.test.ts +6 -5
  241. package/front_end/core/sdk/DebuggerModel.ts +13 -13
  242. package/front_end/core/sdk/EmulationModel.ts +2 -3
  243. package/front_end/core/sdk/EnhancedTracesParser.test.ts +7 -7
  244. package/front_end/core/sdk/EnhancedTracesParser.ts +3 -1
  245. package/front_end/core/sdk/FrameManager.test.ts +4 -4
  246. package/front_end/core/sdk/FrameManager.ts +7 -7
  247. package/front_end/core/sdk/HeapProfilerModel.ts +7 -7
  248. package/front_end/core/sdk/IOModel.ts +2 -3
  249. package/front_end/core/sdk/IsolateManager.ts +4 -4
  250. package/front_end/core/sdk/IssuesModel.ts +7 -4
  251. package/front_end/core/sdk/LogModel.ts +5 -5
  252. package/front_end/core/sdk/NetworkManager.test.ts +106 -57
  253. package/front_end/core/sdk/NetworkManager.ts +58 -23
  254. package/front_end/core/sdk/NetworkRequest.test.ts +24 -25
  255. package/front_end/core/sdk/NetworkRequest.ts +10 -10
  256. package/front_end/core/sdk/OverlayModel.test.ts +6 -6
  257. package/front_end/core/sdk/OverlayModel.ts +10 -10
  258. package/front_end/core/sdk/OverlayPersistentHighlighter.test.ts +5 -3
  259. package/front_end/core/sdk/PageResourceLoader.test.ts +20 -25
  260. package/front_end/core/sdk/PageResourceLoader.ts +3 -3
  261. package/front_end/core/sdk/PaintProfiler.ts +4 -4
  262. package/front_end/core/sdk/PerformanceMetricsModel.ts +2 -2
  263. package/front_end/core/sdk/PreloadingModel.test.ts +240 -22
  264. package/front_end/core/sdk/PreloadingModel.ts +188 -19
  265. package/front_end/core/sdk/RehydratingConnection.test.ts +3 -3
  266. package/front_end/core/sdk/RehydratingConnection.ts +51 -7
  267. package/front_end/core/sdk/RemoteObject.test.ts +60 -60
  268. package/front_end/core/sdk/RemoteObject.ts +2 -2
  269. package/front_end/core/sdk/ResourceTreeModel.test.ts +5 -5
  270. package/front_end/core/sdk/ResourceTreeModel.ts +39 -32
  271. package/front_end/core/sdk/RuntimeModel.test.ts +4 -2
  272. package/front_end/core/sdk/RuntimeModel.ts +14 -12
  273. package/front_end/core/sdk/ScreenCaptureModel.ts +3 -0
  274. package/front_end/core/sdk/Script.ts +1 -1
  275. package/front_end/core/sdk/SecurityOriginManager.ts +6 -6
  276. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +5 -5
  277. package/front_end/core/sdk/ServiceWorkerManager.test.ts +3 -3
  278. package/front_end/core/sdk/ServiceWorkerManager.ts +10 -11
  279. package/front_end/core/sdk/SourceMap.test.ts +141 -77
  280. package/front_end/core/sdk/SourceMap.ts +110 -193
  281. package/front_end/core/sdk/SourceMapFunctionRanges.test.ts +171 -0
  282. package/front_end/core/sdk/SourceMapFunctionRanges.ts +150 -0
  283. package/front_end/core/sdk/SourceMapManager.test.ts +14 -14
  284. package/front_end/core/sdk/SourceMapManager.ts +12 -12
  285. package/front_end/core/sdk/SourceMapScopes.ts +29 -7
  286. package/front_end/core/sdk/SourceMapScopesInfo.test.ts +117 -25
  287. package/front_end/core/sdk/SourceMapScopesInfo.ts +94 -20
  288. package/front_end/core/sdk/StorageBucketsModel.ts +8 -8
  289. package/front_end/core/sdk/StorageKeyManager.test.ts +4 -2
  290. package/front_end/core/sdk/StorageKeyManager.ts +8 -7
  291. package/front_end/core/sdk/Target.test.ts +39 -3
  292. package/front_end/core/sdk/Target.ts +41 -1
  293. package/front_end/core/sdk/TargetManager.test.ts +6 -4
  294. package/front_end/core/sdk/TargetManager.ts +6 -6
  295. package/front_end/core/sdk/TraceObject.test.ts +2 -2
  296. package/front_end/core/sdk/TraceObject.ts +32 -0
  297. package/front_end/core/sdk/WebAuthnModel.ts +6 -6
  298. package/front_end/core/sdk/sdk-meta.ts +1 -28
  299. package/front_end/core/sdk/sdk.ts +4 -5
  300. package/front_end/design_system_tokens.css +775 -0
  301. package/front_end/devtools_compatibility.js +6 -9
  302. package/front_end/entrypoint_template.html +2 -0
  303. package/front_end/entrypoints/formatter_worker/FormattedContentBuilder.test.ts +1 -1
  304. package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +1 -2
  305. package/front_end/entrypoints/formatter_worker/JavaScriptFormatter.test.ts +12 -2
  306. package/front_end/entrypoints/formatter_worker/JavaScriptFormatter.ts +3 -3
  307. package/front_end/entrypoints/formatter_worker/ScopeParser.ts +0 -1
  308. package/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.ts +0 -1
  309. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +68 -53
  310. package/front_end/entrypoints/inspector_main/InspectorMain.test.ts +276 -142
  311. package/front_end/entrypoints/inspector_main/InspectorMain.ts +41 -3
  312. package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +1 -2
  313. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +3 -6
  314. package/front_end/entrypoints/inspector_main/nodeIcon.css +1 -0
  315. package/front_end/entrypoints/js_app/js_app.ts +2 -1
  316. package/front_end/entrypoints/main/ExecutionContextSelector.ts +1 -1
  317. package/front_end/entrypoints/main/MainImpl.ts +118 -95
  318. package/front_end/entrypoints/node_app/NodeConnectionsPanel.ts +6 -8
  319. package/front_end/entrypoints/node_app/NodeMain.ts +10 -5
  320. package/front_end/entrypoints/node_app/node_app.ts +3 -2
  321. package/front_end/entrypoints/shell/shell.ts +1 -1
  322. package/front_end/entrypoints/wasmparser_worker/WasmParserWorker.ts +1 -1
  323. package/front_end/entrypoints/worker_app/WorkerMain.ts +1 -1
  324. package/front_end/generated/ARIAProperties.js +1 -1
  325. package/front_end/generated/Deprecation.ts +8 -16
  326. package/front_end/generated/InspectorBackendCommands.js +40 -31
  327. package/front_end/generated/SupportedCSSProperties.js +256 -45
  328. package/front_end/generated/protocol-mapping.d.ts +66 -23
  329. package/front_end/generated/protocol-proxy-api.d.ts +53 -25
  330. package/front_end/generated/protocol.ts +354 -87
  331. package/front_end/global_typings/global_defs.d.ts +0 -5
  332. package/front_end/legacy/legacy-defs.d.ts +2 -6
  333. package/front_end/legacy_test_runner/application_test_runner/ResourceTreeTestRunner.js +2 -1
  334. package/front_end/legacy_test_runner/bindings_test_runner/BindingsTestRunner.js +3 -4
  335. package/front_end/legacy_test_runner/elements_test_runner/ElementsTestRunner.js +1 -2
  336. package/front_end/legacy_test_runner/heap_profiler_test_runner/heap_profiler_test_runner.js +15 -3
  337. package/front_end/models/autofill_manager/AutofillManager.test.ts +1 -1
  338. package/front_end/models/autofill_manager/AutofillManager.ts +3 -3
  339. package/front_end/models/bindings/CompilerScriptMapping.test.ts +6 -6
  340. package/front_end/models/bindings/CompilerScriptMapping.ts +8 -0
  341. package/front_end/models/bindings/ContentProviderBasedProject.ts +1 -1
  342. package/front_end/models/bindings/DebuggerLanguagePlugins.test.ts +8 -6
  343. package/front_end/models/bindings/DebuggerWorkspaceBinding.test.ts +29 -3
  344. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +8 -0
  345. package/front_end/models/bindings/DefaultScriptMapping.test.ts +7 -5
  346. package/front_end/models/bindings/FileUtils.test.ts +2 -2
  347. package/front_end/models/bindings/FileUtils.ts +1 -1
  348. package/front_end/models/bindings/IgnoreListManager.test.ts +17 -15
  349. package/front_end/models/bindings/IgnoreListManager.ts +9 -9
  350. package/front_end/models/bindings/NetworkProject.ts +4 -4
  351. package/front_end/models/bindings/PresentationConsoleMessageHelper.test.ts +4 -2
  352. package/front_end/models/bindings/PresentationConsoleMessageHelper.ts +4 -5
  353. package/front_end/models/bindings/ResourceMapping.test.ts +6 -4
  354. package/front_end/models/bindings/ResourceScriptMapping.test.ts +4 -2
  355. package/front_end/models/bindings/ResourceScriptMapping.ts +4 -4
  356. package/front_end/models/bindings/ResourceUtils.test.ts +26 -28
  357. package/front_end/models/bindings/ResourceUtils.ts +1 -8
  358. package/front_end/models/bindings/SASSSourceMapping.ts +0 -1
  359. package/front_end/models/breakpoints/BreakpointManager.test.ts +47 -45
  360. package/front_end/models/breakpoints/BreakpointManager.ts +4 -4
  361. package/front_end/models/cpu_profile/CPUProfileDataModel.test.ts +8 -1
  362. package/front_end/models/cpu_profile/CPUProfileDataModel.ts +14 -4
  363. package/front_end/models/cpu_profile/ProfileTreeModel.ts +1 -3
  364. package/front_end/models/crux-manager/CrUXManager.test.ts +101 -28
  365. package/front_end/models/crux-manager/CrUXManager.ts +76 -10
  366. package/front_end/models/emulation/DeviceModeModel.ts +18 -3
  367. package/front_end/models/emulation/EmulatedDevices.test.ts +20 -0
  368. package/front_end/models/emulation/EmulatedDevices.ts +29 -25
  369. package/front_end/models/extensions/ExtensionAPI.ts +301 -175
  370. package/front_end/models/extensions/ExtensionEndpoint.ts +8 -8
  371. package/front_end/models/extensions/ExtensionPanel.ts +4 -2
  372. package/front_end/models/extensions/ExtensionServer.test.ts +281 -65
  373. package/front_end/models/extensions/ExtensionServer.ts +65 -7
  374. package/front_end/models/extensions/HostUrlPattern.test.ts +59 -58
  375. package/front_end/models/extensions/LanguageExtensionEndpoint.test.ts +63 -0
  376. package/front_end/models/extensions/LanguageExtensionEndpoint.ts +25 -6
  377. package/front_end/models/extensions/RecorderPluginManager.test.ts +1 -1
  378. package/front_end/models/extensions/RecorderPluginManager.ts +13 -13
  379. package/front_end/models/extensions/extensions.ts +4 -0
  380. package/front_end/models/formatter/FormatterWorkerPool.ts +3 -4
  381. package/front_end/models/har/Importer.test.ts +4 -4
  382. package/front_end/models/har/Log.test.ts +4 -2
  383. package/front_end/models/har/Log.ts +3 -3
  384. package/front_end/models/har/Writer.test.ts +2 -1
  385. package/front_end/models/heap_snapshot_model/HeapSnapshotModel.ts +4 -10
  386. package/front_end/models/issues_manager/ClientHintIssue.ts +2 -3
  387. package/front_end/models/issues_manager/ContentSecurityPolicyIssue.ts +0 -1
  388. package/front_end/models/issues_manager/CookieIssue.ts +5 -3
  389. package/front_end/models/issues_manager/CrossOriginEmbedderPolicyIssue.ts +0 -1
  390. package/front_end/models/issues_manager/DeprecationIssue.test.ts +3 -3
  391. package/front_end/models/issues_manager/DeprecationIssue.ts +3 -4
  392. package/front_end/models/issues_manager/FederatedAuthRequestIssue.ts +2 -3
  393. package/front_end/models/issues_manager/FederatedAuthUserInfoRequestIssue.test.ts +1 -1
  394. package/front_end/models/issues_manager/FederatedAuthUserInfoRequestIssue.ts +2 -3
  395. package/front_end/models/issues_manager/GenericIssue.test.ts +2 -2
  396. package/front_end/models/issues_manager/GenericIssue.ts +0 -1
  397. package/front_end/models/issues_manager/IssueResolver.test.ts +3 -3
  398. package/front_end/models/issues_manager/IssuesManager.test.ts +19 -19
  399. package/front_end/models/issues_manager/IssuesManager.ts +29 -10
  400. package/front_end/models/issues_manager/LowTextContrastIssue.test.ts +2 -2
  401. package/front_end/models/issues_manager/MarkdownIssueDescription.ts +1 -1
  402. package/front_end/models/issues_manager/PropertyRuleIssue.test.ts +1 -1
  403. package/front_end/models/issues_manager/RelatedIssue.test.ts +7 -7
  404. package/front_end/models/issues_manager/SelectElementAccessibilityIssue.test.ts +86 -0
  405. package/front_end/models/issues_manager/SelectElementAccessibilityIssue.ts +110 -0
  406. package/front_end/models/issues_manager/SharedDictionaryIssue.test.ts +1 -1
  407. package/front_end/models/issues_manager/StylesheetLoadingIssue.test.ts +7 -7
  408. package/front_end/models/issues_manager/descriptions/selectElementAccessibilityDisallowedOptGroupChild.md +7 -0
  409. package/front_end/models/issues_manager/descriptions/selectElementAccessibilityDisallowedSelectChild.md +7 -0
  410. package/front_end/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentAttributesSelectDescendant.md +3 -0
  411. package/front_end/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentLegendChild.md +3 -0
  412. package/front_end/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentOptionChild.md +3 -0
  413. package/front_end/models/issues_manager/descriptions/selectElementAccessibilityNonPhrasingContentOptionChild.md +3 -0
  414. package/front_end/models/issues_manager/issues_manager.ts +2 -0
  415. package/front_end/models/javascript_metadata/JavaScriptMetadata.test.ts +6 -6
  416. package/front_end/models/javascript_metadata/NativeFunctions.js +210 -179
  417. package/front_end/models/live-metrics/LiveMetrics.ts +113 -65
  418. package/front_end/models/live-metrics/web-vitals-injected/spec/spec.ts +13 -13
  419. package/front_end/models/live-metrics/web-vitals-injected/web-vitals-injected.ts +13 -6
  420. package/front_end/models/logs/NetworkLog.test.ts +6 -4
  421. package/front_end/models/logs/NetworkLog.ts +6 -6
  422. package/front_end/models/logs/RequestResolver.test.ts +3 -3
  423. package/front_end/models/persistence/EditFileSystemView.ts +4 -7
  424. package/front_end/models/persistence/IsolatedFileSystemManager.ts +9 -13
  425. package/front_end/models/persistence/NetworkPersistenceManager.test.ts +38 -46
  426. package/front_end/models/persistence/NetworkPersistenceManager.ts +6 -6
  427. package/front_end/models/persistence/PersistenceAction.test.ts +11 -9
  428. package/front_end/models/persistence/PersistenceImpl.test.ts +10 -8
  429. package/front_end/models/persistence/PersistenceImpl.ts +4 -4
  430. package/front_end/models/persistence/PersistenceUtils.ts +3 -3
  431. package/front_end/models/persistence/PlatformFileSystem.test.ts +4 -3
  432. package/front_end/models/persistence/PlatformFileSystem.ts +1 -1
  433. package/front_end/models/persistence/WorkspaceSettingsTab.ts +16 -21
  434. package/front_end/models/persistence/editFileSystemView.css +13 -8
  435. package/front_end/models/project_settings/ProjectSettingsModel.test.ts +138 -0
  436. package/front_end/models/project_settings/ProjectSettingsModel.ts +157 -0
  437. package/front_end/models/project_settings/project_settings.ts +9 -0
  438. package/front_end/models/source_map_scopes/NamesResolver.test.ts +11 -3
  439. package/front_end/models/source_map_scopes/NamesResolver.ts +5 -7
  440. package/front_end/models/source_map_scopes/ScopeChainModel.ts +3 -3
  441. package/front_end/models/text_utils/StaticContentProvider.test.ts +4 -2
  442. package/front_end/models/text_utils/StreamingContentData.ts +3 -3
  443. package/front_end/models/text_utils/Text.test.ts +1 -1
  444. package/front_end/models/text_utils/TextRange.test.ts +2 -4
  445. package/front_end/models/text_utils/TextUtils.test.ts +29 -30
  446. package/front_end/models/text_utils/TextUtils.ts +1 -1
  447. package/front_end/models/trace/LanternComputationData.ts +11 -10
  448. package/front_end/models/trace/ModelImpl.test.ts +8 -8
  449. package/front_end/models/trace/ModelImpl.ts +12 -15
  450. package/front_end/models/trace/Processor.test.ts +83 -12
  451. package/front_end/models/trace/Processor.ts +116 -29
  452. package/front_end/models/trace/extras/FilmStrip.test.ts +54 -32
  453. package/front_end/models/trace/extras/FilmStrip.ts +11 -10
  454. package/front_end/models/trace/extras/MainThreadActivity.test.ts +7 -7
  455. package/front_end/models/trace/extras/MainThreadActivity.ts +5 -5
  456. package/front_end/models/trace/extras/Metadata.test.ts +3 -0
  457. package/front_end/models/trace/extras/Metadata.ts +4 -1
  458. package/front_end/models/trace/extras/StackTraceForEvent.test.ts +259 -0
  459. package/front_end/models/trace/extras/StackTraceForEvent.ts +177 -0
  460. package/front_end/models/trace/extras/ThirdParties.test.ts +99 -91
  461. package/front_end/models/trace/extras/ThirdParties.ts +124 -121
  462. package/front_end/models/trace/extras/TimelineJSProfile.ts +10 -5
  463. package/front_end/models/trace/extras/TraceFilter.test.ts +3 -2
  464. package/front_end/models/trace/extras/TraceTree.test.ts +65 -39
  465. package/front_end/models/trace/extras/TraceTree.ts +32 -21
  466. package/front_end/models/trace/extras/extras.ts +1 -1
  467. package/front_end/models/trace/handlers/AnimationFramesHandler.test.ts +40 -0
  468. package/front_end/models/trace/handlers/AnimationFramesHandler.ts +119 -0
  469. package/front_end/models/trace/handlers/AsyncJSCallsHandler.test.ts +211 -0
  470. package/front_end/models/trace/handlers/AsyncJSCallsHandler.ts +185 -0
  471. package/front_end/models/trace/handlers/DOMStatsHandler.test.ts +30 -0
  472. package/front_end/models/trace/handlers/DOMStatsHandler.ts +31 -0
  473. package/front_end/models/trace/handlers/ExtensionTraceDataHandler.test.ts +741 -381
  474. package/front_end/models/trace/handlers/ExtensionTraceDataHandler.ts +182 -17
  475. package/front_end/models/trace/handlers/FlowsHandler.test.ts +185 -0
  476. package/front_end/models/trace/handlers/FlowsHandler.ts +175 -0
  477. package/front_end/models/trace/handlers/FramesHandler.test.ts +42 -43
  478. package/front_end/models/trace/handlers/FramesHandler.ts +24 -25
  479. package/front_end/models/trace/handlers/InitiatorsHandler.test.ts +56 -49
  480. package/front_end/models/trace/handlers/InitiatorsHandler.ts +32 -61
  481. package/front_end/models/trace/handlers/LargestImagePaintHandler.test.ts +48 -13
  482. package/front_end/models/trace/handlers/LargestImagePaintHandler.ts +31 -27
  483. package/front_end/models/trace/handlers/LayoutShiftsHandler.test.ts +10 -10
  484. package/front_end/models/trace/handlers/LayoutShiftsHandler.ts +33 -24
  485. package/front_end/models/trace/handlers/MetaHandler.test.ts +15 -14
  486. package/front_end/models/trace/handlers/MetaHandler.ts +46 -47
  487. package/front_end/models/trace/handlers/ModelHandlers.ts +4 -0
  488. package/front_end/models/trace/handlers/NetworkRequestsHandler.test.ts +178 -72
  489. package/front_end/models/trace/handlers/NetworkRequestsHandler.ts +60 -40
  490. package/front_end/models/trace/handlers/PageLoadMetricsHandler.test.ts +4 -4
  491. package/front_end/models/trace/handlers/PageLoadMetricsHandler.ts +28 -27
  492. package/front_end/models/trace/handlers/RendererHandler.test.ts +25 -6
  493. package/front_end/models/trace/handlers/RendererHandler.ts +43 -5
  494. package/front_end/models/trace/handlers/SamplesHandler.test.ts +50 -17
  495. package/front_end/models/trace/handlers/SamplesHandler.ts +69 -60
  496. package/front_end/models/trace/handlers/ScreenshotsHandler.test.ts +33 -44
  497. package/front_end/models/trace/handlers/ScreenshotsHandler.ts +38 -13
  498. package/front_end/models/trace/handlers/ServerTimingsHandler.test.ts +6 -6
  499. package/front_end/models/trace/handlers/ServerTimingsHandler.ts +4 -5
  500. package/front_end/models/trace/handlers/Threads.test.ts +6 -6
  501. package/front_end/models/trace/handlers/Threads.ts +13 -4
  502. package/front_end/models/trace/handlers/UserInteractionsHandler.test.ts +7 -7
  503. package/front_end/models/trace/handlers/UserInteractionsHandler.ts +17 -18
  504. package/front_end/models/trace/handlers/UserTimings.md +1 -1
  505. package/front_end/models/trace/handlers/UserTimingsHandler.test.ts +32 -24
  506. package/front_end/models/trace/handlers/UserTimingsHandler.ts +25 -4
  507. package/front_end/models/trace/handlers/WarningsHandler.ts +2 -2
  508. package/front_end/models/trace/handlers/WorkersHandler.test.ts +4 -4
  509. package/front_end/models/trace/handlers/handlers.ts +1 -0
  510. package/front_end/models/trace/{extras/URLForEntry.test.ts → handlers/helpers.test.ts} +34 -7
  511. package/front_end/models/trace/handlers/helpers.ts +158 -0
  512. package/front_end/models/trace/handlers/types.ts +2 -1
  513. package/front_end/models/trace/helpers/SamplesIntegrator.test.ts +81 -13
  514. package/front_end/models/trace/helpers/SamplesIntegrator.ts +59 -18
  515. package/front_end/models/trace/helpers/SyntheticEvents.test.ts +1 -1
  516. package/front_end/models/trace/helpers/SyntheticEvents.ts +1 -1
  517. package/front_end/models/trace/helpers/Timing.test.ts +33 -45
  518. package/front_end/models/trace/helpers/Timing.ts +50 -76
  519. package/front_end/models/trace/helpers/Trace.test.ts +15 -15
  520. package/front_end/models/trace/helpers/Trace.ts +98 -48
  521. package/front_end/models/trace/helpers/TreeHelpers.test.ts +10 -81
  522. package/front_end/models/trace/helpers/TreeHelpers.ts +13 -181
  523. package/front_end/models/trace/insights/CLSCulprits.test.ts +10 -20
  524. package/front_end/models/trace/insights/CLSCulprits.ts +209 -103
  525. package/front_end/models/trace/insights/Common.test.ts +56 -0
  526. package/front_end/models/trace/insights/Common.ts +252 -1
  527. package/front_end/models/trace/insights/DOMSize.test.ts +63 -0
  528. package/front_end/models/trace/insights/DOMSize.ts +175 -0
  529. package/front_end/models/trace/insights/DocumentLatency.test.ts +10 -14
  530. package/front_end/models/trace/insights/DocumentLatency.ts +87 -22
  531. package/front_end/models/trace/insights/FontDisplay.test.ts +3 -13
  532. package/front_end/models/trace/insights/FontDisplay.ts +24 -14
  533. package/front_end/models/trace/insights/ForcedReflow.test.ts +35 -0
  534. package/front_end/models/trace/insights/ForcedReflow.ts +224 -0
  535. package/front_end/models/trace/insights/ImageDelivery.test.ts +35 -28
  536. package/front_end/models/trace/insights/ImageDelivery.ts +142 -17
  537. package/front_end/models/trace/insights/InteractionToNextPaint.test.ts +1 -11
  538. package/front_end/models/trace/insights/InteractionToNextPaint.ts +39 -6
  539. package/front_end/models/trace/insights/LCPDiscovery.test.ts +24 -15
  540. package/front_end/models/trace/insights/LCPDiscovery.ts +57 -19
  541. package/front_end/models/trace/insights/LCPPhases.test.ts +6 -16
  542. package/front_end/models/trace/insights/LCPPhases.ts +57 -29
  543. package/front_end/models/trace/insights/LongCriticalNetworkTree.ts +60 -0
  544. package/front_end/models/trace/insights/Models.ts +3 -0
  545. package/front_end/models/trace/insights/RenderBlocking.test.ts +14 -25
  546. package/front_end/models/trace/insights/RenderBlocking.ts +22 -10
  547. package/front_end/models/trace/insights/SlowCSSSelector.test.ts +5 -15
  548. package/front_end/models/trace/insights/SlowCSSSelector.ts +42 -10
  549. package/front_end/models/trace/insights/Statistics.test.ts +145 -0
  550. package/front_end/models/trace/insights/Statistics.ts +93 -0
  551. package/front_end/models/trace/insights/ThirdParties.test.ts +57 -50
  552. package/front_end/models/trace/insights/ThirdParties.ts +41 -24
  553. package/front_end/models/trace/insights/Viewport.test.ts +8 -13
  554. package/front_end/models/trace/insights/Viewport.ts +10 -9
  555. package/front_end/models/trace/insights/insights.ts +1 -0
  556. package/front_end/models/trace/insights/types.ts +39 -18
  557. package/front_end/models/trace/lantern/core/NetworkAnalyzer.test.ts +101 -73
  558. package/front_end/models/trace/lantern/core/NetworkAnalyzer.ts +7 -8
  559. package/front_end/models/trace/lantern/graph/BaseNode.test.ts +83 -76
  560. package/front_end/models/trace/lantern/graph/BaseNode.ts +2 -1
  561. package/front_end/models/trace/lantern/graph/CPUNode.ts +2 -1
  562. package/front_end/models/trace/lantern/graph/NetworkNode.ts +2 -1
  563. package/front_end/models/trace/lantern/graph/PageDependencyGraph.test.ts +110 -114
  564. package/front_end/models/trace/lantern/graph/PageDependencyGraph.ts +2 -1
  565. package/front_end/models/trace/lantern/metrics/FirstContentfulPaint.test.ts +3 -3
  566. package/front_end/models/trace/lantern/metrics/FirstContentfulPaint.ts +1 -1
  567. package/front_end/models/trace/lantern/metrics/Interactive.test.ts +6 -6
  568. package/front_end/models/trace/lantern/metrics/LargestContentfulPaint.test.ts +3 -3
  569. package/front_end/models/trace/lantern/metrics/SpeedIndex.test.ts +3 -3
  570. package/front_end/models/trace/lantern/metrics/TBTUtils.test.ts +1 -1
  571. package/front_end/models/trace/lantern/simulation/ConnectionPool.test.ts +56 -44
  572. package/front_end/models/trace/lantern/simulation/ConnectionPool.ts +1 -1
  573. package/front_end/models/trace/lantern/simulation/DNSCache.test.ts +3 -5
  574. package/front_end/models/trace/lantern/simulation/DNSCache.ts +2 -2
  575. package/front_end/models/trace/lantern/simulation/Simulator.test.ts +69 -38
  576. package/front_end/models/trace/lantern/simulation/Simulator.ts +4 -3
  577. package/front_end/models/trace/lantern/simulation/TCPConnection.test.ts +1 -1
  578. package/front_end/models/trace/lantern/simulation/TCPConnection.ts +0 -4
  579. package/front_end/models/trace/lantern/testing/MetricTestUtils.ts +2 -2
  580. package/front_end/models/trace/lantern/types/Lantern.ts +56 -56
  581. package/front_end/models/trace/root-causes/LayoutShift.test.ts +32 -35
  582. package/front_end/models/trace/root-causes/LayoutShift.ts +20 -19
  583. package/front_end/models/trace/root-causes/RootCauses.ts +8 -8
  584. package/front_end/models/trace/types/Configuration.ts +23 -6
  585. package/front_end/models/trace/types/Extensions.ts +6 -7
  586. package/front_end/models/trace/types/File.ts +33 -31
  587. package/front_end/models/trace/types/Timing.ts +12 -20
  588. package/front_end/models/trace/types/TraceEvents.ts +351 -197
  589. package/front_end/models/workspace/FileManager.ts +3 -3
  590. package/front_end/models/workspace/SearchConfig.test.ts +3 -2
  591. package/front_end/models/workspace/UISourceCode.test.ts +1 -1
  592. package/front_end/models/workspace/UISourceCode.ts +10 -13
  593. package/front_end/models/workspace/WorkspaceImpl.test.ts +18 -19
  594. package/front_end/models/workspace/WorkspaceImpl.ts +10 -10
  595. package/front_end/models/workspace_diff/WorkspaceDiff.test.ts +5 -3
  596. package/front_end/models/workspace_diff/WorkspaceDiff.ts +49 -47
  597. package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +4 -7
  598. package/front_end/panels/accessibility/AccessibilityNodeView.ts +1 -4
  599. package/front_end/panels/accessibility/AccessibilitySubPane.ts +6 -8
  600. package/front_end/panels/accessibility/accessibilityNode.css +2 -2
  601. package/front_end/panels/accessibility/axBreadcrumbs.css +4 -15
  602. package/front_end/panels/{freestyler/FreestylerPanel.test.ts → ai_assistance/AiAssistancePanel.test.ts} +218 -206
  603. package/front_end/panels/{freestyler/FreestylerPanel.ts → ai_assistance/AiAssistancePanel.ts} +388 -294
  604. package/front_end/panels/{freestyler → ai_assistance}/AiHistoryStorage.test.ts +53 -30
  605. package/front_end/panels/ai_assistance/AiHistoryStorage.ts +129 -0
  606. package/front_end/panels/ai_assistance/ChangeManager.test.ts +210 -0
  607. package/front_end/panels/{freestyler → ai_assistance}/ChangeManager.ts +34 -15
  608. package/front_end/panels/{freestyler/FreestylerEvaluateAction.test.ts → ai_assistance/EvaluateAction.test.ts} +37 -35
  609. package/front_end/panels/{freestyler/FreestylerEvaluateAction.ts → ai_assistance/EvaluateAction.ts} +10 -5
  610. package/front_end/panels/{freestyler → ai_assistance}/ExtensionScope.ts +50 -31
  611. package/front_end/panels/ai_assistance/agents/AiAgent.test.ts +405 -0
  612. package/front_end/panels/ai_assistance/agents/AiAgent.ts +683 -0
  613. package/front_end/panels/ai_assistance/agents/FileAgent.test.ts +208 -0
  614. package/front_end/panels/{freestyler/DrJonesFileAgent.ts → ai_assistance/agents/FileAgent.ts} +23 -81
  615. package/front_end/panels/ai_assistance/agents/NetworkAgent.test.ts +236 -0
  616. package/front_end/panels/ai_assistance/agents/NetworkAgent.ts +199 -0
  617. package/front_end/panels/ai_assistance/agents/PatchAgent.ts +327 -0
  618. package/front_end/panels/{freestyler/DrJonesPerformanceAgent.test.ts → ai_assistance/agents/PerformanceAgent.test.ts} +67 -91
  619. package/front_end/panels/{freestyler/DrJonesPerformanceAgent.ts → ai_assistance/agents/PerformanceAgent.ts} +39 -27
  620. package/front_end/panels/ai_assistance/agents/PerformanceInsightsAgent.ts +117 -0
  621. package/front_end/panels/{freestyler/FreestylerAgent.test.ts → ai_assistance/agents/StylingAgent.test.ts} +459 -605
  622. package/front_end/panels/{freestyler/FreestylerAgent.ts → ai_assistance/agents/StylingAgent.ts} +298 -105
  623. package/front_end/panels/{freestyler/freestylerPanel.css → ai_assistance/aiAssistancePanel.css} +2 -2
  624. package/front_end/panels/{freestyler/freestyler-meta.ts → ai_assistance/ai_assistance-meta.ts} +57 -45
  625. package/front_end/panels/ai_assistance/ai_assistance.ts +20 -0
  626. package/front_end/panels/{freestyler/components/FreestylerChatUi.test.ts → ai_assistance/components/ChatView.test.ts} +21 -24
  627. package/front_end/panels/ai_assistance/components/ChatView.ts +1630 -0
  628. package/front_end/panels/ai_assistance/components/MarkdownRendererWithCodeBlock.ts +57 -0
  629. package/front_end/panels/ai_assistance/components/UserActionRow.test.ts +98 -0
  630. package/front_end/panels/ai_assistance/components/UserActionRow.ts +437 -0
  631. package/front_end/panels/{freestyler/components/freestylerChatUi.css → ai_assistance/components/chatView.css} +131 -11
  632. package/front_end/panels/ai_assistance/components/userActionRow.css +117 -0
  633. package/front_end/panels/{freestyler/DrJonesFileAgent.test.ts → ai_assistance/data_formatters/FileFormatter.test.ts} +46 -234
  634. package/front_end/panels/ai_assistance/data_formatters/FileFormatter.ts +81 -0
  635. package/front_end/panels/ai_assistance/data_formatters/NetworkRequestFormatter.test.ts +87 -0
  636. package/front_end/panels/ai_assistance/data_formatters/NetworkRequestFormatter.ts +272 -0
  637. package/front_end/panels/ai_assistance/debug.ts +30 -0
  638. package/front_end/panels/animation/AnimationScreenshotPopover.ts +2 -1
  639. package/front_end/panels/animation/AnimationTimeline.test.ts +8 -8
  640. package/front_end/panels/animation/AnimationTimeline.ts +11 -6
  641. package/front_end/panels/animation/AnimationUI.ts +7 -7
  642. package/front_end/panels/animation/animationTimeline.css +8 -15
  643. package/front_end/panels/application/AppManifestView.test.ts +14 -12
  644. package/front_end/panels/application/AppManifestView.ts +16 -20
  645. package/front_end/panels/application/ApplicationPanelSidebar.test.ts +12 -13
  646. package/front_end/panels/application/ApplicationPanelSidebar.ts +94 -25
  647. package/front_end/panels/application/ApplicationPanelTreeElement.ts +34 -2
  648. package/front_end/panels/application/BackgroundServiceModel.ts +4 -4
  649. package/front_end/panels/application/BackgroundServiceView.test.ts +23 -2
  650. package/front_end/panels/application/BackgroundServiceView.ts +38 -34
  651. package/front_end/panels/application/CookieItemsView.ts +7 -6
  652. package/front_end/panels/application/DOMStorageItemsView.ts +38 -53
  653. package/front_end/panels/application/DOMStorageModel.test.ts +1 -1
  654. package/front_end/panels/application/DOMStorageModel.ts +11 -11
  655. package/front_end/panels/application/ExtensionStorageItemsView.test.ts +20 -29
  656. package/front_end/panels/application/ExtensionStorageItemsView.ts +41 -96
  657. package/front_end/panels/application/ExtensionStorageModel.test.ts +9 -7
  658. package/front_end/panels/application/ExtensionStorageModel.ts +4 -4
  659. package/front_end/panels/application/IndexedDBModel.ts +8 -8
  660. package/front_end/panels/application/IndexedDBViews.test.ts +6 -8
  661. package/front_end/panels/application/IndexedDBViews.ts +11 -14
  662. package/front_end/panels/application/InterestGroupStorageModel.ts +4 -4
  663. package/front_end/panels/application/InterestGroupStorageView.test.ts +9 -33
  664. package/front_end/panels/application/InterestGroupStorageView.ts +38 -33
  665. package/front_end/panels/application/InterestGroupTreeElement.test.ts +1 -1
  666. package/front_end/panels/application/KeyValueStorageItemsView.test.ts +122 -0
  667. package/front_end/panels/application/KeyValueStorageItemsView.ts +356 -0
  668. package/front_end/panels/application/OpenedWindowDetailsView.ts +4 -10
  669. package/front_end/panels/application/PreloadingTreeElement.ts +2 -2
  670. package/front_end/panels/application/ReportingApiReportsView.test.ts +1 -13
  671. package/front_end/panels/application/ReportingApiReportsView.ts +14 -19
  672. package/front_end/panels/application/ReportingApiView.test.ts +13 -0
  673. package/front_end/panels/application/ResourcesPanel.ts +11 -12
  674. package/front_end/panels/application/ServiceWorkerCacheTreeElement.ts +11 -1
  675. package/front_end/panels/application/ServiceWorkerCacheViews.ts +12 -5
  676. package/front_end/panels/application/ServiceWorkerUpdateCycleView.test.ts +9 -10
  677. package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +2 -2
  678. package/front_end/panels/application/ServiceWorkersView.ts +1 -7
  679. package/front_end/panels/application/SharedStorageEventsView.test.ts +4 -19
  680. package/front_end/panels/application/SharedStorageEventsView.ts +24 -28
  681. package/front_end/panels/application/SharedStorageItemsView.test.ts +14 -16
  682. package/front_end/panels/application/SharedStorageItemsView.ts +14 -10
  683. package/front_end/panels/application/SharedStorageModel.test.ts +1 -1
  684. package/front_end/panels/application/SharedStorageModel.ts +9 -9
  685. package/front_end/panels/application/SharedStorageTreeElement.test.ts +2 -4
  686. package/front_end/panels/application/StorageBucketsTreeElement.ts +19 -3
  687. package/front_end/panels/application/StorageItemsView.ts +4 -2
  688. package/front_end/panels/application/StorageView.test.ts +2 -4
  689. package/front_end/panels/application/StorageView.ts +9 -16
  690. package/front_end/panels/application/appManifestView.css +1 -1
  691. package/front_end/panels/application/application.ts +2 -0
  692. package/front_end/panels/application/components/BackForwardCacheView.test.ts +10 -12
  693. package/front_end/panels/application/components/BackForwardCacheView.ts +30 -29
  694. package/front_end/panels/application/components/BounceTrackingMitigationsView.test.ts +18 -21
  695. package/front_end/panels/application/components/BounceTrackingMitigationsView.ts +24 -38
  696. package/front_end/panels/application/components/EndpointsGrid.test.ts +13 -14
  697. package/front_end/panels/application/components/EndpointsGrid.ts +40 -51
  698. package/front_end/panels/application/components/FrameDetailsView.test.ts +3 -5
  699. package/front_end/panels/application/components/FrameDetailsView.ts +61 -60
  700. package/front_end/panels/application/components/InterestGroupAccessGrid.test.ts +5 -11
  701. package/front_end/panels/application/components/InterestGroupAccessGrid.ts +65 -73
  702. package/front_end/panels/application/components/OriginTrialTreeView.test.ts +3 -5
  703. package/front_end/panels/application/components/OriginTrialTreeView.ts +23 -15
  704. package/front_end/panels/application/components/PermissionsPolicySection.ts +19 -17
  705. package/front_end/panels/application/components/ProtocolHandlersView.test.ts +5 -3
  706. package/front_end/panels/application/components/ProtocolHandlersView.ts +17 -11
  707. package/front_end/panels/application/components/ReportsGrid.test.ts +11 -12
  708. package/front_end/panels/application/components/ReportsGrid.ts +67 -81
  709. package/front_end/panels/application/components/ServiceWorkerRouterView.test.ts +3 -5
  710. package/front_end/panels/application/components/ServiceWorkerRouterView.ts +8 -4
  711. package/front_end/panels/application/components/SharedStorageAccessGrid.test.ts +8 -16
  712. package/front_end/panels/application/components/SharedStorageAccessGrid.ts +96 -97
  713. package/front_end/panels/application/components/SharedStorageMetadataView.test.ts +5 -7
  714. package/front_end/panels/application/components/SharedStorageMetadataView.ts +10 -6
  715. package/front_end/panels/application/components/StackTrace.test.ts +4 -3
  716. package/front_end/panels/application/components/StackTrace.ts +16 -10
  717. package/front_end/panels/application/components/StorageMetadataView.test.ts +3 -5
  718. package/front_end/panels/application/components/StorageMetadataView.ts +20 -21
  719. package/front_end/panels/application/components/TrustTokensView.test.ts +9 -15
  720. package/front_end/panels/application/components/TrustTokensView.ts +76 -79
  721. package/front_end/panels/application/components/bounceTrackingMitigationsView.css +1 -2
  722. package/front_end/panels/application/components/interestGroupAccessGrid.css +3 -2
  723. package/front_end/panels/application/components/reportingApiGrid.css +3 -13
  724. package/front_end/panels/application/components/sharedStorageAccessGrid.css +3 -2
  725. package/front_end/panels/application/components/trustTokensView.css +3 -2
  726. package/front_end/panels/application/interestGroupStorageView.css +0 -13
  727. package/front_end/panels/application/preloading/PreloadingView.test.ts +61 -54
  728. package/front_end/panels/application/preloading/PreloadingView.ts +28 -34
  729. package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.test.ts +11 -16
  730. package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +63 -93
  731. package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.test.ts +188 -35
  732. package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +91 -48
  733. package/front_end/panels/application/preloading/components/PreloadingDisabledInfobar.ts +28 -39
  734. package/front_end/panels/application/preloading/components/PreloadingGrid.test.ts +186 -30
  735. package/front_end/panels/application/preloading/components/PreloadingGrid.ts +63 -107
  736. package/front_end/panels/application/preloading/components/PreloadingMismatchedHeadersGrid.test.ts +6 -5
  737. package/front_end/panels/application/preloading/components/PreloadingMismatchedHeadersGrid.ts +31 -63
  738. package/front_end/panels/application/preloading/components/RuleSetDetailsView.test.ts +7 -15
  739. package/front_end/panels/application/preloading/components/RuleSetDetailsView.ts +16 -13
  740. package/front_end/panels/application/preloading/components/RuleSetGrid.test.ts +11 -9
  741. package/front_end/panels/application/preloading/components/RuleSetGrid.ts +126 -219
  742. package/front_end/panels/application/preloading/components/UsedPreloadingView.test.ts +92 -70
  743. package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +22 -20
  744. package/front_end/panels/application/preloading/components/preloadingDetailsReportView.css +8 -0
  745. package/front_end/panels/application/preloading/components/preloadingDisabledInfobar.css +8 -34
  746. package/front_end/panels/application/preloading/components/preloadingGrid.css +2 -2
  747. package/front_end/panels/application/preloading/components/ruleSetGrid.css +2 -2
  748. package/front_end/panels/application/resourcesPanel.css +1 -2
  749. package/front_end/panels/application/serviceWorkersView.css +0 -5
  750. package/front_end/panels/application/sharedStorageEventsView.css +0 -13
  751. package/front_end/panels/autofill/AutofillView.test.ts +25 -24
  752. package/front_end/panels/autofill/AutofillView.ts +56 -114
  753. package/front_end/panels/autofill/autofillView.css +5 -0
  754. package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +3 -6
  755. package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +22 -14
  756. package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +1 -1
  757. package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +4 -7
  758. package/front_end/panels/browser_debugger/domBreakpointsSidebarPane.css +4 -0
  759. package/front_end/panels/changes/ChangesSidebar.ts +6 -9
  760. package/front_end/panels/changes/ChangesView.ts +45 -22
  761. package/front_end/panels/changes/changesView.css +2 -2
  762. package/front_end/panels/console/ConsoleContextSelector.ts +1 -2
  763. package/front_end/panels/console/ConsoleFilter.ts +3 -3
  764. package/front_end/panels/console/ConsolePinPane.ts +9 -11
  765. package/front_end/panels/console/ConsolePrompt.ts +5 -8
  766. package/front_end/panels/console/ConsoleSidebar.ts +5 -9
  767. package/front_end/panels/console/ConsoleView.test.ts +33 -6
  768. package/front_end/panels/console/ConsoleView.ts +63 -60
  769. package/front_end/panels/console/ConsoleViewMessage.test.ts +81 -12
  770. package/front_end/panels/console/ConsoleViewMessage.ts +45 -7
  771. package/front_end/panels/console/ConsoleViewport.ts +2 -2
  772. package/front_end/panels/console/ErrorStackParser.test.ts +42 -22
  773. package/front_end/panels/console/ErrorStackParser.ts +10 -2
  774. package/front_end/panels/console/consolePinPane.css +1 -1
  775. package/front_end/panels/console/consoleSidebar.css +4 -0
  776. package/front_end/panels/console/consoleView.css +24 -10
  777. package/front_end/panels/console_counters/WarningErrorCounter.ts +1 -0
  778. package/front_end/panels/coverage/CoverageDecorationManager.test.ts +4 -3
  779. package/front_end/panels/coverage/CoverageListView.ts +2 -5
  780. package/front_end/panels/coverage/CoverageModel.ts +8 -8
  781. package/front_end/panels/coverage/CoverageView.test.ts +4 -6
  782. package/front_end/panels/coverage/CoverageView.ts +11 -7
  783. package/front_end/panels/coverage/coverageView.css +1 -2
  784. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +8 -13
  785. package/front_end/panels/css_overview/CSSOverviewController.ts +8 -8
  786. package/front_end/panels/css_overview/CSSOverviewPanel.ts +1 -4
  787. package/front_end/panels/css_overview/CSSOverviewProcessingView.ts +1 -5
  788. package/front_end/panels/css_overview/CSSOverviewSidebarPanel.ts +9 -11
  789. package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +6 -4
  790. package/front_end/panels/css_overview/cssOverviewCompletedView.css +3 -2
  791. package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +150 -234
  792. package/front_end/panels/developer_resources/DeveloperResourcesView.test.ts +7 -6
  793. package/front_end/panels/developer_resources/DeveloperResourcesView.ts +31 -13
  794. package/front_end/panels/developer_resources/developerResourcesListView.css +4 -8
  795. package/front_end/panels/developer_resources/developerResourcesView.css +0 -1
  796. package/front_end/panels/elements/AccessibilityTreeUtils.ts +3 -3
  797. package/front_end/panels/elements/AccessibilityTreeView.test.ts +3 -1
  798. package/front_end/panels/elements/AccessibilityTreeView.ts +5 -1
  799. package/front_end/panels/elements/CSSRuleValidator.ts +4 -10
  800. package/front_end/panels/elements/ClassesPaneWidget.ts +4 -4
  801. package/front_end/panels/elements/ColorSwatchPopoverIcon.test.ts +63 -0
  802. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +44 -18
  803. package/front_end/panels/elements/ComputedStyleModel.test.ts +157 -0
  804. package/front_end/panels/elements/ComputedStyleModel.ts +81 -19
  805. package/front_end/panels/elements/ComputedStyleWidget.test.ts +133 -52
  806. package/front_end/panels/elements/ComputedStyleWidget.ts +34 -26
  807. package/front_end/panels/elements/DOMLinkifier.ts +18 -17
  808. package/front_end/panels/elements/ElementStatePaneWidget.test.ts +9 -20
  809. package/front_end/panels/elements/ElementStatePaneWidget.ts +12 -3
  810. package/front_end/panels/elements/ElementsPanel.ts +24 -27
  811. package/front_end/panels/elements/ElementsSidebarPane.ts +11 -7
  812. package/front_end/panels/elements/ElementsTreeElement.ts +20 -22
  813. package/front_end/panels/elements/ElementsTreeOutline.test.ts +93 -0
  814. package/front_end/panels/elements/ElementsTreeOutline.ts +19 -15
  815. package/front_end/panels/elements/EventListenersWidget.ts +1 -1
  816. package/front_end/panels/elements/LayersWidget.ts +3 -3
  817. package/front_end/panels/elements/MetricsSidebarPane.ts +4 -6
  818. package/front_end/panels/elements/NodeStackTraceWidget.ts +1 -1
  819. package/front_end/panels/elements/PlatformFontsWidget.ts +5 -9
  820. package/front_end/panels/elements/PropertiesWidget.ts +4 -6
  821. package/front_end/panels/elements/PropertyRenderer.test.ts +5 -5
  822. package/front_end/panels/elements/PropertyRenderer.ts +31 -16
  823. package/front_end/panels/elements/StylePropertiesSection.test.ts +23 -52
  824. package/front_end/panels/elements/StylePropertiesSection.ts +19 -14
  825. package/front_end/panels/elements/StylePropertyHighlighter.test.ts +5 -1
  826. package/front_end/panels/elements/StylePropertyTreeElement.test.ts +191 -190
  827. package/front_end/panels/elements/StylePropertyTreeElement.ts +331 -178
  828. package/front_end/panels/elements/StylesSidebarPane.test.ts +431 -33
  829. package/front_end/panels/elements/StylesSidebarPane.ts +182 -51
  830. package/front_end/panels/elements/TopLayerContainer.ts +1 -2
  831. package/front_end/panels/elements/WebCustomData.test.ts +1 -1
  832. package/front_end/panels/elements/components/AccessibilityTreeNode.test.ts +3 -5
  833. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +12 -12
  834. package/front_end/panels/elements/components/AnchorFunctionLinkSwatch.ts +17 -13
  835. package/front_end/panels/elements/components/CSSHintDetailsView.ts +6 -4
  836. package/front_end/panels/elements/components/CSSPropertyDocsView.ts +8 -6
  837. package/front_end/panels/elements/components/CSSPropertyIconResolver.ts +31 -9
  838. package/front_end/panels/elements/components/CSSQuery.ts +15 -7
  839. package/front_end/panels/elements/components/CSSVariableValueView.ts +9 -5
  840. package/front_end/panels/elements/components/ComputedStyleProperty.ts +5 -3
  841. package/front_end/panels/elements/components/ComputedStyleTrace.ts +6 -4
  842. package/front_end/panels/elements/components/ElementsBreadcrumbs.test.ts +13 -15
  843. package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +18 -15
  844. package/front_end/panels/elements/components/ElementsTreeExpandButton.test.ts +3 -5
  845. package/front_end/panels/elements/components/ElementsTreeExpandButton.ts +6 -4
  846. package/front_end/panels/elements/components/LayoutPane.test.ts +14 -10
  847. package/front_end/panels/elements/components/LayoutPane.ts +18 -12
  848. package/front_end/panels/elements/components/QueryContainer.test.ts +1 -1
  849. package/front_end/panels/elements/components/QueryContainer.ts +17 -13
  850. package/front_end/panels/elements/components/StylePropertyEditor.ts +11 -7
  851. package/front_end/panels/elements/components/components.ts +0 -2
  852. package/front_end/panels/elements/components/layoutPane.css +1 -1
  853. package/front_end/panels/elements/elements.ts +0 -2
  854. package/front_end/panels/elements/elementsPanel.css +4 -4
  855. package/front_end/panels/elements/elementsTreeOutline.css +9 -10
  856. package/front_end/panels/elements/metricsSidebarPane.css +1 -1
  857. package/front_end/panels/elements/stylePropertiesTreeOutline.css +8 -0
  858. package/front_end/panels/emulation/DeviceModeToolbar.ts +28 -43
  859. package/front_end/panels/emulation/DeviceModeView.ts +19 -23
  860. package/front_end/panels/emulation/DeviceModeWrapper.ts +27 -2
  861. package/front_end/panels/emulation/InspectedPagePlaceholder.ts +5 -5
  862. package/front_end/panels/emulation/MediaQueryInspector.test.ts +2 -2
  863. package/front_end/panels/emulation/MediaQueryInspector.ts +1 -1
  864. package/front_end/panels/emulation/components/DeviceSizeInputElement.ts +3 -6
  865. package/front_end/panels/emulation/deviceModeView.css +26 -29
  866. package/front_end/panels/emulation/emulation-meta.ts +0 -1
  867. package/front_end/panels/emulation/mediaQueryInspector.css +3 -6
  868. package/front_end/panels/event_listeners/EventListenersUtils.ts +4 -3
  869. package/front_end/panels/event_listeners/EventListenersView.ts +3 -6
  870. package/front_end/panels/explain/PromptBuilder.test.ts +48 -25
  871. package/front_end/panels/explain/PromptBuilder.ts +10 -11
  872. package/front_end/panels/explain/components/ConsoleInsight.test.ts +263 -1
  873. package/front_end/panels/explain/components/ConsoleInsight.ts +259 -31
  874. package/front_end/panels/explain/components/consoleInsight.css +68 -9
  875. package/front_end/panels/explain/components/consoleInsightSourcesList.css +2 -0
  876. package/front_end/panels/explain/explain-meta.ts +12 -8
  877. package/front_end/panels/issues/AffectedBlockedByResponseView.ts +3 -3
  878. package/front_end/panels/issues/AffectedDescendantsWithinSelectElementView.ts +64 -0
  879. package/front_end/panels/issues/AffectedDirectivesView.ts +2 -2
  880. package/front_end/panels/issues/AffectedHeavyAdView.ts +1 -1
  881. package/front_end/panels/issues/AffectedSharedArrayBufferIssueDetailsView.ts +1 -1
  882. package/front_end/panels/issues/AffectedTrackingSitesView.ts +1 -0
  883. package/front_end/panels/issues/IssueAggregator.test.ts +23 -20
  884. package/front_end/panels/issues/IssueAggregator.ts +25 -10
  885. package/front_end/panels/issues/IssueView.ts +2 -0
  886. package/front_end/panels/issues/IssuesPane.ts +9 -8
  887. package/front_end/panels/issues/components/ElementsPanelLink.ts +6 -4
  888. package/front_end/panels/issues/components/HideIssuesMenu.ts +6 -4
  889. package/front_end/panels/issues/issuesPane.css +1 -1
  890. package/front_end/panels/issues/issuesTree.css +9 -7
  891. package/front_end/panels/layer_viewer/LayerDetailsView.ts +16 -10
  892. package/front_end/panels/layer_viewer/LayerTreeOutline.ts +3 -3
  893. package/front_end/panels/layer_viewer/LayerViewHost.ts +0 -1
  894. package/front_end/panels/layer_viewer/Layers3DView.ts +11 -10
  895. package/front_end/panels/layer_viewer/PaintProfilerView.ts +6 -9
  896. package/front_end/panels/layer_viewer/TransformController.ts +8 -5
  897. package/front_end/panels/layer_viewer/layerDetailsView.css +5 -2
  898. package/front_end/panels/layer_viewer/layers3DView.css +1 -1
  899. package/front_end/panels/layers/LayerTreeModel.ts +5 -5
  900. package/front_end/panels/layers/LayersPanel.ts +1 -2
  901. package/front_end/panels/lighthouse/LighthouseController.ts +9 -9
  902. package/front_end/panels/lighthouse/LighthousePanel.ts +10 -9
  903. package/front_end/panels/lighthouse/LighthouseProtocolService.ts +1 -1
  904. package/front_end/panels/lighthouse/LighthouseReportRenderer.test.ts +1 -1
  905. package/front_end/panels/lighthouse/LighthouseReportSelector.ts +3 -7
  906. package/front_end/panels/lighthouse/LighthouseStartView.ts +5 -2
  907. package/front_end/panels/lighthouse/LighthouseStatusView.ts +2 -2
  908. package/front_end/panels/lighthouse/LighthouseTimespanView.ts +2 -2
  909. package/front_end/panels/lighthouse/lighthousePanel.css +6 -6
  910. package/front_end/panels/lighthouse/lighthouseStartView.css +1 -0
  911. package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorController.test.ts +4 -4
  912. package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorController.ts +14 -14
  913. package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.test.ts +3 -3
  914. package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +3 -3
  915. package/front_end/panels/linear_memory_inspector/components/LinearMemoryHighlightChipList.ts +9 -5
  916. package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.test.ts +3 -3
  917. package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +26 -26
  918. package/front_end/panels/linear_memory_inspector/components/LinearMemoryNavigator.ts +10 -6
  919. package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +9 -5
  920. package/front_end/panels/linear_memory_inspector/components/LinearMemoryViewer.test.ts +2 -2
  921. package/front_end/panels/linear_memory_inspector/components/LinearMemoryViewer.ts +15 -11
  922. package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplay.test.ts +3 -3
  923. package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplay.ts +17 -10
  924. package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplayUtils.ts +4 -3
  925. package/front_end/panels/linear_memory_inspector/components/ValueInterpreterSettings.ts +8 -4
  926. package/front_end/panels/linear_memory_inspector/components/valueInterpreterDisplay.css +1 -0
  927. package/front_end/panels/linear_memory_inspector/components/valueInterpreterSettings.css +1 -2
  928. package/front_end/panels/media/EventDisplayTable.ts +2 -5
  929. package/front_end/panels/media/EventTimelineView.ts +3 -3
  930. package/front_end/panels/media/MainView.test.ts +2 -2
  931. package/front_end/panels/media/MediaModel.ts +7 -7
  932. package/front_end/panels/media/PlayerListView.ts +1 -5
  933. package/front_end/panels/media/PlayerMessagesView.ts +6 -9
  934. package/front_end/panels/media/PlayerPropertiesView.ts +5 -8
  935. package/front_end/panels/mobile_throttling/CalibrationController.ts +368 -0
  936. package/front_end/panels/mobile_throttling/MobileThrottlingSelector.ts +5 -4
  937. package/front_end/panels/mobile_throttling/ThrottlingManager.test.ts +8 -10
  938. package/front_end/panels/mobile_throttling/ThrottlingManager.ts +169 -91
  939. package/front_end/panels/mobile_throttling/ThrottlingPresets.ts +77 -15
  940. package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +336 -12
  941. package/front_end/panels/mobile_throttling/mobile_throttling-meta.ts +1 -0
  942. package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +45 -8
  943. package/front_end/panels/network/BinaryResourceView.ts +7 -9
  944. package/front_end/panels/network/BlockedURLsPane.test.ts +4 -2
  945. package/front_end/panels/network/BlockedURLsPane.ts +10 -8
  946. package/front_end/panels/network/EventSourceMessagesView.ts +6 -5
  947. package/front_end/panels/network/NetworkConfigView.test.ts +15 -0
  948. package/front_end/panels/network/NetworkConfigView.ts +13 -15
  949. package/front_end/panels/network/NetworkDataGridNode.test.ts +40 -60
  950. package/front_end/panels/network/NetworkDataGridNode.ts +4 -4
  951. package/front_end/panels/network/NetworkItemView.test.ts +26 -28
  952. package/front_end/panels/network/NetworkItemView.ts +9 -11
  953. package/front_end/panels/network/NetworkLogView.test.ts +70 -40
  954. package/front_end/panels/network/NetworkLogView.ts +20 -19
  955. package/front_end/panels/network/NetworkLogViewColumns.ts +5 -8
  956. package/front_end/panels/network/NetworkManageCustomHeadersView.ts +3 -3
  957. package/front_end/panels/network/NetworkOverview.test.ts +2 -4
  958. package/front_end/panels/network/NetworkOverview.ts +14 -16
  959. package/front_end/panels/network/NetworkPanel.test.ts +6 -9
  960. package/front_end/panels/network/NetworkPanel.ts +45 -49
  961. package/front_end/panels/network/NetworkSearchScope.test.ts +5 -5
  962. package/front_end/panels/network/NetworkTimeCalculator.ts +3 -3
  963. package/front_end/panels/network/NetworkWaterfallColumn.ts +8 -8
  964. package/front_end/panels/network/RequestCookiesView.test.ts +5 -4
  965. package/front_end/panels/network/RequestCookiesView.ts +4 -6
  966. package/front_end/panels/network/RequestHTMLView.ts +2 -1
  967. package/front_end/panels/network/RequestInitiatorView.ts +5 -5
  968. package/front_end/panels/network/RequestPayloadView.ts +22 -14
  969. package/front_end/panels/network/RequestPreviewView.test.ts +8 -9
  970. package/front_end/panels/network/RequestPreviewView.ts +5 -3
  971. package/front_end/panels/network/RequestResponseView.test.ts +8 -8
  972. package/front_end/panels/network/RequestResponseView.ts +8 -3
  973. package/front_end/panels/network/RequestTimingView.test.ts +6 -4
  974. package/front_end/panels/network/RequestTimingView.ts +10 -11
  975. package/front_end/panels/network/ResourceWebSocketFrameView.ts +11 -5
  976. package/front_end/panels/network/SignedExchangeInfoView.ts +6 -10
  977. package/front_end/panels/network/binaryResourceView.css +1 -1
  978. package/front_end/panels/network/blockedURLsPane.css +1 -2
  979. package/front_end/panels/network/components/EditableSpan.ts +5 -3
  980. package/front_end/panels/network/components/HeaderSectionRow.test.ts +25 -27
  981. package/front_end/panels/network/components/HeaderSectionRow.ts +25 -24
  982. package/front_end/panels/network/components/RequestHeaderSection.test.ts +3 -5
  983. package/front_end/panels/network/components/RequestHeaderSection.ts +9 -5
  984. package/front_end/panels/network/components/RequestHeadersView.test.ts +42 -49
  985. package/front_end/panels/network/components/RequestHeadersView.ts +30 -28
  986. package/front_end/panels/network/components/RequestTrustTokensView.test.ts +1 -1
  987. package/front_end/panels/network/components/RequestTrustTokensView.ts +29 -19
  988. package/front_end/panels/network/components/ResponseHeaderSection.test.ts +57 -66
  989. package/front_end/panels/network/components/ResponseHeaderSection.ts +8 -8
  990. package/front_end/panels/network/components/WebBundleInfoView.css +8 -0
  991. package/front_end/panels/network/components/WebBundleInfoView.ts +32 -49
  992. package/front_end/panels/network/network-meta.ts +5 -2
  993. package/front_end/panels/network/networkConfigView.css +3 -11
  994. package/front_end/panels/network/networkLogView.css +3 -6
  995. package/front_end/panels/network/networkManageCustomHeadersView.css +7 -11
  996. package/front_end/panels/network/networkPanel.css +9 -12
  997. package/front_end/panels/network/networkTimingTable.css +1 -1
  998. package/front_end/panels/network/requestInitiatorView.css +1 -1
  999. package/front_end/panels/network/webSocketFrameView.css +2 -2
  1000. package/front_end/panels/performance_monitor/PerformanceMonitor.ts +8 -8
  1001. package/front_end/panels/performance_monitor/performanceMonitor.css +1 -2
  1002. package/front_end/panels/profiler/HeapDetachedElementsView.ts +9 -5
  1003. package/front_end/panels/profiler/HeapProfileView.ts +7 -7
  1004. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +5 -5
  1005. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +17 -17
  1006. package/front_end/panels/profiler/HeapSnapshotProxy.ts +3 -3
  1007. package/front_end/panels/profiler/HeapSnapshotView.ts +37 -18
  1008. package/front_end/panels/profiler/HeapTimelineOverview.ts +5 -6
  1009. package/front_end/panels/profiler/IsolateSelector.ts +1 -1
  1010. package/front_end/panels/profiler/LiveHeapProfileView.ts +5 -3
  1011. package/front_end/panels/profiler/ProfileDataGrid.ts +1 -2
  1012. package/front_end/panels/profiler/ProfileFlameChartDataProvider.ts +6 -7
  1013. package/front_end/panels/profiler/ProfileHeader.ts +12 -12
  1014. package/front_end/panels/profiler/ProfileLauncherView.ts +11 -17
  1015. package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +8 -2
  1016. package/front_end/panels/profiler/ProfileView.ts +1 -1
  1017. package/front_end/panels/profiler/ProfilesPanel.ts +16 -12
  1018. package/front_end/panels/profiler/TopDownProfileDataGrid.ts +2 -2
  1019. package/front_end/panels/profiler/heapProfiler.css +8 -4
  1020. package/front_end/panels/profiler/liveHeapProfile.css +1 -1
  1021. package/front_end/panels/profiler/profileLauncherView.css +27 -33
  1022. package/front_end/panels/profiler/profilesPanel.css +1 -4
  1023. package/front_end/panels/profiler/profilesSidebarTree.css +10 -0
  1024. package/front_end/panels/protocol_monitor/{components/JSONEditor.css → JSONEditor.css} +6 -1
  1025. package/front_end/panels/protocol_monitor/{components/JSONEditor.test.ts → JSONEditor.test.ts} +124 -127
  1026. package/front_end/panels/protocol_monitor/{components/JSONEditor.ts → JSONEditor.ts} +159 -82
  1027. package/front_end/panels/protocol_monitor/ProtocolMonitor.test.ts +12 -12
  1028. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +293 -360
  1029. package/front_end/panels/protocol_monitor/protocol_monitor.ts +2 -2
  1030. package/front_end/panels/recorder/RecorderController.test.ts +10 -14
  1031. package/front_end/panels/recorder/RecorderController.ts +53 -23
  1032. package/front_end/panels/recorder/components/ControlButton.ts +7 -3
  1033. package/front_end/panels/recorder/components/CreateRecordingView.test.ts +9 -9
  1034. package/front_end/panels/recorder/components/CreateRecordingView.ts +8 -6
  1035. package/front_end/panels/recorder/components/ExtensionView.ts +8 -4
  1036. package/front_end/panels/recorder/components/RecordingListView.test.ts +7 -9
  1037. package/front_end/panels/recorder/components/RecordingListView.ts +8 -4
  1038. package/front_end/panels/recorder/components/RecordingView.test.ts +7 -9
  1039. package/front_end/panels/recorder/components/RecordingView.ts +22 -20
  1040. package/front_end/panels/recorder/components/ReplaySection.test.ts +3 -5
  1041. package/front_end/panels/recorder/components/ReplaySection.ts +3 -3
  1042. package/front_end/panels/recorder/components/SelectButton.test.ts +3 -5
  1043. package/front_end/panels/recorder/components/SelectButton.ts +14 -10
  1044. package/front_end/panels/recorder/components/StepEditor.test.ts +38 -38
  1045. package/front_end/panels/recorder/components/StepEditor.ts +18 -14
  1046. package/front_end/panels/recorder/components/StepView.test.ts +10 -10
  1047. package/front_end/panels/recorder/components/StepView.ts +23 -20
  1048. package/front_end/panels/recorder/components/TimelineSection.ts +9 -5
  1049. package/front_end/panels/recorder/components/components.ts +0 -2
  1050. package/front_end/panels/recorder/components/controlButton.css +3 -4
  1051. package/front_end/panels/recorder/components/stepView.css +4 -4
  1052. package/front_end/panels/recorder/controllers/SelectorPicker.ts +3 -4
  1053. package/front_end/panels/recorder/converters/Converter.ts +1 -1
  1054. package/front_end/panels/recorder/converters/LighthouseConverter.test.ts +1 -1
  1055. package/front_end/panels/recorder/converters/PuppeteerConverter.test.ts +2 -2
  1056. package/front_end/panels/recorder/converters/PuppeteerReplayConverter.test.ts +1 -1
  1057. package/front_end/panels/recorder/extensions/ExtensionManager.ts +3 -3
  1058. package/front_end/panels/recorder/injected/injected.ts +2 -2
  1059. package/front_end/panels/recorder/injected/selectors/CSSSelector.test.ts +0 -2
  1060. package/front_end/panels/recorder/models/RecordingPlayer.test.ts +7 -7
  1061. package/front_end/panels/recorder/models/RecordingPlayer.ts +10 -13
  1062. package/front_end/panels/recorder/models/RecordingSession.ts +31 -34
  1063. package/front_end/panels/recorder/models/Schema.ts +1 -1
  1064. package/front_end/panels/recorder/models/SchemaUtils.ts +10 -4
  1065. package/front_end/panels/recorder/models/ScreenshotUtils.test.ts +4 -4
  1066. package/front_end/panels/recorder/models/Section.test.ts +5 -5
  1067. package/front_end/panels/recorder/models/recording-storage.test.ts +1 -1
  1068. package/front_end/panels/recorder/models/screenshot-storage.test.ts +1 -1
  1069. package/front_end/panels/recorder/recorderController.css +2 -1
  1070. package/front_end/panels/recorder/util/util.ts +1 -1
  1071. package/front_end/panels/screencast/ScreencastView.ts +22 -40
  1072. package/front_end/panels/screencast/screencastView.css +1 -0
  1073. package/front_end/panels/search/SearchResultsPane.ts +1 -4
  1074. package/front_end/panels/search/SearchView.ts +10 -9
  1075. package/front_end/panels/security/CookieControlsTreeElement.ts +7 -4
  1076. package/front_end/panels/security/CookieControlsView.test.ts +40 -3
  1077. package/front_end/panels/security/CookieControlsView.ts +204 -66
  1078. package/front_end/panels/security/CookieReportTreeElement.ts +7 -4
  1079. package/front_end/panels/security/CookieReportView.test.ts +23 -23
  1080. package/front_end/panels/security/CookieReportView.ts +277 -44
  1081. package/front_end/panels/security/OriginTreeElement.ts +2 -3
  1082. package/front_end/panels/security/SecurityModel.ts +3 -3
  1083. package/front_end/panels/security/SecurityPanel.test.ts +43 -3
  1084. package/front_end/panels/security/SecurityPanel.ts +49 -52
  1085. package/front_end/panels/security/SecurityPanelSidebar.ts +82 -23
  1086. package/front_end/panels/security/SecurityPanelSidebarTreeElement.ts +21 -2
  1087. package/front_end/panels/security/cookieControlsView.css +29 -4
  1088. package/front_end/panels/security/cookieReportView.css +4 -3
  1089. package/front_end/panels/security/mainView.css +1 -2
  1090. package/front_end/panels/security/originView.css +1 -2
  1091. package/front_end/panels/security/security-meta.ts +20 -7
  1092. package/front_end/panels/sensors/LocationsSettingsTab.ts +18 -19
  1093. package/front_end/panels/sensors/SensorsView.ts +11 -15
  1094. package/front_end/panels/sensors/locationsSettingsTab.css +1 -1
  1095. package/front_end/panels/sensors/sensors.css +2 -5
  1096. package/front_end/panels/settings/AISettingsTab.test.ts +52 -7
  1097. package/front_end/panels/settings/AISettingsTab.ts +115 -59
  1098. package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +21 -32
  1099. package/front_end/panels/settings/KeybindsSettingsTab.ts +18 -20
  1100. package/front_end/panels/settings/SettingsScreen.ts +12 -12
  1101. package/front_end/panels/settings/aiSettingsTab.css +14 -4
  1102. package/front_end/panels/settings/components/SyncSection.test.ts +2 -2
  1103. package/front_end/panels/settings/components/SyncSection.ts +9 -6
  1104. package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +13 -18
  1105. package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +14 -10
  1106. package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +1 -2
  1107. package/front_end/panels/settings/emulation/devicesSettingsTab.css +3 -1
  1108. package/front_end/panels/settings/emulation/utils/StructuredHeaders.test.ts +2 -2
  1109. package/front_end/panels/settings/emulation/utils/UserAgentMetadata.ts +5 -5
  1110. package/front_end/panels/settings/keybindsSettingsTab.css +5 -9
  1111. package/front_end/panels/settings/settingsScreen.css +31 -13
  1112. package/front_end/panels/snippets/ScriptSnippetFileSystem.test.ts +4 -2
  1113. package/front_end/panels/snippets/SnippetsQuickOpen.ts +9 -3
  1114. package/front_end/panels/sources/AddSourceMapURLDialog.ts +1 -4
  1115. package/front_end/panels/sources/BreakpointEditDialog.test.ts +2 -3
  1116. package/front_end/panels/sources/BreakpointEditDialog.ts +6 -11
  1117. package/front_end/panels/sources/CSSPlugin.test.ts +4 -3
  1118. package/front_end/panels/sources/CallStackSidebarPane.ts +4 -7
  1119. package/front_end/panels/sources/CoveragePlugin.test.ts +4 -2
  1120. package/front_end/panels/sources/CoveragePlugin.ts +4 -0
  1121. package/front_end/panels/sources/DebuggerPausedMessage.ts +3 -3
  1122. package/front_end/panels/sources/DebuggerPlugin.test.ts +9 -7
  1123. package/front_end/panels/sources/DebuggerPlugin.ts +20 -16
  1124. package/front_end/panels/sources/FilePathScoreFunction.ts +39 -19
  1125. package/front_end/panels/sources/FilteredUISourceCodeListProvider.test.ts +3 -3
  1126. package/front_end/panels/sources/FilteredUISourceCodeListProvider.ts +2 -1
  1127. package/front_end/panels/sources/GoToLineQuickOpen.ts +16 -22
  1128. package/front_end/panels/sources/NavigatorView.test.ts +12 -10
  1129. package/front_end/panels/sources/NavigatorView.ts +34 -24
  1130. package/front_end/panels/sources/OpenFileQuickOpen.ts +2 -2
  1131. package/front_end/panels/sources/OutlineQuickOpen.ts +10 -7
  1132. package/front_end/panels/sources/Plugin.ts +1 -1
  1133. package/front_end/panels/sources/ProfilePlugin.ts +5 -1
  1134. package/front_end/panels/sources/ScopeChainSidebarPane.ts +2 -5
  1135. package/front_end/panels/sources/SnippetsPlugin.ts +2 -2
  1136. package/front_end/panels/sources/SourcesNavigator.test.ts +41 -39
  1137. package/front_end/panels/sources/SourcesNavigator.ts +45 -49
  1138. package/front_end/panels/sources/SourcesPanel.ts +13 -10
  1139. package/front_end/panels/sources/SourcesView.test.ts +16 -15
  1140. package/front_end/panels/sources/SourcesView.ts +39 -28
  1141. package/front_end/panels/sources/TabbedEditorContainer.test.ts +17 -24
  1142. package/front_end/panels/sources/TabbedEditorContainer.ts +7 -7
  1143. package/front_end/panels/sources/ThreadsSidebarPane.ts +1 -4
  1144. package/front_end/panels/sources/UISourceCodeFrame.ts +9 -8
  1145. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +7 -11
  1146. package/front_end/panels/sources/components/BreakpointsView.test.ts +47 -48
  1147. package/front_end/panels/sources/components/BreakpointsView.ts +22 -20
  1148. package/front_end/panels/sources/components/BreakpointsViewUtils.test.ts +44 -42
  1149. package/front_end/panels/sources/components/HeadersView.test.ts +24 -24
  1150. package/front_end/panels/sources/components/HeadersView.ts +18 -18
  1151. package/front_end/panels/sources/components/breakpointsView.css +7 -7
  1152. package/front_end/panels/sources/dialog.css +1 -1
  1153. package/front_end/panels/sources/navigatorTree.css +4 -4
  1154. package/front_end/panels/sources/sources-meta.ts +29 -6
  1155. package/front_end/panels/sources/sourcesPanel.css +5 -0
  1156. package/front_end/panels/sources/sourcesView.css +0 -4
  1157. package/front_end/panels/timeline/AnimationsTrackAppender.ts +0 -5
  1158. package/front_end/panels/timeline/AnnotationHelpers.test.ts +4 -4
  1159. package/front_end/panels/timeline/AnnotationHelpers.ts +8 -9
  1160. package/front_end/panels/timeline/AppenderUtils.ts +18 -13
  1161. package/front_end/panels/timeline/BenchmarkEvents.ts +1 -1
  1162. package/front_end/panels/timeline/Breadcrumbs.test.ts +29 -29
  1163. package/front_end/panels/timeline/CompatibilityTracksAppender.ts +46 -60
  1164. package/front_end/panels/timeline/CountersGraph.ts +8 -6
  1165. package/front_end/panels/timeline/EntriesFilter.test.ts +20 -71
  1166. package/front_end/panels/timeline/EntriesFilter.ts +18 -33
  1167. package/front_end/panels/timeline/EventsTimelineTreeView.ts +6 -11
  1168. package/front_end/panels/timeline/ExtensionTrackAppender.ts +9 -4
  1169. package/front_end/panels/timeline/Initiators.test.ts +149 -168
  1170. package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +25 -45
  1171. package/front_end/panels/timeline/ModificationsManager.test.ts +23 -23
  1172. package/front_end/panels/timeline/ModificationsManager.ts +8 -9
  1173. package/front_end/panels/timeline/NetworkTrackAppender.ts +8 -10
  1174. package/front_end/panels/timeline/README.md +30 -0
  1175. package/front_end/panels/timeline/ServerTimingsTrackAppender.ts +0 -4
  1176. package/front_end/panels/timeline/ThirdPartyTreeView.test.ts +68 -0
  1177. package/front_end/panels/timeline/ThirdPartyTreeView.ts +300 -0
  1178. package/front_end/panels/timeline/ThreadAppender.ts +6 -13
  1179. package/front_end/panels/timeline/TimelineController.ts +53 -8
  1180. package/front_end/panels/timeline/TimelineDetailsView.test.ts +37 -19
  1181. package/front_end/panels/timeline/TimelineDetailsView.ts +94 -37
  1182. package/front_end/panels/timeline/TimelineEventOverview.ts +28 -28
  1183. package/front_end/panels/timeline/TimelineFilters.test.ts +5 -7
  1184. package/front_end/panels/timeline/TimelineFilters.ts +2 -2
  1185. package/front_end/panels/timeline/TimelineFlameChartDataProvider.test.ts +8 -11
  1186. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +135 -124
  1187. package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.test.ts +10 -11
  1188. package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +49 -47
  1189. package/front_end/panels/timeline/TimelineFlameChartView.test.ts +255 -222
  1190. package/front_end/panels/timeline/TimelineFlameChartView.ts +409 -108
  1191. package/front_end/panels/timeline/TimelineHistoryManager.test.ts +10 -46
  1192. package/front_end/panels/timeline/TimelineHistoryManager.ts +29 -61
  1193. package/front_end/panels/timeline/TimelineLayersView.ts +1 -1
  1194. package/front_end/panels/timeline/TimelineLoader.test.ts +11 -11
  1195. package/front_end/panels/timeline/TimelineLoader.ts +17 -20
  1196. package/front_end/panels/timeline/TimelineMiniMap.test.ts +2 -3
  1197. package/front_end/panels/timeline/TimelineMiniMap.ts +11 -21
  1198. package/front_end/panels/timeline/TimelinePaintProfilerView.ts +3 -6
  1199. package/front_end/panels/timeline/TimelinePanel.test.ts +140 -0
  1200. package/front_end/panels/timeline/TimelinePanel.ts +349 -218
  1201. package/front_end/panels/timeline/TimelineSelection.test.ts +1 -1
  1202. package/front_end/panels/timeline/TimelineSelection.ts +9 -9
  1203. package/front_end/panels/timeline/TimelineSelectorStatsView.ts +148 -186
  1204. package/front_end/panels/timeline/TimelineTreeView.test.ts +24 -22
  1205. package/front_end/panels/timeline/TimelineTreeView.ts +155 -53
  1206. package/front_end/panels/timeline/TimelineUIUtils.test.ts +254 -127
  1207. package/front_end/panels/timeline/TimelineUIUtils.ts +171 -265
  1208. package/front_end/panels/timeline/TimingsTrackAppender.ts +28 -86
  1209. package/front_end/panels/timeline/components/Breadcrumbs.ts +3 -3
  1210. package/front_end/panels/timeline/components/BreadcrumbsUI.test.ts +14 -16
  1211. package/front_end/panels/timeline/components/BreadcrumbsUI.ts +10 -6
  1212. package/front_end/panels/timeline/components/CPUThrottlingSelector.test.ts +19 -13
  1213. package/front_end/panels/timeline/components/CPUThrottlingSelector.ts +135 -32
  1214. package/front_end/panels/timeline/components/DetailsView.ts +2 -2
  1215. package/front_end/panels/timeline/components/FieldSettingsDialog.test.ts +54 -311
  1216. package/front_end/panels/timeline/components/FieldSettingsDialog.ts +26 -264
  1217. package/front_end/panels/timeline/components/IgnoreListSetting.test.ts +423 -0
  1218. package/front_end/panels/timeline/components/IgnoreListSetting.ts +384 -0
  1219. package/front_end/panels/timeline/components/InteractionBreakdown.test.ts +2 -3
  1220. package/front_end/panels/timeline/components/InteractionBreakdown.ts +8 -4
  1221. package/front_end/panels/timeline/components/LayoutShiftDetails.ts +58 -38
  1222. package/front_end/panels/timeline/components/LiveMetricsView.test.ts +85 -118
  1223. package/front_end/panels/timeline/components/LiveMetricsView.ts +135 -160
  1224. package/front_end/panels/timeline/components/MetricCard.test.ts +58 -37
  1225. package/front_end/panels/timeline/components/MetricCard.ts +30 -46
  1226. package/front_end/panels/timeline/components/MetricCompareStrings.ts +9 -9
  1227. package/front_end/panels/timeline/components/NetworkRequestDetails.test.ts +4 -1
  1228. package/front_end/panels/timeline/components/NetworkRequestDetails.ts +52 -35
  1229. package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +18 -15
  1230. package/front_end/panels/timeline/components/NetworkThrottlingSelector.test.ts +14 -15
  1231. package/front_end/panels/timeline/components/NetworkThrottlingSelector.ts +43 -9
  1232. package/front_end/panels/timeline/components/OriginMap.test.ts +359 -0
  1233. package/front_end/panels/timeline/components/OriginMap.ts +278 -0
  1234. package/front_end/panels/timeline/components/RelatedInsightChips.test.ts +37 -6
  1235. package/front_end/panels/timeline/components/RelatedInsightChips.ts +42 -14
  1236. package/front_end/panels/timeline/components/Sidebar.test.ts +87 -15
  1237. package/front_end/panels/timeline/components/Sidebar.ts +25 -35
  1238. package/front_end/panels/timeline/components/SidebarAnnotationsTab.test.ts +23 -26
  1239. package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +23 -15
  1240. package/front_end/panels/timeline/components/SidebarInsightsTab.test.ts +2 -4
  1241. package/front_end/panels/timeline/components/SidebarInsightsTab.ts +30 -14
  1242. package/front_end/panels/timeline/components/SidebarSingleInsightSet.test.ts +93 -19
  1243. package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +271 -96
  1244. package/front_end/panels/timeline/components/TimelineSummary.test.ts +4 -2
  1245. package/front_end/panels/timeline/components/TimelineSummary.ts +40 -36
  1246. package/front_end/panels/timeline/components/Utils.test.ts +18 -20
  1247. package/front_end/panels/timeline/components/Utils.ts +52 -5
  1248. package/front_end/panels/timeline/components/breadcrumbsUI.css +1 -2
  1249. package/front_end/panels/timeline/components/components.ts +4 -0
  1250. package/front_end/panels/timeline/components/cpuThrottlingSelector.css +5 -2
  1251. package/front_end/panels/timeline/components/fieldSettingsDialog.css +13 -13
  1252. package/front_end/panels/timeline/components/ignoreListSetting.css +67 -0
  1253. package/front_end/panels/timeline/components/insights/BaseInsightComponent.test.ts +12 -12
  1254. package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +65 -25
  1255. package/front_end/panels/timeline/components/insights/CLSCulprits.test.ts +44 -0
  1256. package/front_end/panels/timeline/components/insights/CLSCulprits.ts +31 -114
  1257. package/front_end/panels/timeline/components/insights/Checklist.ts +108 -0
  1258. package/front_end/panels/timeline/components/insights/DOMSize.ts +127 -0
  1259. package/front_end/panels/timeline/components/insights/DocumentLatency.ts +18 -109
  1260. package/front_end/panels/timeline/components/insights/EventRef.ts +13 -20
  1261. package/front_end/panels/timeline/components/insights/FontDisplay.ts +9 -26
  1262. package/front_end/panels/timeline/components/insights/ForcedReflow.ts +105 -0
  1263. package/front_end/panels/timeline/components/insights/ImageDelivery.ts +29 -72
  1264. package/front_end/panels/timeline/components/insights/InteractionToNextPaint.ts +15 -44
  1265. package/front_end/panels/timeline/components/insights/LCPDiscovery.ts +33 -96
  1266. package/front_end/panels/timeline/components/insights/LCPPhases.ts +22 -58
  1267. package/front_end/panels/timeline/components/insights/LongCriticalNetworkTree.ts +53 -0
  1268. package/front_end/panels/timeline/components/insights/NodeLink.ts +42 -27
  1269. package/front_end/panels/timeline/components/insights/README.md +16 -32
  1270. package/front_end/panels/timeline/components/insights/RenderBlocking.ts +16 -31
  1271. package/front_end/panels/timeline/components/insights/SidebarInsight.ts +4 -4
  1272. package/front_end/panels/timeline/components/insights/SlowCSSSelector.ts +53 -66
  1273. package/front_end/panels/timeline/components/insights/Table.ts +30 -14
  1274. package/front_end/panels/timeline/components/insights/ThirdParties.ts +33 -42
  1275. package/front_end/panels/timeline/components/insights/Viewport.ts +16 -19
  1276. package/front_end/panels/timeline/components/insights/baseInsightComponent.css +14 -43
  1277. package/front_end/panels/timeline/components/insights/checklist.css +33 -0
  1278. package/front_end/panels/timeline/components/insights/insights.ts +8 -0
  1279. package/front_end/panels/timeline/components/insights/table.css +2 -1
  1280. package/front_end/panels/timeline/components/layoutShiftDetails.css +1 -0
  1281. package/front_end/panels/timeline/components/liveMetricsView.css +41 -2
  1282. package/front_end/panels/timeline/components/metricCard.css +39 -4
  1283. package/front_end/panels/timeline/components/networkThrottlingSelector.css +5 -2
  1284. package/front_end/panels/timeline/components/originMap.css +71 -0
  1285. package/front_end/panels/timeline/components/relatedInsightChips.css +29 -0
  1286. package/front_end/panels/timeline/components/sidebarAnnotationsTab.css +1 -1
  1287. package/front_end/panels/timeline/components/sidebarSingleInsightSet.css +62 -3
  1288. package/front_end/panels/timeline/components/timelineSummary.css +15 -11
  1289. package/front_end/panels/timeline/docs/flame_chart_migration.md +1 -3
  1290. package/front_end/panels/timeline/docs/sync_tracks.md +1 -1
  1291. package/front_end/panels/timeline/enable-easter-egg.js +1 -0
  1292. package/front_end/panels/timeline/fixtures/traces/README.md +46 -5
  1293. package/front_end/panels/timeline/fixtures/traces/async-js-calls.json.gz +0 -0
  1294. package/front_end/panels/timeline/fixtures/traces/crux.json.gz +0 -0
  1295. package/front_end/panels/timeline/fixtures/traces/dom-size-long.json.gz +0 -0
  1296. package/front_end/panels/timeline/fixtures/traces/dom-size-overlap.json.gz +0 -0
  1297. package/front_end/panels/timeline/fixtures/traces/dom-size.json.gz +0 -0
  1298. package/front_end/panels/timeline/fixtures/traces/extension-tracks-and-marks.json.gz +0 -0
  1299. package/front_end/panels/timeline/fixtures/traces/forced-reflow.json.gz +0 -0
  1300. package/front_end/panels/timeline/fixtures/traces/image-delivery.json.gz +0 -0
  1301. package/front_end/panels/timeline/fixtures/traces/lcp-fetchpriority-high.json.gz +0 -0
  1302. package/front_end/panels/timeline/fixtures/traces/lcp-late-paint-event.json.gz +0 -0
  1303. package/front_end/panels/timeline/fixtures/traces/lcp-multiple-frames.json.gz +0 -0
  1304. package/front_end/panels/timeline/fixtures/traces/multi-frame-dom-stats.json.gz +0 -0
  1305. package/front_end/panels/timeline/fixtures/traces/timings-track.json.gz +0 -0
  1306. package/front_end/panels/timeline/fixtures/traces/web-dev-animation-frames.json.gz +0 -0
  1307. package/front_end/panels/timeline/fixtures/traces/web-dev-initial-url.json.gz +0 -0
  1308. package/front_end/panels/timeline/fixtures/traces/web-dev-screenshot-source-ids.json.gz +0 -0
  1309. package/front_end/panels/timeline/overlays/OverlaysImpl.test.ts +87 -25
  1310. package/front_end/panels/timeline/overlays/OverlaysImpl.ts +306 -102
  1311. package/front_end/panels/timeline/overlays/components/EntriesLinkOverlay.ts +49 -39
  1312. package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +11 -7
  1313. package/front_end/panels/timeline/overlays/components/TimeRangeOverlay.ts +12 -8
  1314. package/front_end/panels/timeline/overlays/components/TimespanBreakdownOverlay.test.ts +1 -2
  1315. package/front_end/panels/timeline/overlays/components/TimespanBreakdownOverlay.ts +15 -11
  1316. package/front_end/panels/timeline/timeline.ts +2 -2
  1317. package/front_end/panels/timeline/timelineFlameChartView.css +43 -5
  1318. package/front_end/panels/timeline/timelineFlamechartPopover.css +5 -2
  1319. package/front_end/panels/timeline/timelinePanel.css +227 -23
  1320. package/front_end/panels/timeline/timelineSelectorStatsView.css +9 -0
  1321. package/front_end/panels/timeline/timelineStatusDialog.css +24 -11
  1322. package/front_end/panels/timeline/track_appenders/AnimationsTrackAppender.test.ts +4 -5
  1323. package/front_end/panels/timeline/track_appenders/AppenderUtils.test.ts +34 -35
  1324. package/front_end/panels/timeline/track_appenders/CompatibilityTracksAppender.test.ts +6 -20
  1325. package/front_end/panels/timeline/track_appenders/ExtensionTrackAppender.test.ts +29 -16
  1326. package/front_end/panels/timeline/track_appenders/GPUTrackAppender.test.ts +3 -4
  1327. package/front_end/panels/timeline/track_appenders/InteractionsTrackAppender.test.ts +6 -7
  1328. package/front_end/panels/timeline/track_appenders/LayoutShiftsTrackAppender.test.ts +11 -9
  1329. package/front_end/panels/timeline/track_appenders/NetworkTrackAppender.test.ts +3 -4
  1330. package/front_end/panels/timeline/track_appenders/ServerTimingsTrackAppender.test.ts +7 -11
  1331. package/front_end/panels/timeline/track_appenders/ThreadAppender.test.ts +21 -19
  1332. package/front_end/panels/timeline/track_appenders/TimingsTrackAppender.test.ts +11 -72
  1333. package/front_end/panels/timeline/utils/AICallTree.test.ts +123 -22
  1334. package/front_end/panels/timeline/utils/AICallTree.ts +58 -13
  1335. package/front_end/panels/timeline/utils/EntityMapper.test.ts +124 -0
  1336. package/front_end/panels/timeline/utils/EntityMapper.ts +164 -0
  1337. package/front_end/panels/timeline/utils/EntryName.test.ts +15 -0
  1338. package/front_end/panels/timeline/utils/EntryName.ts +13 -1
  1339. package/front_end/panels/timeline/utils/EntryStyles.ts +51 -7
  1340. package/front_end/panels/timeline/utils/Helpers.ts +29 -3
  1341. package/front_end/panels/timeline/utils/IgnoreList.test.ts +6 -6
  1342. package/front_end/panels/timeline/utils/ImageCache.test.ts +5 -4
  1343. package/front_end/panels/timeline/utils/ImageCache.ts +12 -7
  1344. package/front_end/panels/timeline/utils/InsightAIContext.ts +5 -0
  1345. package/front_end/panels/timeline/utils/SourceMapsResolver.test.ts +88 -6
  1346. package/front_end/panels/timeline/utils/SourceMapsResolver.ts +28 -26
  1347. package/front_end/panels/timeline/utils/utils.ts +4 -2
  1348. package/front_end/panels/utils/utils.test.ts +28 -34
  1349. package/front_end/panels/web_audio/AudioContextContentBuilder.ts +1 -1
  1350. package/front_end/panels/web_audio/AudioContextSelector.ts +4 -5
  1351. package/front_end/panels/web_audio/WebAudioModel.ts +17 -17
  1352. package/front_end/panels/web_audio/WebAudioView.ts +8 -4
  1353. package/front_end/panels/web_audio/graph_visualizer/GraphView.ts +3 -3
  1354. package/front_end/panels/webauthn/WebauthnPane.test.ts +55 -11
  1355. package/front_end/panels/webauthn/WebauthnPane.ts +58 -37
  1356. package/front_end/panels/webauthn/webauthnPane.css +3 -10
  1357. package/front_end/panels/whats_new/ReleaseNote.test.ts +6 -4
  1358. package/front_end/panels/whats_new/ReleaseNoteText.ts +25 -10
  1359. package/front_end/panels/whats_new/ReleaseNoteView.test.ts +160 -0
  1360. package/front_end/panels/whats_new/ReleaseNoteView.ts +110 -110
  1361. package/front_end/panels/whats_new/WhatsNewImpl.ts +2 -2
  1362. package/front_end/panels/whats_new/releaseNoteView.css +80 -85
  1363. package/front_end/panels/whats_new/resources/WNDT.md +6 -6
  1364. package/front_end/panels/whats_new/whats_new-meta.ts +1 -2
  1365. package/front_end/services/puppeteer/PuppeteerConnection.ts +0 -1
  1366. package/front_end/services/trace_bounds/TraceBounds.test.ts +20 -20
  1367. package/front_end/services/trace_bounds/TraceBounds.ts +10 -12
  1368. package/front_end/testing/AiAssistanceHelpers.ts +142 -0
  1369. package/front_end/testing/DOMHelpers.ts +46 -15
  1370. package/front_end/testing/DataGridHelpers.ts +7 -77
  1371. package/front_end/testing/EnvironmentHelpers.ts +43 -11
  1372. package/front_end/testing/ExpectStubCall.ts +2 -3
  1373. package/front_end/testing/InsightHelpers.ts +11 -0
  1374. package/front_end/testing/LanguagePluginHelpers.ts +4 -2
  1375. package/front_end/testing/MockConnection.ts +11 -16
  1376. package/front_end/testing/MockExecutionContext.ts +4 -4
  1377. package/front_end/testing/MutationHelpers.test.ts +5 -7
  1378. package/front_end/testing/MutationHelpers.ts +1 -1
  1379. package/front_end/testing/NetworkHelpers.ts +2 -4
  1380. package/front_end/testing/OverridesHelpers.ts +4 -2
  1381. package/front_end/testing/RealConnection.ts +1 -1
  1382. package/front_end/testing/ResourceTreeHelpers.ts +4 -2
  1383. package/front_end/testing/StubIssue.ts +1 -1
  1384. package/front_end/testing/StyleHelpers.ts +90 -0
  1385. package/front_end/testing/TraceHelpers.ts +134 -43
  1386. package/front_end/testing/TraceLoader.ts +14 -0
  1387. package/front_end/testing/TrackAsyncOperations.ts +15 -15
  1388. package/front_end/testing/UISourceCodeHelpers.ts +5 -3
  1389. package/front_end/testing/test_setup.ts +4 -3
  1390. package/front_end/third_party/axe-core/README.chromium +2 -2
  1391. package/front_end/third_party/codemirror.next/package.json +1 -1
  1392. package/front_end/third_party/i18n/localized-string-set.ts +14 -4
  1393. package/front_end/third_party/lighthouse/README.chromium +2 -2
  1394. package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1091 -807
  1395. package/front_end/third_party/lighthouse/locales/ar-XB.json +60 -0
  1396. package/front_end/third_party/lighthouse/locales/ar.json +60 -0
  1397. package/front_end/third_party/lighthouse/locales/bg.json +77 -17
  1398. package/front_end/third_party/lighthouse/locales/ca.json +77 -17
  1399. package/front_end/third_party/lighthouse/locales/cs.json +77 -17
  1400. package/front_end/third_party/lighthouse/locales/da.json +77 -17
  1401. package/front_end/third_party/lighthouse/locales/de.json +77 -17
  1402. package/front_end/third_party/lighthouse/locales/el.json +77 -17
  1403. package/front_end/third_party/lighthouse/locales/en-GB.json +70 -10
  1404. package/front_end/third_party/lighthouse/locales/en-US.json +154 -40
  1405. package/front_end/third_party/lighthouse/locales/en-XL.json +154 -40
  1406. package/front_end/third_party/lighthouse/locales/es-419.json +77 -17
  1407. package/front_end/third_party/lighthouse/locales/es.json +60 -0
  1408. package/front_end/third_party/lighthouse/locales/fi.json +60 -0
  1409. package/front_end/third_party/lighthouse/locales/fil.json +60 -0
  1410. package/front_end/third_party/lighthouse/locales/fr.json +77 -17
  1411. package/front_end/third_party/lighthouse/locales/he.json +77 -17
  1412. package/front_end/third_party/lighthouse/locales/hi.json +77 -17
  1413. package/front_end/third_party/lighthouse/locales/hr.json +60 -0
  1414. package/front_end/third_party/lighthouse/locales/hu.json +77 -17
  1415. package/front_end/third_party/lighthouse/locales/id.json +77 -17
  1416. package/front_end/third_party/lighthouse/locales/it.json +77 -17
  1417. package/front_end/third_party/lighthouse/locales/ja.json +60 -0
  1418. package/front_end/third_party/lighthouse/locales/ko.json +60 -0
  1419. package/front_end/third_party/lighthouse/locales/lt.json +77 -17
  1420. package/front_end/third_party/lighthouse/locales/lv.json +77 -17
  1421. package/front_end/third_party/lighthouse/locales/nl.json +60 -0
  1422. package/front_end/third_party/lighthouse/locales/no.json +77 -17
  1423. package/front_end/third_party/lighthouse/locales/pl.json +60 -0
  1424. package/front_end/third_party/lighthouse/locales/pt-PT.json +60 -0
  1425. package/front_end/third_party/lighthouse/locales/pt.json +77 -17
  1426. package/front_end/third_party/lighthouse/locales/ro.json +77 -17
  1427. package/front_end/third_party/lighthouse/locales/ru.json +60 -0
  1428. package/front_end/third_party/lighthouse/locales/sk.json +60 -0
  1429. package/front_end/third_party/lighthouse/locales/sl.json +77 -17
  1430. package/front_end/third_party/lighthouse/locales/sr-Latn.json +60 -0
  1431. package/front_end/third_party/lighthouse/locales/sr.json +60 -0
  1432. package/front_end/third_party/lighthouse/locales/sv.json +77 -17
  1433. package/front_end/third_party/lighthouse/locales/ta.json +77 -17
  1434. package/front_end/third_party/lighthouse/locales/te.json +72 -12
  1435. package/front_end/third_party/lighthouse/locales/th.json +60 -0
  1436. package/front_end/third_party/lighthouse/locales/tr.json +77 -17
  1437. package/front_end/third_party/lighthouse/locales/uk.json +78 -18
  1438. package/front_end/third_party/lighthouse/locales/vi.json +60 -0
  1439. package/front_end/third_party/lighthouse/locales/zh-HK.json +77 -17
  1440. package/front_end/third_party/lighthouse/locales/zh-TW.json +77 -17
  1441. package/front_end/third_party/lighthouse/locales/zh.json +77 -17
  1442. package/front_end/third_party/lighthouse/report-assets/report-generator.mjs +1 -1
  1443. package/front_end/third_party/lit/lib/decorators.d.ts +5 -2
  1444. package/front_end/third_party/lit/lib/decorators.js +5 -5
  1445. package/front_end/third_party/lit/lib/decorators.js.map +1 -1
  1446. package/front_end/third_party/lit/lib/directive.d.ts +15 -7
  1447. package/front_end/third_party/lit/lib/directive.js.map +1 -1
  1448. package/front_end/third_party/lit/lib/directives.d.ts +147 -7
  1449. package/front_end/third_party/lit/lib/directives.js +9 -9
  1450. package/front_end/third_party/lit/lib/directives.js.map +1 -1
  1451. package/front_end/third_party/lit/lib/lit.d.ts +126 -13
  1452. package/front_end/third_party/lit/lib/lit.js +5 -5
  1453. package/front_end/third_party/lit/lib/lit.js.map +1 -1
  1454. package/front_end/third_party/lit/lib/static-html.d.ts +202 -0
  1455. package/front_end/third_party/lit/lib/static-html.js +13 -0
  1456. package/front_end/third_party/lit/lib/static-html.js.map +1 -0
  1457. package/front_end/third_party/lit/lit.ts +2 -1
  1458. package/front_end/third_party/lit/package.json +2 -2
  1459. package/front_end/third_party/lit/{rollup.config.js → rollup.config.mjs} +2 -2
  1460. package/front_end/third_party/lit/src/static-html.ts +5 -0
  1461. package/front_end/third_party/puppeteer/README.chromium +2 -2
  1462. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts +29 -1
  1463. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts.map +1 -1
  1464. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js +46 -14
  1465. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js.map +1 -1
  1466. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts +14 -0
  1467. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts.map +1 -1
  1468. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.js +12 -0
  1469. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.js.map +1 -1
  1470. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/CDPSession.d.ts.map +1 -1
  1471. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.d.ts +9 -4
  1472. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.d.ts.map +1 -1
  1473. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.js +6 -6
  1474. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.js.map +1 -1
  1475. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.d.ts +5 -5
  1476. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.js +4 -4
  1477. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +35 -19
  1478. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
  1479. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js +11 -12
  1480. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -1
  1481. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.js +17 -7
  1482. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.js.map +1 -1
  1483. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js +7 -7
  1484. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js.map +1 -1
  1485. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.d.ts +2 -2
  1486. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
  1487. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.js +19 -8
  1488. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.js.map +1 -1
  1489. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts +3 -0
  1490. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
  1491. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js +35 -9
  1492. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js.map +1 -1
  1493. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/CDPSession.js +2 -2
  1494. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/CDPSession.js.map +1 -1
  1495. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.d.ts +4 -4
  1496. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.d.ts.map +1 -1
  1497. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.js +1 -1
  1498. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.js.map +1 -1
  1499. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.d.ts +2 -0
  1500. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.d.ts.map +1 -1
  1501. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.js +15 -1
  1502. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.js.map +1 -1
  1503. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ExposedFunction.d.ts +2 -2
  1504. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ExposedFunction.d.ts.map +1 -1
  1505. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ExposedFunction.js +21 -11
  1506. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ExposedFunction.js.map +1 -1
  1507. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.d.ts.map +1 -1
  1508. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js +18 -4
  1509. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js.map +1 -1
  1510. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.d.ts +2 -1
  1511. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
  1512. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.js +4 -1
  1513. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.js.map +1 -1
  1514. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts +11 -1
  1515. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts.map +1 -1
  1516. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +32 -3
  1517. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
  1518. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Realm.js +2 -2
  1519. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Realm.js.map +1 -1
  1520. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts +2 -0
  1521. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
  1522. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js +7 -0
  1523. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
  1524. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Realm.js +1 -1
  1525. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Realm.js.map +1 -1
  1526. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Request.d.ts +1 -1
  1527. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Request.d.ts.map +1 -1
  1528. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/UserContext.d.ts.map +1 -1
  1529. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.d.ts +8 -1
  1530. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.d.ts.map +1 -1
  1531. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js +100 -4
  1532. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js.map +1 -1
  1533. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts +3 -3
  1534. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts.map +1 -1
  1535. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js +5 -12
  1536. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js.map +1 -1
  1537. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.d.ts +2 -2
  1538. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
  1539. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js +1 -5
  1540. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js.map +1 -1
  1541. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts +3 -0
  1542. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
  1543. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js +28 -0
  1544. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js.map +1 -1
  1545. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CDPSession.d.ts +1 -1
  1546. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CDPSession.d.ts.map +1 -1
  1547. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CDPSession.js +11 -3
  1548. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CDPSession.js.map +1 -1
  1549. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.d.ts +1 -1
  1550. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.d.ts.map +1 -1
  1551. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.js +12 -4
  1552. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.js.map +1 -1
  1553. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/DeviceRequestPrompt.js +7 -7
  1554. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/DeviceRequestPrompt.js.map +1 -1
  1555. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.d.ts +1 -0
  1556. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.d.ts.map +1 -1
  1557. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.js +11 -1
  1558. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.js.map +1 -1
  1559. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/EmulationManager.d.ts.map +1 -1
  1560. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/EmulationManager.js +1 -0
  1561. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/EmulationManager.js.map +1 -1
  1562. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.d.ts.map +1 -1
  1563. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.js +2 -3
  1564. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.js.map +1 -1
  1565. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Frame.d.ts.map +1 -1
  1566. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Frame.js +1 -6
  1567. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Frame.js.map +1 -1
  1568. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FrameManager.js +1 -1
  1569. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FrameManager.js.map +1 -1
  1570. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.js +1 -1
  1571. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.js.map +1 -1
  1572. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.d.ts.map +1 -1
  1573. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.js +1 -3
  1574. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.js.map +1 -1
  1575. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/IsolatedWorld.js +1 -1
  1576. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/IsolatedWorld.js.map +1 -1
  1577. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts +2 -1
  1578. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts.map +1 -1
  1579. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js +21 -20
  1580. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js.map +1 -1
  1581. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManageEvents.d.ts +34 -0
  1582. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManageEvents.d.ts.map +1 -0
  1583. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManageEvents.js +8 -0
  1584. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManageEvents.js.map +1 -0
  1585. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.d.ts +14 -33
  1586. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.d.ts.map +1 -1
  1587. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.js +308 -0
  1588. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.js.map +1 -1
  1589. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.d.ts +0 -2
  1590. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.d.ts.map +1 -1
  1591. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.js +0 -2
  1592. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.js.map +1 -1
  1593. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +1 -1
  1594. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +17 -7
  1595. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
  1596. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.d.ts +1 -0
  1597. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
  1598. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.js +7 -0
  1599. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.js.map +1 -1
  1600. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts +1 -6
  1601. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts.map +1 -1
  1602. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Cookie.d.ts +85 -4
  1603. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Cookie.d.ts.map +1 -1
  1604. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js +17 -7
  1605. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js.map +1 -1
  1606. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts +15 -12
  1607. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -1
  1608. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.js +47 -11
  1609. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -1
  1610. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WaitTask.d.ts.map +1 -1
  1611. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WaitTask.js +2 -2
  1612. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WaitTask.js.map +1 -1
  1613. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts.map +1 -1
  1614. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js +1 -1
  1615. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js.map +1 -1
  1616. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts +1 -1
  1617. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +1 -1
  1618. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
  1619. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.js +17 -7
  1620. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.js.map +1 -1
  1621. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts +6 -6
  1622. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
  1623. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js +25 -19
  1624. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js.map +1 -1
  1625. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts +5 -5
  1626. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
  1627. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +7 -4
  1628. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -1
  1629. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts +5 -5
  1630. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
  1631. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js +8 -21
  1632. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js.map +1 -1
  1633. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts +40 -52
  1634. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -1
  1635. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.d.ts +14 -13
  1636. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.d.ts.map +1 -1
  1637. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.js +34 -24
  1638. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.js.map +1 -1
  1639. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.d.ts +7 -3
  1640. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.d.ts.map +1 -1
  1641. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.js +17 -7
  1642. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.js.map +1 -1
  1643. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +3 -3
  1644. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +3 -3
  1645. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js.map +1 -1
  1646. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
  1647. package/front_end/third_party/puppeteer/package/lib/cjs/third_party/parsel-js/parsel-js.js +11 -21
  1648. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +308 -172
  1649. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +1079 -993
  1650. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +29 -1
  1651. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts.map +1 -1
  1652. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js +46 -14
  1653. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js.map +1 -1
  1654. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts +14 -0
  1655. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts.map +1 -1
  1656. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.js +12 -0
  1657. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.js.map +1 -1
  1658. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/CDPSession.d.ts.map +1 -1
  1659. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.d.ts +9 -4
  1660. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.d.ts.map +1 -1
  1661. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.js +6 -6
  1662. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.js.map +1 -1
  1663. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.d.ts +5 -5
  1664. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.js +4 -4
  1665. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +35 -19
  1666. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
  1667. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js +11 -12
  1668. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -1
  1669. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js +7 -7
  1670. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js.map +1 -1
  1671. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.d.ts +2 -2
  1672. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
  1673. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.js +2 -1
  1674. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.js.map +1 -1
  1675. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts +3 -0
  1676. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
  1677. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js +36 -10
  1678. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js.map +1 -1
  1679. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/CDPSession.js +2 -2
  1680. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/CDPSession.js.map +1 -1
  1681. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.d.ts +4 -4
  1682. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.d.ts.map +1 -1
  1683. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.js +1 -1
  1684. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.js.map +1 -1
  1685. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.d.ts +2 -0
  1686. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.d.ts.map +1 -1
  1687. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.js +15 -1
  1688. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.js.map +1 -1
  1689. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ExposedFunction.d.ts +2 -2
  1690. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ExposedFunction.d.ts.map +1 -1
  1691. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ExposedFunction.js +2 -2
  1692. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ExposedFunction.js.map +1 -1
  1693. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.d.ts.map +1 -1
  1694. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js +20 -6
  1695. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js.map +1 -1
  1696. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.d.ts +2 -1
  1697. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
  1698. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.js +4 -1
  1699. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.js.map +1 -1
  1700. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts +11 -1
  1701. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts.map +1 -1
  1702. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +29 -5
  1703. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
  1704. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Realm.js +3 -3
  1705. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Realm.js.map +1 -1
  1706. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts +2 -0
  1707. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
  1708. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js +7 -0
  1709. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
  1710. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Realm.js +1 -1
  1711. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Realm.js.map +1 -1
  1712. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Request.d.ts +1 -1
  1713. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Request.d.ts.map +1 -1
  1714. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/UserContext.d.ts.map +1 -1
  1715. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.d.ts +8 -1
  1716. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.d.ts.map +1 -1
  1717. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js +100 -4
  1718. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js.map +1 -1
  1719. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts +3 -3
  1720. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts.map +1 -1
  1721. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js +5 -12
  1722. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js.map +1 -1
  1723. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.d.ts +2 -2
  1724. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
  1725. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js +1 -5
  1726. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js.map +1 -1
  1727. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts +3 -0
  1728. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
  1729. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js +28 -0
  1730. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js.map +1 -1
  1731. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CDPSession.d.ts +1 -1
  1732. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CDPSession.d.ts.map +1 -1
  1733. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CDPSession.js +11 -3
  1734. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CDPSession.js.map +1 -1
  1735. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.d.ts +1 -1
  1736. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.d.ts.map +1 -1
  1737. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.js +12 -4
  1738. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.js.map +1 -1
  1739. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/DeviceRequestPrompt.js +7 -7
  1740. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/DeviceRequestPrompt.js.map +1 -1
  1741. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.d.ts +1 -0
  1742. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.d.ts.map +1 -1
  1743. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.js +11 -1
  1744. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.js.map +1 -1
  1745. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/EmulationManager.d.ts.map +1 -1
  1746. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/EmulationManager.js +1 -0
  1747. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/EmulationManager.js.map +1 -1
  1748. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.d.ts.map +1 -1
  1749. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.js +2 -3
  1750. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.js.map +1 -1
  1751. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Frame.d.ts.map +1 -1
  1752. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Frame.js +1 -6
  1753. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Frame.js.map +1 -1
  1754. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FrameManager.js +1 -1
  1755. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FrameManager.js.map +1 -1
  1756. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.js +1 -1
  1757. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.js.map +1 -1
  1758. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.d.ts.map +1 -1
  1759. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.js +1 -3
  1760. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.js.map +1 -1
  1761. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/IsolatedWorld.js +1 -1
  1762. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/IsolatedWorld.js.map +1 -1
  1763. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts +2 -1
  1764. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts.map +1 -1
  1765. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js +20 -20
  1766. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js.map +1 -1
  1767. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManageEvents.d.ts +34 -0
  1768. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManageEvents.d.ts.map +1 -0
  1769. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManageEvents.js +7 -0
  1770. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManageEvents.js.map +1 -0
  1771. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.d.ts +14 -33
  1772. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.d.ts.map +1 -1
  1773. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.js +306 -1
  1774. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.js.map +1 -1
  1775. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.d.ts +0 -2
  1776. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.d.ts.map +1 -1
  1777. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.js +0 -2
  1778. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.js.map +1 -1
  1779. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -1
  1780. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -1
  1781. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.d.ts +1 -0
  1782. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
  1783. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.js +7 -0
  1784. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.js.map +1 -1
  1785. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts +1 -6
  1786. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts.map +1 -1
  1787. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Cookie.d.ts +85 -4
  1788. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Cookie.d.ts.map +1 -1
  1789. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts +15 -12
  1790. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -1
  1791. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.js +47 -11
  1792. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.js.map +1 -1
  1793. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WaitTask.d.ts.map +1 -1
  1794. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WaitTask.js +2 -2
  1795. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WaitTask.js.map +1 -1
  1796. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts.map +1 -1
  1797. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js +1 -1
  1798. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js.map +1 -1
  1799. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts +1 -1
  1800. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +1 -1
  1801. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts +6 -6
  1802. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
  1803. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js +8 -12
  1804. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js.map +1 -1
  1805. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts +5 -5
  1806. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
  1807. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +7 -4
  1808. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -1
  1809. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.d.ts +5 -5
  1810. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
  1811. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js +8 -21
  1812. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js.map +1 -1
  1813. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts +40 -52
  1814. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -1
  1815. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.d.ts +14 -13
  1816. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.d.ts.map +1 -1
  1817. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.js +34 -24
  1818. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.js.map +1 -1
  1819. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.d.ts +7 -3
  1820. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.d.ts.map +1 -1
  1821. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +3 -3
  1822. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +3 -3
  1823. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js.map +1 -1
  1824. package/front_end/third_party/puppeteer/package/lib/esm/third_party/parsel-js/parsel-js.js +11 -21
  1825. package/front_end/third_party/puppeteer/package/lib/types.d.ts +308 -172
  1826. package/front_end/third_party/puppeteer/package/package.json +17 -11
  1827. package/front_end/third_party/puppeteer/package/src/api/Browser.ts +64 -27
  1828. package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +26 -0
  1829. package/front_end/third_party/puppeteer/package/src/api/ElementHandle.ts +12 -6
  1830. package/front_end/third_party/puppeteer/package/src/api/Frame.ts +5 -5
  1831. package/front_end/third_party/puppeteer/package/src/api/Page.ts +35 -21
  1832. package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +7 -7
  1833. package/front_end/third_party/puppeteer/package/src/bidi/BrowserConnector.ts +4 -6
  1834. package/front_end/third_party/puppeteer/package/src/bidi/BrowserContext.ts +57 -10
  1835. package/front_end/third_party/puppeteer/package/src/bidi/CDPSession.ts +2 -2
  1836. package/front_end/third_party/puppeteer/package/src/bidi/Connection.ts +5 -5
  1837. package/front_end/third_party/puppeteer/package/src/bidi/ElementHandle.ts +17 -0
  1838. package/front_end/third_party/puppeteer/package/src/bidi/ExposedFunction.ts +3 -3
  1839. package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +32 -7
  1840. package/front_end/third_party/puppeteer/package/src/bidi/HTTPRequest.ts +6 -2
  1841. package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +45 -6
  1842. package/front_end/third_party/puppeteer/package/src/bidi/Realm.ts +3 -3
  1843. package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +10 -0
  1844. package/front_end/third_party/puppeteer/package/src/bidi/core/Realm.ts +1 -1
  1845. package/front_end/third_party/puppeteer/package/src/bidi/core/Request.ts +1 -1
  1846. package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +55 -3
  1847. package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +8 -21
  1848. package/front_end/third_party/puppeteer/package/src/cdp/BrowserConnector.ts +2 -11
  1849. package/front_end/third_party/puppeteer/package/src/cdp/BrowserContext.ts +33 -0
  1850. package/front_end/third_party/puppeteer/package/src/cdp/CDPSession.ts +14 -6
  1851. package/front_end/third_party/puppeteer/package/src/cdp/Connection.ts +15 -6
  1852. package/front_end/third_party/puppeteer/package/src/cdp/DeviceRequestPrompt.ts +7 -7
  1853. package/front_end/third_party/puppeteer/package/src/cdp/ElementHandle.ts +13 -1
  1854. package/front_end/third_party/puppeteer/package/src/cdp/EmulationManager.ts +1 -0
  1855. package/front_end/third_party/puppeteer/package/src/cdp/ExecutionContext.ts +2 -3
  1856. package/front_end/third_party/puppeteer/package/src/cdp/Frame.ts +1 -8
  1857. package/front_end/third_party/puppeteer/package/src/cdp/FrameManager.ts +1 -1
  1858. package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +1 -1
  1859. package/front_end/third_party/puppeteer/package/src/cdp/HTTPResponse.ts +1 -3
  1860. package/front_end/third_party/puppeteer/package/src/cdp/IsolatedWorld.ts +1 -1
  1861. package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +29 -23
  1862. package/front_end/third_party/puppeteer/package/src/cdp/TargetManageEvents.ts +38 -0
  1863. package/front_end/third_party/puppeteer/package/src/cdp/TargetManager.ts +417 -35
  1864. package/front_end/third_party/puppeteer/package/src/cdp/cdp.ts +0 -2
  1865. package/front_end/third_party/puppeteer/package/src/common/BrowserConnector.ts +1 -2
  1866. package/front_end/third_party/puppeteer/package/src/common/CallbackRegistry.ts +8 -0
  1867. package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +1 -6
  1868. package/front_end/third_party/puppeteer/package/src/common/Cookie.ts +87 -4
  1869. package/front_end/third_party/puppeteer/package/src/common/PDFOptions.ts +63 -25
  1870. package/front_end/third_party/puppeteer/package/src/common/WaitTask.ts +2 -6
  1871. package/front_end/third_party/puppeteer/package/src/common/util.ts +3 -1
  1872. package/front_end/third_party/puppeteer/package/src/generated/version.ts +1 -1
  1873. package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +19 -26
  1874. package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +11 -12
  1875. package/front_end/third_party/puppeteer/package/src/node/FirefoxLauncher.ts +12 -30
  1876. package/front_end/third_party/puppeteer/package/src/node/LaunchOptions.ts +40 -55
  1877. package/front_end/third_party/puppeteer/package/src/node/PuppeteerNode.ts +55 -45
  1878. package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
  1879. package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +1 -2
  1880. package/front_end/third_party/third-party-web/README.chromium +2 -2
  1881. package/front_end/third_party/third-party-web/lib/nostats-subset.js +1 -1
  1882. package/front_end/third_party/third-party-web/package/README.md +586 -573
  1883. package/front_end/third_party/third-party-web/package/dist/entities-httparchive-nostats.json +1 -1
  1884. package/front_end/third_party/third-party-web/package/dist/entities-httparchive.json +1 -1
  1885. package/front_end/third_party/third-party-web/package/dist/entities-nostats.json +1 -1
  1886. package/front_end/third_party/third-party-web/package/dist/entities.json +1 -1
  1887. package/front_end/third_party/third-party-web/package/facades.md +46 -0
  1888. package/front_end/third_party/third-party-web/package/lib/__snapshots__/index.test.js.snap +1 -1
  1889. package/front_end/third_party/third-party-web/package/lib/index.test.js +6 -6
  1890. package/front_end/third_party/third-party-web/package/lib/markdown/faqs.partial.md +36 -0
  1891. package/front_end/third_party/third-party-web/package/lib/markdown/goals.partial.md +9 -0
  1892. package/front_end/third_party/third-party-web/package/lib/markdown/methodology.partial.md +5 -0
  1893. package/front_end/third_party/third-party-web/package/lib/markdown/template.md +151 -0
  1894. package/front_end/third_party/third-party-web/package/lib/markdown/updates/2019-02-01.md +1 -0
  1895. package/front_end/third_party/third-party-web/package/lib/markdown/updates/2019-03-01.md +1 -0
  1896. package/front_end/third_party/third-party-web/package/lib/markdown/updates/2019-05-06.md +1 -0
  1897. package/front_end/third_party/third-party-web/package/lib/markdown/updates/2019-05-13.md +14 -0
  1898. package/front_end/third_party/third-party-web/package/lib/markdown/updates/2021-01-01.md +1 -0
  1899. package/front_end/third_party/third-party-web/package/lib/markdown/updates/2024-07-01.md +3 -0
  1900. package/front_end/third_party/third-party-web/package/nostats-subset.d.ts +1 -0
  1901. package/front_end/third_party/third-party-web/package/package.json +5 -4
  1902. package/front_end/third_party/third-party-web/package.json +2 -1
  1903. package/front_end/third_party/third-party-web/rebuild.sh +8 -0
  1904. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.js +9 -5
  1905. package/front_end/ui/components/adorners/Adorner.test.ts +2 -2
  1906. package/front_end/ui/components/adorners/Adorner.ts +15 -17
  1907. package/front_end/ui/components/buttons/Button.test.ts +26 -6
  1908. package/front_end/ui/components/buttons/Button.ts +16 -34
  1909. package/front_end/ui/components/buttons/button.css +13 -23
  1910. package/front_end/ui/components/buttons/buttons.ts +2 -0
  1911. package/front_end/ui/{legacy → components/buttons}/textButton.css +6 -6
  1912. package/front_end/ui/components/cards/Card.test.ts +81 -72
  1913. package/front_end/ui/components/cards/Card.ts +85 -54
  1914. package/front_end/ui/components/cards/card.css +40 -36
  1915. package/front_end/ui/components/chrome_link/ChromeLink.test.ts +8 -10
  1916. package/front_end/ui/components/chrome_link/ChromeLink.ts +4 -6
  1917. package/front_end/ui/components/code_highlighter/code_highlighter.ts +2 -2
  1918. package/front_end/ui/components/dialogs/ButtonDialog.test.ts +4 -6
  1919. package/front_end/ui/components/dialogs/ButtonDialog.ts +9 -5
  1920. package/front_end/ui/components/dialogs/Dialog.test.ts +47 -50
  1921. package/front_end/ui/components/dialogs/Dialog.ts +31 -114
  1922. package/front_end/ui/components/dialogs/ShortcutDialog.test.ts +7 -23
  1923. package/front_end/ui/components/dialogs/ShortcutDialog.ts +18 -95
  1924. package/front_end/ui/components/dialogs/buttonDialog.css +1 -1
  1925. package/front_end/ui/components/dialogs/dialog.css +15 -8
  1926. package/front_end/ui/components/dialogs/dialogs.ts +0 -2
  1927. package/front_end/ui/components/dialogs/shortcutDialog.css +10 -29
  1928. package/front_end/ui/components/diff_view/DiffView.test.ts +1 -1
  1929. package/front_end/ui/components/diff_view/DiffView.ts +20 -14
  1930. package/front_end/ui/components/diff_view/diffView.css +2 -2
  1931. package/front_end/ui/components/docs/{freestyler → ai_assistance}/basic.ts +8 -8
  1932. package/front_end/ui/components/docs/{freestyler → ai_assistance}/empty_state.ts +5 -5
  1933. package/front_end/ui/components/docs/breadcrumbs_perf/initial-breadcrumb-perf.ts +4 -4
  1934. package/front_end/ui/components/docs/breadcrumbs_perf/nested-breadcrumbs-perf.ts +8 -8
  1935. package/front_end/ui/components/docs/building-ui-documentation/StylingComponents.md +5 -1
  1936. package/front_end/ui/components/docs/building-ui-documentation/TestingComponents.md +6 -7
  1937. package/front_end/ui/components/docs/button/basic.html +18 -34
  1938. package/front_end/ui/components/docs/button/basic.ts +135 -371
  1939. package/front_end/ui/components/docs/{data_grid_controller → combo_box}/basic.html +2 -12
  1940. package/front_end/ui/components/docs/combo_box/basic.ts +49 -0
  1941. package/front_end/ui/components/docs/create_breadcrumbs.ts +4 -4
  1942. package/front_end/ui/components/docs/dialog/basic.ts +71 -7
  1943. package/front_end/ui/components/docs/dialog/button_dialog.ts +2 -1
  1944. package/front_end/ui/components/docs/{icon_dialog/basic.html → dialog/shortcut_dialog.html} +2 -2
  1945. package/front_end/ui/components/docs/{shortcut_dialog/basic.ts → dialog/shortcut_dialog.ts} +5 -5
  1946. package/front_end/ui/components/docs/elements_breadcrumbs/helpers.ts +1 -1
  1947. package/front_end/ui/components/docs/expandable_list/basic.ts +2 -2
  1948. package/front_end/ui/components/docs/icon_component/basic.ts +8 -34
  1949. package/front_end/ui/components/docs/linkifier/simple-url.ts +1 -1
  1950. package/front_end/ui/components/docs/menu/basic.ts +0 -1
  1951. package/front_end/ui/components/docs/panel_introduction_steps/basic.ts +3 -3
  1952. package/front_end/ui/components/docs/performance_panel/basic.ts +0 -5
  1953. package/front_end/ui/components/docs/performance_panel/flamechart.ts +8 -8
  1954. package/front_end/ui/components/docs/performance_panel/network_request_details.ts +2 -1
  1955. package/front_end/ui/components/docs/performance_panel/overview.ts +2 -2
  1956. package/front_end/ui/components/docs/performance_panel/timeline_history_manager.ts +0 -3
  1957. package/front_end/ui/components/docs/performance_panel/track_example.ts +4 -4
  1958. package/front_end/ui/components/docs/{data_grid → radio_button}/basic.html +5 -11
  1959. package/front_end/ui/components/docs/radio_button/basic.ts +50 -0
  1960. package/front_end/ui/components/docs/recorder_control_button/basic.ts +1 -1
  1961. package/front_end/ui/components/docs/recorder_create_recording_view/basic.ts +1 -1
  1962. package/front_end/ui/components/docs/recorder_recording_list_view/basic.ts +1 -1
  1963. package/front_end/ui/components/docs/recorder_recording_view/basic.ts +1 -1
  1964. package/front_end/ui/components/docs/recorder_select_button/basic.ts +4 -4
  1965. package/front_end/ui/components/docs/recorder_split_view/basic.ts +1 -1
  1966. package/front_end/ui/components/docs/report/basic.ts +3 -3
  1967. package/front_end/ui/components/docs/select_menu/basic.ts +3 -4
  1968. package/front_end/ui/components/docs/slider/basic.html +20 -0
  1969. package/front_end/ui/components/docs/slider/basic.ts +62 -0
  1970. package/front_end/ui/components/docs/theme_colors/basic.ts +4 -4
  1971. package/front_end/ui/components/docs/tooltip/basic.html +20 -0
  1972. package/front_end/ui/components/docs/tooltip/basic.ts +64 -0
  1973. package/front_end/ui/components/docs/tree_outline/custom-renderers.ts +4 -4
  1974. package/front_end/ui/components/expandable_list/ExpandableList.test.ts +5 -7
  1975. package/front_end/ui/components/expandable_list/ExpandableList.ts +11 -7
  1976. package/front_end/ui/components/floating_button/FloatingButton.ts +8 -4
  1977. package/front_end/ui/components/helpers/directives.ts +7 -7
  1978. package/front_end/ui/components/helpers/helpers.test.ts +7 -11
  1979. package/front_end/ui/components/helpers/scheduled-render.ts +4 -3
  1980. package/front_end/ui/components/highlighting/HighlightManager.test.ts +7 -7
  1981. package/front_end/ui/components/highlighting/HighlightManager.ts +5 -1
  1982. package/front_end/ui/components/icon_button/FileSourceIcon.ts +5 -7
  1983. package/front_end/ui/components/icon_button/Icon.ts +5 -19
  1984. package/front_end/ui/components/icon_button/IconButton.test.ts +8 -8
  1985. package/front_end/ui/components/icon_button/IconButton.ts +9 -12
  1986. package/front_end/ui/components/icon_button/icon.css +1 -1
  1987. package/front_end/ui/components/icon_button/iconButton.css +13 -9
  1988. package/front_end/ui/components/input/input.ts +10 -2
  1989. package/front_end/ui/components/issue_counter/IssueCounter.test.ts +10 -10
  1990. package/front_end/ui/components/issue_counter/IssueCounter.ts +3 -8
  1991. package/front_end/ui/components/issue_counter/IssueLinkIcon.test.ts +5 -10
  1992. package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +11 -9
  1993. package/front_end/ui/components/legacy_wrapper/LegacyWrapper.ts +1 -1
  1994. package/front_end/ui/components/linkifier/LinkifierImpl.test.ts +14 -14
  1995. package/front_end/ui/components/linkifier/LinkifierImpl.ts +22 -9
  1996. package/front_end/ui/components/linkifier/LinkifierUtils.ts +1 -1
  1997. package/front_end/ui/components/markdown_view/CodeBlock.test.ts +12 -22
  1998. package/front_end/ui/components/markdown_view/CodeBlock.ts +14 -15
  1999. package/front_end/ui/components/markdown_view/MarkdownImage.test.ts +2 -4
  2000. package/front_end/ui/components/markdown_view/MarkdownImage.ts +10 -6
  2001. package/front_end/ui/components/markdown_view/MarkdownLink.test.ts +4 -2
  2002. package/front_end/ui/components/markdown_view/MarkdownLink.ts +6 -4
  2003. package/front_end/ui/components/markdown_view/MarkdownView.test.ts +27 -25
  2004. package/front_end/ui/components/markdown_view/MarkdownView.ts +81 -35
  2005. package/front_end/ui/components/markdown_view/markdownLink.css +0 -4
  2006. package/front_end/ui/components/markdown_view/markdownView.css +15 -4
  2007. package/front_end/ui/components/menus/Menu.ts +41 -30
  2008. package/front_end/ui/components/menus/README.md +10 -2
  2009. package/front_end/ui/components/menus/SelectMenu.test.ts +6 -10
  2010. package/front_end/ui/components/menus/SelectMenu.ts +25 -50
  2011. package/front_end/ui/components/menus/menu.css +1 -1
  2012. package/front_end/ui/components/menus/menuGroup.css +0 -1
  2013. package/front_end/ui/components/menus/menuItem.css +11 -3
  2014. package/front_end/ui/components/menus/selectMenuButton.css +1 -1
  2015. package/front_end/ui/components/node_text/NodeText.ts +9 -5
  2016. package/front_end/ui/components/panel_feedback/FeedbackButton.test.ts +6 -6
  2017. package/front_end/ui/components/panel_feedback/FeedbackButton.ts +3 -7
  2018. package/front_end/ui/components/panel_feedback/PanelFeedback.test.ts +6 -6
  2019. package/front_end/ui/components/panel_feedback/PanelFeedback.ts +6 -4
  2020. package/front_end/ui/components/panel_feedback/PreviewToggle.test.ts +5 -7
  2021. package/front_end/ui/components/panel_feedback/PreviewToggle.ts +5 -3
  2022. package/front_end/ui/components/panel_introduction_steps/PanelIntroductionSteps.ts +7 -4
  2023. package/front_end/ui/components/render_coordinator/render_coordinator.test.ts +53 -52
  2024. package/front_end/ui/components/render_coordinator/render_coordinator.ts +301 -2
  2025. package/front_end/ui/components/report_view/ReportView.test.ts +2 -4
  2026. package/front_end/ui/components/report_view/ReportView.ts +37 -20
  2027. package/front_end/ui/components/request_link_icon/RequestLinkIcon.test.ts +6 -11
  2028. package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +39 -32
  2029. package/front_end/ui/components/request_link_icon/requestLinkIcon.css +3 -0
  2030. package/front_end/ui/components/settings/SettingCheckbox.test.ts +3 -3
  2031. package/front_end/ui/components/settings/SettingCheckbox.ts +14 -9
  2032. package/front_end/ui/components/settings/SettingDeprecationWarning.ts +9 -5
  2033. package/front_end/ui/components/spinners/Spinner.ts +6 -4
  2034. package/front_end/ui/components/spinners/spinner.css +4 -4
  2035. package/front_end/ui/components/split_view/SplitView.test.ts +6 -8
  2036. package/front_end/ui/components/split_view/SplitView.ts +2 -4
  2037. package/front_end/ui/components/srgb_overlay/SrgbOverlay.ts +13 -13
  2038. package/front_end/ui/components/srgb_overlay/srgbOverlay.css +2 -2
  2039. package/front_end/ui/components/suggestion_input/SuggestionInput.ts +16 -9
  2040. package/front_end/ui/components/suggestion_input/suggestionInput.css +1 -2
  2041. package/front_end/ui/components/survey_link/SurveyLink.ts +4 -10
  2042. package/front_end/ui/components/switch/SwitchImpl.test.ts +0 -1
  2043. package/front_end/ui/components/switch/SwitchImpl.ts +9 -7
  2044. package/front_end/ui/components/switch/switch.css +18 -0
  2045. package/front_end/ui/components/text_editor/TextEditor.test.ts +11 -9
  2046. package/front_end/ui/components/text_editor/TextEditor.ts +2 -4
  2047. package/front_end/ui/components/text_editor/config.ts +22 -4
  2048. package/front_end/ui/components/text_prompt/TextPrompt.test.ts +3 -3
  2049. package/front_end/ui/components/text_prompt/TextPrompt.ts +4 -9
  2050. package/front_end/ui/components/text_prompt/textPrompt.css +6 -1
  2051. package/front_end/ui/components/tooltip/Tooltip.test.ts +55 -0
  2052. package/front_end/ui/components/tooltip/Tooltip.ts +146 -0
  2053. package/front_end/ui/components/tooltip/tooltip.css +41 -0
  2054. package/front_end/ui/components/tooltip/tooltips.ts +7 -0
  2055. package/front_end/ui/components/tree_outline/TreeOutline.test.ts +48 -52
  2056. package/front_end/ui/components/tree_outline/TreeOutline.ts +18 -19
  2057. package/front_end/ui/components/tree_outline/TreeOutlineUtils.ts +8 -8
  2058. package/front_end/ui/components/tree_outline/treeOutline.css +5 -3
  2059. package/front_end/ui/legacy/ARIAUtils.ts +6 -10
  2060. package/front_end/ui/legacy/ActionRegistration.ts +4 -4
  2061. package/front_end/ui/legacy/Context.ts +3 -3
  2062. package/front_end/ui/legacy/ContextMenu.ts +8 -2
  2063. package/front_end/ui/legacy/Dialog.ts +6 -8
  2064. package/front_end/ui/legacy/DockController.test.ts +2 -2
  2065. package/front_end/ui/legacy/DockController.ts +5 -5
  2066. package/front_end/ui/legacy/DropTarget.ts +2 -3
  2067. package/front_end/ui/legacy/EmptyWidget.ts +16 -12
  2068. package/front_end/ui/legacy/FilterBar.test.ts +3 -3
  2069. package/front_end/ui/legacy/FilterBar.ts +32 -17
  2070. package/front_end/ui/legacy/Geometry.ts +3 -11
  2071. package/front_end/ui/legacy/GlassPane.ts +3 -7
  2072. package/front_end/ui/legacy/Infobar.ts +10 -20
  2073. package/front_end/ui/legacy/InspectorView.ts +15 -11
  2074. package/front_end/ui/legacy/ListModel.ts +3 -3
  2075. package/front_end/ui/legacy/ListWidget.ts +25 -16
  2076. package/front_end/ui/legacy/PopoverHelper.ts +1 -1
  2077. package/front_end/ui/legacy/ProgressIndicator.ts +10 -8
  2078. package/front_end/ui/legacy/RemoteDebuggingTerminatedScreen.ts +1 -1
  2079. package/front_end/ui/legacy/ReportView.ts +7 -7
  2080. package/front_end/ui/legacy/ResizerWidget.ts +6 -6
  2081. package/front_end/ui/legacy/RootView.ts +1 -1
  2082. package/front_end/ui/legacy/SearchableView.ts +11 -12
  2083. package/front_end/ui/legacy/SettingsUI.ts +8 -17
  2084. package/front_end/ui/legacy/ShortcutRegistry.test.ts +3 -3
  2085. package/front_end/ui/legacy/SoftContextMenu.ts +1 -1
  2086. package/front_end/ui/legacy/SoftDropDown.ts +2 -3
  2087. package/front_end/ui/legacy/SplitWidget.test.ts +1 -2
  2088. package/front_end/ui/legacy/SplitWidget.ts +12 -7
  2089. package/front_end/ui/legacy/SuggestBox.test.ts +5 -5
  2090. package/front_end/ui/legacy/SuggestBox.ts +2 -3
  2091. package/front_end/ui/legacy/TabbedPane.ts +78 -18
  2092. package/front_end/ui/legacy/TargetCrashedScreen.ts +1 -1
  2093. package/front_end/ui/legacy/TextPrompt.ts +5 -5
  2094. package/front_end/ui/legacy/ThrottledWidget.ts +7 -2
  2095. package/front_end/ui/legacy/Toolbar.test.ts +102 -22
  2096. package/front_end/ui/legacy/Toolbar.ts +147 -181
  2097. package/front_end/ui/legacy/Treeoutline.ts +13 -16
  2098. package/front_end/ui/legacy/UIUtils.test.ts +13 -17
  2099. package/front_end/ui/legacy/UIUtils.ts +183 -165
  2100. package/front_end/ui/legacy/ViewManager.ts +14 -11
  2101. package/front_end/ui/legacy/ViewRegistration.test.ts +1 -1
  2102. package/front_end/ui/legacy/Widget.test.ts +121 -4
  2103. package/front_end/ui/legacy/Widget.ts +155 -55
  2104. package/front_end/ui/legacy/XLink.test.ts +4 -6
  2105. package/front_end/ui/legacy/XLink.ts +1 -3
  2106. package/front_end/ui/legacy/ZoomManager.ts +3 -3
  2107. package/front_end/ui/legacy/components/color_picker/ColorFormatSpec.ts +5 -5
  2108. package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +11 -9
  2109. package/front_end/ui/legacy/components/color_picker/ContrastInfo.ts +3 -3
  2110. package/front_end/ui/legacy/components/color_picker/FormatPickerContextMenu.ts +5 -5
  2111. package/front_end/ui/legacy/components/color_picker/Spectrum.test.ts +1 -1
  2112. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +24 -20
  2113. package/front_end/ui/legacy/components/color_picker/spectrum.css +5 -4
  2114. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +2 -5
  2115. package/front_end/ui/legacy/components/data_grid/DataGrid.test.ts +2 -3
  2116. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +96 -46
  2117. package/front_end/ui/legacy/components/data_grid/DataGridElement.test.ts +269 -0
  2118. package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +470 -0
  2119. package/front_end/ui/legacy/components/data_grid/SortableDataGrid.ts +6 -0
  2120. package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +112 -19
  2121. package/front_end/ui/legacy/components/data_grid/dataGrid.css +14 -19
  2122. package/front_end/ui/legacy/components/data_grid/data_grid.ts +2 -2
  2123. package/front_end/ui/legacy/components/inline_editor/AnimationTimingUI.ts +15 -15
  2124. package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +4 -4
  2125. package/front_end/ui/legacy/components/inline_editor/CSSAngle.test.ts +3 -3
  2126. package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +10 -5
  2127. package/front_end/ui/legacy/components/inline_editor/CSSAngleEditor.ts +10 -6
  2128. package/front_end/ui/legacy/components/inline_editor/CSSAngleSwatch.ts +8 -4
  2129. package/front_end/ui/legacy/components/inline_editor/CSSLinearEasingModel.ts +9 -9
  2130. package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +7 -6
  2131. package/front_end/ui/legacy/components/inline_editor/ColorMixSwatch.test.ts +1 -1
  2132. package/front_end/ui/legacy/components/inline_editor/ColorMixSwatch.ts +7 -5
  2133. package/front_end/ui/legacy/components/inline_editor/ColorSwatch.test.ts +5 -5
  2134. package/front_end/ui/legacy/components/inline_editor/ColorSwatch.ts +10 -6
  2135. package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +30 -32
  2136. package/front_end/ui/legacy/components/inline_editor/FontEditorUtils.ts +0 -13
  2137. package/front_end/ui/legacy/components/inline_editor/LinkSwatch.ts +11 -7
  2138. package/front_end/ui/legacy/components/inline_editor/SwatchPopoverHelper.ts +4 -4
  2139. package/front_end/ui/legacy/components/inline_editor/Swatches.ts +28 -30
  2140. package/front_end/ui/legacy/components/inline_editor/bezierSwatch.css +4 -4
  2141. package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +1 -4
  2142. package/front_end/ui/legacy/components/inline_editor/cssAngleSwatch.css +1 -4
  2143. package/front_end/ui/legacy/components/inline_editor/fontEditor.css +1 -1
  2144. package/front_end/ui/legacy/components/inline_editor/inline_editor.ts +0 -2
  2145. package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +1 -4
  2146. package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +1 -1
  2147. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +3 -3
  2148. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +4 -7
  2149. package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +3 -4
  2150. package/front_end/ui/legacy/components/perf_ui/BrickBreaker.ts +10 -10
  2151. package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +86 -77
  2152. package/front_end/ui/legacy/components/perf_ui/FilmStripView.test.ts +27 -10
  2153. package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +20 -18
  2154. package/front_end/ui/legacy/components/perf_ui/FlameChart.test.ts +2 -2
  2155. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +276 -201
  2156. package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +3 -3
  2157. package/front_end/ui/legacy/components/perf_ui/OverviewGrid.ts +10 -16
  2158. package/front_end/ui/legacy/components/perf_ui/PieChart.test.ts +6 -6
  2159. package/front_end/ui/legacy/components/perf_ui/PieChart.ts +6 -4
  2160. package/front_end/ui/legacy/components/perf_ui/TimelineGrid.test.ts +1 -1
  2161. package/front_end/ui/legacy/components/perf_ui/TimelineGrid.ts +1 -14
  2162. package/front_end/ui/legacy/components/perf_ui/TimelineOverviewCalculator.test.ts +1 -1
  2163. package/front_end/ui/legacy/components/perf_ui/TimelineOverviewCalculator.ts +17 -17
  2164. package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +54 -41
  2165. package/front_end/ui/legacy/components/perf_ui/filmStripView.css +1 -2
  2166. package/front_end/ui/legacy/components/perf_ui/flameChart.css +1 -12
  2167. package/front_end/ui/legacy/components/perf_ui/overviewGrid.css +2 -5
  2168. package/front_end/ui/legacy/components/perf_ui/perf_ui-meta.ts +13 -11
  2169. package/front_end/ui/legacy/components/perf_ui/pieChart.css +1 -1
  2170. package/front_end/ui/legacy/components/perf_ui/timelineGrid.css +1 -4
  2171. package/front_end/ui/legacy/components/quick_open/CommandMenu.test.ts +3 -3
  2172. package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +33 -30
  2173. package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +12 -8
  2174. package/front_end/ui/legacy/components/quick_open/HelpQuickOpen.ts +8 -12
  2175. package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +40 -56
  2176. package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.test.ts +8 -7
  2177. package/front_end/ui/legacy/components/source_frame/FontView.ts +2 -2
  2178. package/front_end/ui/legacy/components/source_frame/ImageView.ts +2 -2
  2179. package/front_end/ui/legacy/components/source_frame/JSONView.ts +2 -2
  2180. package/front_end/ui/legacy/components/source_frame/PreviewFactory.ts +7 -3
  2181. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.test.ts +4 -2
  2182. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +7 -5
  2183. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +7 -9
  2184. package/front_end/ui/legacy/components/source_frame/StreamingContentHexView.ts +1 -1
  2185. package/front_end/ui/legacy/components/source_frame/XMLView.ts +3 -3
  2186. package/front_end/ui/legacy/components/source_frame/resourceSourceFrame.css +1 -1
  2187. package/front_end/ui/legacy/components/utils/ImagePreview.ts +26 -26
  2188. package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +3 -4
  2189. package/front_end/ui/legacy/components/utils/Linkifier.test.ts +11 -7
  2190. package/front_end/ui/legacy/components/utils/Linkifier.ts +6 -7
  2191. package/front_end/ui/legacy/components/utils/TargetDetachedDialog.ts +3 -12
  2192. package/front_end/ui/legacy/dialog.css +2 -1
  2193. package/front_end/ui/legacy/dropTarget.css +1 -4
  2194. package/front_end/ui/legacy/emptyWidget.css +0 -21
  2195. package/front_end/ui/legacy/filter.css +3 -1
  2196. package/front_end/ui/legacy/glassPane.css +2 -4
  2197. package/front_end/ui/legacy/infobar.css +14 -2
  2198. package/front_end/ui/legacy/inspectorCommon.css +721 -164
  2199. package/front_end/ui/legacy/inspectorViewTabbedPane.css +1 -20
  2200. package/front_end/ui/legacy/legacy.ts +0 -2
  2201. package/front_end/ui/legacy/reportView.css +8 -2
  2202. package/front_end/ui/legacy/rootView.css +1 -4
  2203. package/front_end/ui/legacy/searchableView.css +1 -1
  2204. package/front_end/ui/legacy/softContextMenu.css +1 -1
  2205. package/front_end/ui/legacy/softDropDown.css +1 -2
  2206. package/front_end/ui/legacy/tabbedPane.css +127 -38
  2207. package/front_end/ui/legacy/textPrompt.css +1 -0
  2208. package/front_end/ui/legacy/theme_support/ThemeSupport.ts +0 -5
  2209. package/front_end/ui/legacy/toolbar.css +11 -567
  2210. package/front_end/ui/legacy/treeoutline.css +7 -7
  2211. package/front_end/ui/legacy/viewContainers.css +3 -3
  2212. package/front_end/ui/lit/i18n-template.test.ts +51 -0
  2213. package/front_end/ui/lit/i18n-template.ts +32 -0
  2214. package/front_end/ui/{lit-html/lit-html.ts → lit/lit.ts} +13 -14
  2215. package/front_end/ui/visual_logging/Debugging.test.ts +0 -9
  2216. package/front_end/ui/visual_logging/Debugging.ts +88 -30
  2217. package/front_end/ui/visual_logging/DomState.test.ts +6 -6
  2218. package/front_end/ui/visual_logging/KnownContextValues.ts +263 -12
  2219. package/front_end/ui/visual_logging/LoggingDriver.test.ts +6 -7
  2220. package/front_end/ui/visual_logging/LoggingDriver.ts +3 -4
  2221. package/front_end/ui/visual_logging/LoggingEvents.test.ts +16 -16
  2222. package/front_end/ui/visual_logging/LoggingEvents.ts +1 -1
  2223. package/front_end/ui/visual_logging/visual_logging.ts +13 -2
  2224. package/inspector_overlay/common.css +1 -4
  2225. package/inspector_overlay/common.ts +0 -1
  2226. package/inspector_overlay/css_grid_label_helpers.test.ts +14 -15
  2227. package/inspector_overlay/css_grid_label_helpers.ts +2 -2
  2228. package/inspector_overlay/drag_resize_handler.ts +4 -4
  2229. package/inspector_overlay/highlight_common.test.ts +6 -6
  2230. package/inspector_overlay/highlight_common.ts +0 -1
  2231. package/inspector_overlay/highlight_flex_common.test.ts +45 -45
  2232. package/inspector_overlay/main.ts +12 -13
  2233. package/inspector_overlay/resources.grd +1 -1
  2234. package/inspector_overlay/testing/InspectorOverlayHelpers.ts +3 -3
  2235. package/inspector_overlay/tool_highlight.css +3 -3
  2236. package/inspector_overlay/tool_highlight.test.ts +3 -3
  2237. package/inspector_overlay/tool_highlight.ts +0 -1
  2238. package/inspector_overlay/tool_persistent.ts +7 -13
  2239. package/inspector_overlay/tool_screenshot.ts +6 -6
  2240. package/inspector_overlay/tool_source_order.ts +1 -2
  2241. package/inspector_overlay/tool_window_controls.test.ts +2 -2
  2242. package/package.json +30 -32
  2243. package/scripts/add_icon_paths.py +71 -0
  2244. package/scripts/ai_assistance/README.md +46 -0
  2245. package/scripts/ai_assistance/auto-run-helpers.js +82 -0
  2246. package/scripts/ai_assistance/auto-run.js +694 -0
  2247. package/scripts/ai_assistance/auto-run.test.js +88 -0
  2248. package/scripts/{freestyler → ai_assistance}/eval/index.js +1 -1
  2249. package/scripts/{freestyler → ai_assistance}/to_tsv.mjs +2 -3
  2250. package/scripts/ai_assistance/tsconfig.json +15 -0
  2251. package/scripts/ai_assistance/types.d.ts +55 -0
  2252. package/scripts/build/compress_files.js +2 -2
  2253. package/scripts/build/cross_reference_ninja_and_tsc.js +27 -16
  2254. package/scripts/build/devtools_plugin.js +2 -2
  2255. package/scripts/build/esbuild.js +2 -1
  2256. package/scripts/build/generate_css_js_files.js +13 -57
  2257. package/scripts/build/generate_deprecations.py +0 -2
  2258. package/scripts/build/generate_devtools_grd.py +1 -2
  2259. package/scripts/build/generate_html_entrypoint.js +1 -0
  2260. package/scripts/build/generate_supported_css.py +1 -1
  2261. package/scripts/build/ninja/copy-file.js +6 -4
  2262. package/scripts/build/ninja/copy-files.js +1 -0
  2263. package/scripts/build/ninja/generate-declaration.js +1 -0
  2264. package/scripts/build/ninja/generate-tsconfig.js +0 -1
  2265. package/scripts/build/ninja/generate_css.gni +1 -16
  2266. package/scripts/build/ninja/minify-json-files.js +1 -0
  2267. package/scripts/build/rollup.config.mjs +1 -1
  2268. package/scripts/build/tests/generate_css_js_files_test.js +5 -56
  2269. package/scripts/build/typescript/ts_library.py +27 -1
  2270. package/scripts/build/typescript/typescript.gni +4 -1
  2271. package/scripts/check_esbuild_versions.js +1 -1
  2272. package/scripts/check_experiments.js +87 -25
  2273. package/scripts/component_server/server.js +146 -55
  2274. package/scripts/devtools_paths.js +31 -15
  2275. package/scripts/eslint_rules/README.md +10 -2
  2276. package/scripts/eslint_rules/lib/{canvas_context_tracking.js → canvas-context-tracking.js} +3 -0
  2277. package/scripts/eslint_rules/lib/{check_css_import.js → check-css-import.js} +7 -3
  2278. package/scripts/eslint_rules/lib/{check_enumerated_histograms.js → check-enumerated-histograms.js} +3 -0
  2279. package/scripts/eslint_rules/lib/{check_license_header.js → check-license-header.js} +7 -2
  2280. package/scripts/eslint_rules/lib/{check_test_definitions.js → check-test-definitions.js} +5 -1
  2281. package/scripts/eslint_rules/lib/{check_was_shown_methods.js → check-was-shown-methods.js} +3 -0
  2282. package/scripts/eslint_rules/lib/{enforce_bound_render_for_schedule_render.js → enforce-bound-render-for-schedule-render.js} +3 -0
  2283. package/scripts/eslint_rules/lib/{enforce_custom_event_names.js → enforce-custom-event-names.js} +3 -0
  2284. package/scripts/eslint_rules/lib/{enforce_default_import_name.js → enforce-default-import-name.js} +5 -1
  2285. package/scripts/eslint_rules/lib/enforce-optional-properties-last.js +4 -1
  2286. package/scripts/eslint_rules/lib/{es_modules_import.js → es-modules-import.js} +26 -1
  2287. package/scripts/eslint_rules/lib/{html_tagged_template.js → html-tagged-template.js} +8 -4
  2288. package/scripts/eslint_rules/lib/{inject_checkbox_styles.js → inject-checkbox-styles.js} +7 -2
  2289. package/scripts/eslint_rules/lib/{inline_type_imports.js → inline-type-imports.js} +3 -0
  2290. package/scripts/eslint_rules/lib/{jslog_context_list.js → jslog-context-list.js} +4 -1
  2291. package/scripts/eslint_rules/lib/{l10n_filename_matches.js → l10n-filename-matches.js} +42 -23
  2292. package/scripts/eslint_rules/lib/{l10n_helper.js → l10n-helper.js} +5 -3
  2293. package/scripts/eslint_rules/lib/{l10n_i18nString_call_only_with_uistrings.js → l10n-i18nString-call-only-with-uistrings.js} +3 -0
  2294. package/scripts/eslint_rules/lib/{l10n_no_i18nString_calls_module_instantiation.js → l10n-no-i18nString-calls-module-instantiation.js} +5 -1
  2295. package/scripts/eslint_rules/lib/{l10n_no_locked_or_placeholder_only_phrase.js → l10n-no-locked-or-placeholder-only-phrase.js} +4 -1
  2296. package/scripts/eslint_rules/lib/{l10n_no_uistrings_export.js → l10n-no-uistrings-export.js} +15 -6
  2297. package/scripts/eslint_rules/lib/{l10n_no_unused_message.js → l10n-no-unused-message.js} +13 -3
  2298. package/scripts/eslint_rules/lib/{lit_html_no_attribute_quotes.js → lit-no-attribute-quotes.js} +4 -1
  2299. package/scripts/eslint_rules/lib/{lit_template_result_or_nothing.js → lit-template-result-or-nothing.js} +44 -26
  2300. package/scripts/eslint_rules/lib/{ban_a_tags_in_lit_html.js → no-a-tags-in-lit.js} +3 -1
  2301. package/scripts/eslint_rules/lib/no-assert-deep-strict-equal.js +61 -0
  2302. package/scripts/eslint_rules/lib/no-assert-equal-boolean-null-undefined.js +125 -0
  2303. package/scripts/eslint_rules/lib/{avoid_assert_equal.js → no-assert-equal.js} +3 -0
  2304. package/scripts/eslint_rules/lib/no-assert-strict-equal-for-arrays-and-objects.js +78 -0
  2305. package/scripts/eslint_rules/lib/{no_bound_component_methods.js → no-bound-component-methods.js} +4 -1
  2306. package/scripts/eslint_rules/lib/{commented_out_console.js → no-commented-out-console.js} +4 -1
  2307. package/scripts/eslint_rules/lib/{commented_out_import.js → no-commented-out-import.js} +4 -1
  2308. package/scripts/eslint_rules/lib/no-customized-builtin-elements.js +123 -0
  2309. package/scripts/eslint_rules/lib/{no_importing_images_from_src.js → no-importing-images-from-src.js} +3 -0
  2310. package/scripts/eslint_rules/lib/{ban_imports_in_directory.js → no-imports-in-directory.js} +5 -2
  2311. package/scripts/eslint_rules/lib/{no_it_screenshot_only_or_repeat.js → no-it-screenshot-only-or-repeat.js} +3 -0
  2312. package/scripts/eslint_rules/lib/{ban_new_lit_element_components.js → no-new-lit-element-components.js} +4 -3
  2313. package/scripts/eslint_rules/lib/{no_only_eslint_tests.js → no-only-eslint-tests.js} +4 -1
  2314. package/scripts/eslint_rules/lib/{ban_screenshot_test_outside_perf_panel.js → no-screenshot-test-outside-perf-panel.js} +8 -3
  2315. package/scripts/eslint_rules/lib/{ban_self_closing_custom_element_tagnames.js → no-self-closing-custom-element-tagnames.js} +3 -0
  2316. package/scripts/eslint_rules/lib/{no_underscored_properties.js → no-underscored-properties.js} +3 -0
  2317. package/scripts/eslint_rules/lib/prefer-assert-instance-of.js +89 -0
  2318. package/scripts/eslint_rules/lib/prefer-assert-is-ok.js +71 -0
  2319. package/scripts/eslint_rules/lib/prefer-assert-length-of.js +79 -0
  2320. package/scripts/eslint_rules/lib/{use_private_class_members.js → prefer-private-class-members.js} +16 -8
  2321. package/scripts/eslint_rules/lib/prefer-readonly-keyword.js +57 -0
  2322. package/scripts/eslint_rules/lib/prefer-url-string.js +95 -0
  2323. package/scripts/eslint_rules/lib/{screenshot_assertion_in_it_screenshot.js → screenshot-assertion-in-it-screenshot.js} +3 -0
  2324. package/scripts/eslint_rules/lib/{set_data_type_reference.js → set-data-type-reference.js} +3 -0
  2325. package/scripts/eslint_rules/lib/{single_screenshot_assertion_per_test.js → single-screenshot-assertion-per-test.js} +3 -0
  2326. package/scripts/eslint_rules/lib/{static_custom_event_names.js → static-custom-event-names.js} +3 -0
  2327. package/scripts/eslint_rules/lib/{trace_engine_test_timeouts.js → trace-engine-test-timeouts.js} +3 -0
  2328. package/scripts/eslint_rules/lib/utils.js +8 -8
  2329. package/scripts/eslint_rules/tests/{canvas_context_tracking_test.js → canvas-context-tracking.test.js} +10 -8
  2330. package/scripts/eslint_rules/tests/{check_css_import_test.js → check-css-import.test.js} +14 -23
  2331. package/scripts/eslint_rules/tests/check-enumerated-histograms.test.js +34 -0
  2332. package/scripts/eslint_rules/tests/{check_license_header_test.js → check-license-header.test.js} +11 -13
  2333. package/scripts/eslint_rules/tests/{check_test_definitions_test.js → check-test-definitions.test.js} +13 -8
  2334. package/scripts/eslint_rules/tests/{check_was_shown_methods_test.js → check-was-shown-methods.test.js} +11 -13
  2335. package/scripts/eslint_rules/tests/{enforce_bound_render_for_schedule_render_test.js → enforce-bound-render-for-schedule-render.test.js} +10 -8
  2336. package/scripts/eslint_rules/tests/{enforce_custom_event_names_test.js → enforce-custom-event-names.test.js} +11 -13
  2337. package/scripts/eslint_rules/tests/{enforce_default_import_name_test.js → enforce-default-import-name.test.js} +24 -8
  2338. package/scripts/eslint_rules/tests/{enforce-optional-properties-last_test.js → enforce-optional-properties-last.test.js} +3 -7
  2339. package/scripts/eslint_rules/tests/{es_modules_import_test.js → es-modules-import.test.js} +109 -66
  2340. package/scripts/eslint_rules/tests/{html_tagged_template_test.js → html-tagged-template.test.js} +27 -28
  2341. package/scripts/eslint_rules/tests/{inject_checkbox_styles_test.js → inject-checkbox-styles.test.js} +26 -22
  2342. package/scripts/eslint_rules/tests/{inline_type_imports_test.js → inline-type-imports.test.js} +4 -7
  2343. package/scripts/eslint_rules/tests/{jslog_context_list_test.js → jslog-context-list.test.js} +47 -36
  2344. package/scripts/eslint_rules/tests/l10n-filename-matches.test.js +138 -0
  2345. package/scripts/eslint_rules/tests/{l10n_i18nString_call_only_with_uistrings_test.js → l10n-i18nString-call-only-with-uistrings.test.js} +7 -8
  2346. package/scripts/eslint_rules/tests/{l10n_no_i18nString_calls_module_instantiation_test.js → l10n-no-i18nString-calls-module-instantiation.test.js} +11 -9
  2347. package/scripts/eslint_rules/tests/{l10n_no_locked_or_placeholder_only_phrase_test.js → l10n-no-locked-or-placeholder-only-phrase.test.js} +13 -8
  2348. package/scripts/eslint_rules/tests/{l10n_no_uistrings_export_test.js → l10n-no-uistrings-export.test.js} +14 -9
  2349. package/scripts/eslint_rules/tests/{l10n_no_unused_message_test.js → l10n-no-unused-message.test.js} +8 -8
  2350. package/scripts/eslint_rules/tests/{lit_html_no_attribute_quotes_test.js → lit-no-attribute-quotes.test.js} +11 -12
  2351. package/scripts/eslint_rules/tests/{lit_template_result_or_nothing_test.js → lit-template-result-or-nothing.test.js} +33 -36
  2352. package/scripts/eslint_rules/tests/no-a-tags-in-lit.test.js +69 -0
  2353. package/scripts/eslint_rules/tests/no-assert-deep-strict-equal.test.js +52 -0
  2354. package/scripts/eslint_rules/tests/no-assert-equal-boolean-null-undefined.test.js +208 -0
  2355. package/scripts/eslint_rules/tests/{avoid_assert_equal_test.js → no-assert-equal.test.js} +4 -5
  2356. package/scripts/eslint_rules/tests/no-assert-strict-equal-for-arrays-and-objects.test.js +88 -0
  2357. package/scripts/eslint_rules/tests/{no_bound_component_methods_test.js → no-bound-component-methods.test.js} +25 -13
  2358. package/scripts/eslint_rules/tests/{commented_out_console_test.js → no-commented-out-console.test.js} +4 -7
  2359. package/scripts/eslint_rules/tests/{commented_out_import_test.js → no-commented-out-import.test.js} +4 -7
  2360. package/scripts/eslint_rules/tests/no-customized-builtin-elements.test.js +151 -0
  2361. package/scripts/eslint_rules/tests/{no_importing_images_from_src_test.js → no-importing-images-from-src.test.js} +13 -12
  2362. package/scripts/eslint_rules/tests/no-imports-in-directory.test.js +121 -0
  2363. package/scripts/eslint_rules/tests/{no_it_screenshot_only_or_repeat_test.js → no-it-screenshot-only-or-repeat.test.js} +4 -7
  2364. package/scripts/eslint_rules/tests/{ban_new_lit_element_components_test.js → no-new-lit-element-components.test.js} +4 -7
  2365. package/scripts/eslint_rules/tests/{no_only_eslint_tests_test.js → no-only-eslint-tests.test.js} +20 -15
  2366. package/scripts/eslint_rules/tests/{ban_screenshot_test_outside_perf_panel_test.js → no-screenshot-test-outside-perf-panel.test.js} +5 -6
  2367. package/scripts/eslint_rules/tests/no-self-closing-custom-element-tagnames.test.js +61 -0
  2368. package/scripts/eslint_rules/tests/{no_underscored_properties_test.js → no-underscored-properties.test.js} +20 -13
  2369. package/scripts/eslint_rules/tests/prefer-assert-instance-of.test.js +196 -0
  2370. package/scripts/eslint_rules/tests/prefer-assert-is-ok.test.js +80 -0
  2371. package/scripts/eslint_rules/tests/prefer-assert-length-of.test.js +144 -0
  2372. package/scripts/eslint_rules/tests/{use_private_class_members_test.js → prefer-private-class-members.test.js} +4 -7
  2373. package/scripts/eslint_rules/tests/prefer-readonly-keyword.test.js +67 -0
  2374. package/scripts/eslint_rules/tests/prefer-url-string.test.js +87 -0
  2375. package/scripts/eslint_rules/tests/{screenshot_assertion_in_it_screenshot_test.js → screenshot-assertion-in-it-screenshot.test.js} +4 -7
  2376. package/scripts/eslint_rules/tests/{set_data_type_reference_test.js → set-data-type-reference.test.js} +19 -11
  2377. package/scripts/eslint_rules/tests/{single_screenshot_assertion_per_test_test.js → single-screenshot-assertion-per-test.test.js} +4 -7
  2378. package/scripts/eslint_rules/tests/{static_custom_event_names_test.js → static-custom-event-names.test.js} +14 -14
  2379. package/scripts/eslint_rules/tests/{trace_engine_test_timeouts_test.js → trace-engine-test-timeouts.test.js} +5 -7
  2380. package/scripts/eslint_rules/tests/utils/utils.js +18 -0
  2381. package/scripts/eslint_rules/tests/{utils_test.js → utils.test.js} +9 -9
  2382. package/scripts/generate_metric_compare_strings.js +1 -1
  2383. package/scripts/javascript_natives/index.js +14 -6
  2384. package/scripts/migration/web-tests-esm/rename-legacy-global.mjs +4 -4
  2385. package/scripts/npm_test.js +1 -0
  2386. package/scripts/reformat-clang-js-ts.js +1 -2
  2387. package/scripts/run_on_target.mjs +1 -1
  2388. package/scripts/search-trace-files.js +1 -1
  2389. package/scripts/stylelint_rules/lib/{use_theme_colors.js → use_theme_colors.mjs} +131 -49
  2390. package/scripts/stylelint_rules/tests/{use_theme_colors_test.js → use_theme_colors.test.js} +116 -44
  2391. package/scripts/utils.js +23 -14
  2392. package/scripts/watch_build.js +19 -76
  2393. package/tsconfig.json +2 -1
  2394. package/.eslintignore +0 -41
  2395. package/.eslintrc.js +0 -315
  2396. package/front_end/.eslintrc.js +0 -96
  2397. package/front_end/Images/whatsnew.avif +0 -0
  2398. package/front_end/core/sdk/CPUProfileDataModel.ts +0 -17
  2399. package/front_end/core/sdk/ProfileTreeModel.ts +0 -17
  2400. package/front_end/legacy_test_runner/.eslintrc.js +0 -13
  2401. package/front_end/models/trace/extras/URLForEntry.ts +0 -56
  2402. package/front_end/models/trace/handlers/.eslintrc.js +0 -18
  2403. package/front_end/models/trace/lantern/.eslintrc.js +0 -16
  2404. package/front_end/panels/application/reportingApiReportsView.css +0 -18
  2405. package/front_end/panels/elements/components/AdornerSettingsPane.ts +0 -132
  2406. package/front_end/panels/elements/components/adornerSettingsPane.css +0 -40
  2407. package/front_end/panels/emulation/deviceModeToolbar.css +0 -14
  2408. package/front_end/panels/freestyler/AiAgent.test.ts +0 -554
  2409. package/front_end/panels/freestyler/AiAgent.ts +0 -639
  2410. package/front_end/panels/freestyler/AiHistoryStorage.ts +0 -73
  2411. package/front_end/panels/freestyler/ChangeManager.test.ts +0 -132
  2412. package/front_end/panels/freestyler/DrJonesNetworkAgent.test.ts +0 -381
  2413. package/front_end/panels/freestyler/DrJonesNetworkAgent.ts +0 -450
  2414. package/front_end/panels/freestyler/components/FreestylerChatUi.ts +0 -1366
  2415. package/front_end/panels/freestyler/components/UserActionRow.test.ts +0 -60
  2416. package/front_end/panels/freestyler/components/UserActionRow.ts +0 -383
  2417. package/front_end/panels/freestyler/components/userActionRow.css +0 -123
  2418. package/front_end/panels/freestyler/freestyler.ts +0 -16
  2419. package/front_end/panels/protocol_monitor/components/Toolbar.ts +0 -91
  2420. package/front_end/panels/protocol_monitor/components/components.ts +0 -11
  2421. package/front_end/panels/protocol_monitor/components/toolbar.css +0 -31
  2422. package/front_end/panels/recorder/components/StartView.ts +0 -133
  2423. package/front_end/panels/recorder/injected/.eslintrc.js +0 -14
  2424. package/front_end/panels/timeline/ExtensionDataGatherer.ts +0 -65
  2425. package/front_end/panels/timeline/TimelineLandingPage.ts +0 -108
  2426. package/front_end/panels/timeline/fixtures/traces/nested-initiators.json.gz +0 -0
  2427. package/front_end/panels/timeline/fixtures/traces/set-timeout-long-task.json.gz +0 -0
  2428. package/front_end/panels/timeline/historyToolbarButton.css +0 -81
  2429. package/front_end/panels/timeline/utils/NetworkRequest.ts +0 -40
  2430. package/front_end/panels/whats_new/resources/whatsnew.avif +0 -0
  2431. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ChromeTargetManager.d.ts +0 -26
  2432. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ChromeTargetManager.d.ts.map +0 -1
  2433. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ChromeTargetManager.js +0 -311
  2434. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ChromeTargetManager.js.map +0 -1
  2435. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FirefoxTargetManager.d.ts +0 -36
  2436. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FirefoxTargetManager.d.ts.map +0 -1
  2437. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FirefoxTargetManager.js +0 -154
  2438. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FirefoxTargetManager.js.map +0 -1
  2439. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ChromeTargetManager.d.ts +0 -26
  2440. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ChromeTargetManager.d.ts.map +0 -1
  2441. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ChromeTargetManager.js +0 -307
  2442. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ChromeTargetManager.js.map +0 -1
  2443. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FirefoxTargetManager.d.ts +0 -36
  2444. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FirefoxTargetManager.d.ts.map +0 -1
  2445. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FirefoxTargetManager.js +0 -150
  2446. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FirefoxTargetManager.js.map +0 -1
  2447. package/front_end/third_party/puppeteer/package/src/cdp/ChromeTargetManager.ts +0 -438
  2448. package/front_end/third_party/puppeteer/package/src/cdp/FirefoxTargetManager.ts +0 -214
  2449. package/front_end/third_party/third-party-web/package/.prettierrc +0 -10
  2450. package/front_end/ui/components/data_grid/DataGrid.test.ts +0 -1058
  2451. package/front_end/ui/components/data_grid/DataGrid.ts +0 -968
  2452. package/front_end/ui/components/data_grid/DataGridContextMenuUtils.ts +0 -67
  2453. package/front_end/ui/components/data_grid/DataGridController.test.ts +0 -433
  2454. package/front_end/ui/components/data_grid/DataGridController.ts +0 -302
  2455. package/front_end/ui/components/data_grid/DataGridControllerIntegrator.ts +0 -49
  2456. package/front_end/ui/components/data_grid/DataGridEvents.ts +0 -121
  2457. package/front_end/ui/components/data_grid/DataGridRenderers.ts +0 -27
  2458. package/front_end/ui/components/data_grid/DataGridUtils.ts +0 -259
  2459. package/front_end/ui/components/data_grid/README.md +0 -118
  2460. package/front_end/ui/components/data_grid/dataGrid.css +0 -188
  2461. package/front_end/ui/components/data_grid/dataGridController.css +0 -11
  2462. package/front_end/ui/components/data_grid/data_grid.ts +0 -18
  2463. package/front_end/ui/components/dialogs/IconDialog.ts +0 -160
  2464. package/front_end/ui/components/dialogs/iconDialog.css +0 -24
  2465. package/front_end/ui/components/docs/.eslintrc.js +0 -19
  2466. package/front_end/ui/components/docs/data_grid/adding-data.html +0 -35
  2467. package/front_end/ui/components/docs/data_grid/adding-data.ts +0 -61
  2468. package/front_end/ui/components/docs/data_grid/basic.ts +0 -27
  2469. package/front_end/ui/components/docs/data_grid/empty.html +0 -31
  2470. package/front_end/ui/components/docs/data_grid/empty.ts +0 -21
  2471. package/front_end/ui/components/docs/data_grid/hide-cols.html +0 -35
  2472. package/front_end/ui/components/docs/data_grid/hide-cols.ts +0 -59
  2473. package/front_end/ui/components/docs/data_grid/large-data.html +0 -30
  2474. package/front_end/ui/components/docs/data_grid/large-data.ts +0 -43
  2475. package/front_end/ui/components/docs/data_grid/sticky-headers.html +0 -30
  2476. package/front_end/ui/components/docs/data_grid/sticky-headers.ts +0 -44
  2477. package/front_end/ui/components/docs/data_grid/three_columns.html +0 -29
  2478. package/front_end/ui/components/docs/data_grid/three_columns.ts +0 -44
  2479. package/front_end/ui/components/docs/data_grid_controller/basic.ts +0 -45
  2480. package/front_end/ui/components/docs/data_grid_controller/custom-context-menu-items.html +0 -28
  2481. package/front_end/ui/components/docs/data_grid_controller/custom-context-menu-items.ts +0 -34
  2482. package/front_end/ui/components/docs/data_grid_controller/filter.html +0 -40
  2483. package/front_end/ui/components/docs/data_grid_controller/filter.ts +0 -298
  2484. package/front_end/ui/components/docs/icon_dialog/basic.ts +0 -46
  2485. package/front_end/ui/components/docs/recorder_start_view/basic.html +0 -20
  2486. package/front_end/ui/components/docs/recorder_start_view/basic.ts +0 -13
  2487. package/front_end/ui/components/docs/shortcut_dialog/basic.html +0 -28
  2488. package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +0 -331
  2489. package/front_end/ui/legacy/HistoryInput.ts +0 -61
  2490. package/front_end/ui/legacy/applicationColorTokens.css +0 -61
  2491. package/front_end/ui/legacy/components/data_grid/DataGridWithPreview.ts +0 -297
  2492. package/front_end/ui/legacy/components/inline_editor/CSSLength.test.ts +0 -75
  2493. package/front_end/ui/legacy/components/inline_editor/CSSLength.ts +0 -156
  2494. package/front_end/ui/legacy/components/inline_editor/cssLength.css +0 -27
  2495. package/front_end/ui/legacy/components/perf_ui/.eslintrc.js +0 -18
  2496. package/front_end/ui/legacy/designTokens.css +0 -115
  2497. package/front_end/ui/legacy/inspectorSyntaxHighlight.css +0 -131
  2498. package/front_end/ui/legacy/radioButton.css +0 -32
  2499. package/front_end/ui/legacy/slider.css +0 -51
  2500. package/front_end/ui/legacy/themeColors.css +0 -774
  2501. package/front_end/ui/legacy/tokens.css +0 -202
  2502. package/front_end/ui/lit-html/static.test.ts +0 -153
  2503. package/front_end/ui/lit-html/static.ts +0 -127
  2504. package/scripts/.eslintrc.js +0 -9
  2505. package/scripts/check_enumerated_histograms.js +0 -101
  2506. package/scripts/eslint_rules/lib/ban_style_tags_in_lit_html.js +0 -40
  2507. package/scripts/eslint_rules/lib/compare_arrays_with_assert_deepequal.js +0 -60
  2508. package/scripts/eslint_rules/lib/lit_html_host_this.js +0 -86
  2509. package/scripts/eslint_rules/lib/lit_no_style_interpolation.js +0 -80
  2510. package/scripts/eslint_rules/lib/migrate_create_shadow_root_with_styles.js +0 -110
  2511. package/scripts/eslint_rules/lib/migrate_register_required_css.js +0 -240
  2512. package/scripts/eslint_rules/lib/no_repeated_tests.js +0 -30
  2513. package/scripts/eslint_rules/lib/prefer_readonly_keyword.js +0 -27
  2514. package/scripts/eslint_rules/lib/static_tag_must_be_static_property.js +0 -71
  2515. package/scripts/eslint_rules/tests/.eslintrc.js +0 -18
  2516. package/scripts/eslint_rules/tests/ban_a_tags_in_lit_html_test.js +0 -64
  2517. package/scripts/eslint_rules/tests/ban_imports_in_directory_test.js +0 -59
  2518. package/scripts/eslint_rules/tests/ban_self_closing_custom_element_tagnames_test.js +0 -64
  2519. package/scripts/eslint_rules/tests/ban_style_tags_in_lit_html_test.js +0 -61
  2520. package/scripts/eslint_rules/tests/check_enumerated_histograms_test.js +0 -32
  2521. package/scripts/eslint_rules/tests/compare_arrays_with_assert_deepequal_test.js +0 -110
  2522. package/scripts/eslint_rules/tests/l10n_filename_matches_test.js +0 -64
  2523. package/scripts/eslint_rules/tests/lit_html_host_this_test.js +0 -48
  2524. package/scripts/eslint_rules/tests/lit_no_style_interpolation_test.js +0 -60
  2525. package/scripts/eslint_rules/tests/migrate_create_shadow_root_with_styles_test.js +0 -265
  2526. package/scripts/eslint_rules/tests/migrate_register_required_css_test.js +0 -473
  2527. package/scripts/eslint_rules/tests/no_repeated_tests_test.js +0 -49
  2528. package/scripts/eslint_rules/tests/prefer_readonly_keyword_test.js +0 -54
  2529. package/scripts/eslint_rules/tests/static_tag_must_be_static_property_test.js +0 -93
  2530. package/scripts/freestyler/README.md +0 -45
  2531. package/scripts/freestyler/auto_freestyler.js +0 -429
  2532. /package/front_end/ui/components/docs/{freestyler → ai_assistance}/basic.html +0 -0
  2533. /package/front_end/ui/components/docs/{freestyler → ai_assistance}/empty_state.html +0 -0
  2534. /package/front_end/ui/{lit-html → lit}/visibility.gni +0 -0
  2535. /package/scripts/{freestyler → ai_assistance}/eval/index.html +0 -0
@@ -4,9 +4,10 @@
4
4
 
5
5
  import * as Common from '../../core/common/common.js';
6
6
  import * as Host from '../../core/host/host.js';
7
- import type * as Platform from '../../core/platform/platform.js';
7
+ import * as Platform from '../../core/platform/platform.js';
8
8
  import * as SDK from '../../core/sdk/sdk.js';
9
9
  import * as Workspace from '../../models/workspace/workspace.js';
10
+ import {mockAidaClient} from '../../testing/AiAssistanceHelpers.js';
10
11
  import {findMenuItemWithLabel, getMenu} from '../../testing/ContextMenuHelpers.js';
11
12
  import {dispatchClickEvent} from '../../testing/DOMHelpers.js';
12
13
  import {describeWithEnvironment, getGetHostConfigStub, registerNoopActions} from '../../testing/EnvironmentHelpers.js';
@@ -17,18 +18,9 @@ import * as SourcesPanel from '../sources/sources.js';
17
18
  import * as TimelinePanel from '../timeline/timeline.js';
18
19
  import * as TimelineUtils from '../timeline/utils/utils.js';
19
20
 
20
- import * as AiAgent from './AiAgent.js';
21
- import * as Freestyler from './freestyler.js';
21
+ import * as AiAssistance from './ai_assistance.js';
22
22
 
23
- function getTestAidaClient() {
24
- return {
25
- async *
26
- fetch() {
27
- yield {explanation: 'test', metadata: {}, completed: true};
28
- },
29
- registerClientEvent: sinon.spy(),
30
- };
31
- }
23
+ const {urlString} = Platform.DevToolsPath;
32
24
 
33
25
  function getTestSyncInfo(): Host.InspectorFrontendHostAPI.SyncInformation {
34
26
  return {isSyncActive: true};
@@ -39,8 +31,8 @@ async function drainMicroTasks() {
39
31
  }
40
32
 
41
33
  describeWithEnvironment('FreestylerPanel', () => {
42
- let mockView: sinon.SinonStub<[Freestyler.Props, unknown, HTMLElement]>;
43
- let panel: Freestyler.FreestylerPanel;
34
+ let mockView: sinon.SinonStub<[AiAssistance.Props, unknown, HTMLElement]>;
35
+ let panel: AiAssistance.AiAssistancePanel;
44
36
 
45
37
  beforeEach(() => {
46
38
  mockView = sinon.stub();
@@ -57,56 +49,56 @@ describeWithEnvironment('FreestylerPanel', () => {
57
49
 
58
50
  describe('consent view', () => {
59
51
  it('should render consent view when the consent is not given before', async () => {
60
- panel = new Freestyler.FreestylerPanel(mockView, {
61
- aidaClient: getTestAidaClient(),
52
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
53
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
62
54
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
63
55
  syncInfo: getTestSyncInfo(),
64
56
  });
65
57
  panel.markAsRoot();
66
58
  panel.show(document.body);
67
59
 
68
- sinon.assert.calledWith(mockView, sinon.match({state: Freestyler.State.CONSENT_VIEW}));
60
+ sinon.assert.calledWith(mockView, sinon.match({state: AiAssistance.State.CONSENT_VIEW}));
69
61
  });
70
62
 
71
63
  it('should switch from consent view to chat view when enabling setting', async () => {
72
- panel = new Freestyler.FreestylerPanel(mockView, {
73
- aidaClient: getTestAidaClient(),
64
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
65
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
74
66
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
75
67
  syncInfo: getTestSyncInfo(),
76
68
  });
77
69
  panel.markAsRoot();
78
70
  panel.show(document.body);
79
- sinon.assert.calledWith(mockView, sinon.match({state: Freestyler.State.CONSENT_VIEW}));
71
+ sinon.assert.calledWith(mockView, sinon.match({state: AiAssistance.State.CONSENT_VIEW}));
80
72
 
81
73
  Common.Settings.moduleSetting('ai-assistance-enabled').set(true);
82
- sinon.assert.calledWith(mockView, sinon.match({state: Freestyler.State.CHAT_VIEW}));
74
+ sinon.assert.calledWith(mockView, sinon.match({state: AiAssistance.State.CHAT_VIEW}));
83
75
  await drainMicroTasks();
84
76
  });
85
77
 
86
78
  it('should render chat view when the consent is given before', async () => {
87
79
  Common.Settings.moduleSetting('ai-assistance-enabled').set(true);
88
80
 
89
- panel = new Freestyler.FreestylerPanel(mockView, {
90
- aidaClient: getTestAidaClient(),
81
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
82
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
91
83
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
92
84
  syncInfo: getTestSyncInfo(),
93
85
  });
94
86
  panel.markAsRoot();
95
87
  panel.show(document.body);
96
88
 
97
- sinon.assert.calledWith(mockView, sinon.match({state: Freestyler.State.CHAT_VIEW}));
89
+ sinon.assert.calledWith(mockView, sinon.match({state: AiAssistance.State.CHAT_VIEW}));
98
90
  });
99
91
 
100
92
  it('should render the consent view when the setting is disabled', async () => {
101
93
  Common.Settings.moduleSetting('ai-assistance-enabled').set(true);
102
94
  Common.Settings.moduleSetting('ai-assistance-enabled').setDisabled(true);
103
- const chatUiStates: Freestyler.State[] = [];
95
+ const chatUiStates: AiAssistance.State[] = [];
104
96
  const viewStub = sinon.stub().callsFake(props => {
105
97
  chatUiStates.push(props.state);
106
98
  });
107
99
 
108
- panel = new Freestyler.FreestylerPanel(viewStub, {
109
- aidaClient: getTestAidaClient(),
100
+ panel = new AiAssistance.AiAssistancePanel(viewStub, {
101
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
110
102
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
111
103
  syncInfo: getTestSyncInfo(),
112
104
  });
@@ -114,8 +106,8 @@ describeWithEnvironment('FreestylerPanel', () => {
114
106
  panel.show(document.body);
115
107
  await drainMicroTasks();
116
108
 
117
- sinon.assert.calledWith(viewStub, sinon.match({state: Freestyler.State.CONSENT_VIEW}));
118
- assert.isFalse(chatUiStates.includes(Freestyler.State.CHAT_VIEW));
109
+ sinon.assert.calledWith(viewStub, sinon.match({state: AiAssistance.State.CONSENT_VIEW}));
110
+ assert.isFalse(chatUiStates.includes(AiAssistance.State.CHAT_VIEW));
119
111
  Common.Settings.moduleSetting('ai-assistance-enabled').setDisabled(false);
120
112
  });
121
113
 
@@ -130,23 +122,23 @@ describeWithEnvironment('FreestylerPanel', () => {
130
122
  },
131
123
  });
132
124
 
133
- panel = new Freestyler.FreestylerPanel(mockView, {
134
- aidaClient: getTestAidaClient(),
125
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
126
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
135
127
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
136
128
  syncInfo: getTestSyncInfo(),
137
129
  });
138
130
  panel.markAsRoot();
139
131
  panel.show(document.body);
140
132
 
141
- sinon.assert.calledWith(mockView, sinon.match({state: Freestyler.State.CONSENT_VIEW}));
133
+ sinon.assert.calledWith(mockView, sinon.match({state: AiAssistance.State.CONSENT_VIEW}));
142
134
  stub.restore();
143
135
  });
144
136
 
145
137
  it('updates when the user logs in', async () => {
146
138
  Common.Settings.moduleSetting('ai-assistance-enabled').set(true);
147
139
 
148
- panel = new Freestyler.FreestylerPanel(mockView, {
149
- aidaClient: getTestAidaClient(),
140
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
141
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
150
142
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.NO_ACCOUNT_EMAIL,
151
143
  syncInfo: getTestSyncInfo(),
152
144
  });
@@ -154,7 +146,7 @@ describeWithEnvironment('FreestylerPanel', () => {
154
146
  panel.show(document.body);
155
147
  await drainMicroTasks();
156
148
  sinon.assert.calledWith(mockView, sinon.match({
157
- state: Freestyler.State.CHAT_VIEW,
149
+ state: AiAssistance.State.CHAT_VIEW,
158
150
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.NO_ACCOUNT_EMAIL,
159
151
  }));
160
152
  mockView.reset();
@@ -165,7 +157,7 @@ describeWithEnvironment('FreestylerPanel', () => {
165
157
  Host.AidaClient.Events.AIDA_AVAILABILITY_CHANGED);
166
158
  await drainMicroTasks();
167
159
  sinon.assert.calledWith(mockView, sinon.match({
168
- state: Freestyler.State.CHAT_VIEW,
160
+ state: AiAssistance.State.CHAT_VIEW,
169
161
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
170
162
  }));
171
163
 
@@ -174,21 +166,15 @@ describeWithEnvironment('FreestylerPanel', () => {
174
166
  });
175
167
 
176
168
  describe('on rate click', () => {
177
- afterEach(() => {
178
- // @ts-expect-error global test variable
179
- setFreestylerServerSideLoggingEnabled(false);
180
- });
181
-
182
169
  it('renders a button linking to settings', () => {
183
170
  const stub = sinon.stub(UI.ViewManager.ViewManager.instance(), 'showView');
184
171
 
185
- panel = new Freestyler.FreestylerPanel(mockView, {
186
- aidaClient: getTestAidaClient(),
172
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
173
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
187
174
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
188
175
  syncInfo: getTestSyncInfo(),
189
176
  });
190
- const toolbar = panel.contentElement.querySelector('.freestyler-right-toolbar');
191
- const button = toolbar!.shadowRoot!.querySelector('devtools-button[aria-label=\'Settings\']');
177
+ const button = panel.contentElement.querySelector('devtools-button[aria-label=\'Settings\']');
192
178
  assert.instanceOf(button, HTMLElement);
193
179
  button.click();
194
180
  assert.isTrue(stub.calledWith('chrome-ai'));
@@ -196,16 +182,14 @@ describeWithEnvironment('FreestylerPanel', () => {
196
182
  });
197
183
 
198
184
  it('should allow logging if configured', () => {
199
- // @ts-expect-error global test variable
200
- setFreestylerServerSideLoggingEnabled(true);
201
185
  const stub = getGetHostConfigStub({
202
186
  aidaAvailability: {
203
187
  disallowLogging: false,
204
188
  },
205
189
  });
206
190
 
207
- const aidaClient = getTestAidaClient();
208
- panel = new Freestyler.FreestylerPanel(mockView, {
191
+ const aidaClient = mockAidaClient([[{explanation: 'test'}]]);
192
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
209
193
  aidaClient,
210
194
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
211
195
  syncInfo: getTestSyncInfo(),
@@ -216,7 +200,7 @@ describeWithEnvironment('FreestylerPanel', () => {
216
200
  mockView.reset();
217
201
  callArgs.onFeedbackSubmit(0, Host.AidaClient.Rating.POSITIVE);
218
202
 
219
- sinon.assert.match(aidaClient.registerClientEvent.firstCall.firstArg, sinon.match({
203
+ sinon.assert.match((aidaClient.registerClientEvent as sinon.SinonStub).firstCall.firstArg, sinon.match({
220
204
  disable_user_content_logging: false,
221
205
  }));
222
206
  stub.restore();
@@ -225,8 +209,8 @@ describeWithEnvironment('FreestylerPanel', () => {
225
209
  it('should send POSITIVE rating to aida client when the user clicks on positive rating', () => {
226
210
  const RPC_ID = 0;
227
211
 
228
- const aidaClient = getTestAidaClient();
229
- panel = new Freestyler.FreestylerPanel(mockView, {
212
+ const aidaClient = mockAidaClient([[{explanation: 'test'}]]);
213
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
230
214
  aidaClient,
231
215
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
232
216
  syncInfo: getTestSyncInfo(),
@@ -237,7 +221,7 @@ describeWithEnvironment('FreestylerPanel', () => {
237
221
  mockView.reset();
238
222
  callArgs.onFeedbackSubmit(RPC_ID, Host.AidaClient.Rating.POSITIVE);
239
223
 
240
- sinon.assert.match(aidaClient.registerClientEvent.firstCall.firstArg, sinon.match({
224
+ sinon.assert.match((aidaClient.registerClientEvent as sinon.SinonStub).firstCall.firstArg, sinon.match({
241
225
  corresponding_aida_rpc_global_id: RPC_ID,
242
226
  do_conversation_client_event: {
243
227
  user_feedback: {
@@ -250,8 +234,8 @@ describeWithEnvironment('FreestylerPanel', () => {
250
234
 
251
235
  it('should send NEGATIVE rating to aida client when the user clicks on positive rating', () => {
252
236
  const RPC_ID = 0;
253
- const aidaClient = getTestAidaClient();
254
- panel = new Freestyler.FreestylerPanel(mockView, {
237
+ const aidaClient = mockAidaClient([[{explanation: 'test'}]]);
238
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
255
239
  aidaClient,
256
240
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
257
241
  syncInfo: getTestSyncInfo(),
@@ -262,7 +246,7 @@ describeWithEnvironment('FreestylerPanel', () => {
262
246
  mockView.reset();
263
247
  callArgs.onFeedbackSubmit(RPC_ID, Host.AidaClient.Rating.NEGATIVE);
264
248
 
265
- sinon.assert.match(aidaClient.registerClientEvent.firstCall.firstArg, sinon.match({
249
+ sinon.assert.match((aidaClient.registerClientEvent as sinon.SinonStub).firstCall.firstArg, sinon.match({
266
250
  corresponding_aida_rpc_global_id: RPC_ID,
267
251
  do_conversation_client_event: {
268
252
  user_feedback: {
@@ -276,8 +260,8 @@ describeWithEnvironment('FreestylerPanel', () => {
276
260
  it('should send feedback text with data', () => {
277
261
  const RPC_ID = 0;
278
262
  const feedback = 'This helped me a ton.';
279
- const aidaClient = getTestAidaClient();
280
- panel = new Freestyler.FreestylerPanel(mockView, {
263
+ const aidaClient = mockAidaClient([[{explanation: 'test'}]]);
264
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
281
265
  aidaClient,
282
266
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
283
267
  syncInfo: getTestSyncInfo(),
@@ -288,7 +272,7 @@ describeWithEnvironment('FreestylerPanel', () => {
288
272
  mockView.reset();
289
273
  callArgs.onFeedbackSubmit(RPC_ID, Host.AidaClient.Rating.POSITIVE, feedback);
290
274
 
291
- sinon.assert.match(aidaClient.registerClientEvent.firstCall.firstArg, sinon.match({
275
+ sinon.assert.match((aidaClient.registerClientEvent as sinon.SinonStub).firstCall.firstArg, sinon.match({
292
276
  corresponding_aida_rpc_global_id: RPC_ID,
293
277
  do_conversation_client_event: {
294
278
  user_feedback: {
@@ -307,8 +291,8 @@ describeWithEnvironment('FreestylerPanel', () => {
307
291
  describe('SDK.DOMModel.DOMNode flavor changes for selected element', () => {
308
292
  it('should set the selected element when the widget is shown', () => {
309
293
  UI.Context.Context.instance().setFlavor(SDK.DOMModel.DOMNode, null);
310
- panel = new Freestyler.FreestylerPanel(mockView, {
311
- aidaClient: getTestAidaClient(),
294
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
295
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
312
296
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
313
297
  syncInfo: getTestSyncInfo(),
314
298
  });
@@ -322,14 +306,14 @@ describeWithEnvironment('FreestylerPanel', () => {
322
306
  panel.handleAction('freestyler.elements-floating-button');
323
307
 
324
308
  sinon.assert.calledWith(mockView, sinon.match({
325
- selectedContext: new Freestyler.NodeContext(node),
309
+ selectedContext: new AiAssistance.NodeContext(node),
326
310
  }));
327
311
  });
328
312
 
329
313
  it('should update the selected element when the changed DOMNode flavor is an ELEMENT_NODE', () => {
330
314
  UI.Context.Context.instance().setFlavor(SDK.DOMModel.DOMNode, null);
331
- panel = new Freestyler.FreestylerPanel(mockView, {
332
- aidaClient: getTestAidaClient(),
315
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
316
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
333
317
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
334
318
  syncInfo: getTestSyncInfo(),
335
319
  });
@@ -346,14 +330,14 @@ describeWithEnvironment('FreestylerPanel', () => {
346
330
  UI.Context.Context.instance().setFlavor(SDK.DOMModel.DOMNode, node);
347
331
 
348
332
  sinon.assert.calledWith(mockView, sinon.match({
349
- selectedContext: new Freestyler.NodeContext(node),
333
+ selectedContext: new AiAssistance.NodeContext(node),
350
334
  }));
351
335
  });
352
336
 
353
337
  it('should set selected element to null when the change DOMNode flavor is not an ELEMENT_NODE', () => {
354
338
  UI.Context.Context.instance().setFlavor(SDK.DOMModel.DOMNode, null);
355
- panel = new Freestyler.FreestylerPanel(mockView, {
356
- aidaClient: getTestAidaClient(),
339
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
340
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
357
341
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
358
342
  syncInfo: getTestSyncInfo(),
359
343
  });
@@ -376,8 +360,8 @@ describeWithEnvironment('FreestylerPanel', () => {
376
360
 
377
361
  it('should not handle DOMNode flavor changes if the widget is not shown', () => {
378
362
  UI.Context.Context.instance().setFlavor(SDK.DOMModel.DOMNode, null);
379
- panel = new Freestyler.FreestylerPanel(mockView, {
380
- aidaClient: getTestAidaClient(),
363
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
364
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
381
365
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
382
366
  syncInfo: getTestSyncInfo(),
383
367
  });
@@ -394,8 +378,8 @@ describeWithEnvironment('FreestylerPanel', () => {
394
378
  describe('SDK.NetworkRequest.NetworkRequest flavor changes for selected network request', () => {
395
379
  it('should set the selected network request when the widget is shown', () => {
396
380
  UI.Context.Context.instance().setFlavor(SDK.NetworkRequest.NetworkRequest, null);
397
- panel = new Freestyler.FreestylerPanel(mockView, {
398
- aidaClient: getTestAidaClient(),
381
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
382
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
399
383
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
400
384
  syncInfo: getTestSyncInfo(),
401
385
  });
@@ -407,14 +391,14 @@ describeWithEnvironment('FreestylerPanel', () => {
407
391
  panel.handleAction('drjones.network-floating-button');
408
392
 
409
393
  sinon.assert.calledWith(mockView, sinon.match({
410
- selectedContext: new Freestyler.RequestContext(networkRequest),
394
+ selectedContext: new AiAssistance.RequestContext(networkRequest),
411
395
  }));
412
396
  });
413
397
 
414
398
  it('should set selected network request when the NetworkRequest flavor changes', () => {
415
399
  UI.Context.Context.instance().setFlavor(SDK.NetworkRequest.NetworkRequest, null);
416
- panel = new Freestyler.FreestylerPanel(mockView, {
417
- aidaClient: getTestAidaClient(),
400
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
401
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
418
402
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
419
403
  syncInfo: getTestSyncInfo(),
420
404
  });
@@ -429,14 +413,14 @@ describeWithEnvironment('FreestylerPanel', () => {
429
413
  UI.Context.Context.instance().setFlavor(SDK.NetworkRequest.NetworkRequest, networkRequest);
430
414
 
431
415
  sinon.assert.calledWith(mockView, sinon.match({
432
- selectedContext: new Freestyler.RequestContext(networkRequest),
416
+ selectedContext: new AiAssistance.RequestContext(networkRequest),
433
417
  }));
434
418
  });
435
419
 
436
420
  it('should not handle NetworkRequest flavor changes if the widget is not shown', () => {
437
421
  UI.Context.Context.instance().setFlavor(SDK.NetworkRequest.NetworkRequest, null);
438
- panel = new Freestyler.FreestylerPanel(mockView, {
439
- aidaClient: getTestAidaClient(),
422
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
423
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
440
424
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
441
425
  syncInfo: getTestSyncInfo(),
442
426
  });
@@ -451,8 +435,8 @@ describeWithEnvironment('FreestylerPanel', () => {
451
435
  describe('TimelineUtils.AICallTree.AICallTree flavor changes for selected call tree', () => {
452
436
  it('should set the selected call tree when the widget is shown', () => {
453
437
  UI.Context.Context.instance().setFlavor(TimelineUtils.AICallTree.AICallTree, null);
454
- panel = new Freestyler.FreestylerPanel(mockView, {
455
- aidaClient: getTestAidaClient(),
438
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
439
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
456
440
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
457
441
  syncInfo: getTestSyncInfo(),
458
442
  });
@@ -464,14 +448,14 @@ describeWithEnvironment('FreestylerPanel', () => {
464
448
  panel.handleAction('drjones.performance-panel-context');
465
449
 
466
450
  sinon.assert.calledWith(mockView, sinon.match({
467
- selectedContext: new Freestyler.CallTreeContext(selectedAiCallTree as TimelineUtils.AICallTree.AICallTree),
451
+ selectedContext: new AiAssistance.CallTreeContext(selectedAiCallTree as TimelineUtils.AICallTree.AICallTree),
468
452
  }));
469
453
  });
470
454
 
471
455
  it('should set selected call tree when the AICallTree flavor changes', () => {
472
456
  UI.Context.Context.instance().setFlavor(TimelineUtils.AICallTree.AICallTree, null);
473
- panel = new Freestyler.FreestylerPanel(mockView, {
474
- aidaClient: getTestAidaClient(),
457
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
458
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
475
459
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
476
460
  syncInfo: getTestSyncInfo(),
477
461
  });
@@ -486,14 +470,14 @@ describeWithEnvironment('FreestylerPanel', () => {
486
470
  UI.Context.Context.instance().setFlavor(TimelineUtils.AICallTree.AICallTree, selectedAiCallTree);
487
471
 
488
472
  sinon.assert.calledWith(mockView, sinon.match({
489
- selectedContext: new Freestyler.CallTreeContext(selectedAiCallTree as TimelineUtils.AICallTree.AICallTree),
473
+ selectedContext: new AiAssistance.CallTreeContext(selectedAiCallTree as TimelineUtils.AICallTree.AICallTree),
490
474
  }));
491
475
  });
492
476
 
493
477
  it('should not handle AICallTree flavor changes if the widget is not shown', () => {
494
478
  UI.Context.Context.instance().setFlavor(TimelineUtils.AICallTree.AICallTree, null);
495
- panel = new Freestyler.FreestylerPanel(mockView, {
496
- aidaClient: getTestAidaClient(),
479
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
480
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
497
481
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
498
482
  syncInfo: getTestSyncInfo(),
499
483
  });
@@ -508,8 +492,8 @@ describeWithEnvironment('FreestylerPanel', () => {
508
492
  describe('Workspace.UISourceCode.UISourceCode flavor changes for selected network request', () => {
509
493
  it('should set selected file when the widget is shown', () => {
510
494
  UI.Context.Context.instance().setFlavor(Workspace.UISourceCode.UISourceCode, null);
511
- panel = new Freestyler.FreestylerPanel(mockView, {
512
- aidaClient: getTestAidaClient(),
495
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
496
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
513
497
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
514
498
  syncInfo: getTestSyncInfo(),
515
499
  });
@@ -521,14 +505,14 @@ describeWithEnvironment('FreestylerPanel', () => {
521
505
  panel.handleAction('drjones.sources-panel-context');
522
506
 
523
507
  sinon.assert.calledWith(mockView, sinon.match({
524
- selectedContext: new Freestyler.FileContext(uiSourceCode),
508
+ selectedContext: new AiAssistance.FileContext(uiSourceCode),
525
509
  }));
526
510
  });
527
511
 
528
512
  it('should set selected file when the UISourceCode flavor changes', () => {
529
513
  UI.Context.Context.instance().setFlavor(Workspace.UISourceCode.UISourceCode, null);
530
- panel = new Freestyler.FreestylerPanel(mockView, {
531
- aidaClient: getTestAidaClient(),
514
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
515
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
532
516
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
533
517
  syncInfo: getTestSyncInfo(),
534
518
  });
@@ -543,14 +527,14 @@ describeWithEnvironment('FreestylerPanel', () => {
543
527
  UI.Context.Context.instance().setFlavor(Workspace.UISourceCode.UISourceCode, uiSourceCode);
544
528
 
545
529
  sinon.assert.calledWith(mockView, sinon.match({
546
- selectedContext: new Freestyler.FileContext(uiSourceCode),
530
+ selectedContext: new AiAssistance.FileContext(uiSourceCode),
547
531
  }));
548
532
  });
549
533
 
550
534
  it('should not handle NetworkRequest flavor changes if the widget is not shown', () => {
551
535
  UI.Context.Context.instance().setFlavor(Workspace.UISourceCode.UISourceCode, null);
552
- panel = new Freestyler.FreestylerPanel(mockView, {
553
- aidaClient: getTestAidaClient(),
536
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
537
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
554
538
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
555
539
  syncInfo: getTestSyncInfo(),
556
540
  });
@@ -572,8 +556,8 @@ describeWithEnvironment('FreestylerPanel', () => {
572
556
  });
573
557
 
574
558
  it('should set inspectElementToggled when the widget is shown', () => {
575
- panel = new Freestyler.FreestylerPanel(mockView, {
576
- aidaClient: getTestAidaClient(),
559
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
560
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
577
561
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
578
562
  syncInfo: getTestSyncInfo(),
579
563
  });
@@ -589,8 +573,8 @@ describeWithEnvironment('FreestylerPanel', () => {
589
573
 
590
574
  it('should update inspectElementToggled when the action is toggled', () => {
591
575
  toggleSearchElementAction.setToggled(false);
592
- panel = new Freestyler.FreestylerPanel(mockView, {
593
- aidaClient: getTestAidaClient(),
576
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
577
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
594
578
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
595
579
  syncInfo: getTestSyncInfo(),
596
580
  });
@@ -610,8 +594,8 @@ describeWithEnvironment('FreestylerPanel', () => {
610
594
  it('should not update toggleSearchElementAction even after the action is toggled when the widget is not shown',
611
595
  () => {
612
596
  toggleSearchElementAction.setToggled(false);
613
- panel = new Freestyler.FreestylerPanel(mockView, {
614
- aidaClient: getTestAidaClient(),
597
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
598
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
615
599
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
616
600
  syncInfo: getTestSyncInfo(),
617
601
  });
@@ -624,8 +608,8 @@ describeWithEnvironment('FreestylerPanel', () => {
624
608
 
625
609
  describe('history interactions', () => {
626
610
  it('should have empty messages after new chat', async () => {
627
- panel = new Freestyler.FreestylerPanel(mockView, {
628
- aidaClient: getTestAidaClient(),
611
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
612
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
629
613
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
630
614
  syncInfo: getTestSyncInfo(),
631
615
  });
@@ -635,19 +619,18 @@ describeWithEnvironment('FreestylerPanel', () => {
635
619
 
636
620
  assert.deepEqual(mockView.lastCall.args[0].messages, [
637
621
  {
638
- entity: Freestyler.ChatMessageEntity.USER,
622
+ entity: AiAssistance.ChatMessageEntity.USER,
639
623
  text: 'test',
640
624
  },
641
625
  {
642
626
  answer: 'test',
643
- entity: Freestyler.ChatMessageEntity.MODEL,
627
+ entity: AiAssistance.ChatMessageEntity.MODEL,
644
628
  rpcId: undefined,
645
629
  suggestions: undefined,
646
630
  steps: [],
647
631
  },
648
632
  ]);
649
- const toolbar = panel.contentElement.querySelector('.freestyler-left-toolbar');
650
- const button = toolbar!.shadowRoot!.querySelector('devtools-button[aria-label=\'New chat\']');
633
+ const button = panel.contentElement.querySelector('devtools-button[aria-label=\'New chat\']');
651
634
  assert.instanceOf(button, HTMLElement);
652
635
  dispatchClickEvent(button);
653
636
  assert.deepEqual(mockView.lastCall.args[0].messages, []);
@@ -659,8 +642,8 @@ describeWithEnvironment('FreestylerPanel', () => {
659
642
  enabled: true,
660
643
  },
661
644
  });
662
- panel = new Freestyler.FreestylerPanel(mockView, {
663
- aidaClient: getTestAidaClient(),
645
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
646
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
664
647
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
665
648
  syncInfo: getTestSyncInfo(),
666
649
  });
@@ -673,29 +656,28 @@ describeWithEnvironment('FreestylerPanel', () => {
673
656
 
674
657
  assert.deepEqual(mockView.lastCall.args[0].messages, [
675
658
  {
676
- entity: Freestyler.ChatMessageEntity.USER,
659
+ entity: AiAssistance.ChatMessageEntity.USER,
677
660
  text: 'test',
678
661
  },
679
662
  {
680
663
  answer: 'test',
681
- entity: Freestyler.ChatMessageEntity.MODEL,
664
+ entity: AiAssistance.ChatMessageEntity.MODEL,
682
665
  rpcId: undefined,
683
666
  suggestions: undefined,
684
667
  steps: [],
685
668
  },
686
669
  ]);
687
- const toolbar = panel.contentElement.querySelector('.freestyler-left-toolbar');
688
- const button = toolbar!.shadowRoot!.querySelector('devtools-button[aria-label=\'New chat\']');
670
+ const button = panel.contentElement.querySelector('devtools-button[aria-label=\'New chat\']');
689
671
  assert.instanceOf(button, HTMLElement);
690
672
  dispatchClickEvent(button);
691
673
  assert.deepEqual(mockView.lastCall.args[0].messages, []);
692
- assert.deepEqual(mockView.lastCall.args[0].agentType, AiAgent.AgentType.FREESTYLER);
674
+ assert.deepEqual(mockView.lastCall.args[0].agentType, AiAssistance.AgentType.STYLING);
693
675
  stub.restore();
694
676
  });
695
677
 
696
678
  it('should switch agents and restore history', async () => {
697
- panel = new Freestyler.FreestylerPanel(mockView, {
698
- aidaClient: getTestAidaClient(),
679
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
680
+ aidaClient: mockAidaClient([[{explanation: 'test'}], [{explanation: 'test2'}]]),
699
681
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
700
682
  syncInfo: getTestSyncInfo(),
701
683
  });
@@ -704,12 +686,12 @@ describeWithEnvironment('FreestylerPanel', () => {
704
686
  await drainMicroTasks();
705
687
  assert.deepEqual(mockView.lastCall.args[0].messages, [
706
688
  {
707
- entity: Freestyler.ChatMessageEntity.USER,
689
+ entity: AiAssistance.ChatMessageEntity.USER,
708
690
  text: 'User question to Freestyler?',
709
691
  },
710
692
  {
711
693
  answer: 'test',
712
- entity: Freestyler.ChatMessageEntity.MODEL,
694
+ entity: AiAssistance.ChatMessageEntity.MODEL,
713
695
  rpcId: undefined,
714
696
  suggestions: undefined,
715
697
  steps: [],
@@ -721,20 +703,19 @@ describeWithEnvironment('FreestylerPanel', () => {
721
703
  await drainMicroTasks();
722
704
  assert.deepEqual(mockView.lastCall.args[0].messages, [
723
705
  {
724
- entity: Freestyler.ChatMessageEntity.USER,
706
+ entity: AiAssistance.ChatMessageEntity.USER,
725
707
  text: 'User question to DrJones?',
726
708
  },
727
709
  {
728
- answer: 'test',
729
- entity: Freestyler.ChatMessageEntity.MODEL,
710
+ answer: 'test2',
711
+ entity: AiAssistance.ChatMessageEntity.MODEL,
730
712
  rpcId: undefined,
731
713
  suggestions: undefined,
732
714
  steps: [],
733
715
  },
734
716
  ]);
735
717
 
736
- const toolbar = panel.contentElement.querySelector('.freestyler-left-toolbar');
737
- const button = toolbar!.shadowRoot!.querySelector('devtools-button[aria-label=\'History\']');
718
+ const button = panel.contentElement.querySelector('devtools-button[aria-label=\'History\']');
738
719
  assert.instanceOf(button, HTMLElement);
739
720
  const contextMenu = getMenu(() => {
740
721
  dispatchClickEvent(button);
@@ -746,12 +727,12 @@ describeWithEnvironment('FreestylerPanel', () => {
746
727
  await drainMicroTasks();
747
728
  assert.deepEqual(mockView.lastCall.args[0].messages, [
748
729
  {
749
- entity: Freestyler.ChatMessageEntity.USER,
730
+ entity: AiAssistance.ChatMessageEntity.USER,
750
731
  text: 'User question to Freestyler?',
751
732
  },
752
733
  {
753
734
  answer: 'test',
754
- entity: Freestyler.ChatMessageEntity.MODEL,
735
+ entity: AiAssistance.ChatMessageEntity.MODEL,
755
736
  rpcId: undefined,
756
737
  suggestions: undefined,
757
738
  steps: [],
@@ -761,8 +742,8 @@ describeWithEnvironment('FreestylerPanel', () => {
761
742
  });
762
743
 
763
744
  it('should have empty state after clear chat', async () => {
764
- panel = new Freestyler.FreestylerPanel(mockView, {
765
- aidaClient: getTestAidaClient(),
745
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
746
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
766
747
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
767
748
  syncInfo: getTestSyncInfo(),
768
749
  });
@@ -772,23 +753,22 @@ describeWithEnvironment('FreestylerPanel', () => {
772
753
 
773
754
  assert.deepEqual(mockView.lastCall.args[0].messages, [
774
755
  {
775
- entity: Freestyler.ChatMessageEntity.USER,
756
+ entity: AiAssistance.ChatMessageEntity.USER,
776
757
  text: 'test',
777
758
  },
778
759
  {
779
760
  answer: 'test',
780
- entity: Freestyler.ChatMessageEntity.MODEL,
761
+ entity: AiAssistance.ChatMessageEntity.MODEL,
781
762
  rpcId: undefined,
782
763
  suggestions: undefined,
783
764
  steps: [],
784
765
  },
785
766
  ]);
786
- const toolbar = panel.contentElement.querySelector('.freestyler-left-toolbar');
787
- const button = toolbar!.shadowRoot!.querySelector('devtools-button[aria-label=\'Delete chat\']');
767
+ const button = panel.contentElement.querySelector('devtools-button[aria-label=\'Delete local chat\']');
788
768
  assert.instanceOf(button, HTMLElement);
789
769
  dispatchClickEvent(button);
790
770
  assert.deepEqual(mockView.lastCall.args[0].messages, []);
791
- assert.deepEqual(mockView.lastCall.args[0].agentType, undefined);
771
+ assert.isUndefined(mockView.lastCall.args[0].agentType);
792
772
  });
793
773
 
794
774
  it('should select default agent based on open panel after clearing the chat', async () => {
@@ -797,8 +777,8 @@ describeWithEnvironment('FreestylerPanel', () => {
797
777
  enabled: true,
798
778
  },
799
779
  });
800
- panel = new Freestyler.FreestylerPanel(mockView, {
801
- aidaClient: getTestAidaClient(),
780
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
781
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
802
782
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
803
783
  syncInfo: getTestSyncInfo(),
804
784
  });
@@ -810,29 +790,28 @@ describeWithEnvironment('FreestylerPanel', () => {
810
790
  ElementsPanel.ElementsPanel.ElementsPanel, sinon.createStubInstance(ElementsPanel.ElementsPanel.ElementsPanel));
811
791
  assert.deepEqual(mockView.lastCall.args[0].messages, [
812
792
  {
813
- entity: Freestyler.ChatMessageEntity.USER,
793
+ entity: AiAssistance.ChatMessageEntity.USER,
814
794
  text: 'test',
815
795
  },
816
796
  {
817
797
  answer: 'test',
818
- entity: Freestyler.ChatMessageEntity.MODEL,
798
+ entity: AiAssistance.ChatMessageEntity.MODEL,
819
799
  rpcId: undefined,
820
800
  suggestions: undefined,
821
801
  steps: [],
822
802
  },
823
803
  ]);
824
- const toolbar = panel.contentElement.querySelector('.freestyler-left-toolbar');
825
- const button = toolbar!.shadowRoot!.querySelector('devtools-button[aria-label=\'Delete chat\']');
804
+ const button = panel.contentElement.querySelector('devtools-button[aria-label=\'Delete local chat\']');
826
805
  assert.instanceOf(button, HTMLElement);
827
806
  dispatchClickEvent(button);
828
807
  assert.deepEqual(mockView.lastCall.args[0].messages, []);
829
- assert.deepEqual(mockView.lastCall.args[0].agentType, AiAgent.AgentType.FREESTYLER);
808
+ assert.deepEqual(mockView.lastCall.args[0].agentType, AiAssistance.AgentType.STYLING);
830
809
  stub.restore();
831
810
  });
832
811
 
833
812
  it('should have empty state after clear chat history', async () => {
834
- panel = new Freestyler.FreestylerPanel(mockView, {
835
- aidaClient: getTestAidaClient(),
813
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
814
+ aidaClient: mockAidaClient([[{explanation: 'test'}], [{explanation: 'test2'}]]),
836
815
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
837
816
  syncInfo: getTestSyncInfo(),
838
817
  });
@@ -841,12 +820,12 @@ describeWithEnvironment('FreestylerPanel', () => {
841
820
  await drainMicroTasks();
842
821
  assert.deepEqual(mockView.lastCall.args[0].messages, [
843
822
  {
844
- entity: Freestyler.ChatMessageEntity.USER,
823
+ entity: AiAssistance.ChatMessageEntity.USER,
845
824
  text: 'User question to Freestyler?',
846
825
  },
847
826
  {
848
827
  answer: 'test',
849
- entity: Freestyler.ChatMessageEntity.MODEL,
828
+ entity: AiAssistance.ChatMessageEntity.MODEL,
850
829
  rpcId: undefined,
851
830
  suggestions: undefined,
852
831
  steps: [],
@@ -858,37 +837,35 @@ describeWithEnvironment('FreestylerPanel', () => {
858
837
  await drainMicroTasks();
859
838
  assert.deepEqual(mockView.lastCall.args[0].messages, [
860
839
  {
861
- entity: Freestyler.ChatMessageEntity.USER,
840
+ entity: AiAssistance.ChatMessageEntity.USER,
862
841
  text: 'User question to DrJones?',
863
842
  },
864
843
  {
865
- answer: 'test',
866
- entity: Freestyler.ChatMessageEntity.MODEL,
844
+ answer: 'test2',
845
+ entity: AiAssistance.ChatMessageEntity.MODEL,
867
846
  rpcId: undefined,
868
847
  suggestions: undefined,
869
848
  steps: [],
870
849
  },
871
850
  ]);
872
851
 
873
- let toolbar = panel.contentElement.querySelector('.freestyler-left-toolbar');
874
- let button = toolbar!.shadowRoot!.querySelector('devtools-button[aria-label=\'History\']');
852
+ let button = panel.contentElement.querySelector('devtools-button[aria-label=\'History\']');
875
853
  assert.instanceOf(button, HTMLElement);
876
854
  let contextMenu = getMenu(() => {
877
855
  dispatchClickEvent(button!);
878
856
  });
879
- const clearAll = findMenuItemWithLabel(contextMenu.footerSection(), 'Clear chat history')!;
857
+ const clearAll = findMenuItemWithLabel(contextMenu.footerSection(), 'Clear local chats')!;
880
858
  assert.isDefined(clearAll);
881
859
  contextMenu.invokeHandler(clearAll.id());
882
860
  await drainMicroTasks();
883
861
  assert.deepEqual(mockView.lastCall.args[0].messages, []);
884
- assert.deepEqual(mockView.lastCall.args[0].agentType, undefined);
862
+ assert.isUndefined(mockView.lastCall.args[0].agentType);
885
863
 
886
864
  await drainMicroTasks();
887
865
  contextMenu.discard();
888
866
  await drainMicroTasks();
889
867
 
890
- toolbar = panel.contentElement.querySelector('.freestyler-left-toolbar');
891
- button = toolbar!.shadowRoot!.querySelector('devtools-button[aria-label=\'History\']');
868
+ button = panel.contentElement.querySelector('devtools-button[aria-label=\'History\']');
892
869
  assert.instanceOf(button, HTMLElement);
893
870
  contextMenu = getMenu(() => {
894
871
  dispatchClickEvent(button);
@@ -900,11 +877,11 @@ describeWithEnvironment('FreestylerPanel', () => {
900
877
  describe('cross-origin', () => {
901
878
  it('blocks input on cross origin requests', async () => {
902
879
  const networkRequest = sinon.createStubInstance(SDK.NetworkRequest.NetworkRequest, {
903
- url: 'https://a.test' as Platform.DevToolsPath.UrlString,
880
+ url: urlString`https://a.test`,
904
881
  });
905
882
  UI.Context.Context.instance().setFlavor(SDK.NetworkRequest.NetworkRequest, networkRequest);
906
- panel = new Freestyler.FreestylerPanel(mockView, {
907
- aidaClient: getTestAidaClient(),
883
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
884
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
908
885
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
909
886
  syncInfo: getTestSyncInfo(),
910
887
  });
@@ -913,7 +890,7 @@ describeWithEnvironment('FreestylerPanel', () => {
913
890
  panel.handleAction('drjones.network-floating-button');
914
891
 
915
892
  sinon.assert.calledWith(mockView, sinon.match({
916
- selectedContext: new Freestyler.RequestContext(networkRequest),
893
+ selectedContext: new AiAssistance.RequestContext(networkRequest),
917
894
  blockedByCrossOrigin: false,
918
895
  }));
919
896
 
@@ -924,14 +901,14 @@ describeWithEnvironment('FreestylerPanel', () => {
924
901
 
925
902
  // Change context to https://b.test.
926
903
  const networkRequest2 = sinon.createStubInstance(SDK.NetworkRequest.NetworkRequest, {
927
- url: 'https://b.test' as Platform.DevToolsPath.UrlString,
904
+ url: urlString`https://b.test`,
928
905
  });
929
906
  UI.Context.Context.instance().setFlavor(SDK.NetworkRequest.NetworkRequest, networkRequest2);
930
907
  panel.handleAction('drjones.network-floating-button');
931
908
  await drainMicroTasks();
932
909
 
933
910
  sinon.assert.calledWith(mockView, sinon.match({
934
- selectedContext: new Freestyler.RequestContext(networkRequest2),
911
+ selectedContext: new AiAssistance.RequestContext(networkRequest2),
935
912
  blockedByCrossOrigin: true,
936
913
  }));
937
914
  });
@@ -942,8 +919,8 @@ describeWithEnvironment('FreestylerPanel', () => {
942
919
  enabled: true,
943
920
  },
944
921
  });
945
- panel = new Freestyler.FreestylerPanel(mockView, {
946
- aidaClient: getTestAidaClient(),
922
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
923
+ aidaClient: mockAidaClient([[{explanation: 'test'}], [{explanation: 'test2'}]]),
947
924
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
948
925
  syncInfo: getTestSyncInfo(),
949
926
  });
@@ -957,12 +934,12 @@ describeWithEnvironment('FreestylerPanel', () => {
957
934
 
958
935
  assert.deepEqual(mockView.lastCall.args[0].messages, [
959
936
  {
960
- entity: Freestyler.ChatMessageEntity.USER,
937
+ entity: AiAssistance.ChatMessageEntity.USER,
961
938
  text: 'test',
962
939
  },
963
940
  {
964
941
  answer: 'test',
965
- entity: Freestyler.ChatMessageEntity.MODEL,
942
+ entity: AiAssistance.ChatMessageEntity.MODEL,
966
943
  rpcId: undefined,
967
944
  suggestions: undefined,
968
945
  steps: [],
@@ -977,26 +954,26 @@ describeWithEnvironment('FreestylerPanel', () => {
977
954
  mockView.lastCall.args[0].onTextSubmit('test2');
978
955
  await drainMicroTasks();
979
956
 
980
- assert.strictEqual(mockView.lastCall.args[0].isReadOnly, false);
957
+ assert.isFalse(mockView.lastCall.args[0].isReadOnly);
981
958
  assert.deepEqual(mockView.lastCall.args[0].messages, [
982
959
  {
983
- entity: Freestyler.ChatMessageEntity.USER,
960
+ entity: AiAssistance.ChatMessageEntity.USER,
984
961
  text: 'test',
985
962
  },
986
963
  {
987
964
  answer: 'test',
988
- entity: Freestyler.ChatMessageEntity.MODEL,
965
+ entity: AiAssistance.ChatMessageEntity.MODEL,
989
966
  rpcId: undefined,
990
967
  suggestions: undefined,
991
968
  steps: [],
992
969
  },
993
970
  {
994
- entity: Freestyler.ChatMessageEntity.USER,
971
+ entity: AiAssistance.ChatMessageEntity.USER,
995
972
  text: 'test2',
996
973
  },
997
974
  {
998
- answer: 'test',
999
- entity: Freestyler.ChatMessageEntity.MODEL,
975
+ answer: 'test2',
976
+ entity: AiAssistance.ChatMessageEntity.MODEL,
1000
977
  rpcId: undefined,
1001
978
  suggestions: undefined,
1002
979
  steps: [],
@@ -1018,8 +995,8 @@ describeWithEnvironment('FreestylerPanel', () => {
1018
995
  UI.Context.Context.instance().setFlavor(
1019
996
  ElementsPanel.ElementsPanel.ElementsPanel,
1020
997
  sinon.createStubInstance(ElementsPanel.ElementsPanel.ElementsPanel));
1021
- panel = new Freestyler.FreestylerPanel(mockView, {
1022
- aidaClient: getTestAidaClient(),
998
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
999
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
1023
1000
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
1024
1001
  syncInfo: getTestSyncInfo(),
1025
1002
  });
@@ -1028,7 +1005,7 @@ describeWithEnvironment('FreestylerPanel', () => {
1028
1005
  panel.show(document.body);
1029
1006
 
1030
1007
  sinon.assert.calledWith(mockView, sinon.match({
1031
- agentType: AiAgent.AgentType.FREESTYLER,
1008
+ agentType: AiAssistance.AgentType.STYLING,
1032
1009
  }));
1033
1010
  stub.restore();
1034
1011
  });
@@ -1042,8 +1019,8 @@ describeWithEnvironment('FreestylerPanel', () => {
1042
1019
  UI.Context.Context.instance().setFlavor(
1043
1020
  ElementsPanel.ElementsPanel.ElementsPanel,
1044
1021
  sinon.createStubInstance(ElementsPanel.ElementsPanel.ElementsPanel));
1045
- panel = new Freestyler.FreestylerPanel(mockView, {
1046
- aidaClient: getTestAidaClient(),
1022
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
1023
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
1047
1024
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
1048
1025
  syncInfo: getTestSyncInfo(),
1049
1026
  });
@@ -1051,11 +1028,11 @@ describeWithEnvironment('FreestylerPanel', () => {
1051
1028
  panel.markAsRoot();
1052
1029
  panel.show(document.body);
1053
1030
  sinon.assert.calledWith(mockView, sinon.match({
1054
- agentType: AiAgent.AgentType.FREESTYLER,
1031
+ agentType: AiAssistance.AgentType.STYLING,
1055
1032
  }));
1056
1033
 
1057
1034
  UI.Context.Context.instance().setFlavor(ElementsPanel.ElementsPanel.ElementsPanel, null);
1058
- assert.deepStrictEqual(mockView.lastCall.args[0].agentType, undefined);
1035
+ assert.isUndefined(mockView.lastCall.args[0].agentType);
1059
1036
  stub.restore();
1060
1037
  });
1061
1038
 
@@ -1068,8 +1045,8 @@ describeWithEnvironment('FreestylerPanel', () => {
1068
1045
  UI.Context.Context.instance().setFlavor(
1069
1046
  ElementsPanel.ElementsPanel.ElementsPanel,
1070
1047
  sinon.createStubInstance(ElementsPanel.ElementsPanel.ElementsPanel));
1071
- panel = new Freestyler.FreestylerPanel(mockView, {
1072
- aidaClient: getTestAidaClient(),
1048
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
1049
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
1073
1050
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
1074
1051
  syncInfo: getTestSyncInfo(),
1075
1052
  });
@@ -1077,7 +1054,7 @@ describeWithEnvironment('FreestylerPanel', () => {
1077
1054
  panel.markAsRoot();
1078
1055
  panel.show(document.body);
1079
1056
 
1080
- assert.deepStrictEqual(mockView.lastCall.args[0].agentType, undefined);
1057
+ assert.isUndefined(mockView.lastCall.args[0].agentType);
1081
1058
  stub.restore();
1082
1059
  });
1083
1060
  });
@@ -1091,8 +1068,8 @@ describeWithEnvironment('FreestylerPanel', () => {
1091
1068
  });
1092
1069
  UI.Context.Context.instance().setFlavor(
1093
1070
  NetworkPanel.NetworkPanel.NetworkPanel, sinon.createStubInstance(NetworkPanel.NetworkPanel.NetworkPanel));
1094
- panel = new Freestyler.FreestylerPanel(mockView, {
1095
- aidaClient: getTestAidaClient(),
1071
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
1072
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
1096
1073
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
1097
1074
  syncInfo: getTestSyncInfo(),
1098
1075
  });
@@ -1101,7 +1078,7 @@ describeWithEnvironment('FreestylerPanel', () => {
1101
1078
  panel.show(document.body);
1102
1079
 
1103
1080
  sinon.assert.calledWith(mockView, sinon.match({
1104
- agentType: AiAgent.AgentType.DRJONES_NETWORK_REQUEST,
1081
+ agentType: AiAssistance.AgentType.NETWORK,
1105
1082
  }));
1106
1083
  stub.restore();
1107
1084
  });
@@ -1114,8 +1091,8 @@ describeWithEnvironment('FreestylerPanel', () => {
1114
1091
  });
1115
1092
  UI.Context.Context.instance().setFlavor(
1116
1093
  NetworkPanel.NetworkPanel.NetworkPanel, sinon.createStubInstance(NetworkPanel.NetworkPanel.NetworkPanel));
1117
- panel = new Freestyler.FreestylerPanel(mockView, {
1118
- aidaClient: getTestAidaClient(),
1094
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
1095
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
1119
1096
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
1120
1097
  syncInfo: getTestSyncInfo(),
1121
1098
  });
@@ -1123,11 +1100,11 @@ describeWithEnvironment('FreestylerPanel', () => {
1123
1100
  panel.markAsRoot();
1124
1101
  panel.show(document.body);
1125
1102
  sinon.assert.calledWith(mockView, sinon.match({
1126
- agentType: AiAgent.AgentType.DRJONES_NETWORK_REQUEST,
1103
+ agentType: AiAssistance.AgentType.NETWORK,
1127
1104
  }));
1128
1105
 
1129
1106
  UI.Context.Context.instance().setFlavor(NetworkPanel.NetworkPanel.NetworkPanel, null);
1130
- assert.deepStrictEqual(mockView.lastCall.args[0].agentType, undefined);
1107
+ assert.isUndefined(mockView.lastCall.args[0].agentType);
1131
1108
  stub.restore();
1132
1109
  });
1133
1110
 
@@ -1141,8 +1118,8 @@ describeWithEnvironment('FreestylerPanel', () => {
1141
1118
  UI.Context.Context.instance().setFlavor(
1142
1119
  NetworkPanel.NetworkPanel.NetworkPanel,
1143
1120
  sinon.createStubInstance(NetworkPanel.NetworkPanel.NetworkPanel));
1144
- panel = new Freestyler.FreestylerPanel(mockView, {
1145
- aidaClient: getTestAidaClient(),
1121
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
1122
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
1146
1123
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
1147
1124
  syncInfo: getTestSyncInfo(),
1148
1125
  });
@@ -1150,7 +1127,7 @@ describeWithEnvironment('FreestylerPanel', () => {
1150
1127
  panel.markAsRoot();
1151
1128
  panel.show(document.body);
1152
1129
 
1153
- assert.deepStrictEqual(mockView.lastCall.args[0].agentType, undefined);
1130
+ assert.isUndefined(mockView.lastCall.args[0].agentType);
1154
1131
  stub.restore();
1155
1132
  });
1156
1133
  });
@@ -1164,8 +1141,8 @@ describeWithEnvironment('FreestylerPanel', () => {
1164
1141
  });
1165
1142
  UI.Context.Context.instance().setFlavor(
1166
1143
  SourcesPanel.SourcesPanel.SourcesPanel, sinon.createStubInstance(SourcesPanel.SourcesPanel.SourcesPanel));
1167
- panel = new Freestyler.FreestylerPanel(mockView, {
1168
- aidaClient: getTestAidaClient(),
1144
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
1145
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
1169
1146
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
1170
1147
  syncInfo: getTestSyncInfo(),
1171
1148
  });
@@ -1174,7 +1151,7 @@ describeWithEnvironment('FreestylerPanel', () => {
1174
1151
  panel.show(document.body);
1175
1152
 
1176
1153
  sinon.assert.calledWith(mockView, sinon.match({
1177
- agentType: AiAgent.AgentType.DRJONES_FILE,
1154
+ agentType: AiAssistance.AgentType.FILE,
1178
1155
  }));
1179
1156
  stub.restore();
1180
1157
  });
@@ -1187,8 +1164,8 @@ describeWithEnvironment('FreestylerPanel', () => {
1187
1164
  });
1188
1165
  UI.Context.Context.instance().setFlavor(
1189
1166
  SourcesPanel.SourcesPanel.SourcesPanel, sinon.createStubInstance(SourcesPanel.SourcesPanel.SourcesPanel));
1190
- panel = new Freestyler.FreestylerPanel(mockView, {
1191
- aidaClient: getTestAidaClient(),
1167
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
1168
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
1192
1169
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
1193
1170
  syncInfo: getTestSyncInfo(),
1194
1171
  });
@@ -1196,11 +1173,11 @@ describeWithEnvironment('FreestylerPanel', () => {
1196
1173
  panel.markAsRoot();
1197
1174
  panel.show(document.body);
1198
1175
  sinon.assert.calledWith(mockView, sinon.match({
1199
- agentType: AiAgent.AgentType.DRJONES_FILE,
1176
+ agentType: AiAssistance.AgentType.FILE,
1200
1177
  }));
1201
1178
 
1202
1179
  UI.Context.Context.instance().setFlavor(SourcesPanel.SourcesPanel.SourcesPanel, null);
1203
- assert.deepStrictEqual(mockView.lastCall.args[0].agentType, undefined);
1180
+ assert.isUndefined(mockView.lastCall.args[0].agentType);
1204
1181
  stub.restore();
1205
1182
  });
1206
1183
 
@@ -1214,8 +1191,8 @@ describeWithEnvironment('FreestylerPanel', () => {
1214
1191
  UI.Context.Context.instance().setFlavor(
1215
1192
  SourcesPanel.SourcesPanel.SourcesPanel,
1216
1193
  sinon.createStubInstance(SourcesPanel.SourcesPanel.SourcesPanel));
1217
- panel = new Freestyler.FreestylerPanel(mockView, {
1218
- aidaClient: getTestAidaClient(),
1194
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
1195
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
1219
1196
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
1220
1197
  syncInfo: getTestSyncInfo(),
1221
1198
  });
@@ -1223,7 +1200,7 @@ describeWithEnvironment('FreestylerPanel', () => {
1223
1200
  panel.markAsRoot();
1224
1201
  panel.show(document.body);
1225
1202
 
1226
- assert.deepStrictEqual(mockView.lastCall.args[0].agentType, undefined);
1203
+ assert.isUndefined(mockView.lastCall.args[0].agentType);
1227
1204
  stub.restore();
1228
1205
  });
1229
1206
  });
@@ -1238,8 +1215,8 @@ describeWithEnvironment('FreestylerPanel', () => {
1238
1215
  UI.Context.Context.instance().setFlavor(
1239
1216
  TimelinePanel.TimelinePanel.TimelinePanel,
1240
1217
  sinon.createStubInstance(TimelinePanel.TimelinePanel.TimelinePanel));
1241
- panel = new Freestyler.FreestylerPanel(mockView, {
1242
- aidaClient: getTestAidaClient(),
1218
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
1219
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
1243
1220
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
1244
1221
  syncInfo: getTestSyncInfo(),
1245
1222
  });
@@ -1248,7 +1225,7 @@ describeWithEnvironment('FreestylerPanel', () => {
1248
1225
  panel.show(document.body);
1249
1226
 
1250
1227
  sinon.assert.calledWith(mockView, sinon.match({
1251
- agentType: AiAgent.AgentType.DRJONES_PERFORMANCE,
1228
+ agentType: AiAssistance.AgentType.PERFORMANCE,
1252
1229
  }));
1253
1230
  stub.restore();
1254
1231
  });
@@ -1262,8 +1239,8 @@ describeWithEnvironment('FreestylerPanel', () => {
1262
1239
  UI.Context.Context.instance().setFlavor(
1263
1240
  TimelinePanel.TimelinePanel.TimelinePanel,
1264
1241
  sinon.createStubInstance(TimelinePanel.TimelinePanel.TimelinePanel));
1265
- panel = new Freestyler.FreestylerPanel(mockView, {
1266
- aidaClient: getTestAidaClient(),
1242
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
1243
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
1267
1244
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
1268
1245
  syncInfo: getTestSyncInfo(),
1269
1246
  });
@@ -1271,11 +1248,11 @@ describeWithEnvironment('FreestylerPanel', () => {
1271
1248
  panel.markAsRoot();
1272
1249
  panel.show(document.body);
1273
1250
  sinon.assert.calledWith(mockView, sinon.match({
1274
- agentType: AiAgent.AgentType.DRJONES_PERFORMANCE,
1251
+ agentType: AiAssistance.AgentType.PERFORMANCE,
1275
1252
  }));
1276
1253
 
1277
1254
  UI.Context.Context.instance().setFlavor(TimelinePanel.TimelinePanel.TimelinePanel, null);
1278
- assert.deepStrictEqual(mockView.lastCall.args[0].agentType, undefined);
1255
+ assert.isUndefined(mockView.lastCall.args[0].agentType);
1279
1256
  stub.restore();
1280
1257
  });
1281
1258
 
@@ -1289,8 +1266,8 @@ describeWithEnvironment('FreestylerPanel', () => {
1289
1266
  UI.Context.Context.instance().setFlavor(
1290
1267
  TimelinePanel.TimelinePanel.TimelinePanel,
1291
1268
  sinon.createStubInstance(TimelinePanel.TimelinePanel.TimelinePanel));
1292
- panel = new Freestyler.FreestylerPanel(mockView, {
1293
- aidaClient: getTestAidaClient(),
1269
+ panel = new AiAssistance.AiAssistancePanel(mockView, {
1270
+ aidaClient: mockAidaClient([[{explanation: 'test'}]]),
1294
1271
  aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
1295
1272
  syncInfo: getTestSyncInfo(),
1296
1273
  });
@@ -1298,9 +1275,44 @@ describeWithEnvironment('FreestylerPanel', () => {
1298
1275
  panel.markAsRoot();
1299
1276
  panel.show(document.body);
1300
1277
 
1301
- assert.deepStrictEqual(mockView.lastCall.args[0].agentType, undefined);
1278
+ assert.isUndefined(mockView.lastCall.args[0].agentType);
1302
1279
  stub.restore();
1303
1280
  });
1304
1281
  });
1305
1282
  });
1283
+
1284
+ it('erases previous partial response on blocked error', async () => {
1285
+ async function* generateAnswerAndError() {
1286
+ yield {
1287
+ explanation: 'ANSWER: This is the first part of the answer.',
1288
+ metadata: {},
1289
+ completed: false,
1290
+ };
1291
+ throw new Host.AidaClient.AidaBlockError();
1292
+ }
1293
+
1294
+ const mockAidaClient = {
1295
+ fetch: generateAnswerAndError,
1296
+ registerClientEvent: sinon.spy(),
1297
+ };
1298
+
1299
+ const messages: AiAssistance.ModelChatMessage[] = [];
1300
+ const viewMock = sinon.stub().callsFake((props: AiAssistance.Props) => {
1301
+ messages.push(JSON.parse(JSON.stringify(props.messages[1])));
1302
+ });
1303
+
1304
+ panel = new AiAssistance.AiAssistancePanel(viewMock, {
1305
+ aidaClient: mockAidaClient,
1306
+ aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
1307
+ syncInfo: getTestSyncInfo(),
1308
+ });
1309
+ panel.handleAction('freestyler.elements-floating-button');
1310
+ viewMock.lastCall.args[0].onTextSubmit('test');
1311
+ await drainMicroTasks();
1312
+
1313
+ assert.strictEqual(messages[2].answer, 'This is the first part of the answer.');
1314
+ assert.isUndefined(messages[2].error);
1315
+ assert.isUndefined(messages[3].answer);
1316
+ assert.strictEqual(messages[3].error, 'block');
1317
+ });
1306
1318
  });