opencode-chat-channel 1.2.1 → 1.2.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/channels/feishu/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,OAAO,KAAK,EAAe,cAAc,EAAiC,MAAM,gBAAgB,CAAC;AA8JjG;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,cAuBlC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/channels/feishu/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,OAAO,KAAK,EAAe,cAAc,EAAiC,MAAM,gBAAgB,CAAC;AAwKjG;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,cAuBlC,CAAC"}
package/dist/index.js CHANGED
@@ -149,6 +149,16 @@ class FeishuChannel {
149
149
  });
150
150
  }
151
151
  }
152
+ async sendThinking(chatId) {
153
+ await this.larkClient.im.message.create({
154
+ params: { receive_id_type: "chat_id" },
155
+ data: {
156
+ receive_id: chatId,
157
+ content: JSON.stringify({ text: "⏳ 正在思考..." }),
158
+ msg_type: "text"
159
+ }
160
+ });
161
+ }
152
162
  parseEvent(data) {
153
163
  const { message, sender } = data ?? {};
154
164
  if (!message || !sender)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-chat-channel",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "opencode plugin — multi-channel bot (Feishu/Lark, WeCom) with extensible ChatChannel interface",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",