chrome-devtools-mcp-for-extension 0.18.6 → 0.18.8

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.
@@ -277,9 +277,26 @@ export const askGeminiWeb = defineTool({
277
277
  const status = await page.evaluate(() => {
278
278
  // Check for generating indicators
279
279
  const buttons = Array.from(document.querySelectorAll('button'));
280
- const stopButton = buttons.find(b => b.textContent?.includes('回答を停止') ||
281
- b.textContent?.includes('Stop') ||
282
- b.getAttribute('aria-label')?.includes('Stop'));
280
+ const stopButton = buttons.find(b => {
281
+ // Text-based detection
282
+ const text = b.textContent || '';
283
+ const ariaLabel = b.getAttribute('aria-label') || '';
284
+ if (text.includes('回答を停止') || text.includes('Stop') ||
285
+ ariaLabel.includes('Stop') || ariaLabel.includes('停止') ||
286
+ ariaLabel.includes('中止') || ariaLabel.includes('Cancel')) {
287
+ return true;
288
+ }
289
+ // Icon-based detection: mat-icon with fonticon="stop" or data-mat-icon-name="stop"
290
+ const matIcon = b.querySelector('mat-icon');
291
+ if (matIcon) {
292
+ const fonticon = matIcon.getAttribute('fonticon');
293
+ const iconName = matIcon.getAttribute('data-mat-icon-name');
294
+ if (fonticon === 'stop' || iconName === 'stop') {
295
+ return true;
296
+ }
297
+ }
298
+ return false;
299
+ });
283
300
  // Check for "プロンプトを送信" button - this indicates response is complete
284
301
  // Must be enabled (not disabled) to indicate completion
285
302
  const sendButton = buttons.find(b => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chrome-devtools-mcp-for-extension",
3
- "version": "0.18.6",
3
+ "version": "0.18.8",
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",