Documentation
    Preparing search index...
    • Apply compiled inference rules to file attributes, returning merged metadata and optional rendered content.

      Rules are evaluated in order; later rules override earlier ones. If a rule has a map, the JsonMap transformation is applied after set resolution, and map output overrides set output on conflict. A failing schema, render or template is logged and reported in errors; the rule's output for that stage is skipped (a schema failure skips the rest of the rule).

      Parameters

      • compiledRules: CompiledRule[]

        The compiled rules to evaluate.

      • attributes: RuleAttributes

        The file or source attributes to match against.

      • options: ApplyRulesOptions = {}

        Optional configuration for rule application.

      Returns Promise<ApplyRulesResult>

      The merged metadata, optional rendered content and errors.