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

Commit 9360fff

Browse files
authored
Merge branch 'main' into telemetry/clearcut-logger-02
2 parents 8c12209 + f81cd2d commit 9360fff

23 files changed

+480
-134
lines changed

.github/workflows/pre-release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Pre-release
33
permissions: read-all
44

55
on:
6+
workflow_dispatch:
67
push:
78
branches:
89
- release-please-*
@@ -23,10 +24,5 @@ jobs:
2324
cache: npm
2425
node-version-file: '.nvmrc'
2526

26-
- name: Install MCP Publisher
27-
run: |
28-
export OS=$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
29-
curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_${OS}.tar.gz" | tar xz mcp-publisher
30-
3127
- name: Verify server.json
3228
run: npm run verify-server-json-version

.github/workflows/run-tests.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,10 @@ jobs:
5757
shell: bash
5858
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
5959

60-
- name: Run tests (node20)
61-
if: ${{ matrix.node == '20' }}
62-
shell: bash
63-
run: npm run test:node20
64-
6560
- name: Run tests
6661
shell: bash
67-
if: ${{ matrix.node != '20' }}
68-
run: npm run test:no-build
62+
# Retry tests if they fail in the merge queue.
63+
run: npm run test:no-build -- ${{ github.event_name == 'merge_group' && '--retry' || '' }}
6964

7065
# Gating job for branch protection.
7166
test-success:

GEMINI.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Instructions
22

3-
- use `npm run build` to run tsc and test build
4-
- use `npm run test` to run tests, run all tests to verify correctness
3+
- Use only scripts from `package.json` to run commands.
4+
- Use `npm run build` to run tsc and test build.
5+
- Use `npm run test` to build and run tests, run all tests to verify correctness.
6+
- use `npm run test path-to-test.ts` to build and run a single test file, for example, `npm run test tests/McpContext.test.ts`.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Chrome DevTools MCP will not start the browser instance automatically using this
9494
Use the Claude Code CLI to add the Chrome DevTools MCP server (<a href="https://code.claude.com/docs/en/mcp">guide</a>):
9595

9696
```bash
97-
claude mcp add chrome-devtools npx chrome-devtools-mcp@latest
97+
claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest
9898
```
9999

100100
</details>

docs/tool-reference.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,14 +234,17 @@
234234

235235
- **autoStop** (boolean) **(required)**: Determines if the trace recording should be automatically stopped.
236236
- **reload** (boolean) **(required)**: Determines if, once tracing has started, the page should be automatically reloaded.
237+
- **filePath** (string) _(optional)_: The absolute file path, or a file path relative to the current working directory, to save the raw trace data. For example, trace.json.gz (compressed) or trace.json (uncompressed).
237238

238239
---
239240

240241
### `performance_stop_trace`
241242

242243
**Description:** Stops the active performance trace recording on the selected page.
243244

244-
**Parameters:** None
245+
**Parameters:**
246+
247+
- **filePath** (string) _(optional)_: The absolute file path, or a file path relative to the current working directory, to save the raw trace data. For example, trace.json.gz (compressed) or trace.json (uncompressed).
245248

246249
---
247250

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export default defineConfig([
6060
name: 'TypeScript rules',
6161
rules: {
6262
'@local/check-license': 'error',
63+
curly: ['error', 'all'],
6364

6465
'no-undef': 'off',
6566
'no-unused-vars': 'off',

package-lock.json

Lines changed: 67 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@
1616
"docs:generate": "node --experimental-strip-types scripts/generate-docs.ts",
1717
"start": "npm run build && node build/src/index.js",
1818
"start-debug": "DEBUG=mcp:* DEBUG_COLORS=false npm run build && node build/src/index.js",
19-
"test:node20": "node --import ./build/tests/setup.js --test-reporter spec --test-force-exit --test build/tests",
20-
"test:no-build": "node --import ./build/tests/setup.js --no-warnings=ExperimentalWarning --experimental-print-required-tla --test-reporter spec --test-force-exit --test \"build/tests/**/*.test.js\"",
21-
"test": "npm run build && npm run test:no-build",
22-
"test:only": "npm run build && npm run test:only:no-build",
23-
"test:only:no-build": "node --import ./build/tests/setup.js --no-warnings=ExperimentalWarning --test-reporter spec --test-force-exit --test --test-only \"build/tests/**/*.test.js\"",
24-
"test:update-snapshots": "npm run build && node --import ./build/tests/setup.js --no-warnings=ExperimentalWarning --test-force-exit --test --test-update-snapshots \"build/tests/**/*.test.js\"",
19+
"test": "npm run build && node scripts/test.mjs",
20+
"test:no-build": "node scripts/test.mjs",
21+
"test:only": "npm run build && node scripts/test.mjs --test-only",
22+
"test:update-snapshots": "npm run build && node scripts/test.mjs --test-update-snapshots",
2523
"prepare": "node --experimental-strip-types scripts/prepare.ts",
2624
"verify-server-json-version": "node --experimental-strip-types scripts/verify-server-json-version.ts"
2725
},
@@ -53,7 +51,7 @@
5351
"@types/yargs": "^17.0.33",
5452
"@typescript-eslint/eslint-plugin": "^8.43.0",
5553
"@typescript-eslint/parser": "^8.43.0",
56-
"chrome-devtools-frontend": "1.0.1566234",
54+
"chrome-devtools-frontend": "1.0.1567721",
5755
"core-js": "3.47.0",
5856
"debug": "4.4.3",
5957
"eslint": "^9.35.0",

0 commit comments

Comments
 (0)