@vtj/designer 0.18.27 → 0.19.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.
- package/dist/Editor-aD1U5H8b.js +4 -0
- package/dist/{index-BtJsaFJm.js → index-De2f2yWt.js} +12295 -10599
- package/dist/index.mjs +29 -28
- package/dist/style.css +1 -1
- package/package.json +8 -8
- package/types/components/hooks/index.d.ts +0 -2
- package/types/components/hooks/useOpenApi.d.ts +2 -0
- package/types/components/shared/binder.d.ts +4 -6
- package/types/components/widgets/agent/architect-plan.d.ts +23 -0
- package/types/components/widgets/agent/composables/useAgentApi.d.ts +37 -0
- package/types/components/widgets/agent/composables/useArchitectPlan.d.ts +7 -0
- package/types/components/widgets/agent/composables/useAuth.d.ts +7 -0
- package/types/components/widgets/agent/composables/useAutoScroll.d.ts +13 -0
- package/types/components/widgets/agent/composables/useDualAgent.d.ts +15 -0
- package/types/components/widgets/agent/composables/useEditorStep.d.ts +4 -0
- package/types/components/widgets/agent/composables/useFileRecognition.d.ts +46 -0
- package/types/components/widgets/agent/composables/useReplayChat.d.ts +5 -0
- package/types/components/widgets/agent/composables/useSSEStream.d.ts +7 -0
- package/types/components/widgets/agent/constants.d.ts +16 -0
- package/types/components/widgets/agent/conversation-round.d.ts +26 -0
- package/types/components/widgets/{ai → agent}/detail.d.ts +10 -9
- package/types/components/widgets/agent/editor-step.d.ts +22 -0
- package/types/components/widgets/agent/index.d.ts +21 -0
- package/types/components/widgets/{ai → agent}/invite-tip.d.ts +1 -1
- package/types/components/widgets/agent/message-input.d.ts +35 -0
- package/types/components/widgets/{ai → agent}/pay-tip.d.ts +4 -2
- package/types/components/widgets/agent/records.d.ts +18 -0
- package/types/components/widgets/{ai → agent}/stream-markdown.d.ts +2 -2
- package/types/components/widgets/agent/summary.d.ts +19 -0
- package/types/components/widgets/agent/types/agent.d.ts +346 -0
- package/types/components/widgets/agent/utils/approval.d.ts +10 -0
- package/types/components/widgets/agent/utils/breakpoint.d.ts +2 -0
- package/types/components/widgets/agent/utils/chat.d.ts +10 -0
- package/types/components/widgets/agent/utils/export.d.ts +4 -0
- package/types/components/widgets/agent/utils/filePrompt.d.ts +9 -0
- package/types/components/widgets/agent/utils/genId.d.ts +4 -0
- package/types/components/widgets/agent/utils/index.d.ts +6 -0
- package/types/components/widgets/agent/utils/json.d.ts +18 -0
- package/types/components/widgets/agent/utils/markdown.d.ts +1 -0
- package/types/components/widgets/agent/utils/messages.d.ts +185 -0
- package/types/components/widgets/agent/utils/outputParser.d.ts +24 -0
- package/types/components/widgets/agent/utils/plan.d.ts +7 -0
- package/types/components/widgets/agent/utils/request.d.ts +1 -0
- package/types/components/widgets/agent/utils/response.d.ts +25 -0
- package/types/components/widgets/agent/utils/resume.d.ts +7 -0
- package/types/components/widgets/agent/utils/summary.d.ts +2 -0
- package/types/components/widgets/agent/utils/toolExecutor.d.ts +23 -0
- package/types/components/widgets/apis/form.d.ts +2 -2
- package/types/components/widgets/apis/swagger.d.ts +1 -1
- package/types/components/widgets/devtools/index.d.ts +1 -1
- package/types/components/widgets/env/index.d.ts +1 -1
- package/types/components/widgets/i18n/index.d.ts +1 -1
- package/types/components/widgets/index.d.ts +20 -673
- package/types/components/widgets/scripts/group.d.ts +2 -2
- package/types/framework/ToolRegistry.d.ts +4 -0
- package/types/framework/engine.d.ts +2 -1
- package/types/framework/openapi.d.ts +4 -0
- package/types/framework/renderer.d.ts +1 -0
- package/types/framework/types.d.ts +2 -0
- package/types/utils.d.ts +2 -1
- package/types/version.d.ts +2 -2
- package/dist/Editor-BGOUCiNb.js +0 -4
- package/types/components/hooks/useAI.d.ts +0 -236
- package/types/components/hooks/useAgent.d.ts +0 -17
- package/types/components/widgets/ai/avatar.d.ts +0 -3
- package/types/components/widgets/ai/bubble.d.ts +0 -26
- package/types/components/widgets/ai/chat-input.d.ts +0 -29
- package/types/components/widgets/ai/image-input.d.ts +0 -155
- package/types/components/widgets/ai/index.d.ts +0 -677
- package/types/components/widgets/ai/json-input.d.ts +0 -342
- package/types/components/widgets/ai/new-topic.d.ts +0 -23
- package/types/components/widgets/ai/records.d.ts +0 -18
- /package/types/components/widgets/{ai → agent}/login-tip.d.ts +0 -0
- /package/types/components/widgets/{ai → agent}/model-dialog.d.ts +0 -0
|
@@ -57,9 +57,9 @@ declare function __VLS_template(): {
|
|
|
57
57
|
readonly props?: Record<string, any> | undefined;
|
|
58
58
|
readonly options?: FieldOption[] | FieldOptionsLoader | undefined;
|
|
59
59
|
readonly width?: string | number | undefined;
|
|
60
|
-
readonly label?: string | undefined;
|
|
61
60
|
readonly error?: string | undefined;
|
|
62
61
|
readonly size?: BaseSize | undefined;
|
|
62
|
+
readonly label?: string | undefined;
|
|
63
63
|
readonly disabled?: boolean | undefined;
|
|
64
64
|
readonly placeholder?: string | null | undefined;
|
|
65
65
|
readonly readonly?: boolean | undefined;
|
|
@@ -469,9 +469,9 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
|
469
469
|
readonly props?: Record<string, any> | undefined;
|
|
470
470
|
readonly options?: FieldOption[] | FieldOptionsLoader | undefined;
|
|
471
471
|
readonly width?: string | number | undefined;
|
|
472
|
-
readonly label?: string | undefined;
|
|
473
472
|
readonly error?: string | undefined;
|
|
474
473
|
readonly size?: BaseSize | undefined;
|
|
474
|
+
readonly label?: string | undefined;
|
|
475
475
|
readonly disabled?: boolean | undefined;
|
|
476
476
|
readonly placeholder?: string | null | undefined;
|
|
477
477
|
readonly readonly?: boolean | undefined;
|
|
@@ -207,8 +207,9 @@ export declare class Engine extends Base {
|
|
|
207
207
|
/**
|
|
208
208
|
* 应用AI生成的DSL
|
|
209
209
|
* @param dsl 区块Schema
|
|
210
|
+
* @returns 是否成功应用(项目被锁定或非本人锁定时返回 false)
|
|
210
211
|
*/
|
|
211
|
-
applyAI(dsl: BlockSchema): Promise<
|
|
212
|
+
applyAI(dsl: BlockSchema): Promise<boolean>;
|
|
212
213
|
/**
|
|
213
214
|
* 发布当前文件
|
|
214
215
|
*/
|
|
@@ -178,6 +178,10 @@ export declare abstract class OpenApi {
|
|
|
178
178
|
* 删除话题
|
|
179
179
|
*/
|
|
180
180
|
abstract removeTopic?: (topicId: string) => Promise<ResponseWrapper<boolean>>;
|
|
181
|
+
/** 更新话题(Agent) */
|
|
182
|
+
abstract updateTopic?: (topic: any) => Promise<ResponseWrapper<any>>;
|
|
183
|
+
/** 保存执行轨迹(Agent) */
|
|
184
|
+
abstract saveTrace?: (trace: any) => Promise<ResponseWrapper<any>>;
|
|
181
185
|
/**
|
|
182
186
|
* 获取热门话题
|
|
183
187
|
*/
|
|
@@ -16,6 +16,7 @@ export declare class Renderer {
|
|
|
16
16
|
private nodeChange;
|
|
17
17
|
private blockChange;
|
|
18
18
|
context: Context | null;
|
|
19
|
+
private loader;
|
|
19
20
|
private file?;
|
|
20
21
|
constructor(env: SimulatorEnv, service: Service, provider: Provider, report: Report, project?: ProjectModel | null, designer?: Designer | null);
|
|
21
22
|
private install;
|
|
@@ -222,5 +222,7 @@ export interface ToolConfig {
|
|
|
222
222
|
name: string;
|
|
223
223
|
description: string;
|
|
224
224
|
parameters: ToolParameter[];
|
|
225
|
+
/** 工具执行风险等级:'destructive' 表示高风险操作(如删除),未声明时由调用方按规则推断 */
|
|
226
|
+
risk?: 'write' | 'destructive';
|
|
225
227
|
createHandler: (context: ToolContext) => (...args: any[]) => Promise<any>;
|
|
226
228
|
}
|
package/types/utils.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { JSExpression, JSFunction } from '@vtj/core';
|
|
1
|
+
import { JSExpression, JSFunction, BlockComposable } from '@vtj/core';
|
|
2
2
|
import { LoadingOptions, MessageBoxData, NotificationHandle, LoadingParentElement, MessageHandler } from 'element-plus';
|
|
3
3
|
import { VNode, ComponentPublicInstance, ComponentOptionsBase, ComponentProvideOptions, Ref, RendererNode, RendererElement } from 'vue';
|
|
4
|
+
export declare function getComposableNames(composables?: BlockComposable[]): string[];
|
|
4
5
|
export declare function alert(message: string, options?: any): Promise< MessageBoxData>;
|
|
5
6
|
export declare function notify(message: string, title?: string): NotificationHandle;
|
|
6
7
|
export declare function loading(options?: LoadingOptions): {
|
package/types/version.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
3
3
|
* @name @vtj/designer
|
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
5
|
-
* @version 0.18.
|
|
5
|
+
* @version 0.18.29
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.18.
|
|
8
|
+
export declare const version = "0.18.29";
|
package/dist/Editor-BGOUCiNb.js
DELETED
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
import { Ref, ShallowReactive, ComputedRef } from 'vue';
|
|
2
|
-
import { BlockSchema } from '@vtj/core';
|
|
3
|
-
import { useOpenApi } from './useOpenApi';
|
|
4
|
-
import { AITopic, AIChat, DictOption, Settings, LLM } from '../../framework';
|
|
5
|
-
import { Engine, TopicType, TopicDataType } from '../..';
|
|
6
|
-
export type { AITopic, AIChat, Settings };
|
|
7
|
-
export type Dict = DictOption;
|
|
8
|
-
export type UseAIOptions = ReturnType<typeof useOpenApi>;
|
|
9
|
-
export interface AISendData {
|
|
10
|
-
model: string;
|
|
11
|
-
auto: boolean;
|
|
12
|
-
prompt: string;
|
|
13
|
-
toolCallId?: string;
|
|
14
|
-
llm?: LLM;
|
|
15
|
-
}
|
|
16
|
-
export interface AISendImageData {
|
|
17
|
-
model: string;
|
|
18
|
-
auto: boolean;
|
|
19
|
-
file: File;
|
|
20
|
-
llm?: LLM;
|
|
21
|
-
}
|
|
22
|
-
export interface AISendJsonData {
|
|
23
|
-
model: string;
|
|
24
|
-
auto: boolean;
|
|
25
|
-
file: File;
|
|
26
|
-
content: any;
|
|
27
|
-
llm?: LLM;
|
|
28
|
-
}
|
|
29
|
-
declare function getVueCode(content: string): string;
|
|
30
|
-
export declare function useAI(): {
|
|
31
|
-
engine: ShallowReactive<Engine>;
|
|
32
|
-
isLogined: () => Promise<boolean>;
|
|
33
|
-
isReady: Ref<boolean, boolean>;
|
|
34
|
-
init: () => Promise<void>;
|
|
35
|
-
loading: Ref<boolean, boolean>;
|
|
36
|
-
isNewChat: Ref<boolean, boolean>;
|
|
37
|
-
models: Ref<DictOption[], DictOption[]>;
|
|
38
|
-
onPostTopic: (data: AISendData) => Promise<any>;
|
|
39
|
-
topics: Ref<{
|
|
40
|
-
id: string;
|
|
41
|
-
appId: string;
|
|
42
|
-
createAt: string;
|
|
43
|
-
fileId: string;
|
|
44
|
-
isHot: boolean;
|
|
45
|
-
model: string;
|
|
46
|
-
platform: string;
|
|
47
|
-
projectId: string;
|
|
48
|
-
title: string;
|
|
49
|
-
prompt: string;
|
|
50
|
-
dependencies: string;
|
|
51
|
-
dsl: any;
|
|
52
|
-
image?: string | undefined;
|
|
53
|
-
json?: string | undefined;
|
|
54
|
-
type?: TopicType | undefined;
|
|
55
|
-
dataType?: TopicDataType | undefined;
|
|
56
|
-
}[], AITopic[] | {
|
|
57
|
-
id: string;
|
|
58
|
-
appId: string;
|
|
59
|
-
createAt: string;
|
|
60
|
-
fileId: string;
|
|
61
|
-
isHot: boolean;
|
|
62
|
-
model: string;
|
|
63
|
-
platform: string;
|
|
64
|
-
projectId: string;
|
|
65
|
-
title: string;
|
|
66
|
-
prompt: string;
|
|
67
|
-
dependencies: string;
|
|
68
|
-
dsl: any;
|
|
69
|
-
image?: string | undefined;
|
|
70
|
-
json?: string | undefined;
|
|
71
|
-
type?: TopicType | undefined;
|
|
72
|
-
dataType?: TopicDataType | undefined;
|
|
73
|
-
}[]>;
|
|
74
|
-
chats: Ref<{
|
|
75
|
-
id: string;
|
|
76
|
-
content: string;
|
|
77
|
-
createdAt: string;
|
|
78
|
-
dsl: any;
|
|
79
|
-
message: string;
|
|
80
|
-
source?: string | undefined;
|
|
81
|
-
prompt: string;
|
|
82
|
-
reasoning: string;
|
|
83
|
-
status: "Pending" | "Success" | "Failed" | "Error" | "Canceled";
|
|
84
|
-
tokens: number;
|
|
85
|
-
topicId: string;
|
|
86
|
-
userId: string;
|
|
87
|
-
userName: string;
|
|
88
|
-
thinking: number;
|
|
89
|
-
vue: string;
|
|
90
|
-
collapsed?: boolean | undefined;
|
|
91
|
-
image?: string | undefined;
|
|
92
|
-
json?: string | undefined;
|
|
93
|
-
type?: TopicType | undefined;
|
|
94
|
-
dataType?: TopicDataType | undefined;
|
|
95
|
-
toolCallId?: string | undefined;
|
|
96
|
-
toolContent?: string | undefined;
|
|
97
|
-
}[], AIChat[] | {
|
|
98
|
-
id: string;
|
|
99
|
-
content: string;
|
|
100
|
-
createdAt: string;
|
|
101
|
-
dsl: any;
|
|
102
|
-
message: string;
|
|
103
|
-
source?: string | undefined;
|
|
104
|
-
prompt: string;
|
|
105
|
-
reasoning: string;
|
|
106
|
-
status: "Pending" | "Success" | "Failed" | "Error" | "Canceled";
|
|
107
|
-
tokens: number;
|
|
108
|
-
topicId: string;
|
|
109
|
-
userId: string;
|
|
110
|
-
userName: string;
|
|
111
|
-
thinking: number;
|
|
112
|
-
vue: string;
|
|
113
|
-
collapsed?: boolean | undefined;
|
|
114
|
-
image?: string | undefined;
|
|
115
|
-
json?: string | undefined;
|
|
116
|
-
type?: TopicType | undefined;
|
|
117
|
-
dataType?: TopicDataType | undefined;
|
|
118
|
-
toolCallId?: string | undefined;
|
|
119
|
-
toolContent?: string | undefined;
|
|
120
|
-
}[]>;
|
|
121
|
-
currentTopic: Ref<{
|
|
122
|
-
id: string;
|
|
123
|
-
appId: string;
|
|
124
|
-
createAt: string;
|
|
125
|
-
fileId: string;
|
|
126
|
-
isHot: boolean;
|
|
127
|
-
model: string;
|
|
128
|
-
platform: string;
|
|
129
|
-
projectId: string;
|
|
130
|
-
title: string;
|
|
131
|
-
prompt: string;
|
|
132
|
-
dependencies: string;
|
|
133
|
-
dsl: any;
|
|
134
|
-
image?: string | undefined;
|
|
135
|
-
json?: string | undefined;
|
|
136
|
-
type?: TopicType | undefined;
|
|
137
|
-
dataType?: TopicDataType | undefined;
|
|
138
|
-
} | null, AITopic | {
|
|
139
|
-
id: string;
|
|
140
|
-
appId: string;
|
|
141
|
-
createAt: string;
|
|
142
|
-
fileId: string;
|
|
143
|
-
isHot: boolean;
|
|
144
|
-
model: string;
|
|
145
|
-
platform: string;
|
|
146
|
-
projectId: string;
|
|
147
|
-
title: string;
|
|
148
|
-
prompt: string;
|
|
149
|
-
dependencies: string;
|
|
150
|
-
dsl: any;
|
|
151
|
-
image?: string | undefined;
|
|
152
|
-
json?: string | undefined;
|
|
153
|
-
type?: TopicType | undefined;
|
|
154
|
-
dataType?: TopicDataType | undefined;
|
|
155
|
-
} | null>;
|
|
156
|
-
onPostChat: (data: AISendData) => Promise<any>;
|
|
157
|
-
loadChats: (topicId: string) => Promise<void>;
|
|
158
|
-
onRemoveTopic: (topic: AITopic) => Promise<void>;
|
|
159
|
-
getVueCode: typeof getVueCode;
|
|
160
|
-
vue2Dsl: (chat: AIChat) => Promise<BlockSchema | undefined>;
|
|
161
|
-
onRefresh: (chat: AIChat) => Promise<any> | undefined;
|
|
162
|
-
onApply: (chat: AIChat, manual?: boolean) => Promise<void>;
|
|
163
|
-
onView: (chat: AIChat) => Promise<void>;
|
|
164
|
-
listRef: Ref<any, any>;
|
|
165
|
-
panelRef: Ref<any, any>;
|
|
166
|
-
currentChat: Ref<{
|
|
167
|
-
id: string;
|
|
168
|
-
content: string;
|
|
169
|
-
createdAt: string;
|
|
170
|
-
dsl: any;
|
|
171
|
-
message: string;
|
|
172
|
-
source?: string | undefined;
|
|
173
|
-
prompt: string;
|
|
174
|
-
reasoning: string;
|
|
175
|
-
status: "Pending" | "Success" | "Failed" | "Error" | "Canceled";
|
|
176
|
-
tokens: number;
|
|
177
|
-
topicId: string;
|
|
178
|
-
userId: string;
|
|
179
|
-
userName: string;
|
|
180
|
-
thinking: number;
|
|
181
|
-
vue: string;
|
|
182
|
-
collapsed?: boolean | undefined;
|
|
183
|
-
image?: string | undefined;
|
|
184
|
-
json?: string | undefined;
|
|
185
|
-
type?: TopicType | undefined;
|
|
186
|
-
dataType?: TopicDataType | undefined;
|
|
187
|
-
toolCallId?: string | undefined;
|
|
188
|
-
toolContent?: string | undefined;
|
|
189
|
-
} | null, AIChat | {
|
|
190
|
-
id: string;
|
|
191
|
-
content: string;
|
|
192
|
-
createdAt: string;
|
|
193
|
-
dsl: any;
|
|
194
|
-
message: string;
|
|
195
|
-
source?: string | undefined;
|
|
196
|
-
prompt: string;
|
|
197
|
-
reasoning: string;
|
|
198
|
-
status: "Pending" | "Success" | "Failed" | "Error" | "Canceled";
|
|
199
|
-
tokens: number;
|
|
200
|
-
topicId: string;
|
|
201
|
-
userId: string;
|
|
202
|
-
userName: string;
|
|
203
|
-
thinking: number;
|
|
204
|
-
vue: string;
|
|
205
|
-
collapsed?: boolean | undefined;
|
|
206
|
-
image?: string | undefined;
|
|
207
|
-
json?: string | undefined;
|
|
208
|
-
type?: TopicType | undefined;
|
|
209
|
-
dataType?: TopicDataType | undefined;
|
|
210
|
-
toolCallId?: string | undefined;
|
|
211
|
-
toolContent?: string | undefined;
|
|
212
|
-
} | null>;
|
|
213
|
-
showDetail: Ref<boolean, boolean>;
|
|
214
|
-
scrollToTop: () => void;
|
|
215
|
-
scrollToBottom: () => void;
|
|
216
|
-
expandAll: () => void;
|
|
217
|
-
collapseAll: () => void;
|
|
218
|
-
isPending: ComputedRef<boolean>;
|
|
219
|
-
toggleHideCode: () => void;
|
|
220
|
-
isHideCode: Ref<boolean, boolean>;
|
|
221
|
-
onFix: (chat: AIChat) => void;
|
|
222
|
-
fillPromptInput: (content: string, isNew?: boolean) => void;
|
|
223
|
-
promptText: Ref<string, string>;
|
|
224
|
-
getHotTopics: (platform?: string) => Promise<any>;
|
|
225
|
-
settings: Ref<Settings | undefined, Settings | undefined>;
|
|
226
|
-
inputDisabled: ComputedRef<boolean>;
|
|
227
|
-
createOrder: () => Promise<any>;
|
|
228
|
-
cancelOrder: (id: string) => Promise<any>;
|
|
229
|
-
getOrder: (id: string) => Promise<any>;
|
|
230
|
-
updateChatDsl: (source: string) => Promise<any>;
|
|
231
|
-
getImage: (path?: string) => string | undefined;
|
|
232
|
-
onPostImageTopic: (data: AISendImageData) => Promise<any>;
|
|
233
|
-
onPostJsonTopic: (data: AISendJsonData) => Promise<any>;
|
|
234
|
-
onCancelChat: (chat: AIChat) => Promise<void>;
|
|
235
|
-
handleRecognitionFile: (file: File) => Promise<any>;
|
|
236
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { AIChat, AgentConfig, ParseResult, ToolCall } from '../../framework';
|
|
2
|
-
import { ShallowReactive } from 'vue';
|
|
3
|
-
import { Engine } from '../..';
|
|
4
|
-
import { BlockSchema } from '@vtj/core';
|
|
5
|
-
declare function isValidVueSFC(vueContent: string): boolean;
|
|
6
|
-
declare function isValidDiffFormat(diffContent: string): boolean;
|
|
7
|
-
export declare function useAgent(config: AgentConfig): {
|
|
8
|
-
engine: ShallowReactive<Engine>;
|
|
9
|
-
parseOutput: (content: string, flag?: string) => ParseResult | null;
|
|
10
|
-
callTool: (tool: ToolCall) => Promise<string>;
|
|
11
|
-
processOutput: (chat: AIChat) => Promise<AIChat>;
|
|
12
|
-
shouldNext: (chat: AIChat) => boolean;
|
|
13
|
-
createNextPrompt: (chat: AIChat) => string;
|
|
14
|
-
getCurrentVue: () => Promise<string>;
|
|
15
|
-
convertVueToDsl: (chat: AIChat) => Promise< BlockSchema | undefined>;
|
|
16
|
-
};
|
|
17
|
-
export { isValidVueSFC, isValidDiffFormat };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
3
|
-
export default _default;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { AIChat } from '../../hooks';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
export interface Props {
|
|
4
|
-
type: 'user' | 'ai' | 'system';
|
|
5
|
-
data: AIChat;
|
|
6
|
-
code?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
9
|
-
cancel: (...args: any[]) => void;
|
|
10
|
-
view: (...args: any[]) => void;
|
|
11
|
-
refresh: (...args: any[]) => void;
|
|
12
|
-
download: (...args: any[]) => void;
|
|
13
|
-
apply: (...args: any[]) => void;
|
|
14
|
-
fix: (...args: any[]) => void;
|
|
15
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
16
|
-
onCancel?: ((...args: any[]) => any) | undefined;
|
|
17
|
-
onView?: ((...args: any[]) => any) | undefined;
|
|
18
|
-
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
19
|
-
onDownload?: ((...args: any[]) => any) | undefined;
|
|
20
|
-
onApply?: ((...args: any[]) => any) | undefined;
|
|
21
|
-
onFix?: ((...args: any[]) => any) | undefined;
|
|
22
|
-
}>, {
|
|
23
|
-
type: "user" | "ai" | "system";
|
|
24
|
-
code: boolean;
|
|
25
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
26
|
-
export default _default;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Dict, AISendData } from '../../hooks';
|
|
2
|
-
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
export interface Props {
|
|
4
|
-
minRows?: number;
|
|
5
|
-
modelValue?: string;
|
|
6
|
-
models?: Dict[];
|
|
7
|
-
model?: string;
|
|
8
|
-
lockModel?: boolean;
|
|
9
|
-
loading?: boolean;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
recognitionFile?: (file: File) => Promise<any>;
|
|
12
|
-
}
|
|
13
|
-
declare const _default: DefineComponent<Props, {
|
|
14
|
-
currentModel: Ref<any, any>;
|
|
15
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
16
|
-
cancel: () => any;
|
|
17
|
-
"update:modelValue": (value: string) => any;
|
|
18
|
-
send: (value: AISendData) => any;
|
|
19
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
20
|
-
onCancel?: (() => any) | undefined;
|
|
21
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
22
|
-
onSend?: ((value: AISendData) => any) | undefined;
|
|
23
|
-
}>, {
|
|
24
|
-
loading: boolean;
|
|
25
|
-
minRows: number;
|
|
26
|
-
models: Dict[];
|
|
27
|
-
lockModel: boolean;
|
|
28
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
29
|
-
export default _default;
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import { UploadFile, UploadHooks, Crossorigin, UploadData, UploadRawFile, UploadUserFile, ListType, UploadRequestHandler, UploadProps, UploadStatus } from 'element-plus';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ComponentCustomProperties } from 'vue';
|
|
3
|
-
import { Awaitable } from 'element-plus/es/utils/typescript.mjs';
|
|
4
|
-
import { OnCleanup } from '@vue/reactivity';
|
|
5
|
-
export interface Props {
|
|
6
|
-
loading?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
9
|
-
send: (file: File, auto: boolean) => any;
|
|
10
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
11
|
-
onSend?: ((file: File, auto: boolean) => any) | undefined;
|
|
12
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
13
|
-
uploadRef: ({
|
|
14
|
-
$: ComponentInternalInstance;
|
|
15
|
-
$data: {};
|
|
16
|
-
$props: {
|
|
17
|
-
readonly beforeUpload?: UploadHooks["beforeUpload"] | undefined;
|
|
18
|
-
readonly beforeRemove?: UploadHooks["beforeRemove"] | undefined;
|
|
19
|
-
readonly onRemove?: UploadHooks["onRemove"] | undefined;
|
|
20
|
-
readonly onChange?: UploadHooks["onChange"] | undefined;
|
|
21
|
-
readonly onPreview?: UploadHooks["onPreview"] | undefined;
|
|
22
|
-
readonly onSuccess?: UploadHooks["onSuccess"] | undefined;
|
|
23
|
-
readonly onProgress?: UploadHooks["onProgress"] | undefined;
|
|
24
|
-
readonly onError?: UploadHooks["onError"] | undefined;
|
|
25
|
-
readonly onExceed?: UploadHooks["onExceed"] | undefined;
|
|
26
|
-
readonly crossorigin?: Crossorigin | undefined;
|
|
27
|
-
readonly action?: string | undefined;
|
|
28
|
-
readonly headers?: (Headers | Record<string, any>) | undefined;
|
|
29
|
-
readonly method?: string | undefined;
|
|
30
|
-
readonly data?: ( Awaitable<UploadData> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | undefined;
|
|
31
|
-
readonly multiple?: boolean | undefined;
|
|
32
|
-
readonly name?: string | undefined;
|
|
33
|
-
readonly drag?: boolean | undefined;
|
|
34
|
-
readonly withCredentials?: boolean | undefined;
|
|
35
|
-
readonly showFileList?: boolean | undefined;
|
|
36
|
-
readonly accept?: string | undefined;
|
|
37
|
-
readonly fileList?: UploadUserFile[] | undefined;
|
|
38
|
-
readonly autoUpload?: boolean | undefined;
|
|
39
|
-
readonly listType?: ListType | undefined;
|
|
40
|
-
readonly httpRequest?: UploadRequestHandler | undefined;
|
|
41
|
-
readonly disabled?: boolean | undefined;
|
|
42
|
-
readonly limit?: number | undefined;
|
|
43
|
-
readonly directory?: boolean | undefined;
|
|
44
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
45
|
-
$attrs: Attrs;
|
|
46
|
-
$refs: {
|
|
47
|
-
[x: string]: unknown;
|
|
48
|
-
};
|
|
49
|
-
$slots: Readonly<{
|
|
50
|
-
[name: string]: Slot<any> | undefined;
|
|
51
|
-
}>;
|
|
52
|
-
$root: ComponentPublicInstance | null;
|
|
53
|
-
$parent: ComponentPublicInstance | null;
|
|
54
|
-
$host: Element | null;
|
|
55
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
56
|
-
$el: any;
|
|
57
|
-
$options: ComponentOptionsBase<Readonly< UploadProps> & Readonly<{}>, {
|
|
58
|
-
abort: (file?: UploadFile) => void;
|
|
59
|
-
submit: () => void;
|
|
60
|
-
clearFiles: (states?: UploadStatus[]) => void;
|
|
61
|
-
handleStart: (rawFile: UploadRawFile) => void;
|
|
62
|
-
handleRemove: (file: UploadFile | UploadRawFile) => void;
|
|
63
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
64
|
-
onChange: UploadHooks["onChange"];
|
|
65
|
-
disabled: boolean;
|
|
66
|
-
name: string;
|
|
67
|
-
onError: UploadHooks["onError"];
|
|
68
|
-
onProgress: UploadHooks["onProgress"];
|
|
69
|
-
data: Awaitable<UploadData> | ((rawFile: UploadRawFile) => Awaitable<UploadData>);
|
|
70
|
-
beforeUpload: UploadHooks["beforeUpload"];
|
|
71
|
-
onRemove: UploadHooks["onRemove"];
|
|
72
|
-
onPreview: UploadHooks["onPreview"];
|
|
73
|
-
onSuccess: UploadHooks["onSuccess"];
|
|
74
|
-
onExceed: UploadHooks["onExceed"];
|
|
75
|
-
action: string;
|
|
76
|
-
method: string;
|
|
77
|
-
showFileList: boolean;
|
|
78
|
-
accept: string;
|
|
79
|
-
fileList: UploadUserFile[];
|
|
80
|
-
autoUpload: boolean;
|
|
81
|
-
listType: ListType;
|
|
82
|
-
httpRequest: UploadRequestHandler;
|
|
83
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
84
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
85
|
-
created?: (() => void) | (() => void)[];
|
|
86
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
87
|
-
mounted?: (() => void) | (() => void)[];
|
|
88
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
89
|
-
updated?: (() => void) | (() => void)[];
|
|
90
|
-
activated?: (() => void) | (() => void)[];
|
|
91
|
-
deactivated?: (() => void) | (() => void)[];
|
|
92
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
93
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
94
|
-
destroyed?: (() => void) | (() => void)[];
|
|
95
|
-
unmounted?: (() => void) | (() => void)[];
|
|
96
|
-
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
97
|
-
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
98
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
99
|
-
};
|
|
100
|
-
$forceUpdate: () => void;
|
|
101
|
-
$nextTick: nextTick;
|
|
102
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
103
|
-
} & Readonly<{
|
|
104
|
-
onChange: UploadHooks["onChange"];
|
|
105
|
-
disabled: boolean;
|
|
106
|
-
name: string;
|
|
107
|
-
onError: UploadHooks["onError"];
|
|
108
|
-
onProgress: UploadHooks["onProgress"];
|
|
109
|
-
data: Awaitable<UploadData> | ((rawFile: UploadRawFile) => Awaitable<UploadData>);
|
|
110
|
-
beforeUpload: UploadHooks["beforeUpload"];
|
|
111
|
-
onRemove: UploadHooks["onRemove"];
|
|
112
|
-
onPreview: UploadHooks["onPreview"];
|
|
113
|
-
onSuccess: UploadHooks["onSuccess"];
|
|
114
|
-
onExceed: UploadHooks["onExceed"];
|
|
115
|
-
action: string;
|
|
116
|
-
method: string;
|
|
117
|
-
showFileList: boolean;
|
|
118
|
-
accept: string;
|
|
119
|
-
fileList: UploadUserFile[];
|
|
120
|
-
autoUpload: boolean;
|
|
121
|
-
listType: ListType;
|
|
122
|
-
httpRequest: UploadRequestHandler;
|
|
123
|
-
}> & Omit<Readonly< UploadProps> & Readonly<{}>, "name" | "method" | "disabled" | "data" | "onChange" | "onError" | "onProgress" | "submit" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "abort" | "clearFiles" | "handleStart" | "handleRemove"> & {
|
|
124
|
-
abort: (file?: UploadFile) => void;
|
|
125
|
-
submit: () => void;
|
|
126
|
-
clearFiles: (states?: UploadStatus[]) => void;
|
|
127
|
-
handleStart: (rawFile: UploadRawFile) => void;
|
|
128
|
-
handleRemove: (file: UploadFile | UploadRawFile) => void;
|
|
129
|
-
} & {} & ComponentCustomProperties & {} & {
|
|
130
|
-
$slots: {
|
|
131
|
-
file?: (props: {
|
|
132
|
-
file: UploadFile;
|
|
133
|
-
index: number;
|
|
134
|
-
}) => any;
|
|
135
|
-
} & {
|
|
136
|
-
trigger?: (props: {}) => any;
|
|
137
|
-
} & {
|
|
138
|
-
default?: (props: {}) => any;
|
|
139
|
-
} & {
|
|
140
|
-
trigger?: (props: {}) => any;
|
|
141
|
-
} & {
|
|
142
|
-
default?: (props: {}) => any;
|
|
143
|
-
} & {
|
|
144
|
-
default?: (props: {}) => any;
|
|
145
|
-
} & {
|
|
146
|
-
tip?: (props: {}) => any;
|
|
147
|
-
} & {
|
|
148
|
-
file?: (props: {
|
|
149
|
-
file: UploadFile;
|
|
150
|
-
index: number;
|
|
151
|
-
}) => any;
|
|
152
|
-
};
|
|
153
|
-
}) | null;
|
|
154
|
-
}, HTMLDivElement>;
|
|
155
|
-
export default _default;
|