koishi-plugin-group-analysis-mx 1.4.1 → 1.4.3

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/lib/config.js CHANGED
@@ -241,7 +241,7 @@ exports.Config = koishi_1.Schema.intersect([
241
241
  用户关注昵称:{nicknames}
242
242
  目标时间范围:{timeRange}
243
243
 
244
- 要求:生成内容时需优先围绕上述关键词、话题、昵称与时间范围;若信息不足,请在话题描述中明确指出缺口。
244
+ 要求:生成内容时需优先围绕上述关键词、话题、昵称与时间范围。
245
245
 
246
246
  群聊记录:
247
247
  {messages}
@@ -962,6 +962,17 @@ class AnalysisService extends koishi_1.Service {
962
962
  : 'N/A';
963
963
  // Generate chart using the renderer service
964
964
  const activeHoursChartHtml = (0, utils_1.generateActiveHoursChart)(overallActiveHours);
965
+ // 清理话题描述里 LLM 输出的"缺口说明/若信息不足"等元信息,避免出现在报告正文
966
+ if (Array.isArray(topics)) {
967
+ topics.forEach((t) => {
968
+ if (t && typeof t.detail === 'string') {
969
+ t.detail = t.detail
970
+ .replace(/缺口说明[::][\s\S]*$/g, '')
971
+ .replace(/若信息不足[\s\S]*$/g, '')
972
+ .trim();
973
+ }
974
+ });
975
+ }
965
976
  const groupName = await this.resolveGroupName(selfId, target);
966
977
  const result = {
967
978
  totalMessages: messages.length,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-group-analysis-mx",
3
3
  "description": "群聊分析插件 - 生成精美群聊统计报告,支持 AI 话题总结(独立版,不依赖 ChatLuna)",
4
- "version": "1.4.1",
4
+ "version": "1.4.3",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.mjs",
7
7
  "typings": "lib/index.d.ts",