@efengx/openclaw-channel-dragon 0.5.38 → 0.5.40

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.
@@ -164,9 +164,10 @@ export class ChannelComponent {
164
164
  }
165
165
  deliverToOpenClaw = async (content, sessionId = 'default', modelId, attachments, messageId) => {
166
166
  const replyMsgId = messageId ? `dragon_msg_${messageId}` : `dragon_msg_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`;
167
- if (messageId && this.processedMessageIds.has(messageId))
167
+ const isNewCmd = content?.trim() === '/new' || messageId === 'cmd_new';
168
+ if (!isNewCmd && messageId && this.processedMessageIds.has(messageId))
168
169
  return;
169
- if (messageId) {
170
+ if (!isNewCmd && messageId) {
170
171
  this.processedMessageIds.add(messageId);
171
172
  if (this.processedMessageIds.size > 1000) {
172
173
  const first = this.processedMessageIds.values().next().value;
@@ -203,6 +204,7 @@ export class ChannelComponent {
203
204
  Timestamp: Date.now(),
204
205
  Model: modelId || "google/gemini-3.5-flash",
205
206
  Attachments: attachments,
207
+ CommandAuthorized: true,
206
208
  },
207
209
  cfg,
208
210
  dispatcherOptions: {
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const dragonChannelPluginVersion = "0.5.38";
1
+ export declare const dragonChannelPluginVersion = "0.5.40";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const dragonChannelPluginVersion = "0.5.38";
1
+ export const dragonChannelPluginVersion = "0.5.40";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@efengx/openclaw-channel-dragon",
3
- "version": "0.5.38",
3
+ "version": "0.5.40",
4
4
  "description": "Dragon workbench channel for OpenClaw",
5
5
  "author": "feng xiang <ofengx@gmail.com>",
6
6
  "type": "module",