@cloud411716/fancy-webnovel 2.2.0 → 3.0.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.
Files changed (211) hide show
  1. package/client.js +201 -15
  2. package/cordis.patch.yml +5 -0
  3. package/docs/douyin-plugin.md +118 -0
  4. package/docs/material-library/README.md +404 -0
  5. package/docs/material-library/import.js +437 -0
  6. package/docs/material-library/prompt.md +370 -0
  7. package/docs/material-library/queries.surql +94 -0
  8. package/docs/material-library/sample.jsonl +14 -0
  9. package/docs/material-library/schema.surql +46 -0
  10. package/docs/mcp-profile.example.yml +24 -0
  11. package/docs/story-graph-design.md +602 -0
  12. package/docs/story-graph-validation.md +81 -0
  13. package/docs/workspace-mcp.md +284 -0
  14. package/index.js +11 -7
  15. package/lib/atomic-write.js +109 -0
  16. package/lib/chapter-order.js +100 -0
  17. package/lib/confirmation.js +80 -0
  18. package/lib/db-init.js +123 -0
  19. package/lib/deployed-state.js +11 -11
  20. package/lib/direction-labels.js +265 -0
  21. package/lib/error-codes.js +31 -31
  22. package/lib/infra.js +29 -4
  23. package/lib/material-db.js +149 -0
  24. package/lib/path-guard.js +150 -0
  25. package/lib/projects.js +400 -0
  26. package/lib/scraper-utils.js +140 -0
  27. package/lib/surreal-server.js +338 -0
  28. package/lib/topic-decision.js +860 -0
  29. package/lib/topic-fields.js +251 -0
  30. package/lib/topic-schema.js +225 -0
  31. package/lib/workspace.js +501 -0
  32. package/package.json +29 -4
  33. package/plugins/fancy-analyze/analyze-definitions.md +519 -0
  34. package/plugins/fancy-analyze/index.js +1128 -77
  35. package/plugins/fancy-analyze/ingest-coverage.js +107 -0
  36. package/plugins/fancy-analyze/schema-analyze.md +355 -107
  37. package/plugins/fancy-analyze/scripts/append-summary-chapter.js +612 -0
  38. package/plugins/fancy-analyze/summary-progress.js +71 -7
  39. package/plugins/fancy-analyze/templates.js +437 -139
  40. package/plugins/fancy-bootstrap/index.js +276 -131
  41. package/plugins/fancy-bootstrap/scripts/init.js +59 -25
  42. package/plugins/fancy-bootstrap/templates.js +35 -18
  43. package/plugins/fancy-db/index.js +172 -0
  44. package/plugins/fancy-douyin/deploy.js +134 -0
  45. package/plugins/fancy-douyin/index.js +551 -0
  46. package/plugins/fancy-douyin/prompts/01-analysis-prompt.md +84 -0
  47. package/plugins/fancy-douyin/scripts/crawl-note.cjs +194 -0
  48. package/plugins/fancy-douyin/scripts/lib.cjs +197 -0
  49. package/plugins/fancy-douyin/scripts/scan-account.cjs +128 -0
  50. package/plugins/fancy-douyin/scripts/start-chrome.cjs +203 -0
  51. package/plugins/fancy-douyin/state.js +197 -0
  52. package/plugins/fancy-douyin/templates.js +127 -0
  53. package/plugins/fancy-export/exporter.js +805 -0
  54. package/plugins/fancy-export/index.js +63 -0
  55. package/plugins/fancy-import/import-driver.js +29 -6
  56. package/plugins/fancy-import/index.js +13 -5
  57. package/plugins/fancy-import/prompts/01-import-prompt.md +39 -14
  58. package/plugins/fancy-import/templates.js +17 -8
  59. package/plugins/fancy-material/exporter.js +153 -0
  60. package/plugins/fancy-material/genres.js +256 -0
  61. package/plugins/fancy-material/index.js +835 -0
  62. package/plugins/fancy-material/inventory.js +143 -0
  63. package/plugins/fancy-material/kinds.js +313 -0
  64. package/plugins/fancy-material/queue.js +55 -0
  65. package/plugins/fancy-material/scripts/query.js +254 -0
  66. package/plugins/fancy-material/templates.js +258 -0
  67. package/plugins/fancy-material/tool-deploy.js +138 -0
  68. package/plugins/fancy-material/validate.js +149 -0
  69. package/plugins/fancy-project/index.js +133 -0
  70. package/plugins/fancy-scan/existing-block.js +100 -0
  71. package/plugins/fancy-scan/index.js +410 -21
  72. package/plugins/fancy-scan/prompts/01-analysis-prompt.md +302 -0
  73. package/plugins/fancy-scan/scripts/append-block.js +725 -0
  74. package/plugins/fancy-scan/scripts/report-validate.js +824 -0
  75. package/plugins/fancy-scan/scripts/run-scan.js +169 -22
  76. package/plugins/fancy-scan/scripts/scrapers/fanqie-rank-scraper.js +145 -16
  77. package/plugins/fancy-scan/scripts/scrapers/jjwxc-rank-scraper.js +179 -49
  78. package/plugins/fancy-scan/scripts/scrapers/qimao-rank-scraper.js +38 -20
  79. package/plugins/fancy-scan/templates/blocks.js +155 -0
  80. package/plugins/fancy-scan/templates/platforms.js +372 -0
  81. package/plugins/fancy-scan/templates/report-schema.js +90 -0
  82. package/plugins/fancy-scan/templates.js +545 -146
  83. package/plugins/fancy-scan/tool-deploy.js +335 -0
  84. package/plugins/fancy-scan/wait-turn.js +46 -0
  85. package/plugins/fancy-story-builder/db/README.md +106 -0
  86. package/plugins/fancy-story-builder/db/client.js +228 -0
  87. package/plugins/fancy-story-builder/db/commands.js +145 -0
  88. package/plugins/fancy-story-builder/db/ids.js +39 -0
  89. package/plugins/fancy-story-builder/db/import.js +798 -0
  90. package/plugins/fancy-story-builder/db/project.js +299 -0
  91. package/plugins/fancy-story-builder/db/query.js +361 -0
  92. package/plugins/fancy-story-builder/db/schema.js +417 -0
  93. package/plugins/fancy-story-builder/db/stage-sync.js +238 -0
  94. package/plugins/fancy-story-builder/flesh-output.js +19 -6
  95. package/plugins/fancy-story-builder/index.js +4105 -396
  96. package/plugins/fancy-story-builder/patch-driver.js +390 -0
  97. package/plugins/fancy-story-builder/prompts/01-skeleton-prompt.md +29 -19
  98. package/plugins/fancy-story-builder/prompts/02-flesh-prompt.md +72 -10
  99. package/plugins/fancy-story-builder/prompts/03-rhythm-prompt.md +40 -5
  100. package/plugins/fancy-story-builder/prompts/04-writing-prompt.md +37 -0
  101. package/plugins/fancy-story-builder/purpose-template.md +42 -66
  102. package/plugins/fancy-story-builder/references/formulas-skeleton.json +229 -56
  103. package/plugins/fancy-story-builder/references/genre-profiles.json +3514 -0
  104. package/plugins/fancy-story-builder/references/glossary.md +15 -6
  105. package/plugins/fancy-story-builder/references/index.md +97 -6
  106. package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/00-index.md +1 -1
  107. package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/07-audit.md +25 -7
  108. package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/01-character.md +5 -1
  109. package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/03-relations.md +6 -2
  110. package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/05-audit.md +15 -5
  111. package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/00-index.md +1 -1
  112. package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/01-positioning.md +2 -1
  113. package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/03-entities.md +1 -1
  114. package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/06-audit.md +19 -1
  115. package/plugins/fancy-story-builder/schema-setting.json +1100 -0
  116. package/plugins/fancy-story-builder/schema-setting.md +201 -293
  117. package/plugins/fancy-story-builder/scripts/brief-validate.js +164 -0
  118. package/plugins/fancy-story-builder/scripts/content-quality.js +4 -1
  119. package/plugins/fancy-story-builder/scripts/flesh-validate.js +135 -12
  120. package/plugins/fancy-story-builder/scripts/graph-utils.js +146 -47
  121. package/plugins/fancy-story-builder/scripts/reference-log.js +110 -0
  122. package/plugins/fancy-story-builder/scripts/rhythm-validate.js +100 -4
  123. package/plugins/fancy-story-builder/scripts/schema-pages.js +2668 -0
  124. package/plugins/fancy-story-builder/scripts/semantic-lint.js +5 -1
  125. package/plugins/fancy-story-builder/scripts/skeleton-validate.js +158 -17
  126. package/plugins/fancy-story-builder/scripts/stage-batches.js +36 -2
  127. package/plugins/fancy-story-builder/scripts/stage-contract.js +12 -0
  128. package/plugins/fancy-story-builder/scripts/story-artifacts.js +933 -0
  129. package/plugins/fancy-story-builder/scripts/upstream-query.js +1 -1
  130. package/plugins/fancy-story-builder/scripts/v2/baseline.js +112 -0
  131. package/plugins/fancy-story-builder/scripts/v2/cast.js +517 -0
  132. package/plugins/fancy-story-builder/scripts/v2/context.js +434 -0
  133. package/plugins/fancy-story-builder/scripts/v2/contracts.js +493 -0
  134. package/plugins/fancy-story-builder/scripts/v2/core.js +419 -0
  135. package/plugins/fancy-story-builder/scripts/v2/engine.js +1068 -0
  136. package/plugins/fancy-story-builder/scripts/v2/export-markdown.js +794 -0
  137. package/plugins/fancy-story-builder/scripts/v2/genre.js +195 -0
  138. package/plugins/fancy-story-builder/scripts/v2/knowledge.js +321 -0
  139. package/plugins/fancy-story-builder/scripts/v2/macro.js +409 -0
  140. package/plugins/fancy-story-builder/scripts/v2/manifest.js +538 -0
  141. package/plugins/fancy-story-builder/scripts/v2/migrate.js +137 -0
  142. package/plugins/fancy-story-builder/scripts/v2/prompts.js +1335 -0
  143. package/plugins/fancy-story-builder/scripts/v2/rhythm.js +618 -0
  144. package/plugins/fancy-story-builder/scripts/v2/scale.js +843 -0
  145. package/plugins/fancy-story-builder/scripts/v2/snapshot.js +121 -0
  146. package/plugins/fancy-story-builder/scripts/v2/stages.js +273 -0
  147. package/plugins/fancy-story-builder/scripts/v2/writing.js +216 -0
  148. package/plugins/fancy-story-builder/storydb/README.md +271 -0
  149. package/plugins/fancy-story-builder/storydb/cli.js +458 -0
  150. package/plugins/fancy-story-builder/storydb/client.js +351 -0
  151. package/plugins/fancy-story-builder/storydb/compile.js +452 -0
  152. package/plugins/fancy-story-builder/storydb/context.js +288 -0
  153. package/plugins/fancy-story-builder/storydb/definitions.js +699 -0
  154. package/plugins/fancy-story-builder/storydb/driver.js +106 -0
  155. package/plugins/fancy-story-builder/storydb/dsh-tools.js +313 -0
  156. package/plugins/fancy-story-builder/storydb/export.js +175 -0
  157. package/plugins/fancy-story-builder/storydb/ids.js +31 -0
  158. package/plugins/fancy-story-builder/storydb/impact.js +170 -0
  159. package/plugins/fancy-story-builder/storydb/import.js +559 -0
  160. package/plugins/fancy-story-builder/storydb/mcp.js +99 -0
  161. package/plugins/fancy-story-builder/storydb/prompts.js +952 -0
  162. package/plugins/fancy-story-builder/storydb/stage-command.js +379 -0
  163. package/plugins/fancy-story-builder/storydb/stage.js +426 -0
  164. package/plugins/fancy-story-builder/storydb/store.js +891 -0
  165. package/plugins/fancy-story-builder/storydb/tools.js +592 -0
  166. package/plugins/fancy-story-builder/storydb/validation.js +183 -0
  167. package/plugins/fancy-story-builder/templates/v2/10-scale/scale-template.json +144 -0
  168. package/plugins/fancy-story-builder/templates/v2/20-macro/emotion-template.json +15 -0
  169. package/plugins/fancy-story-builder/templates/v2/20-macro/endings-template.json +16 -0
  170. package/plugins/fancy-story-builder/templates/v2/20-macro/lines-template.json +28 -0
  171. package/plugins/fancy-story-builder/templates/v2/20-macro/roles-template.json +10 -0
  172. package/plugins/fancy-story-builder/templates/v2/20-macro/story-template.json +19 -0
  173. package/plugins/fancy-story-builder/templates/v2/20-macro/volumes-template.json +24 -0
  174. package/plugins/fancy-story-builder/templates/v2/20-macro/world-template.json +24 -0
  175. package/plugins/fancy-story-builder/templates/v2/30-cast/characters-template.json +49 -0
  176. package/plugins/fancy-story-builder/templates/v2/30-cast/climaxes-template.json +14 -0
  177. package/plugins/fancy-story-builder/templates/v2/30-cast/conflicts-template.json +30 -0
  178. package/plugins/fancy-story-builder/templates/v2/30-cast/factions-template.json +18 -0
  179. package/plugins/fancy-story-builder/templates/v2/30-cast/foreshadows-template.json +29 -0
  180. package/plugins/fancy-story-builder/templates/v2/30-cast/information-template.json +29 -0
  181. package/plugins/fancy-story-builder/templates/v2/30-cast/items-template.json +13 -0
  182. package/plugins/fancy-story-builder/templates/v2/30-cast/locations-template.json +12 -0
  183. package/plugins/fancy-story-builder/templates/v2/30-cast/payoffs-template.json +16 -0
  184. package/plugins/fancy-story-builder/templates/v2/30-cast/relations-template.json +44 -0
  185. package/plugins/fancy-story-builder/templates/v2/40-rhythm/chapter-map-template.json +81 -0
  186. package/plugins/fancy-story-builder/templates/v2/40-rhythm/outline-template.json +162 -0
  187. package/plugins/fancy-story-builder/templates/v2/50-writing/ledger-template.json +46 -0
  188. package/plugins/fancy-story-builder/templates/v2/60-deslop/report-template.json +10 -0
  189. 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 +267 -44
  190. 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 +121 -19
  191. 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 +129 -21
  192. package/plugins/fancy-story-builder/templates//350/241/200/350/202/211//345/205/266/344/273/226/345/256/236/344/275/223/346/250/241/346/235/277.json +62 -0
  193. 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 +76 -17
  194. 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 +56 -8
  195. 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 +63 -13
  196. 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 +34 -6
  197. 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 +81 -18
  198. 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 +202 -42
  199. 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 +160 -27
  200. 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 +217 -41
  201. 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 +215 -41
  202. package/plugins/fancy-story-builder/templates.js +272 -74
  203. package/plugins/fancy-story-builder/wiki-references.js +429 -93
  204. package/plugins/fancy-story-builder/writing-driver.js +336 -9
  205. package/plugins/fancy-topic/index.js +414 -61
  206. package/plugins/fancy-topic/prompts/01-exploration-prompt.md +115 -0
  207. package/plugins/fancy-topic/scripts/save-suggestion.js +219 -0
  208. package/plugins/fancy-topic/scripts/select-topic.js +106 -63
  209. package/plugins/fancy-topic/templates.js +225 -122
  210. package/plugins/fancy-topic/tool-deploy.js +200 -0
  211. package/lib/safe-rm.js +0 -94
