@waterwx/dsh-novel-forge 1.2.1-alpha → 1.3.0-alpha

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 (52) hide show
  1. package/README.md +4 -5
  2. package/lib/client.js +2470 -858
  3. package/lib/index.js +2155 -388
  4. package/lib/types/action-guard.d.ts +1 -1
  5. package/lib/types/assets.d.ts +7 -7
  6. package/lib/types/client/api.d.ts +31 -1
  7. package/lib/types/client/llmLive.d.ts +12 -14
  8. package/lib/types/client/panel/LiveFeedLog.d.ts +5 -0
  9. package/lib/types/client/panel/ModelManager.d.ts +2 -2
  10. package/lib/types/client/panel/PromptSlotsView.d.ts +11 -0
  11. package/lib/types/client/panel/TensionView.d.ts +14 -0
  12. package/lib/types/client/panel/TimelineView.d.ts +14 -0
  13. package/lib/types/engine.d.ts +40 -2
  14. package/lib/types/index.d.ts +4 -0
  15. package/lib/types/llm-live.d.ts +65 -34
  16. package/lib/types/llm-retry.d.ts +38 -0
  17. package/lib/types/market-radar-sources.d.ts +1 -1
  18. package/lib/types/prompt-slots.d.ts +57 -0
  19. package/lib/types/prompting.d.ts +2 -2
  20. package/lib/types/protocol.d.ts +283 -3
  21. package/lib/types/snapshots.d.ts +46 -0
  22. package/lib/types/stage-contract.d.ts +1 -1
  23. package/lib/types/tension.d.ts +65 -0
  24. package/lib/types/timeline.d.ts +37 -0
  25. package/package.json +3 -2
  26. package/src/action-guard.ts +1 -1
  27. package/src/assets.ts +300 -268
  28. package/src/assistant.ts +45 -29
  29. package/src/client/api.ts +76 -2
  30. package/src/client/llmLive.ts +26 -16
  31. package/src/client/panel/AssetsTab.tsx +2 -2
  32. package/src/client/panel/LiveFeedLog.tsx +204 -67
  33. package/src/client/panel/ModelManager.tsx +2 -2
  34. package/src/client/panel/NovelPanel.tsx +127 -13
  35. package/src/client/panel/PromptSlotsView.tsx +97 -0
  36. package/src/client/panel/SettingsView.tsx +35 -0
  37. package/src/client/panel/TensionView.tsx +196 -0
  38. package/src/client/panel/TimelineView.tsx +192 -0
  39. package/src/engine.ts +549 -108
  40. package/src/index.ts +12 -0
  41. package/src/llm-live.ts +260 -68
  42. package/src/llm-retry.ts +77 -0
  43. package/src/market-radar-sources.ts +173 -173
  44. package/src/prompt-slots.ts +125 -0
  45. package/src/prompting.ts +8 -8
  46. package/src/protocol.ts +314 -3
  47. package/src/routes.ts +325 -6
  48. package/src/run.ts +4 -0
  49. package/src/snapshots.ts +174 -0
  50. package/src/stage-contract.ts +189 -189
  51. package/src/tension.ts +240 -0
  52. package/src/timeline.ts +159 -0
package/README.md CHANGED
@@ -161,7 +161,7 @@ npm 分发的是预构建产物,无需任何构建授权。
161
161
 
162
162
  ## 影响与限制 / Impact & Limitations
163
163
 
164
- - **LLM 额度消耗**:生成/审稿/润色/质检/提炼/复盘等所有 AI 操作都调用 LLM(默认 `deepseek-official / deepseek-v4-flash`)。参考:一章 3000-4000 字正文 ≈ 1-2 万 token(含推理);审稿约 2000-3000 token;全书质检与角色提炼更贵(数万 token)。建议分小批执行。
164
+ - **LLM 额度消耗**:生成/审稿/润色/质检/提炼/复盘等所有 AI 操作都调用 LLM(默认 `deepseek-official / deepseek-flash`)。参考:一章 3000-4000 字正文 ≈ 1-2 万 token(含推理);审稿约 2000-3000 token;全书质检与角色提炼更贵(数万 token)。建议分小批执行。
165
165
  - **写操作守卫**:AI 编辑 Agent 只在作者**明确要求**时执行写操作(生成/修订/删除章节、改设定等);只提问不会误触发。
166
166
  - **并发安全**:计划/生成/审稿落盘前会自动合并磁盘上的最新设定(道藏/角色库/剧情线/知情度),多窗口同时操作互不覆盖。
167
167
  - **纯文本定位**:本插件不负责图片/视频生成;设定均为文字数据(角色卡仅含定位/性格/目标/关系/成长线/知情度等字段)。
@@ -175,14 +175,12 @@ npm 分发的是预构建产物,无需任何构建授权。
175
175
  ```
176
176
  src/ 插件源码(宿主半 + 浏览器半)
177
177
  lib/ 构建产物(lib/index.js 宿主 / lib/client.js 浏览器)
178
- scripts/ 工具脚本
178
+ scripts/ 工具脚本(含 check-third-party.mjs 来源卫生门禁)
179
179
  package.json 包定义(dsh.bundle.patch + dsh.client 声明)
180
180
  cordis.patch.yml profile 挂载补丁
181
181
  tsdown.config.ts 双面打包配置
182
182
  ```
183
183
 
184
- ---
185
-
186
184
  ## English
187
185
 
188
186
  # AI Novel Forge
@@ -232,6 +230,7 @@ Or link a local checkout and restart dsh web; the "Novel Forge" entry appears in
232
230
 
233
231
  ## Limitations
234
232
 
235
- - All AI operations consume LLM quota (default `deepseek-official / deepseek-v4-flash`).
233
+ - All AI operations consume LLM quota (default `deepseek-official / deepseek-flash`).
236
234
  - Chapter quality depends on outline completeness; batch generation is serial.
237
235
  - The plugin writes text only — no image/video generation.
236
+