UNPKG

vibe-rules

Version:

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

15 lines (14 loc) 775 B
import { RuleConfig, RuleGeneratorOptions } from "../types.js"; /** * Appends or updates a tagged block within a single target file. * * Reads the file content, looks for an existing block matching the rule name tag, * replaces it if found, or appends the new block otherwise. * * @param targetPath The path to the target file. * @param config The rule configuration. * @param options Optional generator options. * @param appendInsideVibeRulesBlock If true, tries to append within <vibe-rules Integration> block. * @returns Promise resolving to true if successful, false otherwise. */ export declare function appendOrUpdateTaggedBlock(targetPath: string, config: RuleConfig, options?: RuleGeneratorOptions, appendInsideVibeRulesBlock?: boolean): Promise<boolean>;