Files
oh-my-opencode/packages/rules-engine/src/index.ts
T

34 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-05-18 21:18:56 +09:00
export { createAgentsMdCache, createRuleScanCache } from "./cache";
export { findAgentsMdUp, type FindAgentsMdUpInput } from "./agents-md";
export { findRuleFiles, setSisyphusRuleDeprecationLogger, type SisyphusRuleDeprecationLogger } from "./finder";
2026-05-18 21:18:56 +09:00
export { parseRuleFrontmatter } from "./parser";
export { shouldApplyRule, createContentHash, isDuplicateByContentHash, isDuplicateByRealPath, resetMatcherCache, getMatcherCacheStats } from "./matcher";
export { findProjectRoot, clearProjectRootCache } from "./project-root";
export { calculateDistance } from "./distance";
export { findRuleFilesRecursive, safeRealpathSync } from "./scanner";
export {
AGENTS_FILENAME,
EXCLUDED_DIRS,
GITHUB_INSTRUCTIONS_PATTERN,
GLOBAL_DISTANCE,
OPENCODE_USER_RULE_DIRS,
PROJECT_MARKERS,
PROJECT_RULE_FILES,
PROJECT_RULE_SUBDIRS,
RULE_EXTENSIONS,
SOURCE_PRIORITY,
USER_RULE_DIR,
} from "./constants";
2026-05-18 21:18:56 +09:00
export type {
AgentsMdCache,
DirectoryScanEntry,
FindRuleFilesOptions,
MatchResult,
RuleFileCandidate,
RuleFrontmatterResult,
RuleMetadata,
RuleScanCache,
RuleScanCacheStats,
RuleSource,
} from "./types";