@zhin.js/adapter-icqq 2.0.24 → 2.0.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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # @zhin.js/adapter-icqq
2
2
 
3
+ ## 2.0.25
4
+
5
+ ### Patch Changes
6
+
7
+ - 3b3e49b: fix: ask 工具修复,icqq skill 优化
8
+ - zhin.js@1.0.80
9
+ - @zhin.js/console@2.0.23
10
+ - @zhin.js/http@1.0.73
11
+ - @zhin.js/core@1.1.22
12
+
3
13
  ## 2.0.24
4
14
 
5
15
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/adapter-icqq",
3
- "version": "2.0.24",
3
+ "version": "2.0.25",
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.75",
55
- "@zhin.js/console": "2.0.22",
56
- "zhin.js": "1.0.79"
54
+ "@zhin.js/cli": "1.0.76",
55
+ "@zhin.js/console": "2.0.23",
56
+ "zhin.js": "1.0.80"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "@zhin.js/client": "1.0.18",
60
- "@zhin.js/console": "2.0.22",
61
- "@zhin.js/core": "1.1.21",
62
- "zhin.js": "1.0.79",
63
- "@zhin.js/http": "1.0.72"
60
+ "@zhin.js/console": "2.0.23",
61
+ "@zhin.js/core": "1.1.22",
62
+ "@zhin.js/http": "1.0.73",
63
+ "zhin.js": "1.0.80"
64
64
  },
