@zhin.js/adapter-sandbox 1.1.11 → 1.1.12
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/CHANGELOG.md +25 -0
- package/README.md +11 -7
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @zhin.js/adapter-process
|
|
2
2
|
|
|
3
|
+
## 1.1.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9816c18: 将应用插件装配改为 configVersion: 2:主配置 plugins 映射实例名到包,disable_plugins 控制启停,业务配置使用顶层同名块。package.json 继续保留 features、entry、engine 等包契约,并支持静态 displayName/icon。
|
|
8
|
+
|
|
9
|
+
这是配置格式的破坏性更新:旧配置不能继续运行,请先停止 Bot,运行 `zhin migrate instances` 预览,再使用 `--apply` 转换;提供备份与中断继续/回滚,无法无损转换的嵌套、optional 和别名碰撞需人工迁移。Runtime、Console、CLI 与创建向导统一使用新声明。
|
|
10
|
+
|
|
11
|
+
保留框架顶层 `menuKeyword` / `menuStyle`,通过当前 generation 的 Root 配置视图供 Command Feature 消费;严格校验和配置修改不会丢失菜单设置,子实例配置保持隔离。
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [c407bd2]
|
|
14
|
+
- Updated dependencies [064b06d]
|
|
15
|
+
- Updated dependencies [2b4d6dc]
|
|
16
|
+
- Updated dependencies [b58548a]
|
|
17
|
+
- Updated dependencies [e914a93]
|
|
18
|
+
- Updated dependencies [e914a93]
|
|
19
|
+
- Updated dependencies [064b06d]
|
|
20
|
+
- @zhin.js/core@1.1.46
|
|
21
|
+
- @zhin.js/feature-kit@1.1.6
|
|
22
|
+
- @zhin.js/host-http@1.1.7
|
|
23
|
+
- @zhin.js/client@1.1.14
|
|
24
|
+
- @zhin.js/adapter@1.1.20
|
|
25
|
+
- @zhin.js/page@1.1.7
|
|
26
|
+
- @zhin.js/skill@1.1.7
|
|
27
|
+
|
|
3
28
|
## 1.1.11
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -48,23 +48,27 @@ Sandbox 声明 `html: direct`,聊天页在隔离 iframe 中展示 canonical `h
|
|
|
48
48
|
|
|
49
49
|
## 配置
|
|
50
50
|
|
|
51
|
-
**推荐(与 [minimal-bot](../../../examples/minimal-bot/) 一致)**:`
|
|
51
|
+
**推荐(与 [minimal-bot](../../../examples/minimal-bot/) 一致)**:`sandbox.endpoints: []`,运行时提供默认 `sandbox-bot` endpoint,无需额外账号配置。
|
|
52
52
|
|
|
53
53
|
```yaml
|
|
54
|
+
configVersion: 2
|
|
54
55
|
# zhin.config.yml(Plugin Runtime)
|
|
55
56
|
plugins:
|
|
56
|
-
sandbox:
|
|
57
|
-
|
|
57
|
+
sandbox: "@zhin.js/adapter-sandbox"
|
|
58
|
+
sandbox:
|
|
59
|
+
endpoints: []
|
|
58
60
|
```
|
|
59
61
|
|
|
60
62
|
可选:若需在启动时即在 bot 列表显示**固定名称**的离线占位 bot,可显式配置:
|
|
61
63
|
|
|
62
64
|
```yaml
|
|
65
|
+
configVersion: 2
|
|
63
66
|
plugins:
|
|
64
|
-
sandbox:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
sandbox: "@zhin.js/adapter-sandbox"
|
|
68
|
+
sandbox:
|
|
69
|
+
endpoints:
|
|
70
|
+
- id: sandbox-bot
|
|
71
|
+
owner: sandbox-user
|
|
68
72
|
```
|
|
69
73
|
|
|
70
74
|
## 使用方式
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/adapter-sandbox",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"description": "Zhin.js Sandbox adapter for Plugin Runtime (WebSocket /sandbox)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -47,16 +47,16 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"lucide-react": "^0.525.0",
|
|
49
49
|
"react": "^19.2.8",
|
|
50
|
-
"@zhin.js/adapter": "1.1.
|
|
51
|
-
"@zhin.js/client": "1.1.
|
|
50
|
+
"@zhin.js/adapter": "1.1.20",
|
|
51
|
+
"@zhin.js/client": "1.1.14",
|
|
52
52
|
"@zhin.js/console-contract": "1.1.2",
|
|
53
|
-
"@zhin.js/core": "1.1.
|
|
54
|
-
"@zhin.js/feature-kit": "1.1.
|
|
55
|
-
"@zhin.js/host-http": "1.1.
|
|
53
|
+
"@zhin.js/core": "1.1.46",
|
|
54
|
+
"@zhin.js/feature-kit": "1.1.6",
|
|
55
|
+
"@zhin.js/host-http": "1.1.7",
|
|
56
56
|
"@zhin.js/im-contract": "1.1.4",
|
|
57
57
|
"@zhin.js/logger": "1.1.2",
|
|
58
|
-
"@zhin.js/page": "1.1.
|
|
59
|
-
"@zhin.js/skill": "1.1.
|
|
58
|
+
"@zhin.js/page": "1.1.7",
|
|
59
|
+
"@zhin.js/skill": "1.1.7"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/react": "^19.2.18",
|
|
@@ -64,18 +64,18 @@
|
|
|
64
64
|
"typescript": "^6.0.3",
|
|
65
65
|
"vitest": "^4.1.10",
|
|
66
66
|
"ws": "^8.21.1",
|
|
67
|
-
"@zhin.js/pagemanager": "1.1.
|
|
68
|
-
"@zhin.js/runtime": "1.1.
|
|
69
|
-
"zhin.js": "1.1.
|
|
67
|
+
"@zhin.js/pagemanager": "1.1.10",
|
|
68
|
+
"@zhin.js/runtime": "1.1.9",
|
|
69
|
+
"zhin.js": "1.1.11"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"react": "^19.0.0",
|
|
73
|
-
"@zhin.js/adapter": "^1.1.
|
|
73
|
+
"@zhin.js/adapter": "^1.1.20",
|
|
74
74
|
"@zhin.js/console-contract": "^1.1.2",
|
|
75
|
-
"@zhin.js/core": "^1.1.
|
|
76
|
-
"@zhin.js/host-http": "^1.1.
|
|
77
|
-
"@zhin.js/page": "^1.1.
|
|
78
|
-
"zhin.js": "^1.1.
|
|
75
|
+
"@zhin.js/core": "^1.1.46",
|
|
76
|
+
"@zhin.js/host-http": "^1.1.7",
|
|
77
|
+
"@zhin.js/page": "^1.1.7",
|
|
78
|
+
"zhin.js": "^1.1.11"
|
|
79
79
|
},
|
|
80
80
|
"peerDependenciesMeta": {
|
|
81
81
|
"react": {
|