@qihoo/tuitui-openclaw-channel 1.0.0
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/README.md +3 -0
- package/index.ts +18 -0
- package/openclaw.plugin.json +9 -0
- package/package.json +44 -0
- package/src/channel.ts +1147 -0
- package/src/types.ts +123 -0
- package/src/utils.ts +344 -0
package/README.md
ADDED
package/index.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { OpenClawPluginApi } from 'openclaw/plugin-sdk';
|
|
2
|
+
import { emptyPluginConfigSchema } from 'openclaw/plugin-sdk';
|
|
3
|
+
import { createTuiTuiChannelPlugin } from './src/channel.js';
|
|
4
|
+
import { CHANNEL_ID, CHANNEL_NAME } from './src/utils';
|
|
5
|
+
|
|
6
|
+
const plugin = {
|
|
7
|
+
id: CHANNEL_ID,
|
|
8
|
+
name: CHANNEL_NAME,
|
|
9
|
+
description: `${CHANNEL_NAME} chat integration for OpenClaw via webhook`,
|
|
10
|
+
configSchema: emptyPluginConfigSchema(),
|
|
11
|
+
register(api: OpenClawPluginApi) {
|
|
12
|
+
console.log(`[${CHANNEL_ID}] Plugin.register Before.`);
|
|
13
|
+
api.registerChannel({ plugin: createTuiTuiChannelPlugin(api.runtime) });
|
|
14
|
+
console.log(`[${CHANNEL_ID}] Plugin.register After.`);
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
console.log(`[${CHANNEL_ID}] Tuitui Extension Loaded!`);
|
|
18
|
+
export default plugin;
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@qihoo/tuitui-openclaw-channel",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"maintainers": [
|
|
5
|
+
{
|
|
6
|
+
"name": "huzunjie",
|
|
7
|
+
"email": "huzunjie@pyzy.net"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"name": "zhaohuaqiang",
|
|
11
|
+
"email": "zhaohuaqiang@360.cn"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "xiaoshasha",
|
|
15
|
+
"email": "xiaoshasha@360.cn"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"description": "TuiTui channel plugin for OpenClaw",
|
|
19
|
+
"type": "module",
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"zod": "^4.3.6",
|
|
22
|
+
"ws": "^8.13.0"
|
|
23
|
+
},
|
|
24
|
+
"openclaw": {
|
|
25
|
+
"extensions": [
|
|
26
|
+
"./index.ts"
|
|
27
|
+
],
|
|
28
|
+
"channel": {
|
|
29
|
+
"id": "tuitui",
|
|
30
|
+
"label": "TuiTui",
|
|
31
|
+
"selectionLabel": "TuiTui",
|
|
32
|
+
"docsPath": "/channels/tuitui",
|
|
33
|
+
"docsLabel": "tuitui",
|
|
34
|
+
"blurb": "TuiTui chat integration.",
|
|
35
|
+
"aliases": [],
|
|
36
|
+
"order": 90
|
|
37
|
+
},
|
|
38
|
+
"install": {
|
|
39
|
+
"npmSpec": "@qihoo/tuitui-openclaw-channel",
|
|
40
|
+
"localPath": "extensions/tuitui",
|
|
41
|
+
"defaultChoice": "npm"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|