UNPKG

@code-yeongyu/senpi

Version:

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

19 lines • 1.23 kB
import type { JobWidgetAgg, JobWidgetRule, JobWidgetRuleField, JobWidgetSpec } from "./spec-types.ts"; /** Whether a rule's `from` names the source `id`. */ export declare function ruleReadsSource(from: string, id: string): boolean; /** The fields a rule feeds: one per named group but `key`, then its `count`. */ export declare function ruleFields(rule: JobWidgetRule): JobWidgetRuleField[]; /** Whether an aggregation needs numbers: `count` and `rate` read matches, not values. */ export declare function aggNeedsValue(agg: JobWidgetAgg): boolean; /** How rules feed a field: whether any feed is a number or keeps text, and the groups keying it. */ export interface FieldFeed { value: boolean; text: boolean; keyGroups: Set<string>; } export declare function fieldFeeds(spec: JobWidgetSpec): Map<string, FieldFeed>; /** Fields some rule splits by key; every other field keeps a single series. */ export declare function keyedFields(spec: JobWidgetSpec | undefined): Set<string>; /** Keys the spec's blocks and headline name, per field: a field's key cap never evicts them. */ export declare function pinnedKeys(spec: JobWidgetSpec | undefined): Map<string, Set<string>>; //# sourceMappingURL=spec-rules.d.ts.map