Skip to main content

Interface: SelectorResolverPlugin

Defined in: packages/uimatch-selector-spi/src/index.ts:169

Main plugin interface for selector resolution

Plugins must implement this interface and export it as default.

Properties

name

name: string;

Defined in: packages/uimatch-selector-spi/src/index.ts:173

Plugin name/identifier


version

version: string;

Defined in: packages/uimatch-selector-spi/src/index.ts:178

Plugin version

Methods

healthCheck()?

optional healthCheck(): Promise<HealthCheckResult>;

Defined in: packages/uimatch-selector-spi/src/index.ts:194

Optional: Check if the plugin is available and properly configured Useful for early detection of missing dependencies or configuration issues

Returns

Promise<HealthCheckResult>

Health check result


resolve()

resolve(context): Promise<{
error?: string;
plugin?: string;
reasons?: string[];
selector: string;
stabilityScore?: number;
subselector?: string;
updatedAnchors?: Record<string, unknown>;
}>;

Defined in: packages/uimatch-selector-spi/src/index.ts:186

Resolve a selector using the plugin's strategy

Parameters

context

ResolveContext

Resolution context (includes probe for liveness checking)

Returns

Promise<{ error?: string; plugin?: string; reasons?: string[]; selector: string; stabilityScore?: number; subselector?: string; updatedAnchors?: Record<string, unknown>; }>

Resolution result