@cloud411716/fancy-webnovel 1.0.46 → 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 (271) hide show
  1. package/client.js +369 -0
  2. package/cordis.patch.yml +4 -13
  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 +26 -38
  15. package/lib/atomic-write.js +109 -0
  16. package/lib/chapter-order.js +100 -0
  17. package/lib/chinese-num.js +111 -0
  18. package/lib/confirmation.js +80 -0
  19. package/lib/db-init.js +123 -0
  20. package/lib/deployed-state.js +141 -0
  21. package/lib/direction-labels.js +265 -0
  22. package/lib/error-codes.js +104 -0
  23. package/lib/infra.js +594 -0
  24. package/lib/llm-wiki.js +109 -0
  25. package/lib/material-db.js +149 -0
  26. package/lib/path-guard.js +150 -0
  27. package/lib/projects.js +400 -0
  28. package/lib/scraper-utils.js +305 -0
  29. package/lib/surreal-server.js +338 -0
  30. package/lib/topic-decision.js +860 -0
  31. package/lib/topic-fields.js +251 -0
  32. package/lib/topic-schema.js +225 -0
  33. package/lib/workspace.js +501 -0
  34. package/package.json +62 -5
  35. package/plugins/fancy-analyze/analyze-definitions.md +519 -0
  36. package/plugins/fancy-analyze/command-input.js +65 -0
  37. package/plugins/fancy-analyze/index.js +2024 -0
  38. package/plugins/fancy-analyze/ingest-coverage.js +107 -0
  39. package/plugins/fancy-analyze/schema-analyze.md +627 -0
  40. package/plugins/fancy-analyze/schema-write.md +178 -0
  41. package/plugins/fancy-analyze/scripts/append-summary-chapter.js +612 -0
  42. package/plugins/fancy-analyze/scripts/split_source.js +292 -0
  43. package/plugins/fancy-analyze/summary-progress.js +495 -0
  44. package/plugins/fancy-analyze/templates.js +1179 -0
  45. package/plugins/fancy-bootstrap/index.js +313 -0
  46. package/plugins/fancy-bootstrap/scripts/init.js +177 -0
  47. package/plugins/fancy-bootstrap/scripts/path-utils.js +21 -0
  48. package/plugins/fancy-bootstrap/templates.js +71 -0
  49. package/plugins/fancy-db/index.js +172 -0
  50. package/plugins/fancy-douyin/deploy.js +134 -0
  51. package/plugins/fancy-douyin/index.js +551 -0
  52. package/plugins/fancy-douyin/prompts/01-analysis-prompt.md +84 -0
  53. package/plugins/fancy-douyin/scripts/crawl-note.cjs +194 -0
  54. package/plugins/fancy-douyin/scripts/lib.cjs +197 -0
  55. package/plugins/fancy-douyin/scripts/scan-account.cjs +128 -0
  56. package/plugins/fancy-douyin/scripts/start-chrome.cjs +203 -0
  57. package/plugins/fancy-douyin/state.js +197 -0
  58. package/plugins/fancy-douyin/templates.js +127 -0
  59. package/plugins/fancy-export/exporter.js +805 -0
  60. package/plugins/fancy-export/index.js +63 -0
  61. package/plugins/fancy-import/import-core.js +1118 -0
  62. package/plugins/fancy-import/import-driver.js +604 -0
  63. package/plugins/fancy-import/index.js +738 -0
  64. package/plugins/fancy-import/prompts/01-import-prompt.md +131 -0
  65. package/plugins/fancy-import/templates.js +58 -0
  66. package/plugins/fancy-material/exporter.js +153 -0
  67. package/plugins/fancy-material/genres.js +256 -0
  68. package/plugins/fancy-material/index.js +835 -0
  69. package/plugins/fancy-material/inventory.js +143 -0
  70. package/plugins/fancy-material/kinds.js +313 -0
  71. package/plugins/fancy-material/queue.js +55 -0
  72. package/plugins/fancy-material/scripts/query.js +254 -0
  73. package/plugins/fancy-material/templates.js +258 -0
  74. package/plugins/fancy-material/tool-deploy.js +138 -0
  75. package/plugins/fancy-material/validate.js +149 -0
  76. package/plugins/fancy-project/index.js +133 -0
  77. package/plugins/fancy-scan/existing-block.js +100 -0
  78. package/plugins/fancy-scan/index.js +708 -0
  79. package/plugins/fancy-scan/prompts/01-analysis-prompt.md +302 -0
  80. package/plugins/fancy-scan/scripts/append-block.js +725 -0
  81. package/plugins/fancy-scan/scripts/report-validate.js +824 -0
  82. package/plugins/fancy-scan/scripts/run-scan.js +667 -0
  83. package/plugins/fancy-scan/scripts/scrapers/fanqie-rank-scraper.js +923 -0
  84. package/plugins/fancy-scan/scripts/scrapers/jjwxc-rank-scraper.js +469 -0
  85. package/plugins/fancy-scan/scripts/scrapers/qimao-rank-scraper.js +629 -0
  86. package/plugins/fancy-scan/templates/blocks.js +155 -0
  87. package/plugins/fancy-scan/templates/platforms.js +372 -0
  88. package/plugins/fancy-scan/templates/report-schema.js +90 -0
  89. package/plugins/fancy-scan/templates.js +694 -0
  90. package/plugins/fancy-scan/tool-deploy.js +335 -0
  91. package/plugins/fancy-scan/wait-turn.js +46 -0
  92. package/plugins/fancy-story-builder/db/README.md +106 -0
  93. package/plugins/fancy-story-builder/db/client.js +228 -0
  94. package/plugins/fancy-story-builder/db/commands.js +145 -0
  95. package/plugins/fancy-story-builder/db/ids.js +39 -0
  96. package/plugins/fancy-story-builder/db/import.js +798 -0
  97. package/plugins/fancy-story-builder/db/project.js +299 -0
  98. package/plugins/fancy-story-builder/db/query.js +361 -0
  99. package/plugins/fancy-story-builder/db/schema.js +417 -0
  100. package/plugins/fancy-story-builder/db/stage-sync.js +238 -0
  101. package/plugins/fancy-story-builder/deploy-manifest.js +239 -0
  102. package/plugins/fancy-story-builder/deslop-driver.js +821 -0
  103. package/plugins/fancy-story-builder/flesh-output.js +168 -0
  104. package/plugins/fancy-story-builder/index.js +6861 -0
  105. package/plugins/fancy-story-builder/patch-driver.js +390 -0
  106. package/plugins/fancy-story-builder/prompts/01-skeleton-prompt.md +563 -0
  107. package/plugins/fancy-story-builder/prompts/02-flesh-prompt.md +602 -0
  108. package/plugins/fancy-story-builder/prompts/03-rhythm-prompt.md +539 -0
  109. package/plugins/fancy-story-builder/prompts/04-writing-prompt.md +225 -0
  110. package/plugins/fancy-story-builder/prompts/05-deslop-prompt.md +96 -0
  111. package/plugins/fancy-story-builder/purpose-template.md +83 -0
  112. package/plugins/fancy-story-builder/references/formulas-rhythm.json +302 -0
  113. package/plugins/fancy-story-builder/references/formulas-skeleton.json +402 -0
  114. package/plugins/fancy-story-builder/references/genre-profiles.json +3514 -0
  115. package/plugins/fancy-story-builder/references/glossary.md +594 -0
  116. package/plugins/fancy-story-builder/references/index.md +581 -0
  117. package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/00-index.md +174 -0
  118. package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/01-scene.md +150 -0
  119. package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/02-chapter-workflow.md +99 -0
  120. package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/03-opening-chapter.md +104 -0
  121. package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/04-dialogue-mastery.md +274 -0
  122. package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/05-genre-formulas.md +432 -0
  123. package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/06-tone-ensemble.md +259 -0
  124. package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/07-ledger-audit.md +222 -0
  125. package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/08-diagnosis-revision.md +205 -0
  126. package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/09-reading-power.md +135 -0
  127. package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/10-deslop.md +129 -0
  128. package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/00-index.md +98 -0
  129. package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/01-upgrade-rhythm.md +300 -0
  130. package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/02-arc-rhythm.md +168 -0
  131. package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/03-highpoint-hooks.md +189 -0
  132. package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/04-satisfaction.md +226 -0
  133. package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/05-foreshadow-density.md +195 -0
  134. package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/06-chapter-outline.md +226 -0
  135. package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/07-audit.md +181 -0
  136. package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/00-index.md +100 -0
  137. package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/01-character.md +243 -0
  138. package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/02-worldbuilding.md +245 -0
  139. package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/03-relations.md +185 -0
  140. package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/04-emotion-methods.md +286 -0
  141. package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/05-audit.md +187 -0
  142. package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/00-index.md +91 -0
  143. package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/01-positioning.md +209 -0
  144. package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/02-packaging.md +135 -0
  145. package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/03-entities.md +305 -0
  146. package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/04-conflict.md +328 -0
  147. package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/05-quota.md +187 -0
  148. package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/06-audit.md +160 -0
  149. package/plugins/fancy-story-builder/rhythm-output.js +140 -0
  150. package/plugins/fancy-story-builder/schema-setting.json +1100 -0
  151. package/plugins/fancy-story-builder/schema-setting.md +232 -0
  152. package/plugins/fancy-story-builder/scripts/ai-patterns.js +619 -0
  153. package/plugins/fancy-story-builder/scripts/brief-validate.js +164 -0
  154. package/plugins/fancy-story-builder/scripts/check-guide-compliance.js +289 -0
  155. package/plugins/fancy-story-builder/scripts/content-quality.js +416 -0
  156. package/plugins/fancy-story-builder/scripts/deslop-validate.js +143 -0
  157. package/plugins/fancy-story-builder/scripts/error-classes.js +112 -0
  158. package/plugins/fancy-story-builder/scripts/flesh-validate.js +1312 -0
  159. package/plugins/fancy-story-builder/scripts/formula-engine.js +112 -0
  160. package/plugins/fancy-story-builder/scripts/graph-utils.js +1484 -0
  161. package/plugins/fancy-story-builder/scripts/label-coverage.js +171 -0
  162. package/plugins/fancy-story-builder/scripts/prompt-drift-check.js +441 -0
  163. package/plugins/fancy-story-builder/scripts/reading-power.js +298 -0
  164. package/plugins/fancy-story-builder/scripts/reference-log.js +110 -0
  165. package/plugins/fancy-story-builder/scripts/rhythm-validate.js +1312 -0
  166. package/plugins/fancy-story-builder/scripts/schema-pages.js +2668 -0
  167. package/plugins/fancy-story-builder/scripts/semantic-lint.js +381 -0
  168. package/plugins/fancy-story-builder/scripts/skeleton-quota.js +145 -0
  169. package/plugins/fancy-story-builder/scripts/skeleton-validate.js +1973 -0
  170. package/plugins/fancy-story-builder/scripts/stage-batches.js +1405 -0
  171. package/plugins/fancy-story-builder/scripts/stage-contract.js +429 -0
  172. package/plugins/fancy-story-builder/scripts/story-artifacts.js +933 -0
  173. package/plugins/fancy-story-builder/scripts/upstream-query.js +198 -0
  174. package/plugins/fancy-story-builder/scripts/v2/baseline.js +112 -0
  175. package/plugins/fancy-story-builder/scripts/v2/cast.js +517 -0
  176. package/plugins/fancy-story-builder/scripts/v2/context.js +434 -0
  177. package/plugins/fancy-story-builder/scripts/v2/contracts.js +493 -0
  178. package/plugins/fancy-story-builder/scripts/v2/core.js +419 -0
  179. package/plugins/fancy-story-builder/scripts/v2/engine.js +1068 -0
  180. package/plugins/fancy-story-builder/scripts/v2/export-markdown.js +794 -0
  181. package/plugins/fancy-story-builder/scripts/v2/genre.js +195 -0
  182. package/plugins/fancy-story-builder/scripts/v2/knowledge.js +321 -0
  183. package/plugins/fancy-story-builder/scripts/v2/macro.js +409 -0
  184. package/plugins/fancy-story-builder/scripts/v2/manifest.js +538 -0
  185. package/plugins/fancy-story-builder/scripts/v2/migrate.js +137 -0
  186. package/plugins/fancy-story-builder/scripts/v2/prompts.js +1335 -0
  187. package/plugins/fancy-story-builder/scripts/v2/rhythm.js +618 -0
  188. package/plugins/fancy-story-builder/scripts/v2/scale.js +843 -0
  189. package/plugins/fancy-story-builder/scripts/v2/snapshot.js +121 -0
  190. package/plugins/fancy-story-builder/scripts/v2/stages.js +273 -0
  191. package/plugins/fancy-story-builder/scripts/v2/writing.js +216 -0
  192. package/plugins/fancy-story-builder/scripts/writing-rules.js +167 -0
  193. package/plugins/fancy-story-builder/scripts/writing-validate.js +682 -0
  194. package/plugins/fancy-story-builder/skeleton-output.js +199 -0
  195. package/plugins/fancy-story-builder/stage-driver.js +1049 -0
  196. package/plugins/fancy-story-builder/storydb/README.md +271 -0
  197. package/plugins/fancy-story-builder/storydb/cli.js +458 -0
  198. package/plugins/fancy-story-builder/storydb/client.js +351 -0
  199. package/plugins/fancy-story-builder/storydb/compile.js +452 -0
  200. package/plugins/fancy-story-builder/storydb/context.js +288 -0
  201. package/plugins/fancy-story-builder/storydb/definitions.js +699 -0
  202. package/plugins/fancy-story-builder/storydb/driver.js +106 -0
  203. package/plugins/fancy-story-builder/storydb/dsh-tools.js +313 -0
  204. package/plugins/fancy-story-builder/storydb/export.js +175 -0
  205. package/plugins/fancy-story-builder/storydb/ids.js +31 -0
  206. package/plugins/fancy-story-builder/storydb/impact.js +170 -0
  207. package/plugins/fancy-story-builder/storydb/import.js +559 -0
  208. package/plugins/fancy-story-builder/storydb/mcp.js +99 -0
  209. package/plugins/fancy-story-builder/storydb/prompts.js +952 -0
  210. package/plugins/fancy-story-builder/storydb/stage-command.js +379 -0
  211. package/plugins/fancy-story-builder/storydb/stage.js +426 -0
  212. package/plugins/fancy-story-builder/storydb/store.js +891 -0
  213. package/plugins/fancy-story-builder/storydb/tools.js +592 -0
  214. package/plugins/fancy-story-builder/storydb/validation.js +183 -0
  215. package/plugins/fancy-story-builder/templates/v2/10-scale/scale-template.json +144 -0
  216. package/plugins/fancy-story-builder/templates/v2/20-macro/emotion-template.json +15 -0
  217. package/plugins/fancy-story-builder/templates/v2/20-macro/endings-template.json +16 -0
  218. package/plugins/fancy-story-builder/templates/v2/20-macro/lines-template.json +28 -0
  219. package/plugins/fancy-story-builder/templates/v2/20-macro/roles-template.json +10 -0
  220. package/plugins/fancy-story-builder/templates/v2/20-macro/story-template.json +19 -0
  221. package/plugins/fancy-story-builder/templates/v2/20-macro/volumes-template.json +24 -0
  222. package/plugins/fancy-story-builder/templates/v2/20-macro/world-template.json +24 -0
  223. package/plugins/fancy-story-builder/templates/v2/30-cast/characters-template.json +49 -0
  224. package/plugins/fancy-story-builder/templates/v2/30-cast/climaxes-template.json +14 -0
  225. package/plugins/fancy-story-builder/templates/v2/30-cast/conflicts-template.json +30 -0
  226. package/plugins/fancy-story-builder/templates/v2/30-cast/factions-template.json +18 -0
  227. package/plugins/fancy-story-builder/templates/v2/30-cast/foreshadows-template.json +29 -0
  228. package/plugins/fancy-story-builder/templates/v2/30-cast/information-template.json +29 -0
  229. package/plugins/fancy-story-builder/templates/v2/30-cast/items-template.json +13 -0
  230. package/plugins/fancy-story-builder/templates/v2/30-cast/locations-template.json +12 -0
  231. package/plugins/fancy-story-builder/templates/v2/30-cast/payoffs-template.json +16 -0
  232. package/plugins/fancy-story-builder/templates/v2/30-cast/relations-template.json +44 -0
  233. package/plugins/fancy-story-builder/templates/v2/40-rhythm/chapter-map-template.json +81 -0
  234. package/plugins/fancy-story-builder/templates/v2/40-rhythm/outline-template.json +162 -0
  235. package/plugins/fancy-story-builder/templates/v2/50-writing/ledger-template.json +46 -0
  236. package/plugins/fancy-story-builder/templates/v2/60-deslop/report-template.json +10 -0
  237. 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 +427 -0
  238. 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
  239. 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
  240. 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
  241. 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 +168 -0
  242. 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 +184 -0
  243. 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
  244. 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 +131 -0
  245. 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 +85 -0
  246. 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 +103 -0
  247. 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 +68 -0
  248. 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 +142 -0
  249. 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 +292 -0
  250. 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 +266 -0
  251. 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 +336 -0
  252. 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
  253. 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 +308 -0
  254. package/plugins/fancy-story-builder/templates.js +1446 -0
  255. package/plugins/fancy-story-builder/wiki-references.js +540 -0
  256. package/plugins/fancy-story-builder/writing-driver.js +1388 -0
  257. package/plugins/fancy-topic/index.js +1057 -0
  258. package/plugins/fancy-topic/prompts/01-exploration-prompt.md +115 -0
  259. package/plugins/fancy-topic/scripts/save-suggestion.js +219 -0
  260. package/plugins/fancy-topic/scripts/select-topic.js +317 -0
  261. package/plugins/fancy-topic/templates.js +476 -0
  262. package/plugins/fancy-topic/tool-deploy.js +200 -0
  263. package/commands/bootstrap/index.js +0 -164
  264. package/commands/bootstrap/init-project.js +0 -121
  265. package/commands/scan/index.js +0 -283
  266. package/commands/scan/platforms/fanqie.js +0 -146
  267. package/commands/scan/platforms/jinjiang.js +0 -143
  268. package/commands/scan/platforms/qidian.js +0 -102
  269. package/commands/scan/platforms/qimao.js +0 -127
  270. package/commands/scan/scraper.js +0 -195
  271. package/infra.js +0 -160
