@waterwx/dsh-novel-forge 1.1.0 → 1.1.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.
- package/README.md +16 -0
- package/lib/client.js +2056 -1832
- package/lib/client.js.map +1 -1
- package/lib/index.js +44 -13
- package/lib/index.js.map +1 -1
- package/lib/types/client/locales.d.ts +2 -0
- package/lib/types/engine.d.ts +1 -1
- package/package.json +2 -2
- package/src/client/locales.ts +4 -0
- package/src/client/panel/NovelPanel.tsx +159 -19
- package/src/client/panel/panel.module.css +66 -5
- package/src/engine.ts +72 -10
- package/src/routes.ts +1 -1
package/README.md
CHANGED
|
@@ -20,10 +20,14 @@ Your personal AI novel-writing plugin for DSH: turn an outline into a complete n
|
|
|
20
20
|
| **开书向导**:书架新建书时直接导入大纲(docx/粘贴),开书即建项目,书名自动识别 | **Book wizard**: create a book with its outline in one step — project is built immediately |
|
|
21
21
|
| **大纲只读化**:开书后大纲页只读展示;「更新大纲」可选仅改文本(保留进度)或重置项目重来 | **Read-only outline**: after opening a book the outline is read-only; update offers keep-progress or full reset |
|
|
22
22
|
| **章节计划结构化**:每章含 本章目标 / 剧情要点 / 爽点·钩子 / 结尾钩子 | **Structured chapter beats**: goal / plot points / payoff-hook / ending hook per chapter |
|
|
23
|
+
| **章节计划续写模式**:已有章节时自动续写规划(上一章结尾原文 + 编年录锚点 + 已发生情节禁令),不再重头生成;追加自动去重 | **Continuation planning**: with existing chapters the planner continues from the last chapter's ending (tail text + fact anchors + banned-repeat list), never restarts; duplicate titles are dropped on append |
|
|
23
24
|
| **事实库 / 时间线**:每章自动抽取已确立事实,注入后续生成,保证长期一致 | **Fact ledger**: auto-extracted per-chapter facts injected into later chapters for consistency |
|
|
24
25
|
| **全书一致性质检**:LLM 扫描全本,输出矛盾清单(定位到章),一键去修订 | **Book audit**: LLM scans all chapters for contradictions, locates them, one-click to revise |
|
|
25
26
|
| **角色卡**:出场统计精确计算 + LLM 聚合当前状态,历史章节可回填事实库 | **Character cards**: precise appearance stats + LLM-aggregated status; backfill for old chapters |
|
|
26
27
|
| **润色/修订工作区**:左栏原文(选中即局部修订)+ 右栏指令/预览/应用,草稿制不覆盖原稿,自动备份 .bak | **Revision workspace**: editable original + selection-targeted local edits, draft-apply flow with auto-backup |
|
|
28
|
+
| **章节编辑独立页**:点「编辑」进入独占整页(左导航保留),原文|对比左右各半、原稿新稿并排高亮,默认即对比模式 | **Full-page chapter editor**: opening a chapter takes over the content pane; original vs draft side by side with highlighted changes, diff view by default |
|
|
29
|
+
| **审稿问题勾选修复**:审查报告每条问题可勾选,一键按所选问题修订(默认勾 high) | **Selective review fixes**: check any review issues (high pre-checked) and fix them in one click |
|
|
30
|
+
| **编辑器字号可调**:设置页 12-24px + 编辑页 A−/A+ 快捷调整(localStorage 记忆) | **Adjustable editor font size**: 12-24px in settings plus A−/A+ in the editor toolbar (localStorage) |
|
|
27
31
|
| **AI 助手悬浮窗**:可拖动、可拉大小、位置记忆;「编辑老师」全量知情 + 影响分析 + 步骤卡片 + 思考计时 + 清空聊天 | **Floating AI assistant**: draggable, resizable, position remembered; full-context "editor" persona with impact analysis and live step cards |
|
|
28
32
|
| **分组导航 + 状态角标**:创作/工具/数据库分组,章节待办/伏笔/进度角标 | **Grouped nav + badges**: creation/tools/database groups with live badges |
|
|
29
33
|
| **iOS 风格毛玻璃 UI**(浅色/深色) | **iOS-style frosted glass UI** (light/dark) |
|
|
@@ -148,6 +152,11 @@ and mount it any time.
|
|
|
148
152
|
"Update outline" offers either keep-progress text update or full project reset
|
|
149
153
|
- **Structured chapter beats**: every planned chapter carries goal / plot points /
|
|
150
154
|
payoff-hook / ending hook sections
|
|
155
|
+
- **Continuation planning**: with existing chapters the planner continues from the
|
|
156
|
+
last chapter's ending — it injects the previous chapter's tail text, fact-ledger
|
|
157
|
+
anchors and a banned-repeat list (e.g. no re-entering the xu-jing), and trims the
|
|
158
|
+
outline to settings-only, so regenerating a plan never restarts the story;
|
|
159
|
+
duplicate titles are dropped on append
|
|
151
160
|
- **Fact ledger**: each chapter auto-extracts established facts (character state,
|
|
152
161
|
resources, relations, foreshadow landings); the latest 20 are injected into
|
|
153
162
|
later chapters to keep the long story consistent
|
|
@@ -158,6 +167,13 @@ and mount it any time.
|
|
|
158
167
|
- **Revision workspace**: editable original on the left (select text for
|
|
159
168
|
targeted local edits), instruction + preview + apply/cancel on the right;
|
|
160
169
|
drafts never overwrite until applied, and applying auto-backs-up the original
|
|
170
|
+
- **Full-page chapter editor**: clicking "Edit" takes over the content pane
|
|
171
|
+
(left nav stays); original vs draft side by side 1:1 with highlighted
|
|
172
|
+
changes, diff view on by default
|
|
173
|
+
- **Selective review fixes**: every review issue gets a checkbox (high issues
|
|
174
|
+
pre-checked) and one click fixes exactly the checked ones
|
|
175
|
+
- **Adjustable editor font size**: 12-24px in settings plus A−/A+ shortcuts in
|
|
176
|
+
the editor toolbar, remembered in localStorage
|
|
161
177
|
- **Floating AI assistant**: draggable, resizable, position-remembered dialog
|
|
162
178
|
with a full-context "editor" persona, impact analysis, live step cards and
|
|
163
179
|
conversation clearing
|