@inf-monkeys-tech/monkeys 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/lib/esm/contracts/index.mjs +11129 -0
- package/lib/esm/contracts/index.mjs.map +1 -0
- package/lib/esm/index.mjs +12433 -0
- package/lib/esm/index.mjs.map +1 -0
- package/lib/esm/runtime/index.mjs +11810 -0
- package/lib/esm/runtime/index.mjs.map +1 -0
- package/lib/esm/schemas/index.mjs +11166 -0
- package/lib/esm/schemas/index.mjs.map +1 -0
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
yarn add @inf-monkeys-tech/monkeys
|
|
8
|
+
yarn add @inf-monkeys-tech/monkeys@^1.0.4 --registry https://registry.npmjs.org
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## 稳定入口
|
|
@@ -19,10 +19,12 @@ import {
|
|
|
19
19
|
RequestScopeSchema,
|
|
20
20
|
WorkflowDefinitionSchema,
|
|
21
21
|
} from '@inf-monkeys-tech/monkeys/schemas';
|
|
22
|
+
import { resolveThemeTokens } from '@inf-monkeys-tech/monkeys/runtime';
|
|
22
23
|
```
|
|
23
24
|
|
|
24
25
|
- `@inf-monkeys-tech/monkeys/contracts`:canonical TypeScript 合同。
|
|
25
26
|
- `@inf-monkeys-tech/monkeys/schemas`:同一合同的 Zod 运行时 Schema 与 schema registry。
|
|
27
|
+
- `@inf-monkeys-tech/monkeys/runtime`:同时提供浏览器 ESM 与 Node.js CommonJS 入口的运行时编译器。
|
|
26
28
|
- `@inf-monkeys-tech/monkeys/json-schema/*`:构建时生成的 JSON Schema 2020-12 文件。
|
|
27
29
|
|
|
28
30
|
当前 canonical 合同覆盖 RequestScope、ExecutionLink、Completion、Artifact/Output、Workflow、Capability、Page/Runtime Descriptor、Tenant Config、Theme Tokens、Ontology、Projection、Lineage、Domain Event 与 Trend/Radar 数据对象。运行时 Schema 严格拒绝未声明字段、错误引用和不满足不变量的数据;SDK 不提供旧合同迁移器、兼容别名或并行版本入口。
|