@narumitw/pi-chrome-devtools 0.49.2 → 0.49.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +8 -5
- package/src/browser-manager.ts +4 -0
package/README.md
CHANGED
|
@@ -43,7 +43,7 @@ pi -e npm:@narumitw/pi-chrome-devtools
|
|
|
43
43
|
Try this package locally from the repository root:
|
|
44
44
|
|
|
45
45
|
```bash
|
|
46
|
-
pi -e ./
|
|
46
|
+
pi -e ./packages/pi-chrome-devtools
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
## 🚀 Browser startup
|
|
@@ -65,14 +65,14 @@ browser discovery checks platform-specific Chrome, Chromium, Brave, and Microsof
|
|
|
65
65
|
Disable auto-launch to keep the older manual flow:
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
|
-
PI_CHROME_DEVTOOLS_AUTO_LAUNCH=0 pi -e ./
|
|
68
|
+
PI_CHROME_DEVTOOLS_AUTO_LAUNCH=0 pi -e ./packages/pi-chrome-devtools
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
Force a browser executable or endpoint if needed:
|
|
72
72
|
|
|
73
73
|
```bash
|
|
74
|
-
PI_CHROME_DEVTOOLS_BROWSER=/usr/bin/brave-browser pi -e ./
|
|
75
|
-
PI_CHROME_DEVTOOLS_HOST=127.0.0.1 PI_CHROME_DEVTOOLS_PORT=9223 pi -e ./
|
|
74
|
+
PI_CHROME_DEVTOOLS_BROWSER=/usr/bin/brave-browser pi -e ./packages/pi-chrome-devtools
|
|
75
|
+
PI_CHROME_DEVTOOLS_HOST=127.0.0.1 PI_CHROME_DEVTOOLS_PORT=9223 pi -e ./packages/pi-chrome-devtools
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
Manual launch still works and is required for remote endpoints, opt-out mode, or unsupported WSL
|
|
@@ -190,7 +190,7 @@ filename is deprecated and will be removed in a future major release.
|
|
|
190
190
|
## 🗂️ Package layout
|
|
191
191
|
|
|
192
192
|
```txt
|
|
193
|
-
|
|
193
|
+
packages/pi-chrome-devtools/
|
|
194
194
|
├── src/
|
|
195
195
|
│ ├── index.ts # Pi package entrypoint
|
|
196
196
|
│ ├── chrome-devtools.ts # Extension registration and command orchestration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@narumitw/pi-chrome-devtools",
|
|
3
|
-
"version": "0.49.
|
|
3
|
+
"version": "0.49.4",
|
|
4
4
|
"description": "Pi extension that exposes Chrome DevTools Protocol tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,6 +23,9 @@
|
|
|
23
23
|
"./src/index.ts"
|
|
24
24
|
]
|
|
25
25
|
},
|
|
26
|
+
"piExtension": {
|
|
27
|
+
"lifecycle": "stable"
|
|
28
|
+
},
|
|
26
29
|
"scripts": {
|
|
27
30
|
"check": "biome check . && npm run typecheck",
|
|
28
31
|
"format": "biome check --write .",
|
|
@@ -33,9 +36,9 @@
|
|
|
33
36
|
"typebox": "*"
|
|
34
37
|
},
|
|
35
38
|
"devDependencies": {
|
|
36
|
-
"@biomejs/biome": "2.5.
|
|
37
|
-
"@earendil-works/pi-coding-agent": "0.
|
|
38
|
-
"typebox": "1.3.
|
|
39
|
+
"@biomejs/biome": "2.5.7",
|
|
40
|
+
"@earendil-works/pi-coding-agent": "0.84.1",
|
|
41
|
+
"typebox": "1.3.11",
|
|
39
42
|
"typescript": "7.0.2"
|
|
40
43
|
},
|
|
41
44
|
"dependencies": {
|
|
@@ -44,6 +47,6 @@
|
|
|
44
47
|
"repository": {
|
|
45
48
|
"type": "git",
|
|
46
49
|
"url": "https://github.com/narumiruna/pi-extensions",
|
|
47
|
-
"directory": "
|
|
50
|
+
"directory": "packages/pi-chrome-devtools"
|
|
48
51
|
}
|
|
49
52
|
}
|
package/src/browser-manager.ts
CHANGED
|
@@ -121,6 +121,10 @@ async function launchBrowserCandidate(candidate: BrowserCandidate, waitMs: numbe
|
|
|
121
121
|
const args = [
|
|
122
122
|
`--remote-debugging-port=${portArgument}`,
|
|
123
123
|
`--user-data-dir=${userDataDir}`,
|
|
124
|
+
// Chrome 138+ de-elevates when launched from an elevated process on Windows: the
|
|
125
|
+
// spawned process relaunches a de-elevated child and exits immediately, which the
|
|
126
|
+
// exit watchdog misreads as a failed launch.
|
|
127
|
+
...(process.platform === "win32" ? ["--do-not-de-elevate"] : []),
|
|
124
128
|
"--no-first-run",
|
|
125
129
|
"--no-default-browser-check",
|
|
126
130
|
"about:blank",
|