@waterwx/dsh-novel-forge 1.0.0-alpha → 1.1.0-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.
Files changed (148) hide show
  1. package/README.md +231 -231
  2. package/lib/client.js +9118 -7818
  3. package/lib/index.js +316 -112
  4. package/lib/types/bookshelf.d.ts +5 -0
  5. package/lib/types/client/api.d.ts +6 -2
  6. package/lib/types/client/docx.d.ts +2 -0
  7. package/lib/types/client/locales.d.ts +5 -5
  8. package/lib/types/client/panel/AiTag.d.ts +1 -0
  9. package/lib/types/client/panel/AuthorHome.d.ts +11 -11
  10. package/lib/types/client/panel/CmdPalette.d.ts +12 -0
  11. package/lib/types/client/panel/LiveFeedLog.d.ts +3 -0
  12. package/lib/types/client/panel/NovelPanel.d.ts +5 -0
  13. package/lib/types/client/panel/PageHeader.d.ts +18 -0
  14. package/lib/types/client/panel/SettingsView.d.ts +12 -9
  15. package/lib/types/client/panel/ShelfView.d.ts +10 -1
  16. package/lib/types/client/panel/SubPage.d.ts +27 -0
  17. package/lib/types/client/panel/toast.d.ts +2 -0
  18. package/lib/types/client/panel/views.d.ts +25 -7
  19. package/lib/types/docx-core.d.ts +16 -0
  20. package/lib/types/docx.d.ts +2 -3
  21. package/lib/types/engine.d.ts +9 -9
  22. package/lib/types/index.d.ts +1 -1
  23. package/lib/types/migrate-output.d.ts +25 -0
  24. package/lib/types/prompting.d.ts +1 -26
  25. package/lib/types/protocol.d.ts +76 -31
  26. package/lib/types/routes.d.ts +4 -0
  27. package/lib/types/run.d.ts +2 -0
  28. package/package.json +120 -120
  29. package/src/assistant.ts +3 -3
  30. package/src/author-assets.ts +149 -147
  31. package/src/bookshelf.ts +187 -167
  32. package/src/client/api.ts +12 -3
  33. package/src/client/docx.ts +37 -69
  34. package/src/client/llmLive.ts +101 -101
  35. package/src/client/locales.ts +418 -418
  36. package/src/client/panel/AdaptModeView.tsx +535 -535
  37. package/src/client/panel/AiTag.tsx +7 -0
  38. package/src/client/panel/AssetsTab.tsx +448 -458
  39. package/src/client/panel/AssistantTab.tsx +35 -35
  40. package/src/client/panel/AuthorAssetsView.tsx +205 -207
  41. package/src/client/panel/AuthorHome.tsx +309 -234
  42. package/src/client/panel/BookAnalysisView.tsx +63 -60
  43. package/src/client/panel/CmdPalette.tsx +102 -0
  44. package/src/client/panel/CreateBookView.tsx +366 -371
  45. package/src/client/panel/DirectorView.tsx +23 -23
  46. package/src/client/panel/GlobalAssetLibraryView.tsx +168 -172
  47. package/src/client/panel/IdeaInspirationView.tsx +76 -71
  48. package/src/client/panel/ImportModal.tsx +302 -302
  49. package/src/client/panel/KnowledgeBaseView.tsx +125 -73
  50. package/src/client/panel/LiveFeedLog.tsx +67 -67
  51. package/src/client/panel/MarketRadarView.tsx +377 -374
  52. package/src/client/panel/ModelManager.tsx +205 -205
  53. package/src/client/panel/NovelPanel.tsx +2761 -2100
  54. package/src/client/panel/PageHeader.tsx +37 -0
  55. package/src/client/panel/ProgressConsole.tsx +63 -63
  56. package/src/client/panel/ReaderView.tsx +306 -306
  57. package/src/client/panel/RunPanel.tsx +223 -204
  58. package/src/client/panel/SettingsView.tsx +305 -265
  59. package/src/client/panel/ShelfView.tsx +266 -242
  60. package/src/client/panel/SubPage.tsx +42 -0
  61. package/src/client/panel/WorldTab.tsx +202 -202
  62. package/src/client/panel/panel.module.css +5764 -4693
  63. package/src/client/panel/toast.ts +51 -0
  64. package/src/client/panel/views.tsx +401 -346
  65. package/src/client/run-status.ts +143 -100
  66. package/src/docx-core.ts +53 -0
  67. package/src/docx.ts +44 -83
  68. package/src/engine.ts +15 -90
  69. package/src/index.ts +311 -298
  70. package/src/migrate-output.ts +76 -0
  71. package/src/novel-context.ts +286 -287
  72. package/src/prompting.ts +26 -159
  73. package/src/protocol.ts +79 -31
  74. package/src/routes.ts +123 -9
  75. package/src/run.ts +341 -338
  76. package/lib/types/client/panel/FlowGuide.d.ts +0 -22
  77. package/lib/types/client/panel/MangaRoleLibrary.d.ts +0 -20
  78. package/lib/types/client/panel/MangaWorkspace.d.ts +0 -12
  79. package/lib/types/client/panel/ModelPicker.d.ts +0 -11
  80. package/lib/types/client/panel/PropLibrary.d.ts +0 -8
  81. package/lib/types/client/panel/SceneLibrary.d.ts +0 -16
  82. package/lib/types/client/panel/StoryboardTab.d.ts +0 -19
  83. package/lib/types/client/panel/StyleCard.d.ts +0 -8
  84. package/lib/types/client/panel/StyleGallery.d.ts +0 -1
  85. package/lib/types/comic-presets.d.ts +0 -12
  86. package/lib/types/manga-genre-rules.d.ts +0 -22
  87. package/lib/types/shot-language.d.ts +0 -46
  88. package/lib/types/src/ai-scan.d.ts +0 -36
  89. package/lib/types/src/assets.d.ts +0 -37
  90. package/lib/types/src/assistant.d.ts +0 -45
  91. package/lib/types/src/author-assets.d.ts +0 -25
  92. package/lib/types/src/bookshelf.d.ts +0 -42
  93. package/lib/types/src/client/api.d.ts +0 -234
  94. package/lib/types/src/client/docx.d.ts +0 -15
  95. package/lib/types/src/client/index.d.ts +0 -14
  96. package/lib/types/src/client/locales.d.ts +0 -212
  97. package/lib/types/src/client/mount.d.ts +0 -9
  98. package/lib/types/src/client/panel/AdaptModeView.d.ts +0 -5
  99. package/lib/types/src/client/panel/AssetsTab.d.ts +0 -12
  100. package/lib/types/src/client/panel/AssistantTab.d.ts +0 -7
  101. package/lib/types/src/client/panel/AuthorAssetsView.d.ts +0 -4
  102. package/lib/types/src/client/panel/AuthorHome.d.ts +0 -32
  103. package/lib/types/src/client/panel/BookshelfBar.d.ts +0 -11
  104. package/lib/types/src/client/panel/CreateBookView.d.ts +0 -9
  105. package/lib/types/src/client/panel/FlowGuide.d.ts +0 -22
  106. package/lib/types/src/client/panel/GlobalAssetLibraryView.d.ts +0 -4
  107. package/lib/types/src/client/panel/ImportModal.d.ts +0 -7
  108. package/lib/types/src/client/panel/MangaRoleLibrary.d.ts +0 -20
  109. package/lib/types/src/client/panel/MangaWorkspace.d.ts +0 -12
  110. package/lib/types/src/client/panel/ModelManager.d.ts +0 -14
  111. package/lib/types/src/client/panel/NovelPanel.d.ts +0 -13
  112. package/lib/types/src/client/panel/ProgressConsole.d.ts +0 -17
  113. package/lib/types/src/client/panel/ProgressHomeView.d.ts +0 -5
  114. package/lib/types/src/client/panel/PropLibrary.d.ts +0 -8
  115. package/lib/types/src/client/panel/ReaderView.d.ts +0 -8
  116. package/lib/types/src/client/panel/ReasoningSection.d.ts +0 -10
  117. package/lib/types/src/client/panel/RunPanel.d.ts +0 -5
  118. package/lib/types/src/client/panel/SceneLibrary.d.ts +0 -16
  119. package/lib/types/src/client/panel/SettingsView.d.ts +0 -16
  120. package/lib/types/src/client/panel/ShelfView.d.ts +0 -15
  121. package/lib/types/src/client/panel/StoryboardTab.d.ts +0 -19
  122. package/lib/types/src/client/panel/StyleCard.d.ts +0 -8
  123. package/lib/types/src/client/panel/StyleGallery.d.ts +0 -1
  124. package/lib/types/src/client/panel/WorldTab.d.ts +0 -10
  125. package/lib/types/src/client/panel/controller.d.ts +0 -19
  126. package/lib/types/src/client/panel/helpers.d.ts +0 -18
  127. package/lib/types/src/client/panel/views.d.ts +0 -77
  128. package/lib/types/src/client/sidebar-entry.d.ts +0 -13
  129. package/lib/types/src/client/text.d.ts +0 -9
  130. package/lib/types/src/comic-presets.d.ts +0 -12
  131. package/lib/types/src/docx.d.ts +0 -19
  132. package/lib/types/src/engine.d.ts +0 -402
  133. package/lib/types/src/index.d.ts +0 -79
  134. package/lib/types/src/manga-genre-rules.d.ts +0 -22
  135. package/lib/types/src/novel-context.d.ts +0 -80
  136. package/lib/types/src/prompt-utils.d.ts +0 -35
  137. package/lib/types/src/protocol.d.ts +0 -2176
  138. package/lib/types/src/review-policy.d.ts +0 -97
  139. package/lib/types/src/routes.d.ts +0 -29
  140. package/lib/types/src/run.d.ts +0 -32
  141. package/lib/types/src/shot-language.d.ts +0 -46
  142. package/lib/types/src/story-beat-language.d.ts +0 -35
  143. package/lib/types/src/style-library.d.ts +0 -33
  144. package/lib/types/story-beat-language.d.ts +0 -35
  145. package/lib/types/style-library.d.ts +0 -33
  146. package/src/client/panel/BookshelfBar.tsx +0 -170
  147. package/src/client/panel/ProgressHomeView.tsx +0 -87
  148. package/src/prompt-utils.ts +0 -73