@@ -12,10 +12,34 @@
12
12
  "items": {
13
13
  "type": "object",
14
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 }
15
+ "id": {
16
+ "type": "string",
17
+ "required": true,
18
+ "pattern": "^P\\d{3}$"
19
+ },
20
+ "name": {
21
+ "type": "string",
22
+ "required": true
23
+ },
24
+ "function": {
25
+ "type": "string",
26
+ "required": true
27
+ },
28
+ "relation": {
29
+ "type": "string",
30
+ "required": true
31
+ },
32
+ "traits": {
33
+ "type": "array",
34
+ "description": "3-5 个独属于该实体的特征/习惯/感官锚点",
35
+ "items": {
36
+ "type": "string"
37
+ }
38
+ },
39
+ "extensions": {
40
+ "type": "object",
41
+ "description": "题材特有的扩展设定;键用中文,值用字符串/数组,不要塞章节号"
42
+ }
19
43
  }
20
44
  }
21
45
  },
@@ -25,10 +49,34 @@
25
49
  "items": {
26
50
  "type": "object",
27
51
  "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 }
52
+ "id": {
53
+ "type": "string",
54
+ "required": true,
55
+ "pattern": "^P\\d{3}$"
56
+ },
57
+ "name": {
58
+ "type": "string",
59
+ "required": true
60
+ },
61
+ "function": {
62
+ "type": "string",
63
+ "required": true
64
+ },
65
+ "relation": {
66
+ "type": "string",
67
+ "required": true
68
+ },
69
+ "traits": {
70
+ "type": "array",
71
+ "description": "3-5 个独属于该实体的特征/习惯/感官锚点",
72
+ "items": {
73
+ "type": "string"
74
+ }
75
+ },
76
+ "extensions": {
77
+ "type": "object",
78
+ "description": "题材特有的扩展设定;键用中文,值用字符串/数组,不要塞章节号"
79
+ }
32
80
  }
