豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 2f158cb

Browse files
committed
chore: try snapshot
1 parent 76c7d57 commit 2f158cb

File tree

9 files changed

+34883
-26
lines changed

9 files changed

+34883
-26
lines changed

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Build
4545
run: npm run bundle
4646
env:
47-
NODE_OPTIONS: '--max_old_space_size=4096'
47+
NODE_OPTIONS: '--max_old_space_size=8192'
4848

4949
- name: Set up Node.js
5050
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,8 @@ If you run into any issues, checkout our [troubleshooting guide](./docs/troubles
347347
- **Emulation** (2 tools)
348348
- [`emulate`](docs/tool-reference.md#emulate)
349349
- [`resize_page`](docs/tool-reference.md#resize_page)
350-
- **Performance** (3 tools)
350+
- **Performance** (4 tools)
351+
- [`lighthouse_audit`](docs/tool-reference.md#lighthouse_audit)
351352
- [`performance_analyze_insight`](docs/tool-reference.md#performance_analyze_insight)
352353
- [`performance_start_trace`](docs/tool-reference.md#performance_start_trace)
353354
- [`performance_stop_trace`](docs/tool-reference.md#performance_stop_trace)

docs/tool-reference.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
- **[Emulation](#emulation)** (2 tools)
2222
- [`emulate`](#emulate)
2323
- [`resize_page`](#resize_page)
24-
- **[Performance](#performance)** (3 tools)
24+
- **[Performance](#performance)** (4 tools)
25+
- [`lighthouse_audit`](#lighthouse_audit)
2526
- [`performance_analyze_insight`](#performance_analyze_insight)
2627
- [`performance_start_trace`](#performance_start_trace)
2728
- [`performance_stop_trace`](#performance_stop_trace)
@@ -225,6 +226,14 @@
225226

226227
## Performance
227228

229+
### `lighthouse_audit`
230+
231+
**Description:** Runs a Lighthouse accessibility audit on the currently selected page. This tool analyzes the page for accessibility issues and provides a detailed report with scores and recommendations.
232+
233+
**Parameters:** None
234+
235+
---
236+
228237
### `performance_analyze_insight`
229238

230239
**Description:** Provides more detailed information on a specific Performance Insight of an insight set that was highlighted in the results of a trace recording.

scripts/prepare.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ function removeConflictingGlobalDeclaration(): void {
2727
projectRoot,
2828
'node_modules/@paulirish/trace_engine/models/trace/ModelImpl.d.ts',
2929
);
30-
console.log('Removing conflicting global declaration from @paulirish/trace_engine...');
30+
console.log(
31+
'Removing conflicting global declaration from @paulirish/trace_engine...',
32+
);
3133
const content = readFileSync(filePath, 'utf-8');
3234
// Remove the declare global block using regex
3335
// Matches: declare global { ... interface HTMLElementEventMap { ... } ... }

src/third_party/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@ export {
3838
type ChromeReleaseChannel as BrowsersChromeReleaseChannel,
3939
} from '@puppeteer/browsers';
4040

41-
export * as Lighthouse from 'lighthouse';
41+
export {snapshot} from './lighthouse-devtools-mcp-bundle.js';
42+
4243
export * as DevTools from '../../node_modules/chrome-devtools-frontend/mcp/mcp.js';

0 commit comments

Comments
 (0)