@zhin.js/adapter-satori 1.1.14 → 1.1.16

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 CHANGED
@@ -1,5 +1,49 @@
1
1
  # @zhin.js/adapter-satori
2
2
 
3
+ ## 1.1.16
4
+
5
+ ### Patch Changes
6
+
7
+ - 53bc6a0: 适配器配置标签、端点命令和工具反馈支持中英文;复用当前操作语言,保持协议值、用户内容、身份、权限与发送链路不变。Sandbox 展示使用项目语言,QQ 绑定与交互状态保留完整会话身份。
8
+ - Updated dependencies [334e92d]
9
+ - Updated dependencies [f3b7c9f]
10
+ - Updated dependencies [658a5fb]
11
+ - Updated dependencies [144a17b]
12
+ - Updated dependencies [18296cf]
13
+ - Updated dependencies [08e64de]
14
+ - Updated dependencies [9cade30]
15
+ - Updated dependencies [53bc6a0]
16
+ - Updated dependencies [7595136]
17
+ - Updated dependencies [66b6404]
18
+ - Updated dependencies [adb4af2]
19
+ - Updated dependencies [69f9ef6]
20
+ - Updated dependencies [17d1301]
21
+ - @zhin.js/adapter@1.1.23
22
+ - @zhin.js/host-http@1.1.10
23
+ - @zhin.js/core@1.1.51
24
+ - @zhin.js/skill@1.1.10
25
+ - @zhin.js/im-contract@1.1.7
26
+ - @zhin.js/feature-kit@1.1.9
27
+
28
+ ## 1.1.15
29
+
30
+ ### Patch Changes
31
+
32
+ - Updated dependencies [f98025b]
33
+ - Updated dependencies [66ec1a5]
34
+ - Updated dependencies [7d68df6]
35
+ - Updated dependencies [bf0fa9f]
36
+ - Updated dependencies [3326db3]
37
+ - Updated dependencies [e91235e]
38
+ - Updated dependencies [6da2bad]
39
+ - Updated dependencies [3781f1c]
40
+ - @zhin.js/core@1.1.50
41
+ - @zhin.js/adapter@1.1.22
42
+ - @zhin.js/im-contract@1.1.6
43
+ - @zhin.js/host-http@1.1.9
44
+ - @zhin.js/feature-kit@1.1.8
45
+ - @zhin.js/skill@1.1.9
46
+
3
47
  ## 1.1.14
4
48
 
5
49
  ### Patch Changes
