@wu529778790/open-im 1.10.6-beta.1 → 1.10.6-beta.2

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.
@@ -6,7 +6,7 @@ import { readFileSync, writeFileSync, existsSync, mkdirSync } from "node:fs";
6
6
  import { join, dirname } from "node:path";
7
7
  import { DWClient } from "dingtalk-stream";
8
8
  import { WEB_CONFIG_PORT, getPublicWebDashboardUrl } from "./constants.js";
9
- import { CONFIG_PATH, getClaudeConfigHome, loadClaudeSettingsEnv, saveClaudeSettingsEnv, loadConfig, loadFileConfig, saveFileConfig, CODEX_AUTH_PATHS } from "./config.js";
9
+ import { CONFIG_PATH, getClaudeConfigHome, loadClaudeSettingsEnv, saveClaudeSettingsEnv, loadConfig, loadFileConfig, saveFileConfig, normalizeAiCommand, CODEX_AUTH_PATHS, } from "./config.js";
10
10
  import { getWebDistDir, tryServeDashboardStatic } from "./config-web-static.js";
11
11
  import { getServiceStatus, startBackgroundService, stopBackgroundService } from "./service-control.js";
12
12
  import { initWeWork, stopWeWork } from "./wework/client.js";
@@ -282,35 +282,35 @@ function buildInitialPayload(file) {
282
282
  platforms: {
283
283
  telegram: {
284
284
  enabled: file.platforms?.telegram?.enabled ?? Boolean(file.platforms?.telegram?.botToken),
285
- aiCommand: file.platforms?.telegram?.aiCommand ?? "claude",
285
+ aiCommand: normalizeAiCommand(file.platforms?.telegram?.aiCommand, "claude"),
286
286
  botToken: maskSecret(file.platforms?.telegram?.botToken),
287
287
  proxy: file.platforms?.telegram?.proxy ?? "",
288
288
  allowedUserIds: (file.platforms?.telegram?.allowedUserIds ?? []).join(", "),
289
289
  },
290
290
  feishu: {
291
291
  enabled: file.platforms?.feishu?.enabled ?? Boolean(file.platforms?.feishu?.appId && file.platforms?.feishu?.appSecret),
292
- aiCommand: file.platforms?.feishu?.aiCommand ?? "claude",
292
+ aiCommand: normalizeAiCommand(file.platforms?.feishu?.aiCommand, "claude"),
293
293
  appId: file.platforms?.feishu?.appId ?? "",
294
294
  appSecret: maskSecret(file.platforms?.feishu?.appSecret),
295
295
  allowedUserIds: (file.platforms?.feishu?.allowedUserIds ?? []).join(", "),
296
296
  },
297
297
  qq: {
298
298
  enabled: file.platforms?.qq?.enabled ?? Boolean(file.platforms?.qq?.appId && file.platforms?.qq?.secret),
299
- aiCommand: file.platforms?.qq?.aiCommand ?? "claude",
299
+ aiCommand: normalizeAiCommand(file.platforms?.qq?.aiCommand, "claude"),
300
300
  appId: file.platforms?.qq?.appId ?? "",
301
301
  secret: maskSecret(file.platforms?.qq?.secret),
302
302
  allowedUserIds: (file.platforms?.qq?.allowedUserIds ?? []).join(", "),
303
303
  },
304
304
  wework: {
305
305
  enabled: file.platforms?.wework?.enabled ?? Boolean(file.platforms?.wework?.corpId && file.platforms?.wework?.secret),
306
- aiCommand: file.platforms?.wework?.aiCommand ?? "claude",
306
+ aiCommand: normalizeAiCommand(file.platforms?.wework?.aiCommand, "claude"),
307
307
  corpId: file.platforms?.wework?.corpId ?? "",
308
308
  secret: maskSecret(file.platforms?.wework?.secret),
309
309
  allowedUserIds: (file.platforms?.wework?.allowedUserIds ?? []).join(", "),
310
310
  },
311
311
  dingtalk: {
312
312
  enabled: file.platforms?.dingtalk?.enabled ?? Boolean(file.platforms?.dingtalk?.clientId && file.platforms?.dingtalk?.clientSecret),
313
- aiCommand: file.platforms?.dingtalk?.aiCommand ?? "claude",
313
+ aiCommand: normalizeAiCommand(file.platforms?.dingtalk?.aiCommand, "claude"),
314
314
  clientId: file.platforms?.dingtalk?.clientId ?? "",
315
315
  clientSecret: maskSecret(file.platforms?.dingtalk?.clientSecret),
316
316
  cardTemplateId: file.platforms?.dingtalk?.cardTemplateId ?? "",
@@ -318,7 +318,7 @@ function buildInitialPayload(file) {
318
318
  },
319
319
  workbuddy: {
320
320
  enabled: file.platforms?.workbuddy?.enabled ?? Boolean(file.platforms?.workbuddy?.accessToken && file.platforms?.workbuddy?.refreshToken && file.platforms?.workbuddy?.userId),
321
- aiCommand: file.platforms?.workbuddy?.aiCommand ?? "claude",
321
+ aiCommand: normalizeAiCommand(file.platforms?.workbuddy?.aiCommand, "claude"),
322
322
  accessToken: maskSecret(file.platforms?.workbuddy?.accessToken),
323
323
  refreshToken: maskSecret(file.platforms?.workbuddy?.refreshToken),
324
324
  userId: file.platforms?.workbuddy?.userId ?? "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wu529778790/open-im",
3
- "version": "1.10.6-beta.1",
3
+ "version": "1.10.6-beta.2",
4
4
  "description": "Multi-platform IM bridge for AI CLI tools (Claude, Codex, CodeBuddy)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",