@kookapp/clawdbot-plugin 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/index.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ import type { ClawdbotPluginApi } from "clawdbot/plugin-sdk";
2
+ declare const plugin: {
3
+ id: string;
4
+ name: string;
5
+ description: string;
6
+ configSchema: any;
7
+ register(api: ClawdbotPluginApi): void;
8
+ };
9
+ export default plugin;
10
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAM7D,QAAA,MAAM,MAAM;;;;;kBAKI,iBAAiB;CAIhC,CAAC;AAEF,eAAe,MAAM,CAAC"}
package/index.js ADDED
@@ -0,0 +1,15 @@
1
+ import { emptyPluginConfigSchema } from "clawdbot/plugin-sdk";
2
+ import { kookPlugin } from "./src/channel.js";
3
+ import { setKookRuntime } from "./src/runtime.js";
4
+ const plugin = {
5
+ id: "kook",
6
+ name: "Kook",
7
+ description: "Kook channel plugin",
8
+ configSchema: emptyPluginConfigSchema(),
9
+ register(api) {
10
+ setKookRuntime(api.runtime);
11
+ api.registerChannel({ plugin: kookPlugin });
12
+ },
13
+ };
14
+ export default plugin;
15
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,MAAM,GAAG;IACb,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,qBAAqB;IAClC,YAAY,EAAE,uBAAuB,EAAE;IACvC,QAAQ,CAAC,GAAsB;QAC7B,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAC5B,GAAG,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;IAC9C,CAAC;CACF,CAAC;AAEF,eAAe,MAAM,CAAC"}
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@kookapp/clawdbot-plugin",
3
+ "version": "1.0.0",
4
+ "description": "Kook channel plugin for Clawdbot",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.js",
11
+ "types": "./dist/index.d.ts"
12
+ }
13
+ },
14
+
15
+ "scripts": {
16
+ "build": "esbuild src/index.ts --bundle --outfile=dist/index.js --format=esm --platform=node --target=node22 --external:clawdbot",
17
+ "dev": "esbuild src/index.ts --bundle --watch --outfile=dist/index.js --format=esm --platform=node --target=node22 --external:clawdbot",
18
+ "prepublishOnly": "npm run build",
19
+ "test": "echo \"Error: no test specified\" && exit 1"
20
+ },
21
+ "keywords": [
22
+ "clawdbot",
23
+ "kook",
24
+ "chat",
25
+ "bot",
26
+ "plugin"
27
+ ],
28
+ "author": "Xiaolong Dong",
29
+ "license": "MIT",
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://github.com/clawdbot/kook.git"
33
+ },
34
+ "bugs": {
35
+ "url": "https://github.com/clawdbot/kook/issues"
36
+ },
37
+ "homepage": "https://github.com/clawdbot/kook",
38
+ "peerDependencies": {
39
+ "clawdbot": ">=2026.1.0"
40
+ },
41
+ "dependencies": {
42
+ "ws": "^8.19.0"
43
+ },
44
+ "devDependencies": {
45
+ "esbuild": "^0.20.0"
46
+ }
47
+ }