@zhin.js/adapter-onebot11 1.1.14 → 1.1.15

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,28 @@
1
1
  # @zhin.js/adapter-onebot11
2
2
 
3
+ ## 1.1.15
4
+
5
+ ### Patch Changes
6
+
7
+ - 7d68df6: 精简 Agent 内置固定提示词与消息说明,保留工具、审批和结构化回复能力。适配器 Skill 按会话场景拆分,群/频道管理仅向对应场景披露;提示段与模型消息段支持场景声明,沿用当前回合权限和 generation 投影。
8
+ - Updated dependencies [f98025b]
9
+ - Updated dependencies [66ec1a5]
10
+ - Updated dependencies [7d68df6]
11
+ - Updated dependencies [bf0fa9f]
12
+ - Updated dependencies [3326db3]
13
+ - Updated dependencies [e91235e]
14
+ - Updated dependencies [6da2bad]
15
+ - Updated dependencies [3781f1c]
16
+ - @zhin.js/core@1.1.50
17
+ - @zhin.js/adapter@1.1.22
18
+ - @zhin.js/im-contract@1.1.6
19
+ - @zhin.js/tool@1.1.9
20
+ - @zhin.js/host-http@1.1.9
21
+ - @zhin.js/agent-feature@1.1.9
22
+ - @zhin.js/feature-kit@1.1.8
23
+ - @zhin.js/permission@1.1.8
24
+ - @zhin.js/skill@1.1.9
25
+
3
26
  ## 1.1.14
4
27
 
5
28
  ### Patch Changes
@@ -1,13 +1,21 @@
1
1
  ---
2
2
  name: onebot11
3
- platforms: [onebot11]
3
+ platforms:
4
+ - onebot11
4
5
  description: OneBot 11 消息通道与群专属头衔设置能力。
5
- keywords: [onebot11, qq, title, 头衔]
6
- tags: [adapter, messaging]
6
+ keywords:
7
+ - onebot11
8
+ - qq
9
+ - title
10
+ - 头衔
11
+ tags:
12
+ - adapter
13
+ - messaging
7
14
  tools:
8
15
  - set_title
16
+ scopes:
17
+ - group
9
18
  ---
10
-
11
19
  # OneBot 11
12
20
 
13
21
  `set_title` 用于设置群成员专属头衔。执行前确认群、目标用户和头衔文本,并遵守 Tool 自身审批与平台权限。
@@ -9,6 +9,7 @@ export default defineAgentTool({
9
9
  title: z.string().describe('头衔文字'),
10
10
  }),
11
11
  adapter: 'onebot11',
12
+ scopes: ["group"],
12
13
  tags: ['onebot11'],
13
14
  permissions: ['platform(onebot11,scene_owner)'],
14
15
  async execute({ group_id, user_id, title }, context) {
@@ -8,6 +8,7 @@ export default defineAgentTool<{ group_id: number; user_id: number; title: strin
8
8
  title: z.string().describe('头衔文字'),
9
9
  }),
10
10
  adapter: 'onebot11',
11
+ scopes: ["group"],
11
12
  tags: ['onebot11'],
12
13
  permissions: ['platform(onebot11,scene_owner)'],
13
14
  async execute({ group_id, user_id, title }: { group_id: number; user_id: number; title: string }, context) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/adapter-onebot11",
3
- "version": "1.1.14",
3
+ "version": "1.1.15",
4
4
  "description": "Zhin.js OneBot 11 adapter for Plugin Runtime (WebSocket client)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -44,16 +44,16 @@
44
44
  "@imhelper/onebot-v11": "1.0.7",
45
45
  "imhelper": "1.0.7",
46
46
  "ws": "^8.21.1",
47
- "@zhin.js/adapter": "1.1.21",
48
- "@zhin.js/agent-feature": "1.1.8",
49
- "@zhin.js/core": "1.1.49",
50
- "@zhin.js/feature-kit": "1.1.7",
51
- "@zhin.js/host-http": "1.1.8",
52
- "@zhin.js/im-contract": "1.1.5",
47
+ "@zhin.js/adapter": "1.1.22",
48
+ "@zhin.js/agent-feature": "1.1.9",
49
+ "@zhin.js/core": "1.1.50",
50
+ "@zhin.js/feature-kit": "1.1.8",
51
+ "@zhin.js/host-http": "1.1.9",
52
+ "@zhin.js/im-contract": "1.1.6",
53
53
  "@zhin.js/logger": "1.1.2",
54
- "@zhin.js/permission": "1.1.7",
55
- "@zhin.js/skill": "1.1.8",
56
- "@zhin.js/tool": "1.1.8"
54
+ "@zhin.js/permission": "1.1.8",
55
+ "@zhin.js/skill": "1.1.9",
56
+ "@zhin.js/tool": "1.1.9"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/node": "^26.1.2",
@@ -61,15 +61,15 @@
61
61
  "typescript": "^6.0.3",
62
62
  "vitest": "^4.1.10",
63
63
  "zod": "^4.4.3",
64
- "@zhin.js/host-http": "1.1.8",
65
- "zhin.js": "1.1.14"
64
+ "@zhin.js/host-http": "1.1.9",
65
+ "zhin.js": "1.1.15"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "zod": "^4.0.0",
69
- "@zhin.js/adapter": "^1.1.21",
70
- "@zhin.js/command": "^1.1.9",
71
- "@zhin.js/core": "^1.1.49",
72
- "zhin.js": "^1.1.14"
69
+ "@zhin.js/adapter": "^1.1.22",
70
+ "@zhin.js/command": "^1.1.10",
71
+ "@zhin.js/core": "^1.1.50",
72
+ "zhin.js": "^1.1.15"
73
73
  },
74
74
  "peerDependenciesMeta": {
75
75
  "@zhin.js/command": {