33
81
  }
34
82
  },
@@ -38,10 +86,34 @@
38
86
  "items": {
39
87
  "type": "object",
40
88
  "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 }
89
+ "id": {
90
+ "type": "string",
91
+ "required": true,
92
+ "pattern": "^P\\d{3}$"
93
+ },
94
+ "name": {
95
+ "type": "string",
96
+ "required": true
97
+ },
98
+ "symbolic_meaning": {
99
+ "type": "string",
100
+ "required": true
101
+ },
102
+ "usage_scenario": {
103
+ "type": "string",
104
+ "required": true
105
+ },
106
+ "traits": {
107
+ "type": "array",
108
+ "description": "3-5 个独属于该实体的特征/习惯/感官锚点",
109
+ "items": {
110
+ "type": "string"
111
+ }
112
+ },
113
+ "extensions": {
114
+ "type": "object",
115
+ "description": "题材特有的扩展设定;键用中文,值用字符串/数组,不要塞章节号"
116
+ }
45
117
  }
46
118
  }
47
119
  },
@@ -51,22 +123,58 @@
51
123
  "items": {
52
124
  "type": "object",
53
125
  "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" },
126
+ "id": {
127
+ "type": "string",
128
+ "required": true,
129
+ "pattern": "^P\\d{3}$"
130
+ },
131
+ "name": {
132
+ "type": "string",
133
+ "required": true
134
+ },
135
+ "type": {
136
+ "type": "string",
137
+ "required": true
138
+ },
139
+ "appearance": {
140
+ "type": "string",
141
+ "required": true
142
+ },
143
+ "origin": {
144
+ "type": "string",
145
+ "required": true
146
+ },
147
+ "function_detail": {
148
+ "type": "string",
149
+ "required": true
150
+ },
151
+ "limit": {
152
+ "type": "string"
153
+ },
61
154
  "related_characters": {
62
155
  "type": "array",
63
156
  "required": true,
64
- "items": { "type": "string" }
157
+ "items": {
158
+ "type": "string"
159
+ }
65
160
  },
