@zhin.js/adapter-line 1.1.29 → 1.1.31

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/package.json +42 -33
  3. package/plugin.js +0 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,72 @@
1
1
  # @zhin.js/adapter-line
2
2
 
3
+ ## 1.1.31
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [39db402]
8
+ - Updated dependencies [8bf8dfa]
9
+ - Updated dependencies [603b892]
10
+ - Updated dependencies [da9dc8a]
11
+ - Updated dependencies [bc31cd3]
12
+ - Updated dependencies [760e9f5]
13
+ - Updated dependencies [5d90159]
14
+ - Updated dependencies [73475bd]
15
+ - Updated dependencies [35e5d89]
16
+ - Updated dependencies [809c6ee]
17
+ - Updated dependencies [817b2bf]
18
+ - Updated dependencies [9cd764a]
19
+ - Updated dependencies [b2ed753]
20
+ - @zhin.js/host-http@1.4.0
21
+ - @zhin.js/logger@1.2.0
22
+ - @zhin.js/core@1.9.0
23
+ - @zhin.js/adapter@1.3.1
24
+
25
+ ## 1.1.30
26
+
27
+ ### Patch Changes
28
+
29
+ - e6d7cc1: 配置表单与插件显示名的多语言约定(#1250):Schema 节点沿用已有的 `x-i18n`(`Schema#i18n()`),按 `zh-CN` / `en` 分别声明字段的 `title`、`description` 与 `enumLabels`;插件 `metadata`(`definePlugin` 或 `package.json#zhin.metadata`)新增可选的 `displayNameI18n: { 'zh-CN'?, en? }`,与 `displayName` 一样只能在一处声明,清单只接受这两个键且值必须是非空字符串。Console 插件列表(`/api/plugins`、插件详情)和 `feature.list` / `feature.matrix` 原样带出 `displayNameI18n`,由 Console 按界面语言选择(当前语言 → `en` → `displayName` → 实例 key)。没有这些字段时行为不变。
30
+
31
+ 官方插件补齐中英文配置字段标题与说明(group-suite、repeater、roulette、answers、calendar、ledger、reminder、rss、earthquake、bilibili、content-moderation、lottery、nettools、60s、process-monitor、activity-feedback)以及全部官方插件的中英文显示名。
32
+
33
+ - 70ddaf4: 插件市场元数据(#1250 marketplace-metadata):`package.json#zhin.metadata` 新增可选的 `descriptionI18n: { 'zh-CN'?, en? }`(本地化描述)与 `category`(`adapter`、`ai`、`admin`、`community`、`entertainment`、`game`、`information`、`moderation`、`service`、`utility` 之一),校验方式与 `displayNameI18n` 相同:只接受这两个语言键、值为非空字符串、分类必须在枚举内。这两个字段只能写在清单里,插件市场才能从发布的 `package.json` 读到。`@zhin.js/plugin-runtime` 导出 `PLUGIN_CATEGORIES`、`PLUGIN_CATEGORY_LABELS`、`informativeKeywords`、`packageAuthorName`、`readPluginMarketplaceMetadata` 等读取工具。
34
+
35
+ 市场读取侧:`/pub/marketplace/search` 带出 `displayNameI18n` / `descriptionI18n`,分类读声明的 `category`(旧索引的 `util` 等按别名映射),可选 `locale=zh-CN|en` 按语言解析显示名与描述,并按两种语言的名称与描述搜索;`/pub/marketplace/detail/*` 带出发布清单的显示名、描述翻译与分类。作者一律取 `author`(没有时取 `maintainers`),不再显示发布账号——此前 `plugins.json` 生成脚本优先读 `_npmUser`,CI 可信发布的包因此都显示为「GitHub Actions」。keywords 去掉 `zhin`、`zhin.js`、`bot` 等通用词后展示与参与搜索。`zhin search` / `zhin info` 同样显示中文描述、分类和维护者,`zhin info` 不再读不存在的 `zhin.displayName` / `zhin.category`。
36
+
37
+ 官方插件与适配器:显示名移到 `package.json#zhin.metadata`,补齐中英文描述、分类、3–6 个有信息量的 keywords,author 统一为 `{ name: "lc-cn", url: "https://github.com/zhinjs/zhin" }`(不再发布邮箱);npm `description` 与英文描述一致。
38
+
39
+ - Updated dependencies [b3ba941]
40
+ - Updated dependencies [7cd299e]
41
+ - Updated dependencies [7cd299e]
42
+ - Updated dependencies [7126d03]
43
+ - Updated dependencies [9026329]
44
+ - Updated dependencies [1d1746e]
45
+ - Updated dependencies [71aa159]
46
+ - Updated dependencies [ccab2c1]
47
+ - Updated dependencies [b00725c]
48
+ - Updated dependencies [c6b5563]
49
+ - Updated dependencies [f1a9745]
50
+ - Updated dependencies [e0b4e51]
51
+ - Updated dependencies [cca4427]
52
+ - Updated dependencies [70ddaf4]
53
+ - Updated dependencies [b08cff2]
54
+ - Updated dependencies [dbdfca3]
55
+ - Updated dependencies [704c7a4]
56
+ - Updated dependencies [b56cca9]
57
+ - Updated dependencies [f3910f1]
58
+ - Updated dependencies [07bd3dc]
59
+ - @zhin.js/host-http@1.3.0
60
+ - @zhin.js/core@1.8.0
61
+ - @zhin.js/adapter@1.3.0
62
+ - @zhin.js/im-contract@1.2.0
63
+ - @zhin.js/console-contract@1.2.0
64
+ - @zhin.js/page@1.1.20
65
+ - @zhin.js/agent-feature@1.1.19
66
+ - @zhin.js/feature-kit@1.1.18
67
+ - @zhin.js/skill@1.1.19
68
+ - @zhin.js/tool@1.1.21
69
+
3
70
  ## 1.1.29
4
71
 
5
72
  ### Patch Changes
package/package.json CHANGED
@@ -1,7 +1,17 @@
1
1
  {
2
2
  "name": "@zhin.js/adapter-line",
3
- "version": "1.1.29",
4
- "description": "Zhin.js LINE Messaging API adapter for Plugin Runtime (HTTP webhook)",
3
+ "version": "1.1.31",
4
+ "description": "LINE adapter: private, group and room messages through the Messaging API webhook.",
5
+ "keywords": [
6
+ "zhin.js",
7
+ "line",
8
+ "messaging-api",
9
+ "webhook"
10
+ ],
11
+ "author": {
12
+ "name": "lc-cn",
13
+ "url": "https://github.com/zhinjs/zhin"
14
+ },
5
15
  "type": "module",
6
16
  "main": "./lib/index.js",
7
17
  "types": "./lib/index.d.ts",
@@ -11,19 +21,6 @@
11
21
  "import": "./lib/index.js"
12
22
  }
13
23
  },
14
- "keywords": [
15
- "zhin",
16
- "zhin.js",
17
- "bot",
18
- "adapter",
19
- "line",
20
- "chatbot"
21
- ],
22
- "author": {
23
- "name": "lc-cn",
24
- "email": "admin@liucl.cn",
25
- "url": "https://github.com/lc-cn"
26
- },
27
24
  "license": "MIT",
28
25
  "repository": {
29
26
  "url": "git+https://github.com/zhinjs/zhin.git",
@@ -32,25 +29,25 @@
32
29
  },
33
30
  "dependencies": {
34
31
  "zod": "^4.6.7",
35
- "@zhin.js/adapter": "1.1.34",
36
- "@zhin.js/agent-feature": "1.1.18",
37
- "@zhin.js/console-contract": "1.1.6",
38
- "@zhin.js/core": "1.7.0",
39
- "@zhin.js/feature-kit": "1.1.17",
40
- "@zhin.js/host-http": "1.2.2",
32
+ "@zhin.js/adapter": "1.3.1",
33
+ "@zhin.js/agent-feature": "1.1.19",
34
+ "@zhin.js/console-contract": "1.2.0",
35
+ "@zhin.js/core": "1.9.0",
36
+ "@zhin.js/feature-kit": "1.1.18",
37
+ "@zhin.js/host-http": "1.4.0",
41
38
  "@zhin.js/host-http-contract": "1.2.0",
42
- "@zhin.js/im-contract": "1.1.14",
43
- "@zhin.js/logger": "1.1.3",
44
- "@zhin.js/page": "1.1.19",
45
- "@zhin.js/skill": "1.1.18",
46
- "@zhin.js/tool": "1.1.20"
39
+ "@zhin.js/im-contract": "1.2.0",
40
+ "@zhin.js/logger": "1.2.0",
41
+ "@zhin.js/page": "1.1.20",
42
+ "@zhin.js/skill": "1.1.19",
43
+ "@zhin.js/tool": "1.1.21"
47
44
  },
48
45
  "peerDependencies": {
49
- "@zhin.js/adapter": "^1.1.34",
50
- "@zhin.js/command": "^1.2.2",
51
- "@zhin.js/core": "^1.7.0",
52
- "@zhin.js/host-http": "^1.2.2",
53
- "zhin.js": "^1.2.0"
46
+ "@zhin.js/adapter": "^1.3.1",
47
+ "@zhin.js/command": "^1.3.0",
48
+ "@zhin.js/core": "^1.9.0",
49
+ "@zhin.js/host-http": "^1.4.0",
50
+ "zhin.js": "^1.4.0"
54
51
  },
55
52
  "peerDependenciesMeta": {
56
53
  "@zhin.js/command": {
@@ -64,7 +61,7 @@
64
61
  "@types/node": "^26.1.2",
65
62
  "typescript": "^6.0.3",
66
63
  "vitest": "^4.1.10",
67
- "zhin.js": "1.2.0"
64
+ "zhin.js": "1.4.0"
68
65
  },
69
66
  "files": [
70
67
  "adapters",
@@ -118,7 +115,19 @@
118
115
  "api": "^1.0.0"
119
116
  }
120
117
  ],
121
- "plugins": []
118
+ "plugins": [],
119
+ "metadata": {
120
+ "displayName": "LINE Messaging API Adapter",
121
+ "displayNameI18n": {
122
+ "zh-CN": "LINE 适配器",
123
+ "en": "LINE Messaging API Adapter"
124
+ },
125
+ "descriptionI18n": {
126
+ "zh-CN": "LINE 适配器:通过 Messaging API Webhook 收发私聊、群组与多人聊天消息。",
127
+ "en": "LINE adapter: private, group and room messages through the Messaging API webhook."
128
+ },
129
+ "category": "adapter"
130
+ }
122
131
  },
123
132
  "scripts": {
124
133
  "build": "tsc",
package/plugin.js CHANGED
@@ -4,9 +4,6 @@ import { createLineConsoleRpc } from "./lib/console.js";
4
4
  export default definePlugin({
5
5
  name: 'line',
6
6
  configUpdate: { featurePaths: [['nickname'], ['profile'], ['endpoints']] },
7
- metadata: {
8
- displayName: 'LINE Messaging API Adapter',
9
- },
10
7
  setup(context) {
11
8
  // 运行中 endpoint 注册表(line endpoint list 的"运行中"数据源)
12
9
  return {