@zhin.js/adapter-icqq 2.0.25 → 3.0.0
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 +19 -0
- package/client/utils/api.ts +12 -2
- package/dist/index.js +2 -2
- package/lib/adapter.d.ts +1 -1
- package/lib/adapter.d.ts.map +1 -1
- package/lib/adapter.js +2 -3
- package/lib/adapter.js.map +1 -1
- package/lib/agent-prompt.d.ts +3 -0
- package/lib/agent-prompt.d.ts.map +1 -0
- package/lib/agent-prompt.js +104 -0
- package/lib/agent-prompt.js.map +1 -0
- package/lib/bot.d.ts +1 -1
- package/lib/bot.d.ts.map +1 -1
- package/lib/bot.js +44 -15
- package/lib/bot.js.map +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -1
- package/lib/index.js.map +1 -1
- package/package.json +10 -10
- package/src/adapter.ts +2 -3
- package/src/agent-prompt.ts +115 -0
- package/src/bot.ts +44 -33
- package/src/index.ts +10 -1
- package/skills/icqq/SKILL.md +0 -41
- package/skills/icqq/references/friends.md +0 -54
- package/skills/icqq/references/general.md +0 -230
- package/skills/icqq/references/gfs.md +0 -49
- package/skills/icqq/references/groups.md +0 -71
- package/skills/icqq/references/messaging.md +0 -64
- package/skills/icqq/references/requests.md +0 -27
- package/skills/icqq/references/settings.md +0 -38
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
# Groups
|
|
2
|
-
|
|
3
|
-
## List & View
|
|
4
|
-
|
|
5
|
-
```
|
|
6
|
-
icqq group list # List all groups
|
|
7
|
-
icqq group view <gid> # View group info
|
|
8
|
-
icqq group member list <gid> # List group members
|
|
9
|
-
icqq group member view <gid> <uid> # View member info
|
|
10
|
-
icqq group avatar-url <gid> # Get group avatar URL
|
|
11
|
-
icqq group share <gid> # Get group share link
|
|
12
|
-
icqq group anon-info <gid> # View anonymous info
|
|
13
|
-
icqq group at-all-remain <gid> # Check @all remaining count
|
|
14
|
-
icqq group muted-list <gid> # View muted members list
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Mute
|
|
18
|
-
|
|
19
|
-
```
|
|
20
|
-
icqq group mute <gid> <uid> [-d seconds] # Mute member (default 600s, -d 0 to unmute)
|
|
21
|
-
icqq group mute-all <gid> # Mute all
|
|
22
|
-
icqq group mute-all <gid> --off # Unmute all
|
|
23
|
-
icqq group mute-anon <gid> <flag> # Mute anonymous member
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Kick & Quit
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
icqq group kick <gid> <uid> [-b] # Kick member (-b: block rejoin)
|
|
30
|
-
icqq group quit <gid> # Quit group
|
|
31
|
-
icqq group screen-member <gid> <uid> # Block/unblock member messages
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Social
|
|
35
|
-
|
|
36
|
-
```
|
|
37
|
-
icqq group send <gid> <message> # Send group message
|
|
38
|
-
icqq group poke <gid> <uid> # Poke group member
|
|
39
|
-
icqq group invite <gid> <uid> # Invite friend to group
|
|
40
|
-
icqq group sign <gid> # Group check-in
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
## Reactions
|
|
44
|
-
|
|
45
|
-
```
|
|
46
|
-
icqq group reaction add <msgid> <emoji> # React to message
|
|
47
|
-
icqq group reaction remove <msgid> <emoji> # Remove reaction
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## Announcement & Essence
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
icqq group announce <gid> <content> # Post announcement
|
|
54
|
-
icqq group essence add <message_id> # Set essence message
|
|
55
|
-
icqq group essence remove <message_id> # Remove essence message
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
## Examples
|
|
59
|
-
|
|
60
|
-
```bash
|
|
61
|
-
icqq group list
|
|
62
|
-
icqq group view 67890
|
|
63
|
-
icqq group send 67890 "大家好"
|
|
64
|
-
icqq group member list 67890
|
|
65
|
-
icqq group member view 67890 12345
|
|
66
|
-
icqq group mute 67890 12345 -d 3600
|
|
67
|
-
icqq group kick 67890 12345 -b
|
|
68
|
-
icqq group announce 67890 "今晚8点开会"
|
|
69
|
-
icqq group sign 67890
|
|
70
|
-
icqq group reaction add abc123 👍
|
|
71
|
-
```
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# Messaging
|
|
2
|
-
|
|
3
|
-
## Send Message (non-interactive)
|
|
4
|
-
|
|
5
|
-
```
|
|
6
|
-
icqq friend send <uid> <message> # Send private message
|
|
7
|
-
icqq group send <gid> <message> # Send group message
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
**IMPORTANT**: Always use `icqq friend send` / `icqq group send` for agent operations (non-interactive). The `icqq friend chat` / `icqq group chat` commands enter interactive mode that the agent cannot operate.
|
|
11
|
-
|
|
12
|
-
## CQ Code Syntax
|
|
13
|
-
|
|
14
|
-
Messages support inline CQ codes for rich content:
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
[face:178] # QQ face emoji (id 0~348)
|
|
18
|
-
[image:/path/to/pic.jpg] # Image (local path or URL)
|
|
19
|
-
[at:12345] # @ a user
|
|
20
|
-
[at:all] # @ everyone
|
|
21
|
-
[dice] # Dice
|
|
22
|
-
[rps] # Rock-paper-scissors
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Mixed example: `icqq send group 67890 "你好[face:178]看看[image:/tmp/pic.jpg]"`
|
|
26
|
-
|
|
27
|
-
## Recall
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
icqq recall <message_id>
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Message Operations
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
icqq msg get <message_id> # View message details
|
|
37
|
-
icqq msg mark-read <message_id> # Mark message as read
|
|
38
|
-
icqq forward get <message_id> # View forwarded message content
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
## Chat History
|
|
42
|
-
|
|
43
|
-
```
|
|
44
|
-
icqq friend chat history <uid> [-c count] # Private chat history (default 20)
|
|
45
|
-
icqq group chat history <gid> [-c count] # Group chat history (default 20)
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
## Interactive Chat (human only)
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
icqq friend chat <uid> # Enter private chat mode
|
|
52
|
-
icqq group chat <gid> # Enter group chat mode
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## Examples
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
icqq friend send 12345 "你好"
|
|
59
|
-
icqq group send 67890 "大家好[face:21]"
|
|
60
|
-
icqq friend send 12345 "[image:https://example.com/pic.jpg]看这个"
|
|
61
|
-
icqq friend chat history 12345 -c 50
|
|
62
|
-
icqq group chat history 67890
|
|
63
|
-
icqq recall abc123
|
|
64
|
-
```
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# Friend & Group Requests
|
|
2
|
-
|
|
3
|
-
## View Pending Requests
|
|
4
|
-
|
|
5
|
-
```
|
|
6
|
-
icqq requests # Show all pending friend/group requests with flags
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
## Handle Requests
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
icqq request accept <flag> # Accept friend request
|
|
13
|
-
icqq request accept <flag> -g # Accept group request
|
|
14
|
-
icqq request reject <flag> # Reject friend request
|
|
15
|
-
icqq request reject <flag> -g # Reject group request
|
|
16
|
-
icqq request reject <flag> -g -r "理由" # Reject with reason
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
The `<flag>` value is shown in `icqq requests` output.
|
|
20
|
-
|
|
21
|
-
## Examples
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
icqq requests
|
|
25
|
-
icqq request accept abc123
|
|
26
|
-
icqq request reject def456 -g -r "群已满"
|
|
27
|
-
```
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# Settings
|
|
2
|
-
|
|
3
|
-
## Personal Settings
|
|
4
|
-
|
|
5
|
-
```
|
|
6
|
-
icqq set nickname <name> # Set nickname
|
|
7
|
-
icqq set gender <0|1|2> # 0=unknown, 1=male, 2=female
|
|
8
|
-
icqq set birthday <YYYYMMDD> # Set birthday
|
|
9
|
-
icqq set signature <text> # Set signature
|
|
10
|
-
icqq set description <text> # Set description
|
|
11
|
-
icqq set avatar <file> # Set avatar (image file path)
|
|
12
|
-
icqq set online-status <code> # 11=online, 31=away, 41=invisible, 50=busy, 60=Q-me, 70=DND
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Group Settings
|
|
16
|
-
|
|
17
|
-
```
|
|
18
|
-
icqq group set name <gid> <name> # Set group name
|
|
19
|
-
icqq group set avatar <gid> <file> # Set group avatar
|
|
20
|
-
icqq group set card <gid> <uid> <card> # Set member card/nickname
|
|
21
|
-
icqq group set title <gid> <uid> <title> # Set member special title
|
|
22
|
-
icqq group set admin <gid> <uid> # Set admin
|
|
23
|
-
icqq group set admin <gid> <uid> -r # Remove admin
|
|
24
|
-
icqq group set remark <gid> <remark> # Set group remark
|
|
25
|
-
icqq group set anonymous <gid> # Toggle anonymous
|
|
26
|
-
icqq group set join-type <gid> <type> # Set join method
|
|
27
|
-
icqq group set rate-limit <gid> <limit> # Set message rate limit
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## Examples
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
icqq set nickname "新昵称"
|
|
34
|
-
icqq set signature "今天天气不错"
|
|
35
|
-
icqq set online-status 50
|
|
36
|
-
icqq group set name 67890 "新群名"
|
|
37
|
-
icqq group set card 67890 12345 "管理员小王"
|
|
38
|
-
```
|