chrome-devtools-mcp 1.12.0 → 1.13.0
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/README.md +1 -1
- package/{build → out/Default/gen}/src/BrowserManager.js +22 -0
- package/out/Default/gen/src/LogpointManager.js +307 -0
- package/{build → out/Default/gen}/src/McpContext.js +10 -52
- package/{build → out/Default/gen}/src/McpPage.js +181 -2
- package/{build → out/Default/gen}/src/McpResponse.js +29 -3
- package/out/Default/gen/src/NetworkOverrideManager.js +419 -0
- package/{build → out/Default/gen}/src/ToolHandler.js +53 -22
- package/{build → out/Default/gen}/src/collectors/PageCollector.js +15 -3
- package/{build → out/Default/gen}/src/config/ConfigParser.js +4 -1
- package/{build → out/Default/gen}/src/config/category-options.js +10 -0
- package/{build → out/Default/gen}/src/config/cli-options.js +188 -3
- package/{build → out/Default/gen}/src/config/mcp-options.js +1 -1
- package/{build → out/Default/gen}/src/devtools/DevtoolsUtils.js +45 -8
- package/out/Default/gen/src/formatters/LogpointFormatter.js +62 -0
- package/{build → out/Default/gen}/src/formatters/NetworkFormatter.js +16 -2
- package/out/Default/gen/src/formatters/NetworkOverridesFormatter.js +49 -0
- package/out/Default/gen/src/formatters/WebAuthnFormatter.js +56 -0
- package/{build → out/Default/gen}/src/index.js +2 -1
- package/{build → out/Default/gen}/src/telemetry/transformation.js +1 -1
- package/{build → out/Default/gen}/src/third_party/THIRD_PARTY_NOTICES +354 -367
- package/out/Default/gen/src/third_party/bundled-packages.json +11 -0
- package/out/Default/gen/src/third_party/cli.js +9023 -0
- package/out/Default/gen/src/third_party/devtools-formatter-worker.js +31904 -0
- package/out/Default/gen/src/third_party/devtools-heap-snapshot-worker.js +26467 -0
- package/out/Default/gen/src/third_party/index.js +201574 -0
- package/{build → out/Default/gen}/src/third_party/lighthouse-devtools-mcp-bundle.js +11034 -11476
- package/{build → out/Default/gen}/src/tools/ToolDefinition.js +66 -56
- package/{build → out/Default/gen}/src/tools/categories.js +4 -0
- package/{build → out/Default/gen}/src/tools/comments.js +4 -1
- package/{build → out/Default/gen}/src/tools/console.js +2 -2
- package/{build → out/Default/gen}/src/tools/extensions.js +1 -1
- package/{build → out/Default/gen}/src/tools/input.js +9 -29
- package/{build → out/Default/gen}/src/tools/lighthouse.js +6 -0
- package/out/Default/gen/src/tools/logpoints.js +51 -0
- package/out/Default/gen/src/tools/network.js +260 -0
- package/{build → out/Default/gen}/src/tools/performance.js +26 -3
- package/{build → out/Default/gen}/src/tools/snapshot.js +20 -6
- package/{build → out/Default/gen}/src/tools/thirdPartyDeveloper.js +3 -19
- package/out/Default/gen/src/tools/toolNames.js +10 -0
- package/{build → out/Default/gen}/src/tools/tools.js +4 -0
- package/out/Default/gen/src/tools/webauthn.js +51 -0
- package/{build → out/Default/gen}/src/tools/webmcp.js +3 -19
- package/{build → out/Default/gen}/src/utils/TaskRunner.js +31 -16
- package/{build → out/Default/gen}/src/utils/WaitForHelper.js +15 -1
- package/{build → out/Default/gen}/src/utils/check-for-updates.js +7 -1
- package/{build → out/Default/gen}/src/utils/errorHandling.js +3 -0
- package/{build → out/Default/gen}/src/utils/keyboard.js +5 -7
- package/out/Default/gen/src/utils/network.js +81 -0
- package/out/Default/gen/src/utils/raceWithSignal.js +26 -0
- package/{build → out/Default/gen}/src/utils/url.js +33 -18
- package/{build → out/Default/gen}/src/version.js +1 -1
- package/package.json +25 -32
- package/skills/chrome-devtools/SKILL.md +2 -0
- package/skills/chrome-devtools-cli/SKILL.md +12 -1
- package/build/src/third_party/bundled-packages.json +0 -11
- package/build/src/third_party/cli.js +0 -9239
- package/build/src/third_party/devtools-formatter-worker.js +0 -17276
- package/build/src/third_party/devtools-heap-snapshot-worker.js +0 -12255
- package/build/src/third_party/index.js +0 -186086
- package/build/src/tools/network.js +0 -129
- /package/{build → out/Default/gen}/src/McpWorker.js +0 -0
- /package/{build → out/Default/gen}/src/SlimMcpResponse.js +0 -0
- /package/{build → out/Default/gen}/src/TextSnapshot.js +0 -0
- /package/{build → out/Default/gen}/src/bin/check-latest-version.js +0 -0
- /package/{build → out/Default/gen}/src/bin/chrome-devtools-mcp-main.js +0 -0
- /package/{build → out/Default/gen}/src/bin/chrome-devtools-mcp.js +0 -0
- /package/{build → out/Default/gen}/src/bin/chrome-devtools.js +0 -0
- /package/{build → out/Default/gen}/src/collectors/ServiceWorkerCollector.js +0 -0
- /package/{build → out/Default/gen}/src/collectors/constants.js +0 -0
- /package/{build → out/Default/gen}/src/config/ConfigLocator.js +0 -0
- /package/{build → out/Default/gen}/src/config/ConfigWatcher.js +0 -0
- /package/{build → out/Default/gen}/src/config/ServerConfig.js +0 -0
- /package/{build → out/Default/gen}/src/config/browser-options.js +0 -0
- /package/{build → out/Default/gen}/src/config/cli-commands.js +0 -0
- /package/{build → out/Default/gen}/src/config/puppeteer-options.js +0 -0
- /package/{build → out/Default/gen}/src/config/tool-options.js +0 -0
- /package/{build → out/Default/gen}/src/daemon/client.js +0 -0
- /package/{build → out/Default/gen}/src/daemon/daemon.js +0 -0
- /package/{build → out/Default/gen}/src/daemon/types.js +0 -0
- /package/{build → out/Default/gen}/src/daemon/utils.js +0 -0
- /package/{build → out/Default/gen}/src/devtools/DevToolsCommentBridge.js +0 -0
- /package/{build → out/Default/gen}/src/devtools/McpHostBindingAdapter.js +0 -0
- /package/{build → out/Default/gen}/src/devtools/issueDescriptions.js +0 -0
- /package/{build → out/Default/gen}/src/formatters/CommentFormatter.js +0 -0
- /package/{build → out/Default/gen}/src/formatters/ConsoleFormatter.js +0 -0
- /package/{build → out/Default/gen}/src/formatters/CssFormatter.js +0 -0
- /package/{build → out/Default/gen}/src/formatters/HeapSnapshotFormatter.js +0 -0
- /package/{build → out/Default/gen}/src/formatters/IssueFormatter.js +0 -0
- /package/{build → out/Default/gen}/src/formatters/RemoteObjectFormatter.js +0 -0
- /package/{build → out/Default/gen}/src/formatters/SnapshotFormatter.js +0 -0
- /package/{build → out/Default/gen}/src/processors/ChunkedTraceParser.js +0 -0
- /package/{build → out/Default/gen}/src/processors/HeapSnapshotManager.js +0 -0
- /package/{build → out/Default/gen}/src/processors/PerformanceTrace.js +0 -0
- /package/{build → out/Default/gen}/src/telemetry/ClearcutLogger.js +0 -0
- /package/{build → out/Default/gen}/src/telemetry/WatchdogClient.js +0 -0
- /package/{build → out/Default/gen}/src/telemetry/errors.js +0 -0
- /package/{build → out/Default/gen}/src/telemetry/flagUtils.js +0 -0
- /package/{build → out/Default/gen}/src/telemetry/metricsRegistry.js +0 -0
- /package/{build → out/Default/gen}/src/telemetry/persistence.js +0 -0
- /package/{build → out/Default/gen}/src/telemetry/types.js +0 -0
- /package/{build → out/Default/gen}/src/telemetry/watchdog/ClearcutSender.js +0 -0
- /package/{build → out/Default/gen}/src/telemetry/watchdog/main.js +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/CoepCoopSandboxedIframeCannotNavigateToCoopPage.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/CoepCorpNotSameOrigin.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/CoepCorpNotSameOriginAfterDefaultedToSameOriginByCoep.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/CoepCorpNotSameSite.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/CoepFrameResourceNeedsCoepHeader.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/CompatibilityModeQuirks.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/CookieAttributeValueExceedsMaxSize.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/LowTextContrast.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorRead.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorSet.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnRead.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnSet.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeRead.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeSet.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/bounceTrackingMitigations.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/clientHintMetaTagAllowListInvalidOrigin.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/clientHintMetaTagModifiedHTML.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/connectionAllowlistEmbeddingRequirementNotSatisfied.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/connectionAllowlistIFrameAttributeLoosensEmbeddingRequirement.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/connectionAllowlistInvalidAllowConnectionAllowlistFrom.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/connectionAllowlistInvalidAllowlistItemType.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/connectionAllowlistInvalidHeader.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/connectionAllowlistInvalidUrlPattern.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/connectionAllowlistItemNotInnerList.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/connectionAllowlistMoreThanOneList.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/connectionAllowlistReportingEndpointNotToken.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieCrossSiteRedirectDowngrade.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieExcludeDomainNonAscii.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieExcludePortMismatch.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieExcludeSchemeMismatch.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutRead.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutSet.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieWarnDomainNonAscii.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieWarnMetadataGrantRead.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieWarnMetadataGrantReadOptOut.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieWarnMetadataGrantSet.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieWarnMetadataGrantSetOptOut.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutRead.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutSet.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsAllowCredentialsRequired.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsDisabledScheme.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsDisallowedByMode.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsHeaderDisallowedByPreflightResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsInvalidHeaderValues.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsLocalNetworkAccessPermissionDenied.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsMethodDisallowedByPreflightResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsNoCorsRedirectModeNotFollow.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsOriginMismatch.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsPreflightResponseInvalid.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsRedirectContainsCredentials.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsWildcardOriginNotAllowed.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cspEvalViolation.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cspInlineViolation.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cspTrustedTypesPolicyViolation.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cspTrustedTypesSinkViolation.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cspURLViolation.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/deprecation.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestAccountsEmptyList.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestAccountsHttpNotFound.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestAccountsInvalidContentType.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestAccountsInvalidResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestAccountsNoResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestDnsFetchFailed.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestDnsInvalidRecord.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownHttpNotFound.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidContentType.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownNoResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestInvalidEmail.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestJwksHttpNotFound.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestJwksInvalidResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestKeyBindingSigningFailed.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestRpOriginIsOpaque.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenHttpNotFound.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidContentType.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidSdJwt.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenMalformedSdJwt.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenNoResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidAudience.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidIssuedAt.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidNonce.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidSdHash.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidTyp.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingAud.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingCnf.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingIat.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingNonce.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingSdHash.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbSignatureFailed.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmail.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmailVerified.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidHolderKey.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuedAt.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuer.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtJwksMissingKeys.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingCnf.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingEmail.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIat.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIss.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtSignatureFailed.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtUnsupportedHeaderAlg.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestUserLoggedOut.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestWellKnownAccountsEndpointCrossOrigin.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestWellKnownHttpNotFound.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestWellKnownInvalidContentType.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestWellKnownInvalidResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestWellKnownIssuanceEndpointCrossOrigin.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestWellKnownListEmpty.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestWellKnownMissingAccountsEndpoint.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestWellKnownMissingIssuanceEndpoint.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestWellKnownNoResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestWellKnownUnsupportedSigningAlgorithm.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestAccountsBlockedByConnectionAllowlist.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestAccountsHttpNotFound.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestAccountsInvalidResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestAccountsNoResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestApprovalDeclined.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestCanceled.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestConfigBlockedByConnectionAllowlist.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestErrorFetchingSignin.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestErrorIdToken.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestIdTokenBlockedByConnectionAllowlist.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestIdTokenHttpNotFound.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidRequest.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestIdTokenNoResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestInvalidSigninResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestManifestHttpNotFound.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestManifestInvalidResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestManifestNoResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestTooManyRequests.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestWellKnownBlockedByConnectionAllowlist.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidAccountsResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidConfigOrWellKnown.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoAccountSharingPermission.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoApiPermission.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoReturningUserFromFetchedAccounts.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotIframe.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotPotentiallyTrustworthy.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSameOrigin.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSignedInWithIdp.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/fetchingPartitionedBlobURL.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericBackUINavigationWouldSkipAd.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormAriaLabelledByToNonExistingIdError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormAutocompleteAttributeEmptyError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormDuplicateIdForInputError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormEmptyIdAndNameAttributesForInputError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormInputAssignedAutocompleteValueToIdOrNameAttributeError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormInputHasWrongButWellIntendedAutocompleteValueError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormInputWithNoLabelError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormLabelForMatchesNonExistingIdError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormLabelForNameError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormLabelHasNeitherForNorNestedInputError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormModelContextMissingToolDescription.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormModelContextMissingToolName.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormModelContextParameterMissingName.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormModelContextParameterMissingTitleAndDescription.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormModelContextRequiredParameterMissingName.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericGeolocationPromptWithoutUserGesture.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericNavigationEntryMarkedSkippable.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericResponseWasBlockedByORB.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/heavyAd.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/lazyLoadImageZeroSize.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/mixedContent.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/navigatingPartitionedBlobURL.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementActivationDisabled.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluder.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluderParent.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementCspFrameAncestorsMissing.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementFencedFrameDisallowed.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementFontSizeTooLarge.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementFontSizeTooSmall.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementGeolocationDeprecated.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementInsetBoxShadowUnsupported.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementInvalidDisplayStyle.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementInvalidSizeValue.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementInvalidType.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementInvalidTypeActivation.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementLowContrast.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementNonOpaqueColor.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementPaddingBottomUnsupported.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementPaddingRightUnsupported.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementPermissionsPolicyBlocked.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementRegistrationFailed.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementRequestInProgress.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementSecurityChecksFailed.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementTypeNotSupported.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementUntrustedEvent.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/placeholderDescriptionForInvisibleIssues.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/propertyRuleInvalidNameIssue.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/propertyRuleIssue.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedOptGroupChild.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedSelectChild.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentAttributesSelectDescendant.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentLegendChild.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentOptionChild.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/selectElementAccessibilityNonPhrasingContentOptionChild.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/selectivePermissionsIntervention.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedArrayBuffer.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryUseErrorCrossOriginNoCorsRequest.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryUseErrorDictionaryLoadFailure.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryUseErrorMatchingDictionaryNotUsed.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryUseErrorUnexpectedContentDictionaryHeader.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorCossOriginNoCorsRequest.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorDisallowedBySettings.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorExpiredResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorFeatureDisabled.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInsufficientResources.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidMatchField.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidStructuredHeader.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidTTLField.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNavigationRequest.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNoMatchField.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonIntegerTTLField.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonListMatchDestField.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonSecureContext.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringIdField.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringInMatchDestList.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringMatchField.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonTokenTypeField.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorRequestAborted.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorShuttingDown.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorTooLongIdField.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorUnsupportedType.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriInvalidSignatureHeader.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriInvalidSignatureInputHeader.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriMissingSignatureHeader.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriMissingSignatureInputHeader.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureHeaderValueIsIncorrectLength.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureHeaderValueIsNotByteSequence.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureHeaderValueIsParameterized.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentName.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentType.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidDerivedComponentParameter.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidHeaderComponentParameter.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidParameter.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureInputHeaderKeyIdLength.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingLabel.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingRequiredParameters.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureInputHeaderValueMissingComponents.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureInputHeaderValueNotInnerList.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriValidationFailedIntegrityMismatch.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriValidationFailedInvalidLength.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriValidationFailedSignatureExpired.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriValidationFailedSignatureMismatch.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/stylesheetLateImport.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/stylesheetRequestFailed.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/summaryElementAccessibilityInteractiveContentSummaryDescendant.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestLength.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestType.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/unencodedDigestMalformedDictionary.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/unencodedDigestUnknownAlgorithm.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/webInstallManifestMissingId.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/webInstallManifestMissingNameOrShortName.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/webInstallManifestParsingOrNetworkError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/webInstallNoManifest.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/webInstallStartUrlInvalid.md +0 -0
- /package/{build → out/Default/gen}/src/tools/css.js +0 -0
- /package/{build → out/Default/gen}/src/tools/emulation.js +0 -0
- /package/{build → out/Default/gen}/src/tools/memory.js +0 -0
- /package/{build → out/Default/gen}/src/tools/pages.js +0 -0
- /package/{build → out/Default/gen}/src/tools/pwa.js +0 -0
- /package/{build → out/Default/gen}/src/tools/screencast.js +0 -0
- /package/{build → out/Default/gen}/src/tools/screenshot.js +0 -0
- /package/{build → out/Default/gen}/src/tools/script.js +0 -0
- /package/{build → out/Default/gen}/src/tools/slim/tools.js +0 -0
- /package/{build → out/Default/gen}/src/types.js +0 -0
- /package/{build → out/Default/gen}/src/utils/bytes.js +0 -0
- /package/{build → out/Default/gen}/src/utils/disclaimers.js +0 -0
- /package/{build → out/Default/gen}/src/utils/files.js +0 -0
- /package/{build → out/Default/gen}/src/utils/id.js +0 -0
- /package/{build → out/Default/gen}/src/utils/logger.js +0 -0
- /package/{build → out/Default/gen}/src/utils/pagination.js +0 -0
- /package/{build → out/Default/gen}/src/utils/polyfill.js +0 -0
- /package/{build → out/Default/gen}/src/utils/resourceType.js +0 -0
- /package/{build → out/Default/gen}/src/utils/text.js +0 -0
- /package/{build → out/Default/gen}/src/utils/timeout.js +0 -0
|
@@ -10,6 +10,7 @@ import { collectRankedContexts, formatName, HeapSnapshotFormatter, isEdgeLike, i
|
|
|
10
10
|
import { IssueFormatter } from './formatters/IssueFormatter.js';
|
|
11
11
|
import { NetworkFormatter } from './formatters/NetworkFormatter.js';
|
|
12
12
|
import { SnapshotFormatter } from './formatters/SnapshotFormatter.js';
|
|
13
|
+
import { WebAuthnFormatter } from './formatters/WebAuthnFormatter.js';
|
|
13
14
|
import { UncaughtError } from './collectors/PageCollector.js';
|
|
14
15
|
import { TextSnapshot } from './TextSnapshot.js';
|
|
15
16
|
import { DevTools, getToonEncode, getGcfEncode, } from './third_party/index.js';
|
|
@@ -48,6 +49,7 @@ export class McpResponse {
|
|
|
48
49
|
#attachedWaitForResult;
|
|
49
50
|
#reconnectNotice = false;
|
|
50
51
|
#devToolsComments;
|
|
52
|
+
#webAuthnFormatter;
|
|
51
53
|
get #deviceScope() {
|
|
52
54
|
return this.#page?.viewport?.isMobile ? 'PHONE' : 'DESKTOP';
|
|
53
55
|
}
|
|
@@ -147,6 +149,9 @@ export class McpResponse {
|
|
|
147
149
|
attachConsoleMessage(msgid) {
|
|
148
150
|
this.#attachedConsoleMessageId = msgid;
|
|
149
151
|
}
|
|
152
|
+
attachWebAuthnAuthenticator(authenticator) {
|
|
153
|
+
this.#webAuthnFormatter = new WebAuthnFormatter(authenticator);
|
|
154
|
+
}
|
|
150
155
|
attachTraceSummary(result) {
|
|
151
156
|
this.#attachedTraceSummary = result;
|
|
152
157
|
}
|
|
@@ -698,7 +703,7 @@ Call ${handleDialog(this.#config.resolved).name} to handle it before continuing.
|
|
|
698
703
|
? ` isolatedContext=${isolatedContextName}`
|
|
699
704
|
: '';
|
|
700
705
|
const page = formatPage(mcpPage, context, targetInfos.get(mcpPage.targetId));
|
|
701
|
-
parts.push(`${page.text}${context.isPageSelected(mcpPage) ? ' [selected]' : ''}${contextLabel}`);
|
|
706
|
+
parts.push(`${page.text}${context.isPageSelected(mcpPage) ? ' [selected]' : ''}${contextLabel}${formatWebAuthnLabel(mcpPage)}`);
|
|
702
707
|
structuredPages.push(page.structured);
|
|
703
708
|
}
|
|
704
709
|
response.push(...parts);
|
|
@@ -714,7 +719,7 @@ Call ${handleDialog(this.#config.resolved).name} to handle it before continuing.
|
|
|
714
719
|
? ` isolatedContext=${isolatedContextName}`
|
|
715
720
|
: '';
|
|
716
721
|
const page = formatPage(mcpPage, context, targetInfos.get(mcpPage.targetId));
|
|
717
|
-
response.push(`${page.text}${context.isPageSelected(mcpPage) ? ' [selected]' : ''}${contextLabel}`);
|
|
722
|
+
response.push(`${page.text}${context.isPageSelected(mcpPage) ? ' [selected]' : ''}${contextLabel}${formatWebAuthnLabel(mcpPage)}`);
|
|
718
723
|
structuredExtensionPages.push(page.structured);
|
|
719
724
|
}
|
|
720
725
|
structuredContent.extensionPages = structuredExtensionPages;
|
|
@@ -1046,7 +1051,7 @@ Call ${handleDialog(this.#config.resolved).name} to handle it before continuing.
|
|
|
1046
1051
|
structuredContent.extensions = extensionArray;
|
|
1047
1052
|
response.push('## Extensions');
|
|
1048
1053
|
if (extensionArray.length === 0) {
|
|
1049
|
-
response.push('No extensions
|
|
1054
|
+
response.push('No unpacked extensions found.');
|
|
1050
1055
|
}
|
|
1051
1056
|
else {
|
|
1052
1057
|
const extensionsMessage = extensionArray
|
|
@@ -1148,6 +1153,13 @@ Call ${handleDialog(this.#config.resolved).name} to handle it before continuing.
|
|
|
1148
1153
|
data.commentsSnapshotRegenerated;
|
|
1149
1154
|
}
|
|
1150
1155
|
}
|
|
1156
|
+
if (this.#webAuthnFormatter) {
|
|
1157
|
+
structuredContent.webauthnAuthenticator =
|
|
1158
|
+
this.#webAuthnFormatter.toJSON();
|
|
1159
|
+
response.push(compactEncode
|
|
1160
|
+
? compactEncode(structuredContent.webauthnAuthenticator)
|
|
1161
|
+
: this.#webAuthnFormatter.toString());
|
|
1162
|
+
}
|
|
1151
1163
|
if (this.#cssStylesData) {
|
|
1152
1164
|
const resolveUid = (backendNodeId) => this.#page?.textSnapshot?.resolveCdpElementId(backendNodeId);
|
|
1153
1165
|
const containerDetails = await resolveContainerQueries(this.#cssStylesData.matchedStyles, resolveUid);
|
|
@@ -1244,6 +1256,16 @@ function formatPage(mcpPage, context, targetInfo) {
|
|
|
1244
1256
|
structured: createStructuredPage(mcpPage, context, title),
|
|
1245
1257
|
};
|
|
1246
1258
|
}
|
|
1259
|
+
function getWebAuthnLabel(mcpPage) {
|
|
1260
|
+
const authenticator = mcpPage.getWebAuthnAuthenticator();
|
|
1261
|
+
return authenticator
|
|
1262
|
+
? `${authenticator.protocol}/${authenticator.transport}`
|
|
1263
|
+
: undefined;
|
|
1264
|
+
}
|
|
1265
|
+
function formatWebAuthnLabel(mcpPage) {
|
|
1266
|
+
const label = getWebAuthnLabel(mcpPage);
|
|
1267
|
+
return label ? ` webauthn=${label}` : '';
|
|
1268
|
+
}
|
|
1247
1269
|
function createStructuredPage(mcpPage, context, rawTitle) {
|
|
1248
1270
|
const isolatedContextName = mcpPage.isolatedContextName;
|
|
1249
1271
|
const title = truncateTitle(rawTitle);
|
|
@@ -1256,6 +1278,10 @@ function createStructuredPage(mcpPage, context, rawTitle) {
|
|
|
1256
1278
|
if (isolatedContextName) {
|
|
1257
1279
|
entry.isolatedContext = isolatedContextName;
|
|
1258
1280
|
}
|
|
1281
|
+
const webAuthnLabel = getWebAuthnLabel(mcpPage);
|
|
1282
|
+
if (webAuthnLabel) {
|
|
1283
|
+
entry.webauthn = webAuthnLabel;
|
|
1284
|
+
}
|
|
1259
1285
|
return entry;
|
|
1260
1286
|
}
|
|
1261
1287
|
//# sourceMappingURL=McpResponse.js.map
|
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
|
|
7
|
+
if (value !== null && value !== void 0) {
|
|
8
|
+
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
9
|
+
var dispose, inner;
|
|
10
|
+
if (async) {
|
|
11
|
+
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
12
|
+
dispose = value[Symbol.asyncDispose];
|
|
13
|
+
}
|
|
14
|
+
if (dispose === void 0) {
|
|
15
|
+
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
16
|
+
dispose = value[Symbol.dispose];
|
|
17
|
+
if (async) inner = dispose;
|
|
18
|
+
}
|
|
19
|
+
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
20
|
+
if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
|
|
21
|
+
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
22
|
+
}
|
|
23
|
+
else if (async) {
|
|
24
|
+
env.stack.push({ async: true });
|
|
25
|
+
}
|
|
26
|
+
return value;
|
|
27
|
+
};
|
|
28
|
+
var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {
|
|
29
|
+
return function (env) {
|
|
30
|
+
function fail(e) {
|
|
31
|
+
env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
32
|
+
env.hasError = true;
|
|
33
|
+
}
|
|
34
|
+
var r, s = 0;
|
|
35
|
+
function next() {
|
|
36
|
+
while (r = env.stack.pop()) {
|
|
37
|
+
try {
|
|
38
|
+
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
39
|
+
if (r.dispose) {
|
|
40
|
+
var result = r.dispose.call(r.value);
|
|
41
|
+
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
|
42
|
+
}
|
|
43
|
+
else s |= 1;
|
|
44
|
+
}
|
|
45
|
+
catch (e) {
|
|
46
|
+
fail(e);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
50
|
+
if (env.hasError) throw env.error;
|
|
51
|
+
}
|
|
52
|
+
return next();
|
|
53
|
+
};
|
|
54
|
+
})(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
55
|
+
var e = new Error(message);
|
|
56
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
57
|
+
});
|
|
58
|
+
import path from 'node:path';
|
|
59
|
+
import { URLPattern } from './third_party/cli.js';
|
|
60
|
+
import { fetchWithValidatedRedirects, getRedirectHeaders, validateNetworkUrl, } from './utils/network.js';
|
|
61
|
+
import { Mutex, } from './third_party/index.js';
|
|
62
|
+
import { logger, redactUrlForLogging } from './utils/logger.js';
|
|
63
|
+
const DEFAULT_URL_PATTERN = '*://*:*/*';
|
|
64
|
+
const CONTENT_TYPES = {
|
|
65
|
+
'.css': 'text/css; charset=utf-8',
|
|
66
|
+
'.gif': 'image/gif',
|
|
67
|
+
'.htm': 'text/html; charset=utf-8',
|
|
68
|
+
'.html': 'text/html; charset=utf-8',
|
|
69
|
+
'.ico': 'image/x-icon',
|
|
70
|
+
'.jpeg': 'image/jpeg',
|
|
71
|
+
'.jpg': 'image/jpeg',
|
|
72
|
+
'.js': 'application/javascript; charset=utf-8',
|
|
73
|
+
'.json': 'application/json; charset=utf-8',
|
|
74
|
+
'.mjs': 'application/javascript; charset=utf-8',
|
|
75
|
+
'.png': 'image/png',
|
|
76
|
+
'.svg': 'image/svg+xml',
|
|
77
|
+
'.txt': 'text/plain; charset=utf-8',
|
|
78
|
+
'.wasm': 'application/wasm',
|
|
79
|
+
'.webp': 'image/webp',
|
|
80
|
+
'.xml': 'application/xml; charset=utf-8',
|
|
81
|
+
};
|
|
82
|
+
function inferContentType(filePath) {
|
|
83
|
+
return (CONTENT_TYPES[path.extname(filePath).toLowerCase()] ??
|
|
84
|
+
'application/octet-stream');
|
|
85
|
+
}
|
|
86
|
+
function toNetworkOverride(override) {
|
|
87
|
+
const base = {
|
|
88
|
+
id: override.id,
|
|
89
|
+
urlPattern: override.urlPattern,
|
|
90
|
+
resourceType: override.resourceType,
|
|
91
|
+
diagnostics: { ...override.diagnostics },
|
|
92
|
+
};
|
|
93
|
+
if (override.kind === 'upstream') {
|
|
94
|
+
return {
|
|
95
|
+
...base,
|
|
96
|
+
kind: override.kind,
|
|
97
|
+
upstreamUrl: override.upstreamUrl,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
...base,
|
|
102
|
+
kind: override.kind,
|
|
103
|
+
responseFilePath: override.responseFilePath,
|
|
104
|
+
contentType: override.contentType,
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function matchesFilter(override, filter) {
|
|
108
|
+
return ((filter.urlPattern === undefined ||
|
|
109
|
+
override.urlPattern === filter.urlPattern) &&
|
|
110
|
+
(filter.resourceType === undefined ||
|
|
111
|
+
override.resourceType === filter.resourceType));
|
|
112
|
+
}
|
|
113
|
+
export class NetworkOverrideManager {
|
|
114
|
+
config;
|
|
115
|
+
#page;
|
|
116
|
+
#overrides = new Map();
|
|
117
|
+
#nextId = 1;
|
|
118
|
+
#active = false;
|
|
119
|
+
#cacheDisabled = false;
|
|
120
|
+
#disposed = false;
|
|
121
|
+
#lifecycleMutex = new Mutex();
|
|
122
|
+
#requestHandler = (request) => {
|
|
123
|
+
return this.#handleRequest(request);
|
|
124
|
+
};
|
|
125
|
+
constructor(page, config) {
|
|
126
|
+
this.config = config;
|
|
127
|
+
this.#page = page;
|
|
128
|
+
}
|
|
129
|
+
async mock(input) {
|
|
130
|
+
return await this.#runLifecycleOperation(() => this.#mock(input));
|
|
131
|
+
}
|
|
132
|
+
async #mock(input) {
|
|
133
|
+
if (this.#disposed) {
|
|
134
|
+
throw new Error('Cannot update mocks after the page was disposed.');
|
|
135
|
+
}
|
|
136
|
+
const urlPattern = input.urlPattern ?? DEFAULT_URL_PATTERN;
|
|
137
|
+
const existing = [...this.#overrides.values()].find(override => override.urlPattern === urlPattern &&
|
|
138
|
+
override.resourceType === input.resourceType);
|
|
139
|
+
const override = await this.#createOverride(input, existing);
|
|
140
|
+
const previous = this.#overrides;
|
|
141
|
+
const overrides = new Map(previous);
|
|
142
|
+
overrides.delete(override.id);
|
|
143
|
+
overrides.set(override.id, override);
|
|
144
|
+
this.#overrides = overrides;
|
|
145
|
+
try {
|
|
146
|
+
await this.#activate();
|
|
147
|
+
}
|
|
148
|
+
catch (error) {
|
|
149
|
+
this.#overrides = previous;
|
|
150
|
+
throw error;
|
|
151
|
+
}
|
|
152
|
+
if (!existing) {
|
|
153
|
+
this.#nextId++;
|
|
154
|
+
}
|
|
155
|
+
return toNetworkOverride(override);
|
|
156
|
+
}
|
|
157
|
+
async #createOverride(input, existing) {
|
|
158
|
+
const urlPattern = input.urlPattern ?? DEFAULT_URL_PATTERN;
|
|
159
|
+
const base = {
|
|
160
|
+
id: existing?.id ?? this.#nextId,
|
|
161
|
+
urlPattern,
|
|
162
|
+
resourceType: input.resourceType,
|
|
163
|
+
matcher: new URLPattern(urlPattern),
|
|
164
|
+
diagnostics: { hits: 0, errors: 0, navigations: 0 },
|
|
165
|
+
};
|
|
166
|
+
if (input.kind === 'upstream') {
|
|
167
|
+
validateNetworkUrl(new URL(input.upstreamUrl), this.config.resolved);
|
|
168
|
+
return {
|
|
169
|
+
...base,
|
|
170
|
+
kind: input.kind,
|
|
171
|
+
upstreamUrl: input.upstreamUrl,
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
await input.loadResponseFile();
|
|
175
|
+
return {
|
|
176
|
+
...base,
|
|
177
|
+
kind: input.kind,
|
|
178
|
+
responseFilePath: input.responseFilePath,
|
|
179
|
+
contentType: input.contentType ?? inferContentType(input.responseFilePath),
|
|
180
|
+
loadResponseFile: input.loadResponseFile,
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
list(filter = {}) {
|
|
184
|
+
const overrides = [];
|
|
185
|
+
for (const override of this.#overrides.values()) {
|
|
186
|
+
if (matchesFilter(override, filter)) {
|
|
187
|
+
overrides.push(toNetworkOverride(override));
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
return overrides;
|
|
191
|
+
}
|
|
192
|
+
async remove(filter) {
|
|
193
|
+
return await this.#runLifecycleOperation(async () => {
|
|
194
|
+
if (this.#disposed) {
|
|
195
|
+
throw new Error('Cannot remove mocks after the page was disposed.');
|
|
196
|
+
}
|
|
197
|
+
const overrides = new Map(this.#overrides);
|
|
198
|
+
for (const [id, override] of overrides) {
|
|
199
|
+
if (matchesFilter(override, filter)) {
|
|
200
|
+
overrides.delete(id);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
const removed = this.#overrides.size - overrides.size;
|
|
204
|
+
if (removed === 0) {
|
|
205
|
+
return 0;
|
|
206
|
+
}
|
|
207
|
+
if (overrides.size === 0) {
|
|
208
|
+
try {
|
|
209
|
+
await this.#deactivate();
|
|
210
|
+
}
|
|
211
|
+
catch (error) {
|
|
212
|
+
try {
|
|
213
|
+
await this.#activate();
|
|
214
|
+
}
|
|
215
|
+
catch (restoreError) {
|
|
216
|
+
logger?.('Failed to restore network mocks after removal failed', restoreError);
|
|
217
|
+
}
|
|
218
|
+
throw error;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
this.#overrides = overrides;
|
|
222
|
+
return removed;
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
async dispose() {
|
|
226
|
+
await this.#runLifecycleOperation(async () => {
|
|
227
|
+
if (this.#disposed) {
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
this.#disposed = true;
|
|
231
|
+
this.#overrides.clear();
|
|
232
|
+
try {
|
|
233
|
+
await this.#deactivate();
|
|
234
|
+
}
|
|
235
|
+
catch (error) {
|
|
236
|
+
logger?.('Failed to dispose network mocks', error);
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
async #runLifecycleOperation(operation) {
|
|
241
|
+
const env_1 = { stack: [], error: void 0, hasError: false };
|
|
242
|
+
try {
|
|
243
|
+
const guard = __addDisposableResource(env_1, await this.#lifecycleMutex.acquire(), false);
|
|
244
|
+
return await operation();
|
|
245
|
+
}
|
|
246
|
+
catch (e_1) {
|
|
247
|
+
env_1.error = e_1;
|
|
248
|
+
env_1.hasError = true;
|
|
249
|
+
}
|
|
250
|
+
finally {
|
|
251
|
+
__disposeResources(env_1);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
async #activate() {
|
|
255
|
+
if (this.#active) {
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
if (this.#page.isClosed()) {
|
|
259
|
+
throw new Error('Cannot add a network mock to a closed page.');
|
|
260
|
+
}
|
|
261
|
+
this.#page.on('request', this.#requestHandler);
|
|
262
|
+
try {
|
|
263
|
+
this.#cacheDisabled = true;
|
|
264
|
+
await this.#page.setCacheEnabled(false);
|
|
265
|
+
this.#active = true;
|
|
266
|
+
await this.#page.setRequestInterception(true);
|
|
267
|
+
}
|
|
268
|
+
catch (error) {
|
|
269
|
+
try {
|
|
270
|
+
await this.#deactivate();
|
|
271
|
+
}
|
|
272
|
+
catch (cleanupError) {
|
|
273
|
+
logger?.('Failed to clean up network mock activation', cleanupError);
|
|
274
|
+
}
|
|
275
|
+
throw error;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
async #deactivate() {
|
|
279
|
+
if (this.#page.isClosed()) {
|
|
280
|
+
this.#active = false;
|
|
281
|
+
this.#cacheDisabled = false;
|
|
282
|
+
this.#removeListeners();
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
285
|
+
if (this.#active) {
|
|
286
|
+
await this.#page.setRequestInterception(false);
|
|
287
|
+
this.#active = false;
|
|
288
|
+
}
|
|
289
|
+
this.#removeListeners();
|
|
290
|
+
if (this.#cacheDisabled) {
|
|
291
|
+
await this.#page.setCacheEnabled(true);
|
|
292
|
+
this.#cacheDisabled = false;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
#findOverride(request) {
|
|
296
|
+
const overrides = [...this.#overrides.values()];
|
|
297
|
+
for (let index = overrides.length - 1; index >= 0; index--) {
|
|
298
|
+
const override = overrides[index];
|
|
299
|
+
if (!override) {
|
|
300
|
+
continue;
|
|
301
|
+
}
|
|
302
|
+
if (!override.matcher.test(request.url())) {
|
|
303
|
+
continue;
|
|
304
|
+
}
|
|
305
|
+
if (override.resourceType &&
|
|
306
|
+
override.resourceType !== request.resourceType()) {
|
|
307
|
+
continue;
|
|
308
|
+
}
|
|
309
|
+
return override;
|
|
310
|
+
}
|
|
311
|
+
return undefined;
|
|
312
|
+
}
|
|
313
|
+
#removeListeners() {
|
|
314
|
+
this.#page.off('request', this.#requestHandler);
|
|
315
|
+
}
|
|
316
|
+
async #handleRequest(request) {
|
|
317
|
+
if (request.resourceType() === 'document' &&
|
|
318
|
+
request.frame() === this.#page.mainFrame()) {
|
|
319
|
+
for (const override of this.#overrides.values()) {
|
|
320
|
+
override.diagnostics.navigations++;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
if (request.isInterceptResolutionHandled()) {
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
326
|
+
const override = this.#findOverride(request);
|
|
327
|
+
if (!override) {
|
|
328
|
+
await this.#continueRequest(request);
|
|
329
|
+
return;
|
|
330
|
+
}
|
|
331
|
+
override.diagnostics.hits++;
|
|
332
|
+
try {
|
|
333
|
+
if (override.kind === 'upstream') {
|
|
334
|
+
await this.#fulfillUpstream(request, override.upstreamUrl);
|
|
335
|
+
return;
|
|
336
|
+
}
|
|
337
|
+
const body = await override.loadResponseFile();
|
|
338
|
+
await request.respond({
|
|
339
|
+
status: 200,
|
|
340
|
+
contentType: override.contentType,
|
|
341
|
+
headers: {
|
|
342
|
+
'Cache-Control': 'no-store',
|
|
343
|
+
},
|
|
344
|
+
body,
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
catch (error) {
|
|
348
|
+
const message = typeof error === 'object' &&
|
|
349
|
+
error !== null &&
|
|
350
|
+
'message' in error &&
|
|
351
|
+
typeof error.message === 'string'
|
|
352
|
+
? error.message
|
|
353
|
+
: String(error);
|
|
354
|
+
const source = override.kind === 'file'
|
|
355
|
+
? override.responseFilePath
|
|
356
|
+
: redactUrlForLogging(override.upstreamUrl);
|
|
357
|
+
const detail = override.kind === 'file'
|
|
358
|
+
? message
|
|
359
|
+
: message.replace(/https?:\/\/[^\s"'<>]+/gi, url => redactUrlForLogging(url));
|
|
360
|
+
override.diagnostics.errors++;
|
|
361
|
+
override.diagnostics.lastError =
|
|
362
|
+
'Failed to load ' + source + ': ' + detail;
|
|
363
|
+
logger?.('Failed to apply network mock ' + override.id);
|
|
364
|
+
await this.#abortRequest(request);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
async #fulfillUpstream(request, upstreamUrl) {
|
|
368
|
+
const method = request.method();
|
|
369
|
+
if (method !== 'GET' && method !== 'HEAD') {
|
|
370
|
+
throw new Error('Upstream mocks only support GET and HEAD requests.');
|
|
371
|
+
}
|
|
372
|
+
const headers = getRedirectHeaders(new URL(request.url()), new URL(upstreamUrl), request.headers());
|
|
373
|
+
const response = await fetchWithValidatedRedirects(new URL(upstreamUrl), {
|
|
374
|
+
policy: this.config.resolved,
|
|
375
|
+
method,
|
|
376
|
+
headers,
|
|
377
|
+
});
|
|
378
|
+
const responseHeaders = {};
|
|
379
|
+
for (const [name, value] of response.headers) {
|
|
380
|
+
if (name !== 'content-encoding' &&
|
|
381
|
+
name !== 'content-length' &&
|
|
382
|
+
name !== 'set-cookie') {
|
|
383
|
+
responseHeaders[name] = value;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
const cookies = response.headers.getSetCookie();
|
|
387
|
+
if (cookies.length > 0) {
|
|
388
|
+
responseHeaders['set-cookie'] = cookies;
|
|
389
|
+
}
|
|
390
|
+
await request.respond({
|
|
391
|
+
status: response.status,
|
|
392
|
+
headers: responseHeaders,
|
|
393
|
+
body: new Uint8Array(await response.arrayBuffer()),
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
async #continueRequest(request) {
|
|
397
|
+
if (request.isInterceptResolutionHandled()) {
|
|
398
|
+
return;
|
|
399
|
+
}
|
|
400
|
+
try {
|
|
401
|
+
await request.continue();
|
|
402
|
+
}
|
|
403
|
+
catch (error) {
|
|
404
|
+
logger?.('Failed to continue an intercepted network request', error);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
async #abortRequest(request) {
|
|
408
|
+
if (request.isInterceptResolutionHandled()) {
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
411
|
+
try {
|
|
412
|
+
await request.abort('failed');
|
|
413
|
+
}
|
|
414
|
+
catch (error) {
|
|
415
|
+
logger?.('Failed to abort a request after a network mock error', error);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
//# sourceMappingURL=NetworkOverrideManager.js.map
|