chrome-devtools-frontend 1.0.1732418 → 1.0.1732697

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 (102) hide show
  1. package/docs/get_the_code.md +1 -73
  2. package/front_end/Tests.js +0 -5
  3. package/front_end/core/host/AidaClientTypes.ts +19 -2
  4. package/front_end/core/sdk/DOMModel.ts +8 -3
  5. package/front_end/entrypoints/formatter_worker/ScopeParser.ts +2 -2
  6. package/front_end/generated/SupportedCSSProperties.ts +2 -2
  7. package/front_end/models/ai-utils/debug.ts +127 -22
  8. package/front_end/models/ai_assistance/README.md +1 -1
  9. package/front_end/models/ai_assistance/agents/AiAgent.ts +10 -5
  10. package/front_end/models/ai_assistance/contexts/DOMNodeContext.ts +4 -3
  11. package/front_end/models/ai_assistance/contexts/LighthouseContext.snapshot.txt +4 -2
  12. package/front_end/models/ai_assistance/data_formatters/LighthouseFormatter.snapshot.txt +6 -0
  13. package/front_end/models/ai_assistance/data_formatters/LighthouseFormatter.ts +2 -0
  14. package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.snapshot.txt +1 -1
  15. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +26 -26
  16. package/front_end/models/ai_code_completion/AiCodeCompletion.ts +2 -1
  17. package/front_end/models/ai_code_completion/ai_code_completion.ts +11 -2
  18. package/front_end/models/ai_code_generation/AiCodeGeneration.ts +2 -1
  19. package/front_end/models/ai_code_generation/ai_code_generation.ts +11 -2
  20. package/front_end/models/trace/LanternComputationData.ts +4 -0
  21. package/front_end/models/trace/lantern/metrics/LargestContentfulPaint.ts +126 -1
  22. package/front_end/models/trace/lantern/types/Lantern.ts +3 -0
  23. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +32 -0
  24. package/front_end/panels/ai_assistance/ExternalHandler.ts +1 -1
  25. package/front_end/panels/ai_assistance/components/PermissionPrompt.ts +4 -4
  26. package/front_end/panels/ai_assistance/components/chatMessage.css +3 -4
  27. package/front_end/panels/ai_assistance/components/exploreWidget.css +2 -2
  28. package/front_end/panels/application/components/reportsGrid.css +1 -1
  29. package/front_end/panels/application/components/serviceWorkerRouterView.css +2 -2
  30. package/front_end/panels/application/components/trustTokensView.css +1 -1
  31. package/front_end/panels/application/indexedDBViews.css +0 -4
  32. package/front_end/panels/application/resourcesPanel.css +0 -9
  33. package/front_end/panels/application/serviceWorkerUpdateCycleView.css +3 -3
  34. package/front_end/panels/application/serviceWorkersView.css +3 -2
  35. package/front_end/panels/comments/CommentsPane.ts +2 -11
  36. package/front_end/panels/common/CommentThreadWidget.ts +11 -3
  37. package/front_end/panels/console/consoleContextSelector.css +1 -1
  38. package/front_end/panels/console/consolePinPane.css +1 -1
  39. package/front_end/panels/console/consolePrompt.css +4 -2
  40. package/front_end/panels/elements/ComputedStyleWidget.ts +8 -19
  41. package/front_end/panels/elements/PropertyRenderer.ts +7 -27
  42. package/front_end/panels/elements/StylePropertyTreeElement.ts +61 -72
  43. package/front_end/panels/elements/components/elementsBreadcrumbs.css +1 -1
  44. package/front_end/panels/elements/metricsSidebarPane.css +2 -2
  45. package/front_end/panels/elements/propertiesWidget.css +0 -5
  46. package/front_end/panels/emulation/deviceModeView.css +3 -3
  47. package/front_end/panels/event_listeners/eventListenersView.css +1 -1
  48. package/front_end/panels/explain/components/consoleInsight.css +2 -2
  49. package/front_end/panels/issues/issuesTree.css +6 -4
  50. package/front_end/panels/layer_viewer/layerTreeOutline.css +1 -1
  51. package/front_end/panels/lighthouse/lighthousePanel.css +1 -1
  52. package/front_end/panels/linear_memory_inspector/components/valueInterpreterDisplay.css +1 -1
  53. package/front_end/panels/media/playerListView.css +8 -4
  54. package/front_end/panels/media/playerMessagesView.css +9 -5
  55. package/front_end/panels/network/NetworkWaterfallColumn.ts +92 -55
  56. package/front_end/panels/network/networkConfigView.css +3 -3
  57. package/front_end/panels/network/networkLogView.css +5 -4
  58. package/front_end/panels/network/networkManageCustomHeadersView.css +1 -1
  59. package/front_end/panels/network/networkTimingTable.css +4 -4
  60. package/front_end/panels/network/requestPayloadView.css +1 -1
  61. package/front_end/panels/performance_monitor/performanceMonitor.css +1 -1
  62. package/front_end/panels/profiler/ModuleUIStrings.ts +12 -0
  63. package/front_end/panels/protocol_monitor/JSONEditor.css +4 -3
  64. package/front_end/panels/recorder/createRecordingView.css +2 -2
  65. package/front_end/panels/recorder/stepView.css +0 -7
  66. package/front_end/panels/recorder/timelineSection.css +1 -1
  67. package/front_end/panels/screencast/screencastView.css +1 -1
  68. package/front_end/panels/security/mainView.css +1 -1
  69. package/front_end/panels/security/originView.css +1 -1
  70. package/front_end/panels/sources/breakpointsView.css +3 -3
  71. package/front_end/panels/sources/watchExpressionsSidebarPane.css +2 -1
  72. package/front_end/panels/timeline/CompatibilityTracksAppender.ts +30 -10
  73. package/front_end/panels/timeline/components/networkRequestTooltip.css +2 -2
  74. package/front_end/panels/timeline/components/relatedInsightChips.css +1 -1
  75. package/front_end/panels/timeline/timelineFlameChartView.css +4 -4
  76. package/front_end/panels/timeline/timelineFlamechartPopover.css +2 -2
  77. package/front_end/panels/timeline/timelineMiniMap.css +2 -1
  78. package/front_end/third_party/chromium/README.chromium +1 -1
  79. package/front_end/ui/components/buttons/button.css +0 -1
  80. package/front_end/ui/components/diff_view/diffView.css +1 -1
  81. package/front_end/ui/components/markdown_view/codeBlock.css +3 -3
  82. package/front_end/ui/components/markdown_view/markdownView.css +2 -2
  83. package/front_end/ui/components/panel_feedback/panelFeedback.css +3 -2
  84. package/front_end/ui/components/suggestion_input/suggestionInput.css +2 -2
  85. package/front_end/ui/legacy/components/inline_editor/colorSwatch.css +1 -2
  86. package/front_end/ui/legacy/components/perf_ui/chartViewport.css +1 -1
  87. package/front_end/ui/legacy/components/perf_ui/filmStripView.css +1 -1
  88. package/front_end/ui/legacy/components/perf_ui/flameChart.css +5 -3
  89. package/front_end/ui/legacy/components/perf_ui/overviewGrid.css +7 -4
  90. package/front_end/ui/legacy/components/perf_ui/pieChart.css +0 -1
  91. package/front_end/ui/legacy/components/utils/imagePreview.css +1 -1
  92. package/front_end/ui/legacy/inspectorCommon.css +8 -25
  93. package/front_end/ui/legacy/progressIndicator.css +1 -2
  94. package/front_end/ui/legacy/reportView.css +4 -1
  95. package/front_end/ui/legacy/searchableView.css +1 -1
  96. package/front_end/ui/legacy/tabbedPane.css +7 -4
  97. package/front_end/ui/legacy/treeoutline.css +1 -1
  98. package/front_end/ui/legacy/viewContainers.css +1 -1
  99. package/front_end/ui/visual_logging/KnownContextValues.ts +8 -0
  100. package/package.json +1 -1
  101. package/front_end/models/ai_code_completion/debug.ts +0 -33
  102. package/front_end/models/ai_code_generation/debug.ts +0 -33
