@cloud411716/fancy-webnovel 0.1.30 → 0.1.32

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": "@cloud411716/fancy-webnovel",
3
- "version": "0.1.30",
3
+ "version": "0.1.32",
4
4
  "type": "module",
5
5
  "main": "plugins/fancy-bootstrap/index.js",
6
6
  "exports": {
@@ -301,7 +301,7 @@ async function applyScan(ctx) {
301
301
  // 发消息给 LLM,让它读取原始文件并生成分析
302
302
  const analysisPrompt =
303
303
  `## 扫榜数据分析任务\n\n` +
304
- `平台:${PLATFORM_CN[platform] || platform}(${length === 'long' ? '长篇' : '短篇'})\n` +
304
+ `平台:${platformLabel(platform)}(${length === 'long' ? '长篇' : '短篇'})\n` +
305
305
  `时间:${receipt.date || ''}\n\n` +
306
306
  `已生成的文件:\n${fileList}\n\n` +
307
307
  `请执行以下步骤:\n` +
@@ -426,11 +426,6 @@ async function main() {
426
426
  console.error('=== 浏览器采集指令 END ===\n');
427
427
  }
428
428
 
429
- // 生成扫榜报告
430
- const mdFiles = scanFiles.filter(f => f.endsWith('.md') && !f.includes('扫榜报告') && !f.includes('topic_decision'));
431
- const reportFile = generateReport(platform, length, mdFiles, scanDir);
432
- appendTopicDecision(platform, length, reportFile, scanDir);
433
-
434
429
  // Step 6: 收集原始数据
435
430
  const rawData = {};
436
431
  for (const f of scanFiles) {
@@ -449,10 +444,9 @@ async function main() {
449
444
  length,
450
445
  date: today,
451
446
  scan_files: scanFiles,
452
- report_file: reportFile,
453
447
  topic_decision: join(scanDir, `topic_decision_${today}.md`),
454
448
  raw_data: rawData,
455
- summary: `${PLATFORM_CN[platform]}(${length})采集完成,共 ${scanFiles.length} 个文件`,
449
+ summary: `${PLATFORM_CN[platform]}(${length === 'long' ? '长篇' : '短篇'})采集完成,共 ${scanFiles.length} 个文件`,
456
450
  };
457
451
 
458
452
  console.log(JSON.stringify(receipt));