@zhin.js/adapter-wecom 1.1.22 → 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 CHANGED
@@ -1,5 +1,47 @@
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
+
22
+ ## 1.1.23
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [3a8504b]
27
+ - Updated dependencies [6163abc]
28
+ - Updated dependencies [fed2c27]
29
+ - Updated dependencies [bc6ccb1]
30
+ - Updated dependencies [72b5a12]
31
+ - Updated dependencies [aa41889]
32
+ - Updated dependencies [4427e72]
33
+ - Updated dependencies [22bd14a]
34
+ - @zhin.js/agent-feature@1.1.14
35
+ - @zhin.js/core@1.1.57
36
+ - @zhin.js/client@1.1.25
37
+ - @zhin.js/page@1.1.15
38
+ - @zhin.js/im-contract@1.1.12
39
+ - @zhin.js/adapter@1.1.29
40
+ - @zhin.js/host-http@1.1.15
41
+ - @zhin.js/feature-kit@1.1.13
42
+ - @zhin.js/tool@1.1.16
43
+ - @zhin.js/skill@1.1.14
44
+
3
45
  ## 1.1.22
4
46
 
5
47
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/adapter-wecom",
3
- "version": "1.1.22",
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.28",
37
- "@zhin.js/agent-feature": "1.1.13",
38
- "@zhin.js/client": "1.1.24",
39
- "@zhin.js/console-contract": "1.1.3",
40
- "@zhin.js/core": "1.1.56",
41
- "@zhin.js/feature-kit": "1.1.12",
42
- "@zhin.js/host-http": "1.1.14",
43
- "@zhin.js/im-contract": "1.1.11",
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.14",
46
- "@zhin.js/skill": "1.1.13",
47
- "@zhin.js/tool": "1.1.15"
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.28",
52
- "@zhin.js/command": "^1.1.14",
53
- "@zhin.js/core": "^1.1.56",
54
- "@zhin.js/host-http": "^1.1.14",
55
- "@zhin.js/permission": "^1.1.12",
56
- "zhin.js": "^1.1.21"
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.21"
73
+ "zhin.js": "1.1.23"
75
74
  },
76
75
  "files": [
77
76
  "adapters",
@@ -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' },
@@ -1,5 +1,4 @@
1
- import { definePage } from '@zhin.js/console-contract';
2
- import { createAdapterConsolePage } from '@zhin.js/client';
1
+ import { definePage, createAdapterConsolePage } from '@zhin.js/console-contract';
3
2
 
4
3
  export const meta = definePage({
5
4
  title: '企业微信',
package/plugin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Generated by build-plugin-runtime-entries.mjs. Do not edit.
2
- import { definePlugin, pluginConsoleRpcToken } from 'zhin.js';
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
- context.resources.provide(pluginConsoleRpcToken, createWecomConsoleRpc(context.resources, () => context.config.get()));
14
- if (context.resources.has(permissionHostToken)) {
15
- const host = context.resources.use(permissionHostToken);
16
- return host.registerPlatform('wecom', checkWecomPlatformPermit);
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
  });