feat(omo-codex): add PLUGIN_BUNDLED rule source to codex-rules engine

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-05-27 14:54:20 +09:00
parent db00bb3d42
commit 8d2e6bea62
12 changed files with 688 additions and 181 deletions
@@ -43,7 +43,12 @@ describe("findRuleCandidates", () => {
const { projectRoot, homeRoot, targetPath } = makeProject();
// when
const candidates = findRuleCandidates({ projectRoot, targetFile: targetPath, homeDir: homeRoot });
const candidates = findRuleCandidates({
projectRoot,
targetFile: targetPath,
homeDir: homeRoot,
disabledSources: new Set(["plugin-bundled"]),
});
// then
expect(candidates.map(candidateSummary)).toEqual([
@@ -64,7 +69,7 @@ describe("findRuleCandidates", () => {
projectRoot,
targetFile: targetPath,
homeDir: homeRoot,
disabledSources: new Set([".omo/rules", "~/.opencode/rules"]),
disabledSources: new Set([".omo/rules", "~/.opencode/rules", "plugin-bundled"]),
});
// then
@@ -84,6 +89,7 @@ describe("findRuleCandidates", () => {
targetFile: targetPath,
homeDir: homeRoot,
skipUserHome: true,
disabledSources: new Set(["plugin-bundled"]),
});
// then