larkcc 0.7.0 → 0.7.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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.7.2] - 2026-03-29
11
+
12
+ ### Changed
13
+
14
+ - Simplify README: remove source install, trim config, use English headers
15
+ - Use English name for Feishu Block API in CONTRIBUTING
16
+
17
+ ## [0.7.1] - 2026-03-29
18
+
19
+ ### Fixed
20
+
21
+ - Remove invalid MCP service link (404) from README
22
+
10
23
  ## [0.7.0] - 2026-03-29
11
24
 
12
25
  ### Added
package/README.md CHANGED
@@ -5,20 +5,13 @@
5
5
 
6
6
  Claude Code in Feishu — 在任意项目目录启动,通过飞书机器人与 Claude 对话,体验等同于终端直接使用 Claude Code。
7
7
 
8
- ## 安装
8
+ ## Install
9
9
 
10
10
  ```bash
11
11
  npm install -g larkcc
12
12
  ```
13
13
 
14
- 从源码安装:
15
-
16
- ```bash
17
- git clone https://github.com/suj1e/larkcc.git
18
- cd larkcc && chmod +x install.sh && ./install.sh
19
- ```
20
-
21
- ## 快速开始
14
+ ## Quick Start
22
15
 
23
16
  ```bash
24
17
  larkcc --setup # 配置机器人(只需 App ID 和 Secret)
@@ -28,7 +21,7 @@ larkcc # 启动
28
21
 
29
22
  首次发消息自动检测并保存 open_id,之后即可正常使用。
30
23
 
31
- ## 命令
24
+ ## CLI
32
25
 
33
26
  ```bash
34
27
  larkcc # 启动(默认机器人,新会话)
@@ -39,7 +32,7 @@ larkcc --setup # 配置机器人
39
32
  larkcc --help # 查看所有命令
40
33
  ```
41
34
 
42
- ## 功能
35
+ ## Features
43
36
 
44
37
  - 流式输出 — 打字机效果逐字显示,支持 CardKit 和 update 两种模式
45
38
  - 超长消息 — 自动写入飞书云文档,回复文档链接
@@ -52,53 +45,9 @@ larkcc --help # 查看所有命令
52
45
  - 响应元数据 — 每条回复显示耗时、模型、token 用量
53
46
  - 多机器人 — 多 profile 独立管理,同一台机器运行多个实例
54
47
 
55
- ## Slash 命令
56
-
57
- ### 快速执行(不走 Claude,秒返回)
58
-
59
- | 命令 | 说明 |
60
- |------|------|
61
- | `/stop` `/cancel` | 中断当前任务 |
62
- | `/s` `/status` | git status + 最近提交 |
63
- | `/d` `/diff` | git diff |
64
- | `/l` `/log` | git log |
65
- | `/b` `/branch` | 分支列表 |
66
- | `/pwd` | 当前目录 + 文件列表 |
67
- | `/ps` | 运行中的进程 |
68
-
69
- ### Claude 快捷方式
70
-
71
- | 命令 | 说明 |
72
- |------|------|
73
- | `/review` | 代码 review |
74
- | `/fix` | 修复报错 |
75
- | `/doc` | 生成/更新 README |
76
- | `/test [文件]` | 生成单元测试 |
77
- | `/explain [文件]` | 解释代码 |
78
- | `/refactor [文件]` | 重构 |
79
- | `/commit` | 生成 commit message |
80
- | `/pr` | 生成 PR 描述 |
81
- | `/todo` | 整理 TODO 清单 |
82
- | `/summary` | 生成工作日报 |
83
- | `/bsx [内容]` | 头脑风暴,不动代码 |
84
- | `/quality [路径]` | 代码质量检查 |
85
- | `/release [类型]` | 生成 CHANGELOG + 执行 release.sh |
86
- | `/check` | 综合检查(类型/lint/测试) |
87
- | `/security` | 安全漏洞扫描 |
88
- | `/deps` | 检查过期依赖 |
89
- | `/build` | 构建项目 |
90
- | `/install` | 安装依赖 |
91
- | `/run [script]` | 运行 npm script |
92
- | `/help` | 查看所有命令 |
93
-
94
- ### 多文件模式
95
-
96
- | 命令 | 说明 |
97
- |------|------|
98
- | `/mf start` | 开始多文件模式 |
99
- | `/mf done` | 结束并发送所有缓存的文件 |
100
-
101
- ### 自定义命令
48
+ ## Slash Commands
49
+
50
+ 发送 `/help` 查看所有可用命令。支持自定义命令:
102
51
 
103
52
  ```yaml
