chrome-devtools-mcp-for-extension 0.16.2 → 0.16.3
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.
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { CHATGPT_CONFIG } from './config.js';
|
|
7
|
-
import {
|
|
7
|
+
import { isLoginRequired } from './login-helper.js';
|
|
8
8
|
/**
|
|
9
9
|
* UI elements to check during health verification
|
|
10
10
|
*/
|
|
@@ -78,17 +78,16 @@ export async function verifyUIHealth(browser) {
|
|
|
78
78
|
});
|
|
79
79
|
// Wait for page to be ready
|
|
80
80
|
await new Promise((resolve) => setTimeout(resolve, 2000));
|
|
81
|
-
//
|
|
81
|
+
// Check login status (but don't wait for login to avoid timeout)
|
|
82
82
|
console.error(' Checking login status...');
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
console.error('⚠️ Login timeout - skipping UI verification');
|
|
89
|
-
console.error(' Please restart and log in to ChatGPT');
|
|
83
|
+
const needsLogin = await isLoginRequired(page);
|
|
84
|
+
if (needsLogin) {
|
|
85
|
+
console.error('⚠️ ChatGPT login required');
|
|
86
|
+
console.error(' 💡 Login will be prompted when you use ChatGPT tools');
|
|
87
|
+
console.error(' Skipping UI verification - will verify after login');
|
|
90
88
|
return;
|
|
91
89
|
}
|
|
90
|
+
console.error('✅ Already logged in');
|
|
92
91
|
// Check each UI element
|
|
93
92
|
const results = [];
|
|
94
93
|
for (const element of UI_ELEMENTS) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chrome-devtools-mcp-for-extension",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.3",
|
|
4
4
|
"description": "MCP server for Chrome extension development with Web Store automation. Fork of chrome-devtools-mcp with extension-specific tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": "./build/src/index.js",
|