@dcrays/dcgchat-test 0.2.25 → 0.2.26

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.
Files changed (3) hide show
  1. package/index.ts +1 -1
  2. package/package.json +1 -1
  3. package/src/bot.ts +5 -5
package/index.ts CHANGED
@@ -5,7 +5,7 @@ import { setDcgchatRuntime, setWorkspaceDir } from "./src/runtime.js";
5
5
  import { monitoringToolMessage } from "./src/tool.js";
6
6
 
7
7
  const plugin = {
8
- id: "dcgchat",
8
+ id: "dcgchat-test",
9
9
  name: "书灵墨宝",
10
10
  description: "连接 OpenClaw 与 书灵墨宝 产品(WebSocket)",
11
11
  configSchema: emptyPluginConfigSchema(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcrays/dcgchat-test",
3
- "version": "0.2.25",
3
+ "version": "0.2.26",
4
4
  "type": "module",
5
5
  "description": "OpenClaw channel plugin for 书灵墨宝 (WebSocket)",
6
6
  "main": "index.ts",
package/src/bot.ts CHANGED
@@ -403,7 +403,7 @@ export async function handleDcgchatMessage(params: {
403
403
 
404
404
  const route = core.channel.routing.resolveAgentRoute({
405
405
  cfg,
406
- channel: "dcgchat",
406
+ channel: "dcgchat-test",
407
407
  accountId: account.accountId,
408
408
  peer: { kind: "direct", id: conversationId },
409
409
  });
@@ -471,13 +471,13 @@ export async function handleDcgchatMessage(params: {
471
471
  ChatType: "direct",
472
472
  SenderName: agentDisplayName,
473
473
  SenderId: userId,
474
- Provider: "dcgchat" as const,
475
- Surface: "dcgchat" as const,
474
+ Provider: "dcgchat-test" as const,
475
+ Surface: "dcgchat-test" as const,
476
476
  MessageSid: msg.content.message_id,
477
477
  Timestamp: Date.now(),
478
478
  WasMentioned: true,
479
479
  CommandAuthorized: true,
480
- OriginatingChannel: "dcgchat" as const,
480
+ OriginatingChannel: "dcgchat-test" as const,
481
481
  OriginatingTo: `user:${userId}`,
482
482
  ...mediaPayload,
483
483
  });
@@ -491,7 +491,7 @@ export async function handleDcgchatMessage(params: {
491
491
  const prefixContext = createReplyPrefixContext({
492
492
  cfg,
493
493
  agentId: effectiveAgentId ?? "",
494
- channel: "dcgchat",
494
+ channel: "dcgchat-test",
495
495
  accountId: account.accountId,
496
496
  });
497
497