@zhin.js/adapter-onebot11 1.1.23 → 1.1.25
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 +38 -0
- package/package.json +19 -20
- package/pages/index/index.js +1 -2
- package/pages/index/index.ts +1 -2
- package/plugin.js +8 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# @zhin.js/adapter-onebot11
|
|
2
2
|
|
|
3
|
+
## 1.1.25
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [8adce16]
|
|
8
|
+
- @zhin.js/console-contract@1.1.5
|
|
9
|
+
- @zhin.js/host-http@1.1.17
|
|
10
|
+
- @zhin.js/core@1.1.59
|
|
11
|
+
- @zhin.js/page@1.1.17
|
|
12
|
+
- @zhin.js/adapter-onebot-events@0.0.4
|
|
13
|
+
- @zhin.js/adapter@1.1.31
|
|
14
|
+
- @zhin.js/agent-feature@1.1.16
|
|
15
|
+
- @zhin.js/feature-kit@1.1.15
|
|
16
|
+
- @zhin.js/permission@1.1.15
|
|
17
|
+
- @zhin.js/skill@1.1.16
|
|
18
|
+
- @zhin.js/tool@1.1.18
|
|
19
|
+
|
|
20
|
+
## 1.1.24
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- cbf1fb1: Unify Console page blueprints (`definePageBlueprint`, `defineAdapterPage`, `defineCommentReviewPage`, `projectBlueprintToImCard`, `projectBlueprintToCliPanel`) into `@zhin.js/console-contract` and `@zhin.js/page`, add zero-esbuild pure Blueprint synthesis + static client bundle mounting to `@zhin.js/pagemanager`, remove `@zhin.js/client` (React 19) and `.tsx` from all 30 server-side plugins and adapters (including `bilibili` and `juejin`), and remove legacy Era-1 Koa `PageManager` code.
|
|
25
|
+
- Updated dependencies [cbf1fb1]
|
|
26
|
+
- Updated dependencies [008ccad]
|
|
27
|
+
- Updated dependencies [a1f1028]
|
|
28
|
+
- @zhin.js/console-contract@1.1.4
|
|
29
|
+
- @zhin.js/page@1.1.16
|
|
30
|
+
- @zhin.js/core@1.1.58
|
|
31
|
+
- @zhin.js/im-contract@1.1.13
|
|
32
|
+
- @zhin.js/host-http@1.1.16
|
|
33
|
+
- @zhin.js/adapter@1.1.30
|
|
34
|
+
- @zhin.js/adapter-onebot-events@0.0.3
|
|
35
|
+
- @zhin.js/tool@1.1.17
|
|
36
|
+
- @zhin.js/agent-feature@1.1.15
|
|
37
|
+
- @zhin.js/feature-kit@1.1.14
|
|
38
|
+
- @zhin.js/permission@1.1.14
|
|
39
|
+
- @zhin.js/skill@1.1.15
|
|
40
|
+
|
|
3
41
|
## 1.1.23
|
|
4
42
|
|
|
5
43
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/adapter-onebot11",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.25",
|
|
4
4
|
"description": "Zhin.js OneBot 11 adapter for Plugin Runtime (WebSocket client)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -45,20 +45,19 @@
|
|
|
45
45
|
"@imhelper/onebot-v11": "1.0.7",
|
|
46
46
|
"imhelper": "1.0.7",
|
|
47
47
|
"ws": "^8.21.1",
|
|
48
|
-
"@zhin.js/adapter-onebot-events": "0.0.
|
|
49
|
-
"@zhin.js/adapter": "1.1.
|
|
50
|
-
"@zhin.js/agent-feature": "1.1.
|
|
51
|
-
"@zhin.js/
|
|
52
|
-
"@zhin.js/
|
|
53
|
-
"@zhin.js/
|
|
54
|
-
"@zhin.js/
|
|
55
|
-
"@zhin.js/
|
|
56
|
-
"@zhin.js/im-contract": "1.1.12",
|
|
48
|
+
"@zhin.js/adapter-onebot-events": "0.0.4",
|
|
49
|
+
"@zhin.js/adapter": "1.1.31",
|
|
50
|
+
"@zhin.js/agent-feature": "1.1.16",
|
|
51
|
+
"@zhin.js/console-contract": "1.1.5",
|
|
52
|
+
"@zhin.js/core": "1.1.59",
|
|
53
|
+
"@zhin.js/feature-kit": "1.1.15",
|
|
54
|
+
"@zhin.js/host-http": "1.1.17",
|
|
55
|
+
"@zhin.js/im-contract": "1.1.13",
|
|
57
56
|
"@zhin.js/logger": "1.1.2",
|
|
58
|
-
"@zhin.js/page": "1.1.
|
|
59
|
-
"@zhin.js/permission": "1.1.
|
|
60
|
-
"@zhin.js/skill": "1.1.
|
|
61
|
-
"@zhin.js/tool": "1.1.
|
|
57
|
+
"@zhin.js/page": "1.1.17",
|
|
58
|
+
"@zhin.js/permission": "1.1.15",
|
|
59
|
+
"@zhin.js/skill": "1.1.16",
|
|
60
|
+
"@zhin.js/tool": "1.1.18"
|
|
62
61
|
},
|
|
63
62
|
"devDependencies": {
|
|
64
63
|
"@types/node": "^26.1.2",
|
|
@@ -66,15 +65,15 @@
|
|
|
66
65
|
"typescript": "^6.0.3",
|
|
67
66
|
"vitest": "^4.1.10",
|
|
68
67
|
"zod": "^4.4.3",
|
|
69
|
-
"@zhin.js/host-http": "1.1.
|
|
70
|
-
"zhin.js": "1.1.
|
|
68
|
+
"@zhin.js/host-http": "1.1.17",
|
|
69
|
+
"zhin.js": "1.1.24"
|
|
71
70
|
},
|
|
72
71
|
"peerDependencies": {
|
|
73
72
|
"zod": "^4.0.0",
|
|
74
|
-
"@zhin.js/adapter": "^1.1.
|
|
75
|
-
"@zhin.js/command": "^1.1.
|
|
76
|
-
"@zhin.js/core": "^1.1.
|
|
77
|
-
"zhin.js": "^1.1.
|
|
73
|
+
"@zhin.js/adapter": "^1.1.31",
|
|
74
|
+
"@zhin.js/command": "^1.1.17",
|
|
75
|
+
"@zhin.js/core": "^1.1.59",
|
|
76
|
+
"zhin.js": "^1.1.24"
|
|
78
77
|
},
|
|
79
78
|
"peerDependenciesMeta": {
|
|
80
79
|
"@zhin.js/command": {
|
package/pages/index/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// Generated by build-plugin-runtime-entries.mjs. Do not edit.
|
|
2
|
-
import { definePage } from '@zhin.js/console-contract';
|
|
3
|
-
import { createAdapterConsolePage } from '@zhin.js/client';
|
|
2
|
+
import { definePage, createAdapterConsolePage } from '@zhin.js/console-contract';
|
|
4
3
|
export const meta = definePage({
|
|
5
4
|
title: 'OneBot 11',
|
|
6
5
|
titleI18n: { en: 'OneBot 11' },
|
package/pages/index/index.ts
CHANGED
package/plugin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by build-plugin-runtime-entries.mjs. Do not edit.
|
|
2
|
-
import { definePlugin
|
|
2
|
+
import { definePlugin } from 'zhin.js';
|
|
3
3
|
import { permissionHostToken, createSceneRolePlatformChecker } from '@zhin.js/permission';
|
|
4
4
|
import { createOnebot11ConsoleRpc } from "./lib/console.js";
|
|
5
5
|
export default definePlugin({
|
|
@@ -9,10 +9,12 @@ export default definePlugin({
|
|
|
9
9
|
displayName: 'OneBot 11 Adapter',
|
|
10
10
|
},
|
|
11
11
|
setup(context) {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
const dispose = context.resources.has(permissionHostToken)
|
|
13
|
+
? context.resources.use(permissionHostToken).registerPlatform('onebot11', createSceneRolePlatformChecker())
|
|
14
|
+
: undefined;
|
|
15
|
+
return {
|
|
16
|
+
consoleRpc: createOnebot11ConsoleRpc(context.resources, () => context.config.get()),
|
|
17
|
+
...(dispose ? { dispose } : {}),
|
|
18
|
+
};
|
|
17
19
|
},
|
|
18
20
|
});
|