@zhin.js/adapter-slack 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 CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
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-slack",
3
- "version": "1.1.23",
3
+ "version": "1.1.24",
4
4
  "description": "Zhin.js Slack adapter for Plugin Runtime (Socket Mode / HTTP Events)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -33,27 +33,26 @@
33
33
  "dependencies": {
34
34
  "@slack/socket-mode": "^2.0.7",
35
35
  "@slack/web-api": "^7.19.0",
36
- "@zhin.js/adapter": "1.1.29",
37
- "@zhin.js/agent-feature": "1.1.14",
38
- "@zhin.js/client": "1.1.25",
39
- "@zhin.js/console-contract": "1.1.3",
40
- "@zhin.js/core": "1.1.57",
41
- "@zhin.js/feature-kit": "1.1.13",
42
- "@zhin.js/host-http": "1.1.15",
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.15",
46
- "@zhin.js/skill": "1.1.14",
47
- "@zhin.js/tool": "1.1.16"
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.29",
52
- "@zhin.js/command": "^1.1.15",
53
- "@zhin.js/core": "^1.1.57",
54
- "@zhin.js/host-http": "^1.1.15",
55
- "@zhin.js/permission": "^1.1.13",
56
- "zhin.js": "^1.1.22"
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.22"
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: 'Slack',
6
5
  titleI18n: { en: 'Slack' },
@@ -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: 'Slack',
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 { checkSlackPlatformPermit } from "./lib/platform-permit.js";
5
5
  import { createSlackConsoleRpc } from "./lib/console.js";
@@ -10,10 +10,12 @@ export default definePlugin({
10
10
  displayName: 'Slack Adapter',
11
11
  },
12
12
  setup(context) {
13
- context.resources.provide(pluginConsoleRpcToken, createSlackConsoleRpc(() => context.config.get()));
14
- if (context.resources.has(permissionHostToken)) {
15
- const host = context.resources.use(permissionHostToken);
16
- return host.registerPlatform('slack', checkSlackPlatformPermit);
17
- }
13
+ const dispose = context.resources.has(permissionHostToken)
14
+ ? context.resources.use(permissionHostToken).registerPlatform('slack', checkSlackPlatformPermit)
15
+ : undefined;
16
+ return {
17
+ consoleRpc: createSlackConsoleRpc(() => context.config.get()),
18
+ ...(dispose ? { dispose } : {}),
19
+ };
18
20
  },
19
21
  });