inkbone 0.0.0-stage → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/LICENSE +21 -0
  2. package/README.en.md +380 -0
  3. package/README.md +384 -2
  4. package/bin/inkbone.mjs +1049 -0
  5. package/configs/genres.json +591 -0
  6. package/configs/messages.json +336 -0
  7. package/configs/platforms.json +66 -0
  8. package/configs/presets.json +265 -0
  9. package/configs/severity.json +59 -0
  10. package/configs/zh-linguistics.json +1040 -0
  11. package/configs/zh-traditional.json +97 -0
  12. package/examples/claude-code-hooks.json +15 -0
  13. package/examples/mcp-config.json +12 -0
  14. package/package.json +62 -4
  15. package/prompts/00-style-architect.md +42 -0
  16. package/prompts/01-beat-planner.md +54 -0
  17. package/prompts/02-paratactic-renderer.md +63 -0
  18. package/prompts/03-targeted-rewriter.md +44 -0
  19. package/prompts/04-evidence-reviewer.md +39 -0
  20. package/prompts/05-reader-simulator.md +54 -0
  21. package/prompts/06-ledger-importer.md +41 -0
  22. package/prompts/07-chapter-settler.md +66 -0
  23. package/resources/bad_vs_good_cases.md +132 -0
  24. package/resources/eval/blind-read-instructions.md +18 -0
  25. package/resources/genre_playbooks/classical-xianxia.md +22 -0
  26. package/resources/genre_playbooks/general-clean.md +19 -0
  27. package/resources/genre_playbooks/historical-court.md +21 -0
  28. package/resources/genre_playbooks/light-fantasy.md +22 -0
  29. package/resources/genre_playbooks/mystery-thriller.md +22 -0
  30. package/resources/genre_playbooks/romance-emotional.md +20 -0
  31. package/resources/genre_playbooks/scifi-wasteland.md +21 -0
  32. package/resources/genre_playbooks/urban-realism.md +22 -0
  33. package/resources/genre_playbooks/wuxia-jianghu.md +21 -0
  34. package/resources/micro_techniques.md +77 -0
  35. package/skills/inkbone/LICENSE +21 -0
  36. package/skills/inkbone/README.md +385 -0
  37. package/skills/inkbone/SKILL.md +162 -0
  38. package/skills/inkbone/benchmarks/eval-set/README.md +49 -0
  39. package/skills/inkbone/benchmarks/eval-set/public-pairs.json +42 -0
  40. package/skills/inkbone/benchmarks/eval-set/seeds.json +42 -0
  41. package/skills/inkbone/bin/inkbone.mjs +1049 -0
  42. package/skills/inkbone/configs/genres.json +591 -0
  43. package/skills/inkbone/configs/messages.json +336 -0
  44. package/skills/inkbone/configs/platforms.json +66 -0
  45. package/skills/inkbone/configs/presets.json +265 -0
  46. package/skills/inkbone/configs/severity.json +59 -0
  47. package/skills/inkbone/configs/zh-linguistics.json +1040 -0
  48. package/skills/inkbone/configs/zh-traditional.json +97 -0
  49. package/skills/inkbone/package.json +64 -0
  50. package/skills/inkbone/prompts/00-style-architect.md +42 -0
  51. package/skills/inkbone/prompts/01-beat-planner.md +54 -0
  52. package/skills/inkbone/prompts/02-paratactic-renderer.md +63 -0
  53. package/skills/inkbone/prompts/03-targeted-rewriter.md +44 -0
  54. package/skills/inkbone/prompts/04-evidence-reviewer.md +39 -0
  55. package/skills/inkbone/prompts/05-reader-simulator.md +54 -0
  56. package/skills/inkbone/prompts/06-ledger-importer.md +41 -0
  57. package/skills/inkbone/prompts/07-chapter-settler.md +66 -0
  58. package/skills/inkbone/resources/bad_vs_good_cases.md +132 -0
  59. package/skills/inkbone/resources/eval/blind-read-instructions.md +18 -0
  60. package/skills/inkbone/resources/genre_playbooks/classical-xianxia.md +22 -0
  61. package/skills/inkbone/resources/genre_playbooks/general-clean.md +19 -0
  62. package/skills/inkbone/resources/genre_playbooks/historical-court.md +21 -0
  63. package/skills/inkbone/resources/genre_playbooks/light-fantasy.md +22 -0
  64. package/skills/inkbone/resources/genre_playbooks/mystery-thriller.md +22 -0
  65. package/skills/inkbone/resources/genre_playbooks/romance-emotional.md +20 -0
  66. package/skills/inkbone/resources/genre_playbooks/scifi-wasteland.md +21 -0
  67. package/skills/inkbone/resources/genre_playbooks/urban-realism.md +22 -0
  68. package/skills/inkbone/resources/genre_playbooks/wuxia-jianghu.md +21 -0
  69. package/skills/inkbone/resources/micro_techniques.md +77 -0
  70. package/skills/inkbone/src/aigc-guard.mjs +83 -0
  71. package/skills/inkbone/src/auditor.mjs +24 -0
  72. package/skills/inkbone/src/benchmark-runner.mjs +71 -0
  73. package/skills/inkbone/src/boundary-compiler.mjs +60 -0
  74. package/skills/inkbone/src/browser-doctor.mjs +30 -0
  75. package/skills/inkbone/src/calibrator.mjs +175 -0
  76. package/skills/inkbone/src/config-loader.mjs +233 -0
  77. package/skills/inkbone/src/continuity.mjs +5 -0
  78. package/skills/inkbone/src/core/aigc-guard.mjs +387 -0
  79. package/skills/inkbone/src/core/auditor.mjs +1074 -0
  80. package/skills/inkbone/src/core/boundary-compiler.mjs +526 -0
  81. package/skills/inkbone/src/core/browser-doctor.mjs +320 -0
  82. package/skills/inkbone/src/core/config-compiler.mjs +434 -0
  83. package/skills/inkbone/src/core/continuity.mjs +158 -0
  84. package/skills/inkbone/src/core/evidence-validator.mjs +77 -0
  85. package/skills/inkbone/src/core/exporter.mjs +423 -0
  86. package/skills/inkbone/src/core/formatter.mjs +241 -0
  87. package/skills/inkbone/src/core/ledger-manager.mjs +843 -0
  88. package/skills/inkbone/src/core/normalizer.mjs +517 -0
  89. package/skills/inkbone/src/core/profiler.mjs +686 -0
  90. package/skills/inkbone/src/core/rule-engine.mjs +1710 -0
  91. package/skills/inkbone/src/core/style-profiler.mjs +229 -0
  92. package/skills/inkbone/src/detector.mjs +270 -0
  93. package/skills/inkbone/src/doctor.mjs +430 -0
  94. package/skills/inkbone/src/evaluation.mjs +311 -0
  95. package/skills/inkbone/src/evidence-validator.mjs +15 -0
  96. package/skills/inkbone/src/exporter.mjs +142 -0
  97. package/skills/inkbone/src/formatter.mjs +34 -0
  98. package/skills/inkbone/src/importer.mjs +230 -0
  99. package/skills/inkbone/src/index.mjs +134 -0
  100. package/skills/inkbone/src/ledger-manager.mjs +22 -0
  101. package/skills/inkbone/src/mcp-server.mjs +950 -0
  102. package/skills/inkbone/src/normalizer.mjs +73 -0
  103. package/skills/inkbone/src/profiler.mjs +17 -0
  104. package/skills/inkbone/src/rule-engine.mjs +91 -0
  105. package/skills/inkbone/src/rule-stats.mjs +142 -0
  106. package/skills/inkbone/src/style-profiler.mjs +25 -0
  107. package/src/aigc-guard.mjs +83 -0
  108. package/src/auditor.mjs +24 -0
  109. package/src/benchmark-runner.mjs +71 -0
  110. package/src/boundary-compiler.mjs +60 -0
  111. package/src/browser-doctor.mjs +30 -0
  112. package/src/calibrator.mjs +175 -0
  113. package/src/config-loader.mjs +233 -0
  114. package/src/continuity.mjs +5 -0
  115. package/src/core/aigc-guard.mjs +387 -0
  116. package/src/core/auditor.mjs +1074 -0
  117. package/src/core/boundary-compiler.mjs +526 -0
  118. package/src/core/browser-doctor.mjs +320 -0
  119. package/src/core/config-compiler.mjs +434 -0
  120. package/src/core/continuity.mjs +158 -0
  121. package/src/core/evidence-validator.mjs +77 -0
  122. package/src/core/exporter.mjs +423 -0
  123. package/src/core/formatter.mjs +241 -0
  124. package/src/core/ledger-manager.mjs +843 -0
  125. package/src/core/normalizer.mjs +517 -0
  126. package/src/core/profiler.mjs +686 -0
  127. package/src/core/rule-engine.mjs +1710 -0
  128. package/src/core/style-profiler.mjs +229 -0
  129. package/src/detector.mjs +270 -0
  130. package/src/doctor.mjs +430 -0
  131. package/src/evaluation.mjs +311 -0
  132. package/src/evidence-validator.mjs +15 -0
  133. package/src/exporter.mjs +142 -0
  134. package/src/formatter.mjs +34 -0
  135. package/src/importer.mjs +230 -0
  136. package/src/index.mjs +134 -0
  137. package/src/ledger-manager.mjs +22 -0
  138. package/src/mcp-server.mjs +950 -0
  139. package/src/normalizer.mjs +73 -0
  140. package/src/profiler.mjs +17 -0
  141. package/src/rule-engine.mjs +91 -0
  142. package/src/rule-stats.mjs +142 -0
  143. package/src/style-profiler.mjs +25 -0
