From 28f48a2dfd0c0d00dbf74a1cd030258fef62c9e8 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sun, 22 Mar 2026 20:03:17 -0700 Subject: [PATCH] style(docs): format sdk entrypoints doc --- docs/plugins/sdk-entrypoints.md | 34 ++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/docs/plugins/sdk-entrypoints.md b/docs/plugins/sdk-entrypoints.md index efb7c0eeb8d..9dac6cd6ea7 100644 --- a/docs/plugins/sdk-entrypoints.md +++ b/docs/plugins/sdk-entrypoints.md @@ -43,14 +43,14 @@ export default definePluginEntry({ }); ``` -| Field | Type | Required | Default | -| --- | --- | --- | --- | -| `id` | `string` | Yes | — | -| `name` | `string` | Yes | — | -| `description` | `string` | Yes | — | -| `kind` | `string` | No | — | -| `configSchema` | `OpenClawPluginConfigSchema \| () => OpenClawPluginConfigSchema` | No | Empty object schema | -| `register` | `(api: OpenClawPluginApi) => void` | Yes | — | +| Field | Type | Required | Default | +| -------------- | ---------------------------------------------------------------- | -------- | ------------------- | +| `id` | `string` | Yes | — | +| `name` | `string` | Yes | — | +| `description` | `string` | Yes | — | +| `kind` | `string` | No | — | +| `configSchema` | `OpenClawPluginConfigSchema \| () => OpenClawPluginConfigSchema` | No | Empty object schema | +| `register` | `(api: OpenClawPluginApi) => void` | Yes | — | - `id` must match your `openclaw.plugin.json` manifest. - `kind` is for exclusive slots: `"memory"` or `"context-engine"`. @@ -79,15 +79,15 @@ export default defineChannelPluginEntry({ }); ``` -| Field | Type | Required | Default | -| --- | --- | --- | --- | -| `id` | `string` | Yes | — | -| `name` | `string` | Yes | — | -| `description` | `string` | Yes | — | -| `plugin` | `ChannelPlugin` | Yes | — | -| `configSchema` | `OpenClawPluginConfigSchema \| () => OpenClawPluginConfigSchema` | No | Empty object schema | -| `setRuntime` | `(runtime: PluginRuntime) => void` | No | — | -| `registerFull` | `(api: OpenClawPluginApi) => void` | No | — | +| Field | Type | Required | Default | +| -------------- | ---------------------------------------------------------------- | -------- | ------------------- | +| `id` | `string` | Yes | — | +| `name` | `string` | Yes | — | +| `description` | `string` | Yes | — | +| `plugin` | `ChannelPlugin` | Yes | — | +| `configSchema` | `OpenClawPluginConfigSchema \| () => OpenClawPluginConfigSchema` | No | Empty object schema | +| `setRuntime` | `(runtime: PluginRuntime) => void` | No | — | +| `registerFull` | `(api: OpenClawPluginApi) => void` | No | — | - `setRuntime` is called during registration so you can store the runtime reference (typically via `createPluginRuntimeStore`).