@cloud411716/fancy-webnovel 4.27.3 → 4.28.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.
@@ -0,0 +1,448 @@
1
+ /**
2
+ * 内置账号风格库(初始种子)。
3
+ *
4
+ * 这些不是"每个 kind 的写法",而是跨 kind 的**风格核心**:
5
+ * - 风格核心:长度、句式、修辞、语气、信息露出方式;
6
+ * - 题材皮肤:在 prompt 里按本次题材替换词汇与禁用项;
7
+ * - kind:只负责"这一条写什么信息点"。
8
+ *
9
+ * 数据库 douyin_style 里的同 style_key 记录会覆盖/合并这里的字段。
10
+ */
11
+ export const BUILTIN_STYLES = [
12
+ {
13
+ style_key: 'suci',
14
+ style_name: '宿辞式留白',
15
+ style_type: 'naming',
16
+ account_names: ['宿辞'],
17
+ genre_tags: ['仙侠', '古风', '悬疑', '志怪', '言情'],
18
+ dna: '短、含蓄、谜面式;古典留白;克制不张扬;名字像一句没说完的话。',
19
+ naming_rules: {
20
+ length: [2, 4],
21
+ syntax: ['意象+意象', '动词+宾语', '名词+状态'],
22
+ suffixes: [],
23
+ forbidden: ['秘境', '幻境', '领域', '空间', '世界', '令', '诀', '阵', '术', '法', '印'],
24
+ tone: '冷、静、克制',
25
+ },
26
+ lexicon: {
27
+ preferred: ['灯', '骨', '纸', '镜', '棺', '香', '渡', '夜', '雪', '灰', '门', '影', '祠'],
28
+ forbidden: ['科技', '网络', '系统', '数据', '协议'],
29
+ },
30
+ cross_kind_examples: {
31
+ place_name: ['无灯巷', '纸马街', '落棺坡'],
32
+ faction_name: ['无面祠', '借灯人'],
33
+ skill_name: ['问骨', '换灯', '借命'],
34
+ item_name: ['无字灯', '半面镜', '空棺钉'],
35
+ monster_name: ['背灯人', '无舌僧'],
36
+ rank_name: ['点灯', '守夜', '收骨'],
37
+ world_rule: ['灯灭之前,不能回头。'],
38
+ },
39
+ anti_examples: ['无灯巷秘境', '借命诀', '问骨阵法', '幽冥灯域', '神秘古祠'],
40
+ compatibility: { 仙侠: 'native', 玄幻: 'native', 古风: 'native', 悬疑: 'native', 言情: 'adaptable', 都市: 'adaptable', 西幻: 'adaptable', 科幻: 'adaptable' },
41
+ confidence: 0.9,
42
+ },
43
+ {
44
+ style_key: 'crazy-fish',
45
+ style_name: '疯狂小鱼式场景名',
46
+ style_type: 'naming',
47
+ account_names: ['疯狂小鱼'],
48
+ genre_tags: ['仙侠', '玄幻', '悬疑', '都市', '幻境'],
49
+ dna: '意象拼接式命名;名字是场景而不是技能;偏幻境、水域、梦境、轮回、归墟;空灵留白。',
50
+ naming_rules: {
51
+ length: [2, 5],
52
+ syntax: ['意象+意象', '地点意象+状态', '动词+地点意象'],
53
+ suffixes: [],
54
+ forbidden: ['令', '诀', '阵', '术', '法', '秘境', '幻境', '领域', '空间', '世界'],
55
+ tone: '空灵、冷、留白',
56
+ },
57
+ lexicon: {
58
+ preferred: ['海', '镜', '梦', '归墟', '渡', '潮', '雾', '星', '灯', '廊', '汀', '潭'],
59
+ forbidden: ['科技', '网络', '职场', '系统'],
60
+ },
61
+ cross_kind_examples: {
62
+ place_name: ['沉眠海', '镜花廊', '忘川渡'],
63
+ faction_name: ['归墟引', '镜潮社'],
64
+ skill_name: ['照夜潮', '梦回汀'],
65
+ item_name: ['雾隐川', '落星津'],
66
+ monster_name: ['沉钟客', '镜中鲤'],
67
+ rank_name: ['入梦', '渡潮', '归墟'],
68
+ world_rule: ['梦醒之前,名字不能被第二个人听见。'],
69
+ },
70
+ anti_examples: ['沉眠海秘境', '归墟令', '镜花阵法', '梦境水域', '幽海幻境'],
71
+ compatibility: { 仙侠: 'native', 玄幻: 'native', 悬疑: 'native', 都市: 'adaptable', 西幻: 'adaptable', 科幻: 'adaptable', 言情: 'adaptable', 历史: 'weak' },
72
+ confidence: 0.85,
73
+ },
74
+ {
75
+ style_key: 'ael-cold-air',
76
+ style_name: 'Ael冷空气式悖论',
77
+ style_type: 'naming',
78
+ account_names: ['Ael冷空气'],
79
+ genre_tags: ['科幻', '都市', '悬疑', '西幻', '哲思'],
80
+ dna: '抽象哲学/认知悖论;记忆、观测、虚妄、因果;冷、抽象、精神向;名字本身是一条未解的问题。',
81
+ naming_rules: {
82
+ length: [3, 6],
83
+ syntax: ['概念+悖论', '观测+对象', '抽象名词+状态'],
84
+ suffixes: [],
85
+ forbidden: ['诀', '式', '法', '阵', '灵气', '仙门', '异能大典'],
86
+ tone: '冷、克制、哲学感',
87
+ },
88
+ lexicon: {
89
+ preferred: ['观测', '记忆', '因果', '虚妄', '回声', '盲区', '校准', '悖论', '删除', '昨日'],
90
+ forbidden: ['热血', '霸气', '无敌', '至尊'],
91
+ },
92
+ cross_kind_examples: {
93
+ place_name: ['观测盲区', '失忆环', '静默回声'],
94
+ faction_name: ['因果校准局', '记忆保管人'],
95
+ skill_name: ['观测坍缩', '记忆回溯', '因果让渡'],
96
+ item_name: ['被删除的昨天', '全知者残页'],
97
+ monster_name: ['观测者', '记忆寄生体'],
98
+ rank_name: ['观测者', '校准者', '归零者'],
99
+ world_rule: ['被观测到的事情,才允许发生。'],
100
+ },
101
+ anti_examples: ['观测异能', '记忆系统', '因果神功', '全知全能', '神秘观测者'],
102
+ compatibility: { 科幻: 'native', 都市: 'native', 悬疑: 'native', 西幻: 'adaptable', 仙侠: 'adaptable', 玄幻: 'adaptable', 言情: 'weak', 历史: 'weak' },
103
+ confidence: 0.8,
104
+ },
105
+ {
106
+ style_key: 'charging-bar',
107
+ style_name: '充电进度条式日常规则',
108
+ style_type: 'naming',
109
+ account_names: ['充电进度条'],
110
+ genre_tags: ['都市', '悬疑', '科幻', '仙侠', '规则怪谈'],
111
+ dna: '日常事物 + 非常规规则;平凡物件/场所/职业叠加一层诡异或异能内核;必须让名字本身带“这东西不对劲”的钩子。',
112
+ naming_rules: {
113
+ length: [3, 8],
114
+ syntax: ['日常物件+规则限定', '场所/职业+异常属性', '制度词+超自然后果'],
115
+ suffixes: [],
116
+ forbidden: ['纯工具名词直接入库', '机务段', '信号楼', '电梯', '业委会', '快递柜'],
117
+ tone: '日常、冷静、略带荒诞',
118
+ },
119
+ lexicon: {
120
+ preferred: ['电梯', '物业', '门禁', '打卡', '加班', '调休', '充电宝', '便利店', '末班车', '监控'],
121
+ forbidden: ['仙气', '唯美', '空灵', '史诗'],
122
+ },
123
+ cross_kind_examples: {
124
+ place_name: ['末班电梯', '负一层便利店', '无人接听层'],
125
+ faction_name: ['夜班业委会', '超时加班组'],
126
+ skill_name: ['调休令', '超时加班', '打卡延命'],
127
+ item_name: ['过期门禁卡', '共享充电宝·第七号'],
128
+ monster_name: ['电梯保安', '物业经理'],
129
+ rank_name: ['实习生', '正式工', '项目经理', '业委会主任'],
130
+ world_rule: ['每晚 23:00,电梯会停靠不存在的负一层。'],
131
+ },
132
+ anti_examples: ['电梯', '业委会', '信号楼', '神秘电梯', '异能门禁', '物业法则'],
133
+ compatibility: { 都市: 'native', 悬疑: 'native', 科幻: 'native', 仙侠: 'adaptable', 玄幻: 'adaptable', 言情: 'weak', 历史: 'weak', 西幻: 'adaptable' },
134
+ confidence: 0.85,
135
+ },
136
+ {
137
+ style_key: 'xiuxian-choice',
138
+ style_name: '修仙选择题/道途判词',
139
+ style_type: 'naming',
140
+ account_names: ['鱼望川', '月不亮〖主页娶图〗', '选择档案局'],
141
+ genre_tags: ['仙侠', '玄幻', '洪荒', '都市', '超能力'],
142
+ dna: '用“请选择你的修仙道/修派/灵根/超能力”组织内容;名字短、有判词感;选项之间是不同道路,不是同义换皮。',
143
+ naming_rules: {
144
+ length: [2, 6],
145
+ syntax: ['道途名', '灵根/派系名', '神兵名+判词'],
146
+ suffixes: [],
147
+ forbidden: ['第一选择', '选项A', '正确选项', '最强'],
148
+ tone: '有仪式感、可选择、对仗',
149
+ },
150
+ lexicon: {
151
+ preferred: ['道', '灵根', '修派', '剑', '符', '丹', '阵', '因果', '杀戮', '坐忘'],
152
+ forbidden: ['系统提示', '抽卡', '十连'],
153
+ },
154
+ cross_kind_examples: {
155
+ place_name: ['坐忘台', '问剑崖', '因果渡'],
156
+ faction_name: ['坐忘道', '杀戮道', '合欢道'],
157
+ skill_name: ['一纸成威', '千锋聚', '封妖祟'],
158
+ item_name: ['凌云枪', '往生镰', '逍遥扇'],
159
+ monster_name: ['守道兽', '问心猿'],
160
+ rank_name: ['入道', '问心', '斩因', '坐忘'],
161
+ world_rule: ['选定一条道后,其他道的功法永久失效。'],
162
+ },
163
+ anti_examples: ['修仙选项A', '最强灵根', '无敌修派', '请选择之剑'],
164
+ compatibility: { 仙侠: 'native', 玄幻: 'native', 洪荒: 'native', 都市: 'adaptable', 超能力: 'adaptable', 西幻: 'weak', 科幻: 'weak', 言情: 'weak' },
165
+ confidence: 0.85,
166
+ },
167
+ {
168
+ style_key: 'folk-taboo',
169
+ style_name: '民俗禁忌/生活玄学',
170
+ style_type: 'naming',
171
+ account_names: ['我家狗伴我岁岁年年'],
172
+ genre_tags: ['悬疑', '都市', '民俗', '灵异', '生活'],
173
+ dna: '从民间规矩、生活细节、口耳相传的禁忌里提炼;短句像老人叮嘱;不讲大道理,只给一条不能做的事。',
174
+ naming_rules: {
175
+ length: [4, 14],
176
+ syntax: ['时间/场景+禁止动作', '日常物件+禁忌', '身份+规矩'],
177
+ suffixes: [],
178
+ forbidden: ['神秘学', '宇宙法则', '上古禁忌大全'],
179
+ tone: '口语、笃定、略带寒意',
180
+ },
181
+ lexicon: {
182
+ preferred: ['夜里', '床头', '筷子', '镜子', '红包', '伞', '猫', '门槛', '枕头', '路'],
183
+ forbidden: ['系统', '异能', '修仙', '灵气'],
184
+ },
185
+ cross_kind_examples: {
186
+ place_name: ['不回头巷', '半夜楼道', '空门槛'],
187
+ faction_name: ['守夜亲族', '收惊人'],
188
+ skill_name: ['叫魂', '送纸', '压床'],
189
+ item_name: ['倒扣的碗', '不落地的伞'],
190
+ monster_name: ['床下客', '镜中婆'],
191
+ rank_name: ['守夜', '收惊', '送煞'],
192
+ world_rule: ['夜里听见有人叫全名,不能答应。'],
193
+ },
194
+ anti_examples: ['神秘禁忌', '民间法术大全', '上古诅咒', '诡异规则'],
195
+ compatibility: { 悬疑: 'native', 都市: 'native', 灵异: 'native', 民俗: 'native', 仙侠: 'adaptable', 言情: 'weak', 科幻: 'weak', 西幻: 'weak' },
196
+ confidence: 0.8,
197
+ },
198
+ {
199
+ style_key: 'classical-lexicon',
200
+ style_name: '古典意象词库',
201
+ style_type: 'naming',
202
+ account_names: ['万山听籁写作屋', '晚时见', '栖屿.'],
203
+ genre_tags: ['古风', '仙侠', '言情', '历史', '诗词'],
204
+ dna: '古典意象、词库、取名、情绪与江南物候;短词为主,重视语感、画面和留白;不解释,只给词。',
205
+ naming_rules: {
206
+ length: [2, 6],
207
+ syntax: ['名词+名词', '形容词+意象', '姓氏/名字组合'],
208
+ suffixes: [],
209
+ forbidden: ['系统', '协议', '异能', '现代职场'],
210
+ tone: '雅、静、含蓄',
211
+ },
212
+ lexicon: {
213
+ preferred: ['月', '雪', '花', '酒', '灯', '舟', '江南', '中药', '香', '雨', '竹', '兰'],
214
+ forbidden: ['赛博', '数据', '模块', '阈值'],
215
+ },
216
+ cross_kind_examples: {
217
+ place_name: ['月照花林', '月映寒潭', '江南旧巷'],
218
+ faction_name: ['听雪楼', '折花会'],
219
+ skill_name: ['听雨', '折梅', '照影'],
220
+ item_name: ['半盏灯', '旧香囊'],
221
+ monster_name: ['雪狐', '灯下客'],
222
+ rank_name: ['听雪', '折花', '照影'],
223
+ world_rule: ['花开之前,不能说出她的名字。'],
224
+ },
225
+ anti_examples: ['古典意象系统', '唯美古风', '月华之力', '花语异能'],
226
+ compatibility: { 古风: 'native', 仙侠: 'native', 言情: 'native', 历史: 'native', 玄幻: 'adaptable', 悬疑: 'adaptable', 都市: 'weak', 科幻: 'weak' },
227
+ confidence: 0.8,
228
+ },
229
+ {
230
+ style_key: 'monster-archive',
231
+ style_name: '怪物档案/神话考据',
232
+ style_type: 'structure',
233
+ account_names: ['怪物档案管理员', '我愿'],
234
+ genre_tags: ['神话', '玄幻', '悬疑', '志怪', '洪荒'],
235
+ dna: '编号档案、原典引用、神格/种族/谱系;先记录,再解释;有“档案已解密”的冷感。',
236
+ naming_rules: {
237
+ length: [2, 8],
238
+ syntax: ['编号+名称', '种族+神格', '原典名+档案编号'],
239
+ suffixes: ['档案', '编号', '谱系'],
240
+ forbidden: ['无敌神兽', '最强妖怪', '神秘生物'],
241
+ tone: '冷静、考据、档案体',
242
+ },
243
+ lexicon: {
244
+ preferred: ['档案', '编号', '原典', '神格', '谱系', '异兽', '蛊', '山海经', '封印'],
245
+ forbidden: ['系统', '抽卡', '宠物蛋'],
246
+ },
247
+ cross_kind_examples: {
248
+ place_name: ['M-013 归墟海眼', '封存区·青丘'],
249
+ faction_name: ['神格档案馆', '异兽观测所'],
250
+ skill_name: ['神格解读', '原典封印'],
251
+ item_name: ['M-007 镇魂匣', '封存档案·骨镜'],
252
+ monster_name: ['M-001 九尾狐', 'M-004 混沌'],
253
+ rank_name: ['未解密', '观测级', '封存级', '神话级'],
254
+ world_rule: ['档案被阅读一次,对应怪物就苏醒一级。'],
255
+ },
256
+ anti_examples: ['神秘怪物档案', '最强神兽录', '上古异兽大全'],
257
+ compatibility: { 神话: 'native', 玄幻: 'native', 悬疑: 'native', 志怪: 'native', 洪荒: 'native', 仙侠: 'adaptable', 西幻: 'adaptable', 科幻: 'adaptable', 言情: 'weak' },
258
+ confidence: 0.85,
259
+ },
260
+ {
261
+ style_key: 'daoist-lore',
262
+ style_name: '道教修真百科',
263
+ style_type: 'structure',
264
+ account_names: ['兀清小说素材库'],
265
+ genre_tags: ['仙侠', '道教', '历史', '修真', '悬疑'],
266
+ dna: '道教术语、内丹、灵茶灵膳、修真地名;像从古籍和科仪里抄出来的词条;有术语密度,但不生僻到读不懂。',
267
+ naming_rules: {
268
+ length: [2, 8],
269
+ syntax: ['术语+注释', '功法阶段+意象', '灵物+用途'],
270
+ suffixes: ['篇', '法', '气', '丹', '膳', '茶'],
271
+ forbidden: ['系统', '面板', '技能树', '西式魔法'],
272
+ tone: '古雅、术语气、克制',
273
+ },
274
+ lexicon: {
275
+ preferred: ['养气', '元阳', '丹田', '周天', '灵茶', '灵膳', '筑基', '存思', '辟谷', '符箓'],
276
+ forbidden: ['异能', '模块', '协议', '数据'],
277
+ },
278
+ cross_kind_examples: {
279
+ place_name: ['上丹田', '土釜', '流珠', '西本乡'],
280
+ faction_name: ['丹鼎派', '存思院'],
281
+ skill_name: ['养气', '产药', '周天'],
282
+ item_name: ['灵茶·松风', '灵膳·玉髓'],
283
+ monster_name: ['丹煞', '炉中魅'],
284
+ rank_name: ['炼气', '筑基', '产药', '结丹'],
285
+ world_rule: ['服丹之后三日之内,不能近女色,否则药力尽散。'],
286
+ },
287
+ anti_examples: ['道教系统', '修仙面板', '灵力等级', '魔法真气'],
288
+ compatibility: { 仙侠: 'native', 道教: 'native', 修真: 'native', 历史: 'native', 悬疑: 'adaptable', 玄幻: 'adaptable', 西幻: 'weak', 科幻: 'weak' },
289
+ confidence: 0.85,
290
+ },
291
+ {
292
+ style_key: 'ai-visual',
293
+ style_name: 'AI视觉/漫剧资产',
294
+ style_type: 'visual',
295
+ account_names: ['AI视觉实战库', '就是薯条君(ai漫剧可带', '奇点会作'],
296
+ genre_tags: ['视觉', 'AI漫剧', '古风', '仙侠', '分镜'],
297
+ dna: '神兵、法宝、角色、场景、灵力、打斗分镜;为画面服务,强调视觉资产和镜头感,不是纯文字命名。',
298
+ naming_rules: {
299
+ length: [3, 10],
300
+ syntax: ['物件+视觉特征', '角色+风格标签', '场景+镜头元素'],
301
+ suffixes: [],
302
+ forbidden: ['纯功能说明', '无画面感'],
303
+ tone: '画面感、资产化、可拍摄',
304
+ },
305
+ lexicon: {
306
+ preferred: ['水墨', '鎏金', '云海', '剑光', '灵涡', '分镜', '服化道', '场景资产'],
307
+ forbidden: ['系统面板', '抽象哲理'],
308
+ },
309
+ cross_kind_examples: {
310
+ place_name: ['水墨山河', '云海仙山全景', '月下湖上城郭'],
311
+ faction_name: ['仙门视觉组', '水墨画宗'],
312
+ skill_name: ['灵力破壳', '剑光分镜'],
313
+ item_name: ['青冥点星笔', '流云玉扇'],
314
+ monster_name: ['墨色黑龙', '白骨冥妃'],
315
+ rank_name: ['远景', '中景', '特写', '高光镜头'],
316
+ world_rule: ['每一次施法都必须有一个可拍摄的视觉锚点。'],
317
+ },
318
+ anti_examples: ['AI视觉系统', '分镜协议', '神兵模块'],
319
+ compatibility: { 视觉: 'native', AI漫剧: 'native', 古风: 'native', 仙侠: 'native', 玄幻: 'native', 都市: 'adaptable', 科幻: 'adaptable', 言情: 'weak' },
320
+ confidence: 0.7,
321
+ },
322
+ {
323
+ style_key: 'xiuxian-codex',
324
+ style_name: '修仙设定图鉴',
325
+ style_type: 'structure',
326
+ account_names: ['玄宸'],
327
+ genre_tags: ['仙侠', '玄幻', '修真', '宗门'],
328
+ dna: '体质、秘境、秘术、宗门黑幕成组出现;四字词组为主,后接一条规则/代价;有“设定图鉴”的完整感。',
329
+ naming_rules: {
330
+ length: [3, 6],
331
+ syntax: ['四字意象+名词', '秘境名+地貌', '秘术名+效果'],
332
+ suffixes: ['体', '术', '经', '图', '典'],
333
+ forbidden: ['系统', '面板', '无敌', '最强'],
334
+ tone: '宏大、体系化、带代价',
335
+ },
336
+ lexicon: {
337
+ preferred: ['血河', '紫微', '琉璃', '烬日', '熔城', '回魂', '夺舍', '献寿', '宗门', '秘术'],
338
+ forbidden: ['异能', '模块', '协议'],
339
+ },
340
+ cross_kind_examples: {
341
+ place_name: ['烬日熔城', '熔阳天穹', '赤脉岩河'],
342
+ faction_name: ['焚风祭塔', '血河宗'],
343
+ skill_name: ['烬烛回魂术', '残烬续命'],
344
+ item_name: ['霜羽扇', '扇骨·乌金'],
345
+ monster_name: ['烬兽', '熔岩生息'],
346
+ rank_name: ['圣体初显', '诸邪难侵', '大成成圣'],
347
+ world_rule: ['宗门以入门血契持续抽取弟子寿元,供长老延命。'],
348
+ },
349
+ anti_examples: ['血河体系统', '烬日秘境', '回魂术式'],
350
+ compatibility: { 仙侠: 'native', 玄幻: 'native', 修真: 'native', 宗门: 'native', 西幻: 'weak', 都市: 'weak', 科幻: 'weak' },
351
+ confidence: 0.8,
352
+ },
353
+ {
354
+ style_key: 'suspense-weird',
355
+ style_name: '悬疑怪谈/规则脑洞',
356
+ style_type: 'structure',
357
+ account_names: ['水饺(码字版)'],
358
+ genre_tags: ['悬疑', '规则怪谈', '惊悚', '无限流', '克苏鲁'],
359
+ dna: '规则怪谈、诡异道具、童话副本、犯罪心理;先给一条规则,再让规则产生恐怖后果;强调信息差和代价。',
360
+ naming_rules: {
361
+ length: [3, 10],
362
+ syntax: ['现象+编号', '规则+后果', '日常场景+异常'],
363
+ suffixes: ['规则', '现象', '事件', '副本'],
364
+ forbidden: ['无敌', '秒杀', '神秘力量'],
365
+ tone: '冷、克制、细思极恐',
366
+ },
367
+ lexicon: {
368
+ preferred: ['循环', '观赏者', '语言', '地图', '梦游', '时间裂隙', '规则', '副本', '监控'],
369
+ forbidden: ['仙气', '霸气', '热血'],
370
+ },
371
+ cross_kind_examples: {
372
+ place_name: ['永恒的循环', '午时集体沉眠区', '时间裂隙'],
373
+ faction_name: ['观赏者协会', '守则执行组'],
374
+ skill_name: ['规则改写', '时间借位'],
375
+ item_name: ['活体地图', '人皮地图'],
376
+ monster_name: ['观赏者', '不睡的孩子'],
377
+ rank_name: ['观察级', '收容级', '失效级'],
378
+ world_rule: ['看见规则的人,必须在一小时内把规则念给另一个人听。'],
379
+ },
380
+ anti_examples: ['神秘规则', '恐怖系统', '无限恐怖', '诡异空间'],
381
+ compatibility: { 悬疑: 'native', 规则怪谈: 'native', 惊悚: 'native', 无限流: 'native', 克苏鲁: 'native', 都市: 'adaptable', 科幻: 'adaptable', 仙侠: 'weak', 言情: 'weak' },
382
+ confidence: 0.8,
383
+ },
384
+ {
385
+ style_key: 'oc-flower',
386
+ style_name: '花语/动物/OC代餐',
387
+ style_type: 'naming',
388
+ account_names: ['游渔'],
389
+ genre_tags: ['OC', '花语', '都市', '奇幻', '言情', '悬疑'],
390
+ dna: '花语、动物、神位、异能、心理缺陷、犯罪心理;像在给一个 OC 找“象征物”;名字短,后面跟一条性格/命运解释。',
391
+ naming_rules: {
392
+ length: [2, 6],
393
+ syntax: ['花/动物名+象征', '异能+心理', '神位+缺陷'],
394
+ suffixes: [],
395
+ forbidden: ['系统', '面板', '无敌'],
396
+ tone: '象征、冷艳、代餐感',
397
+ },
398
+ lexicon: {
399
+ preferred: ['玫瑰', '雏菊', '乌鸦', '猫', '知更鸟', '蜘蛛', '天使', '亡灵', '空间', '心理'],
400
+ forbidden: ['修仙', '灵气', '宗门'],
401
+ },
402
+ cross_kind_examples: {
403
+ place_name: ['玫瑰庭', '鸦栖地', '知更鸟笼'],
404
+ faction_name: ['花语会', '代餐档案室'],
405
+ skill_name: ['荆棘回礼', '鸦羽替身'],
406
+ item_name: ['干枯玫瑰', '黑猫铃'],
407
+ monster_name: ['玫瑰寄生体', '无面知更鸟'],
408
+ rank_name: ['花苞', '盛放', '凋零'],
409
+ world_rule: ['收到玫瑰的人,会继承送花者的一段记忆。'],
410
+ },
411
+ anti_examples: ['玫瑰异能', '花语系统', '动物神功'],
412
+ compatibility: { OC: 'native', 花语: 'native', 都市: 'native', 奇幻: 'native', 言情: 'native', 悬疑: 'native', 仙侠: 'weak', 历史: 'weak' },
413
+ confidence: 0.75,
414
+ },
415
+ {
416
+ style_key: 'writing-teaching',
417
+ style_name: '网文写作教学',
418
+ style_type: 'teaching',
419
+ account_names: ['牛哥网文指导'],
420
+ genre_tags: ['写作', '教学', '网文', '方法论'],
421
+ dna: '写作方法、打斗描写、章末钩子、爽点桥段;像老作者带新人,讲可执行的手艺,不讲空泛灵感。',
422
+ naming_rules: {
423
+ length: [4, 20],
424
+ syntax: ['方法名+动作', '问题+解法', '经验判断'],
425
+ suffixes: [],
426
+ forbidden: ['空泛鸡汤', '文学理论'],
427
+ tone: '直接、实操、带经验',
428
+ },
429
+ lexicon: {
430
+ preferred: ['开篇', '钩子', '爽点', '憋屈', '日更', '扑街', '节奏', '视角', '信息差'],
431
+ forbidden: ['系统', '灵气', '秘境'],
432
+ },
433
+ cross_kind_examples: {
434
+ place_name: ['开篇前三章', '钩子位置'],
435
+ faction_name: ['新人写作组', '日更派'],
436
+ skill_name: ['信息差写法', '章末钩子'],
437
+ item_name: ['大纲模板', '人物小传'],
438
+ monster_name: ['拖沓怪', '工具人配角'],
439
+ rank_name: ['新人', '签约', '万订'],
440
+ world_rule: ['每章结尾必须留下一个未解决的问题。'],
441
+ },
442
+ anti_examples: ['写作系统', '灵感面板', '文学理论大全'],
443
+ compatibility: { 写作: 'native', 教学: 'native', 网文: 'native', 方法论: 'native', 通用: 'adaptable' },
444
+ confidence: 0.75,
445
+ },
446
+ ];
447
+
448
+ export const SELECTABLE_STYLE_TYPES = new Set(['naming', 'structure']);
@@ -31,6 +31,7 @@ import { exportMaterials } from './exporter.js';
31
31
  import { allKnownGenres } from './genres.js';