66
161
  "related_conflicts": {
67
162
  "type": "array",
68
163
  "required": true,
69
- "items": { "type": "string" }
164
+ "items": {
165
+ "type": "string"
166
+ }
167
+ },
168
+ "traits": {
169
+ "type": "array",
170
+ "description": "3-5 个独属于该实体的特征/习惯/感官锚点",
171
+ "items": {
172
+ "type": "string"
173
+ }
174
+ },
175
+ "extensions": {
176
+ "type": "object",
177
+ "description": "题材特有的扩展设定;键用中文,值用字符串/数组,不要塞章节号"
70
178
  }
71
179
  }
72
180
  }
@@ -0,0 +1,62 @@
1
+ {
2
+ "meta": {
3
+ "name": "其他实体模板",
4
+ "description": "题材特有的非人物实体档案(灵魂/神魂/器灵/妖灵/概念体等)。只写骨架 实体.json 的 other_entities 已登记的对象,不得自创 id。不含章节号。"
5
+ },
6
+ "structure": {
7
+ "type": "object",
8
+ "properties": {
9
+ "other_entities": {
10
+ "type": "array",
11
+ "required": true,
12
+ "items": {
13
+ "type": "object",
14
+ "properties": {
15
+ "id": {
16
+ "type": "string",
17
+ "required": true,
18
+ "pattern": "^O\\d{3}$"
19
+ },
20
+ "name": {
21
+ "type": "string",
22
+ "required": true
23
+ },
24
+ "kind": {
25
+ "type": "string",
26
+ "required": true
27
+ },
28
+ "description": {
29
+ "type": "string",
30
+ "required": true
31
+ },
32
+ "traits": {
33
+ "type": "array",
34
+ "description": "3-5 个独属于该存在的特征/征兆/感官锚点",
35
+ "items": {
36
+ "type": "string"
37
+ }
38
+ },
39
+ "abilities": {
40
+ "type": "array",
41
+ "description": "它能做什么;每条写清代价或限制,不要写成万能设定",
42
+ "items": {
43
+ "type": "string"
44
+ }
45
+ },
46
+ "limits": {
47
+ "type": "array",
48
+ "description": "它不能做什么、怕什么、受什么约束",
49
+ "items": {
50
+ "type": "string"
51
+ }
52
+ },
53
+ "extensions": {
54
+ "type": "object",
55
+ "description": "题材特有的扩展设定;键用中文,值用字符串/数组/对象,不要塞章节号"
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
@@ -12,27 +12,59 @@
12
12
  "items": {
13
13
  "type": "object",
14
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 },
15
+ "id": {
16
+ "type": "string",
17
+ "required": true,
18
+ "pattern": "^X\\d{3}$"
19
+ },
20
+ "name": {
21
+ "type": "string",
22
+ "required": true
23
+ },
24
+ "description": {
25
+ "type": "string",
26
+ "required": true
27
+ },
28
+ "core_goal": {
29
+ "type": "string",
30
+ "required": true
31
+ },
32
+ "influence_scope": {
33
+ "type": "string",
34
+ "required": true
35
+ },
20
36
  "focus_points": {
21
37
  "type": "array",
22
38
  "required": true,
23
- "items": { "type": "string" }
39
+ "items": {
40
+ "type": "string"
41
+ }
42
+ },
43
+ "surface_contradiction": {
44
+ "type": "string",
45
+ "required": true
46
+ },
47
+ "deep_contradiction": {
48
+ "type": "string"
49
+ },
50
+ "ultimate_contradiction": {
51
+ "type": "string"
24
52
  },
25
- "surface_contradiction": { "type": "string", "required": true },
26
- "deep_contradiction": { "type": "string" },
27
- "ultimate_contradiction": { "type": "string" },
28
53
  "escalation_path": {
29
54
  "type": "array",
30
55
  "required": true,
31
56
  "items": {
32
57
  "type": "object",
33
58
  "properties": {
34
- "node_type": { "type": "string", "required": true, "enumRef": "node_type" },
35
- "description": { "type": "string", "required": true }
59
+ "node_type": {
60
+ "type": "string",
61
+ "required": true,
62
+ "enumRef": "node_type"
63
+ },
64
+ "description": {
65
+ "type": "string",
66
+ "required": true
67
+ }
36
68
  }
37
69
  }
38
70
  },
@@ -40,8 +72,14 @@
40
72
  "type": "object",
41
73
  "required": true,
42
74
  "properties": {
43
- "method": { "type": "string", "required": true },
44
- "residual_impact": { "type": "string", "required": true }
75
+ "method": {
76
+ "type": "string",
77
+ "required": true
78
+ },
79
+ "residual_impact": {
80
+ "type": "string",
81
+ "required": true
82
+ }
45
83
  }
46
84
  },
47
85
  "information_gaps": {
@@ -49,20 +87,41 @@
49
87
  "items": {
50
88
  "type": "object",
51
89
  "properties": {
52
- "info_name": { "type": "string", "required": true },
90
+ "info_name": {
91
+ "type": "string",
92
+ "required": true
93
+ },
53
94
  "who_knows": {
54
95
  "type": "array",
55
96
  "required": true,
56
- "items": { "type": "string" }
97
+ "items": {
98
+ "type": "string"
99
+ }
57
100
  },
58
101
  "who_does_not_know": {
59
102
  "type": "array",
60
103
  "required": true,
61
- "items": { "type": "string" }
104
+ "items": {
105
+ "type": "string"
106
+ }
62
107
  },
63
- "resolution_method": { "type": "string", "required": true }
108
+ "resolution_method": {
109
+ "type": "string",
110
+ "required": true
111
+ }
64
112
  }
65
113
  }
114
+ },
115
+ "traits": {
116
+ "type": "array",
117
+ "description": "3-5 个独属于该实体的特征/习惯/感官锚点",
118
+ "items": {
119
+ "type": "string"
120
+ }
121
+ },
122
+ "extensions": {
123
+ "type": "object",
124
+ "description": "题材特有的扩展设定;键用中文,值用字符串/数组,不要塞章节号"
66
125
  }
67
126
  }
68
127
  }
@@ -12,9 +12,30 @@
12
12
  "items": {
13
13
  "type": "object",
14
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 }
15
+ "id": {
16
+ "type": "string",
17
+ "required": true,
18
+ "pattern": "^M\\d{3}$"
19
+ },
20
+ "name": {
21
+ "type": "string",
22
+ "required": true
23
+ },
24
+ "core_drive": {
25
+ "type": "string",
26
+ "required": true
27
+ },
28
+ "traits": {
29
+ "type": "array",
30
+ "description": "3-5 个独属于该实体的特征/习惯/感官锚点",
31
+ "items": {
32
+ "type": "string"
33
+ }
34
+ },
35
+ "extensions": {
36
+ "type": "object",
37
+ "description": "题材特有的扩展设定;键用中文,值用字符串/数组,不要塞章节号"
38
+ }
18
39
  }
19
40
  }
20
41
  },
@@ -24,11 +45,38 @@
24
45
  "items": {
25
46
  "type": "object",
26
47
  "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 }
48
+ "id": {
49
+ "type": "string",
50
+ "required": true,
51
+ "pattern": "^B\\d{3}$"
52
+ },
53
+ "name": {
54
+ "type": "string",
55
+ "required": true
56
+ },
57
+ "goal": {
58
+ "type": "string",
59
+ "required": true
60
+ },
61
+ "main_relation": {
62
+ "type": "string",
63
+ "required": true
64
+ },
65
+ "expected_outcome": {
66
+ "type": "string",
67
+ "required": true
68
+ },
69
+ "traits": {
70
+ "type": "array",
71
+ "description": "3-5 个独属于该实体的特征/习惯/感官锚点",
72
+ "items": {
73
+ "type": "string"
74
+ }
75
+ },
76
+ "extensions": {
77
+ "type": "object",
78
+ "description": "题材特有的扩展设定;键用中文,值用字符串/数组,不要塞章节号"
79
+ }
32
80
  }
33
81
  }
