import Schema from "@deepseek-ai/schemastery"; import { Context } from "@deepseek-ai/cordis"; //#region src/config.d.ts /** * 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; //#endregion //#region src/index.d.ts export declare const name = "dsh-ppap-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 = "ppap_check"; /** * Locate a package-owned file such as the rule pack. * * Resolution order: absolute path, then every ancestor of the module directory, * then the process working directory. A wrong silent fallback would build a * report from the wrong rule pack, so a miss throws with the paths tried. * * @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 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; //#endregion