@waterwx/dsh-novel-forge 1.10.1 → 2.0.1-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 (56) hide show
  1. package/README.md +8 -3
  2. package/assets/styles/guoman-2d-gufeng.webp +0 -0
  3. package/assets/styles/guoman-3d-tianyuan.webp +0 -0
  4. package/assets/styles/guoman-3d-xuanhuan.webp +0 -0
  5. package/assets/styles/hyperreal-3d.webp +0 -0
  6. package/assets/styles/sandiao-qban.webp +0 -0
  7. package/assets/styles/urban-lightreal-3d.webp +0 -0
  8. package/lib/client.js +3456 -2133
  9. package/lib/index.js +1975 -438
  10. package/lib/types/ai-scan.d.ts +36 -0
  11. package/lib/types/assets.d.ts +1 -1
  12. package/lib/types/client/api.d.ts +8 -1
  13. package/lib/types/client/index.d.ts +1 -1
  14. package/lib/types/client/panel/AuthorHome.d.ts +4 -2
  15. package/lib/types/client/panel/FlowGuide.d.ts +6 -5
  16. package/lib/types/client/panel/MangaRoleLibrary.d.ts +3 -1
  17. package/lib/types/client/panel/MangaWorkspace.d.ts +2 -5
  18. package/lib/types/client/panel/PropLibrary.d.ts +8 -0
  19. package/lib/types/client/panel/SceneLibrary.d.ts +3 -1
  20. package/lib/types/client/panel/SettingsView.d.ts +4 -2
  21. package/lib/types/engine.d.ts +50 -21
  22. package/lib/types/index.d.ts +2 -2
  23. package/lib/types/manga-genre-rules.d.ts +22 -0
  24. package/lib/types/novel-context.d.ts +80 -0
  25. package/lib/types/prompt-utils.d.ts +35 -0
  26. package/lib/types/protocol.d.ts +104 -12
  27. package/lib/types/review-policy.d.ts +97 -0
  28. package/lib/types/style-library.d.ts +3 -3
  29. package/package.json +21 -24
  30. package/src/ai-scan.ts +179 -0
  31. package/src/assets.ts +353 -9
  32. package/src/client/api.ts +11 -1
  33. package/src/client/index.ts +1 -1
  34. package/src/client/mount.tsx +1 -1
  35. package/src/client/panel/AdaptModeView.tsx +2 -2
  36. package/src/client/panel/AssistantTab.tsx +1 -1
  37. package/src/client/panel/AuthorHome.tsx +5 -3
  38. package/src/client/panel/FlowGuide.tsx +15 -14
  39. package/src/client/panel/MangaRoleLibrary.tsx +1002 -810
  40. package/src/client/panel/MangaWorkspace.tsx +715 -359
  41. package/src/client/panel/ModelManager.tsx +1 -1
  42. package/src/client/panel/NovelPanel.tsx +4620 -4655
  43. package/src/client/panel/PropLibrary.tsx +175 -0
  44. package/src/client/panel/SceneLibrary.tsx +453 -396
  45. package/src/client/panel/SettingsView.tsx +24 -30
  46. package/src/client/panel/StoryboardTab.tsx +6 -0
  47. package/src/client/panel/panel.module.css +165 -4
  48. package/src/engine.ts +796 -286
  49. package/src/index.ts +9 -7
  50. package/src/manga-genre-rules.ts +87 -0
  51. package/src/novel-context.ts +287 -0
  52. package/src/prompt-utils.ts +73 -0
  53. package/src/protocol.ts +2233 -2148
  54. package/src/review-policy.ts +161 -0
  55. package/src/routes.ts +3419 -3359
  56. package/src/style-library.ts +32 -26
package/README.md CHANGED
@@ -5,8 +5,12 @@
5
5
  你的专属 AI 小说写作插件:把一份大纲"编译"成一本完整的小说。
6
6
  Your personal AI novel-writing plugin for DSH: turn an outline into a complete novel.
7
7
 
8
- > **适配 DSH 版本 / Compatible DSH**:官方稳定版 `0.1.1-rc.2`。请使用正式/稳定版 DSH;**不兼容 DSH Alpha / 预览版**。
9
- > 本插件依赖 `@deepseek-ai/dsh-* ^0.1.0-rc.5`,以官方稳定版为准。
8
+ > **⚠️ 版本状态 / Version status(read this first)**
9
+ >
10
+ > - 本插件当前**唯一发布 / 更新线为 V2.0 ALPHA(`2.0.0-alpha.1`)**,适用于 **DSH ≥ 0.1.3-alpha.1**(依赖 DSH 提供的 `cosmokit`,不能在纯 Node 环境单独运行)。
11
+ > - **V1.0 RC(`1.10.1`)为最终稳定版,已停止更新**;需要稳定版请显式安装 `@waterwx/dsh-novel-forge@1.10.1`。
12
+ > - **安装前请确认你的 DSH 版本**:在 `0.1.3-alpha.1` 以前的 DSH 上安装 V2.0 ALPHA 会加载失败。
13
+ > - npm `latest` 现指向 V2.0 ALPHA:`npm i @waterwx/dsh-novel-forge` 会安装预发布版;想要最终稳定 RC 请用 `@1.10.1`。
10
14
 