@@ -10,8 +10,8 @@ export const satoriEndpointCommands = createEndpointCommands({
10
10
  adapterKey: 'satori',
11
11
  adapterDisplayName: 'Satori',
12
12
  fields: [
13
- { key: 'baseUrl', required: true, description: 'Satori 服务 base URL' },
14
- { key: 'path', description: 'webhook 路径(connection: webhook)' },
13
+ { key: 'baseUrl', required: true, description: 'Satori 服务 base URL', descriptionI18n: { en: "Satori service base URL" } },
14
+ { key: 'path', description: 'webhook 路径(connection: webhook)', descriptionI18n: { en: "Webhook path (connection: webhook)" } },
15
15
  { key: 'token', env: true, description: 'Satori access token' },
16
16
  ],
17
17
  running: (use) => use(satoriRuntimeStateToken).endpoints.values(),
@@ -10,8 +10,8 @@ export const satoriEndpointCommands = createEndpointCommands({
10
10
  adapterKey: 'satori',
11
11
  adapterDisplayName: 'Satori',
12
12
  fields: [
13
- { key: 'baseUrl', required: true, description: 'Satori 服务 base URL' },
14
- { key: 'path', description: 'webhook 路径(connection: webhook)' },
13
+ { key: 'baseUrl', required: true, description: 'Satori 服务 base URL', descriptionI18n: { en: "Satori service base URL" } },
14
+ { key: 'path', description: 'webhook 路径(connection: webhook)', descriptionI18n: { en: "Webhook path (connection: webhook)" } },
15
15
  { key: 'token', env: true, description: 'Satori access token' },
16
16
  ],
17
17
  running: (use) => use(satoriRuntimeStateToken).endpoints.values(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/adapter-satori",
3
- "version": "1.1.14",
3
+ "version": "1.1.16",
4
4
  "description": "Zhin.js Satori adapter for Plugin Runtime (WebSocket client)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -40,27 +40,27 @@
40
40
  "@imhelper/satori-v1": "1.0.7",
41
41
  "imhelper": "1.0.7",
42
42
  "ws": "^8.21.1",
43
- "@zhin.js/adapter": "1.1.21",
44
- "@zhin.js/core": "1.1.49",
45
- "@zhin.js/feature-kit": "1.1.7",
46
- "@zhin.js/host-http": "1.1.8",
47
- "@zhin.js/im-contract": "1.1.5",
43
+ "@zhin.js/adapter": "1.1.23",
44
+ "@zhin.js/core": "1.1.51",
45
+ "@zhin.js/feature-kit": "1.1.9",
46
+ "@zhin.js/host-http": "1.1.10",
47
+ "@zhin.js/im-contract": "1.1.7",
48
48
  "@zhin.js/logger": "1.1.2",
49
- "@zhin.js/skill": "1.1.8"
49
+ "@zhin.js/skill": "1.1.10"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/node": "^26.1.2",
53
53
  "@types/ws": "^8.18.1",
54
54
  "typescript": "^6.0.3",
55
55
  "vitest": "^4.1.10",
56
- "@zhin.js/host-http": "1.1.8",
57
- "zhin.js": "1.1.14"
56
+ "@zhin.js/host-http": "1.1.10",
57
+ "zhin.js": "1.1.16"
58
58
  },
59
59
  "peerDependencies": {
60
- "@zhin.js/adapter": "^1.1.21",
61
- "@zhin.js/command": "^1.1.9",
62
- "@zhin.js/core": "^1.1.49",
63
- "zhin.js": "^1.1.14"
60
+ "@zhin.js/adapter": "^1.1.23",
61
+ "@zhin.js/command": "^1.1.11",
62
+ "@zhin.js/core": "^1.1.51",
63
+ "zhin.js": "^1.1.16"
64
64
  },
65
65
  "peerDependenciesMeta": {
66
66
  "@zhin.js/command": {
package/schema.json CHANGED
@@ -22,7 +22,12 @@
22
22
  "string",
23
23
  "number"
24
24
  ],
25
- "description": "框架 master(platform user id;AI/工具权限、endpoint 管理)。endpoints[i].master 可逐项覆盖"
25
+ "description": "框架 master(platform user id;AI/工具权限、endpoint 管理)。endpoints[i].master 可逐项覆盖",
26
+ "x-i18n": {
27
+ "en": {
28
+ "description": "Framework masters (platform user id; AI/tool permissions and endpoint management). endpoints[i].master can override this value."
29
+ }
30
+ }
26
31
  },
27
32
  "trusted": {
28
33
  "type": "array",
@@ -33,7 +38,12 @@
33
38
  ],
34
39
  "description": "Trusted platform user id"
35
40
  },
36
- "description": "框架 trusted 用户列表(弱于 master)。endpoints[i].trusted 可逐项追加"
41
+ "description": "框架 trusted 用户列表(弱于 master)。endpoints[i].trusted 可逐项追加",
42
+ "x-i18n": {
43
+ "en": {
44
+ "description": "Framework trusted users, below master authority. endpoints[i].trusted can add users."
45
+ }
46
+ }
37
47
  },
38
48
  "endpoints": {
39
49
  "type": "array",
@@ -48,7 +58,12 @@
48
58
  "string",
49
59
  "number"
50
60
  ],
51
- "description": "本 endpoint 的框架 master(platform user id);覆盖顶层 master"
61
+ "description": "本 endpoint 的框架 master(platform user id);覆盖顶层 master",
62
+ "x-i18n": {
63
+ "en": {
64
+ "description": "Framework masters for this endpoint (platform user id), overriding the top-level master list."
65
+ }
66
+ }
52
67
  },
53
68
  "trusted": {
54
69
  "type": "array",
@@ -59,7 +74,12 @@
59
74
  ],
60
75
  "description": "Trusted platform user id"
61
76
  },
62
- "description": "本 endpoint 的 trusted 列表"
77
+ "description": "本 endpoint 的 trusted 列表",
78
+ "x-i18n": {
79
+ "en": {
80
+ "description": "Trusted users for this endpoint."
81
+ }
82
+ }
63
83
  },
64
84
  "baseUrl": {
65
85
  "type": "string",
@@ -95,12 +115,22 @@
95
115
  "id",
96
116
  "baseUrl"
97
117
  ]
118
+ },
119
+ "x-i18n": {
120
+ "en": {
121
+ "description": "Multiple accounts: each entry defines an endpoint. id and baseUrl are required; other fields override instance defaults."
122
+ }
98
123
  }
99
124
  },
100
125
  "commandPrefix": {
101
126
  "type": "string",
102
127
  "default": "",
103
- "description": "命令前缀(默认 '' 无前缀,任意文本按命令匹配;如 '/' 要求 / 开头)。endpoints[i] 可逐项覆盖"
128
+ "description": "命令前缀(默认 '' 无前缀,任意文本按命令匹配;如 '/' 要求 / 开头)。endpoints[i] 可逐项覆盖",
129
+ "x-i18n": {
130
+ "en": {
131
+ "description": "Command prefix. The default empty string allows unprefixed commands; '/' requires a leading slash. Each endpoints[i] can override it."
132
+ }
133
+ }
104
134
  }
105
135
  },
106
136
  "required": [