4ea29e2c94
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
11 lines
446 B
TypeScript
11 lines
446 B
TypeScript
import { findRuleFilesRecursive as findRuleFileEntriesRecursive, safeRealpathSync } from "@oh-my-opencode/rules-core";
|
|
import type { DirectoryScanEntry } from "@oh-my-opencode/rules-core";
|
|
|
|
export { safeRealpathSync };
|
|
|
|
export function findRuleFilesRecursive(dir: string, results: string[]): void {
|
|
const entries: DirectoryScanEntry[] = [];
|
|
findRuleFileEntriesRecursive(dir, entries);
|
|
results.push(...entries.map((entry) => entry.path));
|
|
}
|