@raolin2025/claude-code-node 2.6.10 → 2.6.11

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 +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raolin2025/claude-code-node",
3
- "version": "2.6.10",
3
+ "version": "2.6.11",
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
@@ -611,7 +611,8 @@ const systemPrompt = cliArgs.systemPrompt || DEFAULT_SYSTEM_PROMPT
611
611
 
612
612
  // 关键:来自 Telegram 的消息,如果当前正在等待远程权限确认(pendingConfirm),
613
613
  // 则把它当作确认回复(y/n/a)处理,而不是当作新的 REPL 输入。
614
- if (source === 'telegram' && pendingConfirm) {
614
+ // 注意:/ 开头的命令优先走命令分支,不被权限确认拦截(否则 /quit、/stop 会被吞)。
615
+ if (source === 'telegram' && pendingConfirm && !trimmed.startsWith('/')) {
615
616
  const confirm = pendingConfirm
616
617
  pendingConfirm = null
617
618
  const a = trimmed.toLowerCase()