@cloud411716/fancy-webnovel 1.0.45 → 2.2.0
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/client.js +183 -0
- package/cordis.patch.yml +0 -14
- package/index.js +21 -37
- package/lib/chinese-num.js +111 -0
- package/lib/deployed-state.js +141 -0
- package/lib/error-codes.js +104 -0
- package/lib/infra.js +569 -0
- package/lib/llm-wiki.js +109 -0
- package/lib/safe-rm.js +94 -0
- package/lib/scraper-utils.js +165 -0
- package/package.json +37 -5
- package/plugins/fancy-analyze/command-input.js +65 -0
- package/plugins/fancy-analyze/index.js +973 -0
- package/plugins/fancy-analyze/schema-analyze.md +379 -0
- package/plugins/fancy-analyze/schema-write.md +178 -0
- package/plugins/fancy-analyze/scripts/split_source.js +292 -0
- package/plugins/fancy-analyze/summary-progress.js +431 -0
- package/plugins/fancy-analyze/templates.js +881 -0
- package/plugins/fancy-bootstrap/index.js +168 -0
- package/plugins/fancy-bootstrap/scripts/init.js +143 -0
- package/plugins/fancy-bootstrap/scripts/path-utils.js +21 -0
- package/plugins/fancy-bootstrap/templates.js +54 -0
- package/plugins/fancy-import/import-core.js +1118 -0
- package/plugins/fancy-import/import-driver.js +581 -0
- package/plugins/fancy-import/index.js +730 -0
- package/plugins/fancy-import/prompts/01-import-prompt.md +106 -0
- package/plugins/fancy-import/templates.js +49 -0
- package/plugins/fancy-scan/index.js +319 -0
- package/plugins/fancy-scan/scripts/run-scan.js +520 -0
- package/plugins/fancy-scan/scripts/scrapers/fanqie-rank-scraper.js +794 -0
- package/plugins/fancy-scan/scripts/scrapers/jjwxc-rank-scraper.js +339 -0
- package/plugins/fancy-scan/scripts/scrapers/qimao-rank-scraper.js +611 -0
- package/plugins/fancy-scan/templates.js +295 -0
- package/plugins/fancy-story-builder/deploy-manifest.js +239 -0
- package/plugins/fancy-story-builder/deslop-driver.js +821 -0
- package/plugins/fancy-story-builder/flesh-output.js +155 -0
- package/plugins/fancy-story-builder/index.js +3152 -0
- package/plugins/fancy-story-builder/prompts/01-skeleton-prompt.md +553 -0
- package/plugins/fancy-story-builder/prompts/02-flesh-prompt.md +540 -0
- package/plugins/fancy-story-builder/prompts/03-rhythm-prompt.md +504 -0
- package/plugins/fancy-story-builder/prompts/04-writing-prompt.md +188 -0
- package/plugins/fancy-story-builder/prompts/05-deslop-prompt.md +96 -0
- package/plugins/fancy-story-builder/purpose-template.md +107 -0
- package/plugins/fancy-story-builder/references/formulas-rhythm.json +302 -0
- package/plugins/fancy-story-builder/references/formulas-skeleton.json +229 -0
- package/plugins/fancy-story-builder/references/glossary.md +585 -0
- package/plugins/fancy-story-builder/references/index.md +490 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/00-index.md +174 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/01-scene.md +150 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/02-chapter-workflow.md +99 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/03-opening-chapter.md +104 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/04-dialogue-mastery.md +274 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/05-genre-formulas.md +432 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/06-tone-ensemble.md +259 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/07-ledger-audit.md +222 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/08-diagnosis-revision.md +205 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/09-reading-power.md +135 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/10-deslop.md +129 -0
- package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/00-index.md +98 -0
- package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/01-upgrade-rhythm.md +300 -0
- package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/02-arc-rhythm.md +168 -0
- package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/03-highpoint-hooks.md +189 -0
- package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/04-satisfaction.md +226 -0
- package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/05-foreshadow-density.md +195 -0
- package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/06-chapter-outline.md +226 -0
- package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/07-audit.md +163 -0
- package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/00-index.md +100 -0
- package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/01-character.md +239 -0
- package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/02-worldbuilding.md +245 -0
- package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/03-relations.md +181 -0
- package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/04-emotion-methods.md +286 -0
- package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/05-audit.md +177 -0
- package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/00-index.md +91 -0
- package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/01-positioning.md +208 -0
- package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/02-packaging.md +135 -0
- package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/03-entities.md +305 -0
- package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/04-conflict.md +328 -0
- package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/05-quota.md +187 -0
- package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/06-audit.md +142 -0
- package/plugins/fancy-story-builder/rhythm-output.js +140 -0
- package/plugins/fancy-story-builder/schema-setting.md +324 -0
- package/plugins/fancy-story-builder/scripts/ai-patterns.js +619 -0
- package/plugins/fancy-story-builder/scripts/check-guide-compliance.js +289 -0
- package/plugins/fancy-story-builder/scripts/content-quality.js +413 -0
- package/plugins/fancy-story-builder/scripts/deslop-validate.js +143 -0
- package/plugins/fancy-story-builder/scripts/error-classes.js +112 -0
- package/plugins/fancy-story-builder/scripts/flesh-validate.js +1189 -0
- package/plugins/fancy-story-builder/scripts/formula-engine.js +112 -0
- package/plugins/fancy-story-builder/scripts/graph-utils.js +1385 -0
- package/plugins/fancy-story-builder/scripts/label-coverage.js +171 -0
- package/plugins/fancy-story-builder/scripts/prompt-drift-check.js +441 -0
- package/plugins/fancy-story-builder/scripts/reading-power.js +298 -0
- package/plugins/fancy-story-builder/scripts/rhythm-validate.js +1216 -0
- package/plugins/fancy-story-builder/scripts/semantic-lint.js +377 -0
- package/plugins/fancy-story-builder/scripts/skeleton-quota.js +145 -0
- package/plugins/fancy-story-builder/scripts/skeleton-validate.js +1832 -0
- package/plugins/fancy-story-builder/scripts/stage-batches.js +1371 -0
- package/plugins/fancy-story-builder/scripts/stage-contract.js +417 -0
- package/plugins/fancy-story-builder/scripts/upstream-query.js +198 -0
- package/plugins/fancy-story-builder/scripts/writing-rules.js +167 -0
- package/plugins/fancy-story-builder/scripts/writing-validate.js +682 -0
- package/plugins/fancy-story-builder/skeleton-output.js +199 -0
- package/plugins/fancy-story-builder/stage-driver.js +1049 -0
- package/plugins/fancy-story-builder/templates//350/212/202/345/245/217//346/227/266/345/272/217/346/230/240/345/260/204/346/250/241/346/235/277.json +204 -0
- package/plugins/fancy-story-builder/templates//350/212/202/345/245/217//347/253/240/350/212/202/347/273/206/347/272/262/346/250/241/346/235/277.json +34 -0
- package/plugins/fancy-story-builder/templates//350/212/202/345/245/217//347/253/240/350/212/202/350/247/204/345/210/222/346/250/241/346/235/277.json +24 -0
- package/plugins/fancy-story-builder/templates//350/212/202/345/245/217//350/212/202/345/245/217/345/217/202/346/225/260/346/250/241/346/235/277.json +27 -0
- package/plugins/fancy-story-builder/templates//350/241/200/350/202/211//344/270/226/347/225/214/350/247/202/350/247/204/345/210/231/346/250/241/346/235/277.json +66 -0
- package/plugins/fancy-story-builder/templates//350/241/200/350/202/211//345/205/263/351/224/256/351/201/223/345/205/267/346/250/241/346/235/277.json +76 -0
- package/plugins/fancy-story-builder/templates//350/241/200/350/202/211//345/206/262/347/252/201/346/250/241/346/235/277.json +72 -0
- package/plugins/fancy-story-builder/templates//350/241/200/350/202/211//345/211/247/346/203/205/346/250/241/346/235/277.json +37 -0
- package/plugins/fancy-story-builder/templates//350/241/200/350/202/211//345/212/277/345/212/233/346/250/241/346/235/277.json +53 -0
- package/plugins/fancy-story-builder/templates//350/241/200/350/202/211//345/234/260/347/202/271/346/250/241/346/235/277.json +40 -0
- package/plugins/fancy-story-builder/templates//350/241/200/350/202/211//347/273/223/345/261/200/346/250/241/346/235/277.json +79 -0
- package/plugins/fancy-story-builder/templates//350/241/200/350/202/211//350/247/222/350/211/262/346/250/241/346/235/277.json +132 -0
- package/plugins/fancy-story-builder/templates//351/252/250/346/236/266//345/205/263/347/263/273/346/250/241/346/235/277.json +133 -0
- package/plugins/fancy-story-builder/templates//351/252/250/346/236/266//345/256/236/344/275/223/346/250/241/346/235/277.json +160 -0
- package/plugins/fancy-story-builder/templates//351/252/250/346/236/266//345/261/202/347/272/247/346/250/241/346/235/277.json +65 -0
- package/plugins/fancy-story-builder/templates//351/252/250/346/236/266//346/241/206/346/236/266/346/250/241/346/235/277.json +134 -0
- package/plugins/fancy-story-builder/templates.js +1248 -0
- package/plugins/fancy-story-builder/wiki-references.js +204 -0
- package/plugins/fancy-story-builder/writing-driver.js +1061 -0
- package/plugins/fancy-topic/index.js +704 -0
- package/plugins/fancy-topic/scripts/select-topic.js +274 -0
- package/plugins/fancy-topic/templates.js +373 -0
- package/commands/bootstrap/index.js +0 -160
- package/commands/bootstrap/init-project.js +0 -121
- package/commands/scan/index.js +0 -275
- package/commands/scan/platforms/fanqie.js +0 -146
- package/commands/scan/platforms/jinjiang.js +0 -143
- package/commands/scan/platforms/qidian.js +0 -102
- package/commands/scan/platforms/qimao.js +0 -127
- package/commands/scan/scraper.js +0 -195
- package/infra.js +0 -160
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "时序映射模板",
|
|
4
|
+
"description": "节奏阶段时序映射的数据结构。所有实体的章节号在此文件的 11 类时序映射中唯一表达。骨架/血肉阶段的实体在这里被赋予章节位置。"
|
|
5
|
+
},
|
|
6
|
+
"structure": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"character_timeline": {
|
|
10
|
+
"type": "array",
|
|
11
|
+
"required": true,
|
|
12
|
+
"items": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"char_id": { "type": "string", "required": true, "pattern": "^C\\d{3}$" },
|
|
16
|
+
"appear_start": { "type": "number", "required": true },
|
|
17
|
+
"appear_end": { "type": "number", "required": true },
|
|
18
|
+
"exit_chapter": { "type": "number" },
|
|
19
|
+
"arc_stages": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"items": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {
|
|
24
|
+
"stage_name": { "type": "string", "required": true },
|
|
25
|
+
"chapter": { "type": "number", "required": true }
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"conflict_timeline": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"required": true,
|
|
35
|
+
"items": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"properties": {
|
|
38
|
+
"conflict_id": { "type": "string", "required": true, "pattern": "^X\\d{3}$" },
|
|
39
|
+
"escalation_nodes": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"required": true,
|
|
42
|
+
"items": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"properties": {
|
|
45
|
+
"node_type": { "type": "string", "required": true, "enumRef": "node_type" },
|
|
46
|
+
"chapter": { "type": "number", "required": true }
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"resolution_chapter": { "type": "number", "required": true },
|
|
51
|
+
"info_gaps": {
|
|
52
|
+
"type": "array",
|
|
53
|
+
"items": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"properties": {
|
|
56
|
+
"info_name": { "type": "string", "required": true },
|
|
57
|
+
"created": { "type": "number", "required": true },
|
|
58
|
+
"resolved": { "type": "number", "required": true }
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"foreshadow_timeline": {
|
|
66
|
+
"type": "array",
|
|
67
|
+
"required": true,
|
|
68
|
+
"items": {
|
|
69
|
+
"type": "object",
|
|
70
|
+
"properties": {
|
|
71
|
+
"fs_id": { "type": "string", "required": true, "pattern": "^FS\\d{3}$" },
|
|
72
|
+
"buried_chapter": { "type": "number", "required": true },
|
|
73
|
+
"recovered_chapter": { "type": "number", "required": true }
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"climax_timeline": {
|
|
78
|
+
"type": "array",
|
|
79
|
+
"required": true,
|
|
80
|
+
"items": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"properties": {
|
|
83
|
+
"climax_id": { "type": "string", "required": true, "pattern": "^CL\\d{3}$" },
|
|
84
|
+
"chapter": { "type": "number", "required": true }
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"pleasure_timeline": {
|
|
89
|
+
"type": "array",
|
|
90
|
+
"required": true,
|
|
91
|
+
"items": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"properties": {
|
|
94
|
+
"pleasure_id": { "type": "string", "required": true, "pattern": "^PL\\d{3}$" },
|
|
95
|
+
"chapter": { "type": "number", "required": true }
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"hook_timeline": {
|
|
100
|
+
"type": "array",
|
|
101
|
+
"required": true,
|
|
102
|
+
"items": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"properties": {
|
|
105
|
+
"ch": { "type": "number", "required": true },
|
|
106
|
+
"hook_head": { "type": "string", "required": true, "enumRef": "hook_form_head" },
|
|
107
|
+
"hook_tail": { "type": "string", "required": true, "enumRef": "hook_form_tail" },
|
|
108
|
+
"hook_strength": { "type": "string", "required": true, "enumRef": "hook_strength" }
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"main_line_timeline": {
|
|
113
|
+
"type": "array",
|
|
114
|
+
"required": true,
|
|
115
|
+
"items": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"properties": {
|
|
118
|
+
"main_id": { "type": "string", "required": true, "pattern": "^M\\d{3}$" },
|
|
119
|
+
"key_nodes": {
|
|
120
|
+
"type": "array",
|
|
121
|
+
"required": true,
|
|
122
|
+
"items": {
|
|
123
|
+
"type": "object",
|
|
124
|
+
"properties": {
|
|
125
|
+
"chapter": { "type": "number", "required": true },
|
|
126
|
+
"event_ref": { "type": "string", "required": true }
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"branch_timeline": {
|
|
134
|
+
"type": "array",
|
|
135
|
+
"required": true,
|
|
136
|
+
"items": {
|
|
137
|
+
"type": "object",
|
|
138
|
+
"properties": {
|
|
139
|
+
"branch_id": { "type": "string", "required": true, "pattern": "^B\\d{3}$" },
|
|
140
|
+
"start": { "type": "number", "required": true },
|
|
141
|
+
"turning": { "type": "number", "required": true },
|
|
142
|
+
"resolution": { "type": "number", "required": true },
|
|
143
|
+
"interweaves": {
|
|
144
|
+
"type": "array",
|
|
145
|
+
"items": {
|
|
146
|
+
"type": "object",
|
|
147
|
+
"properties": {
|
|
148
|
+
"chapter": { "type": "number", "required": true },
|
|
149
|
+
"description": { "type": "string", "required": true }
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"location_timeline": {
|
|
157
|
+
"type": "array",
|
|
158
|
+
"required": true,
|
|
159
|
+
"items": {
|
|
160
|
+
"type": "object",
|
|
161
|
+
"properties": {
|
|
162
|
+
"loc_id": { "type": "string", "required": true, "pattern": "^L\\d{3}$" },
|
|
163
|
+
"appear_start": { "type": "number", "required": true },
|
|
164
|
+
"appear_end": { "type": "number", "required": true }
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"item_timeline": {
|
|
169
|
+
"type": "array",
|
|
170
|
+
"required": true,
|
|
171
|
+
"items": {
|
|
172
|
+
"type": "object",
|
|
173
|
+
"properties": {
|
|
174
|
+
"item_id": { "type": "string", "required": true, "pattern": "^P\\d{3}$" },
|
|
175
|
+
"appear_start": { "type": "number", "required": true },
|
|
176
|
+
"appear_end": { "type": "number", "required": true }
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"ending_timeline": {
|
|
181
|
+
"type": "array",
|
|
182
|
+
"required": true,
|
|
183
|
+
"items": {
|
|
184
|
+
"type": "object",
|
|
185
|
+
"properties": {
|
|
186
|
+
"ending_id": { "type": "string", "required": true, "pattern": "^E\\d{3}$" },
|
|
187
|
+
"chapter": { "type": "number", "required": true },
|
|
188
|
+
"foreshadow_recovery": {
|
|
189
|
+
"type": "array",
|
|
190
|
+
"required": true,
|
|
191
|
+
"items": {
|
|
192
|
+
"type": "object",
|
|
193
|
+
"properties": {
|
|
194
|
+
"fs_id": { "type": "string", "required": true, "pattern": "^FS\\d{3}$" },
|
|
195
|
+
"chapter": { "type": "number", "required": true }
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "章节细纲模板",
|
|
4
|
+
"description": "节奏阶段章节细纲的数据结构。每章一行,记录功能/情绪/爽点/伏笔动作/势力出场/钩子/字数。可对重点章写,非重点章省略。"
|
|
5
|
+
},
|
|
6
|
+
"structure": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"outlines": {
|
|
10
|
+
"type": "array",
|
|
11
|
+
"required": true,
|
|
12
|
+
"items": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"ch": { "type": "number", "required": true },
|
|
16
|
+
"function_main": { "type": "string", "required": true },
|
|
17
|
+
"function_aux": { "type": "string" },
|
|
18
|
+
"emotion_value": { "type": "number", "required": true },
|
|
19
|
+
"emotion_phase": { "type": "string", "required": true },
|
|
20
|
+
"satisfaction_type": { "type": "string", "enumRef": "pleasure_kind" },
|
|
21
|
+
"satisfaction_scale": { "type": "string", "enumRef": "pleasure_scale" },
|
|
22
|
+
"satisfaction_audience": { "type": "string" },
|
|
23
|
+
"foreshadow_action": { "type": "string" },
|
|
24
|
+
"faction_appearance": { "type": "string" },
|
|
25
|
+
"hook_head": { "type": "string", "enumRef": "hook_form_head" },
|
|
26
|
+
"hook_tail": { "type": "string", "enumRef": "hook_form_tail" },
|
|
27
|
+
"hook_strength": { "type": "string", "enumRef": "hook_strength" },
|
|
28
|
+
"word_target": { "type": "number" }
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "章节规划模板",
|
|
4
|
+
"description": "节奏阶段章节规划的数据结构。每章一行,记录归属卷/幕/场景焦点。本模板是节奏阶段首个文件,章节号从此开始出现。"
|
|
5
|
+
},
|
|
6
|
+
"structure": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"chapters": {
|
|
10
|
+
"type": "array",
|
|
11
|
+
"required": true,
|
|
12
|
+
"items": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"ch": { "type": "number", "required": true },
|
|
16
|
+
"volume": { "type": "string", "required": true, "pattern": "^V\\d{3}$" },
|
|
17
|
+
"act": { "type": "number", "required": true },
|
|
18
|
+
"scene_focus": { "type": "string", "required": true }
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "节奏参数模板",
|
|
4
|
+
"description": "节奏阶段节奏参数的数据结构。三个核心参数(branch_chapter_total / overlap_chapter_count / main_progress_chapter_count)必须联合满足 formulas-rhythm.json 的 7 条约束。"
|
|
5
|
+
},
|
|
6
|
+
"structure": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"chapter_hook_rate": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"required": true,
|
|
12
|
+
"properties": {
|
|
13
|
+
"rate": { "type": "number", "required": true },
|
|
14
|
+
"is_minimum": { "type": "boolean", "required": true }
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"branch_chapter_total": { "type": "number", "required": true },
|
|
18
|
+
"overlap_chapter_count": { "type": "number", "required": true },
|
|
19
|
+
"main_progress_chapter_count": { "type": "number", "required": true },
|
|
20
|
+
"derivations": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"required": true,
|
|
23
|
+
"description": "开放对象。每个 key 为约束名(对应 formulas-rhythm.json 的 constraints 中的 name),value 为一段说明(为什么选这个值、如何满足约束)。由脚本专门校验,不走 EXTRA_FIELD。"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "世界观规则模板",
|
|
4
|
+
"description": "血肉阶段世界观规则档案的数据结构。在骨架实体.json 的 world_rules 基础上补充规则内容、适用范围、例外、影响。不含首次出现章(在节奏阶段)。"
|
|
5
|
+
},
|
|
6
|
+
"structure": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"core_rules": {
|
|
10
|
+
"type": "array",
|
|
11
|
+
"required": true,
|
|
12
|
+
"items": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"id": { "type": "string", "required": true, "pattern": "^R\\d{3}$" },
|
|
16
|
+
"name": { "type": "string", "required": true },
|
|
17
|
+
"content": { "type": "string", "required": true },
|
|
18
|
+
"applicable_scope": { "type": "string", "required": true },
|
|
19
|
+
"exception": { "type": "string" },
|
|
20
|
+
"impact_on_protagonist": { "type": "string", "required": true }
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"information_rules": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"required": true,
|
|
27
|
+
"items": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"properties": {
|
|
30
|
+
"id": { "type": "string", "required": true, "pattern": "^I\\d{3}$" },
|
|
31
|
+
"name": { "type": "string", "required": true },
|
|
32
|
+
"content": { "type": "string", "required": true },
|
|
33
|
+
"applicable_scope": { "type": "string", "required": true },
|
|
34
|
+
"exception": { "type": "string" },
|
|
35
|
+
"impact_on_protagonist": { "type": "string", "required": true }
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"social_rules": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"required": true,
|
|
42
|
+
"items": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"properties": {
|
|
45
|
+
"id": { "type": "string", "required": true, "pattern": "^SR\\d{3}$" },
|
|
46
|
+
"name": { "type": "string", "required": true },
|
|
47
|
+
"content": { "type": "string", "required": true },
|
|
48
|
+
"violation_consequence": { "type": "string", "required": true },
|
|
49
|
+
"impact_on_plot": { "type": "string", "required": true }
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"rule_conflict_plan": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"required": true,
|
|
56
|
+
"items": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"properties": {
|
|
59
|
+
"contradiction": { "type": "string", "required": true },
|
|
60
|
+
"solution": { "type": "string", "required": true }
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "关键道具模板",
|
|
4
|
+
"description": "血肉阶段关键道具档案的数据结构。在骨架实体.json 的 items 基础上补充功能、象征意义、详情。不含出现章节(在节奏阶段)。道具归属在骨架关系.json 的 item_owner,不在此重复。"
|
|
5
|
+
},
|
|
6
|
+
"structure": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"core_items": {
|
|
10
|
+
"type": "array",
|
|
11
|
+
"required": true,
|
|
12
|
+
"items": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"id": { "type": "string", "required": true, "pattern": "^P\\d{3}$" },
|
|
16
|
+
"name": { "type": "string", "required": true },
|
|
17
|
+
"function": { "type": "string", "required": true },
|
|
18
|
+
"relation": { "type": "string", "required": true }
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"branch_items": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"required": true,
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"properties": {
|
|
28
|
+
"id": { "type": "string", "required": true, "pattern": "^P\\d{3}$" },
|
|
29
|
+
"name": { "type": "string", "required": true },
|
|
30
|
+
"function": { "type": "string", "required": true },
|
|
31
|
+
"relation": { "type": "string", "required": true }
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"symbolic_items": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"required": true,
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"properties": {
|
|
41
|
+
"id": { "type": "string", "required": true, "pattern": "^P\\d{3}$" },
|
|
42
|
+
"name": { "type": "string", "required": true },
|
|
43
|
+
"symbolic_meaning": { "type": "string", "required": true },
|
|
44
|
+
"usage_scenario": { "type": "string", "required": true }
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"details": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"required": true,
|
|
51
|
+
"items": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"properties": {
|
|
54
|
+
"id": { "type": "string", "required": true, "pattern": "^P\\d{3}$" },
|
|
55
|
+
"name": { "type": "string", "required": true },
|
|
56
|
+
"type": { "type": "string", "required": true },
|
|
57
|
+
"appearance": { "type": "string", "required": true },
|
|
58
|
+
"origin": { "type": "string", "required": true },
|
|
59
|
+
"function_detail": { "type": "string", "required": true },
|
|
60
|
+
"limit": { "type": "string" },
|
|
61
|
+
"related_characters": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"required": true,
|
|
64
|
+
"items": { "type": "string" }
|
|
65
|
+
},
|
|
66
|
+
"related_conflicts": {
|
|
67
|
+
"type": "array",
|
|
68
|
+
"required": true,
|
|
69
|
+
"items": { "type": "string" }
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "冲突模板",
|
|
4
|
+
"description": "血肉阶段冲突档案的数据结构。在骨架实体.json 的 conflicts 基础上补充描述、矛盾、升级路径、信息差内容。不含任何章节号。冲突参与方在骨架关系.json 的 conflict_participants,不在此重复。"
|
|
5
|
+
},
|
|
6
|
+
"structure": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"conflicts": {
|
|
10
|
+
"type": "array",
|
|
11
|
+
"required": true,
|
|
12
|
+
"items": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"id": { "type": "string", "required": true, "pattern": "^X\\d{3}$" },
|
|
16
|
+
"name": { "type": "string", "required": true },
|
|
17
|
+
"description": { "type": "string", "required": true },
|
|
18
|
+
"core_goal": { "type": "string", "required": true },
|
|
19
|
+
"influence_scope": { "type": "string", "required": true },
|
|
20
|
+
"focus_points": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"required": true,
|
|
23
|
+
"items": { "type": "string" }
|
|
24
|
+
},
|
|
25
|
+
"surface_contradiction": { "type": "string", "required": true },
|
|
26
|
+
"deep_contradiction": { "type": "string" },
|
|
27
|
+
"ultimate_contradiction": { "type": "string" },
|
|
28
|
+
"escalation_path": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"required": true,
|
|
31
|
+
"items": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"properties": {
|
|
34
|
+
"node_type": { "type": "string", "required": true, "enumRef": "node_type" },
|
|
35
|
+
"description": { "type": "string", "required": true }
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"resolution_plan": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"required": true,
|
|
42
|
+
"properties": {
|
|
43
|
+
"method": { "type": "string", "required": true },
|
|
44
|
+
"residual_impact": { "type": "string", "required": true }
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"information_gaps": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"properties": {
|
|
52
|
+
"info_name": { "type": "string", "required": true },
|
|
53
|
+
"who_knows": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"required": true,
|
|
56
|
+
"items": { "type": "string" }
|
|
57
|
+
},
|
|
58
|
+
"who_does_not_know": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"required": true,
|
|
61
|
+
"items": { "type": "string" }
|
|
62
|
+
},
|
|
63
|
+
"resolution_method": { "type": "string", "required": true }
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "剧情模板",
|
|
4
|
+
"description": "血肉阶段剧情档案的数据结构。在骨架实体.json 的 main_lines / branches 基础上补充'驱动'与'目标'。不含任何章节号(章节归属在骨架层级.json 的卷比例 + 节奏阶段时序映射)。"
|
|
5
|
+
},
|
|
6
|
+
"structure": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"main_lines": {
|
|
10
|
+
"type": "array",
|
|
11
|
+
"required": true,
|
|
12
|
+
"items": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"id": { "type": "string", "required": true, "pattern": "^M\\d{3}$" },
|
|
16
|
+
"name": { "type": "string", "required": true },
|
|
17
|
+
"core_drive": { "type": "string", "required": true }
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"branches": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"required": true,
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"id": { "type": "string", "required": true, "pattern": "^B\\d{3}$" },
|
|
28
|
+
"name": { "type": "string", "required": true },
|
|
29
|
+
"goal": { "type": "string", "required": true },
|
|
30
|
+
"main_relation": { "type": "string", "required": true },
|
|
31
|
+
"expected_outcome": { "type": "string", "required": true }
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "势力模板",
|
|
4
|
+
"description": "血肉阶段势力档案的数据结构。在骨架实体.json 的 factions 基础上补充目标、资源、内部结构、压制手段等。成员 ID 关系在骨架关系.json 的 faction_membership,此处的 members 是'人读的详细描述',字段名与骨架不同,不构成重复。"
|
|
5
|
+
},
|
|
6
|
+
"structure": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"factions": {
|
|
10
|
+
"type": "array",
|
|
11
|
+
"required": true,
|
|
12
|
+
"items": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"id": { "type": "string", "required": true, "pattern": "^F\\d{3}$" },
|
|
16
|
+
"name": { "type": "string", "required": true },
|
|
17
|
+
"goal": { "type": "string", "required": true },
|
|
18
|
+
"resources": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"required": true,
|
|
21
|
+
"items": { "type": "string" }
|
|
22
|
+
},
|
|
23
|
+
"internal_structure": { "type": "string", "required": true },
|
|
24
|
+
"suppression_method": { "type": "string", "required": true },
|
|
25
|
+
"resource_seizure_path": { "type": "string", "required": true },
|
|
26
|
+
"main_line_connection": { "type": "string", "required": true },
|
|
27
|
+
"members": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"items": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"properties": {
|
|
32
|
+
"name": { "type": "string", "required": true },
|
|
33
|
+
"position_description": { "type": "string", "required": true },
|
|
34
|
+
"relation_description": { "type": "string", "required": true }
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"relations": {
|
|
39
|
+
"type": "array",
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"properties": {
|
|
43
|
+
"target_name": { "type": "string", "required": true },
|
|
44
|
+
"description": { "type": "string", "required": true }
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "地点模板",
|
|
4
|
+
"description": "血肉阶段地点档案的数据结构。在骨架实体.json 的 locations 基础上补充空间特征、关键事件描述、叙事作用描述。不含出现章节(在节奏阶段时序映射)。地点关联的冲突在骨架关系.json 的 location_conflict,不在此重复。"
|
|
5
|
+
},
|
|
6
|
+
"structure": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"locations": {
|
|
10
|
+
"type": "array",
|
|
11
|
+
"required": true,
|
|
12
|
+
"items": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"id": { "type": "string", "required": true, "pattern": "^L\\d{3}$" },
|
|
16
|
+
"name": { "type": "string", "required": true },
|
|
17
|
+
"features": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"required": true,
|
|
20
|
+
"properties": {
|
|
21
|
+
"layout": { "type": "string", "required": true },
|
|
22
|
+
"key_elements": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"required": true,
|
|
25
|
+
"items": { "type": "string" }
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"key_event_descriptions": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"required": true,
|
|
32
|
+
"items": { "type": "string" }
|
|
33
|
+
},
|
|
34
|
+
"narrative_role_description": { "type": "string", "required": true }
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|