游戏与仿真

chakravyuha-jev

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

Chakravyuha 是一个极环迷宫,每步都是 Jev (TypeSafe System One) 的决策,模型选步,路径评分,历史页评估置信度。

英文原文

Chakravyuha — a polar ring-maze where every move is a Jev (TypeSafe System One) decision. A fun experiment: the model picks each move, the walk grades it green or red, and the history page asks whether its confidence score can be trusted. BYOK, no build step.

kspviswa/chakravyuha-jev

它在哪儿调用了 Jev

//   direct           POST https://api.typesafe.ai/v1/systemone with

lib/transport.js:13

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

它问 Jev 的问题

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

取自 test/helpers.mjs:63

  1. next_move选项

    Which move is the FIRST move of a shortest route from Abhimanyu to the centre?

    • inwardring 3 → ring 2, same sector
    • outwardring 3 → ring 2, same sector
    • clockwisesector 0 → sector 1, same ring

用你自己的内容跑一遍

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

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    next_move: { type: 'choice', instructions: 'Which move is the FIRST move of a shortest route from Abhimanyu to the centre?',
      criteria: { inward: 'ring 3 → ring 2, same sector', outward: 'ring 3 → ring 2, same sector', clockwise: 'sector 0 → sector 1, same ring' } },
  },
});

同类的其他项目