dsh-qq-tools 0.10.1 → 0.10.2

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.
@@ -1,10 +1,13 @@
1
- import { makeSendTool, mountOneTool, startMentionPolling, startObservation } from '../../lib/shared.js'
2
-
3
- export const name = 'qq-tools-send-group-message'
4
- export const inject = ['agents', 'timer', 'tools']
5
-
6
- export function apply(ctx) {
7
- const mounted = mountOneTool(ctx, makeSendTool(startObservation))
8
- startMentionPolling(ctx)
9
- return mounted
10
- }
1
+ import { makeSendTool } from '../../lib/tools/groups.js'
2
+ import { mountOneTool } from '../../lib/session.js'
3
+ import { startMentionPolling } from '../../lib/watchers/mentions.js'
4
+ import { startObservation } from '../../lib/observation.js'
5
+
6
+ export const name = 'qq-tools-send-group-message'
7
+ export const inject = ['agents', 'timer', 'tools']
8
+
9
+ export function apply(ctx) {
10
+ const mounted = mountOneTool(ctx, makeSendTool(startObservation))
11
+ startMentionPolling(ctx)
12
+ return mounted
13
+ }
@@ -1,10 +1,13 @@
1
- import { makePokeTool, mountOneTool, startObservation, startPokeWatcher } from '../../lib/shared.js'
2
-
3
- export const name = 'qq-tools-send-poke'
4
- export const inject = ['agents', 'timer', 'tools']
5
-
6
- export function apply(ctx) {
7
- const mounted = mountOneTool(ctx, makePokeTool(startObservation))
8
- startPokeWatcher(ctx)
9
- return mounted
10
- }
1
+ import { makePokeTool } from '../../lib/tools/poke.js'
2
+ import { mountOneTool } from '../../lib/session.js'
3
+ import { startObservation } from '../../lib/observation.js'
4
+ import { startPokeWatcher } from '../../lib/watchers/poke.js'
5
+
6
+ export const name = 'qq-tools-send-poke'
7
+ export const inject = ['agents', 'timer', 'tools']
8
+
9
+ export function apply(ctx) {
10
+ const mounted = mountOneTool(ctx, makePokeTool(startObservation))
11
+ startPokeWatcher(ctx)
12
+ return mounted
13
+ }
@@ -1,8 +1,9 @@
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
- }
1
+ import { makeSetAvatarTool } from '../../lib/tools/avatar.js'
2
+ import { mountOneTool } from '../../lib/session.js'
3
+
4
+ export const name = 'qq-tools-set-avatar'
5
+ export const inject = ['agents', 'timer', 'tools']
6
+
7
+ export function apply(ctx) {
8
+ return mountOneTool(ctx, makeSetAvatarTool())
9
+ }