chatccc 0.2.8 → 0.2.10
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 +9 -0
- package/package.json +1 -1
- package/src/cards.ts +1 -1
- package/src/feishu-api.ts +1 -1
package/README.md
CHANGED
|
@@ -24,6 +24,15 @@ ChatCCC 把 Claude Code 和 Cursor Agent 接入了飞书群聊:
|
|
|
24
24
|
|
|
25
25
|
---
|
|
26
26
|
|
|
27
|
+
## 为什么选 ChatCCC
|
|
28
|
+
|
|
29
|
+
- **一群一会话,心智最简单** —— `/new` 直接建一个新飞书群,群本身就是 AI 会话上下文。换会话就是换群,没有 thread / 子话题概念,手机端切换最直观
|
|
30
|
+
- **零配置成本** —— 只用 `.env`,没有 TOML、没有 Web 后台。`npm i -g chatccc` 后 `cd` 到项目目录直接 `chatccc` 就跑
|
|
31
|
+
- **群里能跑 git** —— `/git status`、`/git pull`、`/git log` 在飞书群里直接执行 stdout/stderr 回发,不用回电脑
|
|
32
|
+
- **代码极简易改** —— 纯 TypeScript 实现,核心只有 20 多个文件,统一 `ToolAdapter` 接口屏蔽 Claude / Cursor 差异,看得懂、改得动
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
27
36
|
## 怎么部署
|
|
28
37
|
|
|
29
38
|
### 1. 安装
|
package/package.json
CHANGED
package/src/cards.ts
CHANGED
|
@@ -114,7 +114,7 @@ export function buildHelpCard(userText: string): string {
|
|
|
114
114
|
header: { template: "blue", title: { content: "ChatCCC", tag: "plain_text" } },
|
|
115
115
|
elements: [
|
|
116
116
|
{ tag: "div", text: { tag: "lark_md", content: `你发送了: ${userText}` } },
|
|
117
|
-
{ tag: "div", text: { tag: "lark_md", content: "
|
|
117
|
+
{ tag: "div", text: { tag: "lark_md", content: "发送 **/new** 创建新会话(默认 Claude Code)\n发送 **/new claude** 创建新 Claude 对话\n发送 **/new cursor** 创建新 Cursor 会话(启动需要多等几秒)" } },
|
|
118
118
|
buildButtons([
|
|
119
119
|
{ text: "新建 Claude Code 会话(/new claude)", value: JSON.stringify({ cmd: "new" }), type: "primary" },
|
|
120
120
|
{ text: "新建 Cursor 会话(/new cursor)", value: JSON.stringify({ cmd: "new cursor" }), type: "primary" },
|
package/src/feishu-api.ts
CHANGED
|
@@ -338,7 +338,7 @@ export async function sendRestartCard(token: string): Promise<void> {
|
|
|
338
338
|
config: { wide_screen_mode: true },
|
|
339
339
|
header: { template: "green", title: { content: "ChatCCC Started", tag: "plain_text" } },
|
|
340
340
|
elements: [
|
|
341
|
-
{ tag: "div", text: { tag: "lark_md", content: "Bot 已启动完成,可以继续使用。\n\n
|
|
341
|
+
{ tag: "div", text: { tag: "lark_md", content: "Bot 已启动完成,可以继续使用。\n\n发送 **/new** 创建新会话(默认 Claude Code)\n发送 **/new claude** 创建新 Claude 对话\n发送 **/new cursor** 创建新 Cursor 会话(启动需要多等几秒)" } },
|
|
342
342
|
buildButtons([
|
|
343
343
|
{ text: "新建 Claude Code 会话(/new claude)", value: JSON.stringify({ cmd: "new" }), type: "primary" },
|
|
344
344
|
{ text: "新建 Cursor 会话(/new cursor)", value: JSON.stringify({ cmd: "new cursor" }), type: "primary" },
|