opencode-chat-channel 1.2.2 → 1.2.4
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;
|
|
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;AA0KjG;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,cAuBlC,CAAC"}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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;
|
|
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"}
|
package/dist/index.js
CHANGED
|
@@ -121,7 +121,7 @@ class FeishuChannel {
|
|
|
121
121
|
"im.message.receive_v1": async (data) => {
|
|
122
122
|
const parsed = this.parseEvent(data);
|
|
123
123
|
if (parsed)
|
|
124
|
-
|
|
124
|
+
onMessage(parsed);
|
|
125
125
|
}
|
|
126
126
|
})
|
|
127
127
|
});
|
|
@@ -304,14 +304,12 @@ 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 });
|
|
307
308
|
const result = await client.session.prompt({
|
|
308
309
|
path: { id: sessionId },
|
|
309
310
|
body: {
|
|
310
311
|
parts: [{ type: "text", text }],
|
|
311
|
-
|
|
312
|
-
providerID: "Mify-Anthropic",
|
|
313
|
-
modelID: "ppio/pa/claude-sonnet-4-6"
|
|
314
|
-
}
|
|
312
|
+
system: `当前时间:${now}(北京时间 CST)。来自飞书渠道的消息。`
|
|
315
313
|
}
|
|
316
314
|
});
|
|
317
315
|
responseText = extractResponseText(result.data?.parts ?? []);
|
package/package.json
CHANGED