@chenpx976/chrome-devtools-mcp 0.0.0-stage → 1.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +223 -2
- package/out/Default/gen/src/ArcBrowser.js +128 -0
- package/out/Default/gen/src/BrowserManager.js +562 -0
- package/out/Default/gen/src/LogpointManager.js +287 -0
- package/out/Default/gen/src/McpContext.js +1031 -0
- package/out/Default/gen/src/McpPage.js +1427 -0
- package/out/Default/gen/src/McpResponse.js +1350 -0
- package/out/Default/gen/src/McpWorker.js +66 -0
- package/out/Default/gen/src/NetworkOverrideManager.js +447 -0
- package/out/Default/gen/src/SlimMcpResponse.js +23 -0
- package/out/Default/gen/src/TextSnapshot.js +336 -0
- package/out/Default/gen/src/ToolHandler.js +531 -0
- package/out/Default/gen/src/bin/check-latest-version.js +53 -0
- package/out/Default/gen/src/bin/chrome-devtools-mcp-main.js +80 -0
- package/out/Default/gen/src/bin/chrome-devtools-mcp.js +23 -0
- package/out/Default/gen/src/bin/chrome-devtools.js +213 -0
- package/out/Default/gen/src/collectors/PageCollector.js +325 -0
- package/out/Default/gen/src/collectors/ServiceWorkerCollector.js +198 -0
- package/out/Default/gen/src/collectors/constants.js +7 -0
- package/out/Default/gen/src/config/ConfigLocator.js +70 -0
- package/out/Default/gen/src/config/ConfigParser.js +163 -0
- package/out/Default/gen/src/config/ConfigWatcher.js +94 -0
- package/out/Default/gen/src/config/ServerConfig.js +284 -0
- package/out/Default/gen/src/config/browser-options.js +135 -0
- package/out/Default/gen/src/config/category-options.js +84 -0
- package/out/Default/gen/src/config/cli-commands.js +208 -0
- package/out/Default/gen/src/config/cli-options.js +2090 -0
- package/out/Default/gen/src/config/mcp-options.js +371 -0
- package/out/Default/gen/src/config/puppeteer-options.js +69 -0
- package/out/Default/gen/src/config/tool-options.js +60 -0
- package/out/Default/gen/src/daemon/client.js +281 -0
- package/out/Default/gen/src/daemon/daemon.js +280 -0
- package/out/Default/gen/src/daemon/types.js +7 -0
- package/out/Default/gen/src/daemon/utils.js +173 -0
- package/out/Default/gen/src/devtools/DevToolsCommentBridge.js +151 -0
- package/out/Default/gen/src/devtools/DevtoolsUtils.js +413 -0
- package/out/Default/gen/src/devtools/McpHostBindingAdapter.js +164 -0
- package/out/Default/gen/src/devtools/issueDescriptions.js +42 -0
- package/out/Default/gen/src/formatters/CommentFormatter.js +73 -0
- package/out/Default/gen/src/formatters/ConsoleFormatter.js +363 -0
- package/out/Default/gen/src/formatters/CssFormatter.js +883 -0
- package/out/Default/gen/src/formatters/HeapSnapshotFormatter.js +239 -0
- package/out/Default/gen/src/formatters/IssueFormatter.js +194 -0
- package/out/Default/gen/src/formatters/LogpointFormatter.js +62 -0
- package/out/Default/gen/src/formatters/NetworkFormatter.js +295 -0
- package/out/Default/gen/src/formatters/NetworkOverridesFormatter.js +57 -0
- package/out/Default/gen/src/formatters/RemoteObjectFormatter.js +231 -0
- package/out/Default/gen/src/formatters/SnapshotFormatter.js +172 -0
- package/out/Default/gen/src/formatters/WebAuthnFormatter.js +56 -0
- package/out/Default/gen/src/formatters/constants.js +8 -0
- package/out/Default/gen/src/index.js +434 -0
- package/out/Default/gen/src/processors/ChunkedTraceParser.js +361 -0
- package/out/Default/gen/src/processors/HeapSnapshotManager.js +595 -0
- package/out/Default/gen/src/processors/PerformanceTrace.js +132 -0
- package/out/Default/gen/src/telemetry/ClearcutLogger.js +271 -0
- package/out/Default/gen/src/telemetry/WatchdogClient.js +60 -0
- package/out/Default/gen/src/telemetry/errors.js +18 -0
- package/out/Default/gen/src/telemetry/flagUtils.js +89 -0
- package/out/Default/gen/src/telemetry/metricsRegistry.js +85 -0
- package/out/Default/gen/src/telemetry/persistence.js +82 -0
- package/out/Default/gen/src/telemetry/transformation.js +229 -0
- package/out/Default/gen/src/telemetry/types.js +36 -0
- package/out/Default/gen/src/telemetry/watchdog/ClearcutSender.js +213 -0
- package/out/Default/gen/src/telemetry/watchdog/main.js +142 -0
- package/out/Default/gen/src/third_party/THIRD_PARTY_NOTICES +3774 -0
- package/out/Default/gen/src/third_party/browser.js +808 -0
- package/out/Default/gen/src/third_party/bundled-packages.json +11 -0
- package/out/Default/gen/src/third_party/cli.js +139 -0
- package/out/Default/gen/src/third_party/devtools-formatter-worker.js +125 -0
- package/out/Default/gen/src/third_party/devtools-heap-snapshot-worker.js +111 -0
- package/out/Default/gen/src/third_party/index.js +128 -0
- package/out/Default/gen/src/third_party/issue-descriptions/CoepCoopSandboxedIframeCannotNavigateToCoopPage.md +4 -0
- package/out/Default/gen/src/third_party/issue-descriptions/CoepCorpNotSameOrigin.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/CoepCorpNotSameOriginAfterDefaultedToSameOriginByCoep.md +18 -0
- package/out/Default/gen/src/third_party/issue-descriptions/CoepCorpNotSameSite.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/CoepFrameResourceNeedsCoepHeader.md +10 -0
- package/out/Default/gen/src/third_party/issue-descriptions/CompatibilityModeQuirks.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/LowTextContrast.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorRead.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorSet.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnRead.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnSet.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeRead.md +9 -0
- package/out/Default/gen/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeSet.md +9 -0
- package/out/Default/gen/src/third_party/issue-descriptions/bounceTrackingMitigations.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/clientHintMetaTagAllowListInvalidOrigin.md +4 -0
- package/out/Default/gen/src/third_party/issue-descriptions/clientHintMetaTagModifiedHTML.md +4 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistEmbeddingRequirementNotSatisfied.md +26 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistIFrameAttributeLoosensEmbeddingRequirement.md +19 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistInvalidAllowConnectionAllowlistFrom.md +21 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistInvalidAllowlistItemType.md +12 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistInvalidHeader.md +12 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistInvalidUrlPattern.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistItemNotInnerList.md +12 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistMoreThanOneList.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistReportingEndpointNotToken.md +10 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieCrossSiteRedirectDowngrade.md +12 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludeDomainNonAscii.md +11 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludePortMismatch.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludeSchemeMismatch.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutRead.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutSet.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnDomainNonAscii.md +11 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnMetadataGrantRead.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnMetadataGrantReadOptOut.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnMetadataGrantSet.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnMetadataGrantSetOptOut.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutRead.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutSet.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsAllowCredentialsRequired.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsDisabledScheme.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsDisallowedByMode.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsHeaderDisallowedByPreflightResponse.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsInvalidHeaderValues.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsLocalNetworkAccessPermissionDenied.md +19 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsMethodDisallowedByPreflightResponse.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsNoCorsRedirectModeNotFollow.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsOriginMismatch.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsPreflightResponseInvalid.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsRedirectContainsCredentials.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsWildcardOriginNotAllowed.md +9 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cspEvalViolation.md +9 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cspInlineViolation.md +10 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cspTrustedTypesPolicyViolation.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cspTrustedTypesSinkViolation.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cspURLViolation.md +10 -0
- package/out/Default/gen/src/third_party/issue-descriptions/deprecation.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsEmptyList.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsInvalidContentType.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsNoResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestDnsFetchFailed.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestDnsInvalidRecord.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidContentType.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownNoResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestInvalidEmail.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestJwksHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestJwksInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestKeyBindingSigningFailed.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestRpOriginIsOpaque.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidContentType.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidSdJwt.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenMalformedSdJwt.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenNoResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidAudience.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidIssuedAt.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidNonce.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidSdHash.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidTyp.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingAud.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingCnf.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingIat.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingNonce.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingSdHash.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbSignatureFailed.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmail.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmailVerified.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidHolderKey.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuedAt.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuer.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtJwksMissingKeys.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingCnf.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingEmail.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIat.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIss.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtSignatureFailed.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtUnsupportedHeaderAlg.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestUserLoggedOut.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownAccountsEndpointCrossOrigin.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownInvalidContentType.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownIssuanceEndpointCrossOrigin.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownListEmpty.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownMissingAccountsEndpoint.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownMissingIssuanceEndpoint.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownNoResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownUnsupportedSigningAlgorithm.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestAccountsBlockedByConnectionAllowlist.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestAccountsHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestAccountsInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestAccountsNoResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestApprovalDeclined.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestCanceled.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestConfigBlockedByConnectionAllowlist.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestErrorFetchingSignin.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestErrorIdToken.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenBlockedByConnectionAllowlist.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidRequest.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenNoResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestInvalidSigninResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestManifestNoResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestTooManyRequests.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestWellKnownBlockedByConnectionAllowlist.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidAccountsResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidConfigOrWellKnown.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoAccountSharingPermission.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoApiPermission.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoReturningUserFromFetchedAccounts.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotIframe.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotPotentiallyTrustworthy.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSameOrigin.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSignedInWithIdp.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/fetchingPartitionedBlobURL.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericBackUINavigationWouldSkipAd.md +4 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormAriaLabelledByToNonExistingIdError.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormAutocompleteAttributeEmptyError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormDuplicateIdForInputError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormEmptyIdAndNameAttributesForInputError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormInputAssignedAutocompleteValueToIdOrNameAttributeError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormInputHasWrongButWellIntendedAutocompleteValueError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormInputWithNoLabelError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormLabelForMatchesNonExistingIdError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormLabelForNameError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormLabelHasNeitherForNorNestedInputError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextMissingToolDescription.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextMissingToolName.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextParameterMissingName.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextParameterMissingTitleAndDescription.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextRequiredParameterMissingName.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericGeolocationPromptWithoutUserGesture.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericNavigationEntryMarkedSkippable.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericResponseWasBlockedByORB.md +4 -0
- package/out/Default/gen/src/third_party/issue-descriptions/heavyAd.md +10 -0
- package/out/Default/gen/src/third_party/issue-descriptions/lazyLoadImageZeroSize.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/mixedContent.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/navigatingPartitionedBlobURL.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementActivationDisabled.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluder.md +9 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluderParent.md +9 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementCspFrameAncestorsMissing.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementFencedFrameDisallowed.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementFontSizeTooLarge.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementFontSizeTooSmall.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementGeolocationDeprecated.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInsetBoxShadowUnsupported.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInvalidDisplayStyle.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInvalidSizeValue.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInvalidType.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInvalidTypeActivation.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementLowContrast.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementNonOpaqueColor.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementPaddingBottomUnsupported.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementPaddingRightUnsupported.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementPermissionsPolicyBlocked.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementRegistrationFailed.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementRequestInProgress.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementSecurityChecksFailed.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementTypeNotSupported.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementUntrustedEvent.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/placeholderDescriptionForInvisibleIssues.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/propertyRuleInvalidNameIssue.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/propertyRuleIssue.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedOptGroupChild.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedSelectChild.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentAttributesSelectDescendant.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentLegendChild.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentOptionChild.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityNonPhrasingContentOptionChild.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/selectivePermissionsIntervention.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedArrayBuffer.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryUseErrorCrossOriginNoCorsRequest.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryUseErrorDictionaryLoadFailure.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryUseErrorMatchingDictionaryNotUsed.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryUseErrorUnexpectedContentDictionaryHeader.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorCossOriginNoCorsRequest.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorDisallowedBySettings.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorExpiredResponse.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorFeatureDisabled.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInsufficientResources.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidMatchField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidStructuredHeader.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidTTLField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNavigationRequest.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNoMatchField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonIntegerTTLField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonListMatchDestField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonSecureContext.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringIdField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringInMatchDestList.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringMatchField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonTokenTypeField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorRequestAborted.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorShuttingDown.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorTooLongIdField.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorUnsupportedType.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriInvalidSignatureHeader.md +14 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriInvalidSignatureInputHeader.md +15 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriMissingSignatureHeader.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriMissingSignatureInputHeader.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureHeaderValueIsIncorrectLength.md +11 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureHeaderValueIsNotByteSequence.md +14 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureHeaderValueIsParameterized.md +15 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentName.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentType.md +13 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidDerivedComponentParameter.md +4 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidHeaderComponentParameter.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidParameter.md +11 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderKeyIdLength.md +12 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingLabel.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingRequiredParameters.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderValueMissingComponents.md +11 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderValueNotInnerList.md +11 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriValidationFailedIntegrityMismatch.md +12 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriValidationFailedInvalidLength.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriValidationFailedSignatureExpired.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriValidationFailedSignatureMismatch.md +11 -0
- package/out/Default/gen/src/third_party/issue-descriptions/stylesheetLateImport.md +4 -0
- package/out/Default/gen/src/third_party/issue-descriptions/stylesheetRequestFailed.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/summaryElementAccessibilityInteractiveContentSummaryDescendant.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestLength.md +12 -0
- package/out/Default/gen/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestType.md +17 -0
- package/out/Default/gen/src/third_party/issue-descriptions/unencodedDigestMalformedDictionary.md +14 -0
- package/out/Default/gen/src/third_party/issue-descriptions/unencodedDigestUnknownAlgorithm.md +15 -0
- package/out/Default/gen/src/third_party/issue-descriptions/webInstallManifestMissingId.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/webInstallManifestMissingNameOrShortName.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/webInstallManifestParsingOrNetworkError.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/webInstallNoManifest.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/webInstallStartUrlInvalid.md +3 -0
- package/out/Default/gen/src/third_party/lighthouse-devtools-mcp-bundle.js +60395 -0
- package/out/Default/gen/src/tools/ToolDefinition.js +180 -0
- package/out/Default/gen/src/tools/categories.js +37 -0
- package/out/Default/gen/src/tools/comments.js +230 -0
- package/out/Default/gen/src/tools/console.js +122 -0
- package/out/Default/gen/src/tools/css.js +54 -0
- package/out/Default/gen/src/tools/emulation.js +98 -0
- package/out/Default/gen/src/tools/extensions.js +108 -0
- package/out/Default/gen/src/tools/input.js +658 -0
- package/out/Default/gen/src/tools/lighthouse.js +279 -0
- package/out/Default/gen/src/tools/logpoints.js +51 -0
- package/out/Default/gen/src/tools/memory.js +531 -0
- package/out/Default/gen/src/tools/network.js +325 -0
- package/out/Default/gen/src/tools/pages.js +420 -0
- package/out/Default/gen/src/tools/performance.js +258 -0
- package/out/Default/gen/src/tools/pwa.js +152 -0
- package/out/Default/gen/src/tools/screencast.js +160 -0
- package/out/Default/gen/src/tools/screenshot.js +315 -0
- package/out/Default/gen/src/tools/script.js +319 -0
- package/out/Default/gen/src/tools/slim/tools.js +110 -0
- package/out/Default/gen/src/tools/snapshot.js +88 -0
- package/out/Default/gen/src/tools/thirdPartyDeveloper.js +73 -0
- package/out/Default/gen/src/tools/toolNames.js +10 -0
- package/out/Default/gen/src/tools/tools.js +72 -0
- package/out/Default/gen/src/tools/webauthn.js +51 -0
- package/out/Default/gen/src/tools/webmcp.js +55 -0
- package/out/Default/gen/src/types.js +21 -0
- package/out/Default/gen/src/utils/TaskRunner.js +151 -0
- package/out/Default/gen/src/utils/WaitForHelper.js +343 -0
- package/out/Default/gen/src/utils/bytes.js +95 -0
- package/out/Default/gen/src/utils/check-for-updates.js +81 -0
- package/out/Default/gen/src/utils/disclaimers.js +27 -0
- package/out/Default/gen/src/utils/errorHandling.js +23 -0
- package/out/Default/gen/src/utils/files.js +81 -0
- package/out/Default/gen/src/utils/id.js +16 -0
- package/out/Default/gen/src/utils/keyboard.js +307 -0
- package/out/Default/gen/src/utils/logger.js +145 -0
- package/out/Default/gen/src/utils/logpoint.js +44 -0
- package/out/Default/gen/src/utils/network.js +81 -0
- package/out/Default/gen/src/utils/pagination.js +50 -0
- package/out/Default/gen/src/utils/polyfill.js +11 -0
- package/out/Default/gen/src/utils/raceWithSignal.js +26 -0
- package/out/Default/gen/src/utils/resourceType.js +27 -0
- package/out/Default/gen/src/utils/text.js +43 -0
- package/out/Default/gen/src/utils/timeout.js +14 -0
- package/out/Default/gen/src/utils/url.js +311 -0
- package/out/Default/gen/src/version.js +11 -0
- package/package.json +125 -4
- package/skills/a11y-debugging/SKILL.md +86 -0
- package/skills/a11y-debugging/references/a11y-snippets.md +92 -0
- package/skills/arc-compatibility/SKILL.md +174 -0
- package/skills/arc-compatibility/SOURCES.md +238 -0
- package/skills/arc-compatibility/references/compatibility.md +115 -0
- package/skills/arc-compatibility/references/output-contract.md +62 -0
- package/skills/arc-compatibility/references/workflows.md +108 -0
- package/skills/chrome-devtools/SKILL.md +80 -0
- package/skills/chrome-devtools-cli/SKILL.md +208 -0
- package/skills/chrome-devtools-cli/references/installation.md +24 -0
- package/skills/cookie-debugging/SKILL.md +152 -0
- package/skills/debug-optimize-lcp/SKILL.md +121 -0
- package/skills/debug-optimize-lcp/references/elements-and-size.md +27 -0
- package/skills/debug-optimize-lcp/references/lcp-breakdown.md +23 -0
- package/skills/debug-optimize-lcp/references/lcp-snippets.md +79 -0
- package/skills/debug-optimize-lcp/references/optimization-strategies.md +38 -0
- package/skills/inspect-in-devtools/SKILL.md +82 -0
- package/skills/memory-leak-debugging/SKILL.md +58 -0
- package/skills/memory-leak-debugging/references/common-leaks.md +33 -0
- package/skills/troubleshooting/SKILL.md +107 -0
|
@@ -0,0 +1,531 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { MAX_NAME_LENGTH } from '../formatters/constants.js';
|
|
7
|
+
import { zod } from '../third_party/index.js';
|
|
8
|
+
import { byteSizeRangeSchema } from '../utils/bytes.js';
|
|
9
|
+
import { ToolCategory } from './categories.js';
|
|
10
|
+
import { defineBrowserlessTool, definePageTool, } from './ToolDefinition.js';
|
|
11
|
+
const HEAP_SNAPSHOT_FILTERS = [
|
|
12
|
+
'objectsRetainedByDetachedDomNodes',
|
|
13
|
+
'objectsRetainedByConsole',
|
|
14
|
+
'objectsRetainedByEventHandlers',
|
|
15
|
+
'objectsRetainedByContexts',
|
|
16
|
+
'sharedNativeContext',
|
|
17
|
+
'noNativeContext',
|
|
18
|
+
'attributedToSpecificNativeContext',
|
|
19
|
+
];
|
|
20
|
+
const maxNameLengthSchema = zod
|
|
21
|
+
.number()
|
|
22
|
+
.int()
|
|
23
|
+
.min(1)
|
|
24
|
+
.optional()
|
|
25
|
+
.describe(`Maximum length of names before truncation. Defaults to ${MAX_NAME_LENGTH}.`);
|
|
26
|
+
const DEFAULT_HEAP_SNAPSHOT_PAGE_SIZE = 50;
|
|
27
|
+
const pageIdxSchema = zod
|
|
28
|
+
.number()
|
|
29
|
+
.int()
|
|
30
|
+
.nonnegative()
|
|
31
|
+
.default(0)
|
|
32
|
+
.describe('The zero-based page index. Defaults to 0 (the first page).');
|
|
33
|
+
const pageSizeSchema = zod
|
|
34
|
+
.number()
|
|
35
|
+
.int()
|
|
36
|
+
.positive()
|
|
37
|
+
.default(DEFAULT_HEAP_SNAPSHOT_PAGE_SIZE)
|
|
38
|
+
.describe(`The maximum number of items to return per page. Defaults to ${DEFAULT_HEAP_SNAPSHOT_PAGE_SIZE}.`);
|
|
39
|
+
export const takeHeapSnapshot = definePageTool(() => ({
|
|
40
|
+
name: 'take_heapsnapshot',
|
|
41
|
+
description: `Capture a heap snapshot of the target page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks.`,
|
|
42
|
+
annotations: {
|
|
43
|
+
category: ToolCategory.MEMORY,
|
|
44
|
+
readOnlyHint: false,
|
|
45
|
+
},
|
|
46
|
+
schema: {
|
|
47
|
+
filePath: zod
|
|
48
|
+
.string()
|
|
49
|
+
.describe('A path to a .heapsnapshot file to save the heapsnapshot to.'),
|
|
50
|
+
},
|
|
51
|
+
blockedByDialog: true,
|
|
52
|
+
concurrency: 'exclusive',
|
|
53
|
+
verifyFilesSchema: {
|
|
54
|
+
filePath: true,
|
|
55
|
+
},
|
|
56
|
+
handler: async (request, response, context) => {
|
|
57
|
+
const page = request.page;
|
|
58
|
+
const snapshotPath = await context.ensureExtension(request.params.filePath, '.heapsnapshot');
|
|
59
|
+
await page.pptrPage.captureHeapSnapshot({
|
|
60
|
+
path: snapshotPath,
|
|
61
|
+
});
|
|
62
|
+
response.appendResponseLine(`Heap snapshot saved to ${snapshotPath}`);
|
|
63
|
+
},
|
|
64
|
+
}));
|
|
65
|
+
export const getHeapSnapshotSummary = defineBrowserlessTool(() => ({
|
|
66
|
+
name: 'get_heapsnapshot_summary',
|
|
67
|
+
description: 'Loads and caches a memory heapsnapshot and returns snapshot summary stats, including native contexts and their sizes, and retained by context summary.',
|
|
68
|
+
annotations: {
|
|
69
|
+
category: ToolCategory.MEMORY,
|
|
70
|
+
readOnlyHint: true,
|
|
71
|
+
conditions: ['memoryDebugging'],
|
|
72
|
+
},
|
|
73
|
+
schema: {
|
|
74
|
+
filePath: zod
|
|
75
|
+
.string()
|
|
76
|
+
.describe('A path to a .heapsnapshot file to read.'),
|
|
77
|
+
maxNameLength: maxNameLengthSchema,
|
|
78
|
+
},
|
|
79
|
+
blockedByDialog: false,
|
|
80
|
+
verifyFilesSchema: {
|
|
81
|
+
filePath: true,
|
|
82
|
+
},
|
|
83
|
+
handler: async (request, response, context) => {
|
|
84
|
+
const stats = await context.getHeapSnapshotStats(request.params.filePath);
|
|
85
|
+
const staticData = await context.getHeapSnapshotStaticData(request.params.filePath);
|
|
86
|
+
const nativeContextSizes = await context.getHeapSnapshotNativeContextSizes(request.params.filePath);
|
|
87
|
+
const retainedByContextSummary = await context.getHeapSnapshotRetainedByContextSummary(request.params.filePath);
|
|
88
|
+
response.setHeapSnapshotStats(stats, staticData, nativeContextSizes, retainedByContextSummary, {
|
|
89
|
+
maxNameLength: request.params.maxNameLength,
|
|
90
|
+
});
|
|
91
|
+
},
|
|
92
|
+
}));
|
|
93
|
+
export const getHeapSnapshotDetails = defineBrowserlessTool(() => ({
|
|
94
|
+
name: 'get_heapsnapshot_details',
|
|
95
|
+
description: 'Loads and caches a memory heapsnapshot and returns all available information including statistics, static data, and aggregated node information. Supports pagination for aggregates.',
|
|
96
|
+
annotations: {
|
|
97
|
+
category: ToolCategory.MEMORY,
|
|
98
|
+
readOnlyHint: true,
|
|
99
|
+
conditions: ['memoryDebugging'],
|
|
100
|
+
},
|
|
101
|
+
schema: {
|
|
102
|
+
filePath: zod
|
|
103
|
+
.string()
|
|
104
|
+
.describe('A path to a .heapsnapshot file to read.'),
|
|
105
|
+
filterName: zod
|
|
106
|
+
.enum(HEAP_SNAPSHOT_FILTERS)
|
|
107
|
+
.optional()
|
|
108
|
+
.describe('An optional filter to apply to the aggregates.'),
|
|
109
|
+
objectId: zod
|
|
110
|
+
.number()
|
|
111
|
+
.optional()
|
|
112
|
+
.describe('The object ID (nodeId) of the specific native context to filter by when filterName is attributedToSpecificNativeContext.'),
|
|
113
|
+
maxNameLength: maxNameLengthSchema,
|
|
114
|
+
pageIdx: pageIdxSchema,
|
|
115
|
+
pageSize: pageSizeSchema,
|
|
116
|
+
},
|
|
117
|
+
blockedByDialog: false,
|
|
118
|
+
verifyFilesSchema: {
|
|
119
|
+
filePath: true,
|
|
120
|
+
},
|
|
121
|
+
handler: async (request, response, context) => {
|
|
122
|
+
const aggregates = await context.getHeapSnapshotAggregates(request.params.filePath, request.params.filterName, request.params.objectId);
|
|
123
|
+
response.setHeapSnapshotAggregates(aggregates, {
|
|
124
|
+
pageIdx: request.params.pageIdx,
|
|
125
|
+
pageSize: request.params.pageSize,
|
|
126
|
+
maxNameLength: request.params.maxNameLength,
|
|
127
|
+
});
|
|
128
|
+
},
|
|
129
|
+
}));
|
|
130
|
+
export const getHeapSnapshotClassNodes = defineBrowserlessTool(() => ({
|
|
131
|
+
name: 'get_heapsnapshot_class_nodes',
|
|
132
|
+
description: 'Loads and caches a memory heapsnapshot and returns instances of a specific class with their IDs.',
|
|
133
|
+
annotations: {
|
|
134
|
+
category: ToolCategory.MEMORY,
|
|
135
|
+
readOnlyHint: true,
|
|
136
|
+
conditions: ['memoryDebugging'],
|
|
137
|
+
},
|
|
138
|
+
schema: {
|
|
139
|
+
filePath: zod
|
|
140
|
+
.string()
|
|
141
|
+
.describe('A path to a .heapsnapshot file to read.'),
|
|
142
|
+
id: zod.number().describe('The ID for the class, obtained from details.'),
|
|
143
|
+
filterName: zod
|
|
144
|
+
.enum(HEAP_SNAPSHOT_FILTERS)
|
|
145
|
+
.optional()
|
|
146
|
+
.describe('An optional filter to apply to the nodes.'),
|
|
147
|
+
objectId: zod
|
|
148
|
+
.number()
|
|
149
|
+
.optional()
|
|
150
|
+
.describe('The object ID (nodeId) of the specific native context to filter by when filterName is attributedToSpecificNativeContext.'),
|
|
151
|
+
maxNameLength: maxNameLengthSchema,
|
|
152
|
+
pageIdx: pageIdxSchema,
|
|
153
|
+
pageSize: pageSizeSchema,
|
|
154
|
+
},
|
|
155
|
+
blockedByDialog: false,
|
|
156
|
+
verifyFilesSchema: {
|
|
157
|
+
filePath: true,
|
|
158
|
+
},
|
|
159
|
+
handler: async (request, response, context) => {
|
|
160
|
+
const nodes = await context.getHeapSnapshotNodesById(request.params.filePath, request.params.id, request.params.filterName, request.params.objectId);
|
|
161
|
+
response.setHeapSnapshotNodes(nodes, {
|
|
162
|
+
pageIdx: request.params.pageIdx,
|
|
163
|
+
pageSize: request.params.pageSize,
|
|
164
|
+
maxNameLength: request.params.maxNameLength,
|
|
165
|
+
});
|
|
166
|
+
},
|
|
167
|
+
}));
|
|
168
|
+
export const getHeapSnapshotRetainers = defineBrowserlessTool(() => ({
|
|
169
|
+
name: 'get_heapsnapshot_retainers',
|
|
170
|
+
description: 'Loads and caches a memory heapsnapshot and returns retainers for a specific node ID.',
|
|
171
|
+
annotations: {
|
|
172
|
+
category: ToolCategory.MEMORY,
|
|
173
|
+
readOnlyHint: true,
|
|
174
|
+
conditions: ['memoryDebugging'],
|
|
175
|
+
},
|
|
176
|
+
blockedByDialog: false,
|
|
177
|
+
verifyFilesSchema: {
|
|
178
|
+
filePath: true,
|
|
179
|
+
},
|
|
180
|
+
schema: {
|
|
181
|
+
filePath: zod
|
|
182
|
+
.string()
|
|
183
|
+
.describe('A path to a .heapsnapshot file to read.'),
|
|
184
|
+
nodeId: zod.number().describe('The node ID to get retainers for.'),
|
|
185
|
+
maxNameLength: maxNameLengthSchema,
|
|
186
|
+
pageIdx: pageIdxSchema,
|
|
187
|
+
pageSize: pageSizeSchema,
|
|
188
|
+
},
|
|
189
|
+
handler: async (request, response, context) => {
|
|
190
|
+
const retainers = await context.getHeapSnapshotRetainers(request.params.filePath, request.params.nodeId);
|
|
191
|
+
response.setHeapSnapshotNodes(retainers, {
|
|
192
|
+
pageIdx: request.params.pageIdx,
|
|
193
|
+
pageSize: request.params.pageSize,
|
|
194
|
+
maxNameLength: request.params.maxNameLength,
|
|
195
|
+
});
|
|
196
|
+
},
|
|
197
|
+
}));
|
|
198
|
+
export const closeHeapSnapshot = defineBrowserlessTool(() => ({
|
|
199
|
+
name: 'close_heapsnapshot',
|
|
200
|
+
description: 'Closes a previously loaded and cached memory heapsnapshot, freeing its memory.',
|
|
201
|
+
annotations: {
|
|
202
|
+
category: ToolCategory.MEMORY,
|
|
203
|
+
readOnlyHint: false,
|
|
204
|
+
conditions: ['memoryDebugging'],
|
|
205
|
+
},
|
|
206
|
+
verifyFilesSchema: {
|
|
207
|
+
filePath: true,
|
|
208
|
+
},
|
|
209
|
+
schema: {
|
|
210
|
+
filePath: zod
|
|
211
|
+
.string()
|
|
212
|
+
.describe('A path to the .heapsnapshot file to close.'),
|
|
213
|
+
},
|
|
214
|
+
blockedByDialog: false,
|
|
215
|
+
handler: async (request, response, context) => {
|
|
216
|
+
const closed = await context.closeHeapSnapshot(request.params.filePath);
|
|
217
|
+
if (!closed) {
|
|
218
|
+
throw new Error(`Failed to close heap snapshot: ${request.params.filePath} was not loaded.`);
|
|
219
|
+
}
|
|
220
|
+
response.appendResponseLine(`Closed heap snapshot: ${request.params.filePath}`);
|
|
221
|
+
},
|
|
222
|
+
}));
|
|
223
|
+
export const getHeapSnapshotRetainingPaths = defineBrowserlessTool(() => ({
|
|
224
|
+
name: 'get_heapsnapshot_retaining_paths',
|
|
225
|
+
description: 'Loads and caches a memory heapsnapshot and returns retaining paths for a specific node ID. This helps to understand why a node is not being garbage collected.',
|
|
226
|
+
annotations: {
|
|
227
|
+
category: ToolCategory.MEMORY,
|
|
228
|
+
readOnlyHint: true,
|
|
229
|
+
conditions: ['memoryDebugging'],
|
|
230
|
+
},
|
|
231
|
+
verifyFilesSchema: {
|
|
232
|
+
filePath: true,
|
|
233
|
+
},
|
|
234
|
+
blockedByDialog: false,
|
|
235
|
+
schema: {
|
|
236
|
+
filePath: zod
|
|
237
|
+
.string()
|
|
238
|
+
.describe('A path to a .heapsnapshot file to read.'),
|
|
239
|
+
nodeId: zod.number().describe('The node ID to get retaining paths for.'),
|
|
240
|
+
maxDepth: zod
|
|
241
|
+
.number()
|
|
242
|
+
.optional()
|
|
243
|
+
.describe('The maximum depth to search for retaining paths.'),
|
|
244
|
+
maxNodes: zod
|
|
245
|
+
.number()
|
|
246
|
+
.optional()
|
|
247
|
+
.describe('The maximum number of nodes to return.'),
|
|
248
|
+
maxSiblings: zod
|
|
249
|
+
.number()
|
|
250
|
+
.optional()
|
|
251
|
+
.describe('The maximum number of siblings to return.'),
|
|
252
|
+
maxNameLength: maxNameLengthSchema,
|
|
253
|
+
},
|
|
254
|
+
handler: async (request, response, context) => {
|
|
255
|
+
const retainingPaths = await context.getHeapSnapshotRetainingPaths(request.params.filePath, request.params.nodeId, request.params.maxDepth, request.params.maxNodes, request.params.maxSiblings);
|
|
256
|
+
response.setHeapSnapshotRetainingPaths(retainingPaths, {
|
|
257
|
+
maxNameLength: request.params.maxNameLength,
|
|
258
|
+
});
|
|
259
|
+
},
|
|
260
|
+
}));
|
|
261
|
+
export const getHeapSnapshotEdges = defineBrowserlessTool(() => ({
|
|
262
|
+
name: 'get_heapsnapshot_edges',
|
|
263
|
+
description: 'Loads and caches a memory heapsnapshot and returns outgoing edges (references) for a specific node ID.',
|
|
264
|
+
annotations: {
|
|
265
|
+
category: ToolCategory.MEMORY,
|
|
266
|
+
readOnlyHint: true,
|
|
267
|
+
conditions: ['memoryDebugging'],
|
|
268
|
+
},
|
|
269
|
+
blockedByDialog: false,
|
|
270
|
+
verifyFilesSchema: {
|
|
271
|
+
filePath: true,
|
|
272
|
+
},
|
|
273
|
+
schema: {
|
|
274
|
+
filePath: zod
|
|
275
|
+
.string()
|
|
276
|
+
.describe('A path to a .heapsnapshot file to read.'),
|
|
277
|
+
nodeId: zod.number().describe('The node ID to get outgoing edges for.'),
|
|
278
|
+
sortBy: zod
|
|
279
|
+
.enum(['retainedSize', 'selfSize', 'name'])
|
|
280
|
+
.optional()
|
|
281
|
+
.describe('Sort order for edges. Default is retainedSize.'),
|
|
282
|
+
retainedSize: byteSizeRangeSchema('Inclusive retained size range (e.g. "1MB-2MB", "-1MB", or "1MB-") for target nodes. A single value is treated as a minimum. Currently, only the lower bound is applied.').optional(),
|
|
283
|
+
excludePrimitives: zod
|
|
284
|
+
.boolean()
|
|
285
|
+
.optional()
|
|
286
|
+
.describe('Whether to exclude primitive target nodes. Default is true.'),
|
|
287
|
+
maxNameLength: maxNameLengthSchema,
|
|
288
|
+
pageIdx: pageIdxSchema,
|
|
289
|
+
pageSize: pageSizeSchema,
|
|
290
|
+
},
|
|
291
|
+
handler: async (request, response, context) => {
|
|
292
|
+
const edges = await context.getHeapSnapshotEdges(request.params.filePath, request.params.nodeId, {
|
|
293
|
+
sortBy: request.params.sortBy ?? 'retainedSize',
|
|
294
|
+
// DevTools currently only supports a lower retained-size bound here.
|
|
295
|
+
minRetainedSize: request.params.retainedSize?.min,
|
|
296
|
+
excludePrimitives: request.params.excludePrimitives ?? true,
|
|
297
|
+
});
|
|
298
|
+
response.setHeapSnapshotNodes(edges, {
|
|
299
|
+
pageIdx: request.params.pageIdx,
|
|
300
|
+
pageSize: request.params.pageSize,
|
|
301
|
+
maxNameLength: request.params.maxNameLength,
|
|
302
|
+
});
|
|
303
|
+
},
|
|
304
|
+
}));
|
|
305
|
+
export const getHeapSnapshotDominators = defineBrowserlessTool(() => ({
|
|
306
|
+
name: 'get_heapsnapshot_dominators',
|
|
307
|
+
description: 'Loads and caches a memory heapsnapshot and returns the dominator chain for a specific node ID. This helps to identify which objects are keeping the target node alive.',
|
|
308
|
+
annotations: {
|
|
309
|
+
category: ToolCategory.MEMORY,
|
|
310
|
+
readOnlyHint: true,
|
|
311
|
+
conditions: ['memoryDebugging'],
|
|
312
|
+
},
|
|
313
|
+
blockedByDialog: false,
|
|
314
|
+
verifyFilesSchema: {
|
|
315
|
+
filePath: true,
|
|
316
|
+
},
|
|
317
|
+
schema: {
|
|
318
|
+
filePath: zod
|
|
319
|
+
.string()
|
|
320
|
+
.describe('A path to a .heapsnapshot file to read.'),
|
|
321
|
+
nodeId: zod
|
|
322
|
+
.number()
|
|
323
|
+
.describe('The node ID to get the dominator chain for.'),
|
|
324
|
+
maxNameLength: maxNameLengthSchema,
|
|
325
|
+
},
|
|
326
|
+
handler: async (request, response, context) => {
|
|
327
|
+
const dominators = await context.getHeapSnapshotDominators(request.params.filePath, request.params.nodeId);
|
|
328
|
+
response.setHeapSnapshotDominators(dominators, {
|
|
329
|
+
maxNameLength: request.params.maxNameLength,
|
|
330
|
+
});
|
|
331
|
+
},
|
|
332
|
+
}));
|
|
333
|
+
export const compareHeapSnapshots = defineBrowserlessTool(() => ({
|
|
334
|
+
name: 'compare_heapsnapshots',
|
|
335
|
+
description: 'Loads and caches two memory heapsnapshots and returns the comparison. If classIndex is provided, returns detailed diff for that class, otherwise returns summary diff.',
|
|
336
|
+
annotations: {
|
|
337
|
+
category: ToolCategory.MEMORY,
|
|
338
|
+
readOnlyHint: true,
|
|
339
|
+
conditions: ['memoryDebugging'],
|
|
340
|
+
},
|
|
341
|
+
verifyFilesSchema: {
|
|
342
|
+
baseFilePath: true,
|
|
343
|
+
currentFilePath: true,
|
|
344
|
+
},
|
|
345
|
+
schema: {
|
|
346
|
+
baseFilePath: zod
|
|
347
|
+
.string()
|
|
348
|
+
.describe('A path to the base .heapsnapshot file (earlier snapshot).'),
|
|
349
|
+
currentFilePath: zod
|
|
350
|
+
.string()
|
|
351
|
+
.describe('A path to the current .heapsnapshot file (later snapshot).'),
|
|
352
|
+
classIndex: zod
|
|
353
|
+
.number()
|
|
354
|
+
.optional()
|
|
355
|
+
.describe('Optional 0-based index of the class in the summary list to filter results, showing individual objects.'),
|
|
356
|
+
maxNameLength: maxNameLengthSchema,
|
|
357
|
+
pageIdx: pageIdxSchema,
|
|
358
|
+
pageSize: pageSizeSchema,
|
|
359
|
+
},
|
|
360
|
+
blockedByDialog: false,
|
|
361
|
+
handler: async (request, response, context) => {
|
|
362
|
+
if (request.params.classIndex !== undefined) {
|
|
363
|
+
const classDiffResult = await context.getHeapSnapshotDetailedClassDiff(request.params.baseFilePath, request.params.currentFilePath, request.params.classIndex);
|
|
364
|
+
response.setHeapSnapshotDetailedClassDiff(classDiffResult, {
|
|
365
|
+
pageIdx: request.params.pageIdx,
|
|
366
|
+
pageSize: request.params.pageSize,
|
|
367
|
+
maxNameLength: request.params.maxNameLength,
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
else {
|
|
371
|
+
const diff = await context.getHeapSnapshotClassDiffs(request.params.baseFilePath, request.params.currentFilePath);
|
|
372
|
+
response.setHeapSnapshotClassDiffs(diff, {
|
|
373
|
+
pageIdx: request.params.pageIdx,
|
|
374
|
+
pageSize: request.params.pageSize,
|
|
375
|
+
maxNameLength: request.params.maxNameLength,
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
}));
|
|
380
|
+
export const getHeapSnapshotDuplicateStrings = defineBrowserlessTool(() => ({
|
|
381
|
+
name: 'get_heapsnapshot_duplicate_strings',
|
|
382
|
+
description: 'Loads and caches a memory heapsnapshot and returns duplicate strings grouped by their value.',
|
|
383
|
+
annotations: {
|
|
384
|
+
category: ToolCategory.MEMORY,
|
|
385
|
+
readOnlyHint: true,
|
|
386
|
+
conditions: ['memoryDebugging'],
|
|
387
|
+
},
|
|
388
|
+
blockedByDialog: false,
|
|
389
|
+
verifyFilesSchema: {
|
|
390
|
+
filePath: true,
|
|
391
|
+
},
|
|
392
|
+
schema: {
|
|
393
|
+
filePath: zod
|
|
394
|
+
.string()
|
|
395
|
+
.describe('A path to a .heapsnapshot file to read.'),
|
|
396
|
+
pageIdx: pageIdxSchema,
|
|
397
|
+
pageSize: pageSizeSchema,
|
|
398
|
+
maxNameLength: maxNameLengthSchema,
|
|
399
|
+
},
|
|
400
|
+
handler: async (request, response, context) => {
|
|
401
|
+
const duplicateStrings = await context.getHeapSnapshotDuplicateStrings(request.params.filePath);
|
|
402
|
+
response.setHeapSnapshotDuplicateStrings(duplicateStrings, {
|
|
403
|
+
pageIdx: request.params.pageIdx,
|
|
404
|
+
pageSize: request.params.pageSize,
|
|
405
|
+
maxNameLength: request.params.maxNameLength,
|
|
406
|
+
});
|
|
407
|
+
},
|
|
408
|
+
}));
|
|
409
|
+
export const getHeapSnapshotObjectDetails = defineBrowserlessTool(() => ({
|
|
410
|
+
name: 'get_heapsnapshot_object_details',
|
|
411
|
+
description: 'Loads and caches a memory heapsnapshot and returns detailed information about a specific object by its node ID, including size, type, distance, and DOM detachedness.',
|
|
412
|
+
annotations: {
|
|
413
|
+
category: ToolCategory.MEMORY,
|
|
414
|
+
readOnlyHint: true,
|
|
415
|
+
conditions: ['memoryDebugging'],
|
|
416
|
+
},
|
|
417
|
+
blockedByDialog: false,
|
|
418
|
+
verifyFilesSchema: {
|
|
419
|
+
filePath: true,
|
|
420
|
+
},
|
|
421
|
+
schema: {
|
|
422
|
+
filePath: zod
|
|
423
|
+
.string()
|
|
424
|
+
.describe('A path to a .heapsnapshot file to read.'),
|
|
425
|
+
nodeId: zod.number().describe('The node ID to get object details for.'),
|
|
426
|
+
maxNameLength: maxNameLengthSchema,
|
|
427
|
+
},
|
|
428
|
+
handler: async (request, response, context) => {
|
|
429
|
+
const objectInfo = await context.getHeapSnapshotObjectDetails(request.params.filePath, request.params.nodeId);
|
|
430
|
+
response.setHeapSnapshotObjectDetails(objectInfo, {
|
|
431
|
+
maxNameLength: request.params.maxNameLength,
|
|
432
|
+
});
|
|
433
|
+
},
|
|
434
|
+
}));
|
|
435
|
+
export const queryHeapSnapshotObjects = defineBrowserlessTool(() => ({
|
|
436
|
+
name: 'query_heapsnapshot_objects',
|
|
437
|
+
description: 'Loads and caches a memory heapsnapshot and queries objects matching specific filters (className, propertyName, nodeType, retainedSize, selfSize, isDetached, sortBy).',
|
|
438
|
+
annotations: {
|
|
439
|
+
category: ToolCategory.MEMORY,
|
|
440
|
+
readOnlyHint: true,
|
|
441
|
+
conditions: ['memoryDebugging'],
|
|
442
|
+
},
|
|
443
|
+
blockedByDialog: false,
|
|
444
|
+
verifyFilesSchema: { filePath: true },
|
|
445
|
+
schema: {
|
|
446
|
+
filePath: zod
|
|
447
|
+
.string()
|
|
448
|
+
.describe('A path to a .heapsnapshot file to read.'),
|
|
449
|
+
className: zod
|
|
450
|
+
.string()
|
|
451
|
+
.optional()
|
|
452
|
+
.describe('Optional case-insensitive regex matching object class name. Escape special characters to match them literally.'),
|
|
453
|
+
propertyName: zod
|
|
454
|
+
.string()
|
|
455
|
+
.optional()
|
|
456
|
+
.describe('Optional case-insensitive regex matching property names of outgoing reference edges. Escape special characters to match them literally.'),
|
|
457
|
+
nodeType: zod
|
|
458
|
+
.string()
|
|
459
|
+
.optional()
|
|
460
|
+
.describe('Optional V8 node type filter (e.g. object, closure, string, array, code).'),
|
|
461
|
+
retainedSize: byteSizeRangeSchema('Inclusive retained size range (e.g. "1MB-2MB", "-1MB", or "1MB-"). A single value is treated as a minimum.').optional(),
|
|
462
|
+
selfSize: byteSizeRangeSchema('Inclusive self size range (e.g. "1MB-2MB", "-1MB", or "1MB-"). A single value is treated as a minimum.').optional(),
|
|
463
|
+
isDetached: zod
|
|
464
|
+
.boolean()
|
|
465
|
+
.optional()
|
|
466
|
+
.describe('Whether to filter for detached DOM nodes.'),
|
|
467
|
+
sortBy: zod
|
|
468
|
+
.enum(['retainedSize', 'selfSize', 'id'])
|
|
469
|
+
.optional()
|
|
470
|
+
.describe('Sort order for results. Default is retainedSize.'),
|
|
471
|
+
pageIdx: pageIdxSchema,
|
|
472
|
+
pageSize: pageSizeSchema,
|
|
473
|
+
maxNameLength: maxNameLengthSchema,
|
|
474
|
+
},
|
|
475
|
+
handler: async (request, response, context) => {
|
|
476
|
+
const range = await context.queryHeapSnapshotObjects(request.params.filePath, {
|
|
477
|
+
className: request.params.className,
|
|
478
|
+
propertyName: request.params.propertyName,
|
|
479
|
+
nodeType: request.params.nodeType,
|
|
480
|
+
minRetainedSize: request.params.retainedSize?.min,
|
|
481
|
+
maxRetainedSize: request.params.retainedSize?.max,
|
|
482
|
+
minSelfSize: request.params.selfSize?.min,
|
|
483
|
+
maxSelfSize: request.params.selfSize?.max,
|
|
484
|
+
isDetached: request.params.isDetached,
|
|
485
|
+
sortBy: request.params.sortBy,
|
|
486
|
+
});
|
|
487
|
+
response.setHeapSnapshotNodes(range, {
|
|
488
|
+
pageIdx: request.params.pageIdx,
|
|
489
|
+
pageSize: request.params.pageSize,
|
|
490
|
+
maxNameLength: request.params.maxNameLength,
|
|
491
|
+
});
|
|
492
|
+
},
|
|
493
|
+
}));
|
|
494
|
+
export const analyzeHeapSnapshotContexts = defineBrowserlessTool(() => ({
|
|
495
|
+
name: 'analyze_heapsnapshot_contexts',
|
|
496
|
+
description: 'Loads and caches a memory heapsnapshot to identify and rank closure contexts holding dead captured fields—variables no remaining live closure can read. Scopes are ranked globally by the retained size of these dead values to provide a prioritizing heuristic, rather than an exact measure of reclaimable bytes.',
|
|
497
|
+
annotations: {
|
|
498
|
+
category: ToolCategory.MEMORY,
|
|
499
|
+
readOnlyHint: true,
|
|
500
|
+
conditions: ['memoryDebugging'],
|
|
501
|
+
},
|
|
502
|
+
blockedByDialog: false,
|
|
503
|
+
verifyFilesSchema: {
|
|
504
|
+
filePath: true,
|
|
505
|
+
},
|
|
506
|
+
schema: {
|
|
507
|
+
filePath: zod
|
|
508
|
+
.string()
|
|
509
|
+
.describe('A path to a .heapsnapshot file to read.'),
|
|
510
|
+
retainedSize: byteSizeRangeSchema('Inclusive range for the dead-field score of a context (e.g. "10KB", "1MB-2MB", "-1MB", or "1MB-"). A single value is treated as a minimum.').optional(),
|
|
511
|
+
scopeInfoNodeId: zod
|
|
512
|
+
.number()
|
|
513
|
+
.int()
|
|
514
|
+
.optional()
|
|
515
|
+
.describe('Only return contexts declared by the scope with this ScopeInfo node id, as reported in the scope header of a previous call.'),
|
|
516
|
+
maxNameLength: maxNameLengthSchema,
|
|
517
|
+
pageIdx: pageIdxSchema,
|
|
518
|
+
pageSize: pageSizeSchema,
|
|
519
|
+
},
|
|
520
|
+
handler: async (request, response, context) => {
|
|
521
|
+
const analysis = await context.analyzeHeapSnapshotContexts(request.params.filePath);
|
|
522
|
+
response.setHeapSnapshotContextAnalysis(analysis, {
|
|
523
|
+
retainedSize: request.params.retainedSize,
|
|
524
|
+
scopeInfoNodeId: request.params.scopeInfoNodeId,
|
|
525
|
+
maxNameLength: request.params.maxNameLength,
|
|
526
|
+
pageIdx: request.params.pageIdx,
|
|
527
|
+
pageSize: request.params.pageSize,
|
|
528
|
+
});
|
|
529
|
+
},
|
|
530
|
+
}));
|
|
531
|
+
//# sourceMappingURL=memory.js.map
|