dsh-novel-write-engine 0.2.3 → 0.2.4
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/CHANGELOG.md +21 -0
- package/README.md +36 -11
- package/briefs/P2.md +1 -0
- package/lib/client.js +2 -2
- package/lib/index.d.ts +34 -14
- package/lib/index.js +539 -152
- package/lib/types/constants.d.ts +2 -0
- package/package.json +1 -1
- package/skills/entry.md +1 -1
package/lib/types/constants.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export declare const PANEL_CHAPTER_LIMIT = 30;
|
|
|
10
10
|
/** Project-relative locations. Every write goes through these constants. */
|
|
11
11
|
export declare const PROJECT_FILE = "novel.yaml";
|
|
12
12
|
export declare const OUTLINE_FILE = "outline/outline.yaml";
|
|
13
|
+
/** Last outline replaced by a normal planning write; one level is enough for repair. */
|
|
14
|
+
export declare const OUTLINE_DEPRECATED_FILE = "outline/outline.deprecated.yaml";
|
|
13
15
|
export declare const WORLDBOOK_FILE = "outline/worldbook.yaml";
|
|
14
16
|
export declare const STATE_DIR = "state";
|
|
15
17
|
export declare const CHAPTERS_DIR = "chapters";
|
package/package.json
CHANGED
package/skills/entry.md
CHANGED
|
@@ -25,7 +25,7 @@ description: 引擎版小说创作流程——状态、门控、字数与写盘
|
|
|
25
25
|
|
|
26
26
|
## 书级规划(0.2.0)
|
|
27
27
|
|
|
28
|
-
新项目先 `novel_guide`;推荐但不强制:`novel_blueprint`(蓝图/卷)→ `novel_outline`(章卡)→ `novel_worldbook`(设定集)。已有大纲可用 `novel_outline_import` 导入 Markdown/YAML/JSON
|
|
28
|
+
新项目先 `novel_guide`;推荐但不强制:`novel_blueprint`(蓝图/卷)→ `novel_outline`(章卡)→ `novel_worldbook`(设定集)。已有大纲可用 `novel_outline_import` 导入 Markdown/YAML/JSON。`novel_outline` 的章卡按 `num`、卷按 `title` upsert:只提交要改的对象,省略的卡保持不动;删除必须显式 `remove`/`remove_volumes`,不要用重交全量卡来“确保存在”。只要存在章卡,P2/P3 就按章卡校验标题、场景、字数与 cast;严格模式还要求章卡必须存在。要改已归档章先 `novel_reopen`(必须带 reason)。
|
|
29
29
|
|
|
30
30
|
## 流程路由
|
|
31
31
|
|