@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
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"name": "formulas-skeleton",
|
|
4
|
-
"description": "
|
|
5
|
-
"note": "共 30 条公式(含 fixed.* 固定值)。v1.1 变更:新增 world_rule_counts 3 条;ending_count 用条件表达式让单卷区间收窄;faction_relation_count 下界改为 n-1。v1.2 变更:9 条「绝对上限」型公式的区间在卷数多时会变成空区间(lower > upper → 模型写不出合法 derivations → 重投到上限 → 阶段死循环),改为把硬上限夹进下界,区间恒非空且卷数少时行为不变。 同时把依赖 BC 的 2 条公式(交织冲突数 / 支线道具数)也纳入同一修法。"
|
|
4
|
+
"description": "骨架阶段数量公式。公式先算基础区间,再乘题材 profile 的 multipliers 得到最终合法区间。",
|
|
5
|
+
"note": "共 30 条公式(含 fixed.* 固定值)。v1.1 变更:新增 world_rule_counts 3 条;ending_count 用条件表达式让单卷区间收窄;faction_relation_count 下界改为 n-1。v1.2 变更:9 条「绝对上限」型公式的区间在卷数多时会变成空区间(lower > upper → 模型写不出合法 derivations → 重投到上限 → 阶段死循环),改为把硬上限夹进下界,区间恒非空且卷数少时行为不变。 同时把依赖 BC 的 2 条公式(交织冲突数 / 支线道具数)也纳入同一修法。 v2.2:每条公式补 multiplier_category / formula_with_multiplier,倍率来自 genre-profiles.json。"
|
|
6
6
|
},
|
|
7
7
|
"variables": {
|
|
8
|
-
"T": "capacity.target_chapters
|
|
9
|
-
"V": "
|
|
10
|
-
"P": "
|
|
11
|
-
"CS": "
|
|
12
|
-
"CA": "
|
|
13
|
-
"BC": "
|
|
14
|
-
"CC": "
|
|
15
|
-
"n": "
|
|
8
|
+
"T": "capacity.target_chapters(目标总章数)",
|
|
9
|
+
"V": "structure.volume_count(卷数)",
|
|
10
|
+
"P": "quotas.characters.protagonist(主角数)",
|
|
11
|
+
"CS": "quotas.characters.core_supporting(贯穿级核心配角数)",
|
|
12
|
+
"CA": "quotas.characters.core_antagonist(贯穿级核心反派数)",
|
|
13
|
+
"BC": "quotas.branches(支线数)",
|
|
14
|
+
"CC": "quotas.conflicts.core(核心冲突数)",
|
|
15
|
+
"n": "quotas.factions(势力数,仅用于 faction_relation_count)",
|
|
16
|
+
"Math": "JavaScript Math 对象,见 expr_low / expr_high",
|
|
17
|
+
"charTotal": "quotas.characters.protagonist + core_supporting + volume_supporting + core_antagonist + volume_antagonist(五类人物配额之和)"
|
|
16
18
|
},
|
|
17
19
|
"formulas": {
|
|
18
20
|
"structure.volume_count": {
|
|
@@ -20,210 +22,381 @@
|
|
|
20
22
|
"expr_low": "Math.max(1, Math.ceil(T / 120))",
|
|
21
23
|
"expr_high": "Math.max(Math.max(1, Math.ceil(T / 120)), Math.min(Math.max(1, Math.ceil(T / 40)), 30))",
|
|
22
24
|
"note": "每卷 40~120 章,至少 1 卷。上界取 max(下界, min(ceil(T/40), 30)):下界 ceil(T/120) 保证每卷不超过 120 章,所以 T 很大时(上界那个 30 卷的硬顶被顶穿)区间仍然是 [ceil(T/120), ceil(T/120)] —— 也就是每卷刚好 120 章、卷数随 T 增长,而不是下界 > 上界的空区间(空区间会让模型写不出合法 derivations,重投到上限后阶段死循环)",
|
|
23
|
-
"applies_to_field": "quota.volume_count"
|
|
25
|
+
"applies_to_field": "quota.volume_count",
|
|
26
|
+
"multiplier_category": null,
|
|
27
|
+
"formula_with_multiplier": "max(1, ceil(T/120)) ~ max(max(1, ceil(T/120)), min(max(1, ceil(T/40)), 30))",
|
|
28
|
+
"rounding": "不乘题材倍率",
|
|
29
|
+
"scale_field": "structure.volume_count",
|
|
30
|
+
"profile_rule": "卷数区间优先使用 genre-profiles.json 的 profiles.<key>.structure.volume_chapters 和 preferred_chapters_per_volume;profile 没有 structure 时才用 expr_low / expr_high。"
|
|
24
31
|
},
|
|
25
32
|
"structure.branch_count": {
|
|
26
33
|
"formula": "max(1, ceil(V/2), ceil(floor(T*0.3)/30)) ~ max(max(1, ceil(V/2), ceil(floor(T*0.3)/30)), min(floor(ceil(T*0.5)/3), max(V*3, 15, ceil(floor(T*0.3)/30))))",
|
|
27
34
|
"expr_low": "Math.max(1, Math.ceil(V / 2), Math.ceil(Math.floor(T * 0.3) / 30))",
|
|
28
35
|
"expr_high": "Math.max(Math.max(1, Math.ceil(V / 2), Math.ceil(Math.floor(T * 0.3) / 30)), Math.min(Math.floor(Math.ceil(T * 0.5) / 3), Math.max(V * 3, 15, Math.ceil(Math.floor(T * 0.3) / 30))))",
|
|
29
36
|
"note": "以卷为基数,通常上限 V*3(至少 15);下界还要保证节奏阶段的支线章数区间可行(BC×30 ≥ floor(T×0.3),否则节奏阶段无解)。上界额外夹住节奏侧的硬约束 floor(ceil(T×0.5)/3) —— 节奏要求 lower=max(BC*3, floor(T×0.3)) ≤ upper=min(BC×30, ceil(T×0.5)),也就是 BC ≤ floor(ceil(T×0.5)/3);不把它纳入上界,公式就会允许选出节奏无解的 BC(短书和高 T 都会踩到)。最后再对下界取 max,保证区间恒非空",
|
|
30
|
-
"applies_to_field": "quota.branch_count"
|
|
37
|
+
"applies_to_field": "quota.branch_count",
|
|
38
|
+
"multiplier_category": null,
|
|
39
|
+
"formula_with_multiplier": "max(1, ceil(V/2), ceil(floor(T*0.3)/30)) ~ max(max(1, ceil(V/2), ceil(floor(T*0.3)/30)), min(floor(ceil(T*0.5)/3), max(V*3, 15, ceil(floor(T*0.3)/30))))",
|
|
40
|
+
"rounding": "不乘题材倍率",
|
|
41
|
+
"scale_field": "quotas.branches"
|
|
31
42
|
},
|
|
32
43
|
"character_elements.volume_supporting_count": {
|
|
33
44
|
"formula": "min(V*3, 30) ~ min(V*5, 30)",
|
|
34
45
|
"expr_low": "Math.min(V * 3, 30)",
|
|
35
46
|
"expr_high": "Math.min(V * 5, 30)",
|
|
36
47
|
"note": "卷级重要配角数,全书上限 30;卷数多时下界收敛到 30(否则区间为空,模型写不出合法值)",
|
|
37
|
-
"applies_to_field": "quota.character_counts.volume_supporting"
|
|
48
|
+
"applies_to_field": "quota.character_counts.volume_supporting",
|
|
49
|
+
"multiplier_category": "volume_supporting",
|
|
50
|
+
"formula_with_multiplier": "min(V*3, 30) ~ min(V*5, 30) × multipliers.volume_supporting",
|
|
51
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
52
|
+
"scale_field": "quotas.characters.volume_supporting"
|
|
38
53
|
},
|
|
39
54
|
"character_elements.volume_antagonist_count": {
|
|
40
55
|
"formula": "min(V, 15) ~ min(V*2, 15)",
|
|
41
56
|
"expr_low": "Math.min(V, 15)",
|
|
42
57
|
"expr_high": "Math.min(V * 2, 15)",
|
|
43
58
|
"note": "卷级反派数,全书上限 15;卷数多时下界收敛到 15(否则区间为空,模型写不出合法值)",
|
|
44
|
-
"applies_to_field": "quota.character_counts.volume_antagonist"
|
|
59
|
+
"applies_to_field": "quota.character_counts.volume_antagonist",
|
|
60
|
+
"multiplier_category": "volume_antagonist",
|
|
61
|
+
"formula_with_multiplier": "min(V, 15) ~ min(V*2, 15) × multipliers.volume_antagonist",
|
|
62
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
63
|
+
"scale_field": "quotas.characters.volume_antagonist"
|
|
45
64
|
},
|
|
46
65
|
"conflict_elements.phase_conflict_count": {
|
|
47
66
|
"formula": "min(ceil(V*1.5), 20) ~ min(V*2, 20)",
|
|
48
67
|
"expr_low": "Math.min(Math.ceil(V * 1.5), 20)",
|
|
49
68
|
"expr_high": "Math.min(V * 2, 20)",
|
|
50
69
|
"note": "阶段冲突数,全书上限 20;卷数多时下界收敛到 20(否则区间为空,模型写不出合法值)",
|
|
51
|
-
"applies_to_field": "quota.conflict_counts.phase"
|
|
70
|
+
"applies_to_field": "quota.conflict_counts.phase",
|
|
71
|
+
"multiplier_category": "conflicts",
|
|
72
|
+
"formula_with_multiplier": "min(ceil(V*1.5), 20) ~ min(V*2, 20) × multipliers.conflicts",
|
|
73
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
74
|
+
"scale_field": "quotas.conflicts.phase"
|
|
52
75
|
},
|
|
53
76
|
"conflict_elements.branch_conflict_count": {
|
|
54
77
|
"formula": "min(BC*2, 30) ~ min(BC*3, 30)",
|
|
55
78
|
"expr_low": "Math.min(BC * 2, 30)",
|
|
56
79
|
"expr_high": "Math.min(BC * 3, 30)",
|
|
57
80
|
"note": "交织冲突数,全书上限 30;支线多时下界收敛到 30(否则区间为空,模型写不出合法值)",
|
|
58
|
-
"applies_to_field": "quota.conflict_counts.branch"
|
|
81
|
+
"applies_to_field": "quota.conflict_counts.branch",
|
|
82
|
+
"multiplier_category": "conflicts",
|
|
83
|
+
"formula_with_multiplier": "min(BC*2, 30) ~ min(BC*3, 30) × multipliers.conflicts",
|
|
84
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
85
|
+
"scale_field": "quotas.conflicts.branch"
|
|
59
86
|
},
|
|
60
87
|
"faction_elements.faction_count": {
|
|
61
88
|
"formula": "min(max(2, ceil(V/2)), 12) ~ min(V*3, 12)",
|
|
62
89
|
"expr_low": "Math.min(Math.max(2, Math.ceil(V / 2)), 12)",
|
|
63
90
|
"expr_high": "Math.min(V * 3, 12)",
|
|
64
91
|
"note": "势力数,全书上限 12。改为公式驱动,不再由角色去重决定;卷数多时下界收敛到 12(否则区间为空)",
|
|
65
|
-
"applies_to_field": "quota.faction_count"
|
|
92
|
+
"applies_to_field": "quota.faction_count",
|
|
93
|
+
"multiplier_category": "factions",
|
|
94
|
+
"formula_with_multiplier": "min(max(2, ceil(V/2)), 12) ~ min(V*3, 12) × multipliers.factions",
|
|
95
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
96
|
+
"scale_field": "quotas.factions"
|
|
66
97
|
},
|
|
67
98
|
"faction_elements.faction_relation_count": {
|
|
68
99
|
"formula": "max(1, n-1) ~ n*(n-1)/2",
|
|
69
100
|
"expr_low": "Math.max(1, quota.faction_count - 1)",
|
|
70
101
|
"expr_high": "quota.faction_count * (quota.faction_count - 1) / 2",
|
|
71
102
|
"note": "势力关系数。下界 n-1 保证势力图基本连通(每个势力至少一条关系);上界为完全图数(理论上限)。实际值通常两者之间,少于完全图数不会报 warning(因为公式下界不是完全图数)。n = quota.faction_count",
|
|
72
|
-
"applies_to_field": "quota.faction_relation_count"
|
|
103
|
+
"applies_to_field": "quota.faction_relation_count",
|
|
104
|
+
"multiplier_category": "faction_relations",
|
|
105
|
+
"formula_with_multiplier": "max(1, n-1) ~ n*(n-1)/2 × multipliers.faction_relations",
|
|
106
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
107
|
+
"scale_field": "quotas.faction_relations"
|
|
73
108
|
},
|
|
74
109
|
"location_elements.key_location_count": {
|
|
75
110
|
"formula": "min(max(3, V*3), 40) ~ min(V*8, 40)",
|
|
76
111
|
"expr_low": "Math.min(Math.max(3, V * 3), 40)",
|
|
77
112
|
"expr_high": "Math.min(V * 8, 40)",
|
|
78
113
|
"note": "关键地点数,全书上限 40;卷数多时下界收敛到 40(否则区间为空,模型写不出合法值)",
|
|
79
|
-
"applies_to_field": "quota.location_count"
|
|
114
|
+
"applies_to_field": "quota.location_count",
|
|
115
|
+
"multiplier_category": "locations",
|
|
116
|
+
"formula_with_multiplier": "min(max(3, V*3), 40) ~ min(V*8, 40) × multipliers.locations",
|
|
117
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
118
|
+
"scale_field": "quotas.locations"
|
|
80
119
|
},
|
|
81
120
|
"foreshadow_elements.small_foreshadow_count": {
|
|
82
|
-
"formula": "V*
|
|
83
|
-
"expr_low": "V *
|
|
84
|
-
"expr_high": "V *
|
|
85
|
-
"note": "小伏笔数,每卷
|
|
86
|
-
"applies_to_field": "quota.foreshadow_counts.small"
|
|
121
|
+
"formula": "V*8 ~ V*15",
|
|
122
|
+
"expr_low": "V * 8",
|
|
123
|
+
"expr_high": "V * 15",
|
|
124
|
+
"note": "小伏笔数,每卷 8~15 个(与 genre-profiles.base_overrides 保持一致)",
|
|
125
|
+
"applies_to_field": "quota.foreshadow_counts.small",
|
|
126
|
+
"multiplier_category": "foreshadows",
|
|
127
|
+
"formula_with_multiplier": "V*8 ~ V*15 × multipliers.foreshadows",
|
|
128
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
129
|
+
"scale_field": "quotas.foreshadows.small"
|
|
87
130
|
},
|
|
88
131
|
"foreshadow_elements.medium_foreshadow_count": {
|
|
89
|
-
"formula": "
|
|
90
|
-
"expr_low": "
|
|
91
|
-
"expr_high": "V *
|
|
92
|
-
"note": "
|
|
93
|
-
"applies_to_field": "quota.foreshadow_counts.medium"
|
|
132
|
+
"formula": "V*3 ~ V*6",
|
|
133
|
+
"expr_low": "V * 3",
|
|
134
|
+
"expr_high": "V * 6",
|
|
135
|
+
"note": "中伏笔数,每卷 3~6 个(与 genre-profiles.base_overrides 保持一致)",
|
|
136
|
+
"applies_to_field": "quota.foreshadow_counts.medium",
|
|
137
|
+
"multiplier_category": "foreshadows",
|
|
138
|
+
"formula_with_multiplier": "V*3 ~ V*6 × multipliers.foreshadows",
|
|
139
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
140
|
+
"scale_field": "quotas.foreshadows.medium"
|
|
94
141
|
},
|
|
95
142
|
"foreshadow_elements.large_foreshadow_count": {
|
|
96
|
-
"formula": "
|
|
97
|
-
"expr_low": "
|
|
98
|
-
"expr_high": "
|
|
99
|
-
"note": "
|
|
100
|
-
"applies_to_field": "quota.foreshadow_counts.large"
|
|
143
|
+
"formula": "2 ~ 5",
|
|
144
|
+
"expr_low": "2",
|
|
145
|
+
"expr_high": "5",
|
|
146
|
+
"note": "大伏笔数,全书 2~5 个(与 genre-profiles.base_overrides 保持一致)",
|
|
147
|
+
"applies_to_field": "quota.foreshadow_counts.large",
|
|
148
|
+
"multiplier_category": "foreshadows",
|
|
149
|
+
"formula_with_multiplier": "2 ~ 5 × multipliers.foreshadows",
|
|
150
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
151
|
+
"scale_field": "quotas.foreshadows.large"
|
|
101
152
|
},
|
|
102
153
|
"climax_elements.small_climax_count": {
|
|
103
154
|
"formula": "V*5 ~ V*10",
|
|
104
155
|
"expr_low": "V * 5",
|
|
105
156
|
"expr_high": "V * 10",
|
|
106
157
|
"note": "小高潮数,每卷 5~10 个",
|
|
107
|
-
"applies_to_field": "quota.climax_counts.small"
|
|
158
|
+
"applies_to_field": "quota.climax_counts.small",
|
|
159
|
+
"multiplier_category": "climaxes",
|
|
160
|
+
"formula_with_multiplier": "V*5 ~ V*10 × multipliers.climaxes",
|
|
161
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
162
|
+
"scale_field": "quotas.climaxes.small"
|
|
108
163
|
},
|
|
109
164
|
"climax_elements.medium_climax_count": {
|
|
110
165
|
"formula": "V*1 ~ V*2",
|
|
111
166
|
"expr_low": "V * 1",
|
|
112
167
|
"expr_high": "V * 2",
|
|
113
168
|
"note": "中高潮数",
|
|
114
|
-
"applies_to_field": "quota.climax_counts.medium"
|
|
169
|
+
"applies_to_field": "quota.climax_counts.medium",
|
|
170
|
+
"multiplier_category": "climaxes",
|
|
171
|
+
"formula_with_multiplier": "V*1 ~ V*2 × multipliers.climaxes",
|
|
172
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
173
|
+
"scale_field": "quotas.climaxes.medium"
|
|
115
174
|
},
|
|
116
175
|
"climax_elements.large_climax_count": {
|
|
117
176
|
"formula": "V ~ V+1",
|
|
118
177
|
"expr_low": "V",
|
|
119
178
|
"expr_high": "V + 1",
|
|
120
179
|
"note": "大高潮数",
|
|
121
|
-
"applies_to_field": "quota.climax_counts.large"
|
|
180
|
+
"applies_to_field": "quota.climax_counts.large",
|
|
181
|
+
"multiplier_category": "climaxes",
|
|
182
|
+
"formula_with_multiplier": "V ~ V+1 × multipliers.climaxes",
|
|
183
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
184
|
+
"scale_field": "quotas.climaxes.large"
|
|
122
185
|
},
|
|
123
186
|
"pleasure_elements.small_pleasure_count": {
|
|
124
187
|
"formula": "V*8 ~ V*15",
|
|
125
188
|
"expr_low": "V * 8",
|
|
126
189
|
"expr_high": "V * 15",
|
|
127
190
|
"note": "小爽点数,每卷 8~15 个",
|
|
128
|
-
"applies_to_field": "quota.pleasure_counts.small"
|
|
191
|
+
"applies_to_field": "quota.pleasure_counts.small",
|
|
192
|
+
"multiplier_category": "pleasures",
|
|
193
|
+
"formula_with_multiplier": "V*8 ~ V*15 × multipliers.pleasures",
|
|
194
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
195
|
+
"scale_field": "quotas.pleasures.small"
|
|
129
196
|
},
|
|
130
197
|
"pleasure_elements.medium_pleasure_count": {
|
|
131
198
|
"formula": "V*3 ~ V*5",
|
|
132
199
|
"expr_low": "V * 3",
|
|
133
200
|
"expr_high": "V * 5",
|
|
134
201
|
"note": "中爽点数",
|
|
135
|
-
"applies_to_field": "quota.pleasure_counts.medium"
|
|
202
|
+
"applies_to_field": "quota.pleasure_counts.medium",
|
|
203
|
+
"multiplier_category": "pleasures",
|
|
204
|
+
"formula_with_multiplier": "V*3 ~ V*5 × multipliers.pleasures",
|
|
205
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
206
|
+
"scale_field": "quotas.pleasures.medium"
|
|
136
207
|
},
|
|
137
208
|
"pleasure_elements.large_pleasure_count": {
|
|
138
209
|
"formula": "V ~ V+2",
|
|
139
210
|
"expr_low": "V",
|
|
140
211
|
"expr_high": "V + 2",
|
|
141
212
|
"note": "大爽点数",
|
|
142
|
-
"applies_to_field": "quota.pleasure_counts.large"
|
|
213
|
+
"applies_to_field": "quota.pleasure_counts.large",
|
|
214
|
+
"multiplier_category": "pleasures",
|
|
215
|
+
"formula_with_multiplier": "V ~ V+2 × multipliers.pleasures",
|
|
216
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
217
|
+
"scale_field": "quotas.pleasures.large"
|
|
143
218
|
},
|
|
144
219
|
"item_elements.core_item_count": {
|
|
145
220
|
"formula": "max(2, CC*2) ~ CC*3",
|
|
146
221
|
"expr_low": "Math.max(2, CC * 2)",
|
|
147
222
|
"expr_high": "CC * 3",
|
|
148
223
|
"note": "核心道具数",
|
|
149
|
-
"applies_to_field": "quota.item_counts.core"
|
|
224
|
+
"applies_to_field": "quota.item_counts.core",
|
|
225
|
+
"multiplier_category": "items",
|
|
226
|
+
"formula_with_multiplier": "max(2, CC*2) ~ CC*3 × multipliers.items",
|
|
227
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
228
|
+
"scale_field": "quotas.items.core"
|
|
150
229
|
},
|
|
151
230
|
"item_elements.branch_item_count": {
|
|
152
231
|
"formula": "min(max(2, BC*2), 30) ~ min(BC*3, 30)",
|
|
153
232
|
"expr_low": "Math.min(Math.max(2, BC * 2), 30)",
|
|
154
233
|
"expr_high": "Math.min(BC * 3, 30)",
|
|
155
234
|
"note": "支线道具数,全书上限 30;支线多时下界收敛到 30(否则区间为空,模型写不出合法值)",
|
|
156
|
-
"applies_to_field": "quota.item_counts.branch"
|
|
235
|
+
"applies_to_field": "quota.item_counts.branch",
|
|
236
|
+
"multiplier_category": "items",
|
|
237
|
+
"formula_with_multiplier": "min(max(2, BC*2), 30) ~ min(BC*3, 30) × multipliers.items",
|
|
238
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
239
|
+
"scale_field": "quotas.items.branch"
|
|
157
240
|
},
|
|
158
241
|
"item_elements.symbolic_item_count": {
|
|
159
242
|
"formula": "ceil((P+CS+CA)/2) ~ min(P+CS+CA, 15)",
|
|
160
243
|
"expr_low": "Math.ceil((P + CS + CA) / 2)",
|
|
161
244
|
"expr_high": "Math.min(P + CS + CA, 15)",
|
|
162
245
|
"note": "象征道具数,绝对上限 15",
|
|
163
|
-
"applies_to_field": "quota.item_counts.symbolic"
|
|
246
|
+
"applies_to_field": "quota.item_counts.symbolic",
|
|
247
|
+
"multiplier_category": "items",
|
|
248
|
+
"formula_with_multiplier": "ceil((P+CS+CA)/2) ~ min(P+CS+CA, 15) × multipliers.items",
|
|
249
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
250
|
+
"scale_field": "quotas.items.symbolic"
|
|
164
251
|
},
|
|
165
252
|
"world_rule_counts.core": {
|
|
166
253
|
"formula": "min(max(1, V), 20) ~ min(V*3, 20)",
|
|
167
254
|
"expr_low": "Math.min(Math.max(1, V), 20)",
|
|
168
255
|
"expr_high": "Math.min(V * 3, 20)",
|
|
169
256
|
"note": "核心规则数(力量体系/物理规则),每卷 1-3 条,全书上限 20;卷数多时下界收敛到 20(否则区间为空)",
|
|
170
|
-
"applies_to_field": "quota.world_rule_counts.core"
|
|
257
|
+
"applies_to_field": "quota.world_rule_counts.core",
|
|
258
|
+
"multiplier_category": "world_rules",
|
|
259
|
+
"formula_with_multiplier": "min(max(1, V), 20) ~ min(V*3, 20) × multipliers.world_rules",
|
|
260
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
261
|
+
"scale_field": "quotas.world_rules.core"
|
|
171
262
|
},
|
|
172
263
|
"world_rule_counts.information": {
|
|
173
264
|
"formula": "min(max(1, V), 15) ~ min(V*2, 15)",
|
|
174
265
|
"expr_low": "Math.min(Math.max(1, V), 15)",
|
|
175
266
|
"expr_high": "Math.min(V * 2, 15)",
|
|
176
267
|
"note": "信息规则数(信息传播/隐藏/揭示),每卷 1-2 条,全书上限 15;卷数多时下界收敛到 15(否则区间为空)",
|
|
177
|
-
"applies_to_field": "quota.world_rule_counts.information"
|
|
268
|
+
"applies_to_field": "quota.world_rule_counts.information",
|
|
269
|
+
"multiplier_category": "world_rules",
|
|
270
|
+
"formula_with_multiplier": "min(max(1, V), 15) ~ min(V*2, 15) × multipliers.world_rules",
|
|
271
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
272
|
+
"scale_field": "quotas.world_rules.information"
|
|
178
273
|
},
|
|
179
274
|
"world_rule_counts.social": {
|
|
180
275
|
"formula": "min(max(1, V), 15) ~ min(V*2, 15)",
|
|
181
276
|
"expr_low": "Math.min(Math.max(1, V), 15)",
|
|
182
277
|
"expr_high": "Math.min(V * 2, 15)",
|
|
183
278
|
"note": "社会规则数(社会结构/文化/禁忌),每卷 1-2 条,全书上限 15;卷数多时下界收敛到 15(否则区间为空)",
|
|
184
|
-
"applies_to_field": "quota.world_rule_counts.social"
|
|
279
|
+
"applies_to_field": "quota.world_rule_counts.social",
|
|
280
|
+
"multiplier_category": "world_rules",
|
|
281
|
+
"formula_with_multiplier": "min(max(1, V), 15) ~ min(V*2, 15) × multipliers.world_rules",
|
|
282
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
283
|
+
"scale_field": "quotas.world_rules.social"
|
|
185
284
|
},
|
|
186
285
|
"ending_elements.ending_count": {
|
|
187
286
|
"formula": "V===1 ? 1 : V ~ V===1 ? 1 : V+1",
|
|
188
287
|
"expr_low": "V === 1 ? 1 : V",
|
|
189
288
|
"expr_high": "V === 1 ? 1 : V + 1",
|
|
190
289
|
"note": "结局总数。单卷作品:区间 [1,1],必须恰好 1 个全书级结局,无卷级结局。多卷作品:区间 [V, V+1],允许 V-1 或 V 个卷级结局。无论单卷多卷,level='全书级' 的结局必须恰好 1 个——这是结构语义,由 skeleton-validate.js 的 QUOTA_MISMATCH 检查(ending_book_level 字段),不在本公式中表达",
|
|
191
|
-
"applies_to_field": "quota.ending_count"
|
|
290
|
+
"applies_to_field": "quota.ending_count",
|
|
291
|
+
"multiplier_category": null,
|
|
292
|
+
"formula_with_multiplier": "V===1 ? 1 : V ~ V===1 ? 1 : V+1",
|
|
293
|
+
"rounding": "不乘题材倍率",
|
|
294
|
+
"scale_field": "quotas.endings"
|
|
192
295
|
},
|
|
193
296
|
"fixed.structure.main_line_count": {
|
|
194
297
|
"formula": "1",
|
|
195
298
|
"expr_low": "1",
|
|
196
299
|
"expr_high": "1",
|
|
197
300
|
"note": "主线数固定为 1",
|
|
198
|
-
"applies_to_field": "quota.main_line_count"
|
|
301
|
+
"applies_to_field": "quota.main_line_count",
|
|
302
|
+
"multiplier_category": null,
|
|
303
|
+
"formula_with_multiplier": "1",
|
|
304
|
+
"rounding": "不乘题材倍率",
|
|
305
|
+
"scale_field": "quotas.main_lines"
|
|
199
306
|
},
|
|
200
307
|
"fixed.character_elements.protagonist_count": {
|
|
201
308
|
"formula": "1~2",
|
|
202
309
|
"expr_low": "1",
|
|
203
310
|
"expr_high": "2",
|
|
204
311
|
"note": "主角数 1~2 人",
|
|
205
|
-
"applies_to_field": "quota.character_counts.protagonist"
|
|
312
|
+
"applies_to_field": "quota.character_counts.protagonist",
|
|
313
|
+
"multiplier_category": "protagonist",
|
|
314
|
+
"formula_with_multiplier": "1~2 × multipliers.protagonist",
|
|
315
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
316
|
+
"scale_field": "quotas.characters.protagonist"
|
|
206
317
|
},
|
|
207
318
|
"fixed.character_elements.core_supporting_count": {
|
|
208
|
-
"formula": "2~
|
|
319
|
+
"formula": "2 ~ 5",
|
|
209
320
|
"expr_low": "2",
|
|
210
|
-
"expr_high": "
|
|
211
|
-
"note": "
|
|
212
|
-
"applies_to_field": "quota.character_counts.core_supporting"
|
|
321
|
+
"expr_high": "5",
|
|
322
|
+
"note": "贯穿级核心配角数量(与 genre-profiles.base_overrides 保持一致)",
|
|
323
|
+
"applies_to_field": "quota.character_counts.core_supporting",
|
|
324
|
+
"multiplier_category": "core_supporting",
|
|
325
|
+
"formula_with_multiplier": "2 ~ 5 × multipliers.core_supporting",
|
|
326
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
327
|
+
"scale_field": "quotas.characters.core_supporting"
|
|
213
328
|
},
|
|
214
329
|
"fixed.character_elements.core_antagonist_count": {
|
|
215
330
|
"formula": "1~3",
|
|
216
331
|
"expr_low": "1",
|
|
217
332
|
"expr_high": "3",
|
|
218
333
|
"note": "贯穿级核心反派数 1~3 人",
|
|
219
|
-
"applies_to_field": "quota.character_counts.core_antagonist"
|
|
334
|
+
"applies_to_field": "quota.character_counts.core_antagonist",
|
|
335
|
+
"multiplier_category": "core_antagonist",
|
|
336
|
+
"formula_with_multiplier": "1~3 × multipliers.core_antagonist",
|
|
337
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
338
|
+
"scale_field": "quotas.characters.core_antagonist"
|
|
220
339
|
},
|
|
221
340
|
"fixed.conflict_elements.core_conflict_count": {
|
|
222
341
|
"formula": "1",
|
|
223
342
|
"expr_low": "1",
|
|
224
343
|
"expr_high": "1",
|
|
225
344
|
"note": "核心冲突数固定为 1",
|
|
226
|
-
"applies_to_field": "quota.conflict_counts.core"
|
|
345
|
+
"applies_to_field": "quota.conflict_counts.core",
|
|
346
|
+
"multiplier_category": null,
|
|
347
|
+
"formula_with_multiplier": "1",
|
|
348
|
+
"rounding": "不乘题材倍率,保持固定值",
|
|
349
|
+
"scale_field": "quotas.conflicts.core"
|
|
227
350
|
}
|
|
228
|
-
}
|
|
351
|
+
},
|
|
352
|
+
"multiplier_rule": {
|
|
353
|
+
"profile_file": "references/genre-profiles.json",
|
|
354
|
+
"profile_path": "profiles.<genre_profile>.multipliers.<multiplier_category>",
|
|
355
|
+
"apply": "base_low × multiplier 向上取整;base_high × multiplier 向下取整",
|
|
356
|
+
"missing": "multiplier_category 为空或倍率缺失时按 1 处理",
|
|
357
|
+
"note": "LLM 先按 expr_low / expr_high 计算基础区间,再乘题材倍率;插件校验时也用同一倍率。"
|
|
358
|
+
},
|
|
359
|
+
"platform_rules": {
|
|
360
|
+
"name": "番茄小说",
|
|
361
|
+
"default_words_per_chapter": 2200,
|
|
362
|
+
"base_formula_words_per_chapter": 2000,
|
|
363
|
+
"hook_density_per_chapter": 1.3,
|
|
364
|
+
"opening_chapters": 30,
|
|
365
|
+
"opening_hook_multiplier": 1.5,
|
|
366
|
+
"pleasure_density_multiplier": 1.2,
|
|
367
|
+
"volume_length_multiplier": 0.8,
|
|
368
|
+
"note": "平台规则来自番茄免费阅读生态;章节字数以 2200 为参考,但节奏公式仍以 2000 字为基准,用 capacity.chapter_scale 换算。"
|
|
369
|
+
},
|
|
370
|
+
"override_rule": {
|
|
371
|
+
"base": "references/genre-profiles.json#base_overrides(所有题材都生效)",
|
|
372
|
+
"profile": "references/genre-profiles.json#profiles.<genre_profile>.overrides(该题材单独生效)",
|
|
373
|
+
"apply": "先用覆盖值替换公式基础区间,再乘 multiplier_category 对应的题材倍率;覆盖值优先于 expr_low / expr_high",
|
|
374
|
+
"values": "数组表示 [最小值, 最大值];字符串表示用变量书写的区间表达式"
|
|
375
|
+
},
|
|
376
|
+
"scale_field_rule": "scale_field 是 2.0 scale.json 的准确字段路径;applies_to_field 是旧 1.x 路径,只用于旧校验器。LLM 写 scale.json 时只看 scale_field。",
|
|
377
|
+
"custom_formulas": {
|
|
378
|
+
"custom.information_gaps": {
|
|
379
|
+
"formula": "max(15, ceil(T/8)) ~ max(15, ceil(T/6))",
|
|
380
|
+
"expr_low": "Math.max(15, Math.ceil(T / 8))",
|
|
381
|
+
"expr_high": "Math.max(15, Math.ceil(T / 6))",
|
|
382
|
+
"note": "信息差基础密度;悬疑/规则怪谈按题材倍率上调。",
|
|
383
|
+
"applies_to_field": "quota.information_gaps",
|
|
384
|
+
"multiplier_category": "information_gaps",
|
|
385
|
+
"formula_with_multiplier": "max(15, ceil(T/8)) ~ max(15, ceil(T/6)) × multipliers.information_gaps",
|
|
386
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
387
|
+
"scale_field": "quotas.information_gaps"
|
|
388
|
+
},
|
|
389
|
+
"custom.relations_character": {
|
|
390
|
+
"formula": "max(charTotal+2, round(charTotal*1.75)) ~ max(low, round(charTotal*3))",
|
|
391
|
+
"expr_low": "Math.max(charTotal + 2, Math.round(charTotal * 1.75))",
|
|
392
|
+
"expr_high": "Math.max(Math.max(charTotal + 2, Math.round(charTotal * 1.75)), Math.round(charTotal * 3))",
|
|
393
|
+
"note": "人物关系条数(两端各算一次);人均度数 = 2 × 条数 / 人物总数。charTotal 是五类人物配额之和。",
|
|
394
|
+
"applies_to_field": "quota.relations.character",
|
|
395
|
+
"multiplier_category": "relations",
|
|
396
|
+
"formula_with_multiplier": "max(charTotal+2, round(charTotal*1.75)) ~ max(low, round(charTotal*3)) × multipliers.relations",
|
|
397
|
+
"rounding": "低值向上取整,高值向下取整;倍率缺失时按 1 处理",
|
|
398
|
+
"scale_field": "quotas.relations.character"
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
"custom_formula_rule": "custom_formulas 只用于 10-scale 的 scale.json;不进入旧骨架阶段的 30 条公式清单。"
|
|
229
402
|
}
|