chrome-devtools-mcp-for-extension 0.16.1 → 0.16.2

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,6 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import { CHATGPT_CONFIG } from './config.js';
7
+ import { ensureLoggedIn } from './login-helper.js';
7
8
  /**
8
9
  * UI elements to check during health verification
9
10
  */
@@ -77,11 +78,15 @@ export async function verifyUIHealth(browser) {
77
78
  });
78
79
  // Wait for page to be ready
79
80
  await new Promise((resolve) => setTimeout(resolve, 2000));
80
- // Check login status
81
- const currentUrl = page.url();
82
- if (currentUrl.includes('auth') || currentUrl.includes('login')) {
83
- console.error('⚠️ Not logged in to ChatGPT - skipping UI verification');
84
- console.error(' Please log in manually for full functionality');
81
+ // Ensure logged in with user guidance
82
+ console.error(' Checking login status...');
83
+ const isLoggedIn = await ensureLoggedIn(page, {
84
+ maxWaitTime: 300000, // 5 minutes
85
+ onStatusUpdate: (msg) => console.error(` ${msg}`),
86
+ });
87
+ if (!isLoggedIn) {
88
+ console.error('⚠️ Login timeout - skipping UI verification');
89
+ console.error(' Please restart and log in to ChatGPT');
85
90
  return;
86
91
  }
87
92
  // Check each UI element
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chrome-devtools-mcp-for-extension",
3
- "version": "0.16.1",
3
+ "version": "0.16.2",
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",