@zhin.js/adapter-icqq 2.0.21 → 2.0.23

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,25 @@
1
1
  # @zhin.js/adapter-icqq
2
2
 
3
+ ## 2.0.23
4
+
5
+ ### Patch Changes
6
+
7
+ - 92da96d: fix skill 激活优化
8
+ - zhin.js@1.0.79
9
+ - @zhin.js/console@2.0.22
10
+ - @zhin.js/http@1.0.72
11
+ - @zhin.js/core@1.1.21
12
+
13
+ ## 2.0.22
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [88caeb2]
18
+ - @zhin.js/console@2.0.21
19
+ - @zhin.js/core@1.1.20
20
+ - zhin.js@1.0.78
21
+ - @zhin.js/http@1.0.71
22
+
3
23
  ## 2.0.21
4
24
 
5
25
  ### Patch Changes
package/README.md CHANGED
@@ -382,6 +382,12 @@ onGroupMessage(async (message) => {
382
382
  })
383
383
  ```
384
384
 
385
+ ## icqq CLI 与 AI bash 安全
386
+
387
+ 启用 **icqq 技能**(`skills/icqq`)时,模型通常会通过 **`bash`** 调用 `icqq …` 命令行。此时由框架 **`execSecurity` / `execAsk`** 与 **Owner 私聊指令**(`approve always bash`、`approve rule <正则>` 等)共同约束:在 `allowlist` 下,**非敏感**子命令多数可直接执行;**敏感**子命令(踢人、禁言、解散、支付等)在开启 `execAsk` 时需 Owner 确认,并可用 **正则匹配整条子命令** 做持久化放行(不必把 QQ 号写进配置)。持久化文件为数据目录下的 `owner-approve-always.json`。
388
+
389
+ 完整说明与指令表见仓库文档:[docs/advanced/ai.md](../../../docs/advanced/ai.md)(锚点:`#icqq-bash-exec`、`#owner-approve-commands`)。
390
+
385
391
  ## 签名服务器
386
392
 
387
393
  为了提高登录稳定性和避免风控,建议配置签名服务器:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/adapter-icqq",
3
- "version": "2.0.21",
3
+ "version": "2.0.23",
4
4
  "description": "Zhin.js adapter for ICQQ (QQ Bot)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -51,16 +51,16 @@
51
51
  "lucide-react": "^1.14.0",
52
52
  "radix-ui": "^1.4.3",
53
53
  "typescript": "^6.0.3",
54
- "@zhin.js/cli": "1.0.73",
55
- "@zhin.js/console": "2.0.20",
56
- "zhin.js": "1.0.77"
54
+ "@zhin.js/cli": "1.0.75",
55
+ "@zhin.js/console": "2.0.22",
56
+ "zhin.js": "1.0.79"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "@zhin.js/client": "1.0.18",
60
- "@zhin.js/console": "2.0.20",
61
- "@zhin.js/core": "1.1.19",
62
- "@zhin.js/http": "1.0.70",
63
- "zhin.js": "1.0.77"
60
+ "@zhin.js/console": "2.0.22",
61
+ "@zhin.js/core": "1.1.21",
62
+ "@zhin.js/http": "1.0.72",
63
+ "zhin.js": "1.0.79"
64
64
  },
65
65
  "peerDependenciesMeta": {
66
66
  "@zhin.js/client": {
@@ -1,5 +1,7 @@
1
1
  ---
2
2
  name: icqq
3
+ platforms:
4
+ - icqq
3
5
  description: 'Operate QQ account via icqq CLI. Use when asked to: send QQ message, manage QQ groups, check QQ friends, poke friend, like friend, mute member, kick member, set nickname, view QQ profile, handle friend/group requests, manage group files, set group announcement, QQ签到, 发消息, 管群, 好友操作, 群文件.'
4
6
  argument-hint: 'Describe what QQ operation to perform, e.g. "send hello to friend 12345" or "mute user 67890 in group 11111"'
5
7
  disable-model-invocation: true
@@ -39,3 +41,4 @@ Load the corresponding reference file based on what the user wants:
39
41
  - CQ code syntax in messages: `[face:id]` `[image:path]` `[at:uid]` `[at:all]` `[dice]` `[rps]`
40
42
  - Quote strings with spaces: `icqq friend send 12345 "hello world"`
41
43
  - Chain batch ops with `&&`
44
+ - **Agent / bash**:`icqq …` 多由 `bash` 执行;`execSecurity: allowlist` 下非敏感子命令通常直接放行,敏感操作与 Owner `approve rule` / `approve always bash` 等见框架文档 [docs/advanced/ai.md](../../../../../docs/advanced/ai.md)(`#icqq-bash-exec`、`#owner-approve-commands`)。