@@ -0,0 +1,142 @@
1
+ {
2
+ "meta": {
3
+ "name": "结局模板",
4
+ "description": "血肉阶段结局档案的数据结构。在骨架实体.json 的 endings 基础上补充冲突解决、反套路、余韵、章节设计、伏笔回收计划。不含结局章(在节奏阶段时序映射的 ending_timeline)。结局涉及的角色在骨架关系.json 的 ending_character,不在此重复。"
5
+ },
6
+ "structure": {
7
+ "type": "object",
8
+ "properties": {
9
+ "endings": {
10
+ "type": "array",
11
+ "required": true,
12
+ "items": {
13
+ "type": "object",
14
+ "properties": {
15
+ "id": {
16
+ "type": "string",
17
+ "required": true,
18
+ "pattern": "^E\\d{3}$"
19
+ },
20
+ "name": {
21
+ "type": "string",
22
+ "required": true
23
+ },
24
+ "conflict_summary": {
25
+ "type": "string",
26
+ "required": true
27
+ },
28
+ "conflict_solution": {
29
+ "type": "string",
30
+ "required": true
31
+ },
32
+ "anti_trope_design": {
33
+ "type": "array",
34
+ "required": true,
35
+ "items": {
36
+ "type": "string"
37
+ }
38
+ },
39
+ "aftermath": {
40
+ "type": "object",
41
+ "required": true,
42
+ "properties": {
43
+ "special_remaining": {
44
+ "type": "string",
45
+ "required": true
46
+ },
47
+ "character_destinations": {
48
+ "type": "object",
49
+ "required": true
50
+ },
51
+ "suspense_blanks": {
52
+ "type": "array",
53
+ "required": true,
54
+ "items": {
55
+ "type": "string"
56
+ }
57
+ }
58
+ }
59
+ },
60
+ "emotion_trajectory": {
61
+ "type": "string",
62
+ "required": true
63
+ },
64
+ "core_emotion": {
65
+ "type": "string",
66
+ "required": true
67
+ },
68
+ "final_point": {
69
+ "type": "string",
70
+ "required": true
71
+ },
72
+ "chapter_design": {
73
+ "type": "object",
74
+ "required": true,
75
+ "properties": {
76
+ "climax_design": {
77
+ "type": "string",
78
+ "required": true
79
+ },
80
+ "turning_design": {
81
+ "type": "string",
82
+ "required": true
83
+ },
84
+ "cost_design": {
85
+ "type": "string",
86
+ "required": true
87
+ },
88
+ "resolution_design": {
89
+ "type": "string",
90
+ "required": true
91
+ }
92
+ }
93
+ },
94
+ "memorable_scenes": {
95
+ "type": "array",
96
+ "required": true,
97
+ "items": {
98
+ "type": "string"
99
+ }
100
+ },
101
+ "epilogue_hints": {
102
+ "type": "array",
103
+ "required": true,
104
+ "items": {
105
+ "type": "string"
106
+ }
107
+ },
108
+ "foreshadow_recovery_plan": {
109
+ "type": "array",
110
+ "required": true,
111
+ "items": {
112
+ "type": "object",
113
+ "properties": {
114
+ "foreshadow_id": {
115
+ "type": "string",
116
+ "required": true,
117
+ "pattern": "^FS\\d{3}$"
118
+ },
119
+ "method": {
120
+ "type": "string",
121
+ "required": true
122
+ }
123
+ }
124
+ }
125
+ },
126
+ "traits": {
127
+ "type": "array",
128
+ "description": "3-5 个独属于该实体的特征/习惯/感官锚点",
129
+ "items": {
130
+ "type": "string"
131
+ }
132
+ },
133
+ "extensions": {
134
+ "type": "object",
135
+ "description": "题材特有的扩展设定;键用中文,值用字符串/数组,不要塞章节号"
136
+ }
137
+ }
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }
@@ -0,0 +1,292 @@
1
+ {
2
+ "meta": {
3
+ "name": "角色模板",
4
+ "description": "血肉阶段角色档案的数据结构。在骨架实体.json 的 characters 基础上补充描述、目标、缺陷、弧光、语言档案等。不含任何章节号。"
5
+ },
6
+ "structure": {
7
+ "type": "object",
8
+ "properties": {
9
+ "characters": {
10
+ "type": "array",
11
+ "required": true,
12
+ "items": {
13
+ "type": "object",
14
+ "properties": {
15
+ "id": {
16
+ "type": "string",
17
+ "required": true,
18
+ "pattern": "^C\\d{3}$"
19
+ },
20
+ "name": {
21
+ "type": "string",
22
+ "required": true
23
+ },
24
+ "description": {
25
+ "type": "string",
26
+ "required": true
27
+ },
28
+ "goals": {
29
+ "type": "object",
30
+ "required": true,
31
+ "properties": {
32
+ "short_term": {
33
+ "type": "string",
34
+ "required": true
35
+ },
36
+ "medium_term": {
37
+ "type": "string",
38
+ "required": true
39
+ },
40
+ "long_term": {
41
+ "type": "string",
42
+ "required": true
43
+ }
44
+ }
45
+ },
46
+ "core_flaw": {
47
+ "type": "string",
48
+ "required": true
49
+ },
50
+ "golden_finger": {
51
+ "type": "string"
52
+ },
53
+ "information_state": {
54
+ "type": "object",
55
+ "required": true,
56
+ "properties": {
57
+ "known_secrets": {
58
+ "type": "string",
59
+ "required": true
60
+ },
61
+ "unknown_secrets": {
62
+ "type": "string",
63
+ "required": true
64
+ },
65
+ "false_beliefs": {
66
+ "type": "string",
67
+ "required": true
68
+ }
69
+ }
70
+ },
71
+ "arc_type": {
72
+ "type": "string",
73
+ "required": true,
74
+ "enumRef": "arc_type"
75
+ },
76
+ "arc_stages": {
77
+ "type": "number",
78
+ "required": true
79
+ },
80
+ "arc_change_descriptions": {
81
+ "type": "object",
82
+ "required": true,
83
+ "properties": {
84
+ "start": {
85
+ "type": "string",
86
+ "required": true
87
+ },
88
+ "turning": {
89
+ "type": "string",
90
+ "required": true
91
+ },
92
+ "midpoint": {
93
+ "type": "string"
94
+ },
95
+ "end": {
96
+ "type": "string",
97
+ "required": true
98
+ }
99
+ }
100
+ },
101
+ "language_profile": {
102
+ "type": "object",
103
+ "required": true,
104
+ "properties": {
105
+ "catchphrase": {
106
+ "type": "string",
107
+ "required": true
108
+ },
109
+ "speech_rhythm": {
110
+ "type": "string",
111
+ "required": true
112
+ },
113
+ "info_preference": {
114
+ "type": "string",
115
+ "required": true
116
+ },
117
+ "stance": {
118
+ "type": "string",
119
+ "required": true
120
+ },
121
+ "identity_wording": {
122
+ "type": "string",
123
+ "required": true
124
+ },
125
+ "personality_tone": {
126
+ "type": "string",
127
+ "required": true
128
+ },
129
+ "relationship_stage_tone": {
130
+ "type": "string",
131
+ "required": true
132
+ }
133
+ }
134
+ },
135
+ "behavior_repeat_points": {
136
+ "type": "array",
137
+ "required": true,
138
+ "items": {
139
+ "type": "string"
140
+ }
141
+ },
142
+ "mirror_type": {
143
+ "type": "string",
144
+ "enumRef": "mirror_type"
145
+ },
146
+ "relationships": {
147
+ "type": "array",
148
+ "items": {
149
+ "type": "object",
150
+ "properties": {
151
+ "target_name": {
152
+ "type": "string",
153
+ "required": true
154
+ },
155
+ "relationship_type": {
156
+ "type": "string",
157
+ "required": true,
158
+ "enumRef": "relation_kind"
159
+ },
160
+ "description": {
161
+ "type": "string",
162
+ "required": true
163
+ },
164
+ "changes": {
165
+ "type": "array",
166
+ "items": {
167
+ "type": "object",
168
+ "properties": {
169
+ "from": {
170
+ "type": "string",
171
+ "required": true
172
+ },
173
+ "to": {
174
+ "type": "string",
175
+ "required": true
176
+ },
177
+ "description": {
178
+ "type": "string",
179
+ "required": true
180
+ },
181
+ "stage": {
182
+ "type": "string",
183
+ "required": true,
184
+ "description": "关系阶段名,如 前期/转折/后期/决裂/和解"
185
+ },
186
+ "trigger": {
187
+ "type": "string",
188
+ "required": true,
189
+ "description": "触发这次关系变化的具体事件;不写章节号"
190
+ },
191
+ "timing": {
192
+ "type": "string",
193
+ "description": "大致时间位置(前期/中期/后期/某卷),不写章节号"
194
+ }
195
+ }
196
+ }
197
+ },
198
+ "relation_label": {
199
+ "type": "string",
200
+ "description": "当 relationship_type=其他 时必填;写清具体关系(如 附身/寄生/契约/共生),其他类型可留空。"
201
+ }
202
+ }
203
+ }
204
+ },
205
+ "arc_changes": {
206
+ "type": "array",
207
+ "required": true,
208
+ "items": {
209
+ "type": "object",
210
+ "properties": {
211
+ "stage": {
212
+ "type": "string",
213
+ "required": true
214
+ },
215
+ "description": {
216
+ "type": "string",
217
+ "required": true
218
+ }
219
+ }
220
+ }
221
+ },
222
+ "memory_points": {
223
+ "type": "object",
224
+ "required": true,
225
+ "properties": {
226
+ "appearance": {
227
+ "type": "string",
228
+ "required": true
229
+ },
230
+ "personality": {
231
+ "type": "string",
232
+ "required": true
233
+ },
234
+ "catchphrase": {
235
+ "type": "string",
236
+ "required": true
237
+ }
238
+ }
239
+ },
240
+ "exclusive_needs": {
241
+ "type": "object",
242
+ "required": true,
243
+ "properties": {
244
+ "experience_count": {
245
+ "type": "number",
246
+ "required": true
247
+ },
248
+ "presentation_method": {
249
+ "type": "string",
250
+ "required": true,
251
+ "enumRef": "presentation_method"
252
+ },
253
+ "expected_volume": {
254
+ "type": "string",
255
+ "pattern": "^V\\d{3}$"
256
+ }
257
+ }
258
+ },
259
+ "exit": {
260
+ "type": "object",
261
+ "properties": {
262
+ "type": {
263
+ "type": "string",
264
+ "required": true,
265
+ "enumRef": "exit_type"
266
+ },
267
+ "description": {
268
+ "type": "string",
269
+ "required": true
270
+ }
271
+ }
272
+ },
273
+ "traits": {
274
+ "type": "array",
275
+ "description": "3-5 个独属于这个人的特征/习惯/小动作/感官锚点;要能直接写进场景,不能是性格形容词堆砌",
276
+ "items": {
277
+ "type": "string"
278
+ },
279
+ "required": true,
280
+ "minItems": 3,
281
+ "maxItems": 5
282
+ },
283
+ "extensions": {
284
+ "type": "object",
285
+ "description": "题材特有的扩展设定;键用中文,值用字符串/数组,不要塞章节号"
286
+ }
287
+ }
288
+ }
289
+ }
290
+ }
291
+ }
292
+ }
@@ -0,0 +1,266 @@
1
+ {
2
+ "meta": {
3
+ "name": "关系模板",
4
+ "description": "骨架阶段关系清单的数据结构。全部只用 ID 引用,无 description、无章节。"
5
+ },
6
+ "structure": {
7
+ "type": "object",
8
+ "properties": {
9
+ "character_relations": {
10
+ "type": "array",
11
+ "required": true,
12
+ "items": {
13
+ "type": "object",
14
+ "properties": {
15
+ "from": {
16
+ "type": "string",
17
+ "required": true,
18
+ "pattern": "^C\\d{3}$"
19
+ },
20
+ "to": {
21
+ "type": "string",
22
+ "required": true,
23
+ "pattern": "^C\\d{3}$"
24
+ },
25
+ "relation_kind": {
26
+ "type": "string",
27
+ "required": true,
28
+ "enumRef": "relation_kind"
29
+ },
30
+ "relation_label": {
31
+ "type": "string",
32
+ "description": "当 relation_kind=其他 时必填;写清具体关系(如 附身/寄生/契约/前世/共生),其他类型可留空。"
33
+ }
34
+ }
35
+ }
36
+ },
37
+ "faction_membership": {
38
+ "type": "array",
39
+ "required": true,
40
+ "items": {
41
+ "type": "object",
42
+ "properties": {
43
+ "character": {
44
+ "type": "string",
45
+ "required": true,
46
+ "pattern": "^C\\d{3}$"
47
+ },
48
+ "faction": {
49
+ "type": "string",
50
+ "required": true,
51
+ "pattern": "^F\\d{3}$"
52
+ },
53
+ "member_relation": {
54
+ "type": "string",
55
+ "required": true,
56
+ "enumRef": "member_relation"
57
+ },
58
+ "position_level": {
59
+ "type": "string",
60
+ "required": true
61
+ }
62
+ }
63
+ }
64
+ },
65
+ "faction_relations": {
66
+ "type": "array",
67
+ "required": true,
68
+ "items": {
69
+ "type": "object",
70
+ "properties": {
71
+ "from": {
72
+ "type": "string",
73
+ "required": true,
74
+ "pattern": "^F\\d{3}$"
75
+ },
76
+ "to": {
77
+ "type": "string",
78
+ "required": true,
79
+ "pattern": "^F\\d{3}$"
80
+ },
81
+ "relation_type": {
82
+ "type": "string",
83
+ "required": true,
84
+ "enumRef": "relation_type"
85
+ }
86
+ }
87
+ }
88
+ },
89
+ "conflict_participants": {
90
+ "type": "array",
91
+ "required": true,
92
+ "items": {
93
+ "type": "object",
94
+ "properties": {
95
+ "conflict": {
96
+ "type": "string",
97
+ "required": true,
98
+ "pattern": "^X\\d{3}$"
99
+ },
100
+ "protagonist_side": {
101
+ "type": "array",
102
+ "required": true,
103
+ "items": {
104
+ "type": "string",
105
+ "pattern": "^C\\d{3}$"
106
+ }
107
+ },
108
+ "main_antagonist": {
109
+ "type": "string",
110
+ "required": true,
111
+ "pattern": "^C\\d{3}$"
112
+ },
113
+ "secondary_antagonist": {
114
+ "type": "array",
115
+ "items": {
116
+ "type": "string",
117
+ "pattern": "^C\\d{3}$"
118
+ }
119
+ },
120
+ "third_party": {
121
+ "type": "array",
122
+ "items": {
123
+ "type": "string",
124
+ "pattern": "^C\\d{3}$"
125
+ }
126
+ }
127
+ }
128
+ }
129
+ },
130
+ "branch_protagonist": {
131
+ "type": "array",
132
+ "required": true,
133
+ "items": {
134
+ "type": "object",
135
+ "properties": {
136
+ "branch": {
137
+ "type": "string",
138
+ "required": true,
139
+ "pattern": "^B\\d{3}$"
140
+ },
141
+ "character": {
142
+ "type": "string",
143
+ "required": true,
144
+ "pattern": "^C\\d{3}$"
145
+ }
146
+ }
147
+ }
148
+ },
149
+ "item_owner": {
150
+ "type": "array",
151
+ "required": true,
152
+ "items": {
153
+ "type": "object",
154
+ "properties": {
155
+ "item": {
156
+ "type": "string",
157
+ "required": true,
158
+ "pattern": "^P\\d{3}$"
159
+ },
160
+ "owner_id": {
161
+ "type": "string",
162
+ "required": true,
163
+ "pattern": "^(C|F)\\d{3}$"
164
+ },
165
+ "owner_kind": {
166
+ "type": "string",
167
+ "required": true,
168
+ "enumRef": "owner_kind"
169
+ }
170
+ }
171
+ }
172
+ },
173
+ "location_conflict": {
174
+ "type": "array",
175
+ "required": true,
176
+ "items": {
177
+ "type": "object",
178
+ "properties": {
179
+ "location": {
180
+ "type": "string",
181
+ "required": true,
182
+ "pattern": "^L\\d{3}$"
183
+ },
184
+ "conflicts": {
185
+ "type": "array",
186
+ "required": true,
187
+ "items": {
188
+ "type": "string",
189
+ "pattern": "^X\\d{3}$"
190
+ }
191
+ }
192
+ }
193
+ }
194
+ },
195
+ "ending_character": {
196
+ "type": "array",
197
+ "required": true,
198
+ "items": {
199
+ "type": "object",
200
+ "properties": {
201
+ "ending": {
202
+ "type": "string",
203
+ "required": true,
204
+ "pattern": "^E\\d{3}$"
205
+ },
206
+ "character": {
207
+ "type": "string",
208
+ "required": true,
209
+ "pattern": "^C\\d{3}$"
210
+ }
211
+ }
212
+ }
213
+ },
214
+ "main_line_branch_relation": {
215
+ "type": "array",
216
+ "required": true,
217
+ "items": {
218
+ "type": "object",
219
+ "properties": {
220
+ "main_line": {
221
+ "type": "string",
222
+ "required": true,
223
+ "pattern": "^M\\d{3}$"
224
+ },
225
+ "branch": {
226
+ "type": "string",
227
+ "required": true,
228
+ "pattern": "^B\\d{3}$"
229
+ },
230
+ "relation_kind": {
231
+ "type": "string",
232
+ "required": true,
233
+ "enumRef": "branch_relation_kind"
234
+ }
235
+ }
236
+ }
237
+ },
238
+ "other_relations": {
239
+ "type": "array",
240
+ "description": "非人物实体参与的关系。from 为 other_entities 的 id,to 可指人物或其他实体;relation_label 写具体关系。",
241
+ "items": {
242
+ "type": "object",
243
+ "properties": {
244
+ "from": {
245
+ "type": "string",
246
+ "required": true,
247
+ "pattern": "^O\\d{3}$"
248
+ },
249
+ "to": {
250
+ "type": "string",
251
+ "required": true,
252
+ "pattern": "^(C|O)\\d{3}$"
253
+ },
254
+ "relation_label": {
255
+ "type": "string",
256
+ "required": true
257
+ },
258
+ "description": {
259
+ "type": "string"
260
+ }
261
+ }
262
+ }
263
+ }
264
+ }
265
+ }
266
+ }