Guardrails & review
Lint rules written in plain English. Oxlint finds the code, TypeSafe Jev answers the question.
const DEFAULT_BASE_URL = 'https://api.typesafe.ai';The link points at the commit we read, so the line number still holds.
These question sets are lifted from this project's source exactly as written.
from tests/jev.test.ts:31
s0true/falseConsider only snippet "s0" in state.snippets. Does this call print, log, or send a password, token, secret, or API key?
s1true/falseConsider only snippet "s1" in state.snippets. Does this function swallow an error silently?
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
s0: { type: 'boolean', instructions: 'Consider only snippet "s0" in state.snippets. Does this call print, log, or send a password, token, secret, or API key?' },
s1: { type: 'boolean', instructions: 'Consider only snippet "s1" in state.snippets. Does this function swallow an error silently?' },
},
});