Skip to content

Rulvar API reference


Rulvar API reference / eslint-plugin-rulvar

eslint-plugin-rulvar

Determinism lint rules for Rulvar workflow modules: ban bare Date.now, Math.random, new Date, fetch, and process.env, and ban Promise.all over ctx calls, so workflows stay replay-safe. Emits structured JSON diagnostics (toJsonDiagnostics) that drive the planner's self-repair loop, and ships a ready workflowsConfig for ESLint flat config. Requires ESLint 9 or newer (peer dependency).

Part of Rulvar, an embeddable TypeScript engine for durable, budget-bounded multi-agent LLM workflows, where a completed LLM call is never paid for twice. Full documentation: docs.rulvar.com.

Install

bash
pnpm add -D eslint-plugin-rulvar

Documentation

License

Apache-2.0

Interfaces

InterfaceDescription
DialectFindingWhere a finding sits in the ORIGINAL source (line and column counted from 1).
RulvarLintDiagnostic-

Variables

VariableDescription
default-
rules-
workflowsConfigThe flat-config preset for workflow modules: the determinism bans as errors, the duplicate-identical-call advisory as a warning.

Functions

FunctionDescription
scanDialectStructural scan for compileScript: every dynamic code generation form the dialect rejects, as findings positioned in the original source. Covers bare eval/Function calls and new, globalThis.eval/globalThis.Function, and every constructor reconstruction form the shared predicates recognize. Member access on other objects (response.eval, parser.Function) and a property NAMED constructor in an object LITERAL are not code generation and are left alone.
toJsonDiagnostics-