dsh-novel-generator 0.1.29 → 0.1.31

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
@@ -87,15 +87,23 @@ dsh plugin --profile web add dsh-novel-generator
87
87
  - 正文为空时按钮不可点,接口也会拒绝(400);修改意见为空同样拒绝。
88
88
  - **重写结果只放进编辑区、不自动保存**,状态变成「未保存」,你确认后再点「保存」——避免 AI 的改动直接覆盖原稿。
89
89
 
90
- ## 附属子插件:小说工坊 · 作者预设
90
+ ## 「小说工坊 · 作者」预设(随主插件一起装)
91
91
 
92
- 另有一个**独立包** `dsh-novel-author-preset`,只负责往 DSH 注册一个 Agent 预设「小说工坊 · 作者」:
92
+ 本插件把配套包 `dsh-novel-author-preset` 列为依赖,所以装小说工坊就会带上「小说工坊 · 作者」预设。`cordis.patch.yml` 因此声明**两行**:
93
93
 
94
- - 装上它(`dsh plugin --profile web add dsh-novel-author-preset`),作品列表的「预设」与「设置 → 预设」里就多出这一项,**新建作品默认用它**;
95
- - 卸掉它,预设立刻消失;已绑定的作品不会因此损坏——重建会话时检测到预设已不在,会自动退回 profile 的默认预设。
94
+ | 插件列表里的行 | 是什么 |
95
+ |---|---|
96
+ | `dsh-novel-generator`(小说工坊) | 工坊本体:时间线、章节、快照、前置提示词 |
97
+ | `dsh-novel-author-preset`(小说工坊 · 作者预设) | Agent 预设:激活时注册,关掉即注销 |
98
+
99
+ - 两行都挂在**小说工坊**下面,可以分别启停:关掉预设行只是把它从预设列表隐藏,工坊照常工作(作品可改用 standard 等任何已装预设);关掉工坊本体,预设也随之消失。
100
+ - 预设行显示的是这个配套包**自己的标题与说明**,而不是 `@deepseek-ai/dsh-agent-preset` 的通用文案「Agent 预设定义」——因为这一行由该包注册,不是由 patch 里的通用声明产生。
101
+ - 装了它之后**新建作品默认用这个预设**;预设被关掉或缺席时,重建会话会自动退回 profile 默认预设,作品不会坏。
96
102
 
97
103
  预设内容刻意做得很薄:三句人设(你是小说写作者/只输出正文/文风视角篇幅以用户要求为准)+ 关闭运行时上下文 + **不挂任何工具** + 只保留上下文压缩。所有文学倾向都交给作品级「前置提示词」。
98
104
 
105
+ > 0.2.0 之前发布过的 `dsh-novel-author-preset` 是"空补丁"过渡版;从 0.3.0 起它是上面这个真正注册预设的配套插件。
106
+
99
107
  ## 迁移、导入与会话
100
108
 
101
109
  - **改预设**:作品列表每行的「预设」改的是「下次建会话时用哪个预设」。会话在创建时就固定了预设,所以保存后会提示「重建会话后生效」——要立刻换,点同一行的「重建会话」。
package/cordis.patch.yml CHANGED
@@ -1,4 +1,19 @@
1
+ # Two rows, so the plugin list shows them together under 小说工坊 and each can be
2
+ # switched independently:
3
+ #
4
+ # 1. `dsh-novel-generator` — the studio itself (timeline, chapters, snapshots).
5
+ # 2. `preset-novel-studio-author` — the author preset, owned by the companion
6
+ # package `dsh-novel-author-preset`. The row names that package (not the
7
+ # generic `@deepseek-ai/dsh-agent-preset`) so the plugin list shows its own
8
+ # title and description; the package registers the preset when it activates
9
+ # and withdraws it when the row is switched off.
10
+ #
11
+ # The companion package is a dependency of this one, so installing the studio
12
+ # brings the preset with it.
1
13
  - insert:
2
14
  - id: dsh-novel-generator
3
15
  name: 'dsh-novel-generator'
4
16
  config: {}
17
+ - id: preset-novel-studio-author
18
+ name: 'dsh-novel-author-preset'
19
+ config: {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-novel-generator",
3
- "version": "0.1.29",
3
+ "version": "0.1.31",
4
4
  "type": "module",
5
5
  "description": "Novel studio for DeepSeek Harness: a draggable story timeline, world snapshots, chapter outlines, and chapters written by the work's own agent.",
6
6
  "license": "MIT",
@@ -55,5 +55,8 @@
55
55
  "@deepseek-ai/dsh-client-ui-workspace"
56
56
  ]
57
57
  }
58
+ },
59
+ "dependencies": {
60
+ "dsh-novel-author-preset": "^0.3.0"
58
61
  }
59
62
  }