chrome-ai-bridge 1.0.12 → 1.0.14

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.
@@ -95,7 +95,12 @@ export function setupGraceful(options) {
95
95
  // Register signal handlers
96
96
  process.on('SIGTERM', () => gracefulExit('SIGTERM'));
97
97
  process.on('SIGINT', () => gracefulExit('SIGINT'));
98
- process.on('disconnect', () => gracefulExit('disconnect')); // Parent died
98
+ // Note: 'disconnect' is intentionally NOT triggering gracefulExit
99
+ // Claude Code sends disconnect when user presses Esc to cancel a task,
100
+ // but the MCP server should continue running for subsequent tool calls
101
+ process.on('disconnect', () => {
102
+ console.error('[graceful] Parent process disconnected (ignored - MCP server continues)');
103
+ });
99
104
  process.on('uncaughtException', async (err) => {
100
105
  console.error('[graceful] Uncaught exception:', err);
101
106
  await gracefulExit('uncaughtException');
@@ -235,6 +235,8 @@ export async function waitForLoginStatus(page, provider, timeoutMs = LOGIN_TIMEO
235
235
  catch {
236
236
  // Ignore errors (page might be closed)
237
237
  }
238
+ // 監視開始を即座に通知(最初の進捗表示まで15秒待たせない)
239
+ log('👀 ログインを監視中... 検出でき次第すぐにお知らせします');
238
240
  while (Date.now() - start < timeoutMs) {
239
241
  const status = await getLoginStatus(page, provider);
240
242
  if (status === LoginStatus.LOGGED_IN) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chrome-ai-bridge",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "MCP server bridging Chrome browser and AI assistants (ChatGPT, Gemini). Browser automation + AI consultation.",
5
5
  "type": "module",
6
6
  "bin": "./scripts/cli.mjs",