11
15
  ---
12
16
 
@@ -53,6 +57,7 @@ Your personal AI novel-writing plugin for DSH: turn an outline into a complete n
53
57
  | **角色形象(🖼️)**:角色详情悬浮页=提示词分发中心——立绘/四视图/表情×N/细节 四类生图提示词(中文默认+英文标签折叠),一次提炼直接产出锚点+表情清单+精修提示词包,图集(立绘/四视图/表情/场景/细节)分类上传 | **Character visuals**: role detail modal as prompt hub — portrait / 4-view / expressions / details prompt kits (CN default + EN tags folded), one-shot extraction yields anchor + expression list + refined kits, gallery uploads by category |
54
58
  | **场景库(🏞️)**:从全书提炼「镜头场景」级视觉锚点(五幕结构/时间光态/关键镜头/人物状态),中英文生图提示词 + 场景图集,候选逐条采纳 | **Scene library**: shot-level visual anchors extracted from the book (act structure / time-of-day / key beats / character state), CN+EN prompts, adoptable candidates |
55
59
  | **视觉世界观规则(⚠️)**:从道藏提炼生图纠偏规则(如"货架商品=活人,禁止画成常规超市商品"),自动注入所有角色/场景提示词——反常识设定的书不再被生图模型画跑偏 | **Visual world rules**: extraction-time guardrails from the story bible (e.g. "shelf items are living people, no cans/bottles"), auto-injected into every prompt — counter-intuitive settings render correctly |
60
+ | **漫剧工作台(V2.0 新增)**:创建方案(风格/滤镜/题材)→ 一键生成(拆剧情→分镜→提名角色→视频提示词)→ 分镜工作台(骨架/分镜表/提示词)→ 角色定妆 → 场景底图 → 导出即梦脚本 | **Manga Workbench (V2.0, new)**: create a plan (style/filter/genre) → one-click generate (skeleton→storyboard→role nominations→video prompts) → storyboard studio (skeleton/table/prompts) → character styling → scene base → export Jimeng scripts |
56
61
 
57
62
  ## 快速开始 / Quick Start
58
63
 
@@ -173,7 +178,7 @@ tsdown.config.ts 双面打包配置 / dual-face bundling config
173
178
  - 章节质量取决于大纲完整度 / chapter quality depends on outline completeness
174
179
  - 设置写入 `~/.dsh/settings.yaml` 的 `dsh-novel-forge` 段 / settings persist in `~/.dsh/settings.yaml`
175
180
  - 角色/场景视觉资产为「提示词 + 图集」形态,并可在设置页配置内置生图模型(imageModels/imageApiKey,支持多模型库与连通性测试);出图既可走内置生成,也可用外部工具(即梦/豆包/Krea 等),提示词可直接复制 / visual assets are prompt+image anchors, with optional built-in image-model configuration (imageModels/imageApiKey, multi-model library + endpoint test); images may be generated in-app or via external tools (Jimeng/Doubao/Krea) with copy-ready prompts
176
- - 漫剧分镜/漫画脚本功能已移除(v1.3.0),角色形象与场景库保留为漫剧流水线的视觉锚点底座 / storyboard & comic-script features removed in v1.3.0; role visuals & scene library remain as the visual-anchor foundation
181
+ - **V2.0 ALPHA** 新增并重做「漫剧工作台」:创建方案 → 一键生成 → 分镜工作台(骨架/分镜表/视频提示词)→ 角色定妆 → 场景底图 → 导出即梦脚本;仅适用于 **DSH ≥ 0.1.3-alpha.1**(依赖 DSH 的 `cosmokit`)。V1.0 RC(`1.10.1`)不含此功能且已停止更新 / **V2.0 ALPHA** adds the reworked Manga Workbench (create plan → one-click generate storyboard studio → character styling → scene base → export Jimeng scripts); requires **DSH ≥ 0.1.3-alpha.1** (relies on DSH's `cosmokit`). V1.0 RC (1.10.1) lacks it and is no longer updated.
177
182
 
178
183
  ---
179
184
 
Binary file
Binary file