chrome-devtools-frontend 1.0.1625854 → 1.0.1626437

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 (27) hide show
  1. package/front_end/core/host/AidaClient.ts +1 -1
  2. package/front_end/core/host/AidaClientTypes.ts +2 -0
  3. package/front_end/core/host/AidaGcaTranslation.ts +2 -2
  4. package/front_end/core/sdk/CSSMetadata.ts +60 -55
  5. package/front_end/core/sdk/CSSPropertyParserMatchers.ts +11 -2
  6. package/front_end/models/ai_assistance/StorageItem.ts +16 -0
  7. package/front_end/models/ai_assistance/agents/StorageAgent.ts +82 -0
  8. package/front_end/models/ai_assistance/ai_assistance.ts +4 -0
  9. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +9 -37
  10. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +26 -3
  11. package/front_end/models/javascript_metadata/NativeFunctions.js +0 -4
  12. package/front_end/models/web_mcp/WebMCPModel.ts +11 -2
  13. package/front_end/panels/ai_assistance/ai_assistance-meta.ts +6 -1
  14. package/front_end/panels/application/WebMCPView.ts +74 -16
  15. package/front_end/panels/application/webMCPView.css +13 -2
  16. package/front_end/panels/elements/StandaloneStylesContainer.ts +3 -0
  17. package/front_end/panels/elements/StylePropertyTreeElement.ts +35 -2
  18. package/front_end/panels/elements/StylesContainer.ts +1 -0
  19. package/front_end/panels/elements/StylesSidebarPane.ts +10 -4
  20. package/front_end/panels/emulation/DeviceModeToolbar.ts +7 -3
  21. package/front_end/panels/sources/ScopeChainSidebarPane.ts +5 -1
  22. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +179 -145
  23. package/front_end/panels/timeline/timelineTreeView.css +2 -2
  24. package/front_end/third_party/chromium/README.chromium +1 -1
  25. package/front_end/ui/components/tooltips/Tooltip.ts +3 -3
  26. package/front_end/ui/visual_logging/KnownContextValues.ts +1 -0
  27. package/package.json +1 -1
@@ -250,7 +250,7 @@ export class AidaClient {
250
250
  } else if ('error' in result) {
251
251
  throw new Error(`Server responded: ${JSON.stringify(result)}`);
252
252
  } else {
253
- throw new Error('Unknown chunk result');
253
+ throw new Error(`Unknown chunk result ${JSON.stringify(result)}`);
254
254
  }
255
255
  }
256
256
  if (textUpdated) {
@@ -133,6 +133,8 @@ export enum ClientFeature {
133
133
  CHROME_ACCESSIBILITY_AGENT = 26,
134
134
  // Chrome AI Assistance Conversation Summary Agent.
135
135
  CHROME_CONVERSATION_SUMMARY_AGENT = 27,
136
+ // Chrome AI Assistance Storage Agent.
137
+ CHROME_STORAGE_AGENT = 28,
136
138
  }
137
139
 
138
140
  export enum UserTier {
@@ -468,9 +468,9 @@ export function gcaChunkResponseToAidaChunkResponse(response: GCA.GenerateConten
468
468
  })),
469
469
  };
470
470
  }
