Skip to content

agent-sdk / Exports / PluginSettingsStore

Class: PluginSettingsStore

Centralized settings store for plugin configuration.

Table of contents

Constructors

Methods

Constructors

constructor

new PluginSettingsStore(settingsPath): PluginSettingsStore

Parameters

NameType
settingsPathstring

Returns

PluginSettingsStore

Defined in

agent-sdk/src/plugins/plugin-settings-store.ts:32

Methods

getEnabledPlugins

getEnabledPlugins(): Record<string, boolean>

Get the enabledPlugins map.

Returns

Record<string, boolean>

Defined in

agent-sdk/src/plugins/plugin-settings-store.ts:65


setPluginEnabled

setPluginEnabled(pluginId, enabled): void

Set a single plugin's enabled state.

Parameters

NameType
pluginIdstring
enabledboolean

Returns

void

Defined in

agent-sdk/src/plugins/plugin-settings-store.ts:75


removePluginEntry

removePluginEntry(pluginId): void

Remove a plugin from enabledPlugins.

Parameters

NameType
pluginIdstring

Returns

void

Defined in

agent-sdk/src/plugins/plugin-settings-store.ts:84


getMarketplaceSources

getMarketplaceSources(): Record<string, IPersistedMarketplaceSource>

Get all persisted marketplace sources.

Returns

Record<string, IPersistedMarketplaceSource>

Defined in

agent-sdk/src/plugins/plugin-settings-store.ts:95


setMarketplaceSource

setMarketplaceSource(name, source): void

Add or update a marketplace source.

Parameters

NameType
namestring
sourceIMarketplaceSource

Returns

void

Defined in

agent-sdk/src/plugins/plugin-settings-store.ts:105


removeMarketplaceSource

removeMarketplaceSource(name): void

Remove a marketplace source.

Parameters

NameType
namestring

Returns

void

Defined in

agent-sdk/src/plugins/plugin-settings-store.ts:114

Released under the MIT License.