@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.
- package/client.js +369 -0
- package/cordis.patch.yml +4 -13
- 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 +26 -38
- package/lib/atomic-write.js +109 -0
- package/lib/chapter-order.js +100 -0
- package/lib/chinese-num.js +111 -0
- package/lib/confirmation.js +80 -0
- package/lib/db-init.js +123 -0
- package/lib/deployed-state.js +141 -0
- package/lib/direction-labels.js +265 -0
- package/lib/error-codes.js +104 -0
- package/lib/infra.js +594 -0
- package/lib/llm-wiki.js +109 -0
- 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 +305 -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 +62 -5
- package/plugins/fancy-analyze/analyze-definitions.md +519 -0
- package/plugins/fancy-analyze/command-input.js +65 -0
- package/plugins/fancy-analyze/index.js +2024 -0
- package/plugins/fancy-analyze/ingest-coverage.js +107 -0
- package/plugins/fancy-analyze/schema-analyze.md +627 -0
- package/plugins/fancy-analyze/schema-write.md +178 -0
- package/plugins/fancy-analyze/scripts/append-summary-chapter.js +612 -0
- package/plugins/fancy-analyze/scripts/split_source.js +292 -0
- package/plugins/fancy-analyze/summary-progress.js +495 -0
- package/plugins/fancy-analyze/templates.js +1179 -0
- package/plugins/fancy-bootstrap/index.js +313 -0
- package/plugins/fancy-bootstrap/scripts/init.js +177 -0
- package/plugins/fancy-bootstrap/scripts/path-utils.js +21 -0
- package/plugins/fancy-bootstrap/templates.js +71 -0
- 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-core.js +1118 -0
- package/plugins/fancy-import/import-driver.js +604 -0
- package/plugins/fancy-import/index.js +738 -0
- package/plugins/fancy-import/prompts/01-import-prompt.md +131 -0
- package/plugins/fancy-import/templates.js +58 -0
- 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 +143 -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 +708 -0
- 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 +667 -0
- package/plugins/fancy-scan/scripts/scrapers/fanqie-rank-scraper.js +923 -0
- package/plugins/fancy-scan/scripts/scrapers/jjwxc-rank-scraper.js +469 -0
- package/plugins/fancy-scan/scripts/scrapers/qimao-rank-scraper.js +629 -0
- 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 +694 -0
- 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/deploy-manifest.js +239 -0
- package/plugins/fancy-story-builder/deslop-driver.js +821 -0
- package/plugins/fancy-story-builder/flesh-output.js +168 -0
- package/plugins/fancy-story-builder/index.js +6861 -0
- package/plugins/fancy-story-builder/patch-driver.js +390 -0
- package/plugins/fancy-story-builder/prompts/01-skeleton-prompt.md +563 -0
- package/plugins/fancy-story-builder/prompts/02-flesh-prompt.md +602 -0
- package/plugins/fancy-story-builder/prompts/03-rhythm-prompt.md +539 -0
- package/plugins/fancy-story-builder/prompts/04-writing-prompt.md +225 -0
- package/plugins/fancy-story-builder/prompts/05-deslop-prompt.md +96 -0
- package/plugins/fancy-story-builder/purpose-template.md +83 -0
- package/plugins/fancy-story-builder/references/formulas-rhythm.json +302 -0
- package/plugins/fancy-story-builder/references/formulas-skeleton.json +402 -0
- package/plugins/fancy-story-builder/references/genre-profiles.json +3514 -0
- package/plugins/fancy-story-builder/references/glossary.md +594 -0
- package/plugins/fancy-story-builder/references/index.md +581 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/00-index.md +174 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/01-scene.md +150 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/02-chapter-workflow.md +99 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/03-opening-chapter.md +104 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/04-dialogue-mastery.md +274 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/05-genre-formulas.md +432 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/06-tone-ensemble.md +259 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/07-ledger-audit.md +222 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/08-diagnosis-revision.md +205 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/09-reading-power.md +135 -0
- package/plugins/fancy-story-builder/references//345/206/231/344/275/234/346/214/207/345/257/274/10-deslop.md +129 -0
- package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/00-index.md +98 -0
- package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/01-upgrade-rhythm.md +300 -0
- package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/02-arc-rhythm.md +168 -0
- package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/03-highpoint-hooks.md +189 -0
- package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/04-satisfaction.md +226 -0
- package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/05-foreshadow-density.md +195 -0
- package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/06-chapter-outline.md +226 -0
- package/plugins/fancy-story-builder/references//350/212/202/345/245/217/346/214/207/345/257/274/07-audit.md +181 -0
- package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/00-index.md +100 -0
- package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/01-character.md +243 -0
- package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/02-worldbuilding.md +245 -0
- package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/03-relations.md +185 -0
- package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/04-emotion-methods.md +286 -0
- package/plugins/fancy-story-builder/references//350/241/200/350/202/211/346/214/207/345/257/274/05-audit.md +187 -0
- package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/00-index.md +91 -0
- package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/01-positioning.md +209 -0
- package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/02-packaging.md +135 -0
- package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/03-entities.md +305 -0
- package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/04-conflict.md +328 -0
- package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/05-quota.md +187 -0
- package/plugins/fancy-story-builder/references//351/252/250/346/236/266/346/214/207/345/257/274/06-audit.md +160 -0
- package/plugins/fancy-story-builder/rhythm-output.js +140 -0
- package/plugins/fancy-story-builder/schema-setting.json +1100 -0
- package/plugins/fancy-story-builder/schema-setting.md +232 -0
- package/plugins/fancy-story-builder/scripts/ai-patterns.js +619 -0
- package/plugins/fancy-story-builder/scripts/brief-validate.js +164 -0
- package/plugins/fancy-story-builder/scripts/check-guide-compliance.js +289 -0
- package/plugins/fancy-story-builder/scripts/content-quality.js +416 -0
- package/plugins/fancy-story-builder/scripts/deslop-validate.js +143 -0
- package/plugins/fancy-story-builder/scripts/error-classes.js +112 -0
- package/plugins/fancy-story-builder/scripts/flesh-validate.js +1312 -0
- package/plugins/fancy-story-builder/scripts/formula-engine.js +112 -0
- package/plugins/fancy-story-builder/scripts/graph-utils.js +1484 -0
- package/plugins/fancy-story-builder/scripts/label-coverage.js +171 -0
- package/plugins/fancy-story-builder/scripts/prompt-drift-check.js +441 -0
- package/plugins/fancy-story-builder/scripts/reading-power.js +298 -0
- package/plugins/fancy-story-builder/scripts/reference-log.js +110 -0
- package/plugins/fancy-story-builder/scripts/rhythm-validate.js +1312 -0
- package/plugins/fancy-story-builder/scripts/schema-pages.js +2668 -0
- package/plugins/fancy-story-builder/scripts/semantic-lint.js +381 -0
- package/plugins/fancy-story-builder/scripts/skeleton-quota.js +145 -0
- package/plugins/fancy-story-builder/scripts/skeleton-validate.js +1973 -0
- package/plugins/fancy-story-builder/scripts/stage-batches.js +1405 -0
- package/plugins/fancy-story-builder/scripts/stage-contract.js +429 -0
- package/plugins/fancy-story-builder/scripts/story-artifacts.js +933 -0
- package/plugins/fancy-story-builder/scripts/upstream-query.js +198 -0
- 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/scripts/writing-rules.js +167 -0
- package/plugins/fancy-story-builder/scripts/writing-validate.js +682 -0
- package/plugins/fancy-story-builder/skeleton-output.js +199 -0
- package/plugins/fancy-story-builder/stage-driver.js +1049 -0
- package/plugins/fancy-story-builder/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 +427 -0
- package/plugins/fancy-story-builder/templates//350/212/202/345/245/217//347/253/240/350/212/202/347/273/206/347/272/262/346/250/241/346/235/277.json +34 -0
- package/plugins/fancy-story-builder/templates//350/212/202/345/245/217//347/253/240/350/212/202/350/247/204/345/210/222/346/250/241/346/235/277.json +24 -0
- package/plugins/fancy-story-builder/templates//350/212/202/345/245/217//350/212/202/345/245/217/345/217/202/346/225/260/346/250/241/346/235/277.json +27 -0
- package/plugins/fancy-story-builder/templates//350/241/200/350/202/211//344/270/226/347/225/214/350/247/202/350/247/204/345/210/231/346/250/241/346/235/277.json +168 -0
- package/plugins/fancy-story-builder/templates//350/241/200/350/202/211//345/205/263/351/224/256/351/201/223/345/205/267/346/250/241/346/235/277.json +184 -0
- 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 +131 -0
- package/plugins/fancy-story-builder/templates//350/241/200/350/202/211//345/211/247/346/203/205/346/250/241/346/235/277.json +85 -0
- package/plugins/fancy-story-builder/templates//350/241/200/350/202/211//345/212/277/345/212/233/346/250/241/346/235/277.json +103 -0
- package/plugins/fancy-story-builder/templates//350/241/200/350/202/211//345/234/260/347/202/271/346/250/241/346/235/277.json +68 -0
- package/plugins/fancy-story-builder/templates//350/241/200/350/202/211//347/273/223/345/261/200/346/250/241/346/235/277.json +142 -0
- package/plugins/fancy-story-builder/templates//350/241/200/350/202/211//350/247/222/350/211/262/346/250/241/346/235/277.json +292 -0
- package/plugins/fancy-story-builder/templates//351/252/250/346/236/266//345/205/263/347/263/273/346/250/241/346/235/277.json +266 -0
- package/plugins/fancy-story-builder/templates//351/252/250/346/236/266//345/256/236/344/275/223/346/250/241/346/235/277.json +336 -0
- package/plugins/fancy-story-builder/templates//351/252/250/346/236/266//345/261/202/347/272/247/346/250/241/346/235/277.json +65 -0
- package/plugins/fancy-story-builder/templates//351/252/250/346/236/266//346/241/206/346/236/266/346/250/241/346/235/277.json +308 -0
- package/plugins/fancy-story-builder/templates.js +1446 -0
- package/plugins/fancy-story-builder/wiki-references.js +540 -0
- package/plugins/fancy-story-builder/writing-driver.js +1388 -0
- package/plugins/fancy-topic/index.js +1057 -0
- 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 +317 -0
- package/plugins/fancy-topic/templates.js +476 -0
- package/plugins/fancy-topic/tool-deploy.js +200 -0
- package/commands/bootstrap/index.js +0 -164
- package/commands/bootstrap/init-project.js +0 -121
- package/commands/scan/index.js +0 -283
- package/commands/scan/platforms/fanqie.js +0 -146
- package/commands/scan/platforms/jinjiang.js +0 -143
- package/commands/scan/platforms/qidian.js +0 -102
- package/commands/scan/platforms/qimao.js +0 -127
- package/commands/scan/scraper.js +0 -195
- package/infra.js +0 -160
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "formulas-skeleton",
|
|
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
|
+
},
|
|
7
|
+
"variables": {
|
|
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(五类人物配额之和)"
|
|
18
|
+
},
|
|
19
|
+
"formulas": {
|
|
20
|
+
"structure.volume_count": {
|
|
21
|
+
"formula": "max(1, ceil(T/120)) ~ max(max(1, ceil(T/120)), min(max(1, ceil(T/40)), 30))",
|
|
22
|
+
"expr_low": "Math.max(1, Math.ceil(T / 120))",
|
|
23
|
+
"expr_high": "Math.max(Math.max(1, Math.ceil(T / 120)), Math.min(Math.max(1, Math.ceil(T / 40)), 30))",
|
|
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,重投到上限后阶段死循环)",
|
|
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。"
|
|
31
|
+
},
|
|
32
|
+
"structure.branch_count": {
|
|
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))))",
|
|
34
|
+
"expr_low": "Math.max(1, Math.ceil(V / 2), Math.ceil(Math.floor(T * 0.3) / 30))",
|
|
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))))",
|
|
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,保证区间恒非空",
|
|
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"
|
|
42
|
+
},
|
|
43
|
+
"character_elements.volume_supporting_count": {
|
|
44
|
+
"formula": "min(V*3, 30) ~ min(V*5, 30)",
|
|
45
|
+
"expr_low": "Math.min(V * 3, 30)",
|
|
46
|
+
"expr_high": "Math.min(V * 5, 30)",
|
|
47
|
+
"note": "卷级重要配角数,全书上限 30;卷数多时下界收敛到 30(否则区间为空,模型写不出合法值)",
|
|
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"
|
|
53
|
+
},
|
|
54
|
+
"character_elements.volume_antagonist_count": {
|
|
55
|
+
"formula": "min(V, 15) ~ min(V*2, 15)",
|
|
56
|
+
"expr_low": "Math.min(V, 15)",
|
|
57
|
+
"expr_high": "Math.min(V * 2, 15)",
|
|
58
|
+
"note": "卷级反派数,全书上限 15;卷数多时下界收敛到 15(否则区间为空,模型写不出合法值)",
|
|
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"
|
|
64
|
+
},
|
|
65
|
+
"conflict_elements.phase_conflict_count": {
|
|
66
|
+
"formula": "min(ceil(V*1.5), 20) ~ min(V*2, 20)",
|
|
67
|
+
"expr_low": "Math.min(Math.ceil(V * 1.5), 20)",
|
|
68
|
+
"expr_high": "Math.min(V * 2, 20)",
|
|
69
|
+
"note": "阶段冲突数,全书上限 20;卷数多时下界收敛到 20(否则区间为空,模型写不出合法值)",
|
|
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"
|
|
75
|
+
},
|
|
76
|
+
"conflict_elements.branch_conflict_count": {
|
|
77
|
+
"formula": "min(BC*2, 30) ~ min(BC*3, 30)",
|
|
78
|
+
"expr_low": "Math.min(BC * 2, 30)",
|
|
79
|
+
"expr_high": "Math.min(BC * 3, 30)",
|
|
80
|
+
"note": "交织冲突数,全书上限 30;支线多时下界收敛到 30(否则区间为空,模型写不出合法值)",
|
|
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"
|
|
86
|
+
},
|
|
87
|
+
"faction_elements.faction_count": {
|
|
88
|
+
"formula": "min(max(2, ceil(V/2)), 12) ~ min(V*3, 12)",
|
|
89
|
+
"expr_low": "Math.min(Math.max(2, Math.ceil(V / 2)), 12)",
|
|
90
|
+
"expr_high": "Math.min(V * 3, 12)",
|
|
91
|
+
"note": "势力数,全书上限 12。改为公式驱动,不再由角色去重决定;卷数多时下界收敛到 12(否则区间为空)",
|
|
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"
|
|
97
|
+
},
|
|
98
|
+
"faction_elements.faction_relation_count": {
|
|
99
|
+
"formula": "max(1, n-1) ~ n*(n-1)/2",
|
|
100
|
+
"expr_low": "Math.max(1, quota.faction_count - 1)",
|
|
101
|
+
"expr_high": "quota.faction_count * (quota.faction_count - 1) / 2",
|
|
102
|
+
"note": "势力关系数。下界 n-1 保证势力图基本连通(每个势力至少一条关系);上界为完全图数(理论上限)。实际值通常两者之间,少于完全图数不会报 warning(因为公式下界不是完全图数)。n = quota.faction_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"
|
|
108
|
+
},
|
|
109
|
+
"location_elements.key_location_count": {
|
|
110
|
+
"formula": "min(max(3, V*3), 40) ~ min(V*8, 40)",
|
|
111
|
+
"expr_low": "Math.min(Math.max(3, V * 3), 40)",
|
|
112
|
+
"expr_high": "Math.min(V * 8, 40)",
|
|
113
|
+
"note": "关键地点数,全书上限 40;卷数多时下界收敛到 40(否则区间为空,模型写不出合法值)",
|
|
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"
|
|
119
|
+
},
|
|
120
|
+
"foreshadow_elements.small_foreshadow_count": {
|
|
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"
|
|
130
|
+
},
|
|
131
|
+
"foreshadow_elements.medium_foreshadow_count": {
|
|
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"
|
|
141
|
+
},
|
|
142
|
+
"foreshadow_elements.large_foreshadow_count": {
|
|
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"
|
|
152
|
+
},
|
|
153
|
+
"climax_elements.small_climax_count": {
|
|
154
|
+
"formula": "V*5 ~ V*10",
|
|
155
|
+
"expr_low": "V * 5",
|
|
156
|
+
"expr_high": "V * 10",
|
|
157
|
+
"note": "小高潮数,每卷 5~10 个",
|
|
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"
|
|
163
|
+
},
|
|
164
|
+
"climax_elements.medium_climax_count": {
|
|
165
|
+
"formula": "V*1 ~ V*2",
|
|
166
|
+
"expr_low": "V * 1",
|
|
167
|
+
"expr_high": "V * 2",
|
|
168
|
+
"note": "中高潮数",
|
|
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"
|
|
174
|
+
},
|
|
175
|
+
"climax_elements.large_climax_count": {
|
|
176
|
+
"formula": "V ~ V+1",
|
|
177
|
+
"expr_low": "V",
|
|
178
|
+
"expr_high": "V + 1",
|
|
179
|
+
"note": "大高潮数",
|
|
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"
|
|
185
|
+
},
|
|
186
|
+
"pleasure_elements.small_pleasure_count": {
|
|
187
|
+
"formula": "V*8 ~ V*15",
|
|
188
|
+
"expr_low": "V * 8",
|
|
189
|
+
"expr_high": "V * 15",
|
|
190
|
+
"note": "小爽点数,每卷 8~15 个",
|
|
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"
|
|
196
|
+
},
|
|
197
|
+
"pleasure_elements.medium_pleasure_count": {
|
|
198
|
+
"formula": "V*3 ~ V*5",
|
|
199
|
+
"expr_low": "V * 3",
|
|
200
|
+
"expr_high": "V * 5",
|
|
201
|
+
"note": "中爽点数",
|
|
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"
|
|
207
|
+
},
|
|
208
|
+
"pleasure_elements.large_pleasure_count": {
|
|
209
|
+
"formula": "V ~ V+2",
|
|
210
|
+
"expr_low": "V",
|
|
211
|
+
"expr_high": "V + 2",
|
|
212
|
+
"note": "大爽点数",
|
|
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"
|
|
218
|
+
},
|
|
219
|
+
"item_elements.core_item_count": {
|
|
220
|
+
"formula": "max(2, CC*2) ~ CC*3",
|
|
221
|
+
"expr_low": "Math.max(2, CC * 2)",
|
|
222
|
+
"expr_high": "CC * 3",
|
|
223
|
+
"note": "核心道具数",
|
|
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"
|
|
229
|
+
},
|
|
230
|
+
"item_elements.branch_item_count": {
|
|
231
|
+
"formula": "min(max(2, BC*2), 30) ~ min(BC*3, 30)",
|
|
232
|
+
"expr_low": "Math.min(Math.max(2, BC * 2), 30)",
|
|
233
|
+
"expr_high": "Math.min(BC * 3, 30)",
|
|
234
|
+
"note": "支线道具数,全书上限 30;支线多时下界收敛到 30(否则区间为空,模型写不出合法值)",
|
|
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"
|
|
240
|
+
},
|
|
241
|
+
"item_elements.symbolic_item_count": {
|
|
242
|
+
"formula": "ceil((P+CS+CA)/2) ~ min(P+CS+CA, 15)",
|
|
243
|
+
"expr_low": "Math.ceil((P + CS + CA) / 2)",
|
|
244
|
+
"expr_high": "Math.min(P + CS + CA, 15)",
|
|
245
|
+
"note": "象征道具数,绝对上限 15",
|
|
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"
|
|
251
|
+
},
|
|
252
|
+
"world_rule_counts.core": {
|
|
253
|
+
"formula": "min(max(1, V), 20) ~ min(V*3, 20)",
|
|
254
|
+
"expr_low": "Math.min(Math.max(1, V), 20)",
|
|
255
|
+
"expr_high": "Math.min(V * 3, 20)",
|
|
256
|
+
"note": "核心规则数(力量体系/物理规则),每卷 1-3 条,全书上限 20;卷数多时下界收敛到 20(否则区间为空)",
|
|
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"
|
|
262
|
+
},
|
|
263
|
+
"world_rule_counts.information": {
|
|
264
|
+
"formula": "min(max(1, V), 15) ~ min(V*2, 15)",
|
|
265
|
+
"expr_low": "Math.min(Math.max(1, V), 15)",
|
|
266
|
+
"expr_high": "Math.min(V * 2, 15)",
|
|
267
|
+
"note": "信息规则数(信息传播/隐藏/揭示),每卷 1-2 条,全书上限 15;卷数多时下界收敛到 15(否则区间为空)",
|
|
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"
|
|
273
|
+
},
|
|
274
|
+
"world_rule_counts.social": {
|
|
275
|
+
"formula": "min(max(1, V), 15) ~ min(V*2, 15)",
|
|
276
|
+
"expr_low": "Math.min(Math.max(1, V), 15)",
|
|
277
|
+
"expr_high": "Math.min(V * 2, 15)",
|
|
278
|
+
"note": "社会规则数(社会结构/文化/禁忌),每卷 1-2 条,全书上限 15;卷数多时下界收敛到 15(否则区间为空)",
|
|
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"
|
|
284
|
+
},
|
|
285
|
+
"ending_elements.ending_count": {
|
|
286
|
+
"formula": "V===1 ? 1 : V ~ V===1 ? 1 : V+1",
|
|
287
|
+
"expr_low": "V === 1 ? 1 : V",
|
|
288
|
+
"expr_high": "V === 1 ? 1 : V + 1",
|
|
289
|
+
"note": "结局总数。单卷作品:区间 [1,1],必须恰好 1 个全书级结局,无卷级结局。多卷作品:区间 [V, V+1],允许 V-1 或 V 个卷级结局。无论单卷多卷,level='全书级' 的结局必须恰好 1 个——这是结构语义,由 skeleton-validate.js 的 QUOTA_MISMATCH 检查(ending_book_level 字段),不在本公式中表达",
|
|
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"
|
|
295
|
+
},
|
|
296
|
+
"fixed.structure.main_line_count": {
|
|
297
|
+
"formula": "1",
|
|
298
|
+
"expr_low": "1",
|
|
299
|
+
"expr_high": "1",
|
|
300
|
+
"note": "主线数固定为 1",
|
|
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"
|
|
306
|
+
},
|
|
307
|
+
"fixed.character_elements.protagonist_count": {
|
|
308
|
+
"formula": "1~2",
|
|
309
|
+
"expr_low": "1",
|
|
310
|
+
"expr_high": "2",
|
|
311
|
+
"note": "主角数 1~2 人",
|
|
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"
|
|
317
|
+
},
|
|
318
|
+
"fixed.character_elements.core_supporting_count": {
|
|
319
|
+
"formula": "2 ~ 5",
|
|
320
|
+
"expr_low": "2",
|
|
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"
|
|
328
|
+
},
|
|
329
|
+
"fixed.character_elements.core_antagonist_count": {
|
|
330
|
+
"formula": "1~3",
|
|
331
|
+
"expr_low": "1",
|
|
332
|
+
"expr_high": "3",
|
|
333
|
+
"note": "贯穿级核心反派数 1~3 人",
|
|
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"
|
|
339
|
+
},
|
|
340
|
+
"fixed.conflict_elements.core_conflict_count": {
|
|
341
|
+
"formula": "1",
|
|
342
|
+
"expr_low": "1",
|
|
343
|
+
"expr_high": "1",
|
|
344
|
+
"note": "核心冲突数固定为 1",
|
|
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"
|
|
350
|
+
}
|
|
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 条公式清单。"
|
|
402
|
+
}
|