UNPKG

@code-yeongyu/senpi

Version:

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

18 lines • 1.15 kB
import type { Stats } from "node:fs"; export interface SkillSourceCacheLimits { /** A source larger than this (no closing `---` within the frontmatter prefix) is never kept. */ readonly maxEntryBytes: number; /** Kept sources never exceed this in total; the oldest are dropped first. */ readonly maxTotalBytes: number; } export type ReadUserSkillSource = (filePath: string, stats: Stats) => string; /** `readSkillMarkdownSource` for user skill files, reusing the last read while `stats` still matches it. */ export declare function createSkillSourceCache(limits?: SkillSourceCacheLimits, now?: () => number): ReadUserSkillSource; /** * Process-wide: a shared RPC host opens a fresh resource loader for every session, and each open * loaded every user skill twice (omo#11437). The stat the caller already took is the validator, so an * edited, replaced, or touched SKILL.md is read again on the next load and hot reload is unchanged. * Project skills never come here; their checked descriptor read stays per load. */ export declare const readUserSkillSource: ReadUserSkillSource; //# sourceMappingURL=skill-source-cache.d.ts.map