@chenpx976/chrome-devtools-mcp 0.0.0-stage → 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.
Files changed (398) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +223 -2
  3. package/out/Default/gen/src/ArcBrowser.js +128 -0
  4. package/out/Default/gen/src/BrowserManager.js +562 -0
  5. package/out/Default/gen/src/LogpointManager.js +287 -0
  6. package/out/Default/gen/src/McpContext.js +1031 -0
  7. package/out/Default/gen/src/McpPage.js +1427 -0
  8. package/out/Default/gen/src/McpResponse.js +1350 -0
  9. package/out/Default/gen/src/McpWorker.js +66 -0
  10. package/out/Default/gen/src/NetworkOverrideManager.js +447 -0
  11. package/out/Default/gen/src/SlimMcpResponse.js +23 -0
  12. package/out/Default/gen/src/TextSnapshot.js +336 -0
  13. package/out/Default/gen/src/ToolHandler.js +531 -0
  14. package/out/Default/gen/src/bin/check-latest-version.js +53 -0
  15. package/out/Default/gen/src/bin/chrome-devtools-mcp-main.js +80 -0
  16. package/out/Default/gen/src/bin/chrome-devtools-mcp.js +23 -0
  17. package/out/Default/gen/src/bin/chrome-devtools.js +213 -0
  18. package/out/Default/gen/src/collectors/PageCollector.js +325 -0
  19. package/out/Default/gen/src/collectors/ServiceWorkerCollector.js +198 -0
  20. package/out/Default/gen/src/collectors/constants.js +7 -0
  21. package/out/Default/gen/src/config/ConfigLocator.js +70 -0
  22. package/out/Default/gen/src/config/ConfigParser.js +163 -0
  23. package/out/Default/gen/src/config/ConfigWatcher.js +94 -0
  24. package/out/Default/gen/src/config/ServerConfig.js +284 -0
  25. package/out/Default/gen/src/config/browser-options.js +135 -0
  26. package/out/Default/gen/src/config/category-options.js +84 -0
  27. package/out/Default/gen/src/config/cli-commands.js +208 -0
  28. package/out/Default/gen/src/config/cli-options.js +2090 -0
  29. package/out/Default/gen/src/config/mcp-options.js +371 -0
  30. package/out/Default/gen/src/config/puppeteer-options.js +69 -0
  31. package/out/Default/gen/src/config/tool-options.js +60 -0
  32. package/out/Default/gen/src/daemon/client.js +281 -0
  33. package/out/Default/gen/src/daemon/daemon.js +280 -0
  34. package/out/Default/gen/src/daemon/types.js +7 -0
  35. package/out/Default/gen/src/daemon/utils.js +173 -0
  36. package/out/Default/gen/src/devtools/DevToolsCommentBridge.js +151 -0
  37. package/out/Default/gen/src/devtools/DevtoolsUtils.js +413 -0
  38. package/out/Default/gen/src/devtools/McpHostBindingAdapter.js +164 -0
  39. package/out/Default/gen/src/devtools/issueDescriptions.js +42 -0
  40. package/out/Default/gen/src/formatters/CommentFormatter.js +73 -0
  41. package/out/Default/gen/src/formatters/ConsoleFormatter.js +363 -0
  42. package/out/Default/gen/src/formatters/CssFormatter.js +883 -0
  43. package/out/Default/gen/src/formatters/HeapSnapshotFormatter.js +239 -0
  44. package/out/Default/gen/src/formatters/IssueFormatter.js +194 -0
  45. package/out/Default/gen/src/formatters/LogpointFormatter.js +62 -0
  46. package/out/Default/gen/src/formatters/NetworkFormatter.js +295 -0
  47. package/out/Default/gen/src/formatters/NetworkOverridesFormatter.js +57 -0
  48. package/out/Default/gen/src/formatters/RemoteObjectFormatter.js +231 -0
  49. package/out/Default/gen/src/formatters/SnapshotFormatter.js +172 -0
  50. package/out/Default/gen/src/formatters/WebAuthnFormatter.js +56 -0
  51. package/out/Default/gen/src/formatters/constants.js +8 -0
  52. package/out/Default/gen/src/index.js +434 -0
  53. package/out/Default/gen/src/processors/ChunkedTraceParser.js +361 -0
  54. package/out/Default/gen/src/processors/HeapSnapshotManager.js +595 -0
  55. package/out/Default/gen/src/processors/PerformanceTrace.js +132 -0
  56. package/out/Default/gen/src/telemetry/ClearcutLogger.js +271 -0
  57. package/out/Default/gen/src/telemetry/WatchdogClient.js +60 -0
  58. package/out/Default/gen/src/telemetry/errors.js +18 -0
  59. package/out/Default/gen/src/telemetry/flagUtils.js +89 -0
  60. package/out/Default/gen/src/telemetry/metricsRegistry.js +85 -0
  61. package/out/Default/gen/src/telemetry/persistence.js +82 -0
  62. package/out/Default/gen/src/telemetry/transformation.js +229 -0
  63. package/out/Default/gen/src/telemetry/types.js +36 -0
  64. package/out/Default/gen/src/telemetry/watchdog/ClearcutSender.js +213 -0
  65. package/out/Default/gen/src/telemetry/watchdog/main.js +142 -0
  66. package/out/Default/gen/src/third_party/THIRD_PARTY_NOTICES +3774 -0
  67. package/out/Default/gen/src/third_party/browser.js +808 -0
  68. package/out/Default/gen/src/third_party/bundled-packages.json +11 -0
  69. package/out/Default/gen/src/third_party/cli.js +139 -0
  70. package/out/Default/gen/src/third_party/devtools-formatter-worker.js +125 -0
  71. package/out/Default/gen/src/third_party/devtools-heap-snapshot-worker.js +111 -0
  72. package/out/Default/gen/src/third_party/index.js +128 -0
  73. package/out/Default/gen/src/third_party/issue-descriptions/CoepCoopSandboxedIframeCannotNavigateToCoopPage.md +4 -0
  74. package/out/Default/gen/src/third_party/issue-descriptions/CoepCorpNotSameOrigin.md +8 -0
  75. package/out/Default/gen/src/third_party/issue-descriptions/CoepCorpNotSameOriginAfterDefaultedToSameOriginByCoep.md +18 -0
  76. package/out/Default/gen/src/third_party/issue-descriptions/CoepCorpNotSameSite.md +7 -0
  77. package/out/Default/gen/src/third_party/issue-descriptions/CoepFrameResourceNeedsCoepHeader.md +10 -0
  78. package/out/Default/gen/src/third_party/issue-descriptions/CompatibilityModeQuirks.md +5 -0
  79. package/out/Default/gen/src/third_party/issue-descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
  80. package/out/Default/gen/src/third_party/issue-descriptions/LowTextContrast.md +5 -0
  81. package/out/Default/gen/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorRead.md +8 -0
  82. package/out/Default/gen/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorSet.md +8 -0
  83. package/out/Default/gen/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnRead.md +8 -0
  84. package/out/Default/gen/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnSet.md +8 -0
  85. package/out/Default/gen/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeRead.md +9 -0
  86. package/out/Default/gen/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeSet.md +9 -0
  87. package/out/Default/gen/src/third_party/issue-descriptions/bounceTrackingMitigations.md +3 -0
  88. package/out/Default/gen/src/third_party/issue-descriptions/clientHintMetaTagAllowListInvalidOrigin.md +4 -0
  89. package/out/Default/gen/src/third_party/issue-descriptions/clientHintMetaTagModifiedHTML.md +4 -0
  90. package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistEmbeddingRequirementNotSatisfied.md +26 -0
  91. package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistIFrameAttributeLoosensEmbeddingRequirement.md +19 -0
  92. package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistInvalidAllowConnectionAllowlistFrom.md +21 -0
  93. package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistInvalidAllowlistItemType.md +12 -0
  94. package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistInvalidHeader.md +12 -0
  95. package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistInvalidUrlPattern.md +8 -0
  96. package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistItemNotInnerList.md +12 -0
  97. package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistMoreThanOneList.md +7 -0
  98. package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistReportingEndpointNotToken.md +10 -0
  99. package/out/Default/gen/src/third_party/issue-descriptions/cookieCrossSiteRedirectDowngrade.md +12 -0
  100. package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludeDomainNonAscii.md +11 -0
  101. package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludePortMismatch.md +8 -0
  102. package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludeSchemeMismatch.md +7 -0
  103. package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutRead.md +6 -0
  104. package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutSet.md +6 -0
  105. package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnDomainNonAscii.md +11 -0
  106. package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnMetadataGrantRead.md +3 -0
  107. package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnMetadataGrantReadOptOut.md +5 -0
  108. package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnMetadataGrantSet.md +3 -0
  109. package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnMetadataGrantSetOptOut.md +5 -0
  110. package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutRead.md +6 -0
  111. package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutSet.md +6 -0
  112. package/out/Default/gen/src/third_party/issue-descriptions/corsAllowCredentialsRequired.md +6 -0
  113. package/out/Default/gen/src/third_party/issue-descriptions/corsDisabledScheme.md +7 -0
  114. package/out/Default/gen/src/third_party/issue-descriptions/corsDisallowedByMode.md +7 -0
  115. package/out/Default/gen/src/third_party/issue-descriptions/corsHeaderDisallowedByPreflightResponse.md +5 -0
  116. package/out/Default/gen/src/third_party/issue-descriptions/corsInvalidHeaderValues.md +7 -0
  117. package/out/Default/gen/src/third_party/issue-descriptions/corsLocalNetworkAccessPermissionDenied.md +19 -0
  118. package/out/Default/gen/src/third_party/issue-descriptions/corsMethodDisallowedByPreflightResponse.md +5 -0
  119. package/out/Default/gen/src/third_party/issue-descriptions/corsNoCorsRedirectModeNotFollow.md +5 -0
  120. package/out/Default/gen/src/third_party/issue-descriptions/corsOriginMismatch.md +6 -0
  121. package/out/Default/gen/src/third_party/issue-descriptions/corsPreflightResponseInvalid.md +5 -0
  122. package/out/Default/gen/src/third_party/issue-descriptions/corsRedirectContainsCredentials.md +5 -0
  123. package/out/Default/gen/src/third_party/issue-descriptions/corsWildcardOriginNotAllowed.md +9 -0
  124. package/out/Default/gen/src/third_party/issue-descriptions/cspEvalViolation.md +9 -0
  125. package/out/Default/gen/src/third_party/issue-descriptions/cspInlineViolation.md +10 -0
  126. package/out/Default/gen/src/third_party/issue-descriptions/cspTrustedTypesPolicyViolation.md +5 -0
  127. package/out/Default/gen/src/third_party/issue-descriptions/cspTrustedTypesSinkViolation.md +8 -0
  128. package/out/Default/gen/src/third_party/issue-descriptions/cspURLViolation.md +10 -0
  129. package/out/Default/gen/src/third_party/issue-descriptions/deprecation.md +3 -0
  130. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsEmptyList.md +1 -0
  131. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsHttpNotFound.md +1 -0
  132. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsInvalidContentType.md +1 -0
  133. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsInvalidResponse.md +1 -0
  134. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsNoResponse.md +1 -0
  135. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestDnsFetchFailed.md +1 -0
  136. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestDnsInvalidRecord.md +1 -0
  137. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownHttpNotFound.md +1 -0
  138. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidContentType.md +1 -0
  139. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidResponse.md +1 -0
  140. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownNoResponse.md +1 -0
  141. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestInvalidEmail.md +1 -0
  142. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestJwksHttpNotFound.md +1 -0
  143. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestJwksInvalidResponse.md +1 -0
  144. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestKeyBindingSigningFailed.md +1 -0
  145. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestRpOriginIsOpaque.md +1 -0
  146. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenHttpNotFound.md +1 -0
  147. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidContentType.md +1 -0
  148. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidResponse.md +1 -0
  149. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidSdJwt.md +1 -0
  150. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenMalformedSdJwt.md +1 -0
  151. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenNoResponse.md +1 -0
  152. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidAudience.md +1 -0
  153. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidIssuedAt.md +1 -0
  154. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidNonce.md +1 -0
  155. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidSdHash.md +1 -0
  156. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidTyp.md +1 -0
  157. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingAud.md +1 -0
  158. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingCnf.md +1 -0
  159. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingIat.md +1 -0
  160. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingNonce.md +1 -0
  161. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingSdHash.md +1 -0
  162. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbSignatureFailed.md +1 -0
  163. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmail.md +1 -0
  164. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmailVerified.md +1 -0
  165. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidHolderKey.md +1 -0
  166. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuedAt.md +1 -0
  167. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuer.md +1 -0
  168. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtJwksMissingKeys.md +1 -0
  169. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingCnf.md +1 -0
  170. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingEmail.md +1 -0
  171. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIat.md +1 -0
  172. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIss.md +1 -0
  173. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtSignatureFailed.md +1 -0
  174. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtUnsupportedHeaderAlg.md +1 -0
  175. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestUserLoggedOut.md +1 -0
  176. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownAccountsEndpointCrossOrigin.md +1 -0
  177. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownHttpNotFound.md +1 -0
  178. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownInvalidContentType.md +1 -0
  179. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownInvalidResponse.md +1 -0
  180. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownIssuanceEndpointCrossOrigin.md +1 -0
  181. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownListEmpty.md +1 -0
  182. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownMissingAccountsEndpoint.md +1 -0
  183. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownMissingIssuanceEndpoint.md +1 -0
  184. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownNoResponse.md +1 -0
  185. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownUnsupportedSigningAlgorithm.md +1 -0
  186. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestAccountsBlockedByConnectionAllowlist.md +1 -0
  187. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestAccountsHttpNotFound.md +1 -0
  188. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestAccountsInvalidResponse.md +1 -0
  189. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestAccountsNoResponse.md +1 -0
  190. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestApprovalDeclined.md +1 -0
  191. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestCanceled.md +1 -0
  192. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestConfigBlockedByConnectionAllowlist.md +1 -0
  193. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestErrorFetchingSignin.md +1 -0
  194. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestErrorIdToken.md +1 -0
  195. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenBlockedByConnectionAllowlist.md +1 -0
  196. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenHttpNotFound.md +1 -0
  197. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidRequest.md +1 -0
  198. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidResponse.md +1 -0
  199. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenNoResponse.md +1 -0
  200. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestInvalidSigninResponse.md +1 -0
  201. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -0
  202. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -0
  203. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestManifestNoResponse.md +1 -0
  204. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestTooManyRequests.md +1 -0
  205. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestWellKnownBlockedByConnectionAllowlist.md +1 -0
  206. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidAccountsResponse.md +1 -0
  207. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidConfigOrWellKnown.md +1 -0
  208. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoAccountSharingPermission.md +1 -0
  209. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoApiPermission.md +1 -0
  210. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoReturningUserFromFetchedAccounts.md +1 -0
  211. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotIframe.md +1 -0
  212. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotPotentiallyTrustworthy.md +1 -0
  213. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSameOrigin.md +1 -0
  214. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSignedInWithIdp.md +1 -0
  215. package/out/Default/gen/src/third_party/issue-descriptions/fetchingPartitionedBlobURL.md +7 -0
  216. package/out/Default/gen/src/third_party/issue-descriptions/genericBackUINavigationWouldSkipAd.md +4 -0
  217. package/out/Default/gen/src/third_party/issue-descriptions/genericFormAriaLabelledByToNonExistingIdError.md +8 -0
  218. package/out/Default/gen/src/third_party/issue-descriptions/genericFormAutocompleteAttributeEmptyError.md +5 -0
  219. package/out/Default/gen/src/third_party/issue-descriptions/genericFormDuplicateIdForInputError.md +5 -0
  220. package/out/Default/gen/src/third_party/issue-descriptions/genericFormEmptyIdAndNameAttributesForInputError.md +5 -0
  221. package/out/Default/gen/src/third_party/issue-descriptions/genericFormInputAssignedAutocompleteValueToIdOrNameAttributeError.md +5 -0
  222. package/out/Default/gen/src/third_party/issue-descriptions/genericFormInputHasWrongButWellIntendedAutocompleteValueError.md +5 -0
  223. package/out/Default/gen/src/third_party/issue-descriptions/genericFormInputWithNoLabelError.md +5 -0
  224. package/out/Default/gen/src/third_party/issue-descriptions/genericFormLabelForMatchesNonExistingIdError.md +5 -0
  225. package/out/Default/gen/src/third_party/issue-descriptions/genericFormLabelForNameError.md +5 -0
  226. package/out/Default/gen/src/third_party/issue-descriptions/genericFormLabelHasNeitherForNorNestedInputError.md +5 -0
  227. package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextMissingToolDescription.md +5 -0
  228. package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextMissingToolName.md +5 -0
  229. package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextParameterMissingName.md +5 -0
  230. package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextParameterMissingTitleAndDescription.md +5 -0
  231. package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextRequiredParameterMissingName.md +5 -0
  232. package/out/Default/gen/src/third_party/issue-descriptions/genericGeolocationPromptWithoutUserGesture.md +5 -0
  233. package/out/Default/gen/src/third_party/issue-descriptions/genericNavigationEntryMarkedSkippable.md +7 -0
  234. package/out/Default/gen/src/third_party/issue-descriptions/genericResponseWasBlockedByORB.md +4 -0
  235. package/out/Default/gen/src/third_party/issue-descriptions/heavyAd.md +10 -0
  236. package/out/Default/gen/src/third_party/issue-descriptions/lazyLoadImageZeroSize.md +7 -0
  237. package/out/Default/gen/src/third_party/issue-descriptions/mixedContent.md +5 -0
  238. package/out/Default/gen/src/third_party/issue-descriptions/navigatingPartitionedBlobURL.md +5 -0
  239. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementActivationDisabled.md +7 -0
  240. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluder.md +9 -0
  241. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluderParent.md +9 -0
  242. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementCspFrameAncestorsMissing.md +5 -0
  243. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementFencedFrameDisallowed.md +5 -0
  244. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementFontSizeTooLarge.md +5 -0
  245. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementFontSizeTooSmall.md +5 -0
  246. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementGeolocationDeprecated.md +5 -0
  247. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInsetBoxShadowUnsupported.md +5 -0
  248. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInvalidDisplayStyle.md +5 -0
  249. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInvalidSizeValue.md +5 -0
  250. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInvalidType.md +5 -0
  251. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInvalidTypeActivation.md +5 -0
  252. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementLowContrast.md +5 -0
  253. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementNonOpaqueColor.md +5 -0
  254. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementPaddingBottomUnsupported.md +6 -0
  255. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementPaddingRightUnsupported.md +6 -0
  256. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementPermissionsPolicyBlocked.md +5 -0
  257. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementRegistrationFailed.md +5 -0
  258. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementRequestInProgress.md +5 -0
  259. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementSecurityChecksFailed.md +5 -0
  260. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementTypeNotSupported.md +5 -0
  261. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementUntrustedEvent.md +7 -0
  262. package/out/Default/gen/src/third_party/issue-descriptions/placeholderDescriptionForInvisibleIssues.md +3 -0
  263. package/out/Default/gen/src/third_party/issue-descriptions/propertyRuleInvalidNameIssue.md +3 -0
  264. package/out/Default/gen/src/third_party/issue-descriptions/propertyRuleIssue.md +7 -0
  265. package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedOptGroupChild.md +7 -0
  266. package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedSelectChild.md +7 -0
  267. package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentAttributesSelectDescendant.md +3 -0
  268. package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentLegendChild.md +3 -0
  269. package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentOptionChild.md +3 -0
  270. package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityNonPhrasingContentOptionChild.md +3 -0
  271. package/out/Default/gen/src/third_party/issue-descriptions/selectivePermissionsIntervention.md +7 -0
  272. package/out/Default/gen/src/third_party/issue-descriptions/sharedArrayBuffer.md +7 -0
  273. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryUseErrorCrossOriginNoCorsRequest.md +1 -0
  274. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryUseErrorDictionaryLoadFailure.md +3 -0
  275. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryUseErrorMatchingDictionaryNotUsed.md +3 -0
  276. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryUseErrorUnexpectedContentDictionaryHeader.md +1 -0
  277. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorCossOriginNoCorsRequest.md +1 -0
  278. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorDisallowedBySettings.md +1 -0
  279. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorExpiredResponse.md +3 -0
  280. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorFeatureDisabled.md +3 -0
  281. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInsufficientResources.md +1 -0
  282. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidMatchField.md +1 -0
  283. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidStructuredHeader.md +1 -0
  284. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidTTLField.md +1 -0
  285. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNavigationRequest.md +3 -0
  286. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNoMatchField.md +1 -0
  287. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonIntegerTTLField.md +1 -0
  288. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonListMatchDestField.md +1 -0
  289. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonSecureContext.md +3 -0
  290. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringIdField.md +1 -0
  291. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringInMatchDestList.md +1 -0
  292. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringMatchField.md +1 -0
  293. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonTokenTypeField.md +1 -0
  294. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorRequestAborted.md +1 -0
  295. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorShuttingDown.md +1 -0
  296. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorTooLongIdField.md +3 -0
  297. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorUnsupportedType.md +3 -0
  298. package/out/Default/gen/src/third_party/issue-descriptions/sriInvalidSignatureHeader.md +14 -0
  299. package/out/Default/gen/src/third_party/issue-descriptions/sriInvalidSignatureInputHeader.md +15 -0
  300. package/out/Default/gen/src/third_party/issue-descriptions/sriMissingSignatureHeader.md +8 -0
  301. package/out/Default/gen/src/third_party/issue-descriptions/sriMissingSignatureInputHeader.md +7 -0
  302. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureHeaderValueIsIncorrectLength.md +11 -0
  303. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureHeaderValueIsNotByteSequence.md +14 -0
  304. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureHeaderValueIsParameterized.md +15 -0
  305. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentName.md +8 -0
  306. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentType.md +13 -0
  307. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidDerivedComponentParameter.md +4 -0
  308. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidHeaderComponentParameter.md +5 -0
  309. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidParameter.md +11 -0
  310. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderKeyIdLength.md +12 -0
  311. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingLabel.md +6 -0
  312. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingRequiredParameters.md +8 -0
  313. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderValueMissingComponents.md +11 -0
  314. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderValueNotInnerList.md +11 -0
  315. package/out/Default/gen/src/third_party/issue-descriptions/sriValidationFailedIntegrityMismatch.md +12 -0
  316. package/out/Default/gen/src/third_party/issue-descriptions/sriValidationFailedInvalidLength.md +5 -0
  317. package/out/Default/gen/src/third_party/issue-descriptions/sriValidationFailedSignatureExpired.md +6 -0
  318. package/out/Default/gen/src/third_party/issue-descriptions/sriValidationFailedSignatureMismatch.md +11 -0
  319. package/out/Default/gen/src/third_party/issue-descriptions/stylesheetLateImport.md +4 -0
  320. package/out/Default/gen/src/third_party/issue-descriptions/stylesheetRequestFailed.md +3 -0
  321. package/out/Default/gen/src/third_party/issue-descriptions/summaryElementAccessibilityInteractiveContentSummaryDescendant.md +3 -0
  322. package/out/Default/gen/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestLength.md +12 -0
  323. package/out/Default/gen/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestType.md +17 -0
  324. package/out/Default/gen/src/third_party/issue-descriptions/unencodedDigestMalformedDictionary.md +14 -0
  325. package/out/Default/gen/src/third_party/issue-descriptions/unencodedDigestUnknownAlgorithm.md +15 -0
  326. package/out/Default/gen/src/third_party/issue-descriptions/webInstallManifestMissingId.md +3 -0
  327. package/out/Default/gen/src/third_party/issue-descriptions/webInstallManifestMissingNameOrShortName.md +3 -0
  328. package/out/Default/gen/src/third_party/issue-descriptions/webInstallManifestParsingOrNetworkError.md +3 -0
  329. package/out/Default/gen/src/third_party/issue-descriptions/webInstallNoManifest.md +3 -0
  330. package/out/Default/gen/src/third_party/issue-descriptions/webInstallStartUrlInvalid.md +3 -0
  331. package/out/Default/gen/src/third_party/lighthouse-devtools-mcp-bundle.js +60395 -0
  332. package/out/Default/gen/src/tools/ToolDefinition.js +180 -0
  333. package/out/Default/gen/src/tools/categories.js +37 -0
  334. package/out/Default/gen/src/tools/comments.js +230 -0
  335. package/out/Default/gen/src/tools/console.js +122 -0
  336. package/out/Default/gen/src/tools/css.js +54 -0
  337. package/out/Default/gen/src/tools/emulation.js +98 -0
  338. package/out/Default/gen/src/tools/extensions.js +108 -0
  339. package/out/Default/gen/src/tools/input.js +658 -0
  340. package/out/Default/gen/src/tools/lighthouse.js +279 -0
  341. package/out/Default/gen/src/tools/logpoints.js +51 -0
  342. package/out/Default/gen/src/tools/memory.js +531 -0
  343. package/out/Default/gen/src/tools/network.js +325 -0
  344. package/out/Default/gen/src/tools/pages.js +420 -0
  345. package/out/Default/gen/src/tools/performance.js +258 -0
  346. package/out/Default/gen/src/tools/pwa.js +152 -0
  347. package/out/Default/gen/src/tools/screencast.js +160 -0
  348. package/out/Default/gen/src/tools/screenshot.js +315 -0
  349. package/out/Default/gen/src/tools/script.js +319 -0
  350. package/out/Default/gen/src/tools/slim/tools.js +110 -0
  351. package/out/Default/gen/src/tools/snapshot.js +88 -0
  352. package/out/Default/gen/src/tools/thirdPartyDeveloper.js +73 -0
  353. package/out/Default/gen/src/tools/toolNames.js +10 -0
  354. package/out/Default/gen/src/tools/tools.js +72 -0
  355. package/out/Default/gen/src/tools/webauthn.js +51 -0
  356. package/out/Default/gen/src/tools/webmcp.js +55 -0
  357. package/out/Default/gen/src/types.js +21 -0
  358. package/out/Default/gen/src/utils/TaskRunner.js +151 -0
  359. package/out/Default/gen/src/utils/WaitForHelper.js +343 -0
  360. package/out/Default/gen/src/utils/bytes.js +95 -0
  361. package/out/Default/gen/src/utils/check-for-updates.js +81 -0
  362. package/out/Default/gen/src/utils/disclaimers.js +27 -0
  363. package/out/Default/gen/src/utils/errorHandling.js +23 -0
  364. package/out/Default/gen/src/utils/files.js +81 -0
  365. package/out/Default/gen/src/utils/id.js +16 -0
  366. package/out/Default/gen/src/utils/keyboard.js +307 -0
  367. package/out/Default/gen/src/utils/logger.js +145 -0
  368. package/out/Default/gen/src/utils/logpoint.js +44 -0
  369. package/out/Default/gen/src/utils/network.js +81 -0
  370. package/out/Default/gen/src/utils/pagination.js +50 -0
  371. package/out/Default/gen/src/utils/polyfill.js +11 -0
  372. package/out/Default/gen/src/utils/raceWithSignal.js +26 -0
  373. package/out/Default/gen/src/utils/resourceType.js +27 -0
  374. package/out/Default/gen/src/utils/text.js +43 -0
  375. package/out/Default/gen/src/utils/timeout.js +14 -0
  376. package/out/Default/gen/src/utils/url.js +311 -0
  377. package/out/Default/gen/src/version.js +11 -0
  378. package/package.json +125 -4
  379. package/skills/a11y-debugging/SKILL.md +86 -0
  380. package/skills/a11y-debugging/references/a11y-snippets.md +92 -0
  381. package/skills/arc-compatibility/SKILL.md +168 -0
  382. package/skills/arc-compatibility/SOURCES.md +216 -0
  383. package/skills/arc-compatibility/references/compatibility.md +113 -0
  384. package/skills/arc-compatibility/references/output-contract.md +62 -0
  385. package/skills/arc-compatibility/references/workflows.md +105 -0
  386. package/skills/chrome-devtools/SKILL.md +80 -0
  387. package/skills/chrome-devtools-cli/SKILL.md +208 -0
  388. package/skills/chrome-devtools-cli/references/installation.md +24 -0
  389. package/skills/cookie-debugging/SKILL.md +152 -0
  390. package/skills/debug-optimize-lcp/SKILL.md +121 -0
  391. package/skills/debug-optimize-lcp/references/elements-and-size.md +27 -0
  392. package/skills/debug-optimize-lcp/references/lcp-breakdown.md +23 -0
  393. package/skills/debug-optimize-lcp/references/lcp-snippets.md +79 -0
  394. package/skills/debug-optimize-lcp/references/optimization-strategies.md +38 -0
  395. package/skills/inspect-in-devtools/SKILL.md +82 -0
  396. package/skills/memory-leak-debugging/SKILL.md +58 -0
  397. package/skills/memory-leak-debugging/references/common-leaks.md +33 -0
  398. package/skills/troubleshooting/SKILL.md +107 -0
