UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

21 lines (20 loc) 841 B
import "./read-only-account-inspect-BVDfcwnb.js"; //#region src/channels/plugins/directory-adapters.ts const nullChannelDirectorySelf = async () => null; const emptyChannelDirectoryList = async () => []; /** Build a channel directory adapter with a null self resolver by default. */ function createChannelDirectoryAdapter(params = {}) { return { self: params.self ?? nullChannelDirectorySelf, ...params }; } /** Build the common empty directory surface for channels without directory support. */ function createEmptyChannelDirectoryAdapter() { return createChannelDirectoryAdapter({ listPeers: emptyChannelDirectoryList, listGroups: emptyChannelDirectoryList }); } //#endregion export { nullChannelDirectorySelf as i, createEmptyChannelDirectoryAdapter as n, emptyChannelDirectoryList as r, createChannelDirectoryAdapter as t };