Plugin Entry Points
Every plugin exports a default entry object. The SDK provides three helpers for creating them.definePluginEntry
Import: fluffbuzz/plugin-sdk/plugin-entry
For provider plugins, tool plugins, hook plugins, and anything that is not
a messaging channel.
| Field | Type | Required | Default |
|---|---|---|---|
id | string | Yes | — |
name | string | Yes | — |
description | string | Yes | — |
kind | string | No | — |
configSchema | FluffBuzzPluginConfigSchema | () => FluffBuzzPluginConfigSchema | No | Empty object schema |
register | (api: FluffBuzzPluginApi) => void | Yes | — |
idmust match yourfluffbuzz.plugin.jsonmanifest.kindis for exclusive slots:"memory"or"context-engine".configSchemacan be a function for lazy evaluation.
defineChannelPluginEntry
Import: fluffbuzz/plugin-sdk/core
Wraps definePluginEntry with channel-specific wiring. Automatically calls
api.registerChannel({ plugin }) and gates registerFull on registration mode.
| Field | Type | Required | Default |
|---|---|---|---|
id | string | Yes | — |
name | string | Yes | — |
description | string | Yes | — |
plugin | ChannelPlugin | Yes | — |
configSchema | FluffBuzzPluginConfigSchema | () => FluffBuzzPluginConfigSchema | No | Empty object schema |
setRuntime | (runtime: PluginRuntime) => void | No | — |
registerFull | (api: FluffBuzzPluginApi) => void | No | — |
setRuntimeis called during registration so you can store the runtime reference (typically viacreatePluginRuntimeStore).registerFullonly runs whenapi.registrationMode === "full". It is skipped during setup-only loading.
defineSetupPluginEntry
Import: fluffbuzz/plugin-sdk/core
For the lightweight setup-entry.ts file. Returns just { plugin } with no
runtime or CLI wiring.
Registration mode
api.registrationMode tells your plugin how it was loaded:
| Mode | When | What to register |
|---|---|---|
"full" | Normal gateway startup | Everything |
"setup-only" | Disabled/unconfigured channel | Channel registration only |
"setup-runtime" | Setup flow with runtime available | Channel + lightweight runtime |
defineChannelPluginEntry handles this split automatically. If you use
definePluginEntry directly for a channel, check mode yourself:
Plugin shapes
FluffBuzz classifies loaded plugins by their registration behavior:| Shape | Description |
|---|---|
| plain-capability | One capability type (e.g. provider-only) |
| hybrid-capability | Multiple capability types (e.g. provider + speech) |
| hook-only | Only hooks, no capabilities |
| non-capability | Tools/commands/services but no capabilities |
fluffbuzz plugins inspect <id> to see a plugin’s shape.
Related
- SDK Overview — registration API and subpath reference
- Runtime Helpers —
api.runtimeandcreatePluginRuntimeStore - Setup and Config — manifest, setup entry, deferred loading
- Channel Plugins — building the
ChannelPluginobject - Provider Plugins — provider registration and hooks