@raolin2025/claude-code-node 2.6.7 → 2.6.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/core/cli.js +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raolin2025/claude-code-node",
3
- "version": "2.6.7",
3
+ "version": "2.6.8",
4
4
  "description": "Node.js AI Code Agent CLI - Zero dependencies, pure JavaScript, security hardened, multi-channel notifications, Telegram & QQ Bot remote programming, rich media upload, multi-account management",
5
5
  "type": "module",
6
6
  "main": "src/core/index.js",
package/src/core/cli.js CHANGED
@@ -1008,6 +1008,9 @@ const systemPrompt = cliArgs.systemPrompt || DEFAULT_SYSTEM_PROMPT
1008
1008
  }
1009
1009
  },
1010
1010
  })
1011
+ // 关键:把 startBuiltinListeners 内置监听器的 tgListener 赋给全局 tgListener,
1012
+ // 否则 onConfirmTool 的 tgListener?.bot 恒为 false,权限确认不会推送 Telegram。
1013
+ if (builtinNotify?.tgListener) tgListener = builtinNotify.tgListener
1011
1014
  console.log('📡 Built-in channel listeners started (--with-notify)')
1012
1015
  }
1013
1016