refactor(packages): rename rules-core to 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-21 11:10:51 +09:00
parent 7c7aa28160
commit 4bbf1d9388
32 changed files with 28 additions and 28 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { createAgentsMdCache } from "@oh-my-opencode/rules-core";
import { createAgentsMdCache } from "@oh-my-opencode/rules-engine";
import type { PluginInput } from "@opencode-ai/plugin";
import { createDynamicTruncator } from "../../shared/dynamic-truncator";
+2 -2
View File
@@ -5,8 +5,8 @@ export {
isDuplicateByRealPath,
resetMatcherCache,
shouldApplyRule,
} from "@oh-my-opencode/rules-core";
export type { MatchResult } from "@oh-my-opencode/rules-core";
} from "@oh-my-opencode/rules-engine";
export type { MatchResult } from "@oh-my-opencode/rules-engine";
export interface MatcherCacheStats {
readonly entries: number;
+2 -2
View File
@@ -1,2 +1,2 @@
export { parseRuleFrontmatter } from "@oh-my-opencode/rules-core";
export type { RuleFrontmatterResult } from "@oh-my-opencode/rules-core";
export { parseRuleFrontmatter } from "@oh-my-opencode/rules-engine";
export type { RuleFrontmatterResult } from "@oh-my-opencode/rules-engine";
@@ -1 +1 @@
export { clearProjectRootCache, findProjectRoot } from "@oh-my-opencode/rules-core";
export { clearProjectRootCache, findProjectRoot } from "@oh-my-opencode/rules-engine";
+1 -1
View File
@@ -1 +1 @@
export { calculateDistance } from "@oh-my-opencode/rules-core";
export { calculateDistance } from "@oh-my-opencode/rules-engine";
+3 -3
View File
@@ -1,7 +1,7 @@
import { setSisyphusRuleDeprecationLogger } from "@oh-my-opencode/rules-core";
import { setSisyphusRuleDeprecationLogger } from "@oh-my-opencode/rules-engine";
import { log } from "../../shared/logger";
setSisyphusRuleDeprecationLogger(log);
export { findRuleFiles } from "@oh-my-opencode/rules-core";
export type { FindRuleFilesOptions } from "@oh-my-opencode/rules-core";
export { findRuleFiles } from "@oh-my-opencode/rules-engine";
export type { FindRuleFilesOptions } from "@oh-my-opencode/rules-engine";
@@ -1,5 +1,5 @@
import { findRuleFilesRecursive as findRuleFileEntriesRecursive, safeRealpathSync } from "@oh-my-opencode/rules-core";
import type { DirectoryScanEntry } from "@oh-my-opencode/rules-core";
import { findRuleFilesRecursive as findRuleFileEntriesRecursive, safeRealpathSync } from "@oh-my-opencode/rules-engine";
import type { DirectoryScanEntry } from "@oh-my-opencode/rules-engine";
export { safeRealpathSync };
+2 -2
View File
@@ -1,2 +1,2 @@
export { createRuleScanCache } from "@oh-my-opencode/rules-core";
export type { DirectoryScanEntry, RuleScanCache } from "@oh-my-opencode/rules-core";
export { createRuleScanCache } from "@oh-my-opencode/rules-engine";
export type { DirectoryScanEntry, RuleScanCache } from "@oh-my-opencode/rules-engine";
+1 -1
View File
@@ -1,4 +1,4 @@
import type { RuleFileCandidate, RuleMetadata } from "@oh-my-opencode/rules-core";
import type { RuleFileCandidate, RuleMetadata } from "@oh-my-opencode/rules-engine";
export type { RuleFileCandidate, RuleMetadata };