@@ -1,8 +1,6 @@
1
1
  // Copyright 2023 The Chromium Authors
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
- /* eslint-disable @devtools/no-imperative-dom-api */
5
-
6
4
  import * as Common from '../../core/common/common.js';
7
5
  import * as Host from '../../core/host/host.js';
8
6
  import * as Platform from '../../core/platform/platform.js';
@@ -11,6 +9,7 @@ import * as SourceMapsResolver from '../../models/trace_source_maps_resolver/tra
11
9
  import * as Workspace from '../../models/workspace/workspace.js';
12
10
  import type * as PerfUI from '../../ui/legacy/components/perf_ui/perf_ui.js';
13
11
  import * as ThemeSupport from '../../ui/legacy/theme_support/theme_support.js';
12
+ import {html, render} from '../../ui/lit/lit.js';
14
13
  import * as SettingsUI from '../../ui/settings/settings.js';
15
14
 
16
15
  import {AnimationsTrackAppender} from './AnimationsTrackAppender.js';
@@ -37,6 +36,23 @@ export interface PopoverInfo {
37
36
  additionalElements: HTMLElement[];
38
37
  }
39
38
 
39
+ export interface PopoverUrlViewInput {
40
+ path: string;
41
+ originWithEntity: string;
42
+ }
43
+
44
+ export type PopoverUrlView = (input: PopoverUrlViewInput, output: undefined, target: DocumentFragment) => void;
45
+
46
+ export function renderPopoverUrl(
47
+ input: PopoverUrlViewInput,
48
+ _output: undefined,
49
+ target: DocumentFragment,
50
+ ): void {
51
+ render(html`<div><span class="popoverinfo-url-path">${input.path}</span><span class="popoverinfo-url-origin">(${
52
+ input.originWithEntity})</span></div>`,
53
+ target);
54
+ }
55
+
40
56
  export function entryIsVisibleInTimeline(
41
57
  entry: Trace.Types.Events.Event, parsedTrace?: Trace.TraceModel.ParsedTrace): boolean {
42
58
  if (parsedTrace?.data.Meta.traceIsGeneric) {
@@ -197,6 +213,7 @@ export class CompatibilityTracksAppender {
197
213
  #layoutShiftsTrackAppender: LayoutShiftsTrackAppender;
198
214
  #threadAppenders: ThreadAppender[] = [];
199
215
  #entityMapper: Trace.EntityMapper.EntityMapper|null;
216
+ #view: PopoverUrlView;
200
217
 
201
218
  /**
202
219
  * @param flameChartData the data used by the flame chart renderer on
@@ -211,15 +228,16 @@ export class CompatibilityTracksAppender {
211
228
  * architecture and should be removed once all tracks use the new
212
229
  * system.
213
230
  * @param entityMapper 3P entity data for the trace.
231
+ * @param view function to render popover url content.
214
232
  */
215
- constructor(
216
- flameChartData: PerfUI.FlameChart.FlameChartTimelineData, parsedTrace: Trace.TraceModel.ParsedTrace,
217
- entryData: Trace.Types.Events.Event[], legacyEntryTypeByLevel: EntryType[],
218
- entityMapper: Trace.EntityMapper.EntityMapper|null) {
233
+ constructor(flameChartData: PerfUI.FlameChart.FlameChartTimelineData, parsedTrace: Trace.TraceModel.ParsedTrace,
234
+ entryData: Trace.Types.Events.Event[], legacyEntryTypeByLevel: EntryType[],
235
+ entityMapper: Trace.EntityMapper.EntityMapper|null, view: PopoverUrlView = renderPopoverUrl) {
219
236
  this.#flameChartData = flameChartData;
220
237
  this.#parsedTrace = parsedTrace;
221
238
  this.#entityMapper = entityMapper;
222
239
  this.#entryData = entryData;
240
+ this.#view = view;
223
241
  this.#colorGenerator = new Common.Color.Generator(
224
242
  /* hueSpace= */ {min: 30, max: 55},
225
243
  /* satSpace= */ {min: 70, max: 100, count: 6},
@@ -635,14 +653,16 @@ export class CompatibilityTracksAppender {
635
653
  if (url) {
636
654
  const MAX_PATH_LENGTH = 45;
637
655
  const path = Platform.StringUtilities.trimMiddle(url.href.replace(url.origin, ''), MAX_PATH_LENGTH);
638
- const urlElems = document.createElement('div');
639
- urlElems.createChild('span', 'popoverinfo-url-path').textContent = path;
640
656
  const entity = this.#entityMapper ? this.#entityMapper.entityForEvent(event) : null;
641
657
  // Include entity with origin if it's non made-up entity, otherwise there'd be
642
658
  // repetition with the origin.
643
659
  const originWithEntity = TimelineUtils.Helpers.formatOriginWithEntity(url, entity);
644
- urlElems.createChild('span', 'popoverinfo-url-origin').textContent = `(${originWithEntity})`;
645
- info.additionalElements.push(urlElems);
660
+ const fragment = document.createDocumentFragment();
661
+ this.#view({path, originWithEntity}, undefined, fragment);
662
+ const urlElement = fragment.firstElementChild;
663
+ if (urlElement instanceof HTMLElement) {
664
+ info.additionalElements.push(urlElement);
665
+ }
646
666
  }
647
667
 
648
668
  return info;
@@ -10,8 +10,8 @@
10
10
  }
11
11
 
12
12
  .url {
13
- margin-left: 15px;
14
- margin-right: 5px;
13
+ margin-left: var(--sys-size-7);
14
+ margin-right: var(--sys-size-3);
15
15
  }
16
16
 
17
17
  .url--host {
@@ -59,7 +59,7 @@
59
59
  background: none;
60
60
  padding: var(--sys-size-4) var(--sys-size-5);
61
61
  width: 100%;
62
- max-width: 500px;
62
+ max-width: var(--sys-size-34);
63
63
 
64
64
  .insight-label {
65
65
  color: var(--sys-color-orange-bright);
@@ -89,7 +89,7 @@
89
89
 
90
90
  .overlay-type-CANDY_STRIPED_TIME_RANGE {
91
91
  --red-stripe-width: var(--sys-size-2);
92
- --white-stripe-width: 7px;
92
+ --white-stripe-width: var(--sys-size-4);
93
93
 
94
94
  background-image:
95
95
  repeating-linear-gradient(
@@ -128,11 +128,11 @@
128
128
  bottom: 0;
129
129
 
130
130
  &.overlap-1 {
131
- bottom: 55px;
131
+ bottom: var(--sys-size-17);
132
132
  }
133
133
 
134
134
  &.overlap-2 {
135
- bottom: 105px;
135
+ bottom: var(--sys-size-20);
136
136
  }
137
137
  }
138
138
 
@@ -172,7 +172,7 @@
172
172
 
173
173
  .overlay-type-TIMINGS_MARKER {
174
174
  bottom: 0;
175
- width: 0.5px;
175
+ width: var(--sys-size-1);
176
176
  pointer-events: auto;
177
177
  background-color: var(--marker-color); /* stylelint-disable-line plugin/use_theme_colors */
178
178
  }
@@ -11,8 +11,8 @@
11
11
  margin: calc(-1 * var(--sys-size-3));
12
12
  }
13
13
 
14
- .timeline-flamechart-popover devtools-interaction-breakdown {
15
- margin-top: 10px;
14
+ .timeline-flamechart-popover devtools-widget {
15
+ margin-top: var(--sys-size-5);
16
16
  }
17
17
 
18
18
  .timeline-flamechart-popover span {
@@ -20,12 +20,13 @@
20
20
 
21
21
  .timeline-minimap .overview-strip .timeline-overview-strip-title {
22
22
  color: var(--sys-color-token-subtle);
23
- font-size: 10px;
23
+ font-size: var(--sys-typescale-body5-size);
24
24
  font-weight: bold;
25
25
  z-index: 100;
26
26
  background-color: var(--sys-color-cdt-base-container);
27
27
  padding: 0 var(--sys-size-3);
28
28
  position: absolute;
29
+ /* 2px upward offset (--sys-size-2 = 2px) matching parent .overview-strip top margin */
29
30
  top: calc(var(--sys-size-2) * -1);
30
31
  right: 0;
31
32
  }
@@ -1,7 +1,7 @@
1
1
  Name: Dependencies sourced from the upstream `chromium` repository
2
2
  URL: Internal
3
3
  Version: N/A
4
- Revision: 8f43954c16bf4cc3c66cabb5750424d56e5f8ffd
4
+ Revision: 481a581fe3e96f2a21db53a085901a0133f30e1d
5
5
  Update Mechanism: Manual (https://crbug.com/428069060)
6
6
  License: BSD-3-Clause
7
7
  License File: LICENSE
@@ -135,7 +135,6 @@ button {
135
135
  devtools-icon.long-click {
136
136
  position: absolute;
137
137
  top: var(--sys-size-2);
138
- left: 3px;
139
138
  }
140
139
 
141
140
  devtools-icon[name='cross-circle-filled'] {
@@ -78,5 +78,5 @@
78
78
  font-family: var(--source-code-font-family);
79
79
  font-size: var(--source-code-font-size);
80
80
  margin: 0;
81
- padding: var(--sys-size-5) 9px;
81
+ padding: var(--sys-size-5);
82
82
  }
@@ -43,7 +43,7 @@
43
43
  .codeblock .editor-wrapper .code {
44
44
  max-height: var(--code-block-max-code-height);
45
45
  overflow: auto;
46
- padding-bottom: 10px;
46
+ padding-bottom: var(--sys-size-5);
47
47
  }
48
48
 
49
49
  .codeblock.no-toolbar .editor-wrapper {
@@ -52,8 +52,8 @@
52
52
 
53
53
  .codeblock.no-toolbar .copy-button-container {
54
54
  position: absolute;
55
- top: 5px;
56
- right: 5px;
55
+ top: var(--sys-size-4);
56
+ right: var(--sys-size-4);
57
57
  z-index: 1;
58
58
  }
59
59
 
@@ -34,7 +34,7 @@ devtools-code-block.animating {
34
34
  }
35
35
 
36
36
  .message {
37
- line-height: 18px;
37
+ line-height: var(--sys-typescale-body4-line-height);
38
38
  font-size: var(--sys-typescale-body4-size);
39
39
  color: var(--sys-color-on-surface);
40
40
  user-select: text;
@@ -115,7 +115,7 @@ devtools-code-block {
115
115
  outline-offset: var(--sys-size-2);
116
116
  border: none;
117
117
  padding: 0;
118
- font-size: 10px;
118
+ font-size: var(--sys-typescale-body5-size);
119
119
  font-family: var(--default-font-family);
120
120
  }
121
121
 
@@ -15,7 +15,7 @@
15
15
  font-size: var(--sys-typescale-body3-size);
16
16
  line-height: var(--sys-typescale-body3-line-height);
17
17
  border-radius: var(--sys-shape-corner-medium-small);
18
- margin: 42px 0;
18
+ margin: var(--sys-size-14) 0;
19
19
  letter-spacing: 0.01em;
20
20
  }
21
21
 
@@ -45,7 +45,8 @@ h3 {
45
45
  }
46
46
 
47
47
  .thumbnail {
48
- height: 92px;
48
+ /* 80px (--sys-size-19) + 12px (--sys-size-6) = 92px to match the 144x92 preview_feature_video_thumbnail.svg height without inline descender gap. */
49
+ height: calc(var(--sys-size-19) + var(--sys-size-6));
49
50
  }
50
51
 
51
52
  .video {
@@ -57,11 +57,11 @@ devtools-editable-content:focus ~ devtools-suggestion-box {
57
57
  background-color: var(--sys-color-cdt-base-container);
58
58
  box-shadow: var(--drop-shadow);
59
59
  min-height: 1em;
60
- min-width: 150px;
60
+ min-width: var(--sys-size-23);
61
61
  overflow: hidden auto;
62
62
  position: relative;
63
63
  z-index: 100;
64
- max-height: 350px;
64
+ max-height: var(--sys-size-32);
65
65
  }
66
66
 
67
67
  .suggestions > li {
@@ -19,13 +19,12 @@
19
19
  display: inline-block;
20
20
  user-select: none;
21
21
  background-image: var(--image-file-checker);
22
- line-height: 10px;
23
22
  }
24
23
 
25
24
  .color-swatch-inner {
26
25
  width: 100%;
27
26
  height: 100%;
28
- display: inline-block;
27
+ display: block;
29
28
  border: var(--sys-size-1) solid var(--sys-color-neutral-outline);
30
29
  box-sizing: border-box;
31
30
  cursor: pointer;
@@ -40,7 +40,7 @@
40
40
  /* force non overlay scrollbars for Aura Overlay Scrollbar enabled */
41
41
 
42
42
  :host-context(.overlay-scrollbar-enabled) ::-webkit-scrollbar {
43
- width: 10px;
43
+ width: var(--sys-size-5);
44
44
  }
45
45
 
46
46
  :host-context(.overlay-scrollbar-enabled) ::-webkit-scrollbar-thumb {
@@ -7,7 +7,7 @@
7
7
  .film-strip-view {
8
8
  overflow: auto hidden;
9
9
  align-content: flex-start;
10
- min-height: 81px;
10
+ min-height: var(--sys-size-19);
11
11
  }
12
12
 
13
13
  .film-strip-view .frame .time {
@@ -17,9 +17,11 @@
17
17
  .flame-chart-marker-highlight-element {
18
18
  position: absolute;
19
19
  top: var(--sys-size-1);
20
- height: 18px;
20
+ /* 20px header (--sys-size-9) minus two 1px top/bottom borders (2 * --sys-size-1). */
21
+ height: calc(var(--sys-size-9) - 2 * var(--sys-size-1));
21
22
  width: var(--sys-size-4);
22
- margin: 0 -3px;
23
+ /* Half of 6px width (--sys-size-4) to center horizontally on left: barX. */
24
+ margin: 0 calc(-1 * var(--sys-size-4) / 2);
23
25
  content: "";
24
26
  display: block;
25
27
  }
@@ -75,7 +77,7 @@
75
77
  }
76
78
 
77
79
  .flame-chart-entry-info table tr td:not(:empty) {
78
- padding: 0 5px;
80
+ padding: 0 var(--sys-size-3);
79
81
  white-space: nowrap;
80
82
  }
81
83
 
@@ -16,13 +16,16 @@
16
16
  .overview-grid-window-resizer {
17
17
  position: absolute;
18
18
  top: 0;
19
- height: 19px;
20
- width: 10px;
21
- margin-left: -5px; /* half width (incl the border) */
19
+ /* 20px (--sys-size-9) timeline header height minus 1px (--sys-size-1) bottom clearance */
20
+ height: calc(var(--sys-size-9) - var(--sys-size-1));
21
+ /* 8px (--sys-size-5) inner grip box plus 2x 1px (--sys-size-1) for left and right borders */
22
+ width: calc(var(--sys-size-5) + 2 * var(--sys-size-1));
23
+ /* Negative half of the 10px outer width: 4px (--sys-size-3) inner half-width plus 1px (--sys-size-1) border */
24
+ margin-left: calc(-1 * (var(--sys-size-3) + var(--sys-size-1)));
22
25
  background-color: var(--sys-color-tonal-container);
23
26
  border: var(--sys-size-1) solid var(--sys-color-tonal-outline);
24
27
  z-index: 500;
25
- border-radius: 3px;
28
+ border-radius: var(--sys-shape-corner-extra-small);
26
29
  }
27
30
 
28
31
  /* Grip lines within the handle */
@@ -34,7 +34,6 @@
34
34
 
35
35
  .pie-chart-total {
36
36
  margin: auto;
37
- padding: var(--sys-size-2) 5px;
38
37
  pointer-events: auto;
39
38
  }
40
39
 
@@ -25,7 +25,7 @@
25
25
  }
26
26
 
27
27
  .image-container > div {
28
- min-height: 50px;
28
+ min-height: var(--sys-size-16);
29
29
  display: flex;
30
30
  align-items: center;
31
31
  justify-content: center;
@@ -209,9 +209,9 @@ input {
209
209
 
210
210
  &:not(:disabled):focus-visible::before {
211
211
  content: '';
212
- height: 15px;
213
- width: 15px;
214
- border-radius: 5px;
212
+ height: var(--sys-size-7);
213
+ width: var(--sys-size-7);
214
+ border-radius: var(--sys-shape-corner-extra-small);
215
215
  position: absolute;
216
216
  border: var(--sys-size-2) solid var(--sys-color-state-focus-ring);
217
217
  }
@@ -560,13 +560,13 @@ dt-icon-label {
560
560
  background-color: var(--sys-color-cdt-base-container);
561
561
  color: var(--sys-color-on-surface);
562
562
  cursor: pointer;
563
- border-radius: 3px;
563
+ border-radius: var(--sys-shape-corner-extra-small);
564
564
  }
565
565
 
566
566
  .undisplayable-text,
567
567
  .expandable-inline-button {
568
568
  border: none;
569
- padding: var(--sys-size-1) 3px;
569
+ padding: var(--sys-size-1) var(--sys-size-3);
570
570
  margin: 0 var(--sys-size-2);
571
571
  font-size: var(--sys-typescale-body5-size);
572
572
  font-family: inherit;
@@ -878,19 +878,6 @@ devtools-toolbar {
878
878
  opacity: 50%;
879
879
  }
880
880
 
881
- .toolbar-button.copied-to-clipboard::after {
882
- content: attr(data-content);
883
- position: fixed;
884
- margin-top: calc(2 * var(--toolbar-height));
885
- padding: 3px 5px;
886
- color: var(--sys-color-token-subtle);
887
- background: var(--sys-color-cdt-base-container);
888
- animation: 2s fade-out;
889
- font-weight: normal;
890
- border: var(--sys-size-1) solid var(--sys-color-divider);
891
- border-radius: 3px;
892
- }
893
-
894
881
  .toolbar-button.toolbar-state-on .toolbar-glyph {
895
882
  color: var(--icon-toggled);
896
883
  }
@@ -974,12 +961,12 @@ devtools-toolbar {
974
961
  .toolbar-input {
975
962
  box-shadow: inset 0 0 0 var(--sys-size-2) transparent;
976
963
  box-sizing: border-box;
977
- width: 120px;
964
+ width: var(--sys-size-20);
978
965
  height: var(--sys-size-9);
979
966
  padding: 0 var(--sys-size-2) 0 var(--sys-size-5);
980
- margin: var(--sys-size-1) 3px;
967
+ margin: var(--sys-size-1) var(--sys-size-2);
981
968
  border-radius: var(--sys-shape-corner-full);
982
- min-width: 35px;
969
+ min-width: var(--sys-size-14);
983
970
  position: relative;
984
971
 
985
972
  &.focused {
@@ -1077,10 +1064,6 @@ devtools-toolbar {
1077
1064
  }
1078
1065
  }
1079
1066
 
1080
- devtools-icon.leading-issue-icon {
1081
- margin: 0 7px;
1082
- }
1083
-
1084
1067
  @media (forced-colors: active) {
1085
1068
  .toolbar-button:disabled {
1086
1069
  opacity: 100%;
@@ -7,7 +7,6 @@
7
7
  .progress-indicator-shadow-stop-button {
8
8
  background-color: var(--sys-color-error-bright);
9
9
  border: 0;
10
- width: 10px;
11
10
  height: var(--sys-size-6);
12
11
  border-radius: var(--sys-size-2);
13
12
  }
@@ -29,5 +28,5 @@
29
28
  .progress-indicator-shadow-container progress {
30
29
  flex: auto;
31
30
  margin: 0 var(--sys-size-2);
32
- width: 100px;
31
+ width: var(--sys-size-19);
33
32
  }
@@ -43,7 +43,10 @@
43
43
 
44
44
  .report-section {
45
45
  display: flex;
46
- padding: var(--sys-size-7) var(--sys-size-9) 11px var(--sys-size-9);
46
+ /* 12px bottom padding (--sys-size-6) minus 1px border (--sys-size-1) = 11px. */
47
+ padding:
48
+ var(--sys-size-7) var(--sys-size-9)
49
+ calc(var(--sys-size-6) - var(--sys-size-1)) var(--sys-size-9);
47
50
  border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
48
51
  flex-direction: column;
49
52
  }
@@ -117,7 +117,7 @@
117
117
  grid-auto-rows: var(--sys-size-12);
118
118
  flex-grow: 1;
119
119
  align-items: center;
120
- min-width: 150px;
120
+ min-width: var(--sys-size-23);
121
121
  }
122
122
 
123
123
  .first-row-buttons {
@@ -52,7 +52,8 @@
52
52
 
53
53
  .tabbed-pane-header {
54
54
  display: flex;
55
- flex: 0 0 27px;
55
+ /* 28px standard toolbar height (--sys-size-12) minus 1px bottom border (--sys-size-1). */
56
+ flex: 0 0 calc(var(--sys-size-12) - var(--sys-size-1));
56
57
  border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
57
58
  overflow: visible;
58
59
  width: 100%;
@@ -99,7 +100,8 @@
99
100
  }
100
101
 
101
102
  &:has(.status-dot) {
102
- width: 9px;
103
+ /* 6px (.status-dot width) + 2px (padding-left) + 1px (.status-dot margin-left) */
104
+ width: calc(var(--sys-size-4) + var(--sys-size-2) + var(--sys-size-1));
103
105
  }
104
106
  }
105
107
 
@@ -146,7 +148,7 @@
146
148
  color: var(--sys-color-on-surface-subtle);
147
149
  height: var(--sys-size-12);
148
150
  float: left;
149
- padding: 0 10px;
151
+ padding: 0 var(--sys-size-5);
150
152
  white-space: nowrap;
151
153
  cursor: default;
152
154
  display: flex;
@@ -305,7 +307,8 @@
305
307
  }
306
308
 
307
309
  .tabbed-pane-tab-slider {
308
- height: 3px;
310
+ /* 2px indicator above header + 1px border-bottom overlap (3px total). */
311
+ height: calc(var(--sys-size-2) + var(--sys-size-1));
309
312
  position: absolute;
310
313
  bottom: calc(-1 * var(--sys-size-1));
311
314
  background-color: var(--sys-color-primary);
@@ -169,7 +169,7 @@ ol.tree-outline:not(.hide-selection-when-blurred, .elements-tree-outline) li.sel
169
169
 
170
170
  .tree-outline-disclosure:not(.tree-outline-disclosure-hide-overflow) .tree-outline.hide-selection-when-blurred .selected:focus-visible {
171
171
  width: fit-content;
172
- padding-right: 3px;
172
+ padding-right: var(--sys-size-3);
173
173
  }
174
174
 
175
175
  /* Navigation tree variant */
@@ -36,7 +36,7 @@ found in the LICENSE file. */
36
36
  align-items: center;
37
37
  background-color: var(--sys-color-surface2);
38
38
  height: var(--sys-size-10);
39
- padding: 0 5px;
39
+ padding: 0 var(--sys-size-3);
40
40
  white-space: nowrap;
41
41
  overflow: hidden;
42
42
  position: relative;
@@ -413,6 +413,14 @@ export const knownContextValues: Set<string> = new Set([
413
413
  'ai-export-for-agents.save-as-markdown',
414
414
  'ai-hide-walkthrough-sidebar',
415
415
  'ai-open-allowed-tools-settings',
416
+ 'ai-permission-allow-always',
417
+ 'ai-permission-allow-once',
418
+ 'ai-permission-allowed-always',
419
+ 'ai-permission-allowed-once',
420
+ 'ai-permission-prompt',
421
+ 'ai-permission-prompt-shown',
422
+ 'ai-permission-reject',
423
+ 'ai-permission-rejected',
416
424
  'ai-remove-allowed-tool',
417
425
  'ai-show-walkthrough-sidebar',
418
426
  'ai-v2-context-agent-change',
package/package.json CHANGED
@@ -91,5 +91,5 @@
91
91
  "yargs": "18.1.0",
92
92
  "yargs-unparser": "2.0.0"
93
93
  },
94
- "version": "1.0.1732418"
94
+ "version": "1.0.1732697"
95
95
  }
@@ -1,33 +0,0 @@
1
- // Copyright 2025 The Chromium Authors
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
-
5
- /**
6
- * @file Local debugging utilities.
7
- */
8
-
9
- import * as Platform from '../../core/platform/platform.js';
10
-
11
- export function isDebugMode(): boolean {
12
- return Boolean(Platform.HostRuntime.HOST_RUNTIME.getLocalStorage()?.getItem('debugAiCodeCompletionEnabled'));
13
- }
14
-
15
- export function debugLog(...log: unknown[]): void {
16
- if (!isDebugMode()) {
17
- return;
18
- }
19
-
20
- // eslint-disable-next-line no-console
21
- console.log(...log);
22
- }
23
-
24
- function setDebugAiCodeCompletionEnabled(enabled: boolean): void {
25
- const localStorage = Platform.HostRuntime.HOST_RUNTIME.getLocalStorage();
26
- if (enabled) {
27
- localStorage?.setItem('debugAiCodeCompletionEnabled', 'true');
28
- } else {
29
- localStorage?.removeItem('debugAiCodeCompletionEnabled');
30
- }
31
- }
32
- // @ts-expect-error
33
- globalThis.setDebugAiCodeCompletionEnabled = setDebugAiCodeCompletionEnabled;
@@ -1,33 +0,0 @@
1
- // Copyright 2025 The Chromium Authors
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
-
5
- /**
6
- * @file Local debugging utilities.
7
- */
8
-
9
- import * as Platform from '../../core/platform/platform.js';
10
-
11
- export function isDebugMode(): boolean {
12
- return Boolean(Platform.HostRuntime.HOST_RUNTIME.getLocalStorage()?.getItem('debugAiCodeGenerationEnabled'));
13
- }
14
-
15
- export function debugLog(...log: unknown[]): void {
16
- if (!isDebugMode()) {
17
- return;
18
- }
19
-
20
- // eslint-disable-next-line no-console
21
- console.log(...log);
22
- }
23
-
24
- function setDebugAiCodeGenerationEnabled(enabled: boolean): void {
25
- const localStorage = Platform.HostRuntime.HOST_RUNTIME.getLocalStorage();
26
- if (enabled) {
27
- localStorage?.setItem('debugAiCodeGenerationEnabled', 'true');
28
- } else {
29
- localStorage?.removeItem('debugAiCodeGenerationEnabled');
30
- }
31
- }
32
- // @ts-expect-error
33
- globalThis.setDebugAiCodeGenerationEnabled = setDebugAiCodeGenerationEnabled;