opencode-chat-channel 1.2.4 → 1.2.6

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/dist/index.d.ts CHANGED
@@ -17,5 +17,4 @@ import type { Plugin } from "@opencode-ai/plugin";
17
17
  export declare const ChatChannelPlugin: Plugin;
18
18
  export default ChatChannelPlugin;
19
19
  export type { ChatChannel, ChannelFactory, ChannelName, IncomingMessage, PluginClient } from "./types.js";
20
- export { extractResponseText, loadDotEnv } from "./session-manager.js";
21
20
  //# sourceMappingURL=index.d.ts.map
@@ -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;AAGjC,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1G,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,sBAAsB,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;AA6HlD,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
@@ -304,12 +304,10 @@ function createMessageHandler(channel, sessionManager, client) {
304
304
  let responseText = null;
305
305
  try {
306
306
  const sessionId = await sessionManager.getOrCreate(userId);
307
- const now = new Date().toLocaleString("zh-CN", { timeZone: "Asia/Shanghai", hour12: false });
308
307
  const result = await client.session.prompt({
309
308
  path: { id: sessionId },
310
309
  body: {
311
- parts: [{ type: "text", text }],
312
- system: `当前时间:${now}(北京时间 CST)。来自飞书渠道的消息。`
310
+ parts: [{ type: "text", text }]
313
311
  }
314
312
  });
315
313
  responseText = extractResponseText(result.data?.parts ?? []);
@@ -392,8 +390,6 @@ var ChatChannelPlugin = async ({ client }) => {
392
390
  };
393
391
  var src_default = ChatChannelPlugin;
394
392
  export {
395
- loadDotEnv,
396
- extractResponseText,
397
393
  src_default as default,
398
394
  ChatChannelPlugin
399
395
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-chat-channel",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
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",