@dcrays/dcgchat-test 0.2.18 → 0.2.19
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/index.ts +2 -2
- package/package.json +1 -1
- package/src/bot.ts +4 -4
package/index.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { OpenClawPluginApi } from "openclaw/plugin-sdk";
|
|
|
2
2
|
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk";
|
|
3
3
|
import { dcgchatPlugin } from "./src/channel.js";
|
|
4
4
|
import { setDcgchatRuntime, setWorkspaceDir } from "./src/runtime.js";
|
|
5
|
-
|
|
5
|
+
import { monitoringToolMessage } from "./src/tool.js";
|
|
6
6
|
|
|
7
7
|
const plugin = {
|
|
8
8
|
id: "dcgchat-test",
|
|
@@ -11,7 +11,7 @@ const plugin = {
|
|
|
11
11
|
configSchema: emptyPluginConfigSchema(),
|
|
12
12
|
register(api: OpenClawPluginApi) {
|
|
13
13
|
setDcgchatRuntime(api.runtime);
|
|
14
|
-
|
|
14
|
+
monitoringToolMessage(api);
|
|
15
15
|
api.registerChannel({ plugin: dcgchatPlugin });
|
|
16
16
|
api.registerTool((ctx) => {
|
|
17
17
|
const workspaceDir = ctx.workspaceDir;
|
package/package.json
CHANGED
package/src/bot.ts
CHANGED
|
@@ -316,7 +316,7 @@ export async function handleDcgchatMessage(params: {
|
|
|
316
316
|
|
|
317
317
|
const route = core.channel.routing.resolveAgentRoute({
|
|
318
318
|
cfg,
|
|
319
|
-
channel: "dcgchat",
|
|
319
|
+
channel: "dcgchat-test",
|
|
320
320
|
accountId: account.accountId,
|
|
321
321
|
peer: { kind: "direct", id: userId },
|
|
322
322
|
});
|
|
@@ -353,13 +353,13 @@ export async function handleDcgchatMessage(params: {
|
|
|
353
353
|
ChatType: "direct",
|
|
354
354
|
SenderName: userId,
|
|
355
355
|
SenderId: userId,
|
|
356
|
-
Provider: "dcgchat" as const,
|
|
357
|
-
Surface: "dcgchat" as const,
|
|
356
|
+
Provider: "dcgchat-test" as const,
|
|
357
|
+
Surface: "dcgchat-test" as const,
|
|
358
358
|
MessageSid: msg.content.message_id,
|
|
359
359
|
Timestamp: Date.now(),
|
|
360
360
|
WasMentioned: true,
|
|
361
361
|
CommandAuthorized: true,
|
|
362
|
-
OriginatingChannel: "dcgchat" as const,
|
|
362
|
+
OriginatingChannel: "dcgchat-test" as const,
|
|
363
363
|
OriginatingTo: `user:${userId}`,
|
|
364
364
|
...mediaPayload,
|
|
365
365
|
});
|