# Class PluginRegistry

In-memory plugin registry with experimental gating.

Plugins are registered during startup. After freeze(), no further registrations are accepted.

#### Implements

- IPluginRegistry

- Defined in packages/nexus-agents/src/pipeline/plugin-registry.ts:45

##### Index

### Constructors

constructor

### Accessors

frozen

### Methods

register
resolve
listEnabled
isEnabled
freeze

## Constructors

### constructor

- new PluginRegistry(options?: PluginRegistryOptions): PluginRegistry

  #### Parameters

  - `Optional` options: PluginRegistryOptions

  #### Returns PluginRegistry

  - Defined in packages/nexus-agents/src/pipeline/plugin-registry.ts:50

## Accessors

### frozen

- get frozen(): boolean

  Whether the registry is frozen.

  #### Returns boolean

  Implementation of IPluginRegistry.frozen

  - Defined in packages/nexus-agents/src/pipeline/plugin-registry.ts:54

## Methods

### register

- register(plugin: PipelinePlugin): Result<void, RegistrationError>

  Register a plugin. Validates manifest and config. Returns error if plugin ID conflicts or capabilities missing.

  #### Parameters

  - plugin: PipelinePlugin

  #### Returns Result<void, RegistrationError>

  Implementation of IPluginRegistry.register

  - Defined in packages/nexus-agents/src/pipeline/plugin-registry.ts:58

### resolve

- resolve(pluginId: string): PipelinePlugin | undefined

  Resolve a plugin by ID. Returns undefined if not registered or disabled.

  #### Parameters

  - pluginId: string

  #### Returns PipelinePlugin | undefined

  Implementation of IPluginRegistry.resolve

  - Defined in packages/nexus-agents/src/pipeline/plugin-registry.ts:93

### listEnabled

- listEnabled(): readonly {
  id: string;
  version: string;
  description: string;
  stages: (
  "analyze"
  | "validate"
  | "aggregate"
  | "execute"
  | "gate"
  | "route"
  )[];
  requiredCapabilities: string[];
  trustLevel: "external" | "standard" | "core" | "experimental";
  experimental: boolean;
  }[]

  List all enabled plugins with their manifests.

  #### Returns readonly {
  id: string;
  version: string;
  description: string;
  stages: (
  "analyze"
  | "validate"
  | "aggregate"
  | "execute"
  | "gate"
  | "route"
  )[];
  requiredCapabilities: string[];
  trustLevel: "external" | "standard" | "core" | "experimental";
  experimental: boolean;
  }[]

  Implementation of IPluginRegistry.listEnabled

  - Defined in packages/nexus-agents/src/pipeline/plugin-registry.ts:97

### isEnabled

- isEnabled(pluginId: string): boolean

  Check if a plugin is registered and enabled.

  #### Parameters

  - pluginId: string

  #### Returns boolean

  Implementation of IPluginRegistry.isEnabled

  - Defined in packages/nexus-agents/src/pipeline/plugin-registry.ts:101

### freeze

- freeze(): void

  Freeze the registry — no further registrations allowed.

  #### Returns void

  Implementation of IPluginRegistry.freeze

  - Defined in packages/nexus-agents/src/pipeline/plugin-registry.ts:105