34
82
  }
@@ -12,26 +12,59 @@
12
12
  "items": {
13
13
  "type": "object",
14
14
  "properties": {
15
- "id": { "type": "string", "required": true, "pattern": "^F\\d{3}$" },
16
- "name": { "type": "string", "required": true },
17
- "goal": { "type": "string", "required": true },
15
+ "id": {
16
+ "type": "string",
17
+ "required": true,
18
+ "pattern": "^F\\d{3}$"
19
+ },
20
+ "name": {
21
+ "type": "string",
22
+ "required": true
23
+ },
24
+ "goal": {
25
+ "type": "string",
26
+ "required": true
27
+ },
18
28
  "resources": {
19
29
  "type": "array",
20
30
  "required": true,
21
- "items": { "type": "string" }
31
+ "items": {
32
+ "type": "string"
33
+ }
34
+ },
35
+ "internal_structure": {
36
+ "type": "string",
37
+ "required": true
38
+ },
39
+ "suppression_method": {
40
+ "type": "string",
41
+ "required": true
42
+ },
43
+ "resource_seizure_path": {
44
+ "type": "string",
45
+ "required": true
46
+ },
47
+ "main_line_connection": {
48
+ "type": "string",
49
+ "required": true
22
50
  },
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
51
  "members": {
28
52
  "type": "array",
29
53
  "items": {
30
54
  "type": "object",
31
55
  "properties": {
32
- "name": { "type": "string", "required": true },
33
- "position_description": { "type": "string", "required": true },
34
- "relation_description": { "type": "string", "required": true }
56
+ "name": {
57
+ "type": "string",
58
+ "required": true
59
+ },
60
+ "position_description": {
61
+ "type": "string",
62
+ "required": true
63
+ },
64
+ "relation_description": {
65
+ "type": "string",
66
+ "required": true
67
+ }
35
68
  }
36
69
  }
37
70
  },
@@ -40,10 +73,27 @@
40
73
  "items": {
41
74
  "type": "object",
42
75
  "properties": {
43
- "target_name": { "type": "string", "required": true },
44
- "description": { "type": "string", "required": true }
76
+ "target_name": {
77
+ "type": "string",
78
+ "required": true
79
+ },
80
+ "description": {
81
+ "type": "string",
82
+ "required": true
83
+ }
45
84
  }
46
85
  }
86
+ },
87
+ "traits": {
88
+ "type": "array",
89
+ "description": "3-5 个独属于该实体的特征/习惯/感官锚点",
90
+ "items": {
91
+ "type": "string"
92
+ }
93
+ },
94
+ "extensions": {
95
+ "type": "object",
96
+ "description": "题材特有的扩展设定;键用中文,值用字符串/数组,不要塞章节号"
47
97
  }
48
98
  }
