@engenty/wizards

中文文档
0.19.0发布于 2026/11/10FSL-1.1-MITTypeScriptES Module近 30 天下载 4870

What your code imports from engenty wizards: plugins at /plugin, wizards in OpenUI chats at /openui. FSL-1.1-MIT, source available.

原始使用文档
文档目录3 节
  1. Wizards in OpenUI chats
  2. The package
  3. Licences

@engenty/wizards

Licence: FSL-1.1-MIT, source available (LICENSE).

What code outside engenty wizards imports, one subpath per use. The runtime and the studio of engenty wizards are not in it.

ImportWhat it isDocs
@engenty/wizards/pluginA plugin's server half: definePlugin and its typesdocs/content/dev/plugins
@engenty/wizards/plugin/studioA plugin's studio half: defineStudioPlugindocs/content/dev/plugins/studio.md
@engenty/wizards/plugin/threadA messenger channel: ThreadDoordocs/content/dev/plugins/runners.md
@engenty/wizards/openuiWizards in OpenUI chats: the Wizard componentdocs/content/dev/integration/openui.md
@engenty/wizards/openui/serverIts server half: the rules and the list of wizards for the chat's prompt
@engenty/wizards/openui/styles.cssThe styles the Wizard component draws with

Wizards in OpenUI chats

The chat's model decides that a wizard runs and what it already knows. The wizard then runs inside the conversation as its author defined it, drawn by the runner (packages/runner) in the chat's own page.

// The browser
import "@engenty/wizards/openui/styles.css";
import { addWizard, configureWizards, Wizard } from "@engenty/wizards/openui";
import { openuiChatLibrary } from "@openuidev/react-ui/genui-lib";

configureWizards({ runtime: "/wizards-runtime" }); // where the runtime answers
const library = addWizard(openuiChatLibrary, Wizard);
// The server that builds the system prompt
import { addWizard, loadWizards, wizardRules } from "@engenty/wizards/openui/server";

const wizards = await loadWizards("http://localhost:24368", ["<token>"]);
const prompt = addWizard(openuiChatLibrary).prompt({
  ...openuiChatPromptOptions,
  additionalRules: [...(openuiChatPromptOptions.additionalRules ?? []), ...wizardRules(wizards)],
});

What the model writes: Wizard("<token>", "<note>", {plate: "W-12345"}). The prefill starts the page's fields, and the person still sees and sends each page. When the run is done, the component sends a continue_conversation action with the result's texts as its context, and the chat goes on with it. A chat to try it with: examples/openui-chat.

The package

Every release publishes it to npm (scripts/npm-package.mjs, .github/workflows/release.yml). pnpm --filter @engenty/wizards build writes dist/ as it ships (scripts/build.mjs): /openui with the runner and the shared modules it uses bundled in, their types inlined, and the runner's runner.css as styles.css; every other package stays an import, the libraries as dependencies, React, OpenUI, zod and drizzle as peers. Inside this repo everything imports the sources.

Licences

FSL-1.1-MIT, like the repository. dist/openui bundles the runner (packages/runner), which is MIT: its licence ships beside it as dist/openui/LICENSE-MIT.

版本与发布记录

@engenty/wizards 共发布 37 个版本,首次发布于 2026/10/18;过去 12 个月发布了 37 个版本。

版本发布日期距今
0.19.0latest2026/11/103 天前
0.18.02026/11/085 天前
0.17.22026/11/067 天前
0.17.12026/11/067 天前
0.16.22026/11/067 天前
0.16.12026/11/0211 天前

关于 @engenty/wizards 的常见问题

@engenty/wizards 是什么?

What your code imports from engenty wizards: plugins at /plugin, wizards in OpenUI chats at /openui. FSL-1.1-MIT, source available.

如何安装 @engenty/wizards?

在项目目录运行 npm install @engenty/wizards,或使用 pnpm add / yarn add / bun add。

@engenty/wizards 支持 TypeScript 吗?

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

@engenty/wizards 支持 ESM 还是 CommonJS?

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

@engenty/wizards 可以商用吗?

@engenty/wizards 使用 FSL-1.1-MIT 许可。声明的许可为 FSL-1.1-MIT,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@engenty/wizards 的下载量有多少?

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

@engenty/wizards 还在维护吗?

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