dsh-novel-writer 2.6.0 → 2.6.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.en.md +3 -0
- package/README.md +3 -0
- package/lib/client.js +13 -4
- package/package.json +2 -2
package/README.en.md
CHANGED
|
@@ -10,6 +10,9 @@ English | [**中文**](./README.md)
|
|
|
10
10
|
|
|
11
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.**
|
|
12
12
|
|
|
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
|
+
|
|
15
|
+
|
|
13
16
|
---
|
|
14
17
|
|
|
15
18
|
## Installation
|
package/README.md
CHANGED
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
|
|
11
11
|
为 **DeepSeek Harness (DSH)** 打造的小说写作助手插件(v2.6.0):章节库管理、句式分析、情感净化与量化、氛围光谱、**风格画像报告**、伏笔设定管理、本地语义检索(0 token)、网文信号识别、批量导入与 AI 续写辅助。宿主端零第三方依赖,浏览器端仅依赖 Web GUI 自带的 react。**要求 Node ≥ 22.3。**
|
|
12
12
|
|
|
13
|
+
> **致非中文用户**:本插件为中文小说分析写作而设计——句式、情感、意象等核心能力以及内置的语义模型,全部针对中文语料构建与调优。在深耕中文的同时兼顾英文等其他语言,确实超出了我目前的能力范围。若因此给您带来不便,我深感抱歉,恳请谅解。
|
|
14
|
+
|
|
15
|
+
|
|
13
16
|
---
|
|
14
17
|
|
|
15
18
|
## 安装
|
package/lib/client.js
CHANGED
|
@@ -849,10 +849,10 @@ var TOOL_GROUPS = [
|
|
|
849
849
|
);
|
|
850
850
|
});
|
|
851
851
|
;
|
|
852
|
+
// v2.6.0 修复:detailFeatures 提升到渲染函数顶部——二级页渲染与主面板计数共用同一列表(此前计数数组漏 webnovelVibe,5 个开关显示"4开")
|
|
853
|
+
var detailFeatures = ["emotionCaveat", "emotionComplexity", "genreTheme", "webnovelVibe", "semanticEmbedding"];
|
|
852
854
|
var body = null;
|
|
853
855
|
if (view === "features") {
|
|
854
|
-
// 二级页:细粒度高级开关(主面板已合并为 3 行)
|
|
855
|
-
var detailFeatures = ["emotionCaveat", "emotionComplexity", "genreTheme", "webnovelVibe", "semanticEmbedding"];
|
|
856
856
|
body = el("div", null,
|
|
857
857
|
backBtn(),
|
|
858
858
|
el("div", { className: "nwSectionTitle" }, t("panel.featuresTitle")),
|
|
@@ -890,7 +890,7 @@ var TOOL_GROUPS = [
|
|
|
890
890
|
pathBox(t("dir.embedding"), dirs.embeddingDir || "", "embedding-dir")
|
|
891
891
|
);
|
|
892
892
|
} else {
|
|
893
|
-
var onFeatures =
|
|
893
|
+
var onFeatures = detailFeatures.filter(function (k) { return f[k] !== false; }).length;
|
|
894
894
|
var onTools = ALL_TOOLS.filter(function (k) { return tools[k] !== false; }).length;
|
|
895
895
|
body = el("div", null,
|
|
896
896
|
el("div", { className: "nwRow " + (state.enabled ? "nwRowOn" : "nwRowOff") },
|
|
@@ -1145,7 +1145,16 @@ var TOOL_GROUPS = [
|
|
|
1145
1145
|
};
|
|
1146
1146
|
load();
|
|
1147
1147
|
var toggle = async function (patch) {
|
|
1148
|
-
|
|
1148
|
+
// v2.6.0 修复:features/tools 深合并——此前浅合并整体替换 state.features,其他开关键丢失后渲染为"开"(关 A 后关 B,A 又变开)
|
|
1149
|
+
var merged = Object.assign({}, patch, { saveFailed: false });
|
|
1150
|
+
var cur = controller.getSnapshot();
|
|
1151
|
+
if (patch.features && typeof patch.features === "object") {
|
|
1152
|
+
merged.features = Object.assign({}, cur.features || {}, patch.features);
|
|
1153
|
+
}
|
|
1154
|
+
if (patch.tools && typeof patch.tools === "object") {
|
|
1155
|
+
merged.tools = Object.assign({}, cur.tools || {}, patch.tools);
|
|
1156
|
+
}
|
|
1157
|
+
controller.set(merged);
|
|
1149
1158
|
try {
|
|
1150
1159
|
var remote = await saveState(patch);
|
|
1151
1160
|
controller.set({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-novel-writer",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.2",
|
|
4
4
|
"description": "小说写作助手插件(v2.6.0):句式/情感/意象分析、伏笔设定管理、本地语义检索、氛围光谱、风格画像报告;增量索引与缓存压缩优化。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -41,4 +41,4 @@
|
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=22.3"
|
|
43
43
|
}
|
|
44
|
-
}
|
|
44
|
+
}
|