mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 04:20:34 +00:00
25 lines
563 B
TypeScript
25 lines
563 B
TypeScript
import type { ChannelPlugin } from "../channels/plugins/types.js";
|
|
|
|
export function makeDirectPlugin(params: {
|
|
id: string;
|
|
label: string;
|
|
docsPath: string;
|
|
config: ChannelPlugin["config"];
|
|
}): ChannelPlugin {
|
|
return {
|
|
id: params.id,
|
|
meta: {
|
|
id: params.id,
|
|
label: params.label,
|
|
selectionLabel: params.label,
|
|
docsPath: params.docsPath,
|
|
blurb: "test",
|
|
},
|
|
capabilities: { chatTypes: ["direct"] },
|
|
config: params.config,
|
|
actions: {
|
|
describeMessageTool: () => ({ actions: ["send"] }),
|
|
},
|
|
};
|
|
}
|