dsh-novel-writer 5.1.0 → 5.1.1

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/lib/client.js CHANGED
@@ -195,6 +195,8 @@ var css = `
195
195
  "sp.full": "完整",
196
196
  "panel.spScene": "提示词场景",
197
197
  "panel.spSceneHint": "完整档下注入哪一套流程:通用(默认,同旧版)/ 写新章 / 改稿 / 审计 / 建资料。场景只改变提示词内容,不影响工具能力。",
198
+ // v5.1.1:档位非「完整」时,场景按钮此前是 disabled(点不动且无解释)——现在始终可点,改用这行说明"为什么暂时不生效"
199
+ "panel.spSceneInactive": "当前档位不是「完整」,场景已保存但暂不注入——把上面的档位切到「完整」即生效。",
198
200
  "sc.general": "通用",
199
201
  "sc.writing": "写新章",
200
202
  "sc.revising": "改稿",
@@ -409,6 +411,8 @@ var css = `
409
411
  "sp.full": "Full",
410
412
  "panel.spScene": "Prompt scene",
411
413
  "panel.spSceneHint": "Which workflow Full mode injects: General (default, same as before) / Drafting / Revising / Auditing / Setup. Affects prompt text only, not tool capabilities.",
414
+ // v5.1.1: the scene buttons used to be disabled when the mode wasn't Full (no explanation) — now always clickable, with this note
415
+ "panel.spSceneInactive": "The mode above isn't Full, so the scene is saved but not injected yet — switch the mode to Full to activate it.",
412
416
  "sc.general": "General",
413
417
  "sc.writing": "Drafting",
414
418
  "sc.revising": "Revising",
@@ -1637,17 +1641,19 @@ var TOOL_GROUPS = [
1637
1641
  )
1638
1642
  ),
1639
1643
  // v5.0.0:提示词场景——与上面的档位正交:档位决定"注入多少",场景决定"注入什么"。
1640
- // 场景只在完整档下有意义(精简档只说明"有这套工具"),因此档位非 full 时整行置灰。
1644
+ // v5.1.1 修正:**不再因为档位非 full 就把按钮 disabled**——用户反馈"场景里点不了其他选项",
1645
+ // 因为默认档位是 off/精简,五个按钮全灰且没有任何解释,等于把"选场景"锁死在一个看不见的前提后面。
1646
+ // 现在按钮始终可点(只受 loading 限制),档位非 full 时改用行内提示说明"已保存但暂不注入"。
1641
1647
  // 场景枚举必须与 lib/prompts.js 的 PROMPT_SCENES 保持一致(客户端是独立 bundle,不能 import)。
1642
1648
  el("div", { className: "nwRow " + (state.systemPromptMode === "full" ? "nwRowOn" : "nwRowOff") },
1643
1649
  el("div", { className: "nwRowText" },
1644
1650
  el("div", { className: "nwRowLabel" }, t("panel.spScene")),
1645
- el("div", { className: "nwRowHint" }, t("panel.spSceneHint"))
1651
+ el("div", { className: "nwRowHint" }, t("panel.spSceneHint") + (state.systemPromptMode === "full" ? "" : " " + t("panel.spSceneInactive")))
1646
1652
  ),
1647
1653
  el("div", { className: "nwSeg" },
1648
1654
  ["general", "writing", "revising", "auditing", "setup"].map(function (s) {
1649
1655
  var cur = state.promptScene || "general";
1650
- return el("button", { key: s, type: "button", className: "nwSegBtn" + (cur === s ? " nwSegBtnOn" : ""), disabled: state.loading || state.systemPromptMode !== "full",
1656
+ return el("button", { key: s, type: "button", className: "nwSegBtn" + (cur === s ? " nwSegBtnOn" : ""), disabled: state.loading,
1651
1657
  onClick: function () { if (cur !== s) props.toggle({ promptScene: s }); } }, t("sc." + s));
1652
1658
  })
1653
1659
  )
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-novel-writer",
3
- "version": "5.1.0",
4
- "description": "小说写作助手插件(v5.1.0):句式/情感/意象分析、伏笔设定管理、本地语义检索、氛围光谱、风格画像报告、文笔六维基线带、原创模式与创作资料、写作哨兵(衔接/OOC/大纲);附 stdio MCP 服务器(Claude Desktop / Cursor 可用)。",
3
+ "version": "5.1.1",
4
+ "description": "小说写作助手插件(v5.1.1):句式/情感/意象分析、伏笔设定管理、本地语义检索、氛围光谱、风格画像报告、文笔六维基线带、原创模式与创作资料、写作哨兵(衔接/OOC/大纲);附 stdio MCP 服务器(Claude Desktop / Cursor 可用)。",
5
5
  "mcpName": "io.github.siweina/dsh-novel-writer",
6
6
  "type": "module",
7
7
  "main": "lib/index.js",
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "io.github.siweina/dsh-novel-writer",
4
4
  "title": "dsh-novel-writer — 网文写作体检",
5
5
  "description": "Offline toolkit: 18 tools for Chinese web-novel style, plot-thread and continuity audits.",
6
- "version": "5.1.0",
6
+ "version": "5.1.1",
7
7
  "repository": {
8
8
  "url": "https://github.com/siweina/dsh-novel-writer",
9
9
  "source": "github"
@@ -13,7 +13,7 @@
13
13
  {
14
14
  "registryType": "npm",
15
15
  "identifier": "dsh-novel-writer",
16
- "version": "5.1.0",
16
+ "version": "5.1.1",
17
17
  "runtimeHint": "npx",
18
18
  "packageArguments": [
19
19
  {