feat(omo-claude): vendor rules component with CC patches

model/turn_id optional (SessionStart keeps model), CLAUDE_PLUGIN_ROOT/DATA env
fallback, .claude-plugin manifest path, PostToolUse matcher Write|Edit|MultiEdit,
OMO_CLAUDE_RULES_* env aliases, bundled-rules vendored. Injects w/o turn_id (QA).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
YeonGyu-Kim
2026-05-29 13:23:40 +09:00
parent e20c51c77f
commit 3272037c3e
36 changed files with 3798 additions and 0 deletions
@@ -0,0 +1,9 @@
import type { PiRulesConfig } from "./rules/types.js";
export function withPostCompactBudget(config: PiRulesConfig): PiRulesConfig {
return {
...config,
maxRuleChars: Math.min(config.maxRuleChars, config.postCompactMaxRuleChars),
maxResultChars: Math.min(config.maxResultChars, config.postCompactMaxResultChars),
};
}