@@ -1,234 +0,0 @@
1
- /**
2
- * Browser-side API client for the /api/dsh-novel-forge route family. Plain
3
- * fetch, same origin; generation/rewrite/polish ride NDJSON streams read
4
- * incrementally.
5
- */
6
- import { type AssetsPatch, type AssetsResponse, type AddModelRequest, type AddModelResponse, type LlmModelsResponse, type LlmProvidersResponse, type LlmVendorsResponse, type RemoveProviderRequest, type RemoveProviderResponse, type BibleResponse, type ChapterResponse, type ConfigPatch, type ExportResponse, type ForeshadowRequest, type ForeshadowResponse, type JobFrame, type LoadOutlineResponse, type AdaptExecuteRequest, type AdaptRewriteFrame, type AdaptMaterializeSaveRequest, type AdaptMaterializeSaveResponse, type PluginUpdateResponse, type LlmTestResponse, type NovelConfig, type PlanResponse, type ReviewReport, type StatusResponse, type StyleEngineRequest, type StyleAsset, type VolumesResponse } from '../protocol.ts';
7
- /** Error carrying the route's JSON error message. */
8
- export declare class NovelApiError extends Error {
9
- constructor(message: string);
10
- }
11
- /** The browser half's only data entry point. */
12
- export declare class NovelApi {
13
- status(): Promise<StatusResponse>;
14
- loadOutline(path?: string, text?: string): Promise<LoadOutlineResponse>;
15
- saveOutline(text: string): Promise<{
16
- ok: boolean;
17
- bookName: string;
18
- }>;
19
- /** 反推大纲:从已写章节正文反向生成全书总纲(NDJSON 流)。 */
20
- outlineReverse(onFrame: (frame: JobFrame) => void): Promise<void>;
21
- /** 分镜·导演级:骨架 → 分镜表(镜头级)。 */
22
- storyboardTable(chapterNo: number, skeleton: import('../protocol.ts').StoryboardSkeleton, styleId?: string, filterId?: string): Promise<import('../protocol.ts').StoryboardTableResponse>;
23
- /** 漫剧方案管理:create / remove / activate。 */
24
- manhuaPlans(req: import('../protocol.ts').MangaPlansRequest): Promise<import('../protocol.ts').MangaPlansResponse>;
25
- /** 分镜·提示词级:分镜表 → 即梦可粘贴视频提示词。 */
26
- storyboardPrompts(chapterNo: number, table: import('../protocol.ts').StoryboardTable, styleId?: string, filterId?: string): Promise<import('../protocol.ts').StoryboardPromptsResponse>;
27
- /** 分镜·编剧级:单章 → 剧情骨架(节拍链)。 */
28
- storyboardSkeleton(chapterNo: number): Promise<import('../protocol.ts').StoryboardSkeletonResponse>;
29
- /** 开书想法 → AI 大纲:生成 count 个方案(换批时传 exclude 避开已暂留方向)。 */
30
- outlineSuggest(idea: string, count?: number, exclude?: string[]): Promise<import('../protocol.ts').OutlineSuggestResponse>;
31
- /** 拆书分析:对已写章节做结构/人物/文风/卖点体检。 */
32
- breakdown(scope?: string, preset?: 'quick' | 'standard', budgetTokens?: number): Promise<import('../protocol.ts').BreakdownResponse>;
33
- plan(outline?: string, chapterCount?: number, volume?: number): Promise<PlanResponse>;
34
- volumes(outline?: string): Promise<VolumesResponse>;
35
- bible(outline?: string): Promise<BibleResponse>;
36
- review(chapterNo: number): Promise<{
37
- report: ReviewReport;
38
- }>;
39
- summarize(chapterNo: number): Promise<{
40
- summary: string;
41
- }>;
42
- foreshadow(req: ForeshadowRequest): Promise<ForeshadowResponse>;
43
- exportBook(format: 'txt' | 'md'): Promise<ExportResponse>;
44
- chapter(no: number): Promise<ChapterResponse>;
45
- /** 审查手动编辑的正文(不落盘)。previousReport 传入时走「验证模式」(核对原意见解决 + 只挑新增 high)。 */
46
- chapterCheck(no: number, text: string, previousReport?: ReviewReport): Promise<{
47
- report: ReviewReport;
48
- }>;
49
- /** 保存手动编辑的正文(自动备份 .bak;带报告则沿用落盘,否则保存后自动审稿)。 */
50
- chapterSave(no: number, text: string, report?: ReviewReport): Promise<import('../protocol.ts').ChapterSaveResponse>;
51
- patchConfig(patch: ConfigPatch): Promise<{
52
- config: NovelConfig;
53
- }>;
54
- openFolder(): Promise<void>;
55
- /** 插件自更新:在 DSH profile 目录拉取最新 npm 版(需重启 DSH 生效)。 */
56
- pluginUpdate(): Promise<PluginUpdateResponse>;
57
- /** 书架快照。 */
58
- bookshelf(): Promise<import('../protocol.ts').BookshelfSnapshot>;
59
- /** 新建书并激活(开书向导:可携带大纲文本,创建即建项目)。 */
60
- bookCreate(bookName: string, outputDir?: string, outline?: string): Promise<import('../protocol.ts').BookshelfSnapshot>;
61
- /** 重置项目(清空进度;可携带新大纲)。 */
62
- reset(outline?: string): Promise<{
63
- ok: boolean;
64
- bookName: string;
65
- }>;
66
- /** 全书一致性质检。 */
67
- audit(): Promise<import('../protocol.ts').AuditResponse>;
68
- /** 角色卡刷新(基于事实库聚合)。 */
69
- charactersRefresh(): Promise<{
70
- cards: import('../protocol.ts').RoleStatusCard[];
71
- }>;
72
- /** 事实库回填:对历史已生成章节批量抽取事实。 */
73
- factsBackfill(): Promise<{
74
- ok: boolean;
75
- filled: number;
76
- }>;
77
- /** 道藏局部修补。 */
78
- biblePatch(patch: import('../protocol.ts').BiblePatchRequest): Promise<{
79
- bible: import('../protocol.ts').StoryBible;
80
- }>;
81
- /** 剧情线管理:增删改 + 关联章节。 */
82
- plotlines(req: import('../protocol.ts').PlotlinesRequest): Promise<import('../protocol.ts').PlotlinesResponse>;
83
- /** 敏感词检查:指定章节 / 任意文本 / 全书。 */
84
- sensitiveCheck(req: import('../protocol.ts').SensitiveCheckRequest): Promise<import('../protocol.ts').SensitiveCheckResponse>;
85
- /** 作者复盘补跑:单章(JSON)。 */
86
- reviewBackfillChapter(no: number): Promise<{
87
- no: number;
88
- review: import('../protocol.ts').AuthorReview;
89
- }>;
90
- /** 作者复盘补跑:全书缺失章节(NDJSON 流)。 */
91
- reviewBackfillAll(onFrame: (frame: JobFrame) => void): Promise<void>;
92
- /** 章节复位:generating 卡死 → pending。 */
93
- chapterReset(no: number): Promise<{
94
- ok: boolean;
95
- no: number;
96
- }>;
97
- /** 章节直接通过(作者行使最终决定权)。 */
98
- chapterApprove(no: number): Promise<{
99
- ok: boolean;
100
- no: number;
101
- }>;
102
- /** 角色库:AI 提炼 / 采纳 / 更新 / 删除。 */
103
- imageTest(req: import('../protocol.ts').ImageTestRequest): Promise<import('../protocol.ts').ImageTestResponse>;
104
- /** 对选中的提供商/模型发一次最小真实调用,验证连通性。 */
105
- llmTest(provider: string, model: string): Promise<LlmTestResponse>;
106
- /** 添加模型:厂商直填 key,或自定义 OpenAI 兼容路由(写 DSH 凭据 + 注册路由)。 */
107
- addModel(req: AddModelRequest): Promise<AddModelResponse>;
108
- /** 运行时厂商目录(DSH pi-ai 可配置提供方 + 内置适配器)。 */
109
- llmVendors(): Promise<LlmVendorsResponse>;
110
- /** 查询某个 provider 当前可用的模型(添加成功后可即时刷新)。 */
111
- llmModels(provider: string): Promise<LlmModelsResponse>;
112
- /** 已注册的提供方路由列表(提供方管理卡片)。 */
113
- llmProviders(): Promise<LlmProvidersResponse>;
114
- /** 移除一个提供方(unset key + 移除 llm-pi-ai 路由)。 */
115
- removeProvider(req: RemoveProviderRequest): Promise<RemoveProviderResponse>;
116
- roles(req: import('../protocol.ts').RolesRequest): Promise<import('../protocol.ts').RolesResponse>;
117
- /** 漫剧角色库:从分镜提名 / 建卡 / 更新 / 删除 / 形象锚点 / 精修提示词。 */
118
- mangaRoles(req: import('../protocol.ts').MangaRolesRequest): Promise<import('../protocol.ts').MangaRolesResponse>;
119
- /** 导出「即梦素材包」落盘到资产库 manga-assets/素材包/。 */
120
- exportPackage(chapterNo: number, title: string, markdown: string): Promise<{
121
- ok: boolean;
122
- file: string;
123
- }>;
124
- /** 场景库:AI 提炼 / 采纳 / 更新 / 删除 / 图集。 */
125
- scenes(req: import('../protocol.ts').ScenesRequest): Promise<import('../protocol.ts').ScenesResponse>;
126
- /** 视觉世界观规则:提炼 / 保存。 */
127
- visualRules(req: import('../protocol.ts').VisualRulesRequest): Promise<import('../protocol.ts').VisualRulesResponse>;
128
- /** 道具库:从已写章节提炼常驻道具 / 保存清单。 */
129
- mangaProps(req: import('../protocol.ts').MangaPropsRequest): Promise<import('../protocol.ts').MangaPropsResponse>;
130
- /** 小说简介:AI 生成/补全(partial 留空 = 全量),或手动保存。 */
131
- blurb(action: 'generate' | 'save', text?: string, partial?: string): Promise<{
132
- blurb: string;
133
- }>;
134
- /** 封面:读取(dataUrl;dir 指定某本书的输出目录,省略为当前书)。 */
135
- coverGet(dir?: string): Promise<import('../protocol.ts').CoverResponse>;
136
- /** 封面:上传(base64 data URL)或移除。 */
137
- coverPost(action: 'upload' | 'remove', dataUrl?: string): Promise<{
138
- ok: boolean;
139
- coverPath?: string | null;
140
- }>;
141
- /** 重命名当前书(同步项目与书架条目)。 */
142
- rename(bookName: string): Promise<{
143
- bookName: string;
144
- }>;
145
- /** 大世界:AI 提炼(generate)或手动保存(save)。 */
146
- world(action: 'generate' | 'save', world?: import('../protocol.ts').WorldState): Promise<{
147
- world: import('../protocol.ts').WorldState;
148
- }>;
149
- /** 切换当前书。 */
150
- bookActivate(id: string): Promise<import('../protocol.ts').BookshelfSnapshot>;
151
- /** 移除书架条目。 */
152
- bookRemove(id: string): Promise<import('../protocol.ts').BookshelfSnapshot>;
153
- /** 导入已有项目目录(Mode A):校验 novel-project.json,登记/激活书架。 */
154
- bookImportDir(outputDir: string): Promise<import('../protocol.ts').BookImportDirResponse>;
155
- /** 导入 txt/md 全本(Mode B):服务器本地文件路径模式。 */
156
- bookImportText(filePath: string, outputDir?: string): Promise<import('../protocol.ts').BookImportTextResponse>;
157
- /** 拆章预览(浏览器上传全文,不落盘):返回识别到的章节与跳过清单。 */
158
- bookImportTextPreview(text: string, fileName?: string): Promise<import('../protocol.ts').BookImportTextPreviewResponse>;
159
- /** 导入 txt/md 全本(Mode B):浏览器上传全文内容模式。 */
160
- bookImportTextContent(text: string, fileName: string, outputDir?: string): Promise<import('../protocol.ts').BookImportTextResponse>;
161
- /** 生产单:启动批量生产(区间或新增 N 章;计划不足自动补)。 */
162
- runStart(req: import('../protocol.ts').RunStartRequest): Promise<import('../protocol.ts').RunState>;
163
- /** 生产单控制:pause / resume / stop。 */
164
- runControl(action: 'pause' | 'resume' | 'stop'): Promise<import('../protocol.ts').RunState | null>;
165
- /** 生产单状态(无生产单返回 null)。 */
166
- runStatus(): Promise<import('../protocol.ts').RunState | null>;
167
- /** Get project writing assets + built-in libraries. */
168
- assets(): Promise<AssetsResponse>;
169
- /** Patch project writing assets. */
170
- patchAssets(patch: AssetsPatch): Promise<AssetsResponse>;
171
- /** Extract a style asset from sample text. */
172
- styleEngine(req: StyleEngineRequest): Promise<{
173
- styleAsset: StyleAsset;
174
- }>;
175
- /**
176
- * Consume an NDJSON job stream (generate / rewrite / polish).
177
- * @param path - the route to POST to.
178
- * @param payload - the JSON body.
179
- * @param onFrame - receives every frame as it lands.
180
- */
181
- private streamJob;
182
- /** Generate one chapter. */
183
- generate(chapterNo: number, skipReview: boolean, onFrame: (frame: JobFrame) => void): Promise<void>;
184
- /** Rewrite one chapter (whole-chapter, or local when `target` is given). */
185
- rewrite(chapterNo: number, instructions: string, target: string, onFrame: (frame: JobFrame) => void): Promise<void>;
186
- /** Polish (de-AI-ify) one chapter. */
187
- polish(chapterNo: number, onFrame: (frame: JobFrame) => void): Promise<void>;
188
- /** 采纳待确认草稿(润色/重写产物),覆盖正文文件。返回采纳后的新正文(markdown)。
189
- * 可携带审查报告(沿用结论定状态:通过 → approved)。 */
190
- draftApply(chapterNo: number, report?: import('../protocol.ts').ReviewReport): Promise<{
191
- ok: boolean;
192
- chars: number;
193
- file: string;
194
- markdown: string;
195
- }>;
196
- /** 放弃待确认草稿,保留原稿。 */
197
- draftDiscard(chapterNo: number): Promise<{
198
- ok: boolean;
199
- }>;
200
- /** Run one assistant turn (NDJSON stream). */
201
- assistant(message: string, onFrame: (frame: import('../protocol.ts').AssistantFrame) => void): Promise<void>;
202
- /** Load the persisted assistant conversation. */
203
- assistantHistory(): Promise<import('../protocol.ts').AssistantMessage[]>;
204
- /** 清空助手对话记录。 */
205
- assistantClear(): Promise<{
206
- ok: boolean;
207
- }>;
208
- /** 作者资产库/总数据:读取跨书可复用资产。 */
209
- authorAssets(): Promise<import('../protocol.ts').AuthorAssetsResponse>;
210
- /** 作者资产库:新增/更新一条资产(upsert by id)。 */
211
- authorAssetsUpsert(asset: import('../protocol.ts').AuthorStyleAsset): Promise<import('../protocol.ts').AuthorAssetsResponse>;
212
- /** 作者资产库:删除一条资产。 */
213
- authorAssetsRemove(id: string): Promise<import('../protocol.ts').AuthorAssetsResponse>;
214
- /** 作者资产库:导入默认(书架书的写作资产/角色 + 内置全局库)批量沉淀。 */
215
- authorAssetsImportDefault(): Promise<import('../protocol.ts').AuthorAssetsResponse>;
216
- /** 改编模式 P0:上传全文 → 原文设定卡片 / 可改范围矩阵。 */
217
- adaptAnalyze(text: string, filePath?: string): Promise<import('../protocol.ts').AdaptAnalyzeResponse>;
218
- /** 改编模式 P1:确认要改的维度 → 生成映射表/改编规则/联动影响清单。 */
219
- adaptPropose(req: import('../protocol.ts').AdaptProposeRequest): Promise<import('../protocol.ts').AdaptProposeResponse>;
220
- /** 改编模式 P2:执行术语替换(全局替换 + 命中统计 + 改编文本预览)。 */
221
- adaptExecute(req: import('../protocol.ts').AdaptExecuteRequest): Promise<import('../protocol.ts').AdaptExecuteResponse>;
222
- /** 改编模式 P3:保存改编全文为新书(原书保留,登记书架)。 */
223
- adaptSave(req: import('../protocol.ts').AdaptSaveRequest): Promise<import('../protocol.ts').AdaptSaveResponse>;
224
- /** 改编模式 P4:从源全文 + 编辑后方案提炼新书资料并保存为「待写新书」。 */
225
- adaptMaterialize(req: import('../protocol.ts').AdaptMaterializeRequest): Promise<import('../protocol.ts').AdaptMaterializeResponse>;
226
- /** 改编模式:保存预览/微调后的新书资料为新书(原书保留,登记书架)。 */
227
- adaptMaterializeSave(req: AdaptMaterializeSaveRequest): Promise<AdaptMaterializeSaveResponse>;
228
- /** 改编模式:rewrite 逐章重写(NDJSON 流式进度,支持分段 startNo/endNo)。 */
229
- adaptRewriteStream(req: AdaptExecuteRequest, onFrame: (frame: AdaptRewriteFrame) => void): Promise<void>;
230
- /** 主题自定义背景:上传图片,服务端存盘并返回可访问 URL。 */
231
- themeBackgroundUpload(dataUrl: string): Promise<{
232
- url: string;
233
- }>;
234
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * Browser-side docx outline extraction: a .docx is a zip whose
3
- * word/document.xml holds the body text in <w:t> runs inside <w:p> paragraphs.
4
- * Uses fflate (inlined into the client bundle) so the user can pick or drag a
5
- * docx without any server upload.
6
- *
7
- * Import from 'fflate/browser' (not 'fflate'): the default entry resolves to
8
- * the Node build (esm/index.mjs), which calls module.createRequire() for the
9
- * optional worker_threads path — inlining that into the browser bundle leaves
10
- * a bare require("module") the client-modules table cannot answer.
11
- */
12
- /** Extract plain text from a docx buffer: one line per <w:p> paragraph. */
13
- export declare function extractDocxTextFromBuffer(buffer: ArrayBuffer | Uint8Array): string;
14
- /** Read a File as ArrayBuffer. */
15
- export declare function readFileAsArrayBuffer(file: File): Promise<ArrayBuffer>;
@@ -1,14 +0,0 @@
1
- /**
2
- * Browser-half entry for the dsh-novel-forge plugin — runs inside the dsh web
3
- * GUI. Registers the sidebar entry row and the workbench panel. DOM mounting
4
- * problems are logged, never thrown — the web shell fails the whole boot when
5
- * a plugin apply throws.
6
- */
7
- import type { Context as ClientContext } from '@deepseek-ai/cordis';
8
- /** Required services (fiber inject waiting). */
9
- export declare const inject: string[];
10
- /**
11
- * Mount the novel-forge workbench.
12
- * @param ctx - client root context.
13
- */
14
- export declare function apply(ctx: ClientContext): void;
@@ -1,212 +0,0 @@
1
- /**
2
- * dsh-novel-forge — locale dictionaries (zh / en).
3
- */
4
- /** zh dictionary. */
5
- export declare const zh: {
6
- readonly 'entry.label': "小说工坊";
7
- readonly 'entry.tooltip': "AI 编译小说工作台:总纲 → 道藏 → 卷计划 → 章节计划 → 逐章生成+审稿";
8
- readonly 'panel.title': "小说工坊";
9
- readonly 'common.close': "关闭";
10
- readonly 'common.loading': "加载中…";
11
- readonly 'common.save': "保存";
12
- readonly 'common.error': "错误";
13
- readonly 'common.success': "成功";
14
- readonly 'common.generating': "生成中…";
15
- readonly 'common.chars': "字";
16
- readonly 'tab.workflow': "工作台";
17
- readonly 'tab.overview': "总纲";
18
- readonly 'tab.plan': "章节";
19
- readonly 'tab.bible': "道藏";
20
- readonly 'tab.foreshadow': "暗线";
21
- readonly 'tab.assistant': "AI 助手";
22
- readonly 'tab.settings': "设置";
23
- readonly 'workflow.title': "创作工作台";
24
- readonly 'workflow.step1': "① 加载总纲";
25
- readonly 'workflow.step2': "② 提炼道藏";
26
- readonly 'workflow.step3': "③ 规划卷";
27
- readonly 'workflow.step4': "④ 生成章节计划";
28
- readonly 'workflow.step5': "⑤ 逐章写作 + AI 审稿";
29
- readonly 'workflow.step6': "⑥ 润色 / 导出";
30
- readonly 'workflow.loadOutline': "读取总纲";
31
- readonly 'workflow.genBible': "提炼道藏";
32
- readonly 'workflow.genVolumes': "生成卷计划";
33
- readonly 'workflow.genPlan': "生成章节计划";
34
- readonly 'workflow.done': "已完成";
35
- readonly 'workflow.todo': "待办";
36
- readonly 'workflow.bibleDone': "道藏已生成({n} 条规则 / {c} 个人物 / {r} 条红线)";
37
- readonly 'workflow.volumesDone': "卷计划已生成({n} 卷)";
38
- readonly 'workflow.planDone': "章节计划已生成({n} 章)";
39
- readonly 'workflow.progress': "进度:总纲 ✓ · 道藏 {bible} · 卷 {volumes} · 计划 {plan} · 已完成 {done}/{total} 章";
40
- readonly 'overview.loadDocx': "从 docx 读取总纲";
41
- readonly 'overview.loadDocxDefault': "读取默认总纲";
42
- readonly 'overview.loadingOutline': "正在解析 docx…";
43
- readonly 'overview.outlineHint': "总纲文本(可编辑)";
44
- readonly 'overview.outlineChars': "总纲字数";
45
- readonly 'overview.saveOutline': "保存总纲";
46
- readonly 'overview.saved': "总纲已保存";
47
- readonly 'overview.bookName': "书名";
48
- readonly 'overview.loadCustom': "指定 docx 路径";
49
- readonly 'overview.loadCustomHint': "绝对路径,留空使用默认";
50
- readonly 'plan.generate': "生成章节计划";
51
- readonly 'plan.generateHint': "章节数量";
52
- readonly 'plan.count': "章";
53
- readonly 'plan.empty': "暂无章节计划,请先生成";
54
- readonly 'plan.chapter': "章";
55
- readonly 'plan.pending': "待生成";
56
- readonly 'plan.generating': "生成中";
57
- readonly 'plan.written': "待审稿";
58
- readonly 'plan.reviewing': "审稿中";
59
- readonly 'plan.approved': "已通过";
60
- readonly 'plan.rejected': "待修订";
61
- readonly 'plan.error': "失败";
62
- readonly 'plan.write': "生成本章";
63
- readonly 'plan.rewrite': "修订";
64
- readonly 'plan.review': "审稿";
65
- readonly 'plan.polish': "去AI味";
66
- readonly 'plan.writeAll': "批量生成全部";
67
- readonly 'plan.writeAllPending': "批量生成剩余";
68
- readonly 'plan.generated': "已生成";
69
- readonly 'plan.progress': "进度";
70
- readonly 'plan.beats': "剧情要点";
71
- readonly 'plan.reviewReport': "审稿报告";
72
- readonly 'plan.reviewScore': "评分";
73
- readonly 'plan.reviewVerdict': "总评";
74
- readonly 'plan.reviewIssues': "问题清单";
75
- readonly 'plan.reviewPass': "通过";
76
- readonly 'plan.reviewFail': "未通过";
77
- readonly 'plan.approve': "手动通过";
78
- readonly 'plan.summary': "章节摘要";
79
- readonly 'plan.volumes': "卷";
80
- readonly 'plan.noVolume': "未分卷";
81
- readonly 'bible.title': "道藏";
82
- readonly 'bible.gen': "AI 提炼道藏";
83
- readonly 'bible.genre': "题材基调";
84
- readonly 'bible.worldRules': "世界规则";
85
- readonly 'bible.characters': "人物志";
86
- readonly 'bible.redLines': "写作红线";
87
- readonly 'bible.style': "风格要求";
88
- readonly 'bible.none': "尚未生成道藏。生成后写作会严格遵守人设与金手指规则,审稿也会按红线检查。";
89
- readonly 'foreshadow.title': "暗线管理";
90
- readonly 'foreshadow.suggest': "AI 建议暗线";
91
- readonly 'foreshadow.none': "暂无暗线";
92
- readonly 'foreshadow.status': "状态";
93
- readonly 'foreshadow.planned': "计划中";
94
- readonly 'foreshadow.planted': "已埋设";
95
- readonly 'foreshadow.progressing': "推进中";
96
- readonly 'foreshadow.resolved': "已回收";
97
- readonly 'foreshadow.abandoned': "已放弃";
98
- readonly 'foreshadow.target': "预计回收";
99
- readonly 'foreshadow.plantedAt': "埋设于";
100
- readonly 'foreshadow.setPlanted': "标记已埋设";
101
- readonly 'foreshadow.setResolved': "标记已回收";
102
- readonly 'tab.facts': "编年录";
103
- readonly 'tab.plotlines': "剧情线";
104
- readonly 'plotlines.hint': "主线/支线/人物线/悬念线的推进管理:章节生成时会注入未完结的线,要求每章至少推进一条;关联章节记录推进节点。";
105
- readonly 'plotlines.empty': "还没有剧情线——长篇小说建议先建主线与几条支线。";
106
- readonly 'plotlines.new': "+ 新建剧情线";
107
- readonly 'plotlines.name': "线名";
108
- readonly 'plotlines.kind': "类型";
109
- readonly 'plotlines.kindMain': "主线";
110
- readonly 'plotlines.kindBranch': "支线";
111
- readonly 'plotlines.kindCharacter': "人物线";
112
- readonly 'plotlines.kindMystery': "悬念线";
113
- readonly 'plotlines.goal': "目标/终点";
114
- readonly 'plotlines.progress': "当前进度";
115
- readonly 'plotlines.status': "状态";
116
- readonly 'plotlines.statusActive': "推进中";
117
- readonly 'plotlines.statusPaused': "暂停";
118
- readonly 'plotlines.statusResolved': "已完结";
119
- readonly 'plotlines.statusAbandoned': "已废弃";
120
- readonly 'plotlines.save': "保存";
121
- readonly 'plotlines.cancel': "取消";
122
- readonly 'plotlines.edit': "编辑";
123
- readonly 'plotlines.remove': "删除";
124
- readonly 'plotlines.linkChapter': "关联本章";
125
- readonly 'plotlines.chapters': "已关联";
126
- readonly 'plotlines.workflowTitle': "剧情线进度";
127
- readonly 'plotlines.workflowEmpty': "未建剧情线(去「剧情线」页创建)";
128
- readonly 'sensitive.title': "敏感词检查";
129
- readonly 'sensitive.scanAll': "🔞 全书敏感词检查";
130
- readonly 'sensitive.hint': "内置违禁词库硬匹配(政治/擦边/暴力/辱骂/广告/其他),发布前建议检查;只做提示,是否修改由你判断。";
131
- readonly 'sensitive.clean': "✅ 未命中任何违禁词(扫描 {n} 章)";
132
- readonly 'sensitive.hits': "命中 {n} 处({chapters} 章受影响)";
133
- readonly 'sensitive.goFix': "去修订";
134
- readonly 'sensitive.fixPrefill': "请删除或替换正文中的违禁表达「{word}」(类别:{category}),用含蓄/间接的写法替代。";
135
- readonly 'facts.title': "编年录 / 时间线({n} 条)";
136
- readonly 'facts.hint': "每章生成后自动抽取「已确立事实」(人物状态/境界资源/关系变化/伏笔落地),最近 20 条注入后续章节生成,保证长期一致。";
137
- readonly 'facts.backfill': "回填历史章节事实";
138
- readonly 'facts.backfilled': "已从历史章节回填 {n} 条事实";
139
- readonly 'settings.title': "设置";
140
- readonly 'settings.outlinePath': "默认大纲路径";
141
- readonly 'settings.outputDir': "输出目录";
142
- readonly 'settings.provider': "模型提供商";
143
- readonly 'settings.model': "模型";
144
- readonly 'settings.modelCustom': "自定义…";
145
- readonly 'settings.customProvider': "自定义提供商…";
146
- readonly 'settings.edit': "编辑";
147
- readonly 'settings.delete': "删除";
148
- readonly 'settings.modelCustomPlaceholder': "输入任意模型 id";
149
- readonly 'settings.savedModels': "我的模型";
150
- readonly 'settings.modelCards': "模型卡片(内置 + 已添加)";
151
- readonly 'settings.savedModelName': "名称";
152
- readonly 'settings.addModel': "添加模型";
153
- readonly 'settings.catalogRefresh': "刷新厂商";
154
- readonly 'settings.refreshModels': "刷新模型";
155
- readonly 'settings.savedModelsHint': "手动添加常用模型(provider + 模型 id),点击即可切换当前模型;厂商模式会写入 DSH 凭据并注册路由。";
156
- readonly 'settings.testConnection': "测试连通";
157
- readonly 'settings.testRunning': "测试中";
158
- readonly 'settings.testOk': "连通";
159
- readonly 'settings.testFail': "失败";
160
- readonly 'settings.testHint': "真实发送一次最小调用(约几十 token),验证 Key / 端点 / 模型可用。";
161
- readonly 'settings.reasoningSection': "推理强度";
162
- readonly 'settings.reasoningEffort': "写作类任务思考强度 (reasoningEffort)";
163
- readonly 'settings.reasoningHint': "章节生成/润色/重写/审稿等写作任务使用;关掉更省更快。";
164
- readonly 'settings.analysisReasoning': "分析类任务思考强度(提炼/拆书/反推大纲)";
165
- readonly 'settings.analysisReasoningHint': "角色/场景/道藏提炼、拆书、反推大纲等一次性分析任务默认 low,保证质量,不受上面写作档位影响。";
166
- readonly 'settings.reasoning.off': "off · 关闭思考(推荐日常写文)";
167
- readonly 'settings.reasoning.low': "low · 低思考";
168
- readonly 'settings.reasoning.high': "high · 高思考";
169
- readonly 'settings.reasoning.max': "max · 最高思考(质检/推演)";
170
- readonly 'settings.theme': "主题";
171
- readonly 'settings.themeLiquid': "iOS 液态玻璃(绿)";
172
- readonly 'settings.themeNeumorph': "新拟物(双阴影)";
173
- readonly 'settings.themeHint': "存于浏览器本地,即时生效";
174
- readonly 'settings.chapterChars': "每章目标字数";
175
- readonly 'settings.maxTokens': "单章最大输出 tokens";
176
- readonly 'settings.reviewPassScore': "审稿通过分数(0-100)";
177
- readonly 'settings.editorFontSize': "编辑器字号(仅编辑页显示)";
178
- readonly 'settings.editorFontSizeHint': "存于浏览器本地,不影响其他设备";
179
- readonly 'settings.autoReview': "生成后自动审稿";
180
- readonly 'settings.autoAuthorReview': "生成后自动作者复盘";
181
- readonly 'settings.autoAuthorReviewHint': "复盘钩子兑现/结尾钩子/剧情线推进/连续性/节奏趋势,每章约 2000 token";
182
- readonly 'settings.autoReviewAfterRevise': "修订后自动审查";
183
- readonly 'settings.autoReviewAfterReviseHint': "按意见修订/润色产出草稿后自动附带一次 AI 审查,直接显示新稿评分与剩余问题(每章约 2-3k token,可关)";
184
- readonly 'settings.save': "保存设置";
185
- readonly 'settings.saved': "设置已保存";
186
- readonly 'settings.openFolder': "打开输出文件夹";
187
- readonly 'settings.export': "导出";
188
- readonly 'settings.exportTxt': "导出 TXT";
189
- readonly 'settings.exportMd': "导出 Markdown";
190
- readonly 'settings.exported': "已导出:{file}({chars} 字,{chapters} 章)";
191
- readonly 'progress.generating': "正在生成第 {no} 章《{title}》…";
192
- readonly 'progress.done': "第 {no} 章完成({chars} 字)→ {file}";
193
- readonly 'progress.reviewed': "第 {no} 章审稿:{score} 分 — {verdict}";
194
- readonly 'progress.error': "第 {no} 章失败:{message}";
195
- readonly 'progress.rewriting': "正在修订第 {no} 章…";
196
- readonly 'progress.polishing': "正在润色第 {no} 章…";
197
- readonly 'progress.empty': "生成/审稿进度将显示在这里";
198
- readonly 'assistant.hint': "和 AI 编辑讨论剧情、人设、暗线;达成一致后可让它直接修改总纲、道藏、章节内容。";
199
- readonly 'assistant.placeholder': "例如:我想让第 2 章结尾加一个悬念——墟境里传来爷爷的声音…";
200
- readonly 'assistant.send': "发送";
201
- readonly 'assistant.toolStart': "⚙ 执行操作:{name}…";
202
- readonly 'assistant.toolDone': "✓ {name} 完成:{detail}";
203
- readonly 'assistant.toolError': "✗ {name} 失败:{detail}";
204
- readonly 'assistant.empty': "还没有对话。和 AI 编辑聊聊剧情吧。";
205
- readonly 'status.projectNone': "输出目录中还没有项目。请先加载大纲。";
206
- readonly 'status.files': "已生成文件";
207
- readonly 'api.error': "请求失败";
208
- };
209
- /** en dictionary (fallback). */
210
- export declare const en: Record<string, string>;
211
- /** Keys type for the zh dictionary. */
212
- export type NovelKey = keyof typeof zh;
@@ -1,9 +0,0 @@
1
- import type { NovelApi } from './api.ts';
2
- import type { PanelController } from './panel/controller.ts';
3
- /** The injected panel container. */
4
- export declare const PANEL_VIEW_SELECTOR = "[data-dsh-novelforge-view]";
5
- /**
6
- * Mount the panel React tree into the center column and bind visibility to
7
- * the controller.
8
- */
9
- export declare function mountPanel(controller: PanelController, api: NovelApi): () => void;
@@ -1,5 +0,0 @@
1
- import type { NovelApi } from '../api.ts';
2
- export declare function AdaptModeView({ api, onOpenBook }: {
3
- api: NovelApi;
4
- onOpenBook?: (id: string) => void;
5
- }): any;
@@ -1,12 +0,0 @@
1
- import type { NovelApi } from '../api.ts';
2
- /** Props. */
3
- export interface AssetsTabProps {
4
- api: NovelApi;
5
- /** 初始子页(左侧导航直达对应资产分类)。 */
6
- initialTab?: AssetSubTab;
7
- }
8
- /** 写作资产子页签。 */
9
- type AssetSubTab = 'genre' | 'progression' | 'templates' | 'rules' | 'style';
10
- /** 写作资产页签。 */
11
- export declare function AssetsTab({ api, initialTab }: AssetsTabProps): any;
12
- export {};
@@ -1,7 +0,0 @@
1
- import type { NovelApi } from '../api.ts';
2
- /** Props. */
3
- export interface AssistantTabProps {
4
- api: NovelApi;
5
- }
6
- /** The assistant conversation tab. */
7
- export declare function AssistantTab({ api }: AssistantTabProps): any;
@@ -1,4 +0,0 @@
1
- import type { NovelApi } from '../api.ts';
2
- export declare function AuthorAssetsView({ api }: {
3
- api: NovelApi;
4
- }): any;
@@ -1,32 +0,0 @@
1
- import type { NovelApi } from '../api.ts';
2
- import type { BookshelfSnapshot } from '../../protocol.ts';
3
- import { type ProgressLine } from './ProgressConsole.tsx';
4
- export declare function AuthorHome({ api, shelf, onOpenBook, onReadBook, onAddBook, onImportBook, onOpenSettings, onTheme, onBackground, onOpacity, onEndfieldAccent, adaptEnabled, progress, busy, busyLabel, liveBar, onClearProgress }: {
5
- api: NovelApi;
6
- shelf: BookshelfSnapshot;
7
- onOpenBook: (id: string) => void;
8
- onReadBook: (id: string) => void;
9
- onAddBook: () => void;
10
- onImportBook: () => void;
11
- /** 兼容旧入口:首页设置现为独立设置页,此回调保留但不再使用。 */
12
- onOpenSettings?: () => void;
13
- /** 主题/模式/密度变化回调(供面板根容器实时生效)。 */
14
- onTheme?: (theme: 'liquid' | 'neumorph' | 'macos' | 'clay' | 'endfield', mode: 'system' | 'light' | 'dark', density: 'comfort' | 'compact' | 'spacious') => void;
15
- /** 自定义背景变化回调。 */
16
- onBackground?: (bg: string | undefined, blur: number) => void;
17
- /** 玻璃透明度变化回调。 */
18
- onOpacity?: (n: number) => void;
19
- /** 终末地强调色变化回调。 */
20
- onEndfieldAccent?: (accent: 'valley' | 'wuling') => void;
21
- /** 是否启用改编模式(默认 false=隐藏入口)。 */
22
- adaptEnabled?: boolean;
23
- /** AI 进度实时状态(与书内共享同一份)。 */
24
- progress?: ProgressLine[];
25
- busy?: boolean;
26
- busyLabel?: string;
27
- liveBar?: {
28
- text: string;
29
- ratio?: number;
30
- } | null;
31
- onClearProgress?: () => void;
32
- }): any;
@@ -1,11 +0,0 @@
1
- import type { NovelApi } from '../api.ts';
2
- import type { BookshelfSnapshot } from '../../protocol.ts';
3
- /** Props. */
4
- export interface BookshelfBarProps {
5
- api: NovelApi;
6
- shelf: BookshelfSnapshot;
7
- /** 刷新整个面板(切换书后重新拉状态)。 */
8
- onSwitch: () => void;
9
- }
10
- /** 书架条。 */
11
- export declare function BookshelfBar({ api, shelf, onSwitch }: BookshelfBarProps): any;
@@ -1,9 +0,0 @@
1
- import type { NovelApi } from '../api.ts';
2
- /** 开书向导页。 */
3
- export declare function CreateBookView({ api, onBack, onCreated, }: {
4
- api: NovelApi;
5
- /** 返回书架。 */
6
- onBack: () => void;
7
- /** 开书成功:进入新书工作台。 */
8
- onCreated: (id: string) => void;
9
- }): any;
@@ -1,22 +0,0 @@
1
- /**
2
- * 漫剧工作台·全流程步骤条(唯一导航,方案X):
3
- * ①创建方案 → ②一键生成 → ③分镜 → ④角色定妆 → ⑤场景底图 → ⑥导出使用。
4
- * 每个步骤对应一个独立页面主体;完成度自动判定(读 project 现有字段)。
5
- */
6
- import type { ProjectState } from '../../protocol.ts';
7
- /** 步骤 → 页面主体的一一对应目标。 */
8
- export type FlowTarget = 'plan' | 'rules' | 'skeleton' | 'table' | 'import' | 'makeup' | 'prompts' | 'scenes' | 'props' | 'export';
9
- export interface FlowStep {
10
- no: number;
11
- label: string;
12
- hint: string;
13
- done: boolean;
14
- target: FlowTarget;
15
- }
16
- /** 依据 project 数据计算 6 步完成度(与存储顺序无关,按生产顺序排列)。 */
17
- export declare function computeFlowSteps(project: ProjectState | null, exported?: boolean): FlowStep[];
18
- export declare function FlowGuide({ project, onNavigate, exported, }: {
19
- project: ProjectState | null;
20
- onNavigate: (target: FlowTarget) => void;
21
- exported?: boolean;
22
- }): any;
@@ -1,4 +0,0 @@
1
- import type { NovelApi } from '../api.ts';
2
- export declare function GlobalAssetLibraryView({ api }: {
3
- api: NovelApi;
4
- }): any;
@@ -1,7 +0,0 @@
1
- import type { NovelApi } from '../api.ts';
2
- export declare function ImportModal({ api, onClose, onImported, }: {
3
- api: NovelApi;
4
- onClose: () => void;
5
- /** 导入成功并已激活该书后回调(刷新书架)。 */
6
- onImported: () => void | Promise<void>;
7
- }): any;