@cloud411716/fancy-webnovel 2.2.0 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -0
- package/client.js +201 -15
- package/cordis.patch.yml +5 -1
- package/docs/douyin-plugin.md +118 -0
- package/docs/material-library/README.md +404 -0
- package/docs/material-library/import.js +437 -0
- package/docs/material-library/prompt.md +370 -0
- package/docs/material-library/queries.surql +94 -0
- package/docs/material-library/sample.jsonl +14 -0
- package/docs/material-library/schema.surql +46 -0
- package/docs/mcp-profile.example.yml +24 -0
- package/docs/story-graph-design.md +602 -0
- package/docs/story-graph-validation.md +81 -0
- package/docs/workspace-mcp.md +284 -0
- package/index.js +12 -7
- package/lib/atomic-write.js +109 -0
- package/lib/chapter-order.js +100 -0
- package/lib/confirmation.js +80 -0
- package/lib/db-init.js +123 -0
- package/lib/deployed-state.js +11 -11
- package/lib/direction-labels.js +265 -0
- package/lib/error-codes.js +31 -31
- package/lib/infra.js +29 -4
- package/lib/material-db.js +149 -0
- package/lib/path-guard.js +150 -0
- package/lib/projects.js +400 -0
- package/lib/scraper-utils.js +140 -0
- package/lib/surreal-server.js +338 -0
- package/lib/topic-decision.js +860 -0
- package/lib/topic-fields.js +251 -0
- package/lib/topic-schema.js +225 -0
- package/lib/workspace.js +501 -0
- package/package.json +31 -7
- package/plugins/fancy-analyze/analyze-definitions.md +519 -0
- package/plugins/fancy-analyze/index.js +1128 -77
- package/plugins/fancy-analyze/ingest-coverage.js +107 -0
- package/plugins/fancy-analyze/schema-analyze.md +355 -107
- package/plugins/fancy-analyze/scripts/append-summary-chapter.js +612 -0
- package/plugins/fancy-analyze/summary-progress.js +71 -7
- package/plugins/fancy-analyze/templates.js +437 -139
- package/plugins/fancy-bootstrap/index.js +276 -131
- package/plugins/fancy-bootstrap/scripts/init.js +59 -25
- package/plugins/fancy-bootstrap/templates.js +35 -18
- package/plugins/fancy-db/index.js +172 -0
- package/plugins/fancy-douyin/deploy.js +134 -0
- package/plugins/fancy-douyin/index.js +551 -0
- package/plugins/fancy-douyin/prompts/01-analysis-prompt.md +84 -0
- package/plugins/fancy-douyin/scripts/crawl-note.cjs +194 -0
- package/plugins/fancy-douyin/scripts/lib.cjs +197 -0
- package/plugins/fancy-douyin/scripts/scan-account.cjs +128 -0
- package/plugins/fancy-douyin/scripts/start-chrome.cjs +203 -0
- package/plugins/fancy-douyin/state.js +197 -0
- package/plugins/fancy-douyin/templates.js +127 -0
- package/plugins/fancy-export/exporter.js +805 -0
- package/plugins/fancy-export/index.js +63 -0
- package/plugins/fancy-import/import-driver.js +29 -6
- package/plugins/fancy-import/index.js +13 -5
- package/plugins/fancy-import/prompts/01-import-prompt.md +39 -14
- package/plugins/fancy-import/templates.js +17 -8
- package/plugins/fancy-material/exporter.js +153 -0
- package/plugins/fancy-material/genres.js +256 -0
- package/plugins/fancy-material/index.js +835 -0
- package/plugins/fancy-material/inventory.js +145 -0
- package/plugins/fancy-material/kinds.js +313 -0
- package/plugins/fancy-material/queue.js +55 -0
- package/plugins/fancy-material/scripts/query.js +254 -0
- package/plugins/fancy-material/templates.js +258 -0
- package/plugins/fancy-material/tool-deploy.js +138 -0
- package/plugins/fancy-material/validate.js +149 -0
- package/plugins/fancy-project/index.js +133 -0
- package/plugins/fancy-scan/existing-block.js +100 -0
- package/plugins/fancy-scan/index.js +410 -21
- package/plugins/fancy-scan/prompts/01-analysis-prompt.md +302 -0
- package/plugins/fancy-scan/scripts/append-block.js +725 -0
- package/plugins/fancy-scan/scripts/report-validate.js +824 -0
- package/plugins/fancy-scan/scripts/run-scan.js +169 -22
- package/plugins/fancy-scan/scripts/scrapers/fanqie-rank-scraper.js +145 -16
- package/plugins/fancy-scan/scripts/scrapers/jjwxc-rank-scraper.js +179 -49
- package/plugins/fancy-scan/scripts/scrapers/qimao-rank-scraper.js +38 -20
- package/plugins/fancy-scan/templates/blocks.js +155 -0
- package/plugins/fancy-scan/templates/platforms.js +372 -0
- package/plugins/fancy-scan/templates/report-schema.js +90 -0
- package/plugins/fancy-scan/templates.js +545 -146
- package/plugins/fancy-scan/tool-deploy.js +335 -0
- package/plugins/fancy-scan/wait-turn.js +46 -0
- package/plugins/fancy-story-builder/db/README.md +106 -0
- package/plugins/fancy-story-builder/db/client.js +228 -0
- package/plugins/fancy-story-builder/db/commands.js +145 -0
- package/plugins/fancy-story-builder/db/ids.js +39 -0
- package/plugins/fancy-story-builder/db/import.js +798 -0
- package/plugins/fancy-story-builder/db/project.js +299 -0
- package/plugins/fancy-story-builder/db/query.js +361 -0
- package/plugins/fancy-story-builder/db/schema.js +417 -0
- package/plugins/fancy-story-builder/db/stage-sync.js +238 -0
- package/plugins/fancy-story-builder/flesh-output.js +19 -6
- package/plugins/fancy-story-builder/index.js +4105 -396
- package/plugins/fancy-story-builder/patch-driver.js +390 -0
- package/plugins/fancy-story-builder/prompts/01-skeleton-prompt.md +29 -19
- package/plugins/fancy-story-builder/prompts/02-flesh-prompt.md +72 -10
- package/plugins/fancy-story-builder/prompts/03-rhythm-prompt.md +40 -5
- package/plugins/fancy-story-builder/prompts/04-writing-prompt.md +37 -0
- package/plugins/fancy-story-builder/purpose-template.md +42 -66
- package/plugins/fancy-story-builder/references/formulas-skeleton.json +229 -56
- package/plugins/fancy-story-builder/references/genre-profiles.json +3514 -0
- package/plugins/fancy-story-builder/references/glossary.md +15 -6
- package/plugins/fancy-story-builder/references/index.md +97 -6
- package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/00-index.md +1 -1
- package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/07-audit.md +25 -7
- package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/01-character.md +5 -1
- package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/03-relations.md +6 -2
- package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/05-audit.md +15 -5
- package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/00-index.md +1 -1
- package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/01-positioning.md +2 -1
- package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/03-entities.md +1 -1
- package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/06-audit.md +19 -1
- package/plugins/fancy-story-builder/schema-setting.json +1100 -0
- package/plugins/fancy-story-builder/schema-setting.md +201 -293
- package/plugins/fancy-story-builder/scripts/brief-validate.js +164 -0
- package/plugins/fancy-story-builder/scripts/content-quality.js +4 -1
- package/plugins/fancy-story-builder/scripts/flesh-validate.js +135 -12
- package/plugins/fancy-story-builder/scripts/graph-utils.js +146 -47
- package/plugins/fancy-story-builder/scripts/reference-log.js +110 -0
- package/plugins/fancy-story-builder/scripts/rhythm-validate.js +100 -4
- package/plugins/fancy-story-builder/scripts/schema-pages.js +2668 -0
- package/plugins/fancy-story-builder/scripts/semantic-lint.js +5 -1
- package/plugins/fancy-story-builder/scripts/skeleton-validate.js +158 -17
- package/plugins/fancy-story-builder/scripts/stage-batches.js +36 -2
- package/plugins/fancy-story-builder/scripts/stage-contract.js +12 -0
- package/plugins/fancy-story-builder/scripts/story-artifacts.js +933 -0
- package/plugins/fancy-story-builder/scripts/upstream-query.js +1 -1
- package/plugins/fancy-story-builder/scripts/v2/baseline.js +112 -0
- package/plugins/fancy-story-builder/scripts/v2/cast.js +517 -0
- package/plugins/fancy-story-builder/scripts/v2/context.js +434 -0
- package/plugins/fancy-story-builder/scripts/v2/contracts.js +493 -0
- package/plugins/fancy-story-builder/scripts/v2/core.js +419 -0
- package/plugins/fancy-story-builder/scripts/v2/engine.js +1068 -0
- package/plugins/fancy-story-builder/scripts/v2/export-markdown.js +794 -0
- package/plugins/fancy-story-builder/scripts/v2/genre.js +195 -0
- package/plugins/fancy-story-builder/scripts/v2/knowledge.js +321 -0
- package/plugins/fancy-story-builder/scripts/v2/macro.js +409 -0
- package/plugins/fancy-story-builder/scripts/v2/manifest.js +538 -0
- package/plugins/fancy-story-builder/scripts/v2/migrate.js +137 -0
- package/plugins/fancy-story-builder/scripts/v2/prompts.js +1335 -0
- package/plugins/fancy-story-builder/scripts/v2/rhythm.js +618 -0
- package/plugins/fancy-story-builder/scripts/v2/scale.js +843 -0
- package/plugins/fancy-story-builder/scripts/v2/snapshot.js +121 -0
- package/plugins/fancy-story-builder/scripts/v2/stages.js +273 -0
- package/plugins/fancy-story-builder/scripts/v2/writing.js +216 -0
- package/plugins/fancy-story-builder/storydb/README.md +271 -0
- package/plugins/fancy-story-builder/storydb/cli.js +458 -0
- package/plugins/fancy-story-builder/storydb/client.js +351 -0
- package/plugins/fancy-story-builder/storydb/compile.js +452 -0
- package/plugins/fancy-story-builder/storydb/context.js +288 -0
- package/plugins/fancy-story-builder/storydb/definitions.js +699 -0
- package/plugins/fancy-story-builder/storydb/driver.js +106 -0
- package/plugins/fancy-story-builder/storydb/dsh-tools.js +313 -0
- package/plugins/fancy-story-builder/storydb/export.js +175 -0
- package/plugins/fancy-story-builder/storydb/ids.js +31 -0
- package/plugins/fancy-story-builder/storydb/impact.js +170 -0
- package/plugins/fancy-story-builder/storydb/import.js +559 -0
- package/plugins/fancy-story-builder/storydb/mcp.js +99 -0
- package/plugins/fancy-story-builder/storydb/prompts.js +952 -0
- package/plugins/fancy-story-builder/storydb/stage-command.js +379 -0
- package/plugins/fancy-story-builder/storydb/stage.js +426 -0
- package/plugins/fancy-story-builder/storydb/store.js +891 -0
- package/plugins/fancy-story-builder/storydb/tools.js +592 -0
- package/plugins/fancy-story-builder/storydb/validation.js +183 -0
- package/plugins/fancy-story-builder/templates/v2/10-scale/scale-template.json +144 -0
- package/plugins/fancy-story-builder/templates/v2/20-macro/emotion-template.json +15 -0
- package/plugins/fancy-story-builder/templates/v2/20-macro/endings-template.json +16 -0
- package/plugins/fancy-story-builder/templates/v2/20-macro/lines-template.json +28 -0
- package/plugins/fancy-story-builder/templates/v2/20-macro/roles-template.json +10 -0
- package/plugins/fancy-story-builder/templates/v2/20-macro/story-template.json +19 -0
- package/plugins/fancy-story-builder/templates/v2/20-macro/volumes-template.json +24 -0
- package/plugins/fancy-story-builder/templates/v2/20-macro/world-template.json +24 -0
- package/plugins/fancy-story-builder/templates/v2/30-cast/characters-template.json +49 -0
- package/plugins/fancy-story-builder/templates/v2/30-cast/climaxes-template.json +14 -0
- package/plugins/fancy-story-builder/templates/v2/30-cast/conflicts-template.json +30 -0
- package/plugins/fancy-story-builder/templates/v2/30-cast/factions-template.json +18 -0
- package/plugins/fancy-story-builder/templates/v2/30-cast/foreshadows-template.json +29 -0
- package/plugins/fancy-story-builder/templates/v2/30-cast/information-template.json +29 -0
- package/plugins/fancy-story-builder/templates/v2/30-cast/items-template.json +13 -0
- package/plugins/fancy-story-builder/templates/v2/30-cast/locations-template.json +12 -0
- package/plugins/fancy-story-builder/templates/v2/30-cast/payoffs-template.json +16 -0
- package/plugins/fancy-story-builder/templates/v2/30-cast/relations-template.json +44 -0
- package/plugins/fancy-story-builder/templates/v2/40-rhythm/chapter-map-template.json +81 -0
- package/plugins/fancy-story-builder/templates/v2/40-rhythm/outline-template.json +162 -0
- package/plugins/fancy-story-builder/templates/v2/50-writing/ledger-template.json +46 -0
- package/plugins/fancy-story-builder/templates/v2/60-deslop/report-template.json +10 -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 +267 -44
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/plugins/fancy-story-builder/templates.js +272 -74
- package/plugins/fancy-story-builder/wiki-references.js +429 -93
- package/plugins/fancy-story-builder/writing-driver.js +336 -9
- package/plugins/fancy-topic/index.js +414 -61
- package/plugins/fancy-topic/prompts/01-exploration-prompt.md +115 -0
- package/plugins/fancy-topic/scripts/save-suggestion.js +219 -0
- package/plugins/fancy-topic/scripts/select-topic.js +106 -63
- package/plugins/fancy-topic/templates.js +225 -122
- package/plugins/fancy-topic/tool-deploy.js +200 -0
- package/lib/safe-rm.js +0 -94
|
@@ -12,9 +12,25 @@
|
|
|
12
12
|
"items": {
|
|
13
13
|
"type": "object",
|
|
14
14
|
"properties": {
|
|
15
|
-
"from": {
|
|
16
|
-
|
|
17
|
-
|
|
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
|
+
}
|
|
18
34
|
}
|
|
19
35
|
}
|
|
20
36
|
},
|
|
@@ -24,10 +40,25 @@
|
|
|
24
40
|
"items": {
|
|
25
41
|
"type": "object",
|
|
26
42
|
"properties": {
|
|
27
|
-
"character": {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
+
}
|
|
31
62
|
}
|
|
32
63
|
}
|
|
33
64
|
},
|
|
@@ -37,9 +68,21 @@
|
|
|
37
68
|
"items": {
|
|
38
69
|
"type": "object",
|
|
39
70
|
"properties": {
|
|
40
|
-
"from": {
|
|
41
|
-
|
|
42
|
-
|
|
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
|
+
}
|
|
43
86
|
}
|
|
44
87
|
}
|
|
45
88
|
},
|
|
@@ -49,20 +92,37 @@
|
|
|
49
92
|
"items": {
|
|
50
93
|
"type": "object",
|
|
51
94
|
"properties": {
|
|
52
|
-
"conflict": {
|
|
95
|
+
"conflict": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"required": true,
|
|
98
|
+
"pattern": "^X\\d{3}$"
|
|
99
|
+
},
|
|
53
100
|
"protagonist_side": {
|
|
54
101
|
"type": "array",
|
|
55
102
|
"required": true,
|
|
56
|
-
"items": {
|
|
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}$"
|
|
57
112
|
},
|
|
58
|
-
"main_antagonist": { "type": "string", "required": true, "pattern": "^C\\d{3}$" },
|
|
59
113
|
"secondary_antagonist": {
|
|
60
114
|
"type": "array",
|
|
61
|
-
"items": {
|
|
115
|
+
"items": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"pattern": "^C\\d{3}$"
|
|
118
|
+
}
|
|
62
119
|
},
|
|
63
120
|
"third_party": {
|
|
64
121
|
"type": "array",
|
|
65
|
-
"items": {
|
|
122
|
+
"items": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"pattern": "^C\\d{3}$"
|
|
125
|
+
}
|
|
66
126
|
}
|
|
67
127
|
}
|
|
68
128
|
}
|
|
@@ -73,8 +133,16 @@
|
|
|
73
133
|
"items": {
|
|
74
134
|
"type": "object",
|
|
75
135
|
"properties": {
|
|
76
|
-
"branch": {
|
|
77
|
-
|
|
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
|
+
}
|
|
78
146
|
}
|
|
79
147
|
}
|
|
80
148
|
},
|
|
@@ -84,9 +152,21 @@
|
|
|
84
152
|
"items": {
|
|
85
153
|
"type": "object",
|
|
86
154
|
"properties": {
|
|
87
|
-
"item": {
|
|
88
|
-
|
|
89
|
-
|
|
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
|
+
}
|
|
90
170
|
}
|
|
91
171
|
}
|
|
92
172
|
},
|
|
@@ -96,11 +176,18 @@
|
|
|
96
176
|
"items": {
|
|
97
177
|
"type": "object",
|
|
98
178
|
"properties": {
|
|
99
|
-
"location": {
|
|
179
|
+
"location": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"required": true,
|
|
182
|
+
"pattern": "^L\\d{3}$"
|
|
183
|
+
},
|
|
100
184
|
"conflicts": {
|
|
101
185
|
"type": "array",
|
|
102
186
|
"required": true,
|
|
103
|
-
"items": {
|
|
187
|
+
"items": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"pattern": "^X\\d{3}$"
|
|
190
|
+
}
|
|
104
191
|
}
|
|
105
192
|
}
|
|
106
193
|
}
|
|
@@ -111,8 +198,16 @@
|
|
|
111
198
|
"items": {
|
|
112
199
|
"type": "object",
|
|
113
200
|
"properties": {
|
|
114
|
-
"ending": {
|
|
115
|
-
|
|
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
|
+
}
|
|
116
211
|
}
|
|
117
212
|
}
|
|
118
213
|
},
|
|
@@ -122,9 +217,47 @@
|
|
|
122
217
|
"items": {
|
|
123
218
|
"type": "object",
|
|
124
219
|
"properties": {
|
|
125
|
-
"main_line": {
|
|
126
|
-
|
|
127
|
-
|
|
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
|
+
}
|
|
128
261
|
}
|
|
129
262
|
}
|
|
130
263
|
}
|
|
@@ -12,11 +12,29 @@
|
|
|
12
12
|
"items": {
|
|
13
13
|
"type": "object",
|
|
14
14
|
"properties": {
|
|
15
|
-
"id": {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
"id": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"required": true,
|
|
18
|
+
"pattern": "^C\\d{3}$"
|
|
19
|
+
},
|
|
20
|
+
"name": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"required": true
|
|
23
|
+
},
|
|
24
|
+
"type": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"required": true,
|
|
27
|
+
"enumRef": "character_type"
|
|
28
|
+
},
|
|
29
|
+
"gender": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"required": true
|
|
32
|
+
},
|
|
33
|
+
"age_group": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"required": true,
|
|
36
|
+
"enumRef": "age_group"
|
|
37
|
+
}
|
|
20
38
|
}
|
|
21
39
|
}
|
|
22
40
|
},
|
|
@@ -26,10 +44,25 @@
|
|
|
26
44
|
"items": {
|
|
27
45
|
"type": "object",
|
|
28
46
|
"properties": {
|
|
29
|
-
"id": {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
47
|
+
"id": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"required": true,
|
|
50
|
+
"pattern": "^X\\d{3}$"
|
|
51
|
+
},
|
|
52
|
+
"name": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"required": true
|
|
55
|
+
},
|
|
56
|
+
"type": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"required": true,
|
|
59
|
+
"enumRef": "conflict_type"
|
|
60
|
+
},
|
|
61
|
+
"scale": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"required": true,
|
|
64
|
+
"enumRef": "conflict_scale"
|
|
65
|
+
}
|
|
33
66
|
}
|
|
34
67
|
}
|
|
35
68
|
},
|
|
@@ -39,9 +72,20 @@
|
|
|
39
72
|
"items": {
|
|
40
73
|
"type": "object",
|
|
41
74
|
"properties": {
|
|
42
|
-
"id": {
|
|
43
|
-
|
|
44
|
-
|
|
75
|
+
"id": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"required": true,
|
|
78
|
+
"pattern": "^F\\d{3}$"
|
|
79
|
+
},
|
|
80
|
+
"name": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"required": true
|
|
83
|
+
},
|
|
84
|
+
"type": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"required": true,
|
|
87
|
+
"enumRef": "faction_type"
|
|
88
|
+
}
|
|
45
89
|
}
|
|
46
90
|
}
|
|
47
91
|
},
|
|
@@ -51,10 +95,25 @@
|
|
|
51
95
|
"items": {
|
|
52
96
|
"type": "object",
|
|
53
97
|
"properties": {
|
|
54
|
-
"id": {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
98
|
+
"id": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"required": true,
|
|
101
|
+
"pattern": "^L\\d{3}$"
|
|
102
|
+
},
|
|
103
|
+
"name": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"required": true
|
|
106
|
+
},
|
|
107
|
+
"type": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"required": true,
|
|
110
|
+
"enumRef": "location_type"
|
|
111
|
+
},
|
|
112
|
+
"narrative_function": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"required": true,
|
|
115
|
+
"enumRef": "narrative_function"
|
|
116
|
+
}
|
|
58
117
|
}
|
|
59
118
|
}
|
|
60
119
|
},
|
|
@@ -64,9 +123,20 @@
|
|
|
64
123
|
"items": {
|
|
65
124
|
"type": "object",
|
|
66
125
|
"properties": {
|
|
67
|
-
"id": {
|
|
68
|
-
|
|
69
|
-
|
|
126
|
+
"id": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"required": true,
|
|
129
|
+
"pattern": "^P\\d{3}$"
|
|
130
|
+
},
|
|
131
|
+
"name": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"required": true
|
|
134
|
+
},
|
|
135
|
+
"category": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"required": true,
|
|
138
|
+
"enumRef": "item_category"
|
|
139
|
+
}
|
|
70
140
|
}
|
|
71
141
|
}
|
|
72
142
|
},
|
|
@@ -76,10 +146,25 @@
|
|
|
76
146
|
"items": {
|
|
77
147
|
"type": "object",
|
|
78
148
|
"properties": {
|
|
79
|
-
"id": {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
149
|
+
"id": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"required": true,
|
|
152
|
+
"pattern": "^E\\d{3}$"
|
|
153
|
+
},
|
|
154
|
+
"name": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"required": true
|
|
157
|
+
},
|
|
158
|
+
"level": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"required": true,
|
|
161
|
+
"enumRef": "ending_level"
|
|
162
|
+
},
|
|
163
|
+
"type": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"required": true,
|
|
166
|
+
"enumRef": "ending_type"
|
|
167
|
+
}
|
|
83
168
|
}
|
|
84
169
|
}
|
|
85
170
|
},
|
|
@@ -89,9 +174,20 @@
|
|
|
89
174
|
"items": {
|
|
90
175
|
"type": "object",
|
|
91
176
|
"properties": {
|
|
92
|
-
"id": {
|
|
93
|
-
|
|
94
|
-
|
|
177
|
+
"id": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"required": true,
|
|
180
|
+
"pattern": "^FS\\d{3}$"
|
|
181
|
+
},
|
|
182
|
+
"name": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"required": true
|
|
185
|
+
},
|
|
186
|
+
"type": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"required": true,
|
|
189
|
+
"enumRef": "foreshadow_type"
|
|
190
|
+
}
|
|
95
191
|
}
|
|
96
192
|
}
|
|
97
193
|
},
|
|
@@ -101,9 +197,20 @@
|
|
|
101
197
|
"items": {
|
|
102
198
|
"type": "object",
|
|
103
199
|
"properties": {
|
|
104
|
-
"id": {
|
|
105
|
-
|
|
106
|
-
|
|
200
|
+
"id": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"required": true,
|
|
203
|
+
"pattern": "^CL\\d{3}$"
|
|
204
|
+
},
|
|
205
|
+
"name": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"required": true
|
|
208
|
+
},
|
|
209
|
+
"type": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"required": true,
|
|
212
|
+
"enumRef": "climax_type"
|
|
213
|
+
}
|
|
107
214
|
}
|
|
108
215
|
}
|
|
109
216
|
},
|
|
@@ -113,10 +220,25 @@
|
|
|
113
220
|
"items": {
|
|
114
221
|
"type": "object",
|
|
115
222
|
"properties": {
|
|
116
|
-
"id": {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
223
|
+
"id": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"required": true,
|
|
226
|
+
"pattern": "^PL\\d{3}$"
|
|
227
|
+
},
|
|
228
|
+
"name": {
|
|
229
|
+
"type": "string",
|
|
230
|
+
"required": true
|
|
231
|
+
},
|
|
232
|
+
"scale": {
|
|
233
|
+
"type": "string",
|
|
234
|
+
"required": true,
|
|
235
|
+
"enumRef": "pleasure_scale"
|
|
236
|
+
},
|
|
237
|
+
"kind": {
|
|
238
|
+
"type": "string",
|
|
239
|
+
"required": true,
|
|
240
|
+
"enumRef": "pleasure_kind"
|
|
241
|
+
}
|
|
120
242
|
}
|
|
121
243
|
}
|
|
122
244
|
},
|
|
@@ -126,9 +248,20 @@
|
|
|
126
248
|
"items": {
|
|
127
249
|
"type": "object",
|
|
128
250
|
"properties": {
|
|
129
|
-
"id": {
|
|
130
|
-
|
|
131
|
-
|
|
251
|
+
"id": {
|
|
252
|
+
"type": "string",
|
|
253
|
+
"required": true,
|
|
254
|
+
"pattern": "^(SR|R|I)\\d{3}$"
|
|
255
|
+
},
|
|
256
|
+
"name": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"required": true
|
|
259
|
+
},
|
|
260
|
+
"category": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"required": true,
|
|
263
|
+
"enumRef": "world_rule_category"
|
|
264
|
+
}
|
|
132
265
|
}
|
|
133
266
|
}
|
|
134
267
|
},
|
|
@@ -138,8 +271,15 @@
|
|
|
138
271
|
"items": {
|
|
139
272
|
"type": "object",
|
|
140
273
|
"properties": {
|
|
141
|
-
"id": {
|
|
142
|
-
|
|
274
|
+
"id": {
|
|
275
|
+
"type": "string",
|
|
276
|
+
"required": true,
|
|
277
|
+
"pattern": "^M\\d{3}$"
|
|
278
|
+
},
|
|
279
|
+
"name": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"required": true
|
|
282
|
+
}
|
|
143
283
|
}
|
|
144
284
|
}
|
|
145
285
|
},
|
|
@@ -149,9 +289,45 @@
|
|
|
149
289
|
"items": {
|
|
150
290
|
"type": "object",
|
|
151
291
|
"properties": {
|
|
152
|
-
"id": {
|
|
153
|
-
|
|
154
|
-
|
|
292
|
+
"id": {
|
|
293
|
+
"type": "string",
|
|
294
|
+
"required": true,
|
|
295
|
+
"pattern": "^B\\d{3}$"
|
|
296
|
+
},
|
|
297
|
+
"name": {
|
|
298
|
+
"type": "string",
|
|
299
|
+
"required": true
|
|
300
|
+
},
|
|
301
|
+
"type": {
|
|
302
|
+
"type": "string",
|
|
303
|
+
"required": true,
|
|
304
|
+
"enumRef": "branch_type"
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"other_entities": {
|
|
310
|
+
"type": "array",
|
|
311
|
+
"description": "题材特有的非人物实体(灵魂/神魂/器灵/妖灵/概念体等);没有就省略或写空数组。id 用 O001 起。",
|
|
312
|
+
"items": {
|
|
313
|
+
"type": "object",
|
|
314
|
+
"properties": {
|
|
315
|
+
"id": {
|
|
316
|
+
"type": "string",
|
|
317
|
+
"required": true,
|
|
318
|
+
"pattern": "^O\\d{3}$"
|
|
319
|
+
},
|
|
320
|
+
"name": {
|
|
321
|
+
"type": "string",
|
|
322
|
+
"required": true
|
|
323
|
+
},
|
|
324
|
+
"kind": {
|
|
325
|
+
"type": "string",
|
|
326
|
+
"required": true
|
|
327
|
+
},
|
|
328
|
+
"note": {
|
|
329
|
+
"type": "string"
|
|
330
|
+
}
|
|
155
331
|
}
|
|
156
332
|
}
|
|
157
333
|
}
|