@waterwx/dsh-novel-forge 1.3.1-alpha → 1.3.2-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.
package/README.md CHANGED
@@ -95,7 +95,7 @@
95
95
  | **写操作守卫 + 阶段契约**:只在作者**明确要求**时执行写操作,只提问不会误触发;宿主按项目真实状态算出当前阶段(开书 → 立设定 → 排章节 → 逐章编译 → 审稿 → 修订循环 → 定稿导出)并据此收窄可用动作,写错阶段的动作会被直接拒绝 | **Write guard + stage contract**: writes only on explicit request; host computes the current stage from real project state and narrows the allowed action set accordingly |
96
96
  | **失败分级(fail-stop)**:契约类错误(参数越界、章节不在计划中)**不重试**并记账,网络 / 超时 / 限流类才按次数重试;同一调用同参数已失败过会被直接挡下,避免无效循环 | **Failure classification**: contract errors are not retried and are recorded; only transient errors retry; a repeated identical failed call is blocked |
97
97
  | **备用模型与故障恢复**:只对网络 / 超时 / 限流 / 服务端 / 额度类失败切换备用模型;用户取消与参数错误不切换;备用也失败时抛**主模型原始错误**保留第一现场;正文生成 / 修订 / 润色仅在「一个字都没产出」时才换模型,杜绝重复生成 | **Fallback model & recovery**: switches only on transient failures, never on cancellation or bad params; rethrows the primary error; streaming writes only fall back when zero output was produced |
98
- | **生产单(批量连写)**:区间 / 新增 N 章一键下单,计划补足 + 逐章生成 + 被拒分级处理(无 high 豁免 / 修订 + 验证 / 两轮不过转人工)+ 出章即核对曲线,支持暂停 / 继续 / 停止与断点续跑(`run-state.json`) | **Production run**: line up a range, auto-plan, generate chapter-by-chapter, tiered declined handling, curve check on completion, pause / resume / stop with checkpointing |
98
+ | **生产单(批量连写)**:区间 / 新增 N 章一键下单,计划补足 + 逐章生成 + 被拒分级处理(无 high 豁免 / 修订 + 验证 / 两轮不过转人工)+ 出章即核对曲线,支持暂停 / 继续 / 停止与断点续跑(`run-state.json`)。**全局单实例、一次一本书、逐章串行**,批次绑定下单时的书目录(换书不打断也不切换);页面内置「运行说明」折叠块讲清并发 / 绑定 / 暂停续跑 / 同章冲突 | **Production run**: line up a range, auto-plan, generate chapter-by-chapter, tiered declined handling, curve check on completion, pause / resume / stop with checkpointing; single global instance, **one book at a time, strictly serial**, batch bound to the book it was started from |
99
99
  | **Token / 耗时记账**:实况帧带输入 / 输出 / 思考 / 缓存 token、总耗时、首字耗时;`/status` 返回本次运行(进程内)汇总与按用途分组;面板可查看**每次调用实际发送的 Prompt**(system + user) | **Token & latency accounting**: live frames carry in/out/reasoning/cached tokens, total and first-token latency; per-run summary grouped by purpose; inspect the actual prompt sent per call |
100
100
  | **改编模式**:上传全文 → 设定卡片 / 可改范围 → 确认改编维度 → 生成映射表 / 规则 / 影响清单 → 替换 / 重写 → 保存为新书(原书保留) | **Adaptation mode**: upload full text → setting cards / mutability → confirm dimensions → mappings / rules / impacts → replace or rewrite → save as a new book |
101
101
  | **知识库 / RAG**:书内自由参考文档,生成时按章节检索注入 | **Knowledge base / RAG**: in-book reference docs, retrieved & injected per chapter |
@@ -173,6 +173,7 @@ flowchart TD
173
173
  | 总编台 · 工具 | 生产单 · 张力曲线 · 提示词槽位 · 故事时间线 · 知识库 · 拆书分析 |
174
174
  | 全页视图 | 章节工作台(审稿 / 对比·草稿 / 复盘 / 历史版本,内含正文编辑、局部改写与去 AI 味润色)· 小说阅读器 |
175
175
  | 悬浮窗(可拖动 / 缩放) | **AI 助手**(AI 编辑 Agent 对话,不占工作台)· **AI 进度**(当前任务进度 + 活动输出,可查看每次调用的 Prompt 与用量) |
176
+ | 右上角状态芯片 | **小说工坊生成状态**:固定在窗口右上角,显示「**《书名》** + 生成中 / 已暂停 / 批完成 / 已停止 / 出错」(含当前章号与失败计数;书名过长省略号截断,全名与批次区间在悬停提示里),点击打开小说工坊面板;可拖拽并记忆位置。显示偏好为三态(总是 / 仅生成中·暂停时 / 关闭),在**书架页 → 设置 · 全局 → 外观与主题**里切换;选「关闭」会同时停掉状态轮询 |
176
177
 
177
178
  ---
178
179
 
@@ -228,7 +229,7 @@ npm 分发的是预构建产物,无需任何构建授权。
228
229
  - `run-state.json` — 生产单断点状态
229
230
  - `novel-assistant.jsonl` — AI 编辑 Agent 对话记录
230
231
  - 设置:`~/.dsh/settings.yaml` 的 `dsh-novel-forge` 段
231
- - 界面偏好(显示模式 / 密度 / 编辑器字号 / 面板宽度 / 阅读器底色):浏览器 localStorage
232
+ - 界面偏好:浏览器 localStorage —— 显示模式 / 界面密度 / 编辑器字号 / 面板宽度 / 阅读器底色,以及右上角状态芯片的显示模式与拖拽位置(键名前缀 `dsh-novel-forge.`,如 `dsh-novel-forge.runChip.mode`、`dsh-novel-forge.runChip.pos`)
232
233
 
233
234
  ---
234
235