@openclaw-china/feishu 0.1.1
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/clawdbot.plugin.json +29 -0
- package/dist/index.d.ts +474 -0
- package/dist/index.js +4867 -0
- package/dist/index.js.map +1 -0
- package/moltbot.plugin.json +29 -0
- package/package.json +93 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "feishu",
|
|
3
|
+
"name": "Feishu",
|
|
4
|
+
"description": "飞书/Lark 消息渠道插件",
|
|
5
|
+
"version": "0.1.0",
|
|
6
|
+
"channels": ["feishu"],
|
|
7
|
+
"configSchema": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"enabled": { "type": "boolean" },
|
|
12
|
+
"appId": { "type": "string" },
|
|
13
|
+
"appSecret": { "type": "string" },
|
|
14
|
+
"connectionMode": { "type": "string", "enum": ["websocket"] },
|
|
15
|
+
"dmPolicy": { "type": "string", "enum": ["open", "pairing", "allowlist"] },
|
|
16
|
+
"groupPolicy": { "type": "string", "enum": ["open", "allowlist", "disabled"] },
|
|
17
|
+
"requireMention": { "type": "boolean" },
|
|
18
|
+
"allowFrom": { "type": "array", "items": { "type": "string" } },
|
|
19
|
+
"groupAllowFrom": { "type": "array", "items": { "type": "string" } },
|
|
20
|
+
"sendMarkdownAsCard": { "type": "boolean" },
|
|
21
|
+
"historyLimit": { "type": "integer", "minimum": 0 },
|
|
22
|
+
"textChunkLimit": { "type": "integer", "minimum": 1 }
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"uiHints": {
|
|
26
|
+
"appId": { "label": "App ID" },
|
|
27
|
+
"appSecret": { "label": "App Secret", "sensitive": true }
|
|
28
|
+
}
|
|
29
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@openclaw-china/feishu",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Moltbot Feishu/Lark channel plugin",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"moltbot.plugin.json",
|
|
10
|
+
"clawdbot.plugin.json"
|
|
11
|
+
],
|
|
12
|
+
"moltbot": {
|
|
13
|
+
"extensions": [
|
|
14
|
+
"./dist/index.js"
|
|
15
|
+
],
|
|
16
|
+
"channel": {
|
|
17
|
+
"id": "feishu",
|
|
18
|
+
"label": "Feishu",
|
|
19
|
+
"selectionLabel": "Feishu/Lark (飞书)",
|
|
20
|
+
"docsPath": "/channels/feishu",
|
|
21
|
+
"blurb": "飞书/Lark 企业消息",
|
|
22
|
+
"aliases": [
|
|
23
|
+
"lark"
|
|
24
|
+
],
|
|
25
|
+
"order": 70
|
|
26
|
+
},
|
|
27
|
+
"install": {
|
|
28
|
+
"npmSpec": "@openclaw-china/feishu",
|
|
29
|
+
"localPath": ".",
|
|
30
|
+
"defaultChoice": "npm"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"clawdbot": {
|
|
34
|
+
"extensions": [
|
|
35
|
+
"./dist/index.js"
|
|
36
|
+
],
|
|
37
|
+
"channel": {
|
|
38
|
+
"id": "feishu",
|
|
39
|
+
"label": "Feishu",
|
|
40
|
+
"selectionLabel": "Feishu/Lark (飞书)",
|
|
41
|
+
"docsPath": "/channels/feishu",
|
|
42
|
+
"blurb": "飞书/Lark 企业消息",
|
|
43
|
+
"aliases": [
|
|
44
|
+
"lark"
|
|
45
|
+
],
|
|
46
|
+
"order": 70
|
|
47
|
+
},
|
|
48
|
+
"install": {
|
|
49
|
+
"npmSpec": "@openclaw-china/feishu",
|
|
50
|
+
"localPath": ".",
|
|
51
|
+
"defaultChoice": "npm"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"main": "./dist/index.js",
|
|
55
|
+
"types": "./dist/index.d.ts",
|
|
56
|
+
"exports": {
|
|
57
|
+
".": {
|
|
58
|
+
"types": "./dist/index.d.ts",
|
|
59
|
+
"default": "./dist/index.js"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"scripts": {
|
|
63
|
+
"build": "tsup",
|
|
64
|
+
"dev": "tsup --watch",
|
|
65
|
+
"test": "vitest --run",
|
|
66
|
+
"test:watch": "vitest",
|
|
67
|
+
"release": "npm run build && npm publish",
|
|
68
|
+
"release:patch": "npm run build && npm version patch && npm publish",
|
|
69
|
+
"release:minor": "npm run build && npm version minor && npm publish",
|
|
70
|
+
"release:major": "npm run build && npm version major && npm publish"
|
|
71
|
+
},
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"@openclaw-china/shared": "0.1.9",
|
|
74
|
+
"@larksuiteoapi/node-sdk": "^1.46.0"
|
|
75
|
+
},
|
|
76
|
+
"devDependencies": {
|
|
77
|
+
"@types/node": "^22.0.0",
|
|
78
|
+
"fast-check": "^3.22.0",
|
|
79
|
+
"tsup": "^8.2.0",
|
|
80
|
+
"typescript": "^5.7.0",
|
|
81
|
+
"vitest": "^2.1.0",
|
|
82
|
+
"zod": "^3.23.0"
|
|
83
|
+
},
|
|
84
|
+
"peerDependencies": {
|
|
85
|
+
"moltbot": ">=0.1.0"
|
|
86
|
+
},
|
|
87
|
+
"peerDependenciesMeta": {
|
|
88
|
+
"moltbot": {
|
|
89
|
+
"optional": true
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"private": false
|
|
93
|
+
}
|