@zhin.js/adapter-dingtalk 1.1.13 → 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,35 @@
1
1
  # @zhin.js/adapter-dingtalk
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/skill@1.1.9
24
+
25
+ ## 1.1.14
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies [974fa85]
30
+ - Updated dependencies [1e9b3d6]
31
+ - @zhin.js/core@1.1.49
32
+
3
33
  ## 1.1.13
4
34
 
5
35
  ### Patch Changes
@@ -1,26 +1,26 @@
1
1
  ---
2
2
  name: dingtalk
3
- platforms: [dingtalk]
4
- description: 钉钉组织查询、工作通知和群聊创建维护能力。
5
- keywords: [dingtalk, 钉钉, 部门, 用户, 工作通知, 群聊]
6
- tags: [adapter, collaboration]
3
+ platforms:
4
+ - dingtalk
5
+ description: 钉钉用户、部门查询、工作通知与创建群聊。
6
+ keywords:
7
+ - dingtalk
8
+ - 钉钉
9
+ - 部门
10
+ - 用户
11
+ - 工作通知
12
+ - 群聊
13
+ tags:
14
+ - adapter
15
+ - collaboration
7
16
  tools:
8
17
  - get_user
9
18
  - get_dept_users
10
19
  - list_departments
11
20
  - send_work_notice
12
21
  - create_chat
13
- - add_chat_members
14
22
  - dept_info
15
- - update_chat
16
23
  ---
17
-
18
24
  # 钉钉
19
25
 
20
- 用户或部门信息不完整时,先查询再执行写操作:
21
-
22
- 1. 用 `list_departments` / `dept_info` 确认部门。
23
- 2. 用 `get_dept_users` / `get_user` 解析稳定的用户 ID。
24
- 3. 发送工作通知,或创建、更新群聊并添加成员。
25
-
26
- 不要把昵称直接当作用户 ID。当前 Agent Tool 不提供踢人、改群名或读取当前群详情能力;遇到这些请求时应明确说明能力边界。
26
+ 先用 list_departments / dept_info 查询部门,用 get_dept_users / get_user 取得稳定用户 ID,再发送工作通知或创建群聊。不要把昵称当作 ID。
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: dingtalk-group-admin
3
+ platforms:
4
+ - dingtalk
5
+ scopes:
6
+ - group
7
+ description: 钉钉已有群聊的成员与设置管理。
8
+ keywords:
9
+ - dingtalk
10
+ - 钉钉
11
+ - 群聊
12
+ tools:
13
+ - add_chat_members
14
+ - update_chat
15
+ ---
16
+ # dingtalk-group-admin
17
+
18
+ 先通过用户查询取得稳定 ID,确认目标群后更新设置或添加成员;写操作遵守审批。
@@ -9,6 +9,7 @@ export default defineAgentTool({
9
9
  user_ids: z.string().describe('要添加的用户 ID 列表,逗号分隔'),
10
10
  }),
11
11
  adapter: 'dingtalk',
12
+ scopes: ["group"],
12
13
  tags: ['dingtalk'],
13
14
  permissions: [platformPermission('dingtalk', 'chat_admin')],
14
15
  async execute({ chat_id, user_ids }, context) {
@@ -9,6 +9,7 @@ export default defineAgentTool<{ chat_id: string; user_ids: string }>({
9
9
  user_ids: z.string().describe('要添加的用户 ID 列表,逗号分隔'),
10
10
  }),
11
11
  adapter: 'dingtalk',
12
+ scopes: ["group"],
12
13
  tags: ['dingtalk'],
13
14
  permissions: [platformPermission('dingtalk', 'chat_admin')],
14
15
  async execute({ chat_id, user_ids }: { chat_id: string; user_ids: string }, context) {
@@ -11,6 +11,7 @@ export default defineAgentTool({
11
11
  remove_members: z.string().optional().describe('要移除的成员 userId,逗号分隔(可选)'),
12
12
  }),
13
13
  adapter: 'dingtalk',
14
+ scopes: ["group"],
14
15
  tags: ['dingtalk'],
15
16
  async execute({ chat_id, name, owner, add_members, remove_members }, context) {
16
17
  const endpoint = context.$client;
@@ -10,6 +10,7 @@ export default defineAgentTool<{ chat_id: string; name?: string; owner?: string;
10
10
  remove_members: z.string().optional().describe('要移除的成员 userId,逗号分隔(可选)'),
11
11
  }),
12
12
  adapter: 'dingtalk',
13
+ scopes: ["group"],
13
14
  tags: ['dingtalk'],
14
15
  async execute({ chat_id, name, owner, add_members, remove_members }: { chat_id: string; name?: string; owner?: string; add_members?: string; remove_members?: string }, context) {
15
16
  const endpoint = context.$client;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/adapter-dingtalk",
3
- "version": "1.1.13",
3
+ "version": "1.1.15",
4
4
  "description": "Zhin.js DingTalk (钉钉) adapter for Plugin Runtime (HTTP webhook)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -33,24 +33,24 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "ws": "^8.18.3",
36
- "@zhin.js/adapter": "1.1.21",
37
- "@zhin.js/agent-feature": "1.1.8",
38
- "@zhin.js/core": "1.1.48",
39
- "@zhin.js/feature-kit": "1.1.7",
40
- "@zhin.js/host-http": "1.1.8",
41
- "@zhin.js/im-contract": "1.1.5",
36
+ "@zhin.js/adapter": "1.1.22",
37
+ "@zhin.js/agent-feature": "1.1.9",
38
+ "@zhin.js/core": "1.1.50",
39
+ "@zhin.js/feature-kit": "1.1.8",
40
+ "@zhin.js/host-http": "1.1.9",
41
+ "@zhin.js/im-contract": "1.1.6",
42
42
  "@zhin.js/logger": "1.1.2",
43
- "@zhin.js/skill": "1.1.8",
44
- "@zhin.js/tool": "1.1.8"
43
+ "@zhin.js/skill": "1.1.9",
44
+ "@zhin.js/tool": "1.1.9"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "zod": "^4.0.0",
48
- "@zhin.js/adapter": "^1.1.21",
49
- "@zhin.js/command": "^1.1.9",
50
- "@zhin.js/core": "^1.1.48",
51
- "@zhin.js/host-http": "^1.1.8",
52
- "@zhin.js/permission": "^1.1.7",
53
- "zhin.js": "^1.1.13"
48
+ "@zhin.js/adapter": "^1.1.22",
49
+ "@zhin.js/command": "^1.1.10",
50
+ "@zhin.js/core": "^1.1.50",
51
+ "@zhin.js/host-http": "^1.1.9",
52
+ "@zhin.js/permission": "^1.1.8",
53
+ "zhin.js": "^1.1.15"
54
54
  },
55
55
  "peerDependenciesMeta": {
56
56
  "@zhin.js/command": {
@@ -69,7 +69,7 @@
69
69
  "vitest": "^4.1.10",
70
70
  "zod": "^4.4.3",
71
71
  "@types/ws": "^8.18.1",
72
- "zhin.js": "1.1.13"
72
+ "zhin.js": "1.1.15"
73
73
  },
74
74
  "files": [
75
75
  "adapters",