@raolin2025/claude-code-node 2.8.9 → 2.8.10

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raolin2025/claude-code-node",
3
- "version": "2.8.9",
3
+ "version": "2.8.10",
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",
@@ -347,6 +347,7 @@ export class QueryEngine {
347
347
 
348
348
  const useStream = !this.config.noStream
349
349
  const modelLower = this.config.model.toLowerCase()
350
+ const url = apiBase.replace(/\/+$/, '') + '/chat/completions'
350
351
 
351
352
  const body = {
352
353
  model: this.config.model,
@@ -377,8 +378,6 @@ export class QueryEngine {
377
378
  body.thinking = { type: 'disabled' }
378
379
  }
379
380
 
380
- const url = apiBase.replace(/\/+$/, '') + '/chat/completions'
381
-
382
381
  // apiBase 是用户显式指定的配置(--api-base),不是外部输入,跳过 SSRF 检查
383
382
  // SSRF 防护仅适用于 web-fetch/web-search 等工具发起的请求
384
383
  const maxRetries = 3