32
32
  import { buildExistingIndex, countByKind, countKind } from './inventory.js';
33
33
  import { KIND_LABELS, MATERIAL_KINDS, customFocusBlock, focusBlock, renderKindTable, resolveCustomKinds, resolveFocus } from './kinds.js';
34
+ import { loadStyleRegistry, selectStyles, styleBatchSummary, stylePromptBlock, styleSummaryText } from './styles.js';
34
35
  import { exportMaterialDatabase, importMaterialDatabase } from './native-backup.js';
35
36
  import { nextBatchRequest, planMaterialQueue } from './queue.js';
36
37
  import { deployMaterialTools } from './tool-deploy.js';
@@ -120,6 +121,9 @@ function renderBasePrompt({
120
121
  batchSize = DEFAULT_BATCH_SIZE,
121
122
  focusBlockText = '',
122
123
  custom = null,
124
+ styleBlock = '',
125
+ styleRules = '',
126
+ audience = '',
123
127
  }) {
124
128
  const sourceFixed = mode === 'other' ? 'other' : 'builtin';
125
129
  const sourceNote = sourceFixed === 'other'
@@ -136,8 +140,9 @@ function renderBasePrompt({
136
140
  FOCUS_BLOCK: focusBlockText || focusBlock(focus),
137
141
  TARGET_PER_KIND: String(targetPerKind),
138
142
  BATCH_SIZE: String(batchSize),
139
- AUDIENCE: '男频 / 女频 / 通用',
140
- STYLE_RULES: '未指定(执行通用创作标准)',
143
+ AUDIENCE: audience || '男频 / 女频 / 通用',
144
+ STYLE_RULES: styleRules || '未指定(执行通用创作标准)',
145
+ STYLE_BLOCK: styleBlock || '(本次未选择账号风格,按通用规则生成。)',
141
146
  BATCH_ID: batchId || 'material-YYYYMMDD-01',
142
147
  SEED: batchId || 'material-v4',
143
148
  EXISTING_INDEX: existingIndex || '(运行 /fancy-material 时由插件提供)',
@@ -160,6 +165,38 @@ function stripQuotes(value) {
160
165
  return text;
161
166
  }
162
167
 
168
+ /**
169
+ * 从参数里抽取 --style。
170
+ * 支持:--style suci / --style=suci / --style suci,crazy-fish。
171
+ * 返回清洗后的参数(保持其它参数的相对顺序)。
172
+ */
173
+ export function splitStyleOption(rawTokens) {
174
+ const tokens = [];
175
+ const styles = [];
176
+ let missing = false;
177
+ for (let i = 0; i < rawTokens.length; i += 1) {
178
+ const token = rawTokens[i];
179
+ if (token === '--style') {
180
+ const value = rawTokens[i + 1];
181
+ if (!value || value.startsWith('--')) {
182
+ missing = true;
183
+ continue;
184
+ }
185
+ styles.push(value);
186
+ i += 1;
187
+ continue;
188
+ }
189
+ if (token.startsWith('--style=')) {
190
+ const value = token.slice('--style='.length).trim();
191
+ if (!value) missing = true;
192
+ else styles.push(value);
193
+ continue;
194
+ }
195
+ tokens.push(token);
196
+ }
197
+ return { tokens, styleRaw: styles.join(','), missing };
198
+ }
199
+
163
200
  /**
164
201
  * Resolve a user-provided import path. Relative paths are resolved from the
165
202
  * session cwd first, then from the workspace directory.
@@ -565,6 +602,22 @@ async function runGenerate(ctx, invocation, session, focusRaw = '', taskList, op
565
602
  return notify(session, 'error', '❌ 部署素材查询脚本失败:\n' + (tools.problems.join('\n') || '未知错误'));
566
603
  }
567
604
  const database = materialDatabaseName(readWorkspace(root));
605
+ const styleRegistry = await loadStyleRegistry(root);
606
+ let selectedStyles = [];
607
+ try {
608
+ selectedStyles = selectStyles(styleRegistry.styles, {
609
+ genres: plan.genres,
610
+ explicit: opts.styleRaw || 'auto',
611
+ limit: 3,
612
+ });
613
+ } catch (err) {
614
+ return notify(session, 'error', '❌ ' + (err && err.message ? err.message : String(err)));
615
+ }
616
+ const styleBlock = stylePromptBlock(styleRegistry.styles, selectedStyles, { genres: plan.genres });
617
+ const styleRules = selectedStyles.length
618
+ ? '本次使用账号风格:' + styleSummaryText(selectedStyles) + ';风格核心优先于题材命名体例。'
619
+ : '未指定账号风格(执行通用创作标准)。';
620
+ const styleSummary = styleBatchSummary(selectedStyles);
568
621
  const counts = await countByKind(root, plan.genres);
569
622
  // 自定义素材第一轮 kind 由 LLM 决定,这里先用一个占位项跑一条队列。
570
623
  const kinds = isCustom
@@ -603,6 +656,8 @@ async function runGenerate(ctx, invocation, session, focusRaw = '', taskList, op
603
656
  batchSize: config.batchSize,
604
657
  focusBlockText,
605
658
  custom: isCustom ? { genre: plan.customGenre, materialType: plan.customMaterialType } : null,
659
+ styleBlock,
660
+ styleRules,
606
661
  });
607
662
 
608
663
  const queue = planned.all.map((item) => ({
@@ -634,6 +689,12 @@ async function runGenerate(ctx, invocation, session, focusRaw = '', taskList, op
634
689
  genre_mode: plan.mode,
635
690
  genres: plan.genres,
636
691
  source: plan.mode === 'other' ? 'other' : 'builtin',
692
+ styles: selectedStyles.map((style) => ({
693
+ style_key: style.style_key,
694
+ style_name: style.style_name,
695
+ style_type: style.style_type,
696
+ genre_tags: style.genre_tags,
697
+ })),
637
698
  ...(isCustom ? {
638
699
  custom_genre: plan.customGenre,
639
700
  custom_material_type: plan.customMaterialType,
@@ -739,6 +800,7 @@ async function runGenerate(ctx, invocation, session, focusRaw = '', taskList, op
739
800
  : null,
740
801
  customKindPending: isCustom && !item.kind,
741
802
  sourceFixed: plan.mode === 'other' ? 'other' : 'builtin',
803
+ styleSummary,
742
804
  });
743
805
  const sent = await llmFollowup(invocation, prompt, { appendTempRule: false });
744
806
  if (!sent || sent.ok !== true) {
@@ -959,13 +1021,15 @@ async function runGenerate(ctx, invocation, session, focusRaw = '', taskList, op
959
1021
  batches: batchCount,
960
1022
  total,
961
1023
  progressFile,
1024
+ styles: selectedStyles.map((style) => ({ style_key: style.style_key, style_name: style.style_name })),
962
1025
  aborted,
963
1026
  stopReason,
964
1027
  }));
965
1028
  }
966
1029
 
967
1030
  function materialTaskTitles(invocation) {
968
- const tokens = String(invocation.rawInput || '').trim().split(/\s+/).filter(Boolean);
1031
+ const parsed = splitStyleOption(String(invocation.rawInput || '').trim().split(/\s+/).filter(Boolean));
1032
+ const tokens = parsed.tokens;
969
1033
  const command = (tokens[0] || '').toLowerCase();
970
1034
  if (command === 'help' || command === '?') return ['显示素材库帮助'];
971
1035
  if (command === 'prompt') return ['读取题材列表', '渲染素材提示词'];
@@ -985,12 +1049,17 @@ function materialTaskTitles(invocation) {
985
1049
  export async function apply(ctx) {
986
1050
  registerCommandWithTasks(ctx, {
987
1051
  name: 'fancy-material',
988
- description: '🧩 素材库 ( usage: /fancy-material [素材类型] | load <文件> | dump | export | import | init | remove | prompt | help )',
989
- input: { hint: '[素材类型] | load <文件.jsonl> | dump | export [文件.surql] | import [文件.surql]' },
1052
+ description: '🧩 素材库 ( usage: /fancy-material [--style <key>] [素材类型] | load <文件> | dump | export | import | init | remove | prompt | help )',
1053
+ input: { hint: '[--style <key>] [素材类型] | load <文件.jsonl> | dump | export [文件.surql] | import [文件.surql]' },
990
1054
  handler: async (invocation, taskList) => {
991
1055
  const session = invocation.agent.session;
992
1056
  const raw = String(invocation.rawInput || '').trim();
993
- const tokens = raw.split(/\s+/).filter(Boolean);
1057
+ const parsedStyle = splitStyleOption(raw.split(/\s+/).filter(Boolean));
1058
+ if (parsedStyle.missing) {
1059
+ return notify(session, 'error', '用法:--style <style_key>,多个用逗号分隔;可用 /fancy-douyin list 查看风格 key。');
1060
+ }
1061
+ const tokens = parsedStyle.tokens;
1062
+ const styleRaw = parsedStyle.styleRaw;
994
1063
  const command = (tokens[0] || '').toLowerCase();
995
1064
 
996
1065
  if (command === 'help' || command === '?') return notify(session, 'success', helpText());
@@ -1001,6 +1070,18 @@ export async function apply(ctx) {
1001
1070
  let root = null;
1002
1071
  try { root = workspaceOf(session); } catch { /* prompt also works outside a workspace */ }
1003
1072
  const genres = allKnownGenres(root);
1073
+ let styleBlock = '';
1074
+ let styleRules = '';
1075
+ if (root) {
1076
+ try {
1077
+ const registry = await loadStyleRegistry(root);
1078
+ const selected = selectStyles(registry.styles, { genres, explicit: 'auto', limit: 3 });
1079
+ styleBlock = stylePromptBlock(registry.styles, selected, { genres });
1080
+ styleRules = selected.length
1081
+ ? '本次预览风格:' + styleSummaryText(selected) + '(实际运行时按题材自动选择)'
1082
+ : '未指定账号风格(执行通用创作标准)。';
1083
+ } catch { /* 预览提示词不因风格库失败而中断 */ }
1084
+ }
1004
1085
  const rendered = renderBasePrompt({
1005
1086
  mode: 'builtin',
1006
1087
  genres,
@@ -1011,6 +1092,8 @@ export async function apply(ctx) {
1011
1092
  workspace: root || '(运行时提供)',
1012
1093
  focus: null,
1013
1094
  validateScript: VALIDATE_SCRIPT,
1095
+ styleBlock,
1096
+ styleRules,
1014
1097
  });
1015
1098
  return notify(session, 'success', promptDisplayText(rendered));
1016
1099
  } catch (err) {
@@ -1020,7 +1103,7 @@ export async function apply(ctx) {
1020
1103
 
1021
1104
  const SPECIAL = new Set(['load', 'dump', 'export', 'import', 'init', 'remove', 'prompt']);
1022
1105
  try {
1023
- if (!command) return await runGenerate(ctx, invocation, session, '', taskList);
1106
+ if (!command) return await runGenerate(ctx, invocation, session, '', taskList, { styleRaw });
1024
1107
  if (command === 'load') {
1025
1108
  if (tokens.length < 2) return notify(session, 'error', '用法:/fancy-material load <文件.jsonl>');
1026
1109
  return await runLoad(ctx, invocation, session, tokens.slice(1).join(' '), taskList);
@@ -1058,10 +1141,11 @@ export async function apply(ctx) {
1058
1141
  materialType: allKinds ? 'all' : materialTypeRaw,
1059
1142
  allKinds,
1060
1143
  },
1144
+ styleRaw,
1061
1145
  });
1062
1146
  }
1063
1147
  // 其它单参数视为素材类型重点,例如 /fancy-material 地名
1064
- return await runGenerate(ctx, invocation, session, raw, taskList);
1148
+ return await runGenerate(ctx, invocation, session, tokens.join(' '), taskList, { styleRaw });
1065
1149
  } catch (err) {
1066
1150
  return notify(session, 'error', '❌ ' + (err && err.message ? err.message : String(err)));
1067
1151
  }