Skip to content

Chrome DevTools for coding agents

chore(deps): bump third_party/devtools-frontend from `3f3ec5e` to `2fdb9c0` (#3440)

dependabot[bot]b2f5c00b834d
diff --git a/.gitignore b/.gitignore
index 208e2f79..cbcc0d20 100644
--- a/.gitignore
+++ b/.gitignore
@@ -161,6 +161,7 @@ third_party/.gclient*
third_party/.gcs_entries
third_party/cpython3
third_party/depot_tools/
+third_party/inspector_protocol
third_party/ninja
third_party/node
third_party/typescript
diff --git a/scripts/link-devtools-deps.ts b/scripts/link-devtools-deps.ts
index 4fac9e99..724b893e 100644
--- a/scripts/link-devtools-deps.ts
+++ b/scripts/link-devtools-deps.ts
@@ -18,6 +18,10 @@ export function linkDevToolsDeps(): void {
['third_party/node', 'devtools-frontend/third_party/node'],
['third_party/typescript', 'devtools-frontend/third_party/typescript'],
['third_party/cpython3', 'devtools-frontend/third_party/cpython3'],
+ [
+ 'third_party/inspector_protocol',
+ 'devtools-frontend/third_party/inspector_protocol',
+ ],
];
for (const [linkRel, targetRel] of links) {
diff --git a/scripts/prepare.ts b/scripts/prepare.ts
index 73295d28..5fc346ed 100644
--- a/scripts/prepare.ts
+++ b/scripts/prepare.ts
@@ -51,6 +51,7 @@ const SPARSE_CHECKOUT_PATTERNS = [
'"/node_modules/"',
'"/scripts/"',
'"/third_party/"',
+ '"/v8/"',
'"/**/BUILD.gn"',
'"/**/*.gni"',
].join(' ');
@@ -62,14 +63,21 @@ function ensureSubmodule(): void {
'devtools-frontend',
);
const mcpEntry = resolve(devtoolsFrontendDir, 'mcp', 'mcp.ts');
- const gnScriptsDir = resolve(devtoolsFrontendDir, 'scripts', 'build');
+ // The newest path that SPARSE_CHECKOUT_PATTERNS added: a checkout that
+ // has mcp.ts but not this file predates the current patterns.
+ const sparseMarker = resolve(
+ devtoolsFrontendDir,
+ 'v8',
+ 'include',
+ 'js_protocol.pdl',
+ );
- if (existsSync(mcpEntry) && existsSync(gnScriptsDir)) {
+ if (existsSync(mcpEntry) && existsSync(sparseMarker)) {
console.log('devtools-frontend submodule is ready.');
return;
}
- if (existsSync(mcpEntry) && !existsSync(gnScriptsDir)) {
+ if (existsSync(mcpEntry) && !existsSync(sparseMarker)) {
console.log('Updating devtools-frontend sparse checkout patterns...');
try {
execSync(
diff --git a/third_party/devtools-frontend b/third_party/devtools-frontend
index 3f3ec5ed..2fdb9c00 160000
--- a/third_party/devtools-frontend
+++ b/third_party/devtools-frontend
@@ -1 +1 @@
-Subproject commit 3f3ec5ed0b00f5bf28c38cda92b531877af8be96
+Subproject commit 2fdb9c006c7b6e18422c47758b3281894e6d677a