vigiles API reference
    Preparing search index...

    Function defineEval

    • Declare the eval a file describes. Returns a plain, branded value; it starts nothing, spends nothing, and touches no filesystem.

      import { defineEval, assertRates } from "vigiles";
      import { skill } from "vigiles";

      export default defineEval({
      measure: { pluginDir, task: "…", checks: [skill("my:skill")], trials: 3 },
      assert: (report) => assertRates(report, { min: 0.6 }),
      });

      Type Parameters

      Parameters

      Returns EvalDefinition<K>

      if node was pointed straight at the eval file — see the module doc. That is the ONE thing this function does besides build a value, and it is here rather than in each file precisely so that no author can forget it.