// engine/claude-md-injector/index.ts — Public API for injecting Planu proactive-behavior rules
import { buildRulesSection } from './rules-template.js';
import { patchClaudeMd } from './file-patcher.js';
/**
 * Injects (or updates) the Planu proactive-behavior rules section in a project CLAUDE.md.
 *
 * The operation is idempotent: if the section already exists it is replaced in-place;
 * if the file does not exist it is created.
 */
export async function injectProactiveRules(claudeMdPath, version) {
    const section = buildRulesSection(version);
    await patchClaudeMd(claudeMdPath, section);
}
//# sourceMappingURL=index.js.map