opencode-chat-channel 1.2.5 → 1.2.7

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/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAiIlD,eAAO,MAAM,iBAAiB,EAAE,MAyF/B,CAAC;AAEF,eAAe,iBAAiB,CAAC;AAMjC,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAwHlD,eAAO,MAAM,iBAAiB,EAAE,MAyF/B,CAAC;AAEF,eAAe,iBAAiB,CAAC;AAMjC,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -298,18 +298,13 @@ function createMessageHandler(channel, sessionManager, client) {
298
298
  extra: { userId, replyTarget }
299
299
  }
300
300
  });
301
- if ("sendThinking" in channel && typeof channel.sendThinking === "function") {
302
- await channel.sendThinking(replyTarget);
303
- }
304
301
  let responseText = null;
305
302
  try {
306
303
  const sessionId = await sessionManager.getOrCreate(userId);
307
- const now = new Date().toLocaleString("zh-CN", { timeZone: "Asia/Shanghai", hour12: false });
308
304
  const result = await client.session.prompt({
309
305
  path: { id: sessionId },
310
306
  body: {
311
- parts: [{ type: "text", text }],
312
- system: `当前时间:${now}(北京时间 CST)。来自飞书渠道的消息。`
307
+ parts: [{ type: "text", text }]
313
308
  }
314
309
  });
315
310
  responseText = extractResponseText(result.data?.parts ?? []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-chat-channel",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
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",