@nextclaw/channel-extension-feishu 0.2.20 → 0.2.21
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/main.js +4 -2
- package/dist/main.js.map +1 -1
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { FeishuAuthCapability } from "./services/feishu-auth-capability.service.js";
|
|
2
|
-
import { FeishuChannelAdapter } from "./services/feishu-channel-adapter.service.js";
|
|
3
2
|
import { toFeishuSubmittedMessage } from "./utils/feishu-submitted-message.utils.js";
|
|
4
3
|
import { startChannelExtension, warnNcpEventError } from "@nextclaw/extension-sdk";
|
|
5
4
|
//#region src/main.ts
|
|
6
5
|
await startChannelExtension({
|
|
7
6
|
channelId: "feishu",
|
|
8
|
-
createAdapter: () =>
|
|
7
|
+
createAdapter: async () => {
|
|
8
|
+
const { FeishuChannelAdapter } = await import("./services/feishu-channel-adapter.service.js");
|
|
9
|
+
return new FeishuChannelAdapter();
|
|
10
|
+
},
|
|
9
11
|
mapInbound: toFeishuSubmittedMessage,
|
|
10
12
|
createAuthCapability: ({ channel }) => new FeishuAuthCapability({ channel }),
|
|
11
13
|
onNcpEventError: warnNcpEventError("feishu")
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","names":[],"sources":["../src/main.ts"],"sourcesContent":["import { startChannelExtension, warnNcpEventError } from \"@nextclaw/extension-sdk\";\nimport { FeishuAuthCapability } from \"./services/feishu-auth-capability.service.js\";\nimport {
|
|
1
|
+
{"version":3,"file":"main.js","names":[],"sources":["../src/main.ts"],"sourcesContent":["import { startChannelExtension, warnNcpEventError } from \"@nextclaw/extension-sdk\";\nimport { FeishuAuthCapability } from \"./services/feishu-auth-capability.service.js\";\nimport { toFeishuSubmittedMessage } from \"./utils/feishu-submitted-message.utils.js\";\n\nawait startChannelExtension({\n channelId: \"feishu\",\n createAdapter: async () => {\n const { FeishuChannelAdapter } = await import(\"./services/feishu-channel-adapter.service.js\");\n return new FeishuChannelAdapter();\n },\n mapInbound: toFeishuSubmittedMessage,\n createAuthCapability: ({ channel }) => new FeishuAuthCapability({ channel }),\n onNcpEventError: warnNcpEventError(\"feishu\"),\n});\n"],"mappings":";;;;AAIA,MAAM,sBAAsB;CAC1B,WAAW;CACX,eAAe,YAAY;EACzB,MAAM,EAAE,yBAAyB,MAAM,OAAO;AAC9C,SAAO,IAAI,sBAAsB;;CAEnC,YAAY;CACZ,uBAAuB,EAAE,cAAc,IAAI,qBAAqB,EAAE,SAAS,CAAC;CAC5E,iBAAiB,kBAAkB,SAAS;CAC7C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextclaw/channel-extension-feishu",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.21",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "NextClaw Feishu/Lark lightweight channel extension process.",
|
|
6
6
|
"type": "module",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@larksuiteoapi/node-sdk": "^1.59.0",
|
|
22
|
-
"@nextclaw/extension-sdk": "0.3.
|
|
22
|
+
"@nextclaw/extension-sdk": "0.3.20",
|
|
23
23
|
"@nextclaw/ncp": "0.7.16",
|
|
24
24
|
"@nextclaw/ncp-toolkit": "0.6.18"
|
|
25
25
|
},
|