@zhin.js/adapter-wecom 1.1.23 → 1.1.24
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 +19 -0
- package/package.json +18 -19
- 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,24 @@
|
|
|
1
1
|
# @zhin.js/adapter-wecom
|
|
2
2
|
|
|
3
|
+
## 1.1.24
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 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.
|
|
8
|
+
- Updated dependencies [cbf1fb1]
|
|
9
|
+
- Updated dependencies [008ccad]
|
|
10
|
+
- Updated dependencies [a1f1028]
|
|
11
|
+
- @zhin.js/console-contract@1.1.4
|
|
12
|
+
- @zhin.js/page@1.1.16
|
|
13
|
+
- @zhin.js/core@1.1.58
|
|
14
|
+
- @zhin.js/im-contract@1.1.13
|
|
15
|
+
- @zhin.js/host-http@1.1.16
|
|
16
|
+
- @zhin.js/adapter@1.1.30
|
|
17
|
+
- @zhin.js/tool@1.1.17
|
|
18
|
+
- @zhin.js/agent-feature@1.1.15
|
|
19
|
+
- @zhin.js/feature-kit@1.1.14
|
|
20
|
+
- @zhin.js/skill@1.1.15
|
|
21
|
+
|
|
3
22
|
## 1.1.23
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/adapter-wecom",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.24",
|
|
4
4
|
"description": "Zhin.js WeCom (企业微信) adapter for Plugin Runtime (HTTP webhook)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -33,27 +33,26 @@
|
|
|
33
33
|
"directory": "plugins/adapters/wecom"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@zhin.js/adapter": "1.1.
|
|
37
|
-
"@zhin.js/agent-feature": "1.1.
|
|
38
|
-
"@zhin.js/
|
|
39
|
-
"@zhin.js/
|
|
40
|
-
"@zhin.js/
|
|
41
|
-
"@zhin.js/
|
|
42
|
-
"@zhin.js/
|
|
43
|
-
"@zhin.js/im-contract": "1.1.12",
|
|
36
|
+
"@zhin.js/adapter": "1.1.30",
|
|
37
|
+
"@zhin.js/agent-feature": "1.1.15",
|
|
38
|
+
"@zhin.js/console-contract": "1.1.4",
|
|
39
|
+
"@zhin.js/core": "1.1.58",
|
|
40
|
+
"@zhin.js/feature-kit": "1.1.14",
|
|
41
|
+
"@zhin.js/host-http": "1.1.16",
|
|
42
|
+
"@zhin.js/im-contract": "1.1.13",
|
|
44
43
|
"@zhin.js/logger": "1.1.2",
|
|
45
|
-
"@zhin.js/page": "1.1.
|
|
46
|
-
"@zhin.js/skill": "1.1.
|
|
47
|
-
"@zhin.js/tool": "1.1.
|
|
44
|
+
"@zhin.js/page": "1.1.16",
|
|
45
|
+
"@zhin.js/skill": "1.1.15",
|
|
46
|
+
"@zhin.js/tool": "1.1.17"
|
|
48
47
|
},
|
|
49
48
|
"peerDependencies": {
|
|
50
49
|
"zod": "^4.0.0",
|
|
51
|
-
"@zhin.js/adapter": "^1.1.
|
|
52
|
-
"@zhin.js/command": "^1.1.
|
|
53
|
-
"@zhin.js/core": "^1.1.
|
|
54
|
-
"@zhin.js/host-http": "^1.1.
|
|
55
|
-
"@zhin.js/permission": "^1.1.
|
|
56
|
-
"zhin.js": "^1.1.
|
|
50
|
+
"@zhin.js/adapter": "^1.1.30",
|
|
51
|
+
"@zhin.js/command": "^1.1.16",
|
|
52
|
+
"@zhin.js/core": "^1.1.58",
|
|
53
|
+
"@zhin.js/host-http": "^1.1.16",
|
|
54
|
+
"@zhin.js/permission": "^1.1.14",
|
|
55
|
+
"zhin.js": "^1.1.23"
|
|
57
56
|
},
|
|
58
57
|
"peerDependenciesMeta": {
|
|
59
58
|
"@zhin.js/command": {
|
|
@@ -71,7 +70,7 @@
|
|
|
71
70
|
"typescript": "^6.0.3",
|
|
72
71
|
"vitest": "^4.1.10",
|
|
73
72
|
"zod": "^4.4.3",
|
|
74
|
-
"zhin.js": "1.1.
|
|
73
|
+
"zhin.js": "1.1.23"
|
|
75
74
|
},
|
|
76
75
|
"files": [
|
|
77
76
|
"adapters",
|
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: '企业微信',
|
|
6
5
|
titleI18n: { en: 'WeCom' },
|
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 } from '@zhin.js/permission';
|
|
4
4
|
import { checkWecomPlatformPermit } from "./lib/platform-permit.js";
|
|
5
5
|
import { createWecomConsoleRpc } from "./lib/console.js";
|
|
@@ -10,10 +10,12 @@ export default definePlugin({
|
|
|
10
10
|
displayName: 'WeCom (企业微信) Adapter',
|
|
11
11
|
},
|
|
12
12
|
setup(context) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
const dispose = context.resources.has(permissionHostToken)
|
|
14
|
+
? context.resources.use(permissionHostToken).registerPlatform('wecom', checkWecomPlatformPermit)
|
|
15
|
+
: undefined;
|
|
16
|
+
return {
|
|
17
|
+
consoleRpc: createWecomConsoleRpc(context.resources, () => context.config.get()),
|
|
18
|
+
...(dispose ? { dispose } : {}),
|
|
19
|
+
};
|
|
18
20
|
},
|
|
19
21
|
});
|