| 198 | } |
| 199 | |
| 200 | export class McpResponse implements Response { |
| 201 | #includePages = false; |
| 202 | #includeExtensionServiceWorkers = false; |
| 203 | #includeExtensionPages = false; |
| 204 | #snapshotParams?: SnapshotParams; |
| 205 | #attachedNetworkRequestId?: number; |
| 206 | #attachedNetworkRequestOptions?: { |
| 207 | requestFilePath?: string; |
| 208 | responseFilePath?: string; |
| 209 | }; |
| 210 | #attachedConsoleMessageId?: number; |
| 211 | #attachedTraceSummary?: TraceResult; |
| 212 | #attachedTraceInsight?: TraceInsightData; |
| 213 | #attachedLighthouseResult?: LighthouseData; |
| 214 | #textResponseLines: string[] = []; |
| 215 | #images: ImageContentData[] = []; |
| 216 | #heapSnapshotOptions?: { |
| 217 | include: boolean; |
| 218 | aggregates?: Record< |
| 219 | string, |
| 220 | DevTools.HeapSnapshotModel.HeapSnapshotModel.AggregatedInfo |
| 221 | >; |
| 222 | pagination?: PaginationOptions; |
| 223 | stats?: DevTools.HeapSnapshotModel.HeapSnapshotModel.Statistics; |
| 224 | staticData?: DevTools.HeapSnapshotModel.HeapSnapshotModel.StaticData | null; |
| 225 | nodes?: DevTools.HeapSnapshotModel.HeapSnapshotModel.ItemsRange; |
| 226 | retainingPaths?: DevTools.HeapSnapshotModel.HeapSnapshotModel.RetainingPaths; |
| 227 | dominators?: DevTools.HeapSnapshotModel.HeapSnapshotModel.DominatorChain; |
| 228 | }; |
| 229 | #networkRequestsOptions?: { |
| 230 | include: boolean; |
| 231 | pagination?: PaginationOptions; |
| 232 | resourceTypes?: ResourceType[]; |
| 233 | includePreservedRequests?: boolean; |
| 234 | networkRequestIdInDevToolsUI?: number; |
| 235 | }; |
| 236 | #consoleDataOptions?: { |
| 237 | include: boolean; |
| 238 | pagination?: PaginationOptions; |
| 239 | types?: string[]; |
| 240 | includePreservedMessages?: boolean; |
| 241 | serviceWorkerId?: string; |
| 242 | }; |
| 243 | #listExtensions?: boolean; |
| 244 | #listThirdPartyDeveloperTools?: boolean; |
| 245 | #listWebMcpTools?: boolean; |
| 246 | #devToolsData?: DevToolsData; |
| 247 | #tabId?: string; |
| 248 | #args: ParsedArguments; |
| 249 | #page?: McpPage; |
| 250 | #redactNetworkHeaders = true; |
| 251 | #error?: Error; |
| 252 | #attachedWaitForResult?: WaitForEventsResult; |
| 253 | |
| 254 | get #deviceScope(): DevTools.CrUXManager.DeviceScope { |
| 255 | return this.#page?.viewport?.isMobile ? 'PHONE' : 'DESKTOP'; |
| 256 | } |
| 257 |
nothing calls this directly
no outgoing calls
no test coverage detected