@zhin.js/adapter-telegram 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 +34 -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,39 @@
|
|
|
1
1
|
# Changelog
|
|
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@1.1.31
|
|
13
|
+
- @zhin.js/agent-feature@1.1.16
|
|
14
|
+
- @zhin.js/feature-kit@1.1.15
|
|
15
|
+
- @zhin.js/skill@1.1.16
|
|
16
|
+
- @zhin.js/tool@1.1.18
|
|
17
|
+
|
|
18
|
+
## 1.1.24
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- 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.
|
|
23
|
+
- Updated dependencies [cbf1fb1]
|
|
24
|
+
- Updated dependencies [008ccad]
|
|
25
|
+
- Updated dependencies [a1f1028]
|
|
26
|
+
- @zhin.js/console-contract@1.1.4
|
|
27
|
+
- @zhin.js/page@1.1.16
|
|
28
|
+
- @zhin.js/core@1.1.58
|
|
29
|
+
- @zhin.js/im-contract@1.1.13
|
|
30
|
+
- @zhin.js/host-http@1.1.16
|
|
31
|
+
- @zhin.js/adapter@1.1.30
|
|
32
|
+
- @zhin.js/tool@1.1.17
|
|
33
|
+
- @zhin.js/agent-feature@1.1.15
|
|
34
|
+
- @zhin.js/feature-kit@1.1.14
|
|
35
|
+
- @zhin.js/skill@1.1.15
|
|
36
|
+
|
|
3
37
|
## 1.1.23
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/adapter-telegram",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.25",
|
|
4
4
|
"description": "Zhin.js Telegram Bot API adapter for Plugin Runtime (long-poll getUpdates)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -31,26 +31,25 @@
|
|
|
31
31
|
"directory": "plugins/adapters/telegram"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@zhin.js/adapter": "1.1.
|
|
35
|
-
"@zhin.js/agent-feature": "1.1.
|
|
36
|
-
"@zhin.js/
|
|
37
|
-
"@zhin.js/
|
|
38
|
-
"@zhin.js/
|
|
39
|
-
"@zhin.js/
|
|
40
|
-
"@zhin.js/
|
|
41
|
-
"@zhin.js/im-contract": "1.1.12",
|
|
34
|
+
"@zhin.js/adapter": "1.1.31",
|
|
35
|
+
"@zhin.js/agent-feature": "1.1.16",
|
|
36
|
+
"@zhin.js/console-contract": "1.1.5",
|
|
37
|
+
"@zhin.js/core": "1.1.59",
|
|
38
|
+
"@zhin.js/feature-kit": "1.1.15",
|
|
39
|
+
"@zhin.js/host-http": "1.1.17",
|
|
40
|
+
"@zhin.js/im-contract": "1.1.13",
|
|
42
41
|
"@zhin.js/logger": "1.1.2",
|
|
43
|
-
"@zhin.js/page": "1.1.
|
|
44
|
-
"@zhin.js/skill": "1.1.
|
|
45
|
-
"@zhin.js/tool": "1.1.
|
|
42
|
+
"@zhin.js/page": "1.1.17",
|
|
43
|
+
"@zhin.js/skill": "1.1.16",
|
|
44
|
+
"@zhin.js/tool": "1.1.18"
|
|
46
45
|
},
|
|
47
46
|
"peerDependencies": {
|
|
48
47
|
"zod": "^4.0.0",
|
|
49
|
-
"@zhin.js/adapter": "^1.1.
|
|
50
|
-
"@zhin.js/command": "^1.1.
|
|
51
|
-
"@zhin.js/core": "^1.1.
|
|
52
|
-
"@zhin.js/permission": "^1.1.
|
|
53
|
-
"zhin.js": "^1.1.
|
|
48
|
+
"@zhin.js/adapter": "^1.1.31",
|
|
49
|
+
"@zhin.js/command": "^1.1.17",
|
|
50
|
+
"@zhin.js/core": "^1.1.59",
|
|
51
|
+
"@zhin.js/permission": "^1.1.15",
|
|
52
|
+
"zhin.js": "^1.1.24"
|
|
54
53
|
},
|
|
55
54
|
"peerDependenciesMeta": {
|
|
56
55
|
"@zhin.js/command": {
|
|
@@ -69,9 +68,9 @@
|
|
|
69
68
|
"typescript": "^6.0.3",
|
|
70
69
|
"vitest": "^4.1.10",
|
|
71
70
|
"zod": "^4.4.3",
|
|
72
|
-
"@zhin.js/host-http": "1.1.
|
|
73
|
-
"@zhin.js/pagemanager": "1.1.
|
|
74
|
-
"zhin.js": "1.1.
|
|
71
|
+
"@zhin.js/host-http": "1.1.17",
|
|
72
|
+
"@zhin.js/pagemanager": "1.1.24",
|
|
73
|
+
"zhin.js": "1.1.24"
|
|
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: 'Telegram',
|
|
6
5
|
titleI18n: { en: 'Telegram' },
|
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 { checkTelegramPlatformPermit } from "./lib/platform-permit.js";
|
|
5
5
|
import { createTelegramConsoleRpc } from "./lib/console.js";
|
|
@@ -10,10 +10,12 @@ export default definePlugin({
|
|
|
10
10
|
displayName: 'Telegram Bot API 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('telegram', checkTelegramPlatformPermit)
|
|
15
|
+
: undefined;
|
|
16
|
+
return {
|
|
17
|
+
consoleRpc: createTelegramConsoleRpc(() => context.config.get()),
|
|
18
|
+
...(dispose ? { dispose } : {}),
|
|
19
|
+
};
|
|
18
20
|
},
|
|
19
21
|
});
|