@cloud411716/fancy-webnovel 0.1.29 → 0.1.31

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.29",
3
+ "version": "0.1.31",
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` +
@@ -312,10 +312,10 @@ async function applyScan(ctx) {
312
312
  `5. 将完整分析报告追加写入:${topicFile}\n\n` +
313
313
  `报告要求:\n- 客观分析数据,不臆测\n- 选题建议要有差异化竞争力\n- 报告语言:中文`;
314
314
 
315
- session.append('user/message', {
315
+ invocation.agent.followup({
316
316
  content: [{ type: 'text', text: analysisPrompt }],
317
317
  source: { kind: 'user' }
318
- }, { surfaceOp: 'append' });
318
+ });
319
319
 
320
320
  return { kind: 'success', text: '' };
321
321
  }