Skip to content
/docs

Local Evaluation

Local rule utility functions in the TypeScript SDK.

The current SDK exposes local rule utilities under veto-sdk/rules.

import { evaluateRulesLocally } from "veto-sdk/rules";

const result = evaluateRulesLocally(
  [
    {
      id: "block-prod",
      name: "Block prod writes",
      enabled: true,
      severity: "critical",
      action: "block",
      tools: ["prod_db_query"],
      conditions: [{ field: "operation", operator: "in", value: ["delete", "drop"] }],
    },
  ],
  "prod_db_query",
  { operation: "delete" },
);

These helpers do not replace Veto Cloud Guard, Charter, approvals, or dashboard logging.

On this page

No Headings