csdn-im 0.1.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.
- package/LICENSE +21 -0
- package/README.md +41 -0
- package/dist/index.cjs +5007 -0
- package/dist/index.js +4976 -0
- package/openclaw.plugin.json +36 -0
- package/package.json +80 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/moltbot/moltbot/main/packages/core/src/schema/plugin.schema.json",
|
|
3
|
+
"id": "csdn-im",
|
|
4
|
+
"configSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"enabled": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"description": "是否启用 CSDN 渠道。为 false 时通常不启动消息拉取;仍保留 token 等字段便于稍后重新打开。"
|
|
10
|
+
},
|
|
11
|
+
"apiUrl": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"default": "https://test-msg.csdn.net/claw",
|
|
14
|
+
"description": "notification-claw 服务根 URL(不含路径),见 docs/ClawBot接口定义.md"
|
|
15
|
+
},
|
|
16
|
+
"token": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "CSDN Bot AccessToken (凭据接口申请). Keep this secret!",
|
|
19
|
+
"sensitive": true
|
|
20
|
+
},
|
|
21
|
+
"fallbackAgentId": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "未注入 resolveAgentRoute 时用于会话路由的 agentId,默认 main"
|
|
24
|
+
},
|
|
25
|
+
"verbose": {
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"default": false,
|
|
28
|
+
"description": "为 true 时打印完整消息体与 HTTP/路由/分发等详细日志"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": []
|
|
32
|
+
},
|
|
33
|
+
"channels": [
|
|
34
|
+
"csdn-im"
|
|
35
|
+
]
|
|
36
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "csdn-im",
|
|
3
|
+
"version": "0.1.4",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "OpenClaw channel plugin for CSDN IM",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"openclaw.plugin.json"
|
|
10
|
+
],
|
|
11
|
+
"main": "./dist/index.cjs",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"require": "./dist/index.cjs"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"module": "./dist/index.js",
|
|
21
|
+
"openclaw": {
|
|
22
|
+
"extensions": [
|
|
23
|
+
"./dist/index.cjs"
|
|
24
|
+
],
|
|
25
|
+
"channel": {
|
|
26
|
+
"id": "csdn-im",
|
|
27
|
+
"label": "CSDN",
|
|
28
|
+
"selectionLabel": "CSDN IM (CSDN)",
|
|
29
|
+
"docsPath": "/channels/csdn-im",
|
|
30
|
+
"blurb": "CSDN 消息通道",
|
|
31
|
+
"aliases": [
|
|
32
|
+
"csdn-im"
|
|
33
|
+
],
|
|
34
|
+
"order": 99
|
|
35
|
+
},
|
|
36
|
+
"install": {
|
|
37
|
+
"npmSpec": "csdn-im",
|
|
38
|
+
"localPath": ".",
|
|
39
|
+
"defaultChoice": "npm"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "tsup",
|
|
44
|
+
"dev": "tsup --watch",
|
|
45
|
+
"test": "vitest --run"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"openclaw": ">=2026.3.0",
|
|
49
|
+
"zod": "^3.23.8"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@types/node": "^22.0.0",
|
|
53
|
+
"tsup": "^8.5.1",
|
|
54
|
+
"typescript": "^5.9.3",
|
|
55
|
+
"vitest": "^2.1.0"
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"moltbot": ">=0.1.0",
|
|
59
|
+
"openclaw": ">=2026.3.0"
|
|
60
|
+
},
|
|
61
|
+
"peerDependenciesMeta": {
|
|
62
|
+
"moltbot": {
|
|
63
|
+
"optional": true
|
|
64
|
+
},
|
|
65
|
+
"openclaw": {
|
|
66
|
+
"optional": true
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"repository": {
|
|
70
|
+
"type": "git",
|
|
71
|
+
"url": "git+https://gitlab.csdn.net/messagecenter/openclawplugin.git"
|
|
72
|
+
},
|
|
73
|
+
"keywords": [
|
|
74
|
+
"openclaw",
|
|
75
|
+
"csdn",
|
|
76
|
+
"csdn-im",
|
|
77
|
+
"moltbot",
|
|
78
|
+
"channel"
|
|
79
|
+
]
|
|
80
|
+
}
|