104
53
  # ~/.larkcc/config.yml
@@ -114,7 +63,7 @@ exec_commands:
114
63
 
115
64
  占位符:`{input}` 用于 prompt 命令,`{{args}}` / `{{param|default}}` 用于 exec 命令。
116
65
 
117
- ## 群聊
66
+ ## Group Chat
118
67
 
119
68
  把多个机器人拉进同一个飞书群,通过 @ 或引用回复分别控制:
120
69
 
@@ -124,60 +73,27 @@ exec_commands:
124
73
 
125
74
  额外权限:`im:message.group_at_msg:readonly`
126
75
 
127
- ## 配置
76
+ ## Configuration
128
77
 
129
- `~/.larkcc/config.yml`:
78
+ `~/.larkcc/config.yml`,`larkcc --setup` 自动生成:
130
79
 
131
80
  ```yaml
132
81
  feishu:
133
82
  app_id: cli_xxxxxxxx
134
83
  app_secret: xxxxxxxxxxxxxxxx
135
- owner_open_id: ou_xxxxxxxx # 首次收到消息后自动填入
136
84
 
85
+ # Claude
137
86
  claude:
138
87
  permission_mode: acceptEdits
139
88
  allowed_tools: [Read, Write, Edit, Bash, Glob, Grep, LS]
140
89
 
141
- # 流式输出
90
+ # 流式输出(默认 cardkit)
142
91
  streaming:
143
- enabled: true
144
92
  mode: cardkit # cardkit | update | none
145
- flush_interval_ms: 300
146
- thinking_enabled: false # 显示思考过程
147
- fallback_on_error: true
148
93
 
149
- # 超长消息
94
+ # 超长消息 → 云文档
150
95
  overflow:
151
- mode: document # document(云文档)| chunk(分片)
152
- document:
153
- threshold: 2800
154
- title_template: "{cwd} - {session_id} - {datetime}"
155
- cleanup:
156
- enabled: true
157
- max_docs: 50
158
- notify: true
159
-
160
- # 格式
161
- card_title: Claude # 卡片标题,留空不显示
162
- format_guide:
163
- enabled: true # 注入飞书格式要求到 prompt
164
- image_resolver:
165
- enabled: true # 外部图片自动上传
166
- image_prompt: "分析图片,给出回应"
167
-
168
- # 文件处理
169
- file:
170
- enabled: true
171
- size_limit: 31457280 # 30MB
172
- multifile_timeout: 300
173
-
174
- # 自定义命令
175
- commands: {}
176
- exec_commands: {}
177
- exec_security:
178
- enabled: true
179
- blacklist: ["rm -rf", "sudo", "mkfs"]
180
- confirm_on_warning: true
96
+ mode: document # document | chunk
181
97
 
182
98
  # 多机器人
183
99
  profiles:
@@ -187,9 +103,9 @@ profiles:
187
103
  app_secret: xxxxxxxxxxxxxxxx
188
104
  ```
189
105
 
190
- 标题模板占位符:`{cwd}` `{session_id}` `{datetime}` `{date}` `{profile}`
106
+ 完整配置项见 `src/config.ts`。
191
107
 
192
- ## 飞书权限
108
+ ## Permissions
193
109
 
194
110
  在 [飞书开发者后台](https://open.feishu.cn/) 开通以下权限,然后创建新版本并发布:
195
111
 
@@ -206,11 +122,6 @@ profiles:
206
122
 
207
123
  事件订阅:使用**长连接** → 订阅 `im.message.receive_v1`
208
124
 
209
- ## 相关资源
210
-
211
- - [飞书文档块 API](https://feishu.apifox.cn/doc-1950637) — 文档块类型、属性、代码语言枚举
212
- - [飞书 MCP 服务](https://mcp.feishu.cn) — 文档创建 MCP 端点
213
-
214
125
  ## License
215
126
 
216
127
  [MIT](LICENSE)
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.7.0";
1
+ export declare const VERSION = "0.7.2";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // 自动生成,请勿手动修改
2
2
  // 由 scripts/generate-version.js 从 package.json 生成
3
- export const VERSION = "0.7.0";
3
+ export const VERSION = "0.7.2";
4
4
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "larkcc",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "Claude Code in Feishu/Lark - AI coding assistant bot",
5
5
  "author": "sujie <13156660820@163.com>",
6
6
  "license": "MIT",