浏览器与电脑操作

jev-automation

@yatharth17061TypeScript更新于 2026-09-18可当场跑

通过 TypeSafe 的 Jev 实现网页浏览器自动化操作。

英文原文

Trying automation on web browser via jev from typesafe

yatharth1706/jev-automation

它在哪儿调用了 Jev

import { type ChoiceCriteria, type Questions, type SystemOneResult, TypeSafeClient, choice, noul } from "@typesafe-ai/sdk";

server/decide.ts:9

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

它问 Jev 的问题

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

取自 server/decide.ts:96

  1. risky是/否

    Would carrying out this command do something hard to undo?

  2. submit_after_typing是/否

    After the text is typed, does the user want it submitted right away (press enter / run the search)?

用你自己的内容跑一遍

代码
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    risky: { type: 'boolean', instructions: 'Would carrying out this command do something hard to undo?' },
    submit_after_typing: { type: 'boolean', instructions: 'After the text is typed, does the user want it submitted right away (press enter / run the search)?' },
  },
});

同类的其他项目