import Schema from "@deepseek-ai/schemastery"; import { Context } from "@deepseek-ai/cordis"; /** * Every tunable lives here so an operator can change behaviour from * `cordis.yml` without editing code (the family's "no hard-coded tunables" * redline). The rule pack itself is data as well and can be pointed elsewhere. */ export interface Config { /** Rule-pack path relative to the plugin package root. */ rulesFile: string; /** Rule ids disabled for this deployment. */ disabledRules: string[]; /** When non-empty, only these rule ids run. */ onlyRules: string[]; /** Extra note appended to every `skipped` reason. */ skipNotes: string; /** Tool timeout budget in milliseconds. */ timeoutMs: number; } export declare const Config: Schema; export declare const name = "dsh-nurse-record-check"; export declare const inject: string[]; /** Tool id exposed to the model, and the row id in `cordis.patch.yml`. */ export declare const TOOL_NAME = "nurse_record_check"; /** * Locate a package-owned file such as the rule pack. * * Resolution order: absolute path, then the process working directory, then * every ancestor of the module directory. Ancestors are walked because a plugin * may run from the profile's `node_modules` while callers pass paths relative to * their own workspace, and a wrong silent fallback would produce a report built * from the wrong rule pack. * * @param relative - configured path, relative to the plugin package root. * @returns the resolved absolute path. * @throws Error naming every location tried, when the file is absent. */ export declare function resolvePackageFile(relative: string): string; /** * Register the nursing-record checker tool. * * Registration is an effect: `ctx.tools.register` returns the disposer that * removes the tool when this plugin unloads, which is what keeps the plugin * hot-reloadable. * * @param ctx - plugin context, with `tools` already available. * @param config - validated configuration. */ export declare function apply(ctx: Context, config: Config): () => void;