eddyter 1.3.59 → 1.3.60
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/dist/api/ai/aiAgentService.d.ts +44 -0
- package/dist/assets/style.css +1 -1
- package/dist/babel-44680aef.js +7744 -0
- package/dist/components/TextEnhanceDialog/index.d.ts +1 -1
- package/dist/editorConfig.d.ts +1 -0
- package/dist/estree-a7dc9ac5.js +4647 -0
- package/dist/html-f2fcab26.js +2882 -0
- package/dist/{html2pdf.bundle-eacf777f.js → html2pdf.bundle-519d30c0.js} +1 -1
- package/dist/{html2pdf.bundle.min-d9ce156b.js → html2pdf.bundle.min-8451fd59.js} +1 -1
- package/dist/{index-1da728d1.js → index-8889e1ba.js} +4 -3
- package/dist/{index-940faa12.js → index-98d915c4.js} +4 -3
- package/dist/{index-25fd6b76.js → index-e3302f38.js} +14624 -14366
- package/dist/index.js +14 -13
- package/dist/markdown-48d2f5f1.js +3592 -0
- package/dist/plugins/AIChatPlugin.d.ts +1 -2
- package/dist/postcss-9ac167c3.js +5172 -0
- package/dist/standalone-2029bc8b.js +2467 -0
- package/dist/types.d.ts +2 -0
- package/dist/typescript-bd1bb88f.js +13632 -0
- package/package.json +4 -2
- package/dist/babel-2d5b260f.js +0 -7770
- package/dist/estree-28f5912a.js +0 -4920
- package/dist/html-3f297a3a.js +0 -3021
- package/dist/markdown-08edd93b.js +0 -3625
- package/dist/postcss-0e22bc25.js +0 -5187
- package/dist/standalone-83d5947a.js +0 -2728
- package/dist/typescript-0559ee85.js +0 -13660
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { LexicalEditor, RangeSelection } from '../../../node_modules/lexical';
|
|
2
|
+
export type AIProvider = "chatgpt" | "claude" | "grok" | "gemini" | "deepseek";
|
|
3
|
+
export type AIStatus = "idle" | "loading" | "success" | "error";
|
|
4
|
+
export interface AIAgentConfig {
|
|
5
|
+
editor: LexicalEditor;
|
|
6
|
+
query: string;
|
|
7
|
+
model: AIProvider;
|
|
8
|
+
apiKey: string;
|
|
9
|
+
type?: string;
|
|
10
|
+
savedSelection?: RangeSelection | null;
|
|
11
|
+
onStatusChange?: (status: AIStatus) => void;
|
|
12
|
+
onLoadingChange?: (isLoading: boolean) => void;
|
|
13
|
+
onStreamStart?: () => void;
|
|
14
|
+
onInputClear?: () => void;
|
|
15
|
+
onError?: (message: string) => void;
|
|
16
|
+
onSuccess?: () => void;
|
|
17
|
+
}
|
|
18
|
+
export interface AITransformConfig {
|
|
19
|
+
editor: LexicalEditor;
|
|
20
|
+
selectedText: string;
|
|
21
|
+
transformationType: string;
|
|
22
|
+
apiKey?: string;
|
|
23
|
+
savedSelection?: any;
|
|
24
|
+
secondaryPrompt?: string;
|
|
25
|
+
onSuccess?: (message: string) => void;
|
|
26
|
+
onError?: (message: string) => void;
|
|
27
|
+
onLoadingChange?: (isLoading: boolean) => void;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Simple AI transformation for text operations (grammar, simplify, etc.)
|
|
31
|
+
* Uses streaming for real-time display
|
|
32
|
+
*/
|
|
33
|
+
export declare function processAITransformation(config: AITransformConfig): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Complete AI agent that handles everything:
|
|
36
|
+
* - Real-time markdown streaming with proper rendering
|
|
37
|
+
* - Editor updates
|
|
38
|
+
* - Final HTML conversion with images/tables
|
|
39
|
+
* - State management
|
|
40
|
+
* - Error handling
|
|
41
|
+
*/
|
|
42
|
+
export declare function processAIRequest(config: AIAgentConfig & {
|
|
43
|
+
secondaryPrompt?: string;
|
|
44
|
+
}): Promise<void>;
|