@waterwx/dsh-novel-forge 1.10.1 → 2.0.1-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -3
- package/assets/styles/guoman-2d-gufeng.webp +0 -0
- package/assets/styles/guoman-3d-tianyuan.webp +0 -0
- package/assets/styles/guoman-3d-xuanhuan.webp +0 -0
- package/assets/styles/hyperreal-3d.webp +0 -0
- package/assets/styles/sandiao-qban.webp +0 -0
- package/assets/styles/urban-lightreal-3d.webp +0 -0
- package/lib/client.js +3456 -2133
- package/lib/index.js +1975 -438
- package/lib/types/ai-scan.d.ts +36 -0
- package/lib/types/assets.d.ts +1 -1
- package/lib/types/client/api.d.ts +8 -1
- package/lib/types/client/index.d.ts +1 -1
- package/lib/types/client/panel/AuthorHome.d.ts +4 -2
- package/lib/types/client/panel/FlowGuide.d.ts +6 -5
- package/lib/types/client/panel/MangaRoleLibrary.d.ts +3 -1
- package/lib/types/client/panel/MangaWorkspace.d.ts +2 -5
- package/lib/types/client/panel/PropLibrary.d.ts +8 -0
- package/lib/types/client/panel/SceneLibrary.d.ts +3 -1
- package/lib/types/client/panel/SettingsView.d.ts +4 -2
- package/lib/types/engine.d.ts +50 -21
- package/lib/types/index.d.ts +2 -2
- package/lib/types/manga-genre-rules.d.ts +22 -0
- package/lib/types/novel-context.d.ts +80 -0
- package/lib/types/prompt-utils.d.ts +35 -0
- package/lib/types/protocol.d.ts +104 -12
- package/lib/types/review-policy.d.ts +97 -0
- package/lib/types/style-library.d.ts +3 -3
- package/package.json +21 -24
- package/src/ai-scan.ts +179 -0
- package/src/assets.ts +353 -9
- package/src/client/api.ts +11 -1
- package/src/client/index.ts +1 -1
- package/src/client/mount.tsx +1 -1
- package/src/client/panel/AdaptModeView.tsx +2 -2
- package/src/client/panel/AssistantTab.tsx +1 -1
- package/src/client/panel/AuthorHome.tsx +5 -3
- package/src/client/panel/FlowGuide.tsx +15 -14
- package/src/client/panel/MangaRoleLibrary.tsx +1002 -810
- package/src/client/panel/MangaWorkspace.tsx +715 -359
- package/src/client/panel/ModelManager.tsx +1 -1
- package/src/client/panel/NovelPanel.tsx +4620 -4655
- package/src/client/panel/PropLibrary.tsx +175 -0
- package/src/client/panel/SceneLibrary.tsx +453 -396
- package/src/client/panel/SettingsView.tsx +24 -30
- package/src/client/panel/StoryboardTab.tsx +6 -0
- package/src/client/panel/panel.module.css +165 -4
- package/src/engine.ts +796 -286
- package/src/index.ts +9 -7
- package/src/manga-genre-rules.ts +87 -0
- package/src/novel-context.ts +287 -0
- package/src/prompt-utils.ts +73 -0
- package/src/protocol.ts +2233 -2148
- package/src/review-policy.ts +161 -0
- package/src/routes.ts +3419 -3359
- package/src/style-library.ts +32 -26
package/src/ai-scan.ts
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 本地 AI 味扫描器(不调 LLM,确定性检测)
|
|
3
|
+
*
|
|
4
|
+
* 用途:生成/润色后自动扫描,结果作为「事实锚点」注入审稿提示词,
|
|
5
|
+
* 让 LLM 做判断而非机械统计。也可用于 UI 展示 AI 味指标。
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export interface AiScanResult {
|
|
9
|
+
/** 总评分 0-100,越高越像 AI 写的 */
|
|
10
|
+
aiScore: number
|
|
11
|
+
/** 命中的套话及次数 */
|
|
12
|
+
clicheHits: Array<{ word: string; count: number }>
|
|
13
|
+
/** 段落长度方差(过高=段落过于整齐) */
|
|
14
|
+
paragraphLengthVariance: number
|
|
15
|
+
/** 连续解释性叙事段数(≥3 视为问题) */
|
|
16
|
+
consecutiveExpositoryParagraphs: number
|
|
17
|
+
/** 句式重复率(相同开头句式占比) */
|
|
18
|
+
sentenceRepetitionRate: number
|
|
19
|
+
/** 过长段落数(>300字) */
|
|
20
|
+
longParagraphCount: number
|
|
21
|
+
/** 过短段落数(<20字) */
|
|
22
|
+
shortParagraphCount: number
|
|
23
|
+
/** 对话占比(0-1) */
|
|
24
|
+
dialogueRatio: number
|
|
25
|
+
/** 问题摘要,可直接注入审稿提示词 */
|
|
26
|
+
summary: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** 重灾区套话(高频出现即问题) */
|
|
30
|
+
const HEAVY_CLICHES = [
|
|
31
|
+
'不禁', '仿佛', '一时间', '不由得', '顿时', '然而',
|
|
32
|
+
'缓缓', '轻轻', '微微', '默默', '似乎', '终于',
|
|
33
|
+
'显然', '其实', '无法形容', '难以言喻', '不由自主',
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
/** 轻微套话(偶尔出现可接受,高频才问题) */
|
|
37
|
+
const LIGHT_CLICHES = [
|
|
38
|
+
'心中', '脑海', '眼神', '嘴角', '眉头', '身影',
|
|
39
|
+
'气息', '光芒', '力量', '感觉', '知道', '明白',
|
|
40
|
+
]
|
|
41
|
+
|
|
42
|
+
/** 解释性叙事开头模式 */
|
|
43
|
+
const EXPOSITORY_STARTS = [
|
|
44
|
+
'原来', '因为', '由于', '所以', '因此', '于是',
|
|
45
|
+
'这就是', '也就是说', '换句话说', '事实上', '实际上',
|
|
46
|
+
]
|
|
47
|
+
|
|
48
|
+
export function scanAiFlavor(text: string): AiScanResult {
|
|
49
|
+
const paragraphs = text.split(/\n{2,}/).map(p => p.trim()).filter(p => p.length > 0)
|
|
50
|
+
const totalChars = text.length
|
|
51
|
+
|
|
52
|
+
// 1. 套话统计
|
|
53
|
+
const clicheHits: Array<{ word: string; count: number }> = []
|
|
54
|
+
let clicheTotal = 0
|
|
55
|
+
for (const word of [...HEAVY_CLICHES, ...LIGHT_CLICHES]) {
|
|
56
|
+
const count = countOccurrences(text, word)
|
|
57
|
+
if (count > 0) {
|
|
58
|
+
clicheHits.push({ word, count })
|
|
59
|
+
clicheTotal += count
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
clicheHits.sort((a, b) => b.count - a.count)
|
|
63
|
+
|
|
64
|
+
// 2. 段落长度方差
|
|
65
|
+
const paraLengths = paragraphs.map(p => p.length)
|
|
66
|
+
const avgLen = paraLengths.length > 0 ? paraLengths.reduce((a, b) => a + b, 0) / paraLengths.length : 0
|
|
67
|
+
const variance = paraLengths.length > 0
|
|
68
|
+
? paraLengths.reduce((sum, len) => sum + Math.pow(len - avgLen, 2), 0) / paraLengths.length
|
|
69
|
+
: 0
|
|
70
|
+
|
|
71
|
+
// 3. 连续解释性叙事
|
|
72
|
+
let maxConsecutive = 0
|
|
73
|
+
let currentConsecutive = 0
|
|
74
|
+
for (const p of paragraphs) {
|
|
75
|
+
const isExpository = EXPOSITORY_STARTS.some(s => p.startsWith(s)) ||
|
|
76
|
+
(p.length > 150 && !p.includes('"') && !p.includes('「') && !p.includes('『'))
|
|
77
|
+
if (isExpository) {
|
|
78
|
+
currentConsecutive++
|
|
79
|
+
maxConsecutive = Math.max(maxConsecutive, currentConsecutive)
|
|
80
|
+
} else {
|
|
81
|
+
currentConsecutive = 0
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// 4. 句式重复率(相同句首词)
|
|
86
|
+
const sentences = text.split(/[。!?!?]/).map(s => s.trim()).filter(s => s.length > 0)
|
|
87
|
+
const starterCounts = new Map<string, number>()
|
|
88
|
+
for (const s of sentences) {
|
|
89
|
+
const starter = s.slice(0, 2)
|
|
90
|
+
starterCounts.set(starter, (starterCounts.get(starter) ?? 0) + 1)
|
|
91
|
+
}
|
|
92
|
+
const repeatedStarters = Array.from(starterCounts.values()).filter(c => c >= 3).reduce((a, b) => a + b, 0)
|
|
93
|
+
const sentenceRepetitionRate = sentences.length > 0 ? repeatedStarters / sentences.length : 0
|
|
94
|
+
|
|
95
|
+
// 5. 段落长度分布
|
|
96
|
+
const longParagraphCount = paraLengths.filter(l => l > 300).length
|
|
97
|
+
const shortParagraphCount = paraLengths.filter(l => l < 20).length
|
|
98
|
+
|
|
99
|
+
// 6. 对话占比
|
|
100
|
+
const dialogueChars = (text.match(/["「『][^"」』]*["」』]/g) ?? []).join('').length
|
|
101
|
+
const dialogueRatio = totalChars > 0 ? dialogueChars / totalChars : 0
|
|
102
|
+
|
|
103
|
+
// 7. 综合 AI 味评分(0-100,越高越像 AI)
|
|
104
|
+
let aiScore = 0
|
|
105
|
+
// 套话密度(每千字套话数)
|
|
106
|
+
const clicheDensity = totalChars > 0 ? (clicheTotal / totalChars) * 1000 : 0
|
|
107
|
+
aiScore += Math.min(40, clicheDensity * 8)
|
|
108
|
+
// 段落过于整齐(方差小=AI特征)
|
|
109
|
+
if (variance < 2000 && paraLengths.length >= 5) aiScore += 15
|
|
110
|
+
// 连续解释性叙事
|
|
111
|
+
aiScore += Math.min(20, maxConsecutive * 5)
|
|
112
|
+
// 句式重复
|
|
113
|
+
aiScore += Math.min(15, sentenceRepetitionRate * 30)
|
|
114
|
+
// 对话过少
|
|
115
|
+
if (dialogueRatio < 0.05 && totalChars > 1000) aiScore += 10
|
|
116
|
+
aiScore = Math.min(100, Math.round(aiScore))
|
|
117
|
+
|
|
118
|
+
// 8. 问题摘要
|
|
119
|
+
const issues: string[] = []
|
|
120
|
+
if (clicheDensity > 3) {
|
|
121
|
+
const topCliches = clicheHits.slice(0, 5).map(h => `${h.word}×${h.count}`).join('、')
|
|
122
|
+
issues.push(`套话密度偏高(每千字 ${clicheDensity.toFixed(1)} 次):${topCliches}`)
|
|
123
|
+
}
|
|
124
|
+
if (maxConsecutive >= 3) issues.push(`连续 ${maxConsecutive} 段解释性叙事,缺少对话/动作`)
|
|
125
|
+
if (sentenceRepetitionRate > 0.15) issues.push(`句式重复率 ${(sentenceRepetitionRate * 100).toFixed(0)}%,开头句式单一`)
|
|
126
|
+
if (longParagraphCount > 3) issues.push(`${longParagraphCount} 段超过 300 字,段落过长`)
|
|
127
|
+
if (dialogueRatio < 0.05 && totalChars > 1000) issues.push('对话占比过低,整章偏叙述')
|
|
128
|
+
|
|
129
|
+
const summary = issues.length > 0
|
|
130
|
+
? `本地 AI 味扫描(AI 味指数 ${aiScore}/100):\n` + issues.map(i => `- ${i}`).join('\n')
|
|
131
|
+
: `本地 AI 味扫描(AI 味指数 ${aiScore}/100):未发现明显问题。`
|
|
132
|
+
|
|
133
|
+
return {
|
|
134
|
+
aiScore,
|
|
135
|
+
clicheHits,
|
|
136
|
+
paragraphLengthVariance: Math.round(variance),
|
|
137
|
+
consecutiveExpositoryParagraphs: maxConsecutive,
|
|
138
|
+
sentenceRepetitionRate: Math.round(sentenceRepetitionRate * 100) / 100,
|
|
139
|
+
longParagraphCount,
|
|
140
|
+
shortParagraphCount,
|
|
141
|
+
dialogueRatio: Math.round(dialogueRatio * 100) / 100,
|
|
142
|
+
summary,
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
function countOccurrences(text: string, word: string): number {
|
|
147
|
+
if (word.length === 0) return 0
|
|
148
|
+
let count = 0
|
|
149
|
+
let idx = text.indexOf(word)
|
|
150
|
+
while (idx !== -1) {
|
|
151
|
+
count++
|
|
152
|
+
idx = text.indexOf(word, idx + word.length)
|
|
153
|
+
}
|
|
154
|
+
return count
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/** 扫描前后对比(润色时用) */
|
|
158
|
+
export function compareAiScan(before: AiScanResult, after: AiScanResult): {
|
|
159
|
+
improved: boolean
|
|
160
|
+
deltaScore: number
|
|
161
|
+
details: string[]
|
|
162
|
+
} {
|
|
163
|
+
const deltaScore = before.aiScore - after.aiScore
|
|
164
|
+
const details: string[] = []
|
|
165
|
+
if (deltaScore > 0) details.push(`AI 味指数下降 ${deltaScore} 分(${before.aiScore} → ${after.aiScore})`)
|
|
166
|
+
else if (deltaScore < 0) details.push(`AI 味指数上升 ${-deltaScore} 分(${before.aiScore} → ${after.aiScore}),需检查`)
|
|
167
|
+
else details.push(`AI 味指数持平(${before.aiScore})`)
|
|
168
|
+
|
|
169
|
+
const beforeCliches = before.clicheHits.reduce((a, b) => a + b.count, 0)
|
|
170
|
+
const afterCliches = after.clicheHits.reduce((a, b) => a + b.count, 0)
|
|
171
|
+
if (afterCliches < beforeCliches) details.push(`套话减少 ${beforeCliches - afterCliches} 处`)
|
|
172
|
+
else if (afterCliches > beforeCliches) details.push(`套话增加 ${afterCliches - beforeCliches} 处`)
|
|
173
|
+
|
|
174
|
+
return {
|
|
175
|
+
improved: deltaScore > 0,
|
|
176
|
+
deltaScore,
|
|
177
|
+
details,
|
|
178
|
+
}
|
|
179
|
+
}
|
package/src/assets.ts
CHANGED
|
@@ -212,7 +212,214 @@ export const BUILTIN_STYLE_TEMPLATES: StyleTemplate[] = [
|
|
|
212
212
|
],
|
|
213
213
|
defaultAntiAiRuleKeys: ['禁止解释型心理描写', '禁止段尾升华', '鼓励现实落差', '鼓励嘴硬补偿'],
|
|
214
214
|
},
|
|
215
|
-
|
|
215
|
+
{
|
|
216
|
+
key: 'cultivation-breakthrough',
|
|
217
|
+
name: '修炼突破流',
|
|
218
|
+
description: '以境界突破、战力碾压和资源争夺为核心,强调突破前后的反差与爽感。',
|
|
219
|
+
category: '修炼流',
|
|
220
|
+
applicableGenres: ['仙侠', '玄幻', '都市异能'],
|
|
221
|
+
proseRules: [
|
|
222
|
+
'突破前铺垫压抑与困境,突破时释放能量与威压,突破后立即兑现碾压收益。',
|
|
223
|
+
'场景单元按「困境→闭关/机缘→突破→碾压→新目标」推进。',
|
|
224
|
+
'战力体系严格遵守道藏设定,不随意膨胀;每次突破有明确代价或限制。',
|
|
225
|
+
],
|
|
226
|
+
dialogueRules: [
|
|
227
|
+
'突破前角色隐忍克制,突破后语气自信但不浮夸。',
|
|
228
|
+
'对手从轻视到震惊的反应通过对话和动作体现,不直接解说。',
|
|
229
|
+
],
|
|
230
|
+
languageRules: [
|
|
231
|
+
'战斗场景用短句和动作词,突破场景用感官描写(光/声/压力)。',
|
|
232
|
+
'减少修炼过程的流水账,聚焦关键节点和突破瞬间。',
|
|
233
|
+
],
|
|
234
|
+
rhythmRules: [
|
|
235
|
+
'突破节奏先抑后扬,压抑段不超过3段,突破段要快且有冲击力。',
|
|
236
|
+
'每章至少一个战力或境界的明确进展点。',
|
|
237
|
+
],
|
|
238
|
+
defaultAntiAiRuleKeys: ['禁止总结主题', '禁止段尾升华', '连续三段解释性叙事'],
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
key: 'face-slapping',
|
|
242
|
+
name: '装逼打脸流',
|
|
243
|
+
description: '身份隐藏→被轻视→展露实力→全场震惊,强调反差爽感与节奏控制。',
|
|
244
|
+
category: '爽文流',
|
|
245
|
+
applicableGenres: ['都市', '玄幻', '仙侠', '重生'],
|
|
246
|
+
proseRules: [
|
|
247
|
+
'打脸前三段内必须建立轻视/挑衅,打脸过程不超过两段,震惊反应要充分。',
|
|
248
|
+
'场景单元按「隐藏→挑衅→展露→震惊→新挑衅」循环推进。',
|
|
249
|
+
'主角实力展露要有铺垫和依据,不凭空开挂。',
|
|
250
|
+
],
|
|
251
|
+
dialogueRules: [
|
|
252
|
+
'挑衅者台词要具体且有针对性,避免泛泛的"你也配"。',
|
|
253
|
+
'主角话少而精准,用行动和结果说话,不嘴炮解释。',
|
|
254
|
+
'围观者反应分层:先不信→再震惊→最后讨好/畏惧。',
|
|
255
|
+
],
|
|
256
|
+
languageRules: [
|
|
257
|
+
'打脸场景用短句和动作,震惊场景用群像反应。',
|
|
258
|
+
'避免"全场寂静""众人哗然"等套话,用具体人物反应代替。',
|
|
259
|
+
],
|
|
260
|
+
rhythmRules: [
|
|
261
|
+
'快节奏,打脸间隔不超过3章,每章至少一个小反转。',
|
|
262
|
+
'装逼要克制,主角不主动炫耀,被动展露更有爽感。',
|
|
263
|
+
],
|
|
264
|
+
defaultAntiAiRuleKeys: ['禁止总结主题', '对话纯功能推进', 'AI 高频套话'],
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
key: 'power-struggle',
|
|
268
|
+
name: '权谋博弈流',
|
|
269
|
+
description: '以信息差、布局和反制为核心,强调对话潜台词与多方博弈。',
|
|
270
|
+
category: '权谋流',
|
|
271
|
+
applicableGenres: ['历史', '宫斗', '官场', '仙侠争霸'],
|
|
272
|
+
proseRules: [
|
|
273
|
+
'每章至少一次信息不对称的利用或破解,布局要有伏笔和回收。',
|
|
274
|
+
'场景单元按「情报→布局→试探→反制→结果」推进。',
|
|
275
|
+
'多方势力各有目标和底线,不做纯粹的工具人反派。',
|
|
276
|
+
],
|
|
277
|
+
dialogueRules: [
|
|
278
|
+
'对话充满潜台词,表面客气实则交锋,关键信息藏在半句和停顿里。',
|
|
279
|
+
'不同势力角色的语言风格和立场要明确区分。',
|
|
280
|
+
'避免角色直接说出计划和意图,通过行动和结果揭示。',
|
|
281
|
+
],
|
|
282
|
+
languageRules: [
|
|
283
|
+
'正式、克制的语言,避免口语化和现代网络用语。',
|
|
284
|
+
'用细节(眼神/手势/器物)暗示人物真实想法。',
|
|
285
|
+
],
|
|
286
|
+
rhythmRules: [
|
|
287
|
+
'中慢节奏,布局段可以慢,但反转和收网段要快。',
|
|
288
|
+
'每3-5章一个小高潮(布局见效或反制成功)。',
|
|
289
|
+
],
|
|
290
|
+
defaultAntiAiRuleKeys: ['禁止解释型心理描写', '禁止直接说教', '对话纯功能推进'],
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
key: 'sweet-romance',
|
|
294
|
+
name: '甜宠撒糖流',
|
|
295
|
+
description: '高糖互动+宠溺细节+情感升温,少虐多甜,强调心动瞬间。',
|
|
296
|
+
category: '言情流',
|
|
297
|
+
applicableGenres: ['现言', '古言', '甜宠', '校园'],
|
|
298
|
+
proseRules: [
|
|
299
|
+
'每章至少一个心动或撒糖细节,情感进展要有明确节点。',
|
|
300
|
+
'场景单元按「日常互动→心动瞬间→关系推进→新暧昧」推进。',
|
|
301
|
+
'误会不超过2章,冲突要小而温馨,不搞虐恋。',
|
|
302
|
+
],
|
|
303
|
+
dialogueRules: [
|
|
304
|
+
'对话自然亲昵,有专属称呼和互动习惯,避免书面化表白。',
|
|
305
|
+
'男主台词宠溺但不油腻,女主可以害羞但不傻白甜。',
|
|
306
|
+
'用对话中的停顿、转移话题暗示心动,不直接说"我喜欢你"。',
|
|
307
|
+
],
|
|
308
|
+
languageRules: [
|
|
309
|
+
'温暖、细腻的语言,多用感官细节(温度/气味/触感)。',
|
|
310
|
+
'避免"心如鹿撞""脸红心跳"等套话,用具体动作代替。',
|
|
311
|
+
],
|
|
312
|
+
rhythmRules: [
|
|
313
|
+
'中慢节奏,日常段可以慢,但心动瞬间要聚焦和放大。',
|
|
314
|
+
'每5章一个关系突破(牵手/拥抱/表白等)。',
|
|
315
|
+
],
|
|
316
|
+
defaultAntiAiRuleKeys: ['禁止段尾升华', '禁止解释型心理描写', '鼓励无意义小动作'],
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
key: 'competitive-blood',
|
|
320
|
+
name: '竞技热血流',
|
|
321
|
+
description: '操作细节+战术博弈+赛事逆转,强调燃点密集与成长曲线。',
|
|
322
|
+
category: '竞技流',
|
|
323
|
+
applicableGenres: ['电竞', '体育', '网游', '卡牌'],
|
|
324
|
+
proseRules: [
|
|
325
|
+
'比赛场景要有具体操作/战术细节,不写"他很强"而是写"他怎么强"。',
|
|
326
|
+
'场景单元按「训练/准备→劣势→战术调整→逆转→赛后成长」推进。',
|
|
327
|
+
'对手要有实力和特点,不做纯粹的经验包。',
|
|
328
|
+
],
|
|
329
|
+
dialogueRules: [
|
|
330
|
+
'队友对话有战术讨论和互相鼓励,对手台词有挑衅和认可。',
|
|
331
|
+
'解说/旁白可以有,但不能代替比赛过程本身。',
|
|
332
|
+
'角色在高压下的语言要简短有力,避免长篇大论。',
|
|
333
|
+
],
|
|
334
|
+
languageRules: [
|
|
335
|
+
'比赛场景用短句和动作词,节奏快,有画面感。',
|
|
336
|
+
'操作描述要专业且准确,避免外行话。',
|
|
337
|
+
],
|
|
338
|
+
rhythmRules: [
|
|
339
|
+
'快节奏,比赛段要紧凑,日常训练段可以稍缓。',
|
|
340
|
+
'每场比赛至少一个逆转或高光时刻,每章一个小燃点。',
|
|
341
|
+
],
|
|
342
|
+
defaultAntiAiRuleKeys: ['禁止总结主题', '连续三段解释性叙事', 'AI 高频套话'],
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
key: 'comedy-roast',
|
|
346
|
+
name: '吐槽搞笑流',
|
|
347
|
+
description: '旁白吐槽+角色反差+无厘头,节奏轻快,强调笑点密度。',
|
|
348
|
+
category: '搞笑流',
|
|
349
|
+
applicableGenres: ['轻小说', '二次元', '都市', '无限流'],
|
|
350
|
+
proseRules: [
|
|
351
|
+
'每章至少3个笑点,笑点来自反差、误解或吐槽,不依赖网络梗。',
|
|
352
|
+
'场景单元按「正常展开→反差/误解→吐槽→意外结果」推进。',
|
|
353
|
+
'搞笑不影响主线推进,笑点服务于剧情和人物。',
|
|
354
|
+
],
|
|
355
|
+
dialogueRules: [
|
|
356
|
+
'主角吐槽要精准且有个人风格,其他角色负责一本正经地制造槽点。',
|
|
357
|
+
'对话节奏快,有来有回,避免冷场。',
|
|
358
|
+
'允许打破第四面墙的吐槽,但不能滥用。',
|
|
359
|
+
],
|
|
360
|
+
languageRules: [
|
|
361
|
+
'口语化、轻快的语言,允许夸张和无厘头。',
|
|
362
|
+
'吐槽用括号或单独段落,不与叙事混淆。',
|
|
363
|
+
],
|
|
364
|
+
rhythmRules: [
|
|
365
|
+
'快节奏,笑点密集,不拖沓。',
|
|
366
|
+
'每段不超过3句,长段落要拆。',
|
|
367
|
+
],
|
|
368
|
+
defaultAntiAiRuleKeys: ['禁止段尾升华', '禁止直接说教', '鼓励无意义小动作'],
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
key: 'atmosphere-horror',
|
|
372
|
+
name: '氛围惊悚流',
|
|
373
|
+
description: '环境细节+心理暗示+信息延迟,恐惧不直说,靠氛围营造。',
|
|
374
|
+
category: '恐怖流',
|
|
375
|
+
applicableGenres: ['灵异', '惊悚', '克苏鲁', '无限恐怖'],
|
|
376
|
+
proseRules: [
|
|
377
|
+
'恐惧来自未知和异常,不直接描写怪物/鬼魂,用反应和痕迹暗示。',
|
|
378
|
+
'场景单元按「日常→异常细节→误解/忽视→危机爆发→余悸」推进。',
|
|
379
|
+
'信息延迟:读者和主角同时发现异常,不提前剧透。',
|
|
380
|
+
],
|
|
381
|
+
dialogueRules: [
|
|
382
|
+
'角色对话克制,恐惧通过停顿、重复、语无伦次体现。',
|
|
383
|
+
'避免角色直接说"好可怕""有鬼",用行动和反应代替。',
|
|
384
|
+
'关键信息藏在半句和打断里。',
|
|
385
|
+
],
|
|
386
|
+
languageRules: [
|
|
387
|
+
'冷色调、精确的环境描写,多用听觉和触觉(视觉反而少)。',
|
|
388
|
+
'句子短而碎,制造紧张感;长句用于压抑和拖延。',
|
|
389
|
+
'避免"毛骨悚然""不寒而栗"等套话,用具体感官代替。',
|
|
390
|
+
],
|
|
391
|
+
rhythmRules: [
|
|
392
|
+
'慢节奏铺垫,快节奏爆发,爆发后留余悸。',
|
|
393
|
+
'每3章一个小高潮(异常确认或危机爆发)。',
|
|
394
|
+
],
|
|
395
|
+
defaultAntiAiRuleKeys: ['禁止解释型心理描写', '禁止总结主题', '段落长度过于整齐'],
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
key: 'hard-scifi',
|
|
399
|
+
name: '硬核科技流',
|
|
400
|
+
description: '技术细节+逻辑推演+文明思辨,信息密度高,强调设定自洽。',
|
|
401
|
+
category: '科幻流',
|
|
402
|
+
applicableGenres: ['科幻', '星际', '赛博朋克', '机甲'],
|
|
403
|
+
proseRules: [
|
|
404
|
+
'科技设定要有逻辑自洽的原理,不做"黑箱"解释。',
|
|
405
|
+
'场景单元按「问题→技术分析→方案→实施→后果」推进。',
|
|
406
|
+
'技术服务于剧情和人物,不为炫技而炫技。',
|
|
407
|
+
],
|
|
408
|
+
dialogueRules: [
|
|
409
|
+
'专业对话有术语和逻辑,但要让非专业读者能理解核心。',
|
|
410
|
+
'角色争论要有技术依据,不做情绪化争吵。',
|
|
411
|
+
'避免角色直接解说设定,通过问题和讨论揭示。',
|
|
412
|
+
],
|
|
413
|
+
languageRules: [
|
|
414
|
+
'精确、理性的语言,避免模糊和情绪化表达。',
|
|
415
|
+
'技术描述要具体且可想象,不堆砌名词。',
|
|
416
|
+
],
|
|
417
|
+
rhythmRules: [
|
|
418
|
+
'中慢节奏,技术推演段可以慢,但行动段要快。',
|
|
419
|
+
'每5章一个技术突破或危机解决。',
|
|
420
|
+
],
|
|
421
|
+
defaultAntiAiRuleKeys: ['禁止直接说教', '禁止总结主题', '连续三段解释性叙事'],
|
|
422
|
+
},]
|
|
216
423
|
|
|
217
424
|
// ---------------------------------------------------------- built-in rules
|
|
218
425
|
|
|
@@ -302,7 +509,48 @@ export const BUILTIN_ANTI_AI_RULES: AntiAiRule[] = [
|
|
|
302
509
|
detectPatterns: [],
|
|
303
510
|
builtin: true,
|
|
304
511
|
},
|
|
305
|
-
|
|
512
|
+
{
|
|
513
|
+
name: '禁止心中暗道/脑海浮现',
|
|
514
|
+
avoid: '用"心中暗道""脑海中""心里想""暗自思忖"等句式直接暴露角色内心。',
|
|
515
|
+
fix: '把内心活动改成动作、表情、语气或行为结果,让读者自己推断。',
|
|
516
|
+
detectPatterns: ['心中暗道', '脑海中', '心里想', '暗自思忖', '心中暗想', '心里暗道'],
|
|
517
|
+
builtin: true,
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
name: '禁止仿佛/好像比喻滥用',
|
|
521
|
+
avoid: '单章"仿佛""好像""犹如""宛如"等比喻词超过5次,产生AI套路感。',
|
|
522
|
+
fix: '减少比喻频率,每个比喻必须是新造的、有具体画面的,不用陈词滥调。',
|
|
523
|
+
detectPatterns: ['仿佛', '好像', '犹如', '宛如', '好似'],
|
|
524
|
+
builtin: true,
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
name: '禁止过度排比堆砌',
|
|
528
|
+
avoid: '连续3句以上相同句式或排比结构,显得机械和刻意。',
|
|
529
|
+
fix: '打散句式,用长短句交替,排比不超过2句。',
|
|
530
|
+
detectPatterns: [],
|
|
531
|
+
builtin: true,
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
name: '禁止角色全知泄露',
|
|
535
|
+
avoid: '角色说出或知道他/她不可能知道的信息,破坏视角一致性。',
|
|
536
|
+
fix: '严格遵守视角限制,角色只能基于已有信息行动和判断。',
|
|
537
|
+
detectPatterns: [],
|
|
538
|
+
builtin: true,
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
name: '鼓励环境细节锚定',
|
|
542
|
+
avoid: '(鼓励类)情绪和氛围缺少具体环境物件锚定,全靠抽象形容词。',
|
|
543
|
+
fix: '用具体物件、光线、声音、温度等环境细节承载情绪,不直接说"紧张""悲伤"。',
|
|
544
|
+
detectPatterns: [],
|
|
545
|
+
builtin: true,
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
name: '鼓励角色语言差异化',
|
|
549
|
+
avoid: '(鼓励类)所有角色说话风格雷同,没有口头禅、用词习惯或句式差异。',
|
|
550
|
+
fix: '给每个主要角色设定独特的语言习惯(口头禅/用词偏好/句式长短),对话时严格区分。',
|
|
551
|
+
detectPatterns: [],
|
|
552
|
+
builtin: true,
|
|
553
|
+
},]
|
|
306
554
|
|
|
307
555
|
/** 内置题材基底库(常用网文题材树,跨书复用)。 */
|
|
308
556
|
export const BUILTIN_GENRE_LIBRARY: GenreNode[] = [
|
|
@@ -358,7 +606,88 @@ export const BUILTIN_GENRE_LIBRARY: GenreNode[] = [
|
|
|
358
606
|
{ name: '进化觉醒', description: '末世异变中觉醒能力不断进化,强调战力成长与危机求生。', children: [] },
|
|
359
607
|
],
|
|
360
608
|
},
|
|
361
|
-
|
|
609
|
+
{
|
|
610
|
+
name: '都市生活',
|
|
611
|
+
description: '现代都市日常背景,无超能力或超能力为辅,读者期待身份反差、职场逆袭与生活烟火气。',
|
|
612
|
+
children: [
|
|
613
|
+
{ name: '赘婿逆袭', description: '开局隐忍赘婿,展露真实身份后一路打脸,强调身份反差与爽感。', children: [] },
|
|
614
|
+
{ name: '神医归来', description: '医术高超的主角回归都市,治病救人积累人脉,强调专业碾压与感恩回馈。', children: [] },
|
|
615
|
+
{ name: '兵王归隐', description: '退役兵王/特工回归都市,低调行事却屡被招惹,强调武力碾压与守护。', children: [] },
|
|
616
|
+
{ name: '奶爸日常', description: '主角带娃生活,温馨治愈与成长并行,强调亲子互动与生活细节。', children: [] },
|
|
617
|
+
{ name: '校园青春', description: '校园背景的成长与恋爱,强调青涩感、友情与梦想。', children: [] },
|
|
618
|
+
{ name: '鉴宝捡漏', description: '古玩/收藏/拍卖背景,主角凭眼力捡漏暴富,强调专业知识与反差爽感。', children: [] },
|
|
619
|
+
],
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
name: '言情',
|
|
623
|
+
description: '以情感关系为核心,读者期待心动、拉扯、甜虐交织与情感归宿。',
|
|
624
|
+
children: [
|
|
625
|
+
{ name: '现言甜宠', description: '现代背景甜蜜恋爱,男主强势专一,强调撒糖与日常互动。', children: [] },
|
|
626
|
+
{ name: '古言宫斗', description: '古代后宫/宅斗背景,女主在权谋中求生与上位,强调心机与反转。', children: [] },
|
|
627
|
+
{ name: '虐恋重生', description: '前世被虐重生后改写命运,爱恨交织,强调复仇与情感救赎。', children: [] },
|
|
628
|
+
{ name: '快穿女配', description: '穿梭不同世界完成任务,女主逆袭原剧情,强调多变设定与成长。', children: [] },
|
|
629
|
+
{ name: '年代文', description: '七八十年代背景,家长里短与发家致富,强调时代质感与生活细节。', children: [] },
|
|
630
|
+
],
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
name: '游戏竞技',
|
|
634
|
+
description: '以游戏或体育竞技为舞台,读者期待操作碾压、战术博弈与冠军荣耀。',
|
|
635
|
+
children: [
|
|
636
|
+
{ name: '电竞荣耀', description: '职业电竞选手成长,强调操作细节、团队配合与赛事热血。', children: [] },
|
|
637
|
+
{ name: '网游重生', description: '重生回游戏开服前,凭先知优势抢占资源,强调攻略与碾压。', children: [] },
|
|
638
|
+
{ name: '体育竞技', description: '篮球/足球/赛车等体育项目,强调训练成长、比赛逆转与体育精神。', children: [] },
|
|
639
|
+
{ name: '卡牌桌游', description: '卡牌/桌游/战棋背景,强调策略构筑与阵容搭配。', children: [] },
|
|
640
|
+
],
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
name: '二次元轻小说',
|
|
644
|
+
description: 'ACG风格叙事,节奏轻快,设定新奇,读者期待脑洞展开与角色萌点。',
|
|
645
|
+
children: [
|
|
646
|
+
{ name: '异世界穿越', description: '穿越到异世界获得能力/身份,强调新奇设定与冒险展开。', children: [] },
|
|
647
|
+
{ name: '系统流', description: '主角获得系统辅助成长,任务/奖励驱动剧情,强调数值与反馈。', children: [] },
|
|
648
|
+
{ name: '搞笑日常', description: '以吐槽和反差制造笑点,角色个性鲜明,强调轻松愉快。', children: [] },
|
|
649
|
+
{ name: '反派转生', description: '转生成游戏/小说中的反派角色,利用剧情认知规避死亡结局,强调反转与谋略。', children: [] },
|
|
650
|
+
],
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
name: '武侠',
|
|
654
|
+
description: '江湖侠义背景,武功秘籍、门派恩怨、家国情怀,读者期待侠气与江湖质感。',
|
|
655
|
+
children: [
|
|
656
|
+
{ name: '传统武侠', description: '金庸/古龙风格,江湖恩怨与侠义精神,强调武功描写与人情世故。', children: [] },
|
|
657
|
+
{ name: '江湖恩怨', description: '门派/家族/帮会争斗,主角在江湖中成长与抉择,强调义气与复仇。', children: [] },
|
|
658
|
+
{ name: '庙堂江湖', description: '朝堂与江湖交织,武侠与权谋结合,强调格局与抉择。', children: [] },
|
|
659
|
+
],
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
name: '现实题材',
|
|
663
|
+
description: '贴近现实生活的行业/职场故事,读者期待专业质感、人性刻画与现实共鸣。',
|
|
664
|
+
children: [
|
|
665
|
+
{ name: '职场商战', description: '商场/职场博弈,主角从底层崛起,强调商业谋略与人际周旋。', children: [] },
|
|
666
|
+
{ name: '官场沉浮', description: '体制内升迁与抉择,强调政治智慧与现实质感。', children: [] },
|
|
667
|
+
{ name: '医疗行业', description: '医院/医生视角,治病救人与行业生态,强调专业与人性。', children: [] },
|
|
668
|
+
{ name: '法律政律', description: '律师/法官视角,案件辩护与司法博弈,强调逻辑与正义。', children: [] },
|
|
669
|
+
],
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
name: '恐怖灵异',
|
|
673
|
+
description: '超自然/惊悚背景,读者期待氛围营造、悬念反转与心理恐惧。',
|
|
674
|
+
children: [
|
|
675
|
+
{ name: '灵异惊悚', description: '鬼魂/诅咒/灵异事件,强调氛围营造与心理恐惧。', children: [] },
|
|
676
|
+
{ name: '克苏鲁', description: '不可名状的未知存在与疯狂,强调悬疑与绝望感。', children: [] },
|
|
677
|
+
{ name: '民俗诡异', description: '中国民间习俗/禁忌/传说,强调地域文化与诡异氛围。', children: [] },
|
|
678
|
+
{ name: '无限恐怖', description: '穿梭恐怖副本求生,强调规则破解与团队协作。', children: [] },
|
|
679
|
+
],
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
name: '科幻',
|
|
683
|
+
description: '未来/太空/科技背景,读者期待宏大设定、技术想象与文明思辨。',
|
|
684
|
+
children: [
|
|
685
|
+
{ name: '星际文明', description: '太空探索与文明碰撞,强调宇宙尺度与科技发展。', children: [] },
|
|
686
|
+
{ name: '机甲战争', description: '机甲驾驶与星际战争,强调战斗场面与军人成长。', children: [] },
|
|
687
|
+
{ name: '赛博朋克', description: '高科技低生活的近未来,义体/黑客/大企业,强调反差与反叛。', children: [] },
|
|
688
|
+
{ name: '时间穿梭', description: '时间旅行/平行世界,强调因果逻辑与命运抉择。', children: [] },
|
|
689
|
+
],
|
|
690
|
+
},]
|
|
362
691
|
|
|
363
692
|
/** 内置常用推进模式。 */
|
|
364
693
|
export const BUILTIN_PROGRESSION_MODES: ProgressionMode[] = [
|
|
@@ -437,15 +766,30 @@ export function effectiveAntiAiRules(assets: ProjectAssets | undefined): AntiAiR
|
|
|
437
766
|
return [...BUILTIN_ANTI_AI_RULES.filter(r => !customNames.has(r.name)), ...custom]
|
|
438
767
|
}
|
|
439
768
|
|
|
440
|
-
/**
|
|
769
|
+
/** 把生效规则渲染成提示词块(禁止/鼓励分列,压缩省 token)。 */
|
|
441
770
|
export function renderAntiAiRules(assets: ProjectAssets | undefined): string {
|
|
442
|
-
const rules = effectiveAntiAiRules(assets)
|
|
771
|
+
const rules = effectiveAntiAiRules(assets).filter(r => r.enabled !== false)
|
|
443
772
|
if (rules.length === 0) return ''
|
|
444
773
|
const clip = (value: string, max: number): string => value.length > max ? value.slice(0, max) + '…' : value
|
|
445
|
-
|
|
446
|
-
'
|
|
447
|
-
|
|
448
|
-
|
|
774
|
+
const isEncourage = (r: AntiAiRule): boolean =>
|
|
775
|
+
r.severity === 'encourage' || r.name.startsWith('鼓励') || r.avoid.startsWith('(鼓励类)')
|
|
776
|
+
const forbidden = rules.filter(r => !isEncourage(r))
|
|
777
|
+
const encourage = rules.filter(isEncourage)
|
|
778
|
+
const lines: string[] = []
|
|
779
|
+
lines.push('==================== 反 AI 规则(写作时必须遵守的表达边界) ====================')
|
|
780
|
+
if (forbidden.length > 0) {
|
|
781
|
+
lines.push('禁止类(命中即问题,审稿时列为 high/medium):')
|
|
782
|
+
for (const r of forbidden) {
|
|
783
|
+
lines.push(`- ${r.name}:避免——${clip(r.avoid, 90)}${r.fix !== '' ? `;修正——${clip(r.fix, 50)}` : ''}`)
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
if (encourage.length > 0) {
|
|
787
|
+
lines.push('鼓励类(希望出现,不命中不算错,审稿时只作低优先级建议、不阻塞通过):')
|
|
788
|
+
for (const r of encourage) {
|
|
789
|
+
lines.push(`- ${r.name}:${clip(r.fix !== '' ? r.fix : r.avoid, 90)}`)
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
return lines.join('\n')
|
|
449
793
|
}
|
|
450
794
|
|
|
451
795
|
/** 渲染题材与推进模式提示词块。 */
|
package/src/client/api.ts
CHANGED
|
@@ -211,7 +211,7 @@ export class NovelApi {
|
|
|
211
211
|
return postJson<{ ok: boolean; filled: number }>(NOVEL_API.factsBackfill, {})
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
/**
|
|
214
|
+
/** 道藏局部修补。 */
|
|
215
215
|
async biblePatch(patch: import('../protocol.ts').BiblePatchRequest): Promise<{ bible: import('../protocol.ts').StoryBible }> {
|
|
216
216
|
return postJson<{ bible: import('../protocol.ts').StoryBible }>(NOVEL_API.biblePatch, patch)
|
|
217
217
|
}
|
|
@@ -293,6 +293,11 @@ export class NovelApi {
|
|
|
293
293
|
return postJson<import('../protocol.ts').MangaRolesResponse>(NOVEL_API.mangaRoles, req)
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
+
/** 导出「即梦素材包」落盘到资产库 manga-assets/素材包/。 */
|
|
297
|
+
async exportPackage(chapterNo: number, title: string, markdown: string): Promise<{ ok: boolean; file: string }> {
|
|
298
|
+
return postJson<{ ok: boolean; file: string }>(NOVEL_API.exportPackage, { chapterNo, title, markdown })
|
|
299
|
+
}
|
|
300
|
+
|
|
296
301
|
/** 场景库:AI 提炼 / 采纳 / 更新 / 删除 / 图集。 */
|
|
297
302
|
async scenes(req: import('../protocol.ts').ScenesRequest): Promise<import('../protocol.ts').ScenesResponse> {
|
|
298
303
|
return postJson<import('../protocol.ts').ScenesResponse>(NOVEL_API.scenes, req)
|
|
@@ -303,6 +308,11 @@ export class NovelApi {
|
|
|
303
308
|
return postJson<import('../protocol.ts').VisualRulesResponse>(NOVEL_API.visualRules, req)
|
|
304
309
|
}
|
|
305
310
|
|
|
311
|
+
/** 道具库:从已写章节提炼常驻道具 / 保存清单。 */
|
|
312
|
+
async mangaProps(req: import('../protocol.ts').MangaPropsRequest): Promise<import('../protocol.ts').MangaPropsResponse> {
|
|
313
|
+
return postJson<import('../protocol.ts').MangaPropsResponse>(NOVEL_API.mangaProps, req)
|
|
314
|
+
}
|
|
315
|
+
|
|
306
316
|
/** 小说简介:AI 生成/补全(partial 留空 = 全量),或手动保存。 */
|
|
307
317
|
async blurb(action: 'generate' | 'save', text?: string, partial?: string): Promise<{ blurb: string }> {
|
|
308
318
|
return postJson<{ blurb: string }>(NOVEL_API.blurb, { action, text, partial })
|
package/src/client/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* problems are logged, never thrown — the web shell fails the whole boot when
|
|
5
5
|
* a plugin apply throws.
|
|
6
6
|
*/
|
|
7
|
-
import type { ClientContext } from '@deepseek-ai/
|
|
7
|
+
import type { Context as ClientContext } from '@deepseek-ai/cordis'
|
|
8
8
|
import { NovelApi } from './api.ts'
|
|
9
9
|
import { mountPanel } from './mount.tsx'
|
|
10
10
|
import { PanelController } from './panel/controller.ts'
|
package/src/client/mount.tsx
CHANGED
|
@@ -12,7 +12,7 @@ import css from './panel/panel.module.css'
|
|
|
12
12
|
/** The injected panel container. */
|
|
13
13
|
export const PANEL_VIEW_SELECTOR = '[data-dsh-novelforge-view]'
|
|
14
14
|
|
|
15
|
-
const CONVERSATION_COLUMN_SELECTOR = '[data-pane="conversation"]'
|
|
15
|
+
const CONVERSATION_COLUMN_SELECTOR = '[data-pane="conversation"], [class*="centerCol"]'
|
|
16
16
|
const ACTIVE_ATTR = 'data-dsh-novelforge-active'
|
|
17
17
|
/** Sibling panels' activation attributes (evicted when this panel opens). */
|
|
18
18
|
const OTHER_ACTIVE_ATTRS = ['data-dsh-taskboard-active', 'data-dsh-ssh-active']
|
|
@@ -444,7 +444,7 @@ export function AdaptModeView({ api, onOpenBook }: { api: NovelApi; onOpenBook?:
|
|
|
444
444
|
<b>⑤ 提炼新书资料(预览,暂不保存)</b>
|
|
445
445
|
<button type="button" className={css.button + ' ' + css.buttonPrimary} onClick={() => { void materializeBook() }} disabled={busy}><Wand2 size={14} style={{ verticalAlign: -2 }} /> {busy && busyLabel === '提炼新书资料…' ? '提炼中…' : '提炼新书资料(预览)'}</button>
|
|
446
446
|
</div>
|
|
447
|
-
<span className={css.meta}
|
|
447
|
+
<span className={css.meta}>将基于编辑后的映射/规则,从源文提炼:改编后总纲、道藏、角色库、大世界、卷计划、章节计划。生成后到第⑥步可微调,确认后再保存为《{result.bookName}·改编版》的待写新书(章节为 pending,随后可在小说工坊逐章生成)。</span>
|
|
448
448
|
<div className={css.rowEnd} style={{ gap: 8 }}>
|
|
449
449
|
<span className={css.meta}>拟规划章节数</span>
|
|
450
450
|
<input type="number" className={css.input + ' ' + css.adaptCell} style={{ width: 90 }} value={chapterCount}
|
|
@@ -473,7 +473,7 @@ export function AdaptModeView({ api, onOpenBook }: { api: NovelApi; onOpenBook?:
|
|
|
473
473
|
<h4 style={{ margin: '10px 0 4px' }}>改编后总纲</h4>
|
|
474
474
|
<textarea className={css.input + ' ' + css.adaptTextarea} value={materialized.outline} onChange={e => patchMaterial({ outline: e.target.value })} />
|
|
475
475
|
|
|
476
|
-
<h4 style={{ margin: '10px 0 4px' }}
|
|
476
|
+
<h4 style={{ margin: '10px 0 4px' }}>道藏</h4>
|
|
477
477
|
<div className={css.adaptRules}>
|
|
478
478
|
{(['worldRules', 'redLines', 'style'] as const).map(key => (
|
|
479
479
|
<div key={key} className={css.adaptRule}>
|