@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
27 lines • 1.01 kB
TypeScript
export interface RuleGroups {
match: string;
key?: string;
text?: string;
}
/**
* `key` and `text` name groups of the pattern; authors often name ones it lacks. A `text` on a
* pattern with no groups at all means the matched text itself, so the pattern is wrapped in that
* group. Otherwise a missing role is dropped: a block reading the missing field still fails
* validation, and a spec that never reads it stays usable.
*/
export declare function repairRuleGroups(match: string, key: string | undefined, text: string | undefined): RuleGroups;
export type MeterTotal = {
kind: "unknown";
} | {
kind: "number";
value: number;
} | {
kind: "ref";
value: Record<string, unknown>;
};
/**
* A meter's whole as authored: a numeric string is the number it spells, and an absent or
* unreadable whole (`"?"`, `null`) is unknown, which draws the meter as a plain stat.
*/
export declare function readMeterTotal(raw: unknown): MeterTotal;
//# sourceMappingURL=spec-repair.d.ts.map