@karmaniverous/jeeves-watcher
    Preparing search index...

    Interface CompiledRule

    A compiled inference rule ready for evaluation.

    interface CompiledRule {
        rule: {
            description: string;
            map?: JsonMapMap;
            match: Record<string, unknown>;
            name: string;
            render?: {
                body: {
                    contentPath?: string;
                    each?: boolean;
                    format?: string;
                    formatArgs?: unknown[];
                    heading: number;
                    headingTemplate?: string;
                    label?: string;
                    path: string;
                    sort?: string;
                }[];
                frontmatter: string[];
            };
            schema?: (
                | string
                | {
                    properties?: Record<string, Record<string, unknown>>;
                    type?: "object";
                }
            )[];
            template?: string;
        };
        validate: (data: unknown) => boolean;
    }
    Index

    Properties

    Properties

    rule: {
        description: string;
        map?: JsonMapMap;
        match: Record<string, unknown>;
        name: string;
        render?: {
            body: {
                contentPath?: string;
                each?: boolean;
                format?: string;
                formatArgs?: unknown[];
                heading: number;
                headingTemplate?: string;
                label?: string;
                path: string;
                sort?: string;
            }[];
            frontmatter: string[];
        };
        schema?: (
            | string
            | {
                properties?: Record<string, Record<string, unknown>>;
                type?: "object";
            }
        )[];
        template?: string;
    }

    The original rule definition.

    Type Declaration

    • description: string

      Human-readable description of what this rule does.

    • Optionalmap?: JsonMapMap

      JsonMap transformation (inline or reference to named map).

    • match: Record<string, unknown>

      JSON Schema object to match against document metadata.

    • name: string

      Unique name for this inference rule.

    • Optionalrender?: {
          body: {
              contentPath?: string;
              each?: boolean;
              format?: string;
              formatArgs?: unknown[];
              heading: number;
              headingTemplate?: string;
              label?: string;
              path: string;
              sort?: string;
          }[];
          frontmatter: string[];
      }

      Declarative structured renderer configuration (mutually exclusive with template).

      • body: {
            contentPath?: string;
            each?: boolean;
            format?: string;
            formatArgs?: unknown[];
            heading: number;
            headingTemplate?: string;
            label?: string;
            path: string;
            sort?: string;
        }[]

        Ordered markdown body sections.

      • frontmatter: string[]

        Keys to extract from context and include as YAML frontmatter.

    • Optionalschema?: (
          | string
          | { properties?: Record<string, Record<string, unknown>>; type?: "object" }
      )[]

      Array of schema references to merge (named refs and/or inline objects).

    • Optionaltemplate?: string

      Handlebars template (inline string, named ref, or .hbs/.handlebars file path).

    validate: (data: unknown) => boolean

    The compiled AJV validate function.