2026-03-04 02:33:19 -05:00
|
|
|
import type { AnyAgentTool, OpenClawPluginApi } from "openclaw/plugin-sdk/zalouser";
|
|
|
|
|
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk/zalouser";
|
2026-01-20 13:29:19 +00:00
|
|
|
import { zalouserDock, zalouserPlugin } from "./src/channel.js";
|
2026-01-18 04:23:25 +00:00
|
|
|
import { setZalouserRuntime } from "./src/runtime.js";
|
2026-02-01 10:03:47 +09:00
|
|
|
import { ZalouserToolSchema, executeZalouserTool } from "./src/tool.js";
|
2026-01-16 13:28:18 -08:00
|
|
|
|
|
|
|
|
const plugin = {
|
|
|
|
|
id: "zalouser",
|
|
|
|
|
name: "Zalo Personal",
|
2026-03-02 15:40:26 +00:00
|
|
|
description: "Zalo personal account messaging via native zca-js integration",
|
2026-01-19 03:38:51 +00:00
|
|
|
configSchema: emptyPluginConfigSchema(),
|
2026-01-30 03:15:10 +01:00
|
|
|
register(api: OpenClawPluginApi) {
|
2026-01-18 04:23:25 +00:00
|
|
|
setZalouserRuntime(api.runtime);
|
2026-01-20 13:29:19 +00:00
|
|
|
api.registerChannel({ plugin: zalouserPlugin, dock: zalouserDock });
|
2026-01-16 13:28:18 -08:00
|
|
|
|
|
|
|
|
api.registerTool({
|
|
|
|
|
name: "zalouser",
|
|
|
|
|
label: "Zalo Personal",
|
|
|
|
|
description:
|
|
|
|
|
"Send messages and access data via Zalo personal account. " +
|
|
|
|
|
"Actions: send (text message), image (send image URL), link (send link), " +
|
|
|
|
|
"friends (list/search friends), groups (list groups), me (profile info), status (auth check).",
|
|
|
|
|
parameters: ZalouserToolSchema,
|
|
|
|
|
execute: executeZalouserTool,
|
2026-02-09 10:05:38 -08:00
|
|
|
} as AnyAgentTool);
|
2026-01-16 13:28:18 -08:00
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default plugin;
|