Variable: default
const default: SelectorResolverPlugin;
Defined in: packages/uimatch-selector-anchors/src/plugin.ts:34
Selector Anchors Plugin
Implements the SelectorResolverPlugin interface for uiMatch. Provides AST-based selector resolution with snippet hash matching and stability scoring.
Example
import plugin from '@uimatch/selector-anchors';
// Use the plugin with uiMatch
const result = await plugin.resolve({
initialSelector: '[data-testid="button"]',
anchorsPath: './anchors.json',
probe: async (selector) => ({ isAlive: true, selector })
});
// Check plugin health
const health = await plugin.healthCheck();
console.log(health.healthy ? 'Plugin ready' : 'Plugin issues');