chrome-devtools-mcp-for-extension 0.18.3 → 0.18.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.
|
@@ -254,12 +254,17 @@ export const askGeminiWeb = defineTool({
|
|
|
254
254
|
const stopButton = buttons.find(b => b.textContent?.includes('回答を停止') ||
|
|
255
255
|
b.textContent?.includes('Stop') ||
|
|
256
256
|
b.getAttribute('aria-label')?.includes('Stop'));
|
|
257
|
+
// Check for "プロンプトを送信" button - this indicates response is complete
|
|
258
|
+
const sendButton = buttons.find(b => b.textContent?.includes('プロンプトを送信') ||
|
|
259
|
+
b.getAttribute('aria-label')?.includes('プロンプトを送信') ||
|
|
260
|
+
b.getAttribute('aria-label')?.includes('Send message'));
|
|
257
261
|
// Check for status text
|
|
258
262
|
const bodyText = document.body.innerText;
|
|
259
263
|
const isTyping = bodyText.includes('Gemini が入力中です') ||
|
|
260
264
|
bodyText.includes('Gemini is typing');
|
|
261
265
|
const isComplete = bodyText.includes('Gemini が回答しました') ||
|
|
262
|
-
bodyText.includes('Gemini has responded')
|
|
266
|
+
bodyText.includes('Gemini has responded') ||
|
|
267
|
+
!!sendButton; // "プロンプトを送信" button indicates completion
|
|
263
268
|
const isGenerating = !!stopButton || isTyping;
|
|
264
269
|
// Get the response content from model-response elements
|
|
265
270
|
const modelResponses = Array.from(document.querySelectorAll('model-response'));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chrome-devtools-mcp-for-extension",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.4",
|
|
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": "./scripts/cli.mjs",
|