@zhin.js/contract 1.0.0 → 1.0.2

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.
Files changed (2) hide show
  1. package/README.md +9 -0
  2. package/package.json +10 -2
package/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # @zhin.js/contract
2
+
3
+ Remote Console 与 PageManager 的**共享契约**:Console Entry 形状、`PluginRegisterHostApi`、`ConsoleClientEntry`、`ConsoleEntriesResponse`、路径常量等。无运行时逻辑,供 `@zhin.js/pagemanager`、`@zhin.js/client` 与插件 `client/` 共用。
4
+
5
+ 领域术语与关系图见 **[../pagemanager/CONTEXT.md](../pagemanager/CONTEXT.md)**。
6
+
7
+ ```bash
8
+ pnpm --filter @zhin.js/contract build
9
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/contract",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Zhin console / PageManager shared contract (entries, PluginRegisterHostApi)",
5
5
  "type": "module",
6
6
  "exports": {
@@ -15,7 +15,7 @@
15
15
  "src"
16
16
  ],
17
17
  "devDependencies": {
18
- "@types/react": "^19.2.15",
18
+ "@types/react": "^19.2.17",
19
19
  "rimraf": "^6.0.1",
20
20
  "typescript": "^6.0.2"
21
21
  },
@@ -29,6 +29,14 @@
29
29
  "access": "public",
30
30
  "registry": "https://registry.npmjs.org"
31
31
  },
32
+ "engines": {
33
+ "node": "^20.19.0 || >=22.12.0"
34
+ },
35
+ "author": {
36
+ "name": "lc-cn",
37
+ "email": "admin@liucl.cn",
38
+ "url": "https://github.com/lc-cn"
39
+ },
32
40
  "scripts": {
33
41
  "build": "tsc -p tsconfig.json",
34
42
  "clean": "rimraf lib",