UNPKG

vibe-rules

Version:

A utility for managing Cursor rules, Windsurf rules, and other AI prompts

13 lines (12 loc) 820 B
import { RuleConfig, RuleProvider, RuleGeneratorOptions } from "../types.js"; export declare class UnifiedRuleProvider implements RuleProvider { private getRuleFilePath; saveRule(config: RuleConfig, _options?: RuleGeneratorOptions): Promise<string>; loadRule(name: string): Promise<RuleConfig | null>; listRules(): Promise<string[]>; generateRuleContent(config: RuleConfig, options?: RuleGeneratorOptions): string; appendRule(name: string, targetPath?: string, isGlobal?: boolean, options?: RuleGeneratorOptions): Promise<boolean>; appendFormattedRule(config: RuleConfig, targetPath: string, // This will be the path to the .rules file _isGlobal?: boolean, // isGlobal might be less relevant here if .rules is always project-based options?: RuleGeneratorOptions): Promise<boolean>; }