@zhin.js/adapter-napcat 1.1.25 → 1.1.26

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,15 @@
1
1
  # @zhin.js/adapter-napcat
2
2
 
3
+ ## 1.1.26
4
+
5
+ ### Patch Changes
6
+
7
+ - 0d76a7c: Overhaul Console interactive workbenches, platform-specific adapter account onboarding/login flows, DeclarativePageView visual/interactive capabilities, and official utility plugin Console pages.
8
+ - Updated dependencies [0d76a7c]
9
+ - @zhin.js/adapter@1.1.32
10
+ - @zhin.js/adapter-onebot-events@0.0.5
11
+ - @zhin.js/core@1.1.60
12
+
3
13
  ## 1.1.25
4
14
 
5
15
  ### Patch Changes
@@ -2,11 +2,58 @@ export const napcatConsoleSpec = {
2
2
  adapterKey: 'napcat',
3
3
  adapterDisplayName: 'NapCat',
4
4
  fields: [
5
- { key: 'url', description: 'NapCat WebSocket URL(connection: ws 必填)', descriptionI18n: { en: 'NapCat WebSocket URL (required for connection: ws)' } },
6
- { key: 'path', description: 'reverse-wss 路径(connection: wss)', descriptionI18n: { en: 'Reverse WebSocket path (connection: wss)' } },
7
- { key: 'http_url', description: 'HTTP API base URL(connection: http 出站)', descriptionI18n: { en: 'HTTP API base URL (outbound connection: http)' } },
8
- { key: 'post_path', description: 'HTTP POST 事件路径(connection: http 入站)', descriptionI18n: { en: 'HTTP POST event path (inbound connection: http)' } },
9
- { key: 'access_token', env: true, description: 'NapCat access token' },
5
+ {
6
+ key: 'url',
7
+ label: '正向 WebSocket 地址',
8
+ labelI18n: { en: 'Forward WebSocket URL' },
9
+ group: '连接模式',
10
+ groupI18n: { en: 'Connection Mode' },
11
+ placeholder: 'ws://127.0.0.1:3001',
12
+ description: 'NapCat WebSocket URL(connection: ws 必填)',
13
+ descriptionI18n: { en: 'NapCat WebSocket URL (required for connection: ws)' },
14
+ },
15
+ {
16
+ key: 'path',
17
+ label: '反向 WebSocket 路径',
18
+ labelI18n: { en: 'Reverse WebSocket Path' },
19
+ group: '连接模式',
20
+ groupI18n: { en: 'Connection Mode' },
21
+ placeholder: '/napcat/ws',
22
+ description: 'reverse-wss 路径(connection: wss)',
23
+ descriptionI18n: { en: 'Reverse WebSocket path (connection: wss)' },
24
+ },
25
+ {
26
+ key: 'http_url',
27
+ label: 'HTTP API 地址',
28
+ labelI18n: { en: 'HTTP API Base URL' },
29
+ group: '连接模式',
30
+ groupI18n: { en: 'Connection Mode' },
31
+ placeholder: 'http://127.0.0.1:3000',
32
+ description: 'HTTP API base URL(connection: http 出站)',
33
+ descriptionI18n: { en: 'HTTP API base URL (outbound connection: http)' },
34
+ },
35
+ {
36
+ key: 'post_path',
37
+ label: 'HTTP 事件上报路径',
38
+ labelI18n: { en: 'HTTP Event Post Path' },
39
+ group: '连接模式',
40
+ groupI18n: { en: 'Connection Mode' },
41
+ placeholder: '/napcat/event',
42
+ description: 'HTTP POST 事件路径(connection: http 入站)',
43
+ descriptionI18n: { en: 'HTTP POST event path (inbound connection: http)' },
44
+ },
45
+ {
46
+ key: 'access_token',
47
+ env: true,
48
+ label: 'Access Token (访问令牌)',
49
+ labelI18n: { en: 'Access Token' },
50
+ group: '安全认证',
51
+ groupI18n: { en: 'Authentication' },
52
+ placeholder: '与 NapCat 服务端一致的 Token',
53
+ placeholderI18n: { en: 'Token matching NapCat server config' },
54
+ description: 'NapCat 接口鉴权令牌(Access Token)',
55
+ descriptionI18n: { en: 'NapCat access token' },
56
+ },
10
57
  ],
11
58
  docsUrl: 'https://zhin.js.org/adapters/napcat',
12
59
  readPermission: 'napcat:read',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/adapter-napcat",
3
- "version": "1.1.25",
3
+ "version": "1.1.26",
4
4
  "description": "Zhin.js NapCat adapter for Plugin Runtime (WebSocket client, OneBot11 + NapCat extensions)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -45,11 +45,11 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "ws": "^8.21.1",
48
- "@zhin.js/adapter-onebot-events": "0.0.4",
49
- "@zhin.js/adapter": "1.1.31",
48
+ "@zhin.js/adapter-onebot-events": "0.0.5",
49
+ "@zhin.js/adapter": "1.1.32",
50
50
  "@zhin.js/agent-feature": "1.1.16",
51
51
  "@zhin.js/console-contract": "1.1.5",
52
- "@zhin.js/core": "1.1.59",
52
+ "@zhin.js/core": "1.1.60",
53
53
  "@zhin.js/feature-kit": "1.1.15",
54
54
  "@zhin.js/host-http": "1.1.17",
55
55
  "@zhin.js/im-contract": "1.1.13",
@@ -66,14 +66,14 @@
66
66
  "vitest": "^4.1.10",
67
67
  "zod": "^4.4.3",
68
68
  "@zhin.js/host-http": "1.1.17",
69
- "zhin.js": "1.1.24"
69
+ "zhin.js": "1.1.25"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "zod": "^4.0.0",
73
- "@zhin.js/adapter": "^1.1.31",
73
+ "@zhin.js/adapter": "^1.1.32",
74
74
  "@zhin.js/command": "^1.1.17",
75
- "@zhin.js/core": "^1.1.59",
76
- "zhin.js": "^1.1.24"
75
+ "@zhin.js/core": "^1.1.60",
76
+ "zhin.js": "^1.1.25"
77
77
  },
