Skip to content

Commit 52a3262

Browse files
committed
chore: try snapshot
1 parent ca57104 commit 52a3262

9 files changed

Lines changed: 34883 additions & 26 deletions

File tree

.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
@@ -372,7 +372,8 @@ If you run into any issues, checkout our [troubleshooting guide](./docs/troubles
372372
- **Emulation** (2 tools)
373373
- [`emulate`](docs/tool-reference.md#emulate)
374374
- [`resize_page`](docs/tool-reference.md#resize_page)
375-
- **Performance** (3 tools)
375+
- **Performance** (4 tools)
376+
- [`lighthouse_audit`](docs/tool-reference.md#lighthouse_audit)
376377
- [`performance_analyze_insight`](docs/tool-reference.md#performance_analyze_insight)
377378
- [`performance_start_trace`](docs/tool-reference.md#performance_start_trace)
378379
- [`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)
@@ -228,6 +229,14 @@
228229

229230
## Performance
230231

232+
### `lighthouse_audit`
233+
234+
**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.
235+
236+
**Parameters:** None
237+
238+
---
239+
231240
### `performance_analyze_insight`
232241

233242
**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)