@@ -0,0 +1,168 @@
1
+ ---
2
+ name: arc-compatibility
3
+ description: >-
4
+ Maintains the macOS Arc fork @chenpx976/chrome-devtools-mcp.
5
+ Use when asked to adapt Chrome DevTools MCP to Arc, reapply the Arc patch
6
+ after an upstream update, preserve scoped npm releases, or configure and
7
+ verify a local build or installed Arc package. Preserves upstream tools,
8
+ native new-tab behavior, package identity, and rollback.
9
+ Does not apply to ordinary page debugging or unmodified Chrome setup.
10
+ compatibility: >-
11
+ Source maintenance requires the Arc fork's checkout. Installed-package
12
+ verification requires a published scoped release. Native verification
13
+ requires macOS, Arc with local remote debugging, and Automation permission.
14
+ ---
15
+
16
+ # Arc compatibility maintenance
17
+
18
+ Port the browser adaptation onto the requested upstream revision while
19
+ preserving this fork's scoped identity. Build locally or install a verified
20
+ scoped release, connect the client to that artifact, and verify native behavior.
21
+ Treat this as a workflow-process skill. Read repository instructions before
22
+ changing code; interpret source paths below relative to the repository root.
23
+
24
+ Load bundled references as needed:
25
+
26
+ - Read [compatibility contract](references/compatibility.md) before porting.
27
+ - Read [example workflows](references/workflows.md) for failure recovery,
28
+ guarded setup, and rejected approaches.
29
+ - Use [the output contract](references/output-contract.md) for every handoff.
30
+ - Consult [source provenance](SOURCES.md) when revisiting a design decision.
31
+
32
+ ## 1. Establish the baseline
33
+
34
+ 1. Record the fork revision (`chenpx976/chrome-devtools-mcp`, `arc-support`),
35
+ official upstream URL and target revision, scoped package name/version,
36
+ Node requirement, publication status, and existing local changes.
37
+ Resolve a request for "latest" against official upstream tags/releases or
38
+ its current branch; record the exact resulting commit. Do not infer
39
+ currency from the npm version alone.
40
+ 2. Preserve the known-good patched checkout and current client server config.
41
+ Work on a separate branch or checkout when local work would otherwise be
42
+ overwritten. Do not reset, clean, or discard unrelated changes.
43
+ 3. Inspect current `package.json`, `AGENTS.md`, build registrations, CLI/config
44
+ definitions, browser connection ownership, and page lifecycle. Start from
45
+ `src/BrowserManager.ts` and `src/McpContext.ts`; locate their replacements
46
+ if upstream moved them. Read current callers before changing interfaces.
47
+ 4. Record Arc's app version and Chromium/CDP version separately. Inspect the
48
+ installed app bundle's `Contents/Resources/Arc.sdef`. Do not assume that a
49
+ newer upstream Puppeteer supports every protocol command in installed Arc.
50
+ 5. Identify the MCP client config and the actual spawned server entry point.
51
+ Preserve an existing local configuration when it already meets the contract.
52
+ 6. Inspect npm identity and publication evidence when preparing a release.
53
+ Until registry and installed-artifact verification succeeds, report the
54
+ package as not yet published/verified and use a local build. GitHub repo
55
+ ownership does not prove ownership of the npm scope. Follow the checkout's
56
+ `docs/arc.md` publishing instructions; do not publish without authorization.
57
+
58
+ ## 2. Port only the Arc delta
59
+
60
+ 1. Compare the previous patch with the new upstream implementation. Retain
61
+ current upstream tools, schemas, page IDs, collectors, task queues,
62
+ reconnection handling, lazy browser loading, and generated interfaces.
63
+ Do not replace whole files with the old fork's implementations.
64
+ 2. Add or preserve opt-in `arc`, default `false`, across CLI/config plumbing
65
+ and early validation. Reuse existing `browserUrl`/`wsEndpoint` connection
66
+ handling. Apply the exact constraints in the compatibility contract.
67
+ 3. Keep native tab creation in `src/ArcBrowser.ts` (or the current equivalent)
68
+ and call it from `McpContext.newPage`. Preserve common page initialization
69
+ and return types. Create a new native tab with a unique marker, then attach
70
+ to its matching CDP target; never select a pre-existing tab as a substitute.
71
+ 4. Preserve foreground/background behavior and reject `isolatedContext`
72
+ before creating anything. Keep all native errors explicit. Never introduce
73
+ a `browser.newPage()` or `Target.createTarget` fallback in Arc mode.
74
+ 5. Update the affected source/tests build registrations, config tests, native
75
+ adapter tests, opt-in smoke script, and user documentation. Follow current
76
+ repository patterns; do not edit vendored dependencies to mask an Arc gap.
77
+ 6. Preserve `@chenpx976/chrome-devtools-mcp` in package/lockfile metadata,
78
+ install commands, plugin launches, update checks, and release configuration.
79
+ Keep the fork repository and publisher identity, unscoped plugin names,
80
+ and executable names `chrome-devtools-mcp` and `chrome-devtools`. Preserve
81
+ upstream author attribution and real upstream source links. Publish only
82
+ the scoped main package, never the separate upstream CLI alias package.
83
+ Review these identities after every upstream merge; do not accept upstream
84
+ metadata wholesale or restore an official npm fallback.
85
+
86
+ ## 3. Prepare the runtime
87
+
88
+ 1. Install/sync dependencies using the checkout's documented package scripts.
89
+ Use the repository's supported Node version, lockfile, and submodule pins.
90
+ 2. Locate Arc by its application identity, `company.thebrowser.Browser`.
91
+ Require a running normal Arc window and a loopback debugging endpoint.
92
+ If Arc needs remote debugging enabled, have the user save work and quit it
93
+ manually, or obtain explicit permission for `npm run arc:restart`. Reuse
94
+ permission already granted in the session. Never force-quit Arc or restart
95
+ the user's main browser without authorization.
96
+ 3. Keep the endpoint local. Do not expose a public listener or tunnel to a
97
+ different machine: native AppleScript and CDP must control the same Arc.
98
+ 4. For local development or an unpublished release, configure `node` with the
99
+ absolute path to the checkout's built MCP entry. Resolve it from
100
+ `package.json`'s `bin` field; the current entry is
101
+ `out/Default/gen/src/bin/chrome-devtools-mcp.js`. For a verified published
102
+ release, use `npx -y @chenpx976/chrome-devtools-mcp@<verified-version>` or
103
+ its installed binary. In both cases add `--arc` and an explicit loopback
104
+ endpoint. A published package does not contain uncommitted local edits.
105
+ 5. Remove or override conflicting official-package entries for this Arc
106
+ connection. Fork plugins launch the scoped package but default to Chrome;
107
+ add the Arc arguments. Never fall back to `npx chrome-devtools-mcp@latest`
108
+ or an official pinned package. Installing this skill alone does not patch
109
+ an MCP server.
110
+ 6. Preserve the user's telemetry and other compatible preferences. Restart
111
+ only the MCP client/server as needed after building; leave Arc running.
112
+
113
+ ## 4. Validate after integration
114
+
115
+ Run these steps from the patched repository after all code changes land:
116
+
117
+ ```sh
118
+ npm run gen
119
+ npm run format
120
+ npm run test
121
+ npm run arc:smoke -- --browser-url=http://127.0.0.1:9222
122
+ ```
123
+
124
+ Confirm script names and arguments against the target revision first. `gen`
125
+ currently builds and generates CLI/docs/metrics and also formats; keep the
126
+ explicit formatting step required by the repository checklist. `test` builds
127
+ and runs the full suite. Keep generated files with the patch.
128
+
129
+ For packaging changes and releases, run `npm run build:release` and
130
+ `npm run verify-npm-package` against the candidate checkout. After authorized
131
+ publication, query the scoped registry version/integrity and install the exact
132
+ version into a clean temporary directory. Inspect its package name/version,
133
+ both bins, built files, and bundled skills. Run both installed binaries'
134
+ `--help`, then exercise the installed MCP server through the client with Arc.
135
+ Record its actual installed path and tool inventory; a source-build smoke
136
+ alone does not verify the distributed artifact. See `docs/arc.md` in the
137
+ checkout for initial npm login/public publish, subsequent GitHub OIDC setup,
138
+ and the release-tag workflow dispatch requirement.
139
+
140
+ Use the opt-in native smoke only against the user's intended Arc instance.
141
+ Verify new tab identity, preservation of pre-existing tabs/URLs, background
142
+ selection, basic page operations, and cleanup of only smoke-owned tabs.
143
+ Exercise the selected local or installed server through the real client to
144
+ confirm its entry point and current advertised tool schemas. Keep unsupported
145
+ isolation and invalid config checks in deterministic tests so they cannot
146
+ mutate the real session.
147
+
148
+ Do not replace a failing command with a success claim or a smaller suite.
149
+ Classify the failure, fix its cause, and rerun affected checks; run the full
150
+ suite after code changes needed for acceptance. If macOS, Arc, permission, or
151
+ an endpoint is unavailable, finish reachable checks and report native smoke
152
+ as unverified with the exact missing prerequisite. Do not call this full Arc
153
+ compatibility merely because generation or unit tests passed.
154
+
155
+ ## 5. Report and retain rollback
156
+
157
+ Use the output contract to separate verified behavior, unsupported behavior,
158
+ failed checks, and unverified CDP features. Include the exact upstream commit,
159
+ local build entry or installed scoped artifact, versions, and check evidence.
160
+ Report npm authentication, scope ownership, publication, and OIDC setup as
161
+ separate states; never infer one from another. State only observed results.
162
+
163
+ Keep the previous working checkout/build or scoped package version and client
164
+ configuration until the replacement is verified. To roll back, stop the new
165
+ MCP server, restore the prior entry/version and config, and restart the client.
166
+ Leave Arc tabs and profile data intact. To return to ordinary Chrome operation,
167
+ remove `--arc` and select a Chrome configuration deliberately; do not silently
168
+ redirect the Arc workflow to the official npm package.
@@ -0,0 +1,216 @@
1
+ # Sources and synthesis record
2
+
3
+ ## Contents
4
+
5
+ - [Scope and provenance](#scope-and-provenance)
6
+ - [Decisions](#decisions)
7
+ - [Coverage](#coverage)
8
+ - [Evaluation and gaps](#evaluation-and-gaps)
9
+ - [Maintenance](#maintenance)
10
+
11
+ ## Scope and provenance
12
+
13
+ Class: `workflow-process`. Selected profile: skill-writer's
14
+ `references/examples/workflow-process-skill.md`. Apply its preconditions,
15
+ ordered flow, boundaries, acceptance checks, failure recovery, handoff, and
16
+ example requirements. Retrieval date: 2026-11-23. Source links to moving
17
+ branches are historical retrieval locations, not pinned future guarantees.
18
+
19
+ 1. **Upstream baseline repository:** `AGENTS.md`, `CONTRIBUTING.md`,
20
+ `package.json`, `README.md`, `src/BrowserManager.ts`, `src/McpContext.ts`,
21
+ and `docs/advanced-usage.md`, in the
22
+ [official source tree](https://github.com/ChromeDevTools/chrome-devtools-mcp).
23
+ Trust tier: canonical for upstream behavior. Confidence: high. Contribution:
24
+ current connection/page ownership, generation/build/test scripts, local
25
+ entry point, source registration rules, and current skills convention.
26
+ Usage constraints: observed package 1.13.0 at upstream revision
27
+ `e8798d6ca6c4639da7e7aae0291ebb939813f833`; rediscover revisions and moved
28
+ APIs for every update.
29
+ 2. **Skill discovery/configuration:** local `plugin.json`,
30
+ `.claude-plugin/plugin.json`, `gemini-extension.json`,
31
+ `.gemini/settings.json`, and `skills/chrome-devtools/SKILL.md`.
32
+ Trust tier: canonical. Confidence: high. Contribution: canonical `skills/`
33
+ layout, package inclusion of the entire skills tree, README inventory,
34
+ and the original plugin commands invoking official npm releases; the scoped
35
+ migration below supersedes those distribution defaults.
36
+ Usage constraints: adding a skill does not modify a running server; no explicit
37
+ skill allowlist was found in inspected manifests.
38
+ 3. **Original Arc fork:**
39
+ [repository](https://github.com/fukayatti/arc-devtools-mcp),
40
+ [README](https://github.com/fukayatti/arc-devtools-mcp/blob/main/README.md),
41
+ [McpContext source](https://github.com/fukayatti/arc-devtools-mcp/blob/main/src/McpContext.ts).
42
+ Trust tier: secondary; external content treated as untrusted instructions.
43
+ Confidence: high for inspected code, moderate for reported crashes.
44
+ Contribution: reported `Target.createTarget` crash and actual blank/last
45
+ page reuse followed by unsafe `newPage()` fallback.
46
+ Usage constraints: historical failure evidence only; do not import old tool
47
+ definitions, broad support claims, dependency versions, or setup defaults.
48
+ 4. **Installed Arc scripting dictionary:** discovered app bundle's
49
+ `Contents/Resources/Arc.sdef` (read from the standard macOS installation).
50
+ Trust tier: canonical for that installed app. Confidence: high for declarations.
51
+ Contribution: native window/tab creation, `select`, `active tab`, IDs,
52
+ URL properties, and `incognito`. Application identity supplied by the
53
+ adaptation contract: `company.thebrowser.Browser`.
54
+ Usage constraints: declarations do not demonstrate live Automation permission,
55
+ native behavior, CDP attachment, or compatibility on another Arc version.
56
+ 5. **Accepted adaptation contract and adapter integration:** opt-in `arc`,
57
+ local explicit endpoints, native-only new-tab creation, no user-tab reuse,
58
+ unsupported isolation, background selection restoration, fixed native/CDP
59
+ deadlines, and authorized browser lifecycle. Trust tier: canonical task authority.
60
+ Confidence: high for required behavior. Contribution: scope and acceptance
61
+ criteria. Usage constraints: implementation and runtime results must be checked;
62
+ contract statements are not test evidence.
63
+ 6. **Agent Skills specification:**
64
+ [canonical source](https://github.com/agentskills/agentskills/blob/main/docs/specification.mdx).
65
+ Trust tier: canonical. Confidence: high. Contribution: frontmatter, directory
66
+ naming, relative resources, progressive disclosure, and portable layout.
67
+ Usage constraints: the rendered site fetch failed; canonical raw source was read
68
+ instead. Specification conformance alone does not prove workflow quality.
69
+ 7. **Authoring method:** active skill-writer `SKILL.md`, mode selection,
70
+ synthesis, authoring, design principles, skill/workflow/output patterns,
71
+ workflow-process profile, description optimization, evaluation, and
72
+ registration/validation references. Trust tier: canonical local authoring
73
+ guidance. Confidence: high. Contribution: source scoring, coverage gates,
74
+ examples, deterministic output, trigger cases, and explicit limitations.
75
+ Usage constraints: provenance only; the shipped skill has no runtime dependency
76
+ on another installed skill or a host-specific skill directory.
77
+ 8. **Native probe on 2026-11-23:** Arc 1.108.0 and Chromium 139.0.7258.128.
78
+ Trust tier: direct runtime evidence. Confidence: high for exercised paths.
79
+ Contribution: foreground creation, exact CDP marker matching, existing-tab
80
+ preservation, and owned-tab cleanup passed. Cached window specifiers,
81
+ immediate `whose URL` lookup, and native `about:blank` creation failed;
82
+ direct index specifiers and a temporary loopback HTTP marker corrected them.
83
+ Usage constraints: this probe does not verify the complete MCP server or
84
+ other Arc versions. Background restoration requires the integrated smoke.
85
+ 9. **Integrated MCP smoke on 2026-11-23:** Arc 1.108.0 and Chromium
86
+ 139.0.7258.128. Trust tier: direct runtime evidence. Confidence: high for
87
+ exercised paths. `npm run arc:smoke -- --browser-url=http://127.0.0.1:9222`
88
+ passed native background creation, preservation of existing pages and visible
89
+ selection, snapshot, script, console, network, screenshot, and owned-tab
90
+ closure while keeping the browser connected. The screenshot was inspected.
91
+ Enumeration required lazy Arc page initialization. Marker-server shutdown
92
+ required closing all connections after stopping the listener; incomplete
93
+ connections otherwise prevented the native creation helper from returning.
94
+ The smoke explicitly configures its temporary directory as a filesystem
95
+ root. Usage constraints: this does not establish support for advanced CDP
96
+ features or other Arc/Chromium versions.
97
+ 10. **Scoped distribution migration, 2026-11-25:** accepted maintenance
98
+ contract and current
99
+ [fork](https://github.com/chenpx976/chrome-devtools-mcp/tree/arc-support),
100
+ package metadata, plugin manifests, and release-workflow configuration.
101
+ Trust tier: canonical for fork identity. Confidence: high for intended
102
+ configuration. Contribution: `@chenpx976/chrome-devtools-mcp`, maintained
103
+ `arc-support`, unchanged binary/plugin names, one package containing both
104
+ bins, initial public bootstrap, and subsequent GitHub OIDC publisher
105
+ (`chenpx976`, `chrome-devtools-mcp`, `publish-to-npm-on-tag.yml`).
106
+ Usage constraints: the scoped registry `/latest` lookup returned HTTP 404
107
+ and `npm whoami` returned `ENEEDAUTH`; npm identity/scope ownership,
108
+ publication, OIDC registration, and registry artifact behavior are not
109
+ verified. Never treat local build evidence as a published result.
110
+
111
+ ## Decisions
112
+
113
+ - **Adopted:** port the browser delta into current upstream, retaining current
114
+ tools and page lifecycle. Sources 1 and 3 show why copying the old context
115
+ would lose newer architecture and features.
116
+ - **Adopted:** require explicit local endpoint configuration and reuse current
117
+ connection code. Sources 1 and 5 establish ownership and the Arc contract.
118
+ - **Adopted:** create a native marker tab and attach by identity; reject
119
+ isolation/incognito and preserve background selection. Sources 4 and 5.
120
+ - **Rejected:** reuse blank/last tabs or fall back to CDP tab creation. Source
121
+ 3 directly implements these behaviors; source 5 requires true new tabs.
122
+ - **Adopted:** use a local compiled entry during development or a verified
123
+ scoped artifact for published installs. Sources 1, 2, and 10 establish the
124
+ entries; source 5 requires the intended patch to reach the running server.
125
+ Preserve fork package/publisher identity across upstream updates and never
126
+ fall back to official npm. Plugin defaults still require explicit Arc args.
127
+ - **Rejected:** unauthorized quit/relaunch or broad CDP compatibility claims.
128
+ Sources 3–5 establish a real user session and version gaps; an explicitly
129
+ authorized normal restart is available through `npm run arc:restart`.
130
+ - **Deferred:** an automated upstream patch/rebase script. Source 1 shows
131
+ architecture changes that require inspecting ownership; a blind patch
132
+ would be less maintainable than a bounded reviewable workflow.
133
+
134
+ ## Coverage
135
+
136
+ - **Preconditions — complete:** exact revision, runtime versions, local changes,
137
+ config entry point, Arc window, endpoint, and permission checks in SKILL.
138
+ - **Ordered execution — complete:** baseline, narrow port, local/scoped runtime,
139
+ generation/format/full tests/native smoke, artifact/client check, and handoff.
140
+ - **Safety boundaries — complete:** no unauthorized browser termination, no
141
+ borrowed-tab navigation, local endpoint, no fallback, preserved rollback.
142
+ - **Acceptance/output — complete:** separate check and feature statuses in
143
+ `references/output-contract.md`; current tools and actual build required.
144
+ - **Failure/retry — complete:** permission/endpoint blockers and timed-out
145
+ marker creation; diagnose before rerun and never retry uncertain creation.
146
+ - **Escalation/handoff — complete:** precise missing prerequisite and retained
147
+ artifacts; implementation can finish while native verification is blocked.
148
+ - **Profile examples — complete:** happy path, guarded setup, failure-recovery
149
+ transcript, anti-pattern corrections, output template, and changelog rules
150
+ in the bundled references.
151
+ - **Platform/version evidence — partial:** dictionary and current source
152
+ inspected; native acceptance and feature-specific CDP results require live
153
+ execution against recorded versions. Follow the validation phase.
154
+ - **Published artifact — unverified:** npm authentication and scope access are
155
+ unresolved. Follow `docs/arc.md` to verify login, bootstrap the public scoped
156
+ release when authorized, configure OIDC, and test a clean installed artifact.
157
+
158
+ Expansion passes covered core behavior (sources 1/4), failures (3/5), negative
159
+ examples (3), repairs (1/4/5), and platform/version variance (1/4). Retrieval
160
+ stopped because these sources establish the workflow and remaining questions
161
+ need execution on the intended Arc, rather than more general documentation.
162
+
163
+ ## Evaluation and gaps
164
+
165
+ Qualitative authoring review only: required process dimensions and examples
166
+ are represented; no baseline-versus-skill agent runs or quantitative benchmark
167
+ were executed. The concrete improvement over the original fork's documented
168
+ workflow is an explicit native-new-tab contract, intended-artifact routing,
169
+ and evidence-limited support reporting. Behavioral improvement is unmeasured.
170
+
171
+ Should-trigger prompts:
172
+
173
+ - "Reapply our Arc patch onto the latest chrome-devtools-mcp."
174
+ - "Adapt current Chrome DevTools MCP to Arc without losing upstream tools."
175
+ - "Configure my locally modified Arc MCP and verify it."
176
+ - "Verify an installed @chenpx976/chrome-devtools-mcp release with Arc."
177
+ - "Merge upstream updates while preserving our scoped npm package."
178
+
179
+ Should-not-trigger prompts:
180
+
181
+ - "Take a screenshot with my already configured MCP server."
182
+ - "Install unmodified Chrome DevTools MCP for Chrome."
183
+ - "What is the length of this geometric arc?"
184
+
185
+ Description review: name Arc plus the MCP package and update/setup intent;
186
+ exclude ordinary debugging and unmodified Chrome setup. These are designed
187
+ trigger cases, not observed classifier scores.
188
+
189
+ At initial authoring, strict-depth skill validation passed as
190
+ `workflow-process`, with no errors or warnings. The native foreground probe
191
+ passed on the versions recorded in source 8; generation and formatting also
192
+ passed then. These are historical results, not validation of this scoped
193
+ migration. No scripts, tests, formatters, or skill validator were run for the
194
+ 2026-11-25 documentation update. Qualitative review covers preconditions,
195
+ ordered execution, failure handling, package identity, and rollback; designed
196
+ trigger cases now include installed scoped releases and identity-preserving
197
+ upstream updates. Advanced CDP and published-artifact behavior remain
198
+ unverified unless individually exercised.
199
+
200
+ ## Maintenance
201
+
202
+ 2026-11-23: created the workflow skill, native compatibility contract,
203
+ illustrative workflows, deterministic report, and provenance record. Registered
204
+ in the existing README skill inventory; no manifest allowlist edit required.
205
+
206
+ 2026-11-25: updated the existing `skills/arc-compatibility` workflow and bundled
207
+ references for scoped distribution. Added local-versus-installed routing,
208
+ publication/authentication boundaries, artifact verification, publisher
209
+ identity preservation, and package-version rollback. Retained the canonical
210
+ skill directory, README registration, existing examples, and upstream source
211
+ citations; no new skill registration or additional documentation files.
212
+
213
+ For each real update, record the exact upstream and patched revisions, changed
214
+ source contracts, actual verification evidence, and newly discovered gaps.
215
+ Keep authoring history separate from the compatibility report for a specific
216
+ Arc/Chromium version. Add only evidence-backed regression examples.
@@ -0,0 +1,113 @@
1
+ # Compatibility contract
2
+
3
+ ## Distribution identity
4
+
5
+ - Maintain `chenpx976/chrome-devtools-mcp` on `arc-support`; fetch actual
6
+ upstream changes from `ChromeDevTools/chrome-devtools-mcp`.
7
+ - Keep npm identity `@chenpx976/chrome-devtools-mcp` across package/lockfile,
8
+ server registry metadata, plugins, update checks, docs, and release workflows.
9
+ Preserve executable names `chrome-devtools-mcp` and `chrome-devtools`,
10
+ unscoped plugin identifiers, protocol names, and upstream attribution.
11
+ - Publish only the scoped main package, which includes both binaries. Do not
12
+ recreate the separate CLI alias publish step during an upstream merge.
13
+ - Use a local build until the public scoped artifact is verified. Never
14
+ replace a missing/unpublished scoped package with the official npm package.
15
+ - Verify a clean installation of the exact scoped release, including both
16
+ binaries and the actual client's Arc behavior. Registry metadata and a
17
+ passing local smoke alone do not prove the installed artifact works.
18
+ - Bootstrap publication only after npm login and scope permission checks.
19
+ Subsequent npm trusted publishing uses GitHub owner `chenpx976`, repository
20
+ `chrome-devtools-mcp`, workflow `publish-to-npm-on-tag.yml`. Retain OIDC
21
+ permissions and release-tag dispatch behavior documented in `docs/arc.md`.
22
+
23
+ ## Configuration and connection
24
+
25
+ - Keep `arc` opt-in and `false` by default. Normal Chrome behavior must remain
26
+ available without the flag.
27
+ - Require macOS and exactly one explicit loopback `browserUrl` or `wsEndpoint`.
28
+ Reject invalid configuration before attempting a browser connection.
29
+ - Reject `autoConnect`, headless launch, `executablePath`, `isolated`,
30
+ `userDataDir`, and an explicitly overridden `channel`. An implicit default
31
+ `stable` channel must not make otherwise valid Arc configuration fail.
32
+ - Keep established endpoint parsing and connection handling in
33
+ `src/BrowserManager.ts`. Do not add a second Puppeteer connection lifecycle.
34
+ - Require the endpoint and native application to identify the same local Arc
35
+ instance. A loopback address alone does not prove browser identity.
36
+ - Preserve config reload/restart rules and generated option documentation when
37
+ porting the flag. Do not defer config validation until `new_page` runs.
38
+ - Keep Arc enumeration lazy: do not initialize a previously untouched selected
39
+ page just to list targets. Page tools and explicit creation initialize the
40
+ page they use; a nonresponsive inactive tab must not block all tool calls.
41
+
42
+ ## Native tab creation
43
+
44
+ Use application ID `company.thebrowser.Browser`. Discover the installed app
45
+ bundle to read `Contents/Resources/Arc.sdef`; avoid a host-specific app path
46
+ in implementation and maintenance instructions. The inspected dictionary
47
+ supports window `incognito`, window `active tab`, tab `id`/`URL`, `select`, and:
48
+
49
+ ```applescript
50
+ tell application id "company.thebrowser.Browser"
51
+ tell front window
52
+ make new tab with properties {URL: marker}
53
+ end tell
54
+ end tell
55
+ ```
56
+
57
+ Treat this as a native API illustration, not a complete adapter. Preserve the
58
+ running-application check, normal-front-window check, selection handling,
59
+ parameter passing, deadlines, and CDP target correlation around it.
60
+
61
+ Keep the following invariants:
62
+
63
+ 1. Require Arc to be running with an existing regular front window. Fail for
64
+ no window or an incognito front window; do not auto-launch or change windows.
65
+ 2. Reject any `isolatedContext` request before native or CDP state changes.
66
+ A regular Arc window cannot honor Puppeteer isolated browser contexts.
67
+ 3. Serve a unique `/chrome-devtools-mcp-<UUID>` blank page on a temporary
68
+ HTTP server bound to `127.0.0.1` with an ephemeral port; close it on every
69
+ success/error path. Arc 1.108 rejects `about:blank` in native tab creation.
70
+ Stop listening, close all marker-server connections, then await closure;
71
+ browser preconnections or incomplete requests can otherwise hang disposal.
72
+ Pass marker URLs and selection IDs as process arguments to fixed
73
+ AppleScript; never interpolate user URLs into script source or a shell.
74
+ 4. Create exactly one new native tab and correlate the exact marker to a new
75
+ page target on the connected browser. Preserve upstream page initialization,
76
+ collector registration, page IDs, and tool navigation after attachment.
77
+ 5. For `background: true`, capture the prior window/tab IDs and restore that
78
+ tab after CDP attachment. Use direct window/tab index specifiers; the
79
+ installed Arc returns invalid cached object specifiers and does not reliably
80
+ resolve immediate `whose URL` queries. Distinguish Arc's visible selected
81
+ tab from MCP's logical selected page; brief new-tab selection can occur.
82
+ 6. Bound each native command and target discovery (currently 10 seconds each).
83
+ Never retry tab creation after uncertain completion; report its marker URL
84
+ so the user can identify any leftover tab without touching other tabs.
85
+ 7. On errors, do not reuse an existing blank/last tab or invoke Puppeteer
86
+ `newPage()`/CDP `Target.createTarget`. Never silently ignore native failures.
87
+
88
+ ## Upstream preservation and verification
89
+
90
+ Keep all current tool definitions and their option gates. Arc changes how a
91
+ new tab is created; it does not guarantee support for every CDP command.
92
+ Inspect the installed Chromium version and test each feature before claiming
93
+ it works. Advanced tracing, screencast, memory, extension, emulation, and newer
94
+ protocol operations remain unverified unless explicitly exercised.
95
+
96
+ Use focused tests for endpoint/config rejection, native process failure,
97
+ permission denial, missing/incognito window, marker timeout, background
98
+ restoration, isolation rejection, and unchanged Chrome behavior. Test that
99
+ forbidden creation branches are not called. Keep live-browser verification
100
+ for behavior mocks cannot prove: native tab identity and selection, target
101
+ attachment, real tool operations, and preservation of existing tabs.
102
+
103
+ ## Rejected legacy behavior
104
+
105
+ The [original fork](https://github.com/fukayatti/arc-devtools-mcp) documents
106
+ Arc crashes on `Target.createTarget`. Its `McpContext.newPage` first returns
107
+ an existing `about:blank` page, otherwise the last existing page, and finally
108
+ calls `browser.newPage()` if none exists. Reject all three branches for this
109
+ adaptation: reuse violates new-tab semantics and can navigate a user's tab;
110
+ the fallback reaches the operation the fork reports as crash-prone.
111
+
112
+ Use that fork as historical evidence of the failure mode. Do not copy its
113
+ older tools, dependencies, page lifecycle, or broad compatibility claims.
@@ -0,0 +1,62 @@
1
+ # Output contract
2
+
3
+ Return a concise report with these fields for setup, updates, and recovery.
4
+ Use `passed`, `failed`, `blocked`, or `not run` for checks; use `verified`,
5
+ `unsupported`, `failed`, or `unverified` for feature support. Never omit a
6
+ blocked acceptance step or infer a pass from successful compilation.
7
+
8
+ ## Preconditions
9
+
10
+ - Requested operation and resolved upstream URL, ref, and exact commit.
11
+ - Previous patched revision, new patched revision if committed, package and
12
+ Node versions; identify uncommitted changes without inventing a commit ID.
13
+ - Fork branch and scoped package identity, registry version/integrity when
14
+ available; npm authentication/scope access, publication, and OIDC status
15
+ separately. Explicitly mark an unpublished or unverified artifact.
16
+ - macOS, Arc app, and Chromium/CDP versions; report unavailable values.
17
+ - Endpoint type and loopback address, normal-window availability, and native
18
+ Automation permission status. Redact credentials and private page URLs.
19
+
20
+ ## Actions taken
21
+
22
+ - Files/behavior changed and how current upstream tools were preserved.
23
+ - Actual local build entry or installed scoped artifact path and client config.
24
+ - Client restart status and evidence it launched that build/package version.
25
+ - Retained previous build or package version and config for rollback.
26
+
27
+ ## Validation results
28
+
29
+ | Check | Status | Evidence or blocker |
30
+ | ------------------------------------ | --------------- | -------------------------------------- |
31
+ | Generation and generated files | recorded status | command and observed result |
32
+ | Formatting/lint | recorded status | command and observed result |
33
+ | Full automated tests | recorded status | command, counts if observed |
34
+ | Native Arc smoke | recorded status | command, versions, observed assertions |
35
+ | Packed and installed scoped artifact | recorded status | name/version, integrity, bins, help |
36
+ | Actual client server/tool inventory | recorded status | observed entry/tool schemas |
37
+
38
+ ## Feature coverage
39
+
40
+ | Behavior | Status | Evidence or limitation |
41
+ | --------------------------------------------------- | ------------------ | ------------------------------------------ |
42
+ | New native tab and existing tabs preserved | recorded status | identities/URLs compared |
43
+ | Background native selection restored | recorded status | prior/after selected tab |
44
+ | Basic navigation, script, snapshot, screenshot | per-feature status | exercised tools/results |
45
+ | Isolated context creation | unsupported | expected explicit rejection |
46
+ | Performance, memory, extensions, other CDP features | per-feature status | list exercised cases; otherwise unverified |
47
+
48
+ Split rows where only some features were exercised. A tool's presence in
49
+ `tools/list` is evidence of exposure, not evidence that it works in Arc.
50
+
51
+ ## Failures, recovery, and next actions
52
+
53
+ State observed failures, known causes versus hypotheses, corrections and
54
+ reruns, leftover owned marker tabs/artifacts, and the exact missing action for
55
+ any blocked step. State whether the adaptation is ready for the tested scope
56
+ or still awaiting verification.
57
+
58
+ Describe rollback concretely: stop the replacement MCP process, restore the
59
+ retained local build or pinned scoped package version/config, restart the
60
+ client, and leave Arc/profile data intact. If no previous working Arc artifact
61
+ exists, describe disabling the new server entry. Never use the official npm
62
+ package as an Arc rollback.