chrome-devtools-mcp-for-extension 0.9.18 → 0.9.19
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.
|
@@ -207,14 +207,8 @@ export const askChatGPTWeb = defineTool({
|
|
|
207
207
|
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
208
208
|
// Click send button
|
|
209
209
|
const sent = await page.evaluate(() => {
|
|
210
|
-
const
|
|
211
|
-
|
|
212
|
-
const svg = btn.querySelector('svg');
|
|
213
|
-
return (svg &&
|
|
214
|
-
!btn.disabled &&
|
|
215
|
-
btn.offsetParent !== null);
|
|
216
|
-
});
|
|
217
|
-
if (sendButton) {
|
|
210
|
+
const sendButton = document.querySelector('button[data-testid="send-button"]');
|
|
211
|
+
if (sendButton && !sendButton.disabled) {
|
|
218
212
|
sendButton.click();
|
|
219
213
|
return true;
|
|
220
214
|
}
|
|
@@ -224,6 +218,11 @@ export const askChatGPTWeb = defineTool({
|
|
|
224
218
|
response.appendResponseLine('❌ 送信ボタンが見つかりません');
|
|
225
219
|
return;
|
|
226
220
|
}
|
|
221
|
+
// Wait for message to actually be sent (user message appears in DOM)
|
|
222
|
+
await page.waitForFunction(() => {
|
|
223
|
+
const messages = document.querySelectorAll('[data-message-author-role="user"]');
|
|
224
|
+
return messages.length > 0;
|
|
225
|
+
}, { timeout: 10000 });
|
|
227
226
|
response.appendResponseLine('✅ 質問送信完了');
|
|
228
227
|
// Step 5: Monitor streaming with progress updates
|
|
229
228
|
response.appendResponseLine('ChatGPTの回答を待機中... (10秒ごとに進捗を表示)');
|
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.19",
|
|
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",
|