chatccc 0.2.35 → 0.2.37

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/README.md CHANGED
@@ -315,6 +315,22 @@ ChatCCC 的所有运行参数都集中在包根目录的 `config.json`。
315
315
  | `/restart` | 重启机器人进程 |
316
316
 
317
317
 
318
+ ---
319
+
320
+ ## 飞书操作流程
321
+
322
+ ### 同时使用公司飞书和个人飞书
323
+
324
+ 如果你既要在公司飞书中使用 ChatCCC,又想用个人飞书账号,同一台手机无法同时登录两个飞书账号。推荐以下方案:
325
+
326
+ **方案一:安卓手机**
327
+
328
+ 使用系统的「应用双开」功能,把飞书复制一份。原版飞书登录公司账号,飞书复制版登录个人飞书账号,两个飞书可以同时在线、互不干扰。
329
+
330
+ **方案二:苹果手机**
331
+
332
+ 在 App Store 下载「飞书国际版(Lark)」。原版飞书登录公司账号,Lark 登录个人飞书账号,两个 App 互相独立、可同时在线。
333
+
318
334
  ---
319
335
 
320
336
  ## 技术栈
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatccc",
3
- "version": "0.2.35",
3
+ "version": "0.2.37",
4
4
  "description": "Feishu bot bridge for Claude Code",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
package/src/session.ts CHANGED
@@ -521,11 +521,11 @@ export async function resumeAndPrompt(
521
521
  if (sendInterval) clearInterval(sendInterval);
522
522
  revokeAgentImageGrant(imageGrant.token);
523
523
  revokeAgentFileGrant(fileGrant.token);
524
- clearSessionGrants(sessionId);
525
524
  }
526
525
 
527
526
  const cEntry = chatSessionMap.get(chatId);
528
527
  if (!cEntry || cEntry.gen !== myGen) return;
528
+ clearSessionGrants(sessionId);
529
529
  const wasStopped = cEntry.stopped;
530
530
  const prevTs = lastMsgTimestamps.get(chatId);
531
531
  if (prevTs === undefined || cEntry.msgTimestamp > prevTs) {