dsh-novel-generator 0.1.30 → 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
@@ -89,21 +89,20 @@ dsh plugin --profile web add dsh-novel-generator
89
89
 
90
90
  ## 「小说工坊 · 作者」预设(随主插件一起装)
91
91
 
92
- 本插件的 `cordis.patch.yml` 声明了**两行**,所以装一个包就有两件事:
92
+ 本插件把配套包 `dsh-novel-author-preset` 列为依赖,所以装小说工坊就会带上「小说工坊 · 作者」预设。`cordis.patch.yml` 因此声明**两行**:
93
93
 
94
- | 行 id | 作用 |
94
+ | 插件列表里的行 | 是什么 |
95
95
  |---|---|
96
- | `dsh-novel-generator` | 小说工坊本体(时间线、章节、快照、前置提示词) |
97
- | `preset-novel-studio-author` | Agent 预设「小说工坊 · 作者」 |
96
+ | `dsh-novel-generator`(小说工坊) | 工坊本体:时间线、章节、快照、前置提示词 |
97
+ | `dsh-novel-author-preset`(小说工坊 · 作者预设) | Agent 预设:激活时注册,关掉即注销 |
98
98
 
99
- - 在「设置 → 插件」里,这两行都挂在**小说工坊**条目下,**可以分别启停**。
100
- - 关掉预设行只是把它从预设列表里隐藏;小说工坊照常工作(作品可以改用 standard 等任何已装预设)。
101
- - 单独关掉整条小说工坊,预设也会随之消失,两者互不残留。
102
- - 装了它之后**新建作品默认用这个预设**;预设被关掉或卸载时,重建会话会自动退回 profile 默认预设,作品不会坏。
99
+ - 两行都挂在**小说工坊**下面,可以分别启停:关掉预设行只是把它从预设列表隐藏,工坊照常工作(作品可改用 standard 等任何已装预设);关掉工坊本体,预设也随之消失。
100
+ - 预设行显示的是这个配套包**自己的标题与说明**,而不是 `@deepseek-ai/dsh-agent-preset` 的通用文案「Agent 预设定义」——因为这一行由该包注册,不是由 patch 里的通用声明产生。
101
+ - 装了它之后**新建作品默认用这个预设**;预设被关掉或缺席时,重建会话会自动退回 profile 默认预设,作品不会坏。
103
102
 
104
103
  预设内容刻意做得很薄:三句人设(你是小说写作者/只输出正文/文风视角篇幅以用户要求为准)+ 关闭运行时上下文 + **不挂任何工具** + 只保留上下文压缩。所有文学倾向都交给作品级「前置提示词」。
105
104
 
106
- > 早先发布过的独立包 `dsh-novel-author-preset` 已并入本插件;它从 0.2.0 起是空补丁,装过 0.1.0 的环境请 `dsh plugin remove dsh-novel-author-preset`。
105
+ > 0.2.0 之前发布过的 `dsh-novel-author-preset` 是"空补丁"过渡版;从 0.3.0 起它是上面这个真正注册预设的配套插件。
107
106
 
108
107
  ## 迁移、导入与会话
109
108
 
package/cordis.patch.yml CHANGED
@@ -2,42 +2,18 @@
2
2
  # switched independently:
3
3
  #
4
4
  # 1. `dsh-novel-generator` — the studio itself (timeline, chapters, snapshots).
5
- # 2. `preset-novel-studio-author` — the blank author Agent preset. Turning this
6
- # row off in the plugin list simply hides the preset; the studio keeps
7
- # working with whatever preset the profile already offers.
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.
8
10
  #
9
- # The second row is what used to be the separate `dsh-novel-author-preset`
10
- # package: shipping it here means installing the studio brings the preset too.
11
+ # The companion package is a dependency of this one, so installing the studio
12
+ # brings the preset with it.
11
13
  - insert:
12
14
  - id: dsh-novel-generator
13
15
  name: 'dsh-novel-generator'
14
16
  config: {}
15
17
  - id: preset-novel-studio-author
16
- name: '@deepseek-ai/dsh-agent-preset'
17
- config:
18
- id: novel-studio-author
19
- name: 小说工坊 · 作者
20
- description: 小说工坊自带的空白写作预设,只规定"写正文"这件事,不预设任何文风或视角。
21
- order: 60
22
- plugins:
23
- - id: persona
24
- name: '@deepseek-ai/dsh-persona'
25
- config:
26
- # Short, neutral, output contract only; style and viewpoint belong
27
- # to the work-level preface prompt.
28
- prefix: |-
29
- 你是小说写作者,负责按用户给出的设定、梗概与要求,写出完整的中文小说正文。
30
- 只输出正文本身:不要解释、不要提纲、不要评论、不要加标题行。
31
- 文风、叙事视角、人称与篇幅一律以上下文中的要求为准,不要自行添加偏好。
32
- complete: true
33
- includeRuntimeContext: false
34
- # Compaction only: a long serial is a long conversation, and the writer
35
- # has no use for shell, files, web or delegation.
36
- - id: compaction
37
- name: cordis:group
38
- group: true
39
- isolate:
40
- compaction: true
41
- config:
42
- - id: compaction-basic
43
- name: '@deepseek-ai/dsh-compaction-basic'
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.30",
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
  }