* update yarn

* fix dep

* upgrade deps

* fix document config save

* fix #1293

* support long recording assessment

* fix bugsnag

* fix style

* fix #1288

* fix bugsnag config
This commit is contained in:
an-lee
2025-02-25 14:44:10 +08:00
committed by GitHub
parent 4218ea0ba4
commit f3b3902f2d
27 changed files with 3145 additions and 2351 deletions

View File

@@ -357,7 +357,7 @@ type EnjoyAppType = {
set: (key: string, value: any, ttl?: number) => Promise<void>;
delete: (key: string) => Promise<void>;
clear: () => Promise<void>;
writeFile: (filename: string, data: ArrayBuffer) => Promise<string>;
writeFile: (filename: string, data: Buffer<ArrayBuffer>) => Promise<string>;
};
transcriptions: {
findOrCreate: (params: any) => Promise<TranscriptionType>;

View File

@@ -7,6 +7,18 @@ declare module "foliate-js/view.js";
declare module "foliate-js/epub.js";
declare module "compromise-paragraphs";
declare module "segment" {
class Segment {
useDefault(): void;
loadDict(path: string): void;
doSegment(
text: string,
options: { stripPunctuation: boolean }
): Array<{ w: string }>;
}
export = Segment;
}
type SupportedLlmProviderType = "enjoyai" | "openai";
type LlmProviderType = {