UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

25 lines • 873 B
import type { MatchReason, RuleFrontmatter } from "./types.ts"; export interface MatcherInput { frontmatter: RuleFrontmatter; isSingleFile: boolean; /** Path bases to try matching against (POSIX-normalized). */ pathBases: { projectRelative: string; scopeRelative?: string; basename: string; }; } export interface MatchResult { matched: boolean; reason: MatchReason; } export interface MatcherCacheStats { entries: number; compiledPatterns: number; } export declare function matchRule(input: MatcherInput): MatchResult; export declare function normalizeGlobs(frontmatter: RuleFrontmatter): string[]; export declare function hashContent(body: string): string; export declare function resetMatcherCache(): void; export declare function getMatcherCacheStats(): MatcherCacheStats; //# sourceMappingURL=matcher.d.ts.map