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

    Function applyRules

    • 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.

      Parameters

      • compiledRules: CompiledRule[]

        The compiled rules to evaluate.

      • attributes: FileAttributes

        The file attributes to match against.

      • options: ApplyRulesOptions = {}

        Optional configuration for rule application.

      Returns Promise<ApplyRulesResult>

      The merged metadata and optional rendered content.