chrome-devtools-mcp-for-extension 0.9.20 → 0.9.21

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.
@@ -228,10 +228,16 @@ export const askChatGPTWeb = defineTool({
228
228
  while (true) {
229
229
  await new Promise((resolve) => setTimeout(resolve, 2000));
230
230
  const status = await page.evaluate(() => {
231
- // Check if streaming
231
+ // Check if streaming - check both textContent and aria-label
232
232
  const buttons = Array.from(document.querySelectorAll('button'));
233
- const isStreaming = buttons.some((btn) => btn.textContent?.includes('ストリーミングの停止') ||
234
- btn.textContent?.includes('停止'));
233
+ const isStreaming = buttons.some((btn) => {
234
+ const text = btn.textContent || '';
235
+ const aria = btn.getAttribute('aria-label') || '';
236
+ return (text.includes('ストリーミングの停止') ||
237
+ text.includes('停止') ||
238
+ aria.includes('ストリーミングの停止') ||
239
+ aria.includes('停止'));
240
+ });
235
241
  if (!isStreaming) {
236
242
  // Get final response
237
243
  const assistantMessages = document.querySelectorAll('[data-message-author-role="assistant"]');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chrome-devtools-mcp-for-extension",
3
- "version": "0.9.20",
3
+ "version": "0.9.21",
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",