dsh-qq-tools 0.8.2 → 0.9.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/locale/en.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "dsh-qq-tools",
4
- "description": "QQ group/private chat tools for DSH: list groups, read history, send messages and faces, manage SnowLuma favorites, private chat, pokes, and target-session selection."
4
+ "description": "QQ group/private chat tools for DSH: groups, history, messaging, faces and SnowLuma favorites, private chat, pokes, avatar changes, friend management, QQ Space posts, and target-session selection."
5
5
  }
6
6
  }
package/locale/zh.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "dsh-qq-tools",
4
- "description": "给大肥鱼会话用的 QQ 群/私聊工具:列群、看群聊天记录、发群消息、发表情、收藏表情(SnowLuma 收藏夹)、好友/私聊记录、发私聊消息、私聊唤醒、群成员、戳一戳感知/戳回去。"
4
+ "description": "给大肥鱼会话用的 QQ 群/私聊工具:列群、看群聊天记录、发群消息、发表情、收藏表情(SnowLuma 收藏夹)、好友/私聊记录、发私聊消息、私聊唤醒、群成员、戳一戳感知/戳回去、更改头像、好友管理、QQ 空间说说。"
5
5
  }
6
6
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-qq-tools",
3
- "version": "0.8.2",
4
- "description": "给大肥鱼会话用的 QQ 群/私聊工具:列群、看群记录、发群消息、发表情、收藏表情(SnowLuma 收藏夹)、好友/私聊记录、发私聊消息、私聊唤醒、群成员、戳一戳感知/戳回去、挂载会话选择。8 个工具加 1 个设置组件,可在插件页逐个开关。",
3
+ "version": "0.9.0",
4
+ "description": "给大肥鱼会话用的 QQ 群/私聊工具:列群、看群记录、发群消息、发表情、收藏表情(SnowLuma 收藏夹)、好友/私聊记录、发私聊消息、私聊唤醒、群成员、戳一戳感知/戳回去、更改头像、好友管理(资料/备注/分组/删好友/名片赞/好友申请)、QQ 空间说说(列表/详情/发表/评论/点赞/权限)、挂载会话选择。11 个工具组加 1 个设置组件,可在插件页逐个开关。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "license": "MIT",
@@ -34,6 +34,9 @@
34
34
  "engines": {
35
35
  "node": ">=22"
36
36
  },
37
+ "scripts": {
38
+ "test": "node test/smoke.mjs"
39
+ },
37
40
  "exports": {
38
41
  ".": "./lib/index.js",
39
42
  "./client": "./lib/client.js",
@@ -61,6 +64,15 @@
61
64
  "./tools/qq-send-poke": "./tools/qq-send-poke/index.js",
62
65
  "./tools/qq-send-poke/locale/en.json": "./tools/qq-send-poke/locale/en.json",
63
66
  "./tools/qq-send-poke/locale/zh.json": "./tools/qq-send-poke/locale/zh.json",
67
+ "./tools/qq-set-avatar": "./tools/qq-set-avatar/index.js",
68
+ "./tools/qq-set-avatar/locale/en.json": "./tools/qq-set-avatar/locale/en.json",
69
+ "./tools/qq-set-avatar/locale/zh.json": "./tools/qq-set-avatar/locale/zh.json",
70
+ "./tools/qq-friend-management": "./tools/qq-friend-management/index.js",
71
+ "./tools/qq-friend-management/locale/en.json": "./tools/qq-friend-management/locale/en.json",
72
+ "./tools/qq-friend-management/locale/zh.json": "./tools/qq-friend-management/locale/zh.json",
73
+ "./tools/qq-qzone": "./tools/qq-qzone/index.js",
74
+ "./tools/qq-qzone/locale/en.json": "./tools/qq-qzone/locale/en.json",
75
+ "./tools/qq-qzone/locale/zh.json": "./tools/qq-qzone/locale/zh.json",
64
76
  "./locale/en.json": "./locale/en.json",
65
77
  "./locale/zh.json": "./locale/zh.json",
66
78
  "./package.json": "./package.json"
@@ -0,0 +1,28 @@
1
+ import {
2
+ makeDeleteFriendTool,
3
+ makeGetFriendInfoTool,
4
+ makeHandleFriendRequestTool,
5
+ makeListFriendCategoriesTool,
6
+ makeListFriendRequestsTool,
7
+ makeSendLikeTool,
8
+ makeUpdateFriendTool,
9
+ mountOneTool,
10
+ startFriendRequestWatcher,
11
+ } from '../../lib/shared.js'
12
+
13
+ export const name = 'qq-tools-friend-management'
14
+ export const inject = ['agents', 'timer', 'tools']
15
+
16
+ export function apply(ctx) {
17
+ const tools = [
18
+ mountOneTool(ctx, makeGetFriendInfoTool()),
19
+ mountOneTool(ctx, makeListFriendCategoriesTool()),
20
+ mountOneTool(ctx, makeUpdateFriendTool()),
21
+ mountOneTool(ctx, makeDeleteFriendTool()),
22
+ mountOneTool(ctx, makeSendLikeTool()),
23
+ mountOneTool(ctx, makeListFriendRequestsTool()),
24
+ mountOneTool(ctx, makeHandleFriendRequestTool()),
25
+ ]
26
+ startFriendRequestWatcher(ctx)
27
+ return { tools }
28
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Friend management",
4
+ "description": "Friend profiles, remarks, categories, deletion, profile likes, and friend request review/handling."
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "好友管理",
4
+ "description": "好友资料、备注、分组、删好友、名片赞,以及好友申请的查看和处理。"
5
+ }
6
+ }
@@ -0,0 +1,22 @@
1
+ import {
2
+ admitImagesFor,
3
+ makeGetQzonePostTool,
4
+ makeListQzoneTool,
5
+ makeManageQzoneTool,
6
+ makeSendQzonePostTool,
7
+ mountOneTool,
8
+ } from '../../lib/shared.js'
9
+
10
+ export const name = 'qq-tools-qzone'
11
+ export const inject = ['agents', 'timer', 'tools', 'attachments']
12
+
13
+ export function apply(ctx) {
14
+ const admitImages = admitImagesFor(ctx)
15
+ const tools = [
16
+ mountOneTool(ctx, makeListQzoneTool(admitImages)),
17
+ mountOneTool(ctx, makeGetQzonePostTool(admitImages)),
18
+ mountOneTool(ctx, makeSendQzonePostTool()),
19
+ mountOneTool(ctx, makeManageQzoneTool()),
20
+ ]
21
+ return { tools }
22
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Qzone",
4
+ "description": "QQ Space posts: timelines and friend feeds, post details and comments, publishing, likes, comments, deletion, visibility and bans."
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "QQ空间",
4
+ "description": "QQ 空间说说:列表和好友动态、详情评论、发说说、点赞/评论/删除/改权限/拉黑。"
5
+ }
6
+ }
@@ -0,0 +1,8 @@
1
+ import { makeSetAvatarTool, mountOneTool } from '../../lib/shared.js'
2
+
3
+ export const name = 'qq-tools-set-avatar'
4
+ export const inject = ['agents', 'timer', 'tools']
5
+
6
+ export function apply(ctx) {
7
+ return mountOneTool(ctx, makeSetAvatarTool())
8
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Set avatar",
4
+ "description": "Change your QQ avatar from an image URL, a local file, or an image in chat."
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "更改头像",
4
+ "description": "改自己的 QQ 头像:图片链接、本机文件,或从聊天记录里取图。"
5
+ }
6
+ }