dsh-novel-writer 2.6.5 → 3.1.0

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.en.md CHANGED
@@ -8,11 +8,10 @@ English | [**中文**](./README.md)
8
8
  [![GitHub release](https://img.shields.io/github/v/release/siweina/dsh-novel-writer.svg?style=flat-square)](https://github.com/siweina/dsh-novel-writer/releases)
9
9
  [![DSH plugin](https://img.shields.io/badge/DSH-plugin-4b8bbe.svg?style=flat-square)](https://github.com/deepseek-ai/deepseek-harness)
10
10
 
11
- A novel-writing assistant plugin for **DeepSeek Harness (DSH)** (v2.6.0): chapter library management, sentence-pattern analysis, emotion purification & quantification, **12-axis vibe spectrum**, **style portrait report**, plot & settings management, local semantic search (0 token), webnovel signal detection, batch import, and AI-assisted continuation writing. Zero third-party dependencies on host. **Requires Node ≥ 22.3.**
11
+ A novel-writing assistant plugin for **DeepSeek Harness (DSH)** (v3.1.0): chapter library management, sentence-pattern analysis, emotion purification & quantification, **6-dimension writing-metric baseline band**, 12-axis vibe spectrum, **style portrait report**, **original-creation mode with per-book profile library**, plot & settings management, local semantic search (0 token), webnovel signal detection, batch import, and AI-assisted continuation writing. Zero third-party dependencies on host. **Requires Node ≥ 22.3.**
12
12
 
13
13
  > **A note to non-Chinese users**: This plugin is designed specifically for Chinese-language novel analysis and writing — its core capabilities (sentence-pattern analysis, emotion quantification, imagery detection) and its built-in semantic model are all built and tuned for Chinese text. Fully supporting English or other languages alongside Chinese is beyond my current capability. I sincerely apologize for any inconvenience this may cause.
14
14
 
15
-
16
15
  ---
17
16
 
18
17
  ## Installation
@@ -31,24 +30,24 @@ npm install dsh-novel-writer
31
30
  dsh plugin --profile web add github:siweina/dsh-novel-writer#main
32
31
  ```
33
32
 
34
- After installing, **restart the web app** to activate (host registers 15 tools + state/reveal routes; browser mounts the "Writing Assistant" sidebar toggle panel).
33
+ After installing, **restart the web app** to activate (host registers 16 tools + state/reveal/update-check routes; browser mounts the "Writing Assistant" sidebar panel).
35
34
 
36
35
  ---
37
36
 
38
37
  ## Features
39
38
 
40
- 1. **Style portrait report** (`novel_style_report`): 6-dimension measurement — style fingerprint / high-frequency lexicon / genre-theme / emotion quantification / 12-axis vibe spectrum / semantic style distance. **Measurement-judgment separation**: the plugin only reports numbers, never labels; AI judgment can be saved back to `.novel-writer/style-reports/` for consistent continuation writing.
41
- 2. **12-axis vibe spectrum**: nightmare / angst / heartwarming / fluff / tearjerker / dark / mystery / blaze / absurd / lonesome / aesthetic / sensual — with traceable evidence, 0 token.
42
- 3. **Local semantic engine**: bge-small-zh Chinese model (23MB, shipped with the plugin) local CPU inference — `novel_semantic_search` finds semantically related passages with natural language (with chapter location), semantic style comparison, semantic implicit emotion; lazy loading + graceful fallback.
43
- 4. **Sentence-pattern analysis**: 9 categories, arrangement patterns, rhythm, emotion curve, style fingerprint + guidance, with cache & report export.
44
- 5. **Emotion purification & quantification**: strong/weak emotion-word grading, pollution detection, caveat warning + AI re-verification; Valence sliding window → variance V / delta Δ / conflict index C + implicit imagery carriers.
45
- 6. **Worldview & pragmatics detection**: auto cultural-baseline detection with confidence; speechStyle title/honorifics/rituals/tone norms; genre & theme + webnovel signals.
46
- 7. **Writing toolkit**: plot tracking / five settings tables (characters·locations·items·timeline·worldview) / chapter summaries / continuity audit / batch import / style check / continuation writing.
47
- 8. **Per-tool UI toggles**: "Writing Assistant" sidebar panel (master + grouped tool toggles + feature toggles), plain-language labels, data-dir usage & semantic-engine status display.
39
+ 1. **Original-creation mode (v3.1.0 core, per-book profile library)**: maintain creative intent per book in the sidebar — worldview / characters / forbidden events / main conflict / genre preference / extra requirements (6 dimensions); **books without a directory yet can be pre-configured**; saving auto-creates `novels/创作资料/<book>/创作设定.md`; a "default profile" covers new books; character settings sync into 《主要人物设定.md》.
40
+ 2. **novel_outline (creation-material management, 1 of 16 tools)**: creation bible / main & minor characters / plot outline / hook log / status card (6 files, 7 actions); **enforced workflow** — read status+outline before writing, backfill the chapter-end hook after each chapter (auto reminder for missing hooks), dynamic batch sizing (10/20/30 chapters).
41
+ 3. **6-dimension writing-metric baseline band**: sentence complexity / modifier density / abstractness / action density / uncertainty / gap index; per-chapter μ±σ band; recommended tolerance = 1.5σ (capped ±10%~100%); per-dimension verdicts (in-band ✓ / half-band △ / out-of-band ⚠). **Themes/plots/characters stay free — the band governs writing style only.**
42
+ 4. **Style portrait report**: 6-dimension measurement — style fingerprint / high-frequency lexicon / genre-theme / emotion quantification / 12-axis vibe spectrum / semantic style distance. Measurement-judgment separation with save-back.
43
+ 5. **Local semantic engine**: bge-small-zh Chinese model (24MB, shipped) local CPU inference — natural-language whole-book search (with chapter location), semantic style comparison, semantic implicit emotion; 0 token, lazy loading + graceful fallback.
44
+ 6. **Sentence-pattern analysis**: 9 categories, arrangement patterns, rhythm, emotion curve, style fingerprint, with cache & export; emotion purification + Valence quantification (V / Δ / C).
45
+ 7. **Writing toolkit**: plot tracking / five settings tables / chapter summaries / continuity audit / batch import / style check / update check.
46
+ 8. **Per-tool UI toggles**: master + grouped tool toggles + feature toggles + style baseline tolerance + original-creation profile library; data-dir usage & semantic-engine status.
48
47
 
49
48
  ---
50
49
 
51
- ## Provided Tools (15)
50
+ ## Provided Tools (16)
52
51
 
53
52
  | Tool | Description |
54
53
  |------|-------------|
@@ -60,13 +59,14 @@ After installing, **restart the web app** to activate (host registers 15 tools +
60
59
  | `novel_import` | Batch import manuscripts |
61
60
  | `novel_sentence_analysis` | Sentence-pattern analysis |
62
61
  | `novel_sentence_config` | View/set tool & feature toggles |
63
- | `novel_style_check` | Style check (rule + semantic) |
64
- | `novel_style_report` | **Style portrait report** (6-dim measurement) |
62
+ | `novel_style_check` | Style check (rule + semantic + **6-dim baseline**) |
63
+ | `novel_style_report` | Style portrait (6-dim measurement + **baseline band**) |
65
64
  | `novel_plot` | Plot/foreshadowing tracker |
66
65
  | `novel_settings` | Settings management (+worldview) |
67
66
  | `novel_summary` | Chapter summaries |
68
67
  | `novel_continuity_check` | Continuity audit |
69
68
  | `novel_semantic_search` | Semantic search (local embedding, 0 token) |
69
+ | `novel_outline` | **Creation-material management** (bible/characters/outline/hooks/status) |
70
70
 
71
71
  ---
72
72
 
package/README.md CHANGED
@@ -8,11 +8,10 @@
8
8
  [![GitHub release](https://img.shields.io/github/v/release/siweina/dsh-novel-writer.svg?style=flat-square)](https://github.com/siweina/dsh-novel-writer/releases)
9
9
  [![DSH plugin](https://img.shields.io/badge/DSH-plugin-4b8bbe.svg?style=flat-square)](https://github.com/deepseek-ai/deepseek-harness)
10
10
 
11
- 为 **DeepSeek Harness (DSH)** 打造的小说写作助手插件(v2.6.0):章节库管理、句式分析、情感净化与量化、氛围光谱、**风格画像报告**、伏笔设定管理、本地语义检索(0 token)、网文信号识别、批量导入与 AI 续写辅助。宿主端零第三方依赖,浏览器端仅依赖 Web GUI 自带的 react。**要求 Node ≥ 22.3。**
11
+ 为 **DeepSeek Harness (DSH)** 打造的小说写作助手插件(v3.1.0):章节库管理、句式分析、情感净化与量化、**文笔六维基线带**、氛围光谱、**风格画像报告**、**原创模式(多书设定库)**、伏笔设定管理、本地语义检索(0 token)、网文信号识别、批量导入与 AI 续写辅助。宿主端零第三方依赖,浏览器端仅依赖 Web GUI 自带的 react。**要求 Node ≥ 22.3。**
12
12
 
13
13
  > **致非中文用户**:本插件为中文小说分析写作而设计——句式、情感、意象等核心能力以及内置的语义模型,全部针对中文语料构建与调优。在深耕中文的同时兼顾英文等其他语言,确实超出了我目前的能力范围。若因此给您带来不便,我深感抱歉,恳请谅解。
14
14
 
15
-
16
15
  ---
17
16
 
18
17
  ## 安装
@@ -31,24 +30,24 @@ npm install dsh-novel-writer
31
30
  dsh plugin --profile web add github:siweina/dsh-novel-writer#main
32
31
  ```
33
32
 
34
- 安装后**重启 web 应用**生效(宿主端注册 15 个工具与 state/reveal 路由,浏览器端挂载侧边栏「写作助手功能」开关面板)。
33
+ 安装后**重启 web 应用**生效(宿主端注册 16 个工具与 state/reveal/update-check 路由,浏览器端挂载侧边栏「写作助手功能」面板)。
35
34
 
36
35
  ---
37
36
 
38
37
  ## 功能
39
38
 
40
- 1. **风格画像报告**(novel_style_report):6 维测量报告——文风指纹 / 高频词汇 / 题材流派 / 情感量化 / 氛围光谱 12 轴 / 语义风格距离。**测量与判断分离**:插件只报数不贴标签,AI 判断可回传存盘(`.novel-writer/style-reports/`),续写保持风格一致。
41
- 2. **氛围光谱 12 轴**:噩梦感 / 焦虑压抑 / 温馨治愈 / 甜宠日常 / 催泪虐心 / 黑暗残酷 / 悬疑神秘 / 热血激昂 / 荒诞无厘头 / 孤独疏离 / 文艺唯美 / 情欲暧昧——证据链可追溯,0 token。
42
- 3. **本地语义引擎**:bge-small-zh 中文模型(23MB 随插件分发)本地 CPU 推理——`novel_semantic_search` 自然语言搜全书语义相关段落(带章节定位),语义级风格对比、语义隐性情感,懒加载 + 自动回退。
43
- 4. **句式模式分析**:九类句式分布、排列规律、句长节奏、情感曲线、风格指纹与节奏建议,带缓存与报告导出。
44
- 5. **情感净化 + 量化**:强/弱情绪词分级、污染源检测、caveat 预警 + AI 复核;Valence 滑动窗口 → 方差 V / 斜率 Δ / 矛盾指数 C + 隐性意象载体。
45
- 6. **世界观与语用检测**:文化基准自动判断(西/东/混合)+ 置信度;speechStyle 称谓/客套/仪式/语气规范;题材流派 + 网文信号。
46
- 7. **写作辅助全家桶**:伏笔登记表 / 设定五张表(人物·地点·道具·时间线·世界观)/ 章节摘要 / 连贯性审计 / 批量导入 / 风格自检 / 续写辅助。
47
- 8. **全工具 UI 开关**:侧边栏「写作助手功能」面板(总开关 + 工具开关分组 + 功能开关),大白话文案,显示数据目录占用与语义引擎状态。
39
+ 1. **原创模式(v3.1.0 核心,多书设定库)**:侧边栏为每本书独立维护创作意图——世界观 / 角色设定 / 不允许的事件 / 主线目的 / 题材偏好 / 额外要求 6 维;**未建目录的新书也能预配置**,保存即自动创建 `novels/创作资料/<书>/创作设定.md`;「默认设定」兜底新书;角色设定同步进《主要人物设定.md》。
40
+ 2. **novel_outline(创作资料管理,16 个工具之一)**:创作设定 / 主要·次要人物 / 剧情大纲 / 钩子记录 / 创作状态卡 6 文件、7 个 action;**强制链条**——原创前必读状态卡+大纲,写完每章必回填结尾钩子(未回填自动提醒),动态批次(10/20/30 章)自动升档。
41
+ 3. **文笔六维基线带**:句法复杂度 / 修饰密度 / 抽象度 / 动作密度 / 不确定性 / 留白指数,每章测 μ±σ 形成基线带;推荐容差 = 1.5σ(限 ±10%~100%);新章逐维对照(带内 ✓ / 半带 △ / 出带 ⚠)。**主题/情节/人物自由——基线只管写法层面。**
42
+ 4. **风格画像报告**:6 维测量——文风指纹 / 高频词汇 / 题材流派 / 情感量化 / 氛围光谱 12 轴 / 语义风格距离。测量与判断分离,AI 判断可回传存盘。
43
+ 5. **本地语义引擎**:bge-small-zh 中文模型(24MB 随插件分发)本地 CPU 推理——自然语言搜全书(带章节定位)、语义级风格对比、语义隐性情感,0 token,懒加载 + 自动回退。
44
+ 6. **句式模式分析**:九类句式分布、排列规律、句长节奏、情感曲线、风格指纹,带缓存与报告导出;情感净化 + Valence 量化(方差 V / 斜率 Δ / 矛盾 C)。
45
+ 7. **写作辅助全家桶**:伏笔登记 / 设定五张表 / 章节摘要 / 连贯性审计 / 批量导入 / 风格自检 / 更新检查。
46
+ 8. **全工具 UI 开关**:总开关 + 工具开关 + 功能开关 + 风格基线容差 + 原创模式设定库,显示数据目录占用与语义引擎状态。
48
47
 
49
48
  ---
50
49
 
51
- ## 提供的工具(15 个)
50
+ ## 提供的工具(16 个)
52
51
 
53
52
  | 工具 | 说明 |
54
53
  |------|------|
@@ -58,15 +57,16 @@ dsh plugin --profile web add github:siweina/dsh-novel-writer#main
58
57
  | `novel_keywords` | 关键词:二字组/三字组/疑似人名 |
59
58
  | `novel_new_chapter` | 创建新章节文件 |
60
59
  | `novel_import` | 原稿件批量导入/分类 |
61
- | `novel_sentence_analysis` | 句式模式分析(九类/情感净化/量化/曲线/指纹) |
60
+ | `novel_sentence_analysis` | 句式模式分析(九类/净化/量化/曲线/指纹) |
62
61
  | `novel_sentence_config` | 查看/修改工具与功能开关 |
63
- | `novel_style_check` | 风格自检(规则+语义双维度) |
64
- | `novel_style_report` | **风格画像报告**(6 维测量 + AI 判断分离) |
62
+ | `novel_style_check` | 风格自检(规则+语义+**文笔六维对照**) |
63
+ | `novel_style_report` | 风格画像报告(6 维测量 + **六维基线带**) |
65
64
  | `novel_plot` | 伏笔/剧情线登记表 |
66
65
  | `novel_settings` | 设定管理(人物/地点/道具/时间线/世界观) |
67
66
  | `novel_summary` | 章节摘要(长书续写辅助) |
68
67
  | `novel_continuity_check` | 连贯性审计(设定矛盾+语用冲突候选) |
69
68
  | `novel_semantic_search` | 语义检索(本地 embedding,0 token) |
69
+ | `novel_outline` | **创作资料管理**(设定/人物/大纲/钩子/状态卡) |
70
70
 
71
71
  ---
72
72
 
@@ -83,7 +83,7 @@ dsh plugin --profile web add github:siweina/dsh-novel-writer#main
83
83
 
84
84
  ## 数据目录
85
85
 
86
- `<书库根>/.novel-writer/`:`plots`(伏笔)/ `settings`(设定)/ `summaries`(摘要)/ `analysis`(分析报告)/ `audits`(审计)/ `embedding`(语义索引)/ `style-reports`(风格画像)。
86
+ `<书库根>/.novel-writer/`:`plots` / `settings` / `summaries` / `analysis` / `audits` / `embedding` / `style-reports`。
87
87
 
88
88
  ---
89
89