@mishap213/openclaw-channel-vk 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.ts ADDED
@@ -0,0 +1,12 @@
1
+ import { defineChannelPluginEntry } from \"openclaw/plugin-sdk/core\";
2
+ import { vkChatPlugin } from \"./src/channel.js\";
3
+
4
+ export default defineChannelPluginEntry({
5
+ id: \"vk\",
6
+ name: \"VKontakte\",
7
+ description: \"VKontakte messaging channel for OpenClaw\",
8
+ plugin: vkChatPlugin,
9
+ registerFull(api) {
10
+ console.log(\"[VK] registerFull called\");
11
+ }
12
+ });
@@ -0,0 +1,6 @@
1
+ {
2
+ "id": "vk",
3
+ "type": "channel",
4
+ "name": "VKontakte",
5
+ "description": "VKontakte messaging channel for OpenClaw"
6
+ }
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@mishap213/openclaw-channel-vk",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "description": "VKontakte channel plugin for OpenClaw",
6
+ "author": "Mikhail",
7
+ "license": "MIT",
8
+ "main": "index.ts",
9
+ "files": ["index.ts", "setup-entry.ts", "openclaw.plugin.json", "src/"],
10
+ "peerDependencies": { "openclaw": ">=2026.3.0" },
11
+ "openclaw": {
12
+ "extensions": ["./index.ts"],
13
+ "setupEntry": "./setup-entry.ts",
14
+ "channel": { "id": "vk", "label": "VKontakte", "blurb": "VK channel" }
15
+ },
16
+ "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" }
17
+ }
package/setup-entry.ts ADDED
@@ -0,0 +1,4 @@
1
+ import { defineSetupPluginEntry } from \"openclaw/plugin-sdk/core\";
2
+ import { vkChatPlugin } from \"./src/channel.js\";
3
+
4
+ export default defineSetupPluginEntry(vkChatPlugin);
package/src/channel.ts ADDED
@@ -0,0 +1,22 @@
1
+ import { createChatChannelPlugin, createChannelPluginBase } from \"openclaw/plugin-sdk/core\";
2
+
3
+ const vkChatPlugin = createChatChannelPlugin({
4
+ base: createChannelPluginBase({
5
+ id: \"vk\",
6
+ }),
7
+
8
+ outbound: {
9
+ attachedResults: {
10
+ sendText: async (params) => {
11
+ console.log([VK SEND] to : );
12
+ return { messageId: Date.now().toString() };
13
+ }
14
+ }
15
+ },
16
+
17
+ activate: async (config) => {
18
+ console.log(\"✅ VK PLUGIN: activate() called\", config);
19
+ }
20
+ });
21
+
22
+ export { vkChatPlugin };