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 +14 -14
- package/README.md +16 -16
- package/lib/client.js +394 -16
- package/lib/index.js +502 -10
- package/lib/style-metrics.js +274 -0
- package/lib/update-check.js +117 -0
- package/package.json +24 -3
- package/skills/novel-writing/SKILL.md +31 -1
package/README.en.md
CHANGED
|
@@ -8,11 +8,10 @@ English | [**中文**](./README.md)
|
|
|
8
8
|
[](https://github.com/siweina/dsh-novel-writer/releases)
|
|
9
9
|
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
10
10
|
|
|
11
|
-
A novel-writing assistant plugin for **DeepSeek Harness (DSH)** (
|
|
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
|
|
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. **
|
|
41
|
-
2. **
|
|
42
|
-
3. **
|
|
43
|
-
4. **
|
|
44
|
-
5. **
|
|
45
|
-
6. **
|
|
46
|
-
7. **Writing toolkit**: plot tracking / five settings tables
|
|
47
|
-
8. **Per-tool UI toggles**:
|
|
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 (
|
|
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` |
|
|
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
|
[](https://github.com/siweina/dsh-novel-writer/releases)
|
|
9
9
|
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
10
10
|
|
|
11
|
-
为 **DeepSeek Harness (DSH)** 打造的小说写作助手插件(
|
|
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 应用**生效(宿主端注册
|
|
33
|
+
安装后**重启 web 应用**生效(宿主端注册 16 个工具与 state/reveal/update-check 路由,浏览器端挂载侧边栏「写作助手功能」面板)。
|
|
35
34
|
|
|
36
35
|
---
|
|
37
36
|
|
|
38
37
|
## 功能
|
|
39
38
|
|
|
40
|
-
1.
|
|
41
|
-
2.
|
|
42
|
-
3.
|
|
43
|
-
4.
|
|
44
|
-
5.
|
|
45
|
-
6.
|
|
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
|
-
## 提供的工具(
|
|
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` |
|
|
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
|
|
86
|
+
`<书库根>/.novel-writer/`:`plots` / `settings` / `summaries` / `analysis` / `audits` / `embedding` / `style-reports`。
|
|
87
87
|
|
|
88
88
|
---
|
|
89
89
|
|