Download src/channels/plugins/binding-provider.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 639 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/channels/plugins/binding-provider.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/channels/plugins/binding-provider.ts
-
curl -L -o binding-provider.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/channels/plugins/binding-provider.ts
639 Bytes
| /** | |
| * Channel configured-binding provider resolver. | |
| * | |
| * Extracts plugin binding providers from channel plugin definitions. | |
| */ | |
| import type { ChannelConfiguredBindingProvider } from "./types.adapters.js"; | |
| import type { ChannelPlugin } from "./types.plugin.js"; | |
| /** | |
| * Returns the configured binding provider exposed by a channel plugin, when present. | |
| */ | |
| export function resolveChannelConfiguredBindingProvider( | |
| plugin: | |
| | Pick<ChannelPlugin, "bindings"> | |
| | { | |
| bindings?: ChannelConfiguredBindingProvider; | |
| } | |
| | null | |
| | undefined, | |
| ): ChannelConfiguredBindingProvider | undefined { | |
| return plugin?.bindings; | |
| } | |