mioku-plugin-chat 3.0.1 → 3.0.2

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 (2) hide show
  1. package/core/base.ts +1 -1
  2. package/package.json +4 -4
package/core/base.ts CHANGED
@@ -404,7 +404,7 @@ export async function sendMessage(
404
404
  // 有 @ 用户时,构建消息保持原始位置
405
405
  // 先将原始行按 @ 标记分割,然后重新构建
406
406
  let remaining = line;
407
- const atPattern = /\[at: \d+\]/g;
407
+ const atPattern = /\[at: ?(\d+)\]/g;
408
408
 
409
409
  let lastIndex = 0;
410
410
  let match;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mioku-plugin-chat",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "AI 智能聊天插件",
5
5
  "main": "index.ts",
6
6
  "type": "module",
@@ -54,10 +54,10 @@
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/bun": "^1.3.14",
57
- "mioku": "workspace:*"
57
+ "mioku": "workspace:*",
58
+ "mioku-service-audio": "workspace:*"
58
59
  },
59
60
  "peerDependencies": {
60
- "mioku": "^1.0.0",
61
- "mioku-service-audio": "workspace:*"
61
+ "mioku": "^1.0.0"
62
62
  }
63
63
  }