78
78
  "peerDependenciesMeta": {
79
79
  "@zhin.js/command": {
@@ -7,11 +7,58 @@ export const napcatConsoleSpec = {
7
7
  adapterKey: 'napcat',
8
8
  adapterDisplayName: 'NapCat',
9
9
  fields: [
10
- { key: 'url', description: 'NapCat WebSocket URL(connection: ws 必填)', descriptionI18n: { en: 'NapCat WebSocket URL (required for connection: ws)' } },
11
- { key: 'path', description: 'reverse-wss 路径(connection: wss)', descriptionI18n: { en: 'Reverse WebSocket path (connection: wss)' } },
12
- { key: 'http_url', description: 'HTTP API base URL(connection: http 出站)', descriptionI18n: { en: 'HTTP API base URL (outbound connection: http)' } },
13
- { key: 'post_path', description: 'HTTP POST 事件路径(connection: http 入站)', descriptionI18n: { en: 'HTTP POST event path (inbound connection: http)' } },
14
- { key: 'access_token', env: true, description: 'NapCat access token' },
10
+ {
11
+ key: 'url',
12
+ label: '正向 WebSocket 地址',
13
+ labelI18n: { en: 'Forward WebSocket URL' },
14
+ group: '连接模式',
15
+ groupI18n: { en: 'Connection Mode' },
16
+ placeholder: 'ws://127.0.0.1:3001',
17
+ description: 'NapCat WebSocket URL(connection: ws 必填)',
18
+ descriptionI18n: { en: 'NapCat WebSocket URL (required for connection: ws)' },
19
+ },
20
+ {
21
+ key: 'path',
22
+ label: '反向 WebSocket 路径',
23
+ labelI18n: { en: 'Reverse WebSocket Path' },
24
+ group: '连接模式',
25
+ groupI18n: { en: 'Connection Mode' },
26
+ placeholder: '/napcat/ws',
27
+ description: 'reverse-wss 路径(connection: wss)',
28
+ descriptionI18n: { en: 'Reverse WebSocket path (connection: wss)' },
29
+ },
30
+ {
31
+ key: 'http_url',
32
+ label: 'HTTP API 地址',
33
+ labelI18n: { en: 'HTTP API Base URL' },
34
+ group: '连接模式',
35
+ groupI18n: { en: 'Connection Mode' },
36
+ placeholder: 'http://127.0.0.1:3000',
37
+ description: 'HTTP API base URL(connection: http 出站)',
38
+ descriptionI18n: { en: 'HTTP API base URL (outbound connection: http)' },
39
+ },
40
+ {
41
+ key: 'post_path',
42
+ label: 'HTTP 事件上报路径',
43
+ labelI18n: { en: 'HTTP Event Post Path' },
44
+ group: '连接模式',
45
+ groupI18n: { en: 'Connection Mode' },
46
+ placeholder: '/napcat/event',
47
+ description: 'HTTP POST 事件路径(connection: http 入站)',
48
+ descriptionI18n: { en: 'HTTP POST event path (inbound connection: http)' },
49
+ },
50
+ {
51
+ key: 'access_token',
52
+ env: true,
53
+ label: 'Access Token (访问令牌)',
54
+ labelI18n: { en: 'Access Token' },
55
+ group: '安全认证',
56
+ groupI18n: { en: 'Authentication' },
57
+ placeholder: '与 NapCat 服务端一致的 Token',
58
+ placeholderI18n: { en: 'Token matching NapCat server config' },
59
+ description: 'NapCat 接口鉴权令牌(Access Token)',
60
+ descriptionI18n: { en: 'NapCat access token' },
61
+ },
15
62
  ] as readonly AdapterConsoleField[],
16
63
  docsUrl: 'https://zhin.js.org/adapters/napcat',
17
64
  readPermission: 'napcat:read',