护栏与审查

oxlint-plugin-jev

@wobsoriano14TypeScriptMIT更新于 2026-09-19可当场跑

用简单英文编写的Lint规则,Oxlint定位代码,TypeSafe Jev回答相关问题。

英文原文

Lint rules written in plain English. Oxlint finds the code, TypeSafe Jev answers the question.

wobsoriano/oxlint-plugin-jev

它在哪儿调用了 Jev

const DEFAULT_BASE_URL = 'https://api.typesafe.ai';

src/index.ts:35

链接指向我们抓取当天的那个 commit,行号是准的。

它问 Jev 的问题

下面是从这个项目源码里原样取出来的 question 组合。

取自 tests/jev.test.ts:31

  1. s0是/否

    Consider only snippet "s0" in state.snippets. Does this call print, log, or send a password, token, secret, or API key?

  2. s1是/否

    Consider 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?' },
  },
});

同类的其他项目