Skip to content

agent-sdk / Exports / BundlePluginLoader

Class: BundlePluginLoader

Loader for directory-based bundle plugins from the cache directory.

Table of contents

Constructors

Methods

Constructors

constructor

new BundlePluginLoader(pluginsDir, enabledPlugins?): BundlePluginLoader

Parameters

NameType
pluginsDirstring
enabledPlugins?TEnabledPlugins

Returns

BundlePluginLoader

Defined in

agent-sdk/src/plugins/bundle-plugin-loader.ts:121

Methods

loadPluginsSync

loadPluginsSync(): ILoadedBundlePlugin[]

Load all discovered and enabled bundle plugins (sync).

Returns

ILoadedBundlePlugin[]

Defined in

agent-sdk/src/plugins/bundle-plugin-loader.ts:127


loadAll

loadAll(): Promise<ILoadedBundlePlugin[]>

Load all discovered and enabled bundle plugins (async wrapper).

Returns

Promise<ILoadedBundlePlugin[]>

Defined in

agent-sdk/src/plugins/bundle-plugin-loader.ts:132

Released under the MIT License.