@dcrays/dcgchat 0.4.26 → 0.4.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcrays/dcgchat",
3
- "version": "0.4.26",
3
+ "version": "0.4.27",
4
4
  "type": "module",
5
5
  "description": "OpenClaw channel plugin for 书灵墨宝 (WebSocket)",
6
6
  "main": "index.ts",
@@ -137,7 +137,7 @@ function patchCronDeliveryInParams(
137
137
  if (agentId) d.accountId = agentId
138
138
  if (announceNoChannel) {
139
139
  d.bestEffort = true
140
- d.channel = 'dcgchat-test'
140
+ d.channel = "dcgchat"
141
141
  }
142
142
  }
143
143
 
@@ -191,7 +191,7 @@ export function cronToolCall(event: { toolName: any; params: any; toolCallId: an
191
191
  if (params.command.indexOf('cron create') > -1 || params.command.indexOf('cron add') > -1) {
192
192
  const newParams = JSON.parse(JSON.stringify(params)) as Record<string, unknown>
193
193
  newParams.command =
194
- params.command.replace('--json', '') + ` --session-key ${sk} --channel ${'dcgchat-test'} --to dcg-cron:${sk} --json`
194
+ params.command.replace('--json', '') + ` --session-key ${sk} --channel ${"dcgchat"} --to dcg-cron:${sk} --json`
195
195
  return { params: newParams }
196
196
  } else {
197
197
  return undefined