# puppeteer-repo - Doramagic AI Context Pack

> 定位：安装前体验与判断资产。它帮助宿主 AI 有一个好的开始，但不代表已经安装、执行或验证目标项目。

## 充分原则

- **充分原则，不是压缩原则**：AI Context Pack 应该充分到让宿主 AI 在开工前理解项目价值、能力边界、使用入口、风险和证据来源；它可以分层组织，但不以最短摘要为目标。
- **压缩策略**：只压缩噪声和重复内容，不压缩会影响判断和开工质量的上下文。

## 给宿主 AI 的使用方式

你正在读取 Doramagic 为 puppeteer-repo 编译的 AI Context Pack。请把它当作开工前上下文：帮助用户理解适合谁、能做什么、如何开始、哪些必须安装后验证、风险在哪里。不要声称你已经安装、运行或执行了目标项目。

## Claim 消费规则

- **事实来源**：Repo Evidence + Claim/Evidence Graph；Human Wiki 只提供显著性、术语和叙事结构。
- **事实最低状态**：`supported`
- `supported`：可以作为项目事实使用，但回答中必须引用 claim_id 和证据路径。
- `weak`：只能作为低置信度线索，必须要求用户继续核实。
- `inferred`：只能用于风险提示或待确认问题，不能包装成项目事实。
- `unverified`：不得作为事实使用，应明确说证据不足。
- `contradicted`：必须展示冲突来源，不得替用户强行选择一个版本。

## 它最适合谁

- **想在安装前理解开源项目价值和边界的用户**：当前证据主要来自项目文档。 证据：`README.md` Claim：`clm_0002` supported 0.86

## 它能做什么

- **命令行启动或安装流程**（需要安装后验证）：项目文档中存在可执行命令，真实使用需要在本地或宿主环境中运行这些命令。 证据：`README.md`, `packages/browsers/README.md` Claim：`clm_0001` supported 0.86

## 怎么开始

- `npm i puppeteer # Downloads compatible Chrome during installation.` 证据：`README.md` Claim：`clm_0003` supported 0.86
- `npm i puppeteer-core # Alternatively, install as a library, without downloading Chrome.` 证据：`README.md` Claim：`clm_0004` supported 0.86
- `npx @puppeteer/browsers --help` 证据：`packages/browsers/README.md` Claim：`clm_0005` supported 0.86, `clm_0006` supported 0.86
- `npx @puppeteer/browsers --help # help for all commands` 证据：`packages/browsers/README.md` Claim：`clm_0006` supported 0.86
- `npx @puppeteer/browsers install --help # help for the install command` 证据：`packages/browsers/README.md` Claim：`clm_0007` supported 0.86
- `npx @puppeteer/browsers launch --help # help for the launch command` 证据：`packages/browsers/README.md` Claim：`clm_0008` supported 0.86
- `npx @puppeteer/browsers clear --help # help for the clear command` 证据：`packages/browsers/README.md` Claim：`clm_0009` supported 0.86
- `npx @puppeteer/browsers list --help # help for the list command` 证据：`packages/browsers/README.md` Claim：`clm_0010` supported 0.86
- `npx @puppeteer/browsers@latest --help` 证据：`packages/browsers/README.md` Claim：`clm_0011` supported 0.86
- `npx @puppeteer/browsers@2.4.1 --help` 证据：`packages/browsers/README.md` Claim：`clm_0012` supported 0.86

## 继续前判断卡

- **当前建议**：需要管理员/安全审批
- **为什么**：继续前可能涉及密钥、账号、外部服务或敏感上下文，建议先经过管理员或安全审批。

### 30 秒判断

- **现在怎么做**：需要管理员/安全审批
- **最小安全下一步**：先跑 Prompt Preview；若涉及凭证或企业环境，先审批再试装
- **先别相信**：角色质量和任务匹配不能直接相信。
- **继续会触碰**：角色选择偏差、命令执行、本地环境或项目文件

### 现在可以相信

- **适合人群线索：想在安装前理解开源项目价值和边界的用户**（supported）：有 supported claim 或项目证据支撑，但仍不等于真实安装效果。 证据：`README.md` Claim：`clm_0002` supported 0.86
- **能力存在：命令行启动或安装流程**（supported）：可以相信项目包含这类能力线索；是否适合你的具体任务仍要试用或安装后验证。 证据：`README.md`, `packages/browsers/README.md` Claim：`clm_0001` supported 0.86
- **存在 Quick Start / 安装命令线索**（supported）：可以相信项目文档出现过启动或安装入口；不要因此直接在主力环境运行。 证据：`README.md` Claim：`clm_0003` supported 0.86

### 现在还不能相信

- **角色质量和任务匹配不能直接相信。**（unverified）：角色库证明有很多角色，不证明每个角色都适合你的具体任务，也不证明角色能产生高质量结果。
- **不能把角色文案当成真实执行能力。**（unverified）：安装前只能判断角色描述和任务画像是否匹配，不能证明它能在宿主 AI 里完成任务。
- **真实输出质量不能在安装前相信。**（unverified）：Prompt Preview 只能展示引导方式，不能证明真实项目中的结果质量。
- **宿主 AI 版本兼容性不能在安装前相信。**（unverified）：Claude、Cursor、Codex、Gemini 等宿主加载规则和版本差异必须在真实环境验证。
- **不会污染现有宿主 AI 行为，不能直接相信。**（inferred）：Skill、plugin、AGENTS/CLAUDE/GEMINI 指令可能改变宿主 AI 的默认行为。
- **可安全回滚不能默认相信。**（unverified）：除非项目明确提供卸载和恢复说明，否则必须先在隔离环境验证。
- **真实安装后是否与用户当前宿主 AI 版本兼容？**（unverified）：兼容性只能通过实际宿主环境验证。
- **项目输出质量是否满足用户具体任务？**（unverified）：安装前预览只能展示流程和边界，不能替代真实评测。

### 继续会触碰什么

- **角色选择偏差**：用户对任务应该由哪个专家角色处理的判断。 原因：选错角色会让 AI 从错误专业视角回答，浪费时间或误导决策。
- **命令执行**：包管理器、网络下载、本地插件目录、项目配置或用户主目录。 原因：运行第一条命令就可能产生环境改动；必须先判断是否值得跑。 证据：`README.md`, `packages/browsers/README.md`
- **本地环境或项目文件**：安装结果、插件缓存、项目配置或本地依赖目录。 原因：安装前无法证明写入范围和回滚方式，需要隔离验证。 证据：`README.md`, `packages/browsers/README.md`
- **环境变量 / API Key**：项目入口文档明确出现 API key、token、secret 或账号凭证配置。 原因：如果真实安装需要凭证，应先使用测试凭证并经过权限/合规判断。 证据：`package.json`
- **宿主 AI 上下文**：AI Context Pack、Prompt Preview、Skill 路由、风险规则和项目事实。 原因：导入上下文会影响宿主 AI 后续判断，必须避免把未验证项包装成事实。

### 最小安全下一步

