opencode-feishu 0.4.1 → 0.4.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/README.md +30 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -71,6 +71,16 @@ opencode
|
|
|
71
71
|
| `pollInterval` | number | 否 | `1000` | 轮询 AI 响应的间隔(毫秒) |
|
|
72
72
|
| `stablePolls` | number | 否 | `3` | 连续几次轮询内容不变视为回复完成 |
|
|
73
73
|
| `dedupTtl` | number | 否 | `600000` | 消息去重缓存过期时间(毫秒) |
|
|
74
|
+
| `directory` | string | 否 | `""` | 默认工作目录,支持 `~` 和 `${ENV_VAR}` 展开 |
|
|
75
|
+
|
|
76
|
+
## 特性
|
|
77
|
+
|
|
78
|
+
- **多媒体消息支持** — 图片、文件、音频、富文本、卡片等,自动下载为 data URL
|
|
79
|
+
- **实时流式更新** — 通过 `message.part.updated` 事件更新占位消息
|
|
80
|
+
- **群聊静默监听** — 所有群消息作为上下文积累,仅 @提及时回复
|
|
81
|
+
- **入群自动摄入历史消息**
|
|
82
|
+
- **代理支持** — `HTTPS_PROXY` / `HTTP_PROXY` / `ALL_PROXY`
|
|
83
|
+
- **消息去重** — 可配置 TTL
|
|
74
84
|
|
|
75
85
|
## 群聊行为
|
|
76
86
|
|
|
@@ -84,11 +94,26 @@ opencode
|
|
|
84
94
|
## 开发
|
|
85
95
|
|
|
86
96
|
```bash
|
|
87
|
-
npm install
|
|
88
|
-
npm run build
|
|
89
|
-
npm run dev
|
|
90
|
-
npm run typecheck
|
|
91
|
-
npm
|
|
97
|
+
npm install # 安装依赖
|
|
98
|
+
npm run build # 构建
|
|
99
|
+
npm run dev # 开发模式(监听变更)
|
|
100
|
+
npm run typecheck # 类型检查
|
|
101
|
+
npm run release # 交互式版本发布(bumpp:选版本 → commit → tag → push)
|
|
102
|
+
npm publish # 发布到 npm(自动先构建+类型检查)
|
|
103
|
+
npm publish --dry-run # 预览将要发布的内容
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## 调试
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
# 启用调试日志(结构化 JSON 输出到 stderr)
|
|
110
|
+
FEISHU_DEBUG=1 opencode
|
|
111
|
+
|
|
112
|
+
# 过滤错误日志
|
|
113
|
+
FEISHU_DEBUG=1 opencode 2>&1 | grep '"level":"error"'
|
|
114
|
+
|
|
115
|
+
# 重定向到文件
|
|
116
|
+
FEISHU_DEBUG=1 opencode 2>feishu-debug.log
|
|
92
117
|
```
|
|
93
118
|
|
|
94
119
|
## 许可证
|