chrome-devtools-mcp-for-extension 0.9.29 → 0.9.31
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.
|
@@ -234,16 +234,20 @@ async function enableDeepResearchMode(page, response) {
|
|
|
234
234
|
return { success: false, error: plusClicked.error };
|
|
235
235
|
}
|
|
236
236
|
response.appendResponseLine('✅ +ボタン(ファイルの追加など)をクリック');
|
|
237
|
-
|
|
237
|
+
// Wait for menu to appear
|
|
238
|
+
await page.waitForSelector('[role="menuitemradio"]', { timeout: 5000 });
|
|
239
|
+
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
238
240
|
// Step 2: Click "Deep Research" menuitemradio
|
|
239
241
|
const deepResearchSelected = await page.evaluate(() => {
|
|
240
242
|
const menuItems = Array.from(document.querySelectorAll('[role="menuitemradio"]'));
|
|
243
|
+
// デバッグ: 見つかったmenuitemradioを全て列挙
|
|
244
|
+
const debugInfo = menuItems.map(item => item.textContent?.trim()).join(', ');
|
|
241
245
|
const deepResearchItem = menuItems.find((item) => item.textContent?.includes('Deep Research') ||
|
|
242
246
|
item.textContent?.includes('リサーチ'));
|
|
243
247
|
if (!deepResearchItem) {
|
|
244
248
|
return {
|
|
245
249
|
success: false,
|
|
246
|
-
error:
|
|
250
|
+
error: `DeepResearch menuitemradio が見つかりません (found: ${menuItems.length} items: ${debugInfo})`,
|
|
247
251
|
};
|
|
248
252
|
}
|
|
249
253
|
deepResearchItem.click();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chrome-devtools-mcp-for-extension",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.31",
|
|
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",
|