49
99
  }
@@ -12,26 +12,54 @@
12
12
  "items": {
13
13
  "type": "object",
14
14
  "properties": {
15
- "id": { "type": "string", "required": true, "pattern": "^L\\d{3}$" },
16
- "name": { "type": "string", "required": true },
15
+ "id": {
16
+ "type": "string",
17
+ "required": true,
18
+ "pattern": "^L\\d{3}$"
19
+ },
20
+ "name": {
21
+ "type": "string",
22
+ "required": true
23
+ },
17
24
  "features": {
18
25
  "type": "object",
19
26
  "required": true,
20
27
  "properties": {
21
- "layout": { "type": "string", "required": true },
28
+ "layout": {
29
+ "type": "string",
30
+ "required": true
31
+ },
22
32
  "key_elements": {
23
33
  "type": "array",
24
34
  "required": true,
25
- "items": { "type": "string" }
35
+ "items": {
36
+ "type": "string"
37
+ }
26
38
  }
27
39
  }
28
40
  },
29
41
  "key_event_descriptions": {
30
42
  "type": "array",
31
43
  "required": true,
32
- "items": { "type": "string" }
44
+ "items": {
45
+ "type": "string"
46
+ }
47
+ },
48
+ "narrative_role_description": {
49
+ "type": "string",
50
+ "required": true
33
51
  },
34
- "narrative_role_description": { "type": "string", "required": true }
52
+ "traits": {
53
+ "type": "array",
54
+ "description": "3-5 个独属于该实体的特征/习惯/感官锚点",
55
+ "items": {
56
+ "type": "string"
57
+ }
58
+ },
59
+ "extensions": {
60
+ "type": "object",
61
+ "description": "题材特有的扩展设定;键用中文,值用字符串/数组,不要塞章节号"
62
+ }
35
63
  }
36
64
  }
37
65
  }