471
- const chunks: AIDA.AidaChunkResponse[] = (parts).map(part => {
471
+ const chunks: AIDA.AidaChunkResponse[] = parts.map(part => {
472
472
  const aidaChunkResponse: AIDA.AidaChunkResponse = {metadata};
473
- if (part.text) {
473
+ if (part.text !== undefined) {
474
474
  aidaChunkResponse.textChunk = {
475
475
  text: extractTextFromGcaParts(parts),
476
476
  };
@@ -634,6 +634,64 @@ const textEmphasisStyle = new Set([
634
634
  '"❤️"', // <string>
635
635
  ]);
636
636
 
637
+ const listStyleTypeValues = new Set([
638
+ 'disc',
639
+ 'circle',
640
+ 'square',
641
+ 'decimal',
642
+ 'decimal-leading-zero',
643
+ 'arabic-indic',
644
+ 'bengali',
645
+ 'cambodian',
646
+ 'khmer',
647
+ 'devanagari',
648
+ 'gujarati',
649
+ 'gurmukhi',
650
+ 'kannada',
651
+ 'lao',
652
+ 'malayalam',
653
+ 'mongolian',
654
+ 'myanmar',
655
+ 'oriya',
656
+ 'persian',
657
+ 'urdu',
658
+ 'telugu',
659
+ 'tibetan',
660
+ 'thai',
661
+ 'lower-roman',
662
+ 'upper-roman',
663
+ 'lower-greek',
664
+ 'lower-alpha',
665
+ 'lower-latin',
666
+ 'upper-alpha',
667
+ 'upper-latin',
668
+ 'cjk-earthly-branch',
669
+ 'cjk-heavenly-stem',
670
+ 'ethiopic-halehame',
671
+ 'ethiopic-halehame-am',
672
+ 'ethiopic-halehame-ti-er',
673
+ 'ethiopic-halehame-ti-et',
674
+ 'hangul',
675
+ 'hangul-consonant',
676
+ 'korean-hangul-formal',
677
+ 'korean-hanja-formal',
678
+ 'korean-hanja-informal',
679
+ 'hebrew',
680
+ 'armenian',
681
+ 'lower-armenian',
682
+ 'upper-armenian',
683
+ 'georgian',
684
+ 'cjk-ideographic',
685
+ 'simp-chinese-formal',
686
+ 'simp-chinese-informal',
687
+ 'trad-chinese-formal',
688
+ 'trad-chinese-informal',
689
+ 'hiragana',
690
+ 'katakana',
691
+ 'hiragana-iroha',
692
+ 'katakana-iroha',
693
+ ]);
694
+
637
695
  // manually maintained list of property #values to add into autocomplete list
638
696
  const extraPropertyValues = new Map<string, Set<string>>([
639
697
  ['background-repeat', new Set(['repeat', 'repeat-x', 'repeat-y', 'no-repeat', 'space', 'round'])],
@@ -1111,63 +1169,10 @@ const extraPropertyValues = new Map<string, Set<string>>([
1111
1169
  new Set([
1112
1170
  'outside',
1113
1171
  'inside',
1114
- 'disc',
1115
- 'circle',
1116
- 'square',
1117
- 'decimal',
1118
- 'decimal-leading-zero',
1119
- 'arabic-indic',
1120
- 'bengali',
1121
- 'cambodian',
1122
- 'khmer',
1123
- 'devanagari',
1124
- 'gujarati',
1125
- 'gurmukhi',
1126
- 'kannada',
1127
- 'lao',
1128
- 'malayalam',
1129
- 'mongolian',
1130
- 'myanmar',
1131
- 'oriya',
1132
- 'persian',
1133
- 'urdu',
1134
- 'telugu',
1135
- 'tibetan',
1136
- 'thai',
1137
- 'lower-roman',
1138
- 'upper-roman',
1139
- 'lower-greek',
1140
- 'lower-alpha',
1141
- 'lower-latin',
1142
- 'upper-alpha',
1143
- 'upper-latin',
1144
- 'cjk-earthly-branch',
1145
- 'cjk-heavenly-stem',
1146
- 'ethiopic-halehame',
1147
- 'ethiopic-halehame-am',
1148
- 'ethiopic-halehame-ti-er',
1149
- 'ethiopic-halehame-ti-et',
1150
- 'hangul',
1151
- 'hangul-consonant',
1152
- 'korean-hangul-formal',
1153
- 'korean-hanja-formal',
1154
- 'korean-hanja-informal',
1155
- 'hebrew',
1156
- 'armenian',
1157
- 'lower-armenian',
1158
- 'upper-armenian',
1159
- 'georgian',
1160
- 'cjk-ideographic',
1161
- 'simp-chinese-formal',
1162
- 'simp-chinese-informal',
1163
- 'trad-chinese-formal',
1164
- 'trad-chinese-informal',
1165
- 'hiragana',
1166
- 'katakana',
1167
- 'hiragana-iroha',
1168
- 'katakana-iroha',
1172
+ ...listStyleTypeValues,
1169
1173
  ]),
1170
1174
  ],
1175
+ ['list-style-type', listStyleTypeValues],
1171
1176
  ['max-block-size', new Set(['-webkit-fill-available', 'min-content', 'max-content', 'fit-content'])],
1172
1177
  ['max-inline-size', new Set(['-webkit-fill-available', 'min-content', 'max-content', 'fit-content'])],
1173
1178
  ['min-block-size', new Set(['-webkit-fill-available', 'min-content', 'max-content', 'fit-content'])],
@@ -739,8 +739,10 @@ export const enum LinkableNameProperties {
739
739
  ANIMATION = 'animation',
740
740
  ANIMATION_NAME = 'animation-name',
741
741
  FONT_PALETTE = 'font-palette',
742
- POSITION_TRY_FALLBACKS = 'position-try-fallbacks',
742
+ LIST_STYLE = 'list-style',
743
+ LIST_STYLE_TYPE = 'list-style-type',
743
744
  POSITION_TRY = 'position-try',
745
+ POSITION_TRY_FALLBACKS = 'position-try-fallbacks',
744
746
  }
745
747
 
746
748
  const enum AnimationLonghandPart {
@@ -765,8 +767,10 @@ export class LinkableNameMatcher extends matcherBase(LinkableNameMatch) {
765
767
  LinkableNameProperties.ANIMATION,
766
768
  LinkableNameProperties.ANIMATION_NAME,
767
769
  LinkableNameProperties.FONT_PALETTE,
768
- LinkableNameProperties.POSITION_TRY_FALLBACKS,
770
+ LinkableNameProperties.LIST_STYLE,
771
+ LinkableNameProperties.LIST_STYLE_TYPE,
769
772
  LinkableNameProperties.POSITION_TRY,
773
+ LinkableNameProperties.POSITION_TRY_FALLBACKS,
770
774
  ];
771
775
  return names.includes(propertyName);
772
776
  }
@@ -867,6 +871,11 @@ export class LinkableNameMatcher extends matcherBase(LinkableNameMatch) {
867
871
  return null;
868
872
  }
869
873
 
874
+ // If it is a builtin keyword value, it is not linkable.
875
+ if (cssMetadata().getPropertyValues(propertyName).includes(text)) {
876
+ return null;
877
+ }
878
+
870
879
  if (propertyName === 'animation') {
871
880
  return this.matchAnimationNameInShorthand(node, matching);
872
881
  }
@@ -0,0 +1,16 @@
1
+ // Copyright 2026 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
+ // The StorageItem is used as context for the Ai Assistance.
6
+ // If the user selects a row in e.g. the cookies table, the storageType and key
7
+ // will be populated. An empty {} StorageItem is used if the user asks general questions.
8
+ export type StorageItem = {
9
+ origin: string,
10
+ }&({
11
+ storageType?: never,
12
+ key?: never,
13
+ }|{
14
+ storageType: 'cookie' | 'localStorage' | 'sessionStorage',
15
+ key: string,
16
+ });
@@ -0,0 +1,82 @@
1
+ // Copyright 2026 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
+ import * as Host from '../../../core/host/host.js';
6
+ import * as Root from '../../../core/root/root.js';
7
+ import type {StorageItem} from '../StorageItem.js';
8
+
9
+ import {
10
+ AiAgent,
11
+ ConversationContext,
12
+ type RequestOptions,
13
+ } from './AiAgent.js';
14
+
15
+ // TODO(kimanh): Replace temporary preamble as soon as functions are implemented
16
+ const preamble =
17
+ `You are a Senior Software Engineer, specializing in state audit and storage analysis within Chrome DevTools. Your mission is to help developers debug storage-related issues faster by analyzing the evidence in Cookies, LocalStorage, and SessionStorage and connecting it to the application logic in the source code.
18
+
19
+ # Considerations
20
+
21
+ - **Raw Evidence**: Treat storage data as "raw evidence". Do not make assumptions without verifying code references.
22
+ - **Brevity**: Use the precision of Strunk & White, the brevity of Hemingway, and the simple clarity of Vonnegut. Keep answers short and actionable.
23
+
24
+ **CRITICAL** You are a debugging assistant in DevTools. NEVER provide answers to questions of unrelated topics such as legal advice, financial advice, personal opinions, medical advice, religion, race, politics, sexuality, gender, or any other non web-development topics. Answer "Sorry, I can't answer that. I'm best at questions about debugging web pages." to such questions.
25
+ `;
26
+
27
+ export class StorageContext extends ConversationContext<StorageItem> {
28
+ #item: StorageItem;
29
+
30
+ constructor(item: StorageItem) {
31
+ super();
32
+ this.#item = item;
33
+ }
34
+
35
+ override getOrigin(): string {
36
+ return this.#item.origin;
37
+ }
38
+
39
+ override getItem(): StorageItem {
40
+ return this.#item;
41
+ }
42
+
43
+ override getTitle(): string {
44
+ if (this.#item.key) {
45
+ return `${this.#item.storageType}: ${this.#item.key}`;
46
+ }
47
+ return `Storage for ${this.#item.origin}`;
48
+ }
49
+ }
50
+
51
+ export class StorageAgent extends AiAgent<StorageItem> {
52
+ readonly preamble = preamble;
53
+ readonly clientFeature = Host.AidaClient.ClientFeature.CHROME_STORAGE_AGENT;
54
+
55
+ get userTier(): string|undefined {
56
+ return Root.Runtime.hostConfig.devToolsFreestyler?.userTier;
57
+ }
58
+
59
+ get options(): RequestOptions {
60
+ const temperature = Root.Runtime.hostConfig.devToolsFreestyler?.temperature;
61
+ const modelId = Root.Runtime.hostConfig.devToolsFreestyler?.modelId;
62
+
63
+ return {
64
+ temperature,
65
+ modelId,
66
+ };
67
+ }
68
+
69
+ constructor(opts: {sessionId?: string, aidaClient?: Host.AidaClient.AidaClient} = {}) {
70
+ super({
71
+ aidaClient: opts.aidaClient ?? new Host.AidaClient.AidaClient(),
72
+ sessionId: opts.sessionId,
73
+ });
74
+ }
75
+
76
+ async * handleContextDetails(_context: ConversationContext<StorageItem>|null): AsyncGenerator<never, void, void> {
77
+ }
78
+
79
+ override async enhanceQuery(query: string, _context: ConversationContext<StorageItem>|null): Promise<string> {
80
+ return query;
81
+ }
82
+ }
@@ -14,6 +14,7 @@ import * as NetworkAgent from './agents/NetworkAgent.js';
14
14
  import * as PatchAgent from './agents/PatchAgent.js';
15
15
  import * as PerformanceAgent from './agents/PerformanceAgent.js';
16
16
  import * as PerformanceAnnotationsAgent from './agents/PerformanceAnnotationsAgent.js';
17
+ import * as StorageAgent from './agents/StorageAgent.js';
17
18
  import * as StylingAgent from './agents/StylingAgent.js';
18
19
  import * as AiConversation from './AiConversation.js';
19
20
  import * as AiHistoryStorage from './AiHistoryStorage.js';
@@ -33,6 +34,7 @@ import * as Injected from './injected.js';
33
34
  import * as AICallTree from './performance/AICallTree.js';
34
35
  import * as AIContext from './performance/AIContext.js';
35
36
  import * as AIQueries from './performance/AIQueries.js';
37
+ import * as StorageItem from './StorageItem.js';
36
38
 
37
39
  export {
38
40
  AccessibilityAgent,
@@ -64,6 +66,8 @@ export {
64
66
  PerformanceAnnotationsAgent,
65
67
  PerformanceInsightFormatter,
66
68
  PerformanceTraceFormatter,
69
+ StorageAgent,
70
+ StorageItem,
67
71
  StylingAgent,
68
72
  UnitFormatters,
69
73
  };
@@ -332,33 +332,21 @@ IMPORTANT: Never show eventKey to the user.
332
332
 
333
333
  The following are markdown block(s) of code that ran in the page, each representing a separate function. <FUNCTION_START> and <FUNCTION_END> marks the exact function declaration, and everything outside that is provided for additional context. Comments at the end of each line indicate the runtime performance cost of that code. Do not show the user the function markers or the additional context.
334
334
 
335
- Here are 3 relevant functions:
335
+ Here is the first line of 3 relevant functions:
336
336
 
337
- (anonymous) @ https://s.yimg.com/aaq/prebid/prebid-2.0.js:12:53984. With added context, chunk is from 9:0 to 18:0
337
+ (anonymous) @ https://s.yimg.com/aaq/prebid/prebid-2.0.js:12:53984
338
338
  ```
339
- // context ...
340
-
341
339
  () => { /* some code from https://s.yimg.com/aaq/prebid/prebid-2.0.js... */ }
342
-
343
- // context ...
344
340
  ```
345
341
 
346
- (anonymous) @ https://s.yimg.com/aaq/f10d509c/d1irmdsmbztlvx.js:0:43042. With added context, chunk is from 0:0 to 6:0
342
+ (anonymous) @ https://s.yimg.com/aaq/f10d509c/d1irmdsmbztlvx.js:0:43042
347
343
  ```
348
- // context ...
349
-
350
344
  () => { /* some code from https://s.yimg.com/aaq/f10d509c/d1irmdsmbztlvx.js... */ }
351
-
352
- // context ...
353
345
  ```
354
346
 
355
- (anonymous) @ https://s.yimg.com/aaq/prebid/prebid-2.0.js:12:15854. With added context, chunk is from 9:0 to 18:0
347
+ (anonymous) @ https://s.yimg.com/aaq/prebid/prebid-2.0.js:12:15854
356
348
  ```
357
- // context ...
358
-
359
349
  () => { /* some code from https://s.yimg.com/aaq/prebid/prebid-2.0.js... */ }
360
-
361
- // context ...
362
350
  ```
363
351
 
364
352
  # Bottom-up main thread summary
@@ -1019,42 +1007,26 @@ IMPORTANT: Never show eventKey to the user.
1019
1007
 
1020
1008
  The following are markdown block(s) of code that ran in the page, each representing a separate function. <FUNCTION_START> and <FUNCTION_END> marks the exact function declaration, and everything outside that is provided for additional context. Comments at the end of each line indicate the runtime performance cost of that code. Do not show the user the function markers or the additional context.
1021
1009
 
1022
- Here are 4 relevant functions:
1010
+ Here is the first line of 4 relevant functions:
1023
1011
 
1024
- (anonymous) @ https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js:0:0. With added context, chunk is from 0:0 to 6:0
1012
+ (anonymous) @ https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js:0:0
1025
1013
  ```
1026
- // context ...
1027
-
1028
1014
  () => { /* some code from https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js... */ }
1029
-
1030
- // context ...
1031
1015
  ```
1032
1016
 
1033
- (anonymous) @ https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js:0:231. With added context, chunk is from 0:0 to 6:0
1017
+ (anonymous) @ https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js:0:231
1034
1018
  ```
1035
- // context ...
1036
-
1037
1019
  () => { /* some code from https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js... */ }
1038
-
1039
- // context ...
1040
1020
  ```
1041
1021
 
1042
- (anonymous) @ https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js:0:292. With added context, chunk is from 0:0 to 6:0
1022
+ (anonymous) @ https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js:0:292
1043
1023
  ```
1044
- // context ...
1045
-
1046
1024
  () => { /* some code from https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js... */ }
1047
-
1048
- // context ...
1049
1025
  ```
1050
1026
 
1051
- (anonymous) @ https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js:0:155034. With added context, chunk is from 0:0 to 6:0
1027
+ (anonymous) @ https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js:0:155034
1052
1028
  ```
1053
- // context ...
1054
-
1055
1029
  () => { /* some code from https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js... */ }
1056
-
1057
- // context ...
1058
1030
  ```
1059
1031
  === end content
1060
1032
 
@@ -901,6 +901,29 @@ The order of headers corresponds to an internal fixed list. If a header is not p
901
901
  return parts.join('\n');
902
902
  }
903
903
 
904
+ /**
905
+ * Formats only the first line of the function code to save space in summaries.
906
+ * The agent can use this information (url, line, column) to get the whole function source.
907
+ */
908
+ #formatFunctionCodeSummary(code: SourceMapScopes.FunctionCodeResolver.FunctionCode): string {
909
+ this.#formattedFunctionCodes.add(this.#functionCodeToKey(code));
910
+
911
+ const {startLine, startColumn} = code.range;
912
+ const name = code.functionBounds.name || '(anonymous)';
913
+ const url = code.functionBounds.uiSourceCode.url();
914
+
915
+ const lines = code.code.split('\n');
916
+ const firstLine = lines[0] || '';
917
+
918
+ const parts = [];
919
+ parts.push(`${name} @ ${url}:${startLine}:${startColumn}`);
920
+ parts.push('```');
921
+ parts.push(firstLine);
922
+ parts.push('```');
923
+
924
+ return parts.join('\n');
925
+ }
926
+
904
927
  /**
905
928
  * Appends the code of each call frame's function, but only if the function was not
906
929
  * serialized previously.
@@ -917,7 +940,7 @@ The order of headers corresponds to an internal fixed list. If a header is not p
917
940
  resolveFunctionCode(frame.url as Platform.DevToolsPath.UrlString, frame.lineNumber, frame.columnNumber)));
918
941
  for (const code of functionCodes) {
919
942
  if (code && !this.#hasFormattedFunctionCode(code)) {
920
- functionCodeStrings.push(this.#formatFunctionCode(code));
943
+ functionCodeStrings.push(this.#formatFunctionCodeSummary(code));
921
944
  }
922
945
  }
923
946
 
@@ -927,8 +950,8 @@ The order of headers corresponds to an internal fixed list. If a header is not p
927
950
 
928
951
  return '\n' + [
929
952
  this.#getFormattedFunctionCodeExplainer(),
930
- functionCodeStrings.length > 1 ? `Here are ${functionCodeStrings.length} relevant functions:` :
931
- `Here is a relevant function:`,
953
+ functionCodeStrings.length > 1 ? `Here is the first line of ${functionCodeStrings.length} relevant functions:` :
954
+ `Here is the first line of a relevant function:`,
932
955
  ...functionCodeStrings,
933
956
  ].join('\n\n');
934
957
  }
@@ -7960,10 +7960,6 @@ export const NativeFunctions = [
7960
7960
  name: "strokeTextCluster",
7961
7961
  signatures: [["textCluster","x","y","?options"]]
7962
7962
  },
7963
- {
7964
- name: "transferToGPUTexture",
7965
- signatures: [["options"]]
7966
- },
7967
7963
  {
7968
7964
  name: "beginLayer",
7969
7965
  signatures: [["?options"]]
@@ -147,12 +147,17 @@ export class Tool {
147
147
  new SDK.DOMModel.DeferredDOMNode(target, this.#protocolTool.backendNodeId);
148
148
  }
149
149
 
150
- async invoke(input: unknown): Promise<Protocol.WebMCP.InvokeToolResponse|undefined> {
151
- return await this.#target.deref()?.webMCPAgent().invoke_invokeTool({
150
+ async invoke(input: unknown): Promise<string|undefined> {
151
+ const target = this.#target.deref();
152
+ const response = await target?.webMCPAgent().invoke_invokeTool({
152
153
  toolName: this.name,
153
154
  frameId: this.#protocolTool.frameId,
154
155
  input,
155
156
  });
157
+ if (!response || response.getError()) {
158
+ return undefined;
159
+ }
160
+ return response.invocationId;
156
161
  }
157
162
  }
158
163
  export interface EventTypes {
@@ -190,6 +195,10 @@ export class WebMCPModel extends SDK.SDKModel.SDKModel<EventTypes> implements Pr
190
195
  return [...this.#calls.values()];
191
196
  }
192
197
 
198
+ toolCallForId(invocationId: string): Call|undefined {
199
+ return this.#calls.get(invocationId);
200
+ }
201
+
193
202
  clearCalls(): void {
194
203
  this.#calls.clear();
195
204
  }
@@ -115,9 +115,14 @@ function isFileAgentFeatureAvailable(config?: Root.Runtime.HostConfig): boolean
115
115
  return (config?.aidaAvailability?.enabled && (config?.devToolsAiAssistanceFileAgent?.enabled)) === true;
116
116
  }
117
117
 
118
+ function isStorageAgentFeatureAvailable(config?: Root.Runtime.HostConfig): boolean {
119
+ return (config?.aidaAvailability?.enabled && (config?.devToolsAiAssistanceStorageAgent?.enabled)) === true;
120
+ }
121
+
118
122
  function isAnyFeatureAvailable(config?: Root.Runtime.HostConfig): boolean {
119
123
  return isStylingAgentFeatureAvailable(config) || isNetworkAgentFeatureAvailable(config) ||
120
- isPerformanceAgentFeatureAvailable(config) || isFileAgentFeatureAvailable(config);
124
+ isPerformanceAgentFeatureAvailable(config) || isFileAgentFeatureAvailable(config) ||
125
+ isStorageAgentFeatureAvailable(config);
121
126
  }
122
127
 
123
128
  UI.ViewManager.registerViewExtension({