@@ -0,0 +1,230 @@
1
+ // 存量小说反推台账导入器:扫描已有章稿并无损合并生成 ledger.json
2
+ import fs from "fs";
3
+ import path from "path";
4
+ import { collectTextFiles } from "./calibrator.mjs";
5
+ import { loadLinguisticsConfig } from "./config-loader.mjs";
6
+ import { countHan } from "./profiler.mjs";
7
+ import { parseChineseOrArabicNumber } from "./rule-engine.mjs";
8
+ import { extractCandidateCharacters } from "./core/ledger-manager.mjs";
9
+
10
+ export { parseChineseOrArabicNumber };
11
+
12
+ // 从章首正文标题行或文件名解析章节号与章名
13
+ export function parseChapterNumberAndTitle(
14
+ filePath,
15
+ rawContent,
16
+ customLingConfig = null
17
+ ) {
18
+ const cfg = customLingConfig || loadLinguisticsConfig();
19
+ const cn = cfg.chineseNumerals || {};
20
+ const headingRe = cn.chapterHeadingParseRegex
21
+ ? new RegExp(cn.chapterHeadingParseRegex)
22
+ : null;
23
+ const fileRe = cn.chapterFileParseRegex
24
+ ? new RegExp(cn.chapterFileParseRegex)
25
+ : null;
26
+
27
+ const lines = String(rawContent || "")
28
+ .split(/\r?\n/)
29
+ .map((l) => l.trim())
30
+ .filter(Boolean)
31
+ .slice(0, 8);
32
+
33
+ if (headingRe) {
34
+ for (const line of lines) {
35
+ const match = headingRe.exec(line);
36
+ if (match) {
37
+ const chapterNumber = parseChineseOrArabicNumber(match[1], cn);
38
+ if (chapterNumber !== null) {
39
+ return {
40
+ chapterNumber,
41
+ title: (match[2] || "").replace(/^[_:\-\s\u2014]+/, "").trim(),
42
+ };
43
+ }
44
+ }
45
+ }
46
+ }
47
+
48
+ if (fileRe && filePath) {
49
+ const base = path.basename(filePath);
50
+ const match = fileRe.exec(base);
51
+ if (match) {
52
+ const chapterNumber = parseChineseOrArabicNumber(match[1], cn);
53
+ if (chapterNumber !== null) {
54
+ return {
55
+ chapterNumber,
56
+ title: (match[2] || "").replace(/^[_:\-\s\u2014]+/, "").trim(),
57
+ };
58
+ }
59
+ }
60
+ }
61
+
62
+ return { chapterNumber: null, title: "" };
63
+ }
64
+
65
+ // 从单章正文提取候选专有名词(如书名号功法/物品/典籍)
66
+ function extractChapterBookTerms(rawContent, bookTitleRegex) {
67
+ if (!bookTitleRegex || !rawContent) return [];
68
+ const terms = new Set();
69
+ bookTitleRegex.lastIndex = 0;
70
+ let m;
71
+ while ((m = bookTitleRegex.exec(rawContent)) !== null) {
72
+ if (m[0] && m[0].length >= 3) {
73
+ terms.add(m[0]);
74
+ }
75
+ }
76
+ return Array.from(terms);
77
+ }
78
+
79
+ // 批量扫描存量章稿目录并无损生成或增补全书台账
80
+ export function importLedgerFromChapters(targetPaths, options = {}) {
81
+ const inputs = Array.isArray(targetPaths) ? targetPaths : [targetPaths];
82
+ const files = collectTextFiles(inputs);
83
+ const lingConfig = options.lingConfig || loadLinguisticsConfig();
84
+ const hanRegex = lingConfig.compiledRegex.hanCharGlobal;
85
+ const bookTitleRegex = lingConfig.compiledRegex.bookTitleTermGlobal;
86
+
87
+ const existing = options.existingLedger || {};
88
+ const existingChapters = Array.isArray(existing.chapters)
89
+ ? existing.chapters
90
+ : [];
91
+ const existingByNumber = new Map();
92
+ for (const ch of existingChapters) {
93
+ if (ch && ch.chapterNumber != null) {
94
+ existingByNumber.set(Number(ch.chapterNumber), ch);
95
+ }
96
+ }
97
+
98
+ const parsedEntries = [];
99
+ const skippedFiles = [];
100
+ const termFreq = new Map();
101
+ const matchedTexts = [];
102
+
103
+ for (const filePath of files) {
104
+ const rawContent = fs.readFileSync(filePath, "utf8");
105
+ const parsed = parseChapterNumberAndTitle(filePath, rawContent, lingConfig);
106
+ if (parsed.chapterNumber === null) {
107
+ skippedFiles.push(path.basename(filePath));
108
+ continue;
109
+ }
110
+
111
+ matchedTexts.push(rawContent);
112
+ const hanCount = countHan(rawContent, hanRegex);
113
+ const bookTerms = extractChapterBookTerms(rawContent, bookTitleRegex);
114
+ for (const term of bookTerms) {
115
+ const rec = termFreq.get(term) || {
116
+ term,
117
+ chapterCount: 0,
118
+ firstChapter: parsed.chapterNumber,
119
+ };
120
+ rec.chapterCount += 1;
121
+ if (parsed.chapterNumber < rec.firstChapter) {
122
+ rec.firstChapter = parsed.chapterNumber;
123
+ }
124
+ termFreq.set(term, rec);
125
+ }
126
+
127
+ parsedEntries.push({
128
+ chapterNumber: parsed.chapterNumber,
129
+ title: parsed.title,
130
+ hanCount,
131
+ sourceFile: path.basename(filePath),
132
+ });
133
+ }
134
+
135
+ parsedEntries.sort((a, b) => a.chapterNumber - b.chapterNumber);
136
+
137
+ // 无损合并:保留已有精修章节条目,仅对新增章节插入空壳待补条目
138
+ const mergedMap = new Map(existingByNumber);
139
+ let preservedChapters = 0;
140
+ let addedChapters = 0;
141
+
142
+ for (const entry of parsedEntries) {
143
+ if (mergedMap.has(entry.chapterNumber)) {
144
+ preservedChapters += 1;
145
+ } else {
146
+ mergedMap.set(entry.chapterNumber, {
147
+ chapterNumber: entry.chapterNumber,
148
+ title: entry.title,
149
+ hanCount: entry.hanCount,
150
+ sourceFile: entry.sourceFile,
151
+ coreSummary: "",
152
+ requiredAnchors: [],
153
+ futureForbiddenTerms: [],
154
+ });
155
+ addedChapters += 1;
156
+ }
157
+ }
158
+
159
+ const mergedChapters = Array.from(mergedMap.values()).sort(
160
+ (a, b) => Number(a.chapterNumber) - Number(b.chapterNumber)
161
+ );
162
+
163
+ // 零依赖启发式挖掘高频角色名候选,解决存量书稿 characterNames 默认为空导致主语歧义不触发的问题
164
+ const candidateCharacters = extractCandidateCharacters(matchedTexts, lingConfig, {
165
+ minTotalCount: options.minCharacterCount,
166
+ maxCandidates: options.maxCharacterCandidates,
167
+ });
168
+ const baseCharacterNames = Array.isArray(existing.characterNames)
169
+ ? [...existing.characterNames]
170
+ : [];
171
+ let autoPopulatedCharacters = [];
172
+ if (options.autoPopulateCharacters && candidateCharacters.length > 0) {
173
+ const existingSet = new Set(baseCharacterNames);
174
+ const minConfidence = options.minCharacterConfidence || "medium";
175
+ const eligible = candidateCharacters.filter(
176
+ (c) => minConfidence === "medium" || c.confidence === "high"
177
+ );
178
+ for (const c of eligible) {
179
+ if (!existingSet.has(c.name)) {
180
+ baseCharacterNames.push(c.name);
181
+ existingSet.add(c.name);
182
+ autoPopulatedCharacters.push(c.name);
183
+ }
184
+ }
185
+ }
186
+
187
+ // 深浅保真地克隆其余台账字段,并补全双栏知识与伏笔空壳
188
+ const ledger = {
189
+ ...existing,
190
+ projectTitle: existing.projectTitle || options.projectTitle || "",
191
+ protagonist: existing.protagonist || "",
192
+ characterNames: baseCharacterNames,
193
+ immutableWorldRules: Array.isArray(existing.immutableWorldRules)
194
+ ? existing.immutableWorldRules
195
+ : [],
196
+ deprecatedTerms: Array.isArray(existing.deprecatedTerms)
197
+ ? existing.deprecatedTerms
198
+ : [],
199
+ knowledgeLedger: Array.isArray(existing.knowledgeLedger)
200
+ ? existing.knowledgeLedger
201
+ : [],
202
+ characterSnapshots:
203
+ existing.characterSnapshots &&
204
+ typeof existing.characterSnapshots === "object"
205
+ ? existing.characterSnapshots
206
+ : {},
207
+ foreshadowing: Array.isArray(existing.foreshadowing)
208
+ ? existing.foreshadowing
209
+ : [],
210
+ chapters: mergedChapters,
211
+ };
212
+
213
+ const candidateTerms = Array.from(termFreq.values()).sort(
214
+ (a, b) => b.chapterCount - a.chapterCount || a.firstChapter - b.firstChapter
215
+ );
216
+
217
+ return {
218
+ ledger,
219
+ stats: {
220
+ scannedFiles: files.length,
221
+ matchedChapters: parsedEntries.length,
222
+ preservedChapters,
223
+ addedChapters,
224
+ skippedFiles,
225
+ candidateTerms: candidateTerms.slice(0, 60),
226
+ candidateCharacters,
227
+ autoPopulatedCharacters,
228
+ },
229
+ };
230
+ }
@@ -0,0 +1,134 @@
1
+ export {
2
+ loadGenresConfig,
3
+ loadLinguisticsConfig,
4
+ loadPresetsConfig,
5
+ loadSeverityConfig,
6
+ loadMessagesConfig,
7
+ loadTraditionalConfig,
8
+ loadPlatformsConfig,
9
+ resolveGenre,
10
+ resolvePreset,
11
+ findProjectConfig,
12
+ loadProjectConfig,
13
+ compileProjectRules,
14
+ loadWhitelistFile,
15
+ } from "./config-loader.mjs";
16
+ export {
17
+ maskWhitelistLiterals,
18
+ maskQuotedText,
19
+ stripSpokenDialogue,
20
+ extractBodyParagraphLines,
21
+ runDensityTics,
22
+ runDegenerationChecks,
23
+ checkOutlineCopy,
24
+ checkCharCountClaims,
25
+ checkOutlineContract,
26
+ checkCalendarSpanContradictions,
27
+ checkGoldenOpeningPacing,
28
+ } from "./rule-engine.mjs";
29
+ export { profileText, countHan } from "./profiler.mjs";
30
+ export {
31
+ compileBoundaryPacket,
32
+ verifyChapterBoundaries,
33
+ computeBoundaryEchoRatio,
34
+ checkDeceasedCharacterAppearances,
35
+ checkUnresolvedTacticalProps,
36
+ checkWorldRuleViolations,
37
+ } from "./boundary-compiler.mjs";
38
+ export { auditChapterText } from "./auditor.mjs";
39
+ export { validateEvidenceReview } from "./evidence-validator.mjs";
40
+ export {
41
+ calibrateReference,
42
+ mineOverusedPhrases,
43
+ collectTextFiles,
44
+ } from "./calibrator.mjs";
45
+ export {
46
+ runCorpusBenchmark,
47
+ formatBenchmarkMarkdown,
48
+ } from "./benchmark-runner.mjs";
49
+ export {
50
+ detectWithZhuque,
51
+ resolveZhuqueApiKey,
52
+ prepareDetectorInput,
53
+ mergeFineWindowsLocally,
54
+ } from "./detector.mjs";
55
+ export {
56
+ listGenres,
57
+ inferGenreFromTexts,
58
+ diagnoseProject,
59
+ parseChapterFilterSpec,
60
+ formatDoctorMarkdown,
61
+ scaffoldProject,
62
+ } from "./doctor.mjs";
63
+ export {
64
+ parseChineseOrArabicNumber,
65
+ parseChapterNumberAndTitle,
66
+ importLedgerFromChapters,
67
+ } from "./importer.mjs";
68
+ export {
69
+ normalizeProseText,
70
+ normalizeFiles,
71
+ stripMarkdownEmphasis,
72
+ } from "./normalizer.mjs";
73
+ export { computeRuleStats, collectRuleFamilies, formatRuleStatsMarkdown } from "./rule-stats.mjs";
74
+ export { scanSubjectContinuity, collectCharacterNames } from "./continuity.mjs";
75
+ export {
76
+ buildBlindPack,
77
+ writeBlindPack,
78
+ scoreBallots,
79
+ loadPairTexts,
80
+ signTestPValue,
81
+ saveReview,
82
+ summarizeReviews,
83
+ stripHeadings,
84
+ } from "./evaluation.mjs";
85
+ export {
86
+ validateLedger,
87
+ applyChapterSettlement,
88
+ applyBatchSettlement,
89
+ buildLedgerBackfillPrompts,
90
+ extractCandidateCharacters,
91
+ } from "./ledger-manager.mjs";
92
+ export {
93
+ resolveLocaleBundle,
94
+ formatAuditMarkdown,
95
+ buildTargetedRewritePrompt,
96
+ } from "./formatter.mjs";
97
+ export {
98
+ MCP_TOOLS,
99
+ MCP_PROMPTS,
100
+ MCP_RESOURCES,
101
+ handleMcpMessage,
102
+ startMcpServer,
103
+ } from "./mcp-server.mjs";
104
+ export {
105
+ analyzeStyleProfile,
106
+ formatStyleProfileMarkdown,
107
+ } from "./style-profiler.mjs";
108
+ export {
109
+ listPlatforms,
110
+ resolvePlatformConfig,
111
+ formatChapterForPlatform,
112
+ exportChapters,
113
+ buildStoreZipBuffer,
114
+ buildSubmissionDocxBytes,
115
+ } from "./exporter.mjs";
116
+ export {
117
+ diagnoseChapterEntries,
118
+ parseChapterMetaFromEntry,
119
+ inferGenreFromEntries,
120
+ } from "./browser-doctor.mjs";
121
+ export {
122
+ compileTraditionalConfig,
123
+ detectScriptVariant,
124
+ } from "./core/config-compiler.mjs";
125
+ export {
126
+ classifyParagraphCadence,
127
+ computeCadenceEntropy,
128
+ measureCompoundBricks,
129
+ extractNumberedParagraphs,
130
+ evaluateWindowSlice,
131
+ scanChapterAigcWindows,
132
+ checkFilesAigcRisk,
133
+ formatAigcCheckMarkdown,
134
+ } from "./aigc-guard.mjs";
@@ -0,0 +1,22 @@
1
+ // Node 端台账管理入口:自动加载本地语言学配置并委托给纯内存核心引擎
2
+ import { loadLinguisticsConfig } from "./config-loader.mjs";
3
+ import {
4
+ validateLedger,
5
+ applyChapterSettlement,
6
+ applyBatchSettlement,
7
+ buildLedgerBackfillPrompts,
8
+ extractCandidateCharacters as extractCandidateCharactersCore,
9
+ } from "./core/ledger-manager.mjs";
10
+
11
+ export {
12
+ validateLedger,
13
+ applyChapterSettlement,
14
+ applyBatchSettlement,
15
+ buildLedgerBackfillPrompts,
16
+ };
17
+
18
+ // 零依赖启发式挖掘存量章节中的高频角色名候选
19
+ export function extractCandidateCharacters(texts, options = {}) {
20
+ const lingConfig = options.linguisticsConfig || loadLinguisticsConfig();
21
+ return extractCandidateCharactersCore(texts, lingConfig, options);
22
+ }