Files
openclaw/extensions/zalouser/index.ts
小白 353f97bf10 清理仓库:删除 Git 历史和 PNG 图片
- 删除 .git 目录(历史记录)
- 删除 80 张 PNG 图片
- 保留核心代码、文档、扩展
- 大小从 141M 减少到 90M
2026-03-16 17:34:47 +08:00

33 lines
1.2 KiB
TypeScript

import type { AnyAgentTool, OpenClawPluginApi } from "openclaw/plugin-sdk/zalouser";
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk/zalouser";
import { zalouserPlugin } from "./src/channel.js";
import { setZalouserRuntime } from "./src/runtime.js";
import { ZalouserToolSchema, executeZalouserTool } from "./src/tool.js";
const plugin = {
id: "zalouser",
name: "Zalo Personal",
description: "Zalo personal account messaging via native zca-js integration",
configSchema: emptyPluginConfigSchema(),
register(api: OpenClawPluginApi) {
setZalouserRuntime(api.runtime);
api.registerChannel(zalouserPlugin);
if (api.registrationMode !== "full") {
return;
}
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,
} as AnyAgentTool);
},
};
export default plugin;