@alisio/plugin-evalua

中文文档
0.10.0发布于 2026/10/15MITTypeScriptES Module近 30 天下载 3225

Guides teachers through a short interview and keeps the teacher profile, workspace and exam numbering for printable school math exams.

原始使用文档
文档目录10 节
  1. Quick path
  2. How to use it
  3. How an exam is generated and reviewed
  4. Agents
  5. Commands and tools
  6. How it works
  7. Print browsers
  8. Workspace layout
  9. Profile fields
  10. License

Evalúa

@alisio/plugin-evalua

Read this in Spanish. Both READMEs are kept in sync and must be updated together.

Evalúa helps a teacher prepare printable school math exams through a short, guided interview, with answers and distractors computed by code and a page budget that is measured, never guessed.

Status: v1 feature complete. The profile, workspace and interview, the exact math core, the extensible knowledge base, item generation and verification, and the end-to-end flow (Gate A → generate → build → Gate B) that writes the four documents as HTML and PDF are implemented and tested.

Quick path

Install it persistently through Alisio:

alisio install npm:@alisio/plugin-evalua

Install a specific version, or update an installed plugin to a specific version:

alisio install npm:@alisio/[email protected]
alisio install npm:@alisio/[email protected] --update

alisio install --update (without a spec) refreshes every installed plugin.

For project-local development instead:

npm install --save-dev @alisio/plugin-evalua
alisio --plugin @alisio/plugin-evalua

Requires Node 22.16 or newer and @alisio/sdk >=0.3.0 <0.7.0.

How to use it

Talk to the coordinator; it starts with the language, then the institution, the teacher and the optional logo, and creates the workspace on the fly. Then it asks for the exam in three short rounds. Nothing is written to disk before Gate A, the teacher's approval.

Usage flow: from /evalua:new through the three interview rounds and Gate A to the generated items and the PDFs

The interview asks only what it does not already know:

RoundQuestions
Profile (once ever)language, institution, teacher name, optional logo
1 — whattopic (suggestions from the knowledge base), grade, level (básico/intermedio/avanzado/genio), knowledge base
2 — shapeitem types (multi-select), number of questions, same exam or bank, columns
2b — bank onlybank size, number of variants
3 — print and tonepage limit (fewest legible, 1, 2 or a number you type), time and instrument, closing text

You can also run it headless: the pending round is stored in the workspace state and you continue with /evalua:new id=value ... (free text goes in <id>:text=...).

How an exam is generated and reviewed

The blueprint is a table of topic × cognitive demand × item type. Candidates come from the item families first, then from static bank items, and every candidate is verified by code before it is frozen; a failing candidate is redrawn (bounded) and a slot that cannot be filled is reported.

Generation and review pipeline

Agents

evl-coordinator runs the interview and the gates in plain prose and calls the tools. It never authors a mathematical answer: the families, the solvers and the catalogue are the sources of truth. Authored items are reviewed independently by evl-math-reviewer (read-only) and evl-language-reviewer (read-only); the reviewer never sees the author's reasoning.

Agent flow

Commands and tools

CommandWhat it does
/evalua:init [dir] [--edit]Creates the workspace (default folder evalua/) and asks for the teacher profile once.
/evalua:new [topic]Runs the exam interview and keeps the draft until Gate A.
/evalua:statusShows the profile, any pending round, the draft and the exam folders.
/evalua:approve a|bGate A allocates the exam folder and freezes exam.yaml; Gate B approves the final package.
/evalua:generateBuilds the blueprint, generates and verifies the items and freezes items.json.
/evalua:buildReads the approved folder, fits the page budget and writes the exam, answer sheet, solution book and rubric as HTML and PDF.
/evalua:kbLists the knowledge base: packs, topics and levels.
/evalua:doctorReports the knowledge-base health and the available print browser.

Tools for agents: evalua_profile, evalua_answer, evalua_status, evalua_kb, evalua_check, evalua_exam, evalua_generate and evalua_build.

Standalone CLI:

alisio-evalua check    # the EVL-KB-* report
alisio-evalua kb       # packs, topics and levels as JSON
alisio-evalua doctor   # knowledge health and the print browser

How it works

  • Exact math. Answers and distractors come from exact rational arithmetic (BigInt fractions) and a small multivariate rational polynomial type; randomness is a seeded xoshiro128** so the same exam always rebuilds the same questions in the same order.
  • Extensible knowledge base. Versioned YAML packs declare topics, level calibration and sources (item families or static bank items). A workspace pack in <root>/knowledge-packs/ extends or overrides a shipped one with no code change. The loader enforces EVL-KB-001..007.
  • Item generation and verification. A deterministic blueprint drives candidates from families then bank, with a bounded redraw loop, de-duplication and stable references; EVL-ITM-* and EVL-EXM-* checks gate the result.
  • Rendering and fit. A typed document model feeds a self-contained HTML emitter (server-side KaTeX inlined, no network) and Chrome-family printToPDF; a density ladder measures real page counts and picks the most legible preset that meets the budget, failing explicitly with EVL-LAY-001 when it cannot. An in-page audit checks horizontal overflow, overlapping boxes, text below the floor, formula fit and answer space (EVL-LAY-002, EVL-LAY-004).
  • Figures. Deterministic, grayscale SVG figures are generated by code and embedded in items through a figure block: Venn/sets diagrams, Cartesian planes, triangles, squares, rectangles, regular polygons, circles, ellipses, prisms, cylinders, cones, number lines, fraction bars, bar charts and angles. A question can show a diagram with no external asset and no network.
  • Themes. Three data-driven themes ship (classic, blue, dark), selected by exam.yaml.template and extensible from templates/themes/<id>/.
  • Closing texts. A sourced catalogue (famous quotes and public-domain Reina-Valera 1909 verses) plus a workspace quotes layer for teacher-supplied texts; nothing is written from memory.

Print browsers

PDFs need a Chromium-compatible browser; nothing is downloaded. Detection accepts Google Chrome, Chromium, Brave, Microsoft Edge, Vivaldi and Opera on Linux, macOS and Windows, honouring ALISIO_EVALUA_CHROME, PUPPETEER_EXECUTABLE_PATH and CHROME_PATH. Without a browser the build still writes the self-contained, KaTeX-typeset HTML files and reports that page limits were not verified.

Workspace layout

<workspace>/
  .alisio/evalua/state.json     machine-owned state (atomic writes)
  evalua/
    teacher.yaml                teacher profile, safe to edit by hand
    assets/logo.png             optional logo (PNG, JPEG or WebP, up to 2 MB; SVG is rejected)
    knowledge-packs/            optional workspace packs (extend or override the shipped ones)
    quotes/                     optional teacher closing texts
    exams/NN-slug/              created only after the teacher approves the exam spec

Exam numbers are consecutive and never reused, even if a folder is deleted by hand.

Profile fields

teacherName, institution (printed upper-case), optional logo, subject (default Matemáticas), language (default es) and paper (letter or a4, default letter).

License

MIT. Vendored KaTeX is MIT; see THIRD_PARTY_NOTICES.md.

版本与发布记录

@alisio/plugin-evalua 共发布 20 个版本,首次发布于 2026/10/07;过去 12 个月发布了 20 个版本。

版本发布日期距今
0.10.0latest2026/10/1523 天前
0.8.02026/10/1325 天前
0.7.42026/10/0830 天前
0.7.32026/10/0830 天前
0.7.22026/10/0830 天前
0.6.62026/10/0830 天前

关于 @alisio/plugin-evalua 的常见问题

@alisio/plugin-evalua 是什么?

Guides teachers through a short interview and keeps the teacher profile, workspace and exam numbering for printable school math exams.

如何安装 @alisio/plugin-evalua?

在项目目录运行 npm install @alisio/plugin-evalua,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@alisio/sdk(^0.8.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。它还提供命令行工具 alisio-evalua,可以用 npx alisio-evalua 直接运行。

@alisio/plugin-evalua 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@alisio/plugin-evalua 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@alisio/plugin-evalua 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.16。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@alisio/plugin-evalua 可以商用吗?

@alisio/plugin-evalua 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@alisio/plugin-evalua 的下载量有多少?

根据 npm 官方下载统计,@alisio/plugin-evalua 在 2026/10/06 – 2026/11/04 这 30 天内被下载 3,225 次,日均约 108 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@alisio/plugin-evalua 还在维护吗?

最新版本 0.10.0 发布于 2026/10/15(23 天前);至今共发布 20 个版本,其中过去 12 个月发布了 20 个;首次发布于 2026/10/07。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。