@cloud411716/fancy-webnovel 4.11.1 → 4.11.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.
@@ -144,6 +144,8 @@ FANCY_DOUYIN_SUBAGENTS=0 # 关闭子 Agent,回退单 Agent 串行
144
144
 
145
145
  子 Agent 不操作 Chrome,不修改 `crawled.json`,不运行 `import.js`,也不直接写素材数据库;数据库导入和采集状态只由父进程串行处理,避免并发覆盖。
146
146
 
147
+ 子 Agent 是独立的新会话,不继承父 Agent 当前对话。因此 `.tmp` 临时文件规则和“不要删除测试文件/不要执行 rm”的约束会直接写进子 Agent 任务提示,而不是依赖父对话。
148
+
147
149
  ## 素材格式
148
150
 
149
151
  每篇作品的 LLM 输出写到:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud411716/fancy-webnovel",
3
- "version": "4.11.1",
3
+ "version": "4.11.2",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -692,6 +692,10 @@ function subagentTaskPrompt(job, root, materialTools) {
692
692
  '你是 fancy-douyin 的分析子 Agent,只处理下面这一篇作品。',
693
693
  '不要扫描账号,不要启动或操作 Chrome,不要修改 crawled.json,不要运行 import.js 或直接写素材数据库。',
694
694
  '只读取给定文件,按提示词提取素材,写入目标 JSONL,运行 validate.js 后结束。',
695
+ '如果需要创建测试文件,放在当前项目的 `.tmp` 目录下(绝对路径:`' + path.join(root, '.tmp') + '`),并且测试后不需要删除测试文件。',
696
+ '禁止执行 rm、rmdir、find -delete、git clean 等删除命令,也不要删除已有文件。',
697
+ '',
698
+ '以下是本作品的完整分析提示词,必须逐条遵守(包括提取规则、字段要求、清单逐条规则、同风格扩写和校验命令):',
695
699
  '',
696
700
  analysisPromptForJob(job, root, materialTools),
697
701
  ].join('\n');