@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,302 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "formulas-rhythm",
|
|
4
|
+
"description": "节奏阶段的量化约束与参考值。分两部分:constraints(脚本强制的联合可行性约束)+ *-guides(指导文件引用的参考值,脚本不强制校验)。",
|
|
5
|
+
"note": "P0-1 修复:原文件只有 constraints(7 条),本版补全所有被指导文件引用的约束名,分为 10 个节。"
|
|
6
|
+
},
|
|
7
|
+
"variables": {
|
|
8
|
+
"T": "capacity.target_chapters(来自 骨架/框架.json)",
|
|
9
|
+
"V": "quota.volume_count(来自 骨架/框架.json)",
|
|
10
|
+
"BC": "quota.branch_count(来自 骨架/框架.json)",
|
|
11
|
+
"avg": "capacity.avg_words_per_chapter(来自 骨架/框架.json)"
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
"constraints": {
|
|
15
|
+
"branch_chapter_feasible": {
|
|
16
|
+
"name": "branch_chapter_feasible",
|
|
17
|
+
"expr": "节奏参数.branch_chapter_total >= 骨架.quota.branch_count * 3 && 节奏参数.branch_chapter_total <= 骨架.quota.branch_count * 30",
|
|
18
|
+
"source": "骨架.quota.branch_count + 节奏参数.branch_chapter_total",
|
|
19
|
+
"applies_to_field": "branch_chapter_total",
|
|
20
|
+
"message": "支线总章数必须能被 branch_count 条支线以 [3, 30] 章/条 铺满"
|
|
21
|
+
},
|
|
22
|
+
"branch_chapter_ratio": {
|
|
23
|
+
"name": "branch_chapter_ratio",
|
|
24
|
+
"expr": "节奏参数.branch_chapter_total >= Math.floor(骨架.capacity.target_chapters * 0.3) && 节奏参数.branch_chapter_total <= Math.ceil(骨架.capacity.target_chapters * 0.5)",
|
|
25
|
+
"source": "骨架.capacity.target_chapters + 节奏参数.branch_chapter_total",
|
|
26
|
+
"applies_to_field": "branch_chapter_total",
|
|
27
|
+
"message": "支线总章数占 T 的 30%~50%"
|
|
28
|
+
},
|
|
29
|
+
"overlap_le_branch": {
|
|
30
|
+
"name": "overlap_le_branch",
|
|
31
|
+
"expr": "节奏参数.overlap_chapter_count <= 节奏参数.branch_chapter_total",
|
|
32
|
+
"source": "节奏参数.overlap_chapter_count + 节奏参数.branch_chapter_total",
|
|
33
|
+
"applies_to_field": "overlap_chapter_count",
|
|
34
|
+
"message": "重叠章数不能超过支线总章数"
|
|
35
|
+
},
|
|
36
|
+
"overlap_le_main": {
|
|
37
|
+
"name": "overlap_le_main",
|
|
38
|
+
"expr": "节奏参数.overlap_chapter_count <= 节奏参数.main_progress_chapter_count",
|
|
39
|
+
"source": "节奏参数.overlap_chapter_count + 节奏参数.main_progress_chapter_count",
|
|
40
|
+
"applies_to_field": "overlap_chapter_count",
|
|
41
|
+
"message": "重叠章数不能超过主线章数"
|
|
42
|
+
},
|
|
43
|
+
"main_progress_ge_1": {
|
|
44
|
+
"name": "main_progress_ge_1",
|
|
45
|
+
"expr": "节奏参数.main_progress_chapter_count >= 1",
|
|
46
|
+
"source": "节奏参数.main_progress_chapter_count",
|
|
47
|
+
"applies_to_field": "main_progress_chapter_count",
|
|
48
|
+
"message": "至少 1 个主线推进章"
|
|
49
|
+
},
|
|
50
|
+
"main_progress_consistency": {
|
|
51
|
+
"name": "main_progress_consistency",
|
|
52
|
+
"expr": "节奏参数.main_progress_chapter_count === 骨架.capacity.target_chapters - 节奏参数.branch_chapter_total + 节奏参数.overlap_chapter_count",
|
|
53
|
+
"source": "骨架.capacity.target_chapters + 节奏参数.branch_chapter_total + 节奏参数.overlap_chapter_count + 节奏参数.main_progress_chapter_count",
|
|
54
|
+
"applies_to_field": "main_progress_chapter_count",
|
|
55
|
+
"message": "主线章数 = T - 支线总章 + 重叠章"
|
|
56
|
+
},
|
|
57
|
+
"main_progress_le_T": {
|
|
58
|
+
"name": "main_progress_le_T",
|
|
59
|
+
"expr": "节奏参数.main_progress_chapter_count <= 骨架.capacity.target_chapters",
|
|
60
|
+
"source": "骨架.capacity.target_chapters + 节奏参数.main_progress_chapter_count",
|
|
61
|
+
"applies_to_field": "main_progress_chapter_count",
|
|
62
|
+
"message": "主线章数不能超过 T(每章最多 1 个主线 key_node)"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
"arc_phase_ratio": {
|
|
67
|
+
"_note": "六种弧线的段比例。指导文件引用此节来把'结构段'换算成'章节号'(见 02-arc-rhythm.md §4.2)。脚本不强制校验——这是写作时的参考比例,允许 ±2% 的偏差。",
|
|
68
|
+
"V": {
|
|
69
|
+
"segments": ["起始", "下沉", "谷底", "转折", "治愈上升", "高点收束"],
|
|
70
|
+
"ratios": [0.10, 0.30, 0.15, 0.10, 0.25, 0.10],
|
|
71
|
+
"key_point": "谷底段的段中点"
|
|
72
|
+
},
|
|
73
|
+
"inverted_V": {
|
|
74
|
+
"segments": ["起步", "上升", "顶点", "反转", "坠落", "低谷收束"],
|
|
75
|
+
"ratios": [0.10, 0.35, 0.10, 0.05, 0.30, 0.10],
|
|
76
|
+
"key_point": "顶点段的段中点"
|
|
77
|
+
},
|
|
78
|
+
"W": {
|
|
79
|
+
"segments": ["起步+第1峰", "第1谷", "第2峰", "第2谷", "第3峰", "收束"],
|
|
80
|
+
"ratios": [0.25, 0.10, 0.25, 0.10, 0.20, 0.10],
|
|
81
|
+
"key_point": "第3峰(最终峰)的段中点"
|
|
82
|
+
},
|
|
83
|
+
"progressive": {
|
|
84
|
+
"segments": ["压迫", "第1阶反击", "第2阶反击", "第3阶反击", "收束"],
|
|
85
|
+
"ratios": [0.20, 0.20, 0.25, 0.25, 0.10],
|
|
86
|
+
"key_point": "最高点(最后一个反击阶)"
|
|
87
|
+
},
|
|
88
|
+
"delayed_satisfaction": {
|
|
89
|
+
"segments": ["初始压制", "深层铺垫", "压力最大", "爆发触发", "集中爆发", "收束"],
|
|
90
|
+
"ratios": [0.20, 0.25, 0.15, 0.05, 0.25, 0.10],
|
|
91
|
+
"key_point": "爆发触发段的段起点"
|
|
92
|
+
},
|
|
93
|
+
"twist": {
|
|
94
|
+
"segments": ["建立假象", "推高假象", "假象高点", "急转", "真相展开", "新情绪收束"],
|
|
95
|
+
"ratios": [0.35, 0.30, 0.10, 0.05, 0.15, 0.05],
|
|
96
|
+
"key_point": "急转段的段中点"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
|
|
100
|
+
"upgrade_guides": {
|
|
101
|
+
"_note": "五类升级粒度的频率参考。指导文件引用此节来安排'升级节奏'(见 01-upgrade-rhythm.md §3.2)。脚本不强制校验。",
|
|
102
|
+
"granularity": {
|
|
103
|
+
"大境界": {
|
|
104
|
+
"per_volume_low": 1,
|
|
105
|
+
"per_volume_high": 2,
|
|
106
|
+
"全书_low": "V×1",
|
|
107
|
+
"全书_high": "V×2",
|
|
108
|
+
"satisfaction": "最大,身份/地位质变"
|
|
109
|
+
},
|
|
110
|
+
"小等级": {
|
|
111
|
+
"per_unit_low": 1,
|
|
112
|
+
"per_unit_high": 2,
|
|
113
|
+
"全书_low": "单元总数×1",
|
|
114
|
+
"全书_high": "单元总数×2",
|
|
115
|
+
"satisfaction": "中,能力可见提升"
|
|
116
|
+
},
|
|
117
|
+
"装备技能": {
|
|
118
|
+
"per_bridge_low": 0,
|
|
119
|
+
"per_bridge_high": 1,
|
|
120
|
+
"satisfaction": "中,战斗手段增加"
|
|
121
|
+
},
|
|
122
|
+
"人脉势力": {
|
|
123
|
+
"per_unit_low": 0,
|
|
124
|
+
"per_unit_high": 1,
|
|
125
|
+
"satisfaction": "大,资源结构变化"
|
|
126
|
+
},
|
|
127
|
+
"认知信息": {
|
|
128
|
+
"per_unit_low": 1,
|
|
129
|
+
"per_unit_high": 2,
|
|
130
|
+
"satisfaction": "中,智斗兑现"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
|
|
135
|
+
"bridge_guides": {
|
|
136
|
+
"_note": "桥段/单元/高潮的时长参考。指导文件引用此节来安排'节拍顺序'(见 01-upgrade-rhythm.md §5.2-5.3)。脚本不强制校验。",
|
|
137
|
+
"bridge_duration": {
|
|
138
|
+
"description": "一个桥段(情绪模块完整循环)的章数区间",
|
|
139
|
+
"low": 2,
|
|
140
|
+
"high": 4,
|
|
141
|
+
"note": "基准 2000 字/章时约 2-4 章;平台章字数偏离时按比例换算"
|
|
142
|
+
},
|
|
143
|
+
"unit_duration": {
|
|
144
|
+
"description": "一个单元(4-5 桥段)的章数区间",
|
|
145
|
+
"low": 16,
|
|
146
|
+
"high": 20,
|
|
147
|
+
"note": "基准 2000 字/章时约 16-20 章"
|
|
148
|
+
},
|
|
149
|
+
"climax_duration": {
|
|
150
|
+
"description": "高潮的时长参考",
|
|
151
|
+
"大高潮": {
|
|
152
|
+
"bridge_count_low": 3,
|
|
153
|
+
"bridge_count_high": 4,
|
|
154
|
+
"chapter_low": 12,
|
|
155
|
+
"chapter_high": 16,
|
|
156
|
+
"note": "大高潮跨 3-4 桥段(约 12-16 章)"
|
|
157
|
+
},
|
|
158
|
+
"小高潮": {
|
|
159
|
+
"bridge_count_low": 1,
|
|
160
|
+
"bridge_count_high": 2,
|
|
161
|
+
"chapter_low": 4,
|
|
162
|
+
"chapter_high": 8,
|
|
163
|
+
"note": "小高潮跨 1-2 桥段(约 4-8 章)"
|
|
164
|
+
},
|
|
165
|
+
"中高潮": {
|
|
166
|
+
"chapter_low": 3,
|
|
167
|
+
"chapter_high": 5,
|
|
168
|
+
"note": "中高潮约 3-5 章(兑现节拍)"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
|
|
173
|
+
"hook_guides": {
|
|
174
|
+
"_note": "钩子强度的约束与重复判定。指导文件引用此节来安排'钩子强度'(见 03-highpoint-hooks.md §5.2-5.3)。脚本不强制校验(强度判定是主观的)。",
|
|
175
|
+
"hook_strength_constraint": {
|
|
176
|
+
"description": "钩子强度的判定规则",
|
|
177
|
+
"strong_threshold_emotion_value": 8,
|
|
178
|
+
"strong_threshold_key_chapter": [
|
|
179
|
+
"第1章",
|
|
180
|
+
"每卷首章",
|
|
181
|
+
"每卷末章",
|
|
182
|
+
"大高潮章",
|
|
183
|
+
"结局章"
|
|
184
|
+
],
|
|
185
|
+
"rule": "情绪值 >= 8 的章必须强钩子;上列关键章必须强钩子"
|
|
186
|
+
},
|
|
187
|
+
"hook_dup_threshold": {
|
|
188
|
+
"description": "连续同类钩子的告警阈值",
|
|
189
|
+
"warning_at_consecutive": 2,
|
|
190
|
+
"error_at_consecutive": 3,
|
|
191
|
+
"exception": "大高潮连续 3-4 章可同大类,需在细纲中标注'高潮期同类允许'"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
|
|
195
|
+
"satisfaction_guides": {
|
|
196
|
+
"_note": "爽点分布、压制时长、压制红线。指导文件引用此节来安排'爽点与压制'(见 04-satisfaction.md §2-3)。脚本不强制校验。",
|
|
197
|
+
"pleasure_distribution": {
|
|
198
|
+
"description": "爽点密度的参考区间",
|
|
199
|
+
"small_per_chapter_low": 0.2,
|
|
200
|
+
"small_per_chapter_high": 0.3,
|
|
201
|
+
"medium_per_bridge_low": 1,
|
|
202
|
+
"medium_per_bridge_high": 1,
|
|
203
|
+
"large_per_volume_low": 1,
|
|
204
|
+
"large_per_volume_high": 2,
|
|
205
|
+
"note": "小爽点每 3-5 章一次;中爽点每桥段一次;大爽点每卷 1-2 次"
|
|
206
|
+
},
|
|
207
|
+
"suppression_duration": {
|
|
208
|
+
"description": "不同弧线/题材的压制时长(章数区间,基准 2000 字/章)",
|
|
209
|
+
"V_shape_valley": { "low": 1, "high": 2, "note": "V 形谷底" },
|
|
210
|
+
"delayed_satisfaction_prefix": { "low": "T×0.6", "high": "T×0.65", "note": "延迟满足的压制段" },
|
|
211
|
+
"formula2_suppression": { "low": 3, "high": 3, "note": "古言宅斗压抑" },
|
|
212
|
+
"bridge_pull": { "low": 1, "high": 1, "note": "桥段拉扯" },
|
|
213
|
+
"爽文_suppression": { "low": 2, "high": 3, "note": "世情/爽文受辱后打脸" },
|
|
214
|
+
"虐恋_suppression": { "low": 5, "high": 8, "note": "虐恋压制" }
|
|
215
|
+
},
|
|
216
|
+
"suppression_redline": {
|
|
217
|
+
"description": "不同题材的连续无转折上限 / 连续压制上限(章数)",
|
|
218
|
+
"爽文": { "no_turn": 3, "suppress": 3 },
|
|
219
|
+
"情感虐心": { "no_turn": 5, "suppress": 8 },
|
|
220
|
+
"悬疑": { "no_turn": 4, "suppress": 5 },
|
|
221
|
+
"古言复仇": { "no_turn": 4, "suppress": 5 },
|
|
222
|
+
"年代亲情": { "no_turn": 4, "suppress": 6 },
|
|
223
|
+
"正剧文学": { "no_turn": 6, "suppress": 10 }
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
|
|
227
|
+
"expectation_guides": {
|
|
228
|
+
"_note": "期待管理的参考值。指导文件引用此节来安排'期待开环/闭环'(见 04-satisfaction.md §4.6)。脚本不强制校验。",
|
|
229
|
+
"expectation_vacuum_threshold": {
|
|
230
|
+
"description": "期待真空期的判定",
|
|
231
|
+
"consecutive_chapters_without_open_loop": 3,
|
|
232
|
+
"rule": "连续 3 章无任何开环 = 期待真空期,必须立即插入至少 1 个强开环"
|
|
233
|
+
},
|
|
234
|
+
"open_loop_per_unit": {
|
|
235
|
+
"minimum": 1,
|
|
236
|
+
"rule": "每个单元至少 1 个开环在运行"
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
|
|
240
|
+
"foreshadow_guides": {
|
|
241
|
+
"_note": "伏笔的唤醒与超期处理。指导文件引用此节来安排'伏笔密度与唤醒'(见 05-foreshadow-density.md §4.4-5.1)。脚本不强制校验。",
|
|
242
|
+
"foreshadow_wakeup_threshold": {
|
|
243
|
+
"description": "是否需要唤醒的判定",
|
|
244
|
+
"small_foreshadow": { "needs_wakeup": false, "note": "小伏笔回收窗口短,通常不需要唤醒" },
|
|
245
|
+
"medium_foreshadow": { "needs_wakeup_if_gap_over": 15, "note": "中伏笔间隔 > 15 章需要唤醒" },
|
|
246
|
+
"large_foreshadow": { "needs_wakeup": true, "note": "大伏笔几乎都需要唤醒" }
|
|
247
|
+
},
|
|
248
|
+
"foreshadow_overdue_threshold": {
|
|
249
|
+
"description": "伏笔超期判定的阈值",
|
|
250
|
+
"chapter_gap": 20,
|
|
251
|
+
"rule": "当前章 > 预期回收窗口上限 + 20 章 = 超期,必须处理(立即回收/延期/标 abandoned)"
|
|
252
|
+
},
|
|
253
|
+
"foreshadow_density_by_unit": {
|
|
254
|
+
"description": "每单元的伏笔动作密度",
|
|
255
|
+
"bury_per_unit_low": 2,
|
|
256
|
+
"bury_per_unit_high": 4,
|
|
257
|
+
"push_per_unit_low": 2,
|
|
258
|
+
"push_per_unit_high": 3,
|
|
259
|
+
"recover_per_unit_low": 1,
|
|
260
|
+
"recover_per_unit_high": 2
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
|
|
264
|
+
"outline_guides": {
|
|
265
|
+
"_note": "章节细纲的覆盖与字数参考。指导文件引用此节来安排'细纲覆盖范围'(见 06-chapter-outline.md §2.3-3.4)。脚本不强制校验。",
|
|
266
|
+
"outline_coverage": {
|
|
267
|
+
"description": "哪些章必须有细纲",
|
|
268
|
+
"must_have": [
|
|
269
|
+
"第1章",
|
|
270
|
+
"每卷首章",
|
|
271
|
+
"每卷末章",
|
|
272
|
+
"大高潮章",
|
|
273
|
+
"转折点章",
|
|
274
|
+
"结局章"
|
|
275
|
+
],
|
|
276
|
+
"optional_ratio_low": 0.3,
|
|
277
|
+
"optional_ratio_high": 0.5,
|
|
278
|
+
"note": "必须章 + 可选章(约 30%-50% 的章有细纲)"
|
|
279
|
+
},
|
|
280
|
+
"word_target_range": {
|
|
281
|
+
"description": "章节细纲的 word_target 允许偏差",
|
|
282
|
+
"deviation_low": 0.8,
|
|
283
|
+
"deviation_high": 1.2,
|
|
284
|
+
"note": "word_target 应在 avg_words_per_chapter × [0.8, 1.2] 内"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
|
|
288
|
+
"faction_guides": {
|
|
289
|
+
"_note": "势力出场的升级曲线。指导文件引用此节来安排'势力冲突升级'(见 06-chapter-outline.md §6.2)。脚本不强制校验。",
|
|
290
|
+
"faction_escalation_curve": {
|
|
291
|
+
"description": "势力冲突随卷/单元升级",
|
|
292
|
+
"volumes": [
|
|
293
|
+
{ "phase": "背景压迫", "note": "第 1-2 单元:势力施压(背景出现)" },
|
|
294
|
+
{ "phase": "直接冲突", "note": "第 3-4 单元:势力直接冲突(当面冲突)" },
|
|
295
|
+
{ "phase": "势力联合", "note": "第 5-6 单元:势力联合(多势力对立)" },
|
|
296
|
+
{ "phase": "势力决战", "note": "第 7+ 单元:势力决战(一方覆灭)" }
|
|
297
|
+
],
|
|
298
|
+
"miss_threshold_units": 2,
|
|
299
|
+
"rule": "某势力连续 2 单元未出场 = 写丢,需安排提及或出场"
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|