Files
openclaw/extensions/reef/index.ts
Peter Steinberger c56d1bbbbb fix(reef): send through the connected gateway (#107373)
* fix(reef): route outbound through gateway

* chore: keep Reef release note in PR
2026-07-14 04:08:36 -07:00

33 lines
1.1 KiB
TypeScript

import {
defineBundledChannelEntry,
type OpenClawPluginApi,
} from "openclaw/plugin-sdk/channel-entry-contract";
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
import { registerReefCliMetadata } from "./cli-metadata.js";
const loadReefCommandsRuntime = createLazyRuntimeModule(() => import("./commands.runtime.js"));
function registerReefFullRuntime(api: OpenClawPluginApi): void {
api.registerCommand({
name: "reef",
description: "Manage Reef friends and owner review approvals",
acceptsArgs: true,
requireAuth: true,
handler: async (params) => {
const { handleReefCommand } = await loadReefCommandsRuntime();
return await handleReefCommand(params);
},
});
}
export default defineBundledChannelEntry({
id: "reef",
name: "Reef",
description: "Guarded end-to-end encrypted claw channel",
importMetaUrl: import.meta.url,
plugin: { specifier: "./channel-plugin-api.js", exportName: "reefPlugin" },
runtime: { specifier: "./runtime-api.js", exportName: "setReefRuntime" },
registerCliMetadata: registerReefCliMetadata,
registerFull: registerReefFullRuntime,
});