@dcrays/dcgchat-test 0.3.6 → 0.3.8

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-test",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "type": "module",
5
5
  "description": "OpenClaw channel plugin for 书灵墨宝 (WebSocket)",
6
6
  "main": "index.ts",
package/src/bot.ts CHANGED
@@ -424,7 +424,7 @@ export async function handleDcgchatMessage(msg: InboundMessage, accountId: strin
424
424
  }
425
425
  }
426
426
  }
427
- safeSendFinal('end')
427
+ // safeSendFinal('end')
428
428
  clearSentMediaKeys(msg.content.message_id)
429
429
 
430
430
  // Record session metadata
package/src/cron.ts CHANGED
@@ -46,7 +46,7 @@ function msgParamsToCtx(p: IMsgParams): IMsgParams | null {
46
46
  return p
47
47
  }
48
48
 
49
- const CRON_UPLOAD_DEBOUNCE_MS = 30_000
49
+ const CRON_UPLOAD_DEBOUNCE_MS = 6600
50
50
 
51
51
  /** 待合并的上传上下文(短时间内多次调用只保留最后一次) */
52
52
  let pendingCronUploadCtx: IMsgParams | null = null
@@ -178,6 +178,8 @@ export function cronToolCall(event: { toolName: any; params: any; toolCallId: an
178
178
  newParams.command =
179
179
  params.command.replace('--json', '') + ` --session-key ${sk} --channel ${"dcgchat-test"} --to ${sk} --json`
180
180
  return { params: newParams }
181
+ } else {
182
+ return undefined
181
183
  }
182
184
  }
183
185