65
65
  "peerDependenciesMeta": {
66
66
  "@zhin.js/client": {
@@ -2,42 +2,40 @@
2
2
  name: icqq
3
3
  platforms:
4
4
  - icqq
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签到, 发消息, 管群, 好友操作, 群文件.'
6
- argument-hint: 'Describe what QQ operation to perform, e.g. "send hello to friend 12345" or "mute user 67890 in group 11111"'
5
+ description: '通过 icqq 命令行操作 QQ 账号。适用于:发私聊或群消息、撤回、查聊天记录;好友(列表、资料、备注、戳一戳、点赞、删好友、分组);群(禁言、踢人、公告、签到、精华、成员、邀请、全体禁言);好友/群验证与入群请求;群文件;昵称头像签名、在线状态;黑名单、OCR、Webhook、通知;登录与守护进程。用户提到 QQ、企鹅、好友、群聊、@、撤回、禁言、踢人、加群、好友请求、群文件、签到等时使用本技能。'
6
+ argument-hint: '用一句话说明要对 QQ 执行的操作,例如「给好友 12345 发一条你好」或「把群 11111 里的用户 67890 禁言 10 分钟」'
7
7
  disable-model-invocation: true
8
8
  ---
9
9
 
10
- # icqq — QQ Account Operations via CLI
10
+ # icqq — 用命令行操作 QQ
11
11
 
12
- Operate a QQ account through the `icqq` command-line tool. The daemon must be running first (`icqq login`).
12
+ 通过 **`icqq`** 命令行工具操作 QQ。需先 **`icqq login`** 启动守护进程后再执行其它命令。
13
13
 
14
- ## Procedure
14
+ ## 使用流程
15
15
 
16
- 1. **Identify the module** Match the user's intent to one of the modules below
17
- 2. **Load the reference** Read ONLY the relevant module reference file(s)
18
- 3. **Check daemon** Use `icqq service status` for install/running state, then probe the account with `icqq profile` or `icqq friend list` to confirm IPC responds
19
- 4. **Execute** — Run the command in terminal and report results
16
+ 1. **判断模块**对照下方「模块表」,匹配用户意图属于哪一类
17
+ 2. **只读对应参考**仅打开与意图相关的 `references/*.md`,不要凭记忆猜命令
18
+ 3. **执行命令**在终端运行 `icqq …`,把结果回报给用户;未登录或守护未起时命令失败即如实说明
20
19
 
21
- ## Modules
20
+ ## 模块表
22
21
 
23
- Load the corresponding reference file based on what the user wants:
22
+ 按用户想做的事,打开对应参考文件:
24
23
 
25
- | Intent | Module | Reference |
26
- |--------|--------|-----------|
27
- | 发消息、撤回、聊天记录、消息详情、合并转发 | Messaging | [messaging.md](./references/messaging.md) |
28
- | 好友列表、查看、发消息、戳一戳、点赞、删除、备注、文件、好友分组 | Friends | [friends.md](./references/friends.md) |
29
- | 群管理:发消息、禁言、踢人、公告、邀请、签到、精华、成员、表态 | Groups | [groups.md](./references/groups.md) |
30
- | 设置:昵称、头像、签名、群名片、群头衔、加群方式、匿名 | Settings | [settings.md](./references/settings.md) |
31
- | 好友/群请求处理 | Requests | [requests.md](./references/requests.md) |
32
- | 群文件:目录管理、上传下载、转发 | Group Files | [gfs.md](./references/gfs.md) |
33
- | 登录、服务/守护、配置、OCR、黑名单、Webhook、通知、UID转换、陌生人、漫游表情、缓存、重载、频道与子频道(Guild & Channel)、RPC 远程连接、补全 | General | [general.md](./references/general.md) |
24
+ | 用户意图 | 模块 | 参考文档 |
25
+ |----------|------|----------|
26
+ | 发消息、撤回、聊天记录、消息详情、合并转发 | 消息 | [messaging.md](./references/messaging.md) |
27
+ | 好友列表、查看、发消息、戳一戳、点赞、删除、备注、文件、好友分组 | 好友 | [friends.md](./references/friends.md) |
28
+ | 群:发消息、禁言、踢人、公告、邀请、签到、精华、成员、表态 | 群管理 | [groups.md](./references/groups.md) |
29
+ | 昵称、头像、签名、群名片、群头衔、加群方式、匿名等设置 | 设置 | [settings.md](./references/settings.md) |
30
+ | 好友请求、群请求、入群验证 | 请求 | [requests.md](./references/requests.md) |
31
+ | 群文件:目录、上传下载、转发 | 群文件 | [gfs.md](./references/gfs.md) |
32
+ | 登录、服务/守护、配置、OCR、黑名单、Webhook、通知、UID 转换、陌生人、漫游表情、缓存、重载、频道、RPC、补全 | 通用 | [general.md](./references/general.md) |
34
33
 
35
- ## Global Notes
34
+ ## 全局约定
36
35
 
37
- - All `<uid>` = QQ number (integer), `<gid>` = group number (integer)
38
- - Daemon must run first: `icqq login`
39
- - Multi-instance: use `-u <uin>` or `ICQQ_CURRENT_UIN` env to specify account; defaults to `config.currentUin`
40
- - **Use `icqq friend send` / `icqq group send` for non-interactive messaging** (agent-friendly); `icqq friend chat` / `icqq group chat` are interactive
41
- - CQ code syntax in messages: `[face:id]` `[image:path]` `[at:uid]` `[at:all]` `[dice]` `[rps]`
42
- - Quote strings with spaces: `icqq friend send 12345 "hello world"`
43
- - Chain batch ops with `&&`
36
+ - `<uid>` = QQ 号(数字),`<gid>` = 群号(数字)
37
+ - 多账号:全局参数 `-u <uin>` 或环境变量 `ICQQ_CURRENT_UIN`;默认用配置里的 `currentUin`
38
+ - **自动执行发消息** 优先用 **`icqq friend send` / `icqq group send`**(非交互);`icqq friend chat` / `icqq group chat` 为交互式,不适合代理串行跑
39
+ - CQ 码片段:`[face:id]` `[image:路径或URL]` `[at:uid]` `[at:all]` `[dice]` `[rps]`
40
+ - 含空格的内容用英文双引号包起来:`icqq friend send 12345 "你好 世界"`
41
+ - 批量操作用 `&&` 串联多条命令