chatccc 0.2.13 → 0.2.15

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 ADDED
@@ -0,0 +1,44 @@
1
+ # 飞书应用凭证(从飞书开放平台获取)
2
+ CHATCCC_APP_ID=your_app_id
3
+ CHATCCC_APP_SECRET=your_app_secret
4
+
5
+ # Claude 模型与思考深度(可选;省略或为 default 时不传入 SDK,由 Claude Code 默认)
6
+ CHATCCC_ANTHROPIC_MODEL=default
7
+ CHATCCC_ANTHROPIC_EFFORT=max
8
+
9
+ # 服务端口(可选,默认 18080;多实例时可设为不同端口)
10
+ CHATCCC_PORT=18080
11
+
12
+ # Cursor Agent CLI — 会追加 `agent` 的 --model(省略或 default 时不传,由 Cursor 默认)
13
+ CHATCCC_CURSOR_MODEL=claude-opus-4-7-max
14
+
15
+ # Cursor Agent CLI 命令路径(可选;仅使用 /new cursor 时相关)
16
+ # 默认按以下顺序探测:%LOCALAPPDATA%\cursor-agent\agent.cmd → PATH 中的 agent
17
+ # 仅在以上都找不到、或想用 cursor-agent 等非默认命令时手动设置
18
+ # CHATCCC_CURSOR_COMMAND=/path/to/agent
19
+
20
+ # Cursor Agent CLI 自定义参数(可选;默认 -p --force --output-format stream-json --stream-partial-output)
21
+ # -p 非交互模式,--force 强制允许命令(yolo),无需额外批准参数
22
+ # CHATCCC_CURSOR_ARGS=-p --force --output-format stream-json --stream-partial-output
23
+
24
+ # Codex Agent CLI 模型(可选;省略或为 default 时使用 codex config.toml 中的默认模型)
25
+ CHATCCC_CODEX_MODEL=default
26
+
27
+ # Codex Agent CLI 努力程度(可选;省略或为 default 时使用 codex config.toml 中的默认值)
28
+ # 有效值:low, medium, high(通过 -c model_reasoning_effort=<value> 传递)
29
+ CHATCCC_CODEX_EFFORT=default
30
+
31
+ # Codex Agent CLI 命令路径(可选;默认按 PATH 中的 codex 探测)
32
+ # CHATCCC_CODEX_COMMAND=/path/to/codex
33
+
34
+ # /git 命令超时秒数(可选,默认 180;范围 1–3600)
35
+ # 在飞书会话群里执行 /git <子命令> 时,单次命令最多允许运行多久;
36
+ # 超时则强制终止并把已收集的输出(含「⏱️ 命令超时被强制终止」标记)回发给用户。
37
+ CHATCCC_GIT_TIMEOUT_SECONDS=180
38
+
39
+ # Optional status avatar sources. When set, ChatCCC downloads the URL,
40
+ # uploads it to Feishu as image_type=avatar, then uses the returned image_key.
41
+ # If unset, local files under images/avatars are used.
42
+ # CHATCCC_AVATAR_NEW_URL=https://example.com/status_new.png
43
+ # CHATCCC_AVATAR_BUSY_URL=https://example.com/status_busy.png
44
+ # CHATCCC_AVATAR_IDLE_URL=https://example.com/status_idle.png
package/README.md CHANGED
@@ -154,7 +154,9 @@ CHATCCC_CODEX_COMMAND=/path/to/codex
154
154
 
155
155
  打开 [飞书开放平台](https://open.feishu.cn),创建一个**企业自建应用**。
156
156
 
157
- **添加应用能力**:开启「机器人」功能。
157
+ > **第一步:添加机器人(千万别忘!)**
158
+ >
159
+ > 创建应用后,立刻在「应用功能」中开启「机器人」能力。没有机器人,群聊里就收不到消息,整个 ChatCCC 无法工作。
158
160
 
159
161
  **权限配置(重要)**(在「权限管理」中按前缀搜索,**将以下两类前缀开头的权限全部开通**):
160
162
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatccc",
3
- "version": "0.2.13",
3
+ "version": "0.2.15",
4
4
  "description": "Feishu bot bridge for Claude Code",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -12,7 +12,8 @@
12
12
  "src/",
13
13
  "bin/",
14
14
  "package.json",
15
- "README.md"
15
+ "README.md",
16
+ ".env.example"
16
17
  ],
17
18
  "scripts": {
18
19
  "dev": "tsx --env-file=.env src/index.ts",