- **先跑 Prompt Preview**：先用交互式试用验证任务画像和角色匹配，不要先导入整套角色库。（适用：任何项目都适用，尤其是输出质量未知时。）
- **只在隔离目录或测试账号试装**：避免安装命令污染主力宿主 AI、真实项目或用户主目录。（适用：存在命令执行、插件配置或本地写入线索时。）
- **不要使用真实生产凭证**：环境变量/API key 一旦进入宿主或工具链，可能产生账号和合规风险。（适用：出现 API、TOKEN、KEY、SECRET 等环境线索时。）
- **安装后只验证一个最小任务**：先验证加载、兼容、输出质量和回滚，再决定是否深用。（适用：准备从试用进入真实工作流时。）

### 退出方式

- **保留安装前状态**：记录原始宿主配置和项目状态，后续才能判断是否可恢复。
- **保留原始角色选择记录**：如果输出偏题，可以回到任务画像阶段重新选择角色，而不是继续沿着错误角色推进。
- **记录安装命令和写入路径**：没有明确卸载说明时，至少要知道哪些目录或配置需要手动清理。
- **准备撤销测试 API key 或 token**：测试凭证泄露或误用时，可以快速止损。
- **如果没有回滚路径，不进入主力环境**：不可回滚是继续前阻断项，不应靠信任或运气继续。

## 哪些只能预览

- 解释项目适合谁和能做什么
- 基于项目文档演示典型对话流程
- 帮助用户判断是否值得安装或继续研究

## 哪些必须安装后验证

- 真实安装 Skill、插件或 CLI
- 执行脚本、修改本地文件或访问外部服务
- 验证真实输出质量、性能和兼容性

## 边界与风险判断卡

- **把安装前预览误认为真实运行**：用户可能高估项目已经完成的配置、权限和兼容性验证。 处理方式：明确区分 prompt_preview_can_do 与 runtime_required。 Claim：`clm_0023` inferred 0.45
- **命令执行会修改本地环境**：安装命令可能写入用户主目录、宿主插件目录或项目配置。 处理方式：先在隔离环境或测试账号中运行。 证据：`README.md`, `packages/browsers/README.md` Claim：`clm_0024` supported 0.86
- **待确认**：真实安装后是否与用户当前宿主 AI 版本兼容？。原因：兼容性只能通过实际宿主环境验证。
- **待确认**：项目输出质量是否满足用户具体任务？。原因：安装前预览只能展示流程和边界，不能替代真实评测。
- **待确认**：安装命令是否需要网络、权限或全局写入？。原因：这影响企业环境和个人环境的安装风险。

## 开工前工作上下文

### 加载顺序

- 先读取 how_to_use.host_ai_instruction，建立安装前判断资产的边界。
- 读取 claim_graph_summary，确认事实来自 Claim/Evidence Graph，而不是 Human Wiki 叙事。
- 再读取 intended_users、capabilities 和 quick_start_candidates，判断用户是否匹配。
- 需要执行具体任务时，优先查 role_skill_index，再查 evidence_index。
- 遇到真实安装、文件修改、网络访问、性能或兼容性问题时，转入 risk_card 和 boundaries.runtime_required。

### 任务路由

- **命令行启动或安装流程**：先说明这是安装后验证能力，再给出安装前检查清单。 边界：必须真实安装或运行后验证。 证据：`README.md`, `packages/browsers/README.md` Claim：`clm_0001` supported 0.86

### 上下文规模

- 文件总数：2105
- 重要文件覆盖：40/2105
- 证据索引条目：80
- 角色 / Skill 条目：63

### 证据不足时的处理

- **missing_evidence**：说明证据不足，要求用户提供目标文件、README 段落或安装后验证记录；不要补全事实。
- **out_of_scope_request**：说明该任务超出当前 AI Context Pack 证据范围，并建议用户先查看 Human Manual 或真实安装后验证。
- **runtime_request**：给出安装前检查清单和命令来源，但不要替用户执行命令或声称已执行。
- **source_conflict**：同时展示冲突来源，标记为待核实，不要强行选择一个版本。

## Prompt Recipes

### 适配判断

- 目标：判断这个项目是否适合用户当前任务。
- 预期输出：适配结论、关键理由、证据引用、安装前可预览内容、必须安装后验证内容、下一步建议。

```text
请基于 puppeteer-repo 的 AI Context Pack，先问我 3 个必要问题，然后判断它是否适合我的任务。回答必须包含：适合谁、能做什么、不能做什么、是否值得安装、证据来自哪里。所有项目事实必须引用 evidence_refs、source_paths 或 claim_id。
```

### 安装前体验

- 目标：让用户在安装前感受核心工作流，同时避免把预览包装成真实能力或营销承诺。
- 预期输出：一段带边界标签的体验剧本、安装后验证清单和谨慎建议；不含真实运行承诺或强营销表述。

```text
请把 puppeteer-repo 当作安装前体验资产，而不是已安装工具或真实运行环境。

请严格输出四段：
1. 先问我 3 个必要问题。
2. 给出一段“体验剧本”：用 [安装前可预览]、[必须安装后验证]、[证据不足] 三种标签展示它可能如何引导工作流。
3. 给出安装后验证清单：列出哪些能力只有真实安装、真实宿主加载、真实项目运行后才能确认。
4. 给出谨慎建议：只能说“值得继续研究/试装”“先补充信息后再判断”或“不建议继续”，不得替项目背书。

硬性边界：
- 不要声称已经安装、运行、执行测试、修改文件或产生真实结果。
- 不要写“自动适配”“确保通过”“完美适配”“强烈建议安装”等承诺性表达。
- 如果描述安装后的工作方式，必须使用“如果安装成功且宿主正确加载 Skill，它可能会……”这种条件句。
- 体验剧本只能写成“示例台词/假设流程”：使用“可能会询问/可能会建议/可能会展示”，不要写“已写入、已生成、已通过、正在运行、正在生成”。
- Prompt Preview 不负责给安装命令；如用户准备试装，只能提示先阅读 Quick Start 和 Risk Card，并在隔离环境验证。
- 所有项目事实必须来自 supported claim、evidence_refs 或 source_paths；inferred/unverified 只能作风险或待确认项。

```

### 角色 / Skill 选择

- 目标：从项目里的角色或 Skill 中挑选最匹配的资产。
- 预期输出：候选角色或 Skill 列表，每项包含适用场景、证据路径、风险边界和是否需要安装后验证。

```text
请读取 role_skill_index，根据我的目标任务推荐 3-5 个最相关的角色或 Skill。每个推荐都要说明适用场景、可能输出、风险边界和 evidence_refs。
```

### 风险预检

- 目标：安装或引入前识别环境、权限、规则冲突和质量风险。
- 预期输出：环境、权限、依赖、许可、宿主冲突、质量风险和未知项的检查清单。

```text
请基于 risk_card、boundaries 和 quick_start_candidates，给我一份安装前风险预检清单。不要替我执行命令，只说明我应该检查什么、为什么检查、失败会有什么影响。
```

### 宿主 AI 开工指令

- 目标：把项目上下文转成一次对话开始前的宿主 AI 指令。
- 预期输出：一段边界明确、证据引用明确、适合复制给宿主 AI 的开工前指令。

```text
请基于 puppeteer-repo 的 AI Context Pack，生成一段我可以粘贴给宿主 AI 的开工前指令。这段指令必须遵守 not_runtime=true，不能声称项目已经安装、运行或产生真实结果。
```


## 角色 / Skill 索引

- 共索引 63 个角色 / Skill / 项目文档条目。

- **Contributing**（project_doc）：First of all, thank you for your interest in Puppeteer! We'd love to accept your patches and contributions! 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/contributing.md`
- **Puppeteer**（project_doc）：! build https://github.com/puppeteer/puppeteer/actions/workflows/ci.yml/badge.svg?branch=main https://github.com/puppeteer/puppeteer/actions/workflows/ci.yml ! npm puppeteer package https://img.shields.io/npm/v/puppeteer.svg https://npmjs.org/package/puppeteer 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`README.md`
- **Dockerfile for Puppeteer**（project_doc）：This directory contains files needed to containerize Puppeteer. The major problem that this is solving is the problem of providing all dependencies required to run a browser instance. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docker/README.md`
- **Puppeteer: Examples**（project_doc）：This is the official set of Puppeteer examples. For a list of curated examples and use-cases, including third-party ones, see pptr.dev/examples https://pptr.dev/examples . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`examples/README.md`
- **Puppeteer tests**（project_doc）：Unit tests in Puppeteer are written using Mocha as the test runner and Expect as the assertions library. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`test/README.md`
- **Website**（project_doc）：This website is built using Docusaurus 3 https://docusaurus.io/ . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`website/README.md`
- **@puppeteer/browsers**（project_doc）：Manage and launch browsers/drivers from a CLI or programmatically. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`packages/browsers/README.md`
- **Puppeteer Angular Schematic**（project_doc）：Adds Puppeteer-based e2e tests to your Angular project. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`packages/ng-schematics/README.md`
- **bidi/core**（project_doc）：bidi/core is a low-level layer that sits above the WebDriver BiDi transport to provide a structured API to WebDriver BiDi's flat API. In particular, bidi/core provides object-oriented semantics around WebDriver BiDi resources and automatically carries out the correct order of events in WebDriver BiDi through the use of events. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`packages/puppeteer-core/src/bidi/core/README.md`
- **Injected**（project_doc）：This folder contains code that is injected into every Puppeteer execution context. Each file is transpiled using esbuild into a script in src/generated which is then imported into server code. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`packages/puppeteer-core/src/injected/README.md`
- **Templated Artifacts**（project_doc）：These files are generated as TypeScript files in the src/generated folder. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`packages/puppeteer-core/src/templates/README.md`
- **third party**（project_doc）：This folder contains code that interacts with third party node modules that will be vendored with puppeteer during publishing. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`packages/puppeteer-core/third_party/README.md`
- **Mocha Runner**（project_doc）：Mocha Runner is a test runner on top of mocha. It uses /test/TestSuites.json and /test/TestExpectations.json files to run mocha tests in multiple configurations and interpret results. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`tools/mocha-runner/README.md`
- **Contributing**（project_doc）：First of all, thank you for your interest in Puppeteer! We'd love to accept your patches and contributions! 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`website/versioned_docs/version-25.0.2/contributing.md`
- **TestServer**（project_doc）：This test server is used internally by Puppeteer to test Puppeteer itself. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`packages/testserver/README.md`
- **Changelog**（project_doc）：Combined changelog for puppeteer and puppeteer-core. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/CHANGELOG.md`
- **Examples & Use cases**（project_doc）：The Puppeteer repository https://github.com/puppeteer/puppeteer/tree/main/examples includes a small number of examples maintained by the Puppeteer team. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/examples.md`
- **FAQ**（project_doc）：The Chrome Browser Automation team maintains the library, but we'd love your help and expertise on the project! See our contributing guide https://pptr.dev/contributing . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/faq.md`
- **Puppeteer**（project_doc）：! build https://github.com/puppeteer/puppeteer/actions/workflows/ci.yml/badge.svg?branch=main https://github.com/puppeteer/puppeteer/actions/workflows/ci.yml ! npm puppeteer package https://img.shields.io/npm/v/puppeteer.svg https://npmjs.org/package/puppeteer 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/index.md`
- **Supported browsers**（project_doc）：Starting with v20.0.0 Puppeteer downloads and works with Chrome for Testing https://github.com/GoogleChromeLabs/chrome-for-testing?tab=readme-ov-file what-is-chrome-for-testing , which supports both headless and headful modes sharing the same code path in the browser. The old headless mode is now a separate program called chrome-headless-shell https://developer.chrome.com/blog/chrome-headless-shell use headless: 'sh… 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/supported-browsers.md`
- **Troubleshooting**（project_doc）：To keep this page up-to-date we largely rely on community contributions. Please send a PR if you notice something is no longer up-to-date. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/troubleshooting.md`
- **WebDriver BiDi support**（project_doc）：WebDriver BiDi https://w3c.github.io/webdriver-bidi/ is a new cross-browser automation protocol currently under development, aiming to combine the best of both WebDriver “Classic” and CDP. WebDriver BiDi enables bi-directional communication, making it fast by default, and it comes packed with low-level control. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/webdriver-bidi.md`
- **API Reference**（project_doc）：Accessibility ./puppeteer.accessibility.md 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/index.md`
- **Accessibility class**（project_doc）：The Accessibility class provides methods for inspecting the browser's accessibility tree. The accessibility tree is used by assistive technology such as screen readers https://en.wikipedia.org/wiki/Screen reader or switches https://en.wikipedia.org/wiki/Switch access . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.accessibility.md`
- **Accessibility.snapshot method**（project_doc）：Captures the current state of the accessibility tree. The returned object represents the root accessible node of the page. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.accessibility.snapshot.md`
- **ActionOptions interface**（project_doc）：A signal to abort the locator action. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.actionoptions.md`
- **ActionResult type**（project_doc）： 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.actionresult.md`
- **AdapterState type**（project_doc）： 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.adapterstate.md`
- **AddScreenParams interface**（project_doc）：WorkAreaInsets ./puppeteer.workareainsets.md 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.addscreenparams.md`
- **AutofillAddressField enum**（project_doc）：Supported autofill address field names. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.autofilladdressfield.md`
- **AutofillData type**（project_doc）：References: AutofillAddressField ./puppeteer.autofilladdressfield.md 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.autofilldata.md`
- **Awaitable type**（project_doc）： 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.awaitable.md`
- **AwaitableIterable type**（project_doc）： 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.awaitableiterable.md`
- **AwaitablePredicate type**（project_doc）：References: Awaitable ./puppeteer.awaitable.md 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.awaitablepredicate.md`
- **AwaitedLocator type**（project_doc）：References: Locator ./puppeteer.locator.md 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.awaitedlocator.md`
- **BluetoothEmulation.disableEmulation method**（project_doc）：BluetoothEmulation.disableEmulation method 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.bluetoothemulation.disableemulation.md`
- **BluetoothEmulation.emulateAdapter method**（project_doc）：BluetoothEmulation.emulateAdapter method 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.bluetoothemulation.emulateadapter.md`
- **BluetoothEmulation interface**（project_doc）：Exposes the bluetooth emulation abilities. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.bluetoothemulation.md`
- **BluetoothEmulation.simulatePreconnectedPeripheral method**（project_doc）：BluetoothEmulation.simulatePreconnectedPeripheral method 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.bluetoothemulation.simulatepreconnectedperipheral.md`
- **BluetoothManufacturerData interface**（project_doc）：BluetoothManufacturerData interface 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.bluetoothmanufacturerdata.md`
- **BoundingBox interface**（project_doc）：Extends: Point ./puppeteer.point.md 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.boundingbox.md`
- **BoxModel interface**（project_doc）： 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.boxmodel.md`
- **Browser.addScreen method**（project_doc）：Adds a new screen, returns the added screen information object ./puppeteer.screeninfo.md . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.browser.addscreen.md`
- **Browser.browserContexts method**（project_doc）：Gets a list of open browser contexts ./puppeteer.browsercontext.md . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.browser.browsercontexts.md`
- **Browser.close method**（project_doc）：Closes this browser ./puppeteer.browser.md and all associated pages ./puppeteer.page.md . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.browser.close.md`
- **Browser.cookies method**（project_doc）：Returns all cookies in the default BrowserContext ./puppeteer.browsercontext.md . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.browser.cookies.md`
- **Browser.createBrowserContext method**（project_doc）：Browser.createBrowserContext method 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.browser.createbrowsercontext.md`
- **Browser.defaultBrowserContext method**（project_doc）：Browser.defaultBrowserContext method 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.browser.defaultbrowsercontext.md`
- **Browser.deleteCookie method**（project_doc）：Removes cookies from the default BrowserContext ./puppeteer.browsercontext.md . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.browser.deletecookie.md`
- **Browser.deleteMatchingCookies method**（project_doc）：Browser.deleteMatchingCookies method 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.browser.deletematchingcookies.md`
- **Browser.disconnect method**（project_doc）：Disconnects Puppeteer from this browser ./puppeteer.browser.md , but leaves the process running. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.browser.disconnect.md`
- **Browser.extensions method**（project_doc）：Retrieves a map of all extensions installed in the browser, where the keys are extension IDs and the values are the corresponding Extension ./puppeteer.extension.md instances. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.browser.extensions.md`
- **Browser.getWindowBounds method**（project_doc）：Gets the specified window bounds ./puppeteer.windowbounds.md . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.browser.getwindowbounds.md`
- **Browser.installExtension method**（project_doc）：Installs an extension and returns the ID. In Chrome, this is only available if the browser was created using pipe: true and the --enable-unsafe-extension-debugging flag is set. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.browser.installextension.md`
- **Browser class**（project_doc）：Browser ./puppeteer.browser.md represents a browser instance that is either: 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.browser.md`
- **Browser.newPage method**（project_doc）：Creates a new page ./puppeteer.page.md in the default browser context ./puppeteer.browser.defaultbrowsercontext.md . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.browser.newpage.md`
- **Browser.pages method**（project_doc）：Gets a list of all open pages ./puppeteer.page.md inside this Browser ./puppeteer.browser.md . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.browser.pages.md`
- **Browser.process method**（project_doc）：Gets the associated ChildProcess https://nodejs.org/api/child process.html class-childprocess . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.browser.process.md`
- **Browser.removeScreen method**（project_doc）：Only supported in headless mode. Fails if the primary screen id is specified. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.browser.removescreen.md`
- **Browser.screens method**（project_doc）：Gets a list of screen information objects ./puppeteer.screeninfo.md . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.browser.screens.md`
- **Browser.setCookie method**（project_doc）：Sets cookies in the default BrowserContext ./puppeteer.browsercontext.md . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.browser.setcookie.md`
- **Browser.setPermission method**（project_doc）：Sets the permission for a specific origin in the default BrowserContext ./puppeteer.browsercontext.md . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.browser.setpermission.md`
- **Browser.setWindowBounds method**（project_doc）：Sets the specified window bounds ./puppeteer.windowbounds.md . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api/puppeteer.browser.setwindowbounds.md`

## 证据索引

- 共索引 80 条证据。

- **Contributing**（documentation）：First of all, thank you for your interest in Puppeteer! We'd love to accept your patches and contributions! 证据：`docs/contributing.md`
- **Puppeteer**（documentation）：! build https://github.com/puppeteer/puppeteer/actions/workflows/ci.yml/badge.svg?branch=main https://github.com/puppeteer/puppeteer/actions/workflows/ci.yml ! npm puppeteer package https://img.shields.io/npm/v/puppeteer.svg https://npmjs.org/package/puppeteer 证据：`README.md`
- **Dockerfile for Puppeteer**（documentation）：This directory contains files needed to containerize Puppeteer. The major problem that this is solving is the problem of providing all dependencies required to run a browser instance. 证据：`docker/README.md`
- **Puppeteer: Examples**（documentation）：This is the official set of Puppeteer examples. For a list of curated examples and use-cases, including third-party ones, see pptr.dev/examples https://pptr.dev/examples . 证据：`examples/README.md`
- **Puppeteer tests**（documentation）：Unit tests in Puppeteer are written using Mocha as the test runner and Expect as the assertions library. 证据：`test/README.md`
- **Website**（documentation）：This website is built using Docusaurus 3 https://docusaurus.io/ . 证据：`website/README.md`
- **@puppeteer/browsers**（documentation）：Manage and launch browsers/drivers from a CLI or programmatically. 证据：`packages/browsers/README.md`
- **Puppeteer Angular Schematic**（documentation）：Adds Puppeteer-based e2e tests to your Angular project. 证据：`packages/ng-schematics/README.md`
- **bidi/core**（documentation）：bidi/core is a low-level layer that sits above the WebDriver BiDi transport to provide a structured API to WebDriver BiDi's flat API. In particular, bidi/core provides object-oriented semantics around WebDriver BiDi resources and automatically carries out the correct order of events in WebDriver BiDi through the use of events. 证据：`packages/puppeteer-core/src/bidi/core/README.md`
- **Injected**（documentation）：This folder contains code that is injected into every Puppeteer execution context. Each file is transpiled using esbuild into a script in src/generated which is then imported into server code. 证据：`packages/puppeteer-core/src/injected/README.md`
- **Templated Artifacts**（documentation）：These files are generated as TypeScript files in the src/generated folder. 证据：`packages/puppeteer-core/src/templates/README.md`
- **third party**（documentation）：This folder contains code that interacts with third party node modules that will be vendored with puppeteer during publishing. 证据：`packages/puppeteer-core/third_party/README.md`
- **Mocha Runner**（documentation）：Mocha Runner is a test runner on top of mocha. It uses /test/TestSuites.json and /test/TestExpectations.json files to run mocha tests in multiple configurations and interpret results. 证据：`tools/mocha-runner/README.md`
- **Package**（package_manifest）：{ "name": "puppeteer-repo", "private": true, "repository": { "type": "git", "url": "https://github.com/puppeteer/puppeteer" }, "type": "module", "scripts": { "build": "wireit", "build:tools": "wireit", "check": "npm run check --workspaces --if-present", "clean": "npm run clean --workspaces --if-present", "debug": "mocha --inspect-brk", "docs": "wireit", "doctest": "wireit", "format": "wireit", "format:eslint": "wireit", "format:expectations": "node tools/sort-test-expectations.mjs", "format:prettier": "prettier --write --cache . ", "lint": "wireit", "lint:eslint": "wireit", "lint:prettier": "prettier --check --cache .", "lint:expectations": "node tools/sort-test-expectations.mjs --lint", "p… 证据：`package.json`
- **Package**（package_manifest）：{ "name": "@puppeteer-test/test", "version": "latest", "private": true, "type": "module", "scripts": { "build": "wireit", "clean": "../tools/clean.mjs" }, "wireit": { "build": { "command": "tsc -b", "clean": "if-file-deleted", "dependencies": "../packages/puppeteer:build", "../packages/testserver:build" , "files": "src/ " , "output": "build/ ", "tsconfig.tsbuildinfo" } }, "dependencies": { "diff": "9.0.0", "mime": "4.1.0", "jpeg-js": "0.4.4", "pixelmatch": "7.1.0", "pngjs": "7.0.0" }, "devDependencies": { "@types/pngjs": "6.0.5" } } 证据：`test/package.json`
- **Package**（package_manifest）：{ "name": "website", "version": "0.0.0", "private": true, "scripts": { "docusaurus": "docusaurus", "start": "docusaurus start", "build": "docusaurus build", "swizzle": "docusaurus swizzle", "deploy": "docusaurus deploy", "clear": "docusaurus clear", "serve": "docusaurus serve", "write-translations": "docusaurus write-translations", "write-heading-ids": "docusaurus write-heading-ids", "archive": "node archive.js" }, "dependencies": { "@docsearch/react": "4.6.3", "@docusaurus/core": "3.10.1", "@docusaurus/plugin-client-redirects": "3.10.1", "@docusaurus/plugin-content-docs": "3.10.1", "@docusaurus/preset-classic": "3.10.1", "@docusaurus/remark-plugin-npm2yarn": "3.10.1", "@docusaurus/theme-co… 证据：`website/package.json`
- **Package**（package_manifest）：{ "name": "puppeteer-in-browser", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "build": "rm -rf out && rollup -c && terser out/main.js --compress --mangle --output out/main.min.js && gzip -k --best -r -f out" }, "keywords": , "author": "", "license": "MIT", "devDependencies": { "@rollup/plugin-node-resolve": "^15.2.3", "rollup": "^4.59.0", "terser": "^5.30.4" } } 证据：`examples/puppeteer-in-browser/package.json`
- **Package**（package_manifest）：{ "name": "puppeteer-in-extension", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "build": "rollup -c && cp manifest.json out/" }, "keywords": , "author": "", "license": "MIT", "devDependencies": { "@rollup/plugin-node-resolve": "^15.2.3", "rollup": "^4.59.0" } } 证据：`examples/puppeteer-in-extension/package.json`
- **Package**（package_manifest）：{ "name": "@puppeteer/browsers", "version": "3.0.2", "description": "Download and launch browsers", "scripts": { "build:docs": "wireit", "build": "wireit", "build:test": "wireit", "clean": "../../tools/clean.mjs", "test": "wireit" }, "type": "module", "bin": "lib/main-cli.js", "main": "./lib/main.js", "module": "./lib/main.js", "wireit": { "build": { "command": "tsc -b && node --experimental-strip-types ../../tools/chmod.ts 755 lib/main-cli.js", "files": "src/ / .ts", "tsconfig.json" , "clean": "if-file-deleted", "output": "lib/ " }, "build:docs": { "command": "api-extractor run --local --config \"./api-extractor.docs.json\"", "files": "api-extractor.docs.json", "lib/main.d.ts", "tsconfig.j… 证据：`packages/browsers/package.json`
- **Package**（package_manifest）：{ "name": "@puppeteer/ng-schematics", "version": "0.8.0", "description": "Puppeteer Angular schematics", "type": "module", "scripts": { "build": "wireit", "clean": "../../tools/clean.mjs", "dev:test": "npm run test --watch", "dev": "npm run build --watch", "unit": "wireit" }, "wireit": { "build": { "command": "tsc -b && node tools/copySchemaFiles.mjs", "clean": "if-file-deleted", "files": "tsconfig.json", "tsconfig.test.json", "src/ ", "test/src/ " , "output": "lib/ ", "test/build/ ", " .tsbuildinfo" }, "build:test": { "command": "tsc -b test/tsconfig.json" }, "unit": { "command": "node --test --test-reporter=spec \"test/build/ / .test.js\"", "dependencies": "build", "build:test" } }, "keyw… 证据：`packages/ng-schematics/package.json`
- **Package**（package_manifest）：{ "name": "puppeteer-core", "version": "25.0.2", "description": "A high-level API to control headless Chrome over the DevTools Protocol", "keywords": "puppeteer", "chrome", "headless", "automation" , "type": "module", "main": "./lib/puppeteer/puppeteer-core.js", "browser": "./lib/puppeteer/puppeteer-core-browser.js", "module": "./lib/puppeteer/puppeteer-core.js", "types": "./lib/types.d.ts", "exports": { ".": { "types": "./lib/types.d.ts", "import": "./lib/puppeteer/puppeteer-core.js", "require": "./lib/puppeteer/puppeteer-core.js" }, "./internal/ ": { "import": "./lib/puppeteer/ ", "require": "./lib/puppeteer/ " }, "./ ": { "import": "./ ", "require": "./ " } }, "repository": { "type": "gi… 证据：`packages/puppeteer-core/package.json`
- **Package**（package_manifest）：{ "type": "module" } 证据：`packages/puppeteer-core/third_party/parsel-js/package.json`
- **Package**（package_manifest）：{ "name": "puppeteer", "version": "25.0.2", "description": "A high-level API to control headless Chrome over the DevTools Protocol", "keywords": "puppeteer", "chrome", "headless", "automation" , "type": "module", "bin": "./lib/puppeteer/node/cli.js", "main": "./lib/puppeteer/puppeteer.js", "module": "./lib/puppeteer/puppeteer.js", "types": "./lib/types.d.ts", "exports": { ".": { "types": "./lib/types.d.ts", "import": "./lib/puppeteer/puppeteer.js", "require": "./lib/puppeteer/puppeteer.js" }, "./internal/ ": { "import": "./lib/puppeteer/ ", "require": "./lib/puppeteer/ " }, "./ ": { "import": "./ ", "require": "./ " } }, "repository": { "type": "git", "url": "https://github.com/puppeteer/pu… 证据：`packages/puppeteer/package.json`
- **Package**（package_manifest）：{ "name": "@puppeteer-test/installation", "version": "latest", "type": "module", "private": true, "scripts": { "build": "wireit", "clean": "../../tools/clean.mjs", "test": "wireit", "test-ci": "mocha" }, "wireit": { "build": { "command": "tsc -b", "clean": "if-file-deleted", "dependencies": "build:packages" , "files": "tsconfig.json", "src/ " , "output": "build/ ", "tsconfig.tsbuildinfo" }, "build:packages": { "command": "npm pack --quiet --workspace puppeteer --workspace puppeteer-core --workspace @puppeteer/browsers", "dependencies": "../../packages/puppeteer:build", "../../packages/puppeteer-core:build", "../../packages/browsers:build", "../../packages/testserver:build" , "files": , "out… 证据：`test/installation/package.json`
- **Package**（package_manifest）：{ "name": "@puppeteer/docgen", "version": "0.1.0", "type": "module", "private": true, "main": "./lib/docgen.js", "description": "Documentation generator for Puppeteer", "license": "Apache-2.0", "scripts": { "build": "wireit", "clean": "../clean.mjs" }, "wireit": { "build": { "command": "tsc -b", "clean": "if-file-deleted", "files": "src/ " , "output": "lib/ ", "tsconfig.tsbuildinfo" } }, "devDependencies": { "@microsoft/api-documenter": "7.30.5", "@microsoft/api-extractor-model": "7.33.8", "@microsoft/tsdoc": "0.16.0", "@rushstack/node-core-library": "5.22.0" } } 证据：`tools/docgen/package.json`
- **Package**（package_manifest）：{ "name": "@puppeteer/doctest", "version": "0.1.0", "type": "module", "private": true, "bin": "./bin/doctest.js", "description": "Tests JSDoc @example code within a file.", "license": "Apache-2.0", "scripts": { "build": "wireit", "clean": "../clean.mjs" }, "wireit": { "build": { "command": "tsc -b && node --experimental-strip-types ../../tools/chmod.ts 755 ./bin/doctest.js", "clean": "if-file-deleted", "files": "src/ " , "output": "bin/ ", "tsconfig.tsbuildinfo" } }, "devDependencies": { "@swc/core": "1.15.33", "@types/doctrine": "0.0.9", "@types/source-map-support": "0.5.10", "@types/yargs": "17.0.33", "acorn": "8.16.0", "doctrine": "3.0.0", "glob": "13.0.6", "package-directory": "8.2.0",… 证据：`tools/doctest/package.json`
- **Package**（package_manifest）：{ "name": "@puppeteer/eslint", "version": "0.1.0", "private": true, "type": "module", "main": "./lib/plugin.js", "repository": { "type": "git", "url": "https://github.com/puppeteer/puppeteer/tree/main/tools/eslint" }, "scripts": { "build": "wireit", "prepare": "wireit" }, "wireit": { "build": { "command": "tsc -b", "clean": "if-file-deleted", "files": "src/ " , "output": "lib/ ", "tsconfig.tsbuildinfo" }, "prepare": { "dependencies": "build" } }, "author": "The Chromium Authors", "license": "Apache-2.0", "devDependencies": { "@prettier/sync": "0.6.1", "@typescript-eslint/utils": "8.26.1" } } 证据：`tools/eslint/package.json`
- **Package**（package_manifest）：{ "name": "@puppeteer/mocha-runner", "version": "0.1.0", "type": "module", "private": true, "bin": "./bin/mocha-runner.js", "description": "Mocha runner for Puppeteer", "license": "Apache-2.0", "scripts": { "build": "wireit", "test": "wireit", "clean": "../clean.mjs" }, "wireit": { "build": { "command": "tsc -b && node --experimental-strip-types ../../tools/chmod.ts 755 ./bin/mocha-runner.js", "clean": "if-file-deleted", "files": "src/ " , "output": "bin/ ", "tsconfig.tsbuildinfo" , "dependencies": "../../packages/puppeteer-core:build" }, "test": { "command": "c8 node ./bin/test.js", "dependencies": "build" } }, "devDependencies": { "@types/yargs": "17.0.33", "c8": "11.0.0", "glob": "13.0.6… 证据：`tools/mocha-runner/package.json`
- **Contributing**（documentation）：First of all, thank you for your interest in Puppeteer! We'd love to accept your patches and contributions! 证据：`website/versioned_docs/version-25.0.2/contributing.md`
- **TestServer**（documentation）：This test server is used internally by Puppeteer to test Puppeteer itself. 证据：`packages/testserver/README.md`
- **Package**（package_manifest）：{ "name": "@pptr/testserver", "version": "0.6.1", "description": "testing server", "type": "module", "main": "lib/index.js", "scripts": { "build": "wireit", "clean": "../../tools/clean.mjs" }, "wireit": { "build": { "command": "tsc -b", "clean": "if-file-deleted", "files": "src/ " , "output": "lib/ ", "tsconfig.tsbuildinfo" } }, "repository": { "type": "git", "url": "https://github.com/puppeteer/puppeteer/tree/main/packages/testserver" }, "author": "The Chromium Authors", "license": "Apache-2.0", "dependencies": { "mime": "4.1.0", "ws": "8.20.0" }, "devDependencies": { "@types/ws": "8.18.1" } } 证据：`packages/testserver/package.json`
- **License**（source_file）：Apache License Version 2.0, January 2004 https://www.apache.org/licenses/ 证据：`LICENSE`
- **Changelog**（documentation）：Combined changelog for puppeteer and puppeteer-core. 证据：`docs/CHANGELOG.md`
- **Examples & Use cases**（documentation）：The Puppeteer repository https://github.com/puppeteer/puppeteer/tree/main/examples includes a small number of examples maintained by the Puppeteer team. 证据：`docs/examples.md`
- **FAQ**（documentation）：The Chrome Browser Automation team maintains the library, but we'd love your help and expertise on the project! See our contributing guide https://pptr.dev/contributing . 证据：`docs/faq.md`
- **Puppeteer**（documentation）：! build https://github.com/puppeteer/puppeteer/actions/workflows/ci.yml/badge.svg?branch=main https://github.com/puppeteer/puppeteer/actions/workflows/ci.yml ! npm puppeteer package https://img.shields.io/npm/v/puppeteer.svg https://npmjs.org/package/puppeteer 证据：`docs/index.md`
- **Supported browsers**（documentation）：Starting with v20.0.0 Puppeteer downloads and works with Chrome for Testing https://github.com/GoogleChromeLabs/chrome-for-testing?tab=readme-ov-file what-is-chrome-for-testing , which supports both headless and headful modes sharing the same code path in the browser. The old headless mode is now a separate program called chrome-headless-shell https://developer.chrome.com/blog/chrome-headless-shell use headless: 'shell' with Puppeteer . 证据：`docs/supported-browsers.md`
- **Troubleshooting**（documentation）：To keep this page up-to-date we largely rely on community contributions. Please send a PR if you notice something is no longer up-to-date. 证据：`docs/troubleshooting.md`
- **WebDriver BiDi support**（documentation）：WebDriver BiDi https://w3c.github.io/webdriver-bidi/ is a new cross-browser automation protocol currently under development, aiming to combine the best of both WebDriver “Classic” and CDP. WebDriver BiDi enables bi-directional communication, making it fast by default, and it comes packed with low-level control. 证据：`docs/webdriver-bidi.md`
- **API Reference**（documentation）：Accessibility ./puppeteer.accessibility.md 证据：`docs/api/index.md`
- **Accessibility class**（documentation）：The Accessibility class provides methods for inspecting the browser's accessibility tree. The accessibility tree is used by assistive technology such as screen readers https://en.wikipedia.org/wiki/Screen reader or switches https://en.wikipedia.org/wiki/Switch access . 证据：`docs/api/puppeteer.accessibility.md`
- **Accessibility.snapshot method**（documentation）：Captures the current state of the accessibility tree. The returned object represents the root accessible node of the page. 证据：`docs/api/puppeteer.accessibility.snapshot.md`
- **ActionOptions interface**（documentation）：A signal to abort the locator action. 证据：`docs/api/puppeteer.actionoptions.md`
- **ActionResult type**（documentation）：--- sidebar label: ActionResult --- ActionResult type Signature 证据：`docs/api/puppeteer.actionresult.md`
- **AdapterState type**（documentation）：--- sidebar label: AdapterState --- AdapterState type Emulated bluetooth adapter state. Signature 证据：`docs/api/puppeteer.adapterstate.md`
- **AddScreenParams interface**（documentation）：WorkAreaInsets ./puppeteer.workareainsets.md 证据：`docs/api/puppeteer.addscreenparams.md`
- **AutofillAddressField enum**（documentation）：Supported autofill address field names. 证据：`docs/api/puppeteer.autofilladdressfield.md`
- **AutofillData type**（documentation）：References: AutofillAddressField ./puppeteer.autofilladdressfield.md 证据：`docs/api/puppeteer.autofilldata.md`
- **Awaitable type**（documentation）：--- sidebar label: Awaitable --- Awaitable type Signature 证据：`docs/api/puppeteer.awaitable.md`
- **AwaitableIterable type**（documentation）：--- sidebar label: AwaitableIterable --- AwaitableIterable type Signature 证据：`docs/api/puppeteer.awaitableiterable.md`
- **AwaitablePredicate type**（documentation）：References: Awaitable ./puppeteer.awaitable.md 证据：`docs/api/puppeteer.awaitablepredicate.md`
- **AwaitedLocator type**（documentation）：References: Locator ./puppeteer.locator.md 证据：`docs/api/puppeteer.awaitedlocator.md`
- **BluetoothEmulation.disableEmulation method**（documentation）：BluetoothEmulation.disableEmulation method 证据：`docs/api/puppeteer.bluetoothemulation.disableemulation.md`
- **BluetoothEmulation.emulateAdapter method**（documentation）：BluetoothEmulation.emulateAdapter method 证据：`docs/api/puppeteer.bluetoothemulation.emulateadapter.md`
- **BluetoothEmulation interface**（documentation）：Exposes the bluetooth emulation abilities. 证据：`docs/api/puppeteer.bluetoothemulation.md`
- **BluetoothEmulation.simulatePreconnectedPeripheral method**（documentation）：BluetoothEmulation.simulatePreconnectedPeripheral method 证据：`docs/api/puppeteer.bluetoothemulation.simulatepreconnectedperipheral.md`
- **BluetoothManufacturerData interface**（documentation）：BluetoothManufacturerData interface 证据：`docs/api/puppeteer.bluetoothmanufacturerdata.md`
- **BoundingBox interface**（documentation）：Extends: Point ./puppeteer.point.md 证据：`docs/api/puppeteer.boundingbox.md`
- **BoxModel interface**（documentation）：--- sidebar label: BoxModel --- BoxModel interface Signature Properties Property Modifiers Type Description Default border Quad ./puppeteer.quad.md content Quad ./puppeteer.quad.md height number margin Quad ./puppeteer.quad.md padding Quad ./puppeteer.quad.md width number 证据：`docs/api/puppeteer.boxmodel.md`
- **Browser.addScreen method**（documentation）：Adds a new screen, returns the added screen information object ./puppeteer.screeninfo.md . 证据：`docs/api/puppeteer.browser.addscreen.md`
- 其余 20 条证据见 `AI_CONTEXT_PACK.json` 或 `EVIDENCE_INDEX.json`。

## 宿主 AI 必须遵守的规则

- **把本资产当作开工前上下文，而不是运行环境。**：AI Context Pack 只包含证据化项目理解，不包含目标项目的可执行状态。 证据：`docs/contributing.md`, `README.md`, `docker/README.md`
- **回答用户时区分可预览内容与必须安装后才能验证的内容。**：安装前体验的消费者价值来自降低误装和误判，而不是伪装成真实运行。 证据：`docs/contributing.md`, `README.md`, `docker/README.md`

## 用户开工前应该回答的问题

- 你准备在哪个宿主 AI 或本地环境中使用它？
- 你只是想先体验工作流，还是准备真实安装？
- 你最在意的是安装成本、输出质量、还是和现有规则的冲突？

## 验收标准

- 所有能力声明都能回指到 evidence_refs 中的文件路径。
- AI_CONTEXT_PACK.md 没有把预览包装成真实运行。
- 用户能在 3 分钟内看懂适合谁、能做什么、如何开始和风险边界。

---

## Doramagic Context Augmentation

下面内容用于强化 Repomix/AI Context Pack 主体。Human Manual 只提供阅读骨架；踩坑日志会被转成宿主 AI 必须遵守的工作约束。

## Human Manual 骨架

使用规则：这里只是项目阅读路线和显著性信号，不是事实权威。具体事实仍必须回到 repo evidence / Claim Graph。

宿主 AI 硬性规则：
- 不得把页标题、章节顺序、摘要或 importance 当作项目事实证据。
- 解释 Human Manual 骨架时，必须明确说它只是阅读路线/显著性信号。
- 能力、安装、兼容性、运行状态和风险判断必须引用 repo evidence、source path 或 Claim Graph。

- **Getting Started**：importance `high`
  - source_paths: README.md, packages/puppeteer/package.json, packages/puppeteer/install.mjs, docs/guides/getting-started.md
- **System Architecture**：importance `high`
  - source_paths: packages/puppeteer-core/src/index.ts, packages/puppeteer-core/src/api/api.ts, packages/puppeteer-core/src/cdp/cdp.ts, packages/puppeteer-core/src/bidi/bidi.ts
- **Package Structure**：importance `medium`
  - source_paths: packages/puppeteer-core/package.json, packages/puppeteer-core/src/puppeteer-core.ts, packages/puppeteer-core/src/puppeteer-core-browser.ts, packages/browsers/src/main.ts, packages/ng-schematics/package.json
- **Protocol Implementations**：importance `medium`
  - source_paths: packages/puppeteer-core/src/cdp/Connection.ts, packages/puppeteer-core/src/bidi/Connection.ts, packages/puppeteer-core/src/bidi/core/Connection.ts
- **CDP Implementation**：importance `high`
  - source_paths: packages/puppeteer-core/src/cdp/Connection.ts, packages/puppeteer-core/src/cdp/Browser.ts, packages/puppeteer-core/src/cdp/Page.ts, packages/puppeteer-core/src/cdp/NetworkManager.ts, packages/puppeteer-core/src/cdp/FrameManager.ts
- **WebDriver BiDi Implementation**：importance `medium`
  - source_paths: packages/puppeteer-core/src/bidi/Browser.ts, packages/puppeteer-core/src/bidi/core/BrowsingContext.ts, packages/puppeteer-core/src/bidi/core/Navigation.ts, packages/puppeteer-core/src/bidi/Page.ts, packages/puppeteer-core/src/bidi/Realm.ts
- **Page API**：importance `high`
  - source_paths: packages/puppeteer-core/src/api/Page.ts, packages/puppeteer-core/src/cdp/Page.ts, packages/puppeteer-core/src/bidi/Page.ts, packages/puppeteer-core/src/api/Frame.ts, packages/puppeteer-core/src/api/JSHandle.ts
- **Locators and Element Handles**：importance `high`
  - source_paths: packages/puppeteer-core/src/api/ElementHandle.ts, packages/puppeteer-core/src/api/locators/locators.ts, packages/puppeteer-core/src/common/AriaQueryHandler.ts, packages/puppeteer-core/src/common/CSSQueryHandler.ts, packages/puppeteer-core/src/common/CustomQueryHandler.ts

## Repo Inspection Evidence / 源码检查证据

- repo_clone_verified: true
- repo_inspection_verified: true
- repo_commit: `3aadc38c533caa8df87f381868291ede870883e2`
- inspected_files: `package.json`, `README.md`, `docs/contributing.md`, `docs/index.md`, `docs/troubleshooting.md`, `docs/webdriver-bidi.md`, `docs/examples.md`, `docs/faq.md`, `docs/supported-browsers.md`, `docs/CHANGELOG.md`, `docs/api/puppeteer.page.emulate.md`, `docs/api/puppeteer.locatorevents.md`, `docs/api/puppeteer.page.windowid.md`, `docs/api/puppeteer.page.evaluatehandle.md`, `docs/api/puppeteer.page.bringtofront.md`, `docs/api/puppeteer.commoneventemitter.removealllisteners.md`, `docs/api/puppeteer.quad.md`, `docs/api/puppeteer.page.setuseragent.md`, `docs/api/puppeteer.browser.setcookie.md`, `docs/api/puppeteer.permissionstate_2.md`

宿主 AI 硬性规则：
- 没有 repo_clone_verified=true 时，不得声称已经读过源码。
- 没有 repo_inspection_verified=true 时，不得把 README/docs/package 文件判断写成事实。
- 没有 quick_start_verified=true 时，不得声称 Quick Start 已跑通。

## Doramagic Pitfall Constraints / 踩坑约束

这些规则来自 Doramagic 发现、验证或编译过程中的项目专属坑点。宿主 AI 必须把它们当作工作约束，而不是普通说明文字。

### Constraint 1: 来源证据：Chrome Canary/Firefox Nightly test results

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Chrome Canary/Firefox Nightly test results
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | cevd_1aabe120a9df47a2adbd293381b50a64 | https://github.com/puppeteer/puppeteer/issues/12379 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 2: 来源证据：Puppeteer v25

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Puppeteer v25
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能影响升级、迁移或版本选择。
- Evidence: community_evidence:github | cevd_050f65ceff2a455da4a3538895a7538b | https://github.com/puppeteer/puppeteer/issues/14342 | 来源讨论提到 node 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 3: 来源证据：[Bug]: GHSA issued a false malicious package alert for puppeteer

- Trigger: GitHub 社区证据显示该项目存在一个安全/权限相关的待验证问题：[Bug]: GHSA issued a false malicious package alert for puppeteer
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | cevd_55588dfbd41442fdb8a2f4f1be57e4c9 | https://github.com/puppeteer/puppeteer/issues/14986 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 4: 来源证据：[Task]: Flaky `[fixtures.spec] Fixtures should dump browser process stderr`

- Trigger: GitHub 社区证据显示该项目存在一个安全/权限相关的待验证问题：[Task]: Flaky `[fixtures.spec] Fixtures should dump browser process stderr`
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能影响授权、密钥配置或安全边界。
- Evidence: community_evidence:github | cevd_9b1ef7c38ed14c41b3e4ce786adcdf26 | https://github.com/puppeteer/puppeteer/issues/14774 | 来源讨论提到 windows 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 5: 来源证据：[Bug]: @puppeteer/browsers silently corrupts Chrome cache on Node.js 26 (extract-zip 2.0.1)

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[Bug]: @puppeteer/browsers silently corrupts Chrome cache on Node.js 26 (extract-zip 2.0.1)
- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | cevd_5d1f448d8768460a806ab32e8d4f6997 | https://github.com/puppeteer/puppeteer/issues/14957 | 来源讨论提到 node 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 6: 来源证据：[Bug]: `setViewport` crashes on Firefox if uncaught

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[Bug]: `setViewport` crashes on Firefox if uncaught
- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。
- Why it matters: 可能阻塞安装或首次运行。
- Evidence: community_evidence:github | cevd_75bddb8a74194cf7a8978853f19db23a | https://github.com/puppeteer/puppeteer/issues/14989 | 来源讨论提到 node 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 7: 来源证据：[Bug]: chrome binary is not present when installing latest chrome

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[Bug]: chrome binary is not present when installing latest chrome
- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | cevd_1e85cdab2b684dda8e5c83f55b8ff7b6 | https://github.com/puppeteer/puppeteer/issues/14988 | 来源讨论提到 node 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 8: 来源证据：[Feature]: Make proxy-agent dependency optional

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[Feature]: Make proxy-agent dependency optional
- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。
- Why it matters: 可能影响升级、迁移或版本选择。
- Evidence: community_evidence:github | cevd_195c51e4a5e84edda14a2a79b456821c | https://github.com/puppeteer/puppeteer/issues/13775 | 来源讨论提到 node 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 9: 来源证据：browsers: v3.0.0

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：browsers: v3.0.0
- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。
- Why it matters: 可能影响升级、迁移或版本选择。
- Evidence: community_evidence:github | cevd_bf2d83568c54447fbfd3047d24be0c48 | https://github.com/puppeteer/puppeteer/releases/tag/browsers-v3.0.0 | 来源讨论提到 node 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 10: 来源证据：browsers: v3.0.2

- Trigger: GitHub 社区证据显示该项目存在一个能力理解相关的待验证问题：browsers: v3.0.2
- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | cevd_c9f08632e7ee4e9485d27b864a21e462 | https://github.com/puppeteer/puppeteer/releases/tag/browsers-v3.0.2 | 来源类型 github_release 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。
