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 }),}); Copy
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 }),});
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.
Declare the eval a file describes. Returns a plain, branded value; it starts nothing, spends nothing, and touches no filesystem.