Block a user
@tmxk-units/form-react (0.1.3)
Published 2026-08-12 11:39:20 +00:00 by shigu
Installation
@tmxk-units:registry=https://gitea.cspy.site/api/packages/shigu/npm/npm install @tmxk-units/form-react@0.1.3"@tmxk-units/form-react": "0.1.3"About this package
TMXK FD DSL 包,提供 Schema 类型与工具、DSL parser 和 Headless Runtime。
@tmxk-units/form-react
TMXK FD DSL 包,提供 Schema 类型与工具、DSL parser 和 Headless Runtime。
import {
createFormRuntime,
localizeFormSchema,
parseFormDsl,
type FormSchema,
} from "@tmxk-units/form-react";
const localized = localizeFormSchema(schema);
const runtime = createFormRuntime(parseFormDsl(localized), submission);
共享包在消费应用的构建阶段进入其静态 bundle,不形成服务间运行时依赖。TMXK FD DSL、Schema 和 submission 命名保持不变。
AI 填写工具
页面表单动作通过当前 AG-UI run/session 的 frontend tools 暴露,例如 form_list、form_get_definition、form_fill 和 form_validate。它们只表达页面交互,不进入 Capability Directory、不产生 OAuth 权限,不能修改表单定义或触发持久化保存。
DSL 兼容层
parseFormDsl 将 TMXK FD JSON 解析为稳定的 TMXK AST,并生成 supported、preserved、unsupported 兼容性报告。解析不会修改输入 Schema,每个 AST 节点保留完整 source,供后续原生 Renderer、Runtime 和可逆导出使用。
Dependencies
Dependencies
| ID | Version |
|---|---|
| @tmxk-units/form-contract | ^0.1.0 |
Development Dependencies
| ID | Version |
|---|---|
| tsx | ^4.20.3 |
| typescript | ^5.8.3 |
Details
2026-08-12 11:39:20 +00:00
Assets (1)
Versions (1)
View all
npm
113
latest
14 KiB
form-react-0.1.3.tgz
14 KiB
0.1.3
2026-08-12