remote-claude 0.2.6 → 0.2.7

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/.env.example CHANGED
@@ -1,9 +1,5 @@
1
1
  # Remote Claude 飞书客户端配置
2
2
 
3
- # Claude CLI 命令(可选,默认 claude)
4
- # 支持多词命令,如:ccr code、/usr/local/bin/claude
5
- # CLAUDE_COMMAND=claude
6
-
7
3
  # 飞书应用配置(必填)
8
4
  # 在飞书开发者后台创建应用获取: https://open.feishu.cn/app
9
5
  FEISHU_APP_ID=cli_xxxxx
@@ -14,3 +10,11 @@ FEISHU_APP_SECRET=xxxxx
14
10
  ENABLE_USER_WHITELIST=false
15
11
  ALLOWED_USERS=ou_xxxxx,ou_yyyyy
16
12
 
13
+ # 群聊名称前缀(可选,默认「Remote-Claude」)
14
+ # 群名格式:{GROUP_NAME_PREFIX}{目录名}-{HH-MM},如:【Remote-Claude】myapp-14-30
15
+ # GROUP_NAME_PREFIX=【Remote-Claude】
16
+
17
+ # Claude CLI 命令(可选,默认 claude)
18
+ # 支持多词命令,如:ccr code、/usr/local/bin/claude
19
+ # CLAUDE_COMMAND=claude
20
+
@@ -32,3 +32,6 @@ ENABLE_USER_WHITELIST = os.getenv("ENABLE_USER_WHITELIST", "false").lower() == "
32
32
 
33
33
  # 机器人名称(用于群聊命名)
34
34
  BOT_NAME = os.getenv("BOT_NAME", "Claude")
35
+
36
+ # 群聊名称前缀(格式:{GROUP_NAME_PREFIX}{dir}-{HH-MM})
37
+ GROUP_NAME_PREFIX = os.getenv("GROUP_NAME_PREFIX", "【Remote-Claude】")
@@ -620,13 +620,15 @@ class LarkHandler:
620
620
  cwd = self._get_pid_cwd(pid) if pid else None
621
621
  dir_label = cwd.rstrip("/").rsplit("/", 1)[-1] if cwd else session_name
622
622
 
623
- import lark_oapi as lark
624
623
  from . import config
625
624
  try:
626
625
  import json as _json
627
626
  import urllib.request
627
+ import datetime
628
+ _time_str = datetime.datetime.now().strftime("%H-%M")
629
+ group_name = f"{config.GROUP_NAME_PREFIX}{dir_label}-{_time_str}"
628
630
  req_body = {
629
- "name": f"【{dir_label}】{config.BOT_NAME}",
631
+ "name": group_name,
630
632
  "description": f"Remote Claude 专属群 - 会话 {session_name}",
631
633
  "user_id_list": [user_id],
632
634
  }
@@ -665,7 +667,7 @@ class LarkHandler:
665
667
 
666
668
  await card_service.send_text(
667
669
  chat_id,
668
- f"✅ 已创建专属群「【{dir_label}】{config.BOT_NAME}」并已连接\n"
670
+ f"✅ 已创建专属群「{group_name}」并已连接\n"
669
671
  f"在群内直接发消息即可与 Claude 交互"
670
672
  )
671
673
  # 刷新会话列表卡片,使"创建群聊"按钮变为"进入群聊"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remote-claude",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "双端共享 Claude CLI 工具",
5
5
  "bin": {
6
6
  "remote-claude": "bin/remote-claude",