@vtj/designer 0.18.29 → 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.
Files changed (79) hide show
  1. package/dist/Editor-aD1U5H8b.js +4 -0
  2. package/dist/{css.worker-IZUCUZQ_.js → css.worker--aXH2aPB.js} +7 -7
  3. package/dist/editor.worker-Bi14wvgY.js +25 -0
  4. package/dist/html.worker-Ck_eCw9C.js +25 -0
  5. package/dist/{index-COfzXcr2.js → index-De2f2yWt.js} +13433 -14942
  6. package/dist/index.mjs +1 -1
  7. package/dist/json.worker-DyfNKmEG.js +25 -0
  8. package/dist/style.css +1 -1
  9. package/dist/{ts.worker-DaMuWc1v.js → ts.worker-BRcnI7fF.js} +63 -63
  10. package/package.json +8 -8
  11. package/types/components/hooks/index.d.ts +0 -2
  12. package/types/components/hooks/useOpenApi.d.ts +2 -0
  13. package/types/components/shared/binder.d.ts +2 -2
  14. package/types/components/widgets/agent/architect-plan.d.ts +23 -0
  15. package/types/components/widgets/agent/composables/useAgentApi.d.ts +37 -0
  16. package/types/components/widgets/agent/composables/useArchitectPlan.d.ts +7 -0
  17. package/types/components/widgets/agent/composables/useAuth.d.ts +7 -0
  18. package/types/components/widgets/agent/composables/useAutoScroll.d.ts +13 -0
  19. package/types/components/widgets/agent/composables/useDualAgent.d.ts +15 -0
  20. package/types/components/widgets/agent/composables/useEditorStep.d.ts +4 -0
  21. package/types/components/widgets/agent/composables/useFileRecognition.d.ts +46 -0
  22. package/types/components/widgets/agent/composables/useReplayChat.d.ts +5 -0
  23. package/types/components/widgets/agent/composables/useSSEStream.d.ts +7 -0
  24. package/types/components/widgets/agent/constants.d.ts +16 -0
  25. package/types/components/widgets/agent/conversation-round.d.ts +26 -0
  26. package/types/components/widgets/{ai → agent}/detail.d.ts +10 -9
  27. package/types/components/widgets/agent/editor-step.d.ts +22 -0
  28. package/types/components/widgets/agent/index.d.ts +21 -0
  29. package/types/components/widgets/{ai → agent}/invite-tip.d.ts +1 -1
  30. package/types/components/widgets/agent/message-input.d.ts +35 -0
  31. package/types/components/widgets/{ai → agent}/pay-tip.d.ts +4 -2
  32. package/types/components/widgets/agent/records.d.ts +18 -0
  33. package/types/components/widgets/{ai → agent}/stream-markdown.d.ts +2 -2
  34. package/types/components/widgets/agent/summary.d.ts +19 -0
  35. package/types/components/widgets/agent/types/agent.d.ts +346 -0
  36. package/types/components/widgets/agent/utils/approval.d.ts +10 -0
  37. package/types/components/widgets/agent/utils/breakpoint.d.ts +2 -0
  38. package/types/components/widgets/agent/utils/chat.d.ts +10 -0
  39. package/types/components/widgets/agent/utils/export.d.ts +4 -0
  40. package/types/components/widgets/agent/utils/filePrompt.d.ts +9 -0
  41. package/types/components/widgets/agent/utils/genId.d.ts +4 -0
  42. package/types/components/widgets/agent/utils/index.d.ts +6 -0
  43. package/types/components/widgets/agent/utils/json.d.ts +18 -0
  44. package/types/components/widgets/agent/utils/markdown.d.ts +1 -0
  45. package/types/components/widgets/agent/utils/messages.d.ts +185 -0
  46. package/types/components/widgets/agent/utils/outputParser.d.ts +24 -0
  47. package/types/components/widgets/agent/utils/plan.d.ts +7 -0
  48. package/types/components/widgets/agent/utils/request.d.ts +1 -0
  49. package/types/components/widgets/agent/utils/response.d.ts +25 -0
  50. package/types/components/widgets/agent/utils/resume.d.ts +7 -0
  51. package/types/components/widgets/agent/utils/summary.d.ts +2 -0
  52. package/types/components/widgets/agent/utils/toolExecutor.d.ts +23 -0
  53. package/types/components/widgets/apis/form.d.ts +2 -2
  54. package/types/components/widgets/apis/swagger.d.ts +1 -1
  55. package/types/components/widgets/devtools/index.d.ts +1 -1
  56. package/types/components/widgets/env/index.d.ts +1 -1
  57. package/types/components/widgets/i18n/index.d.ts +1 -1
  58. package/types/components/widgets/index.d.ts +20 -673
  59. package/types/framework/ToolRegistry.d.ts +4 -0
  60. package/types/framework/engine.d.ts +2 -1
  61. package/types/framework/openapi.d.ts +4 -0
  62. package/types/framework/types.d.ts +2 -0
  63. package/types/version.d.ts +2 -2
  64. package/dist/Editor-Ce3ItXi1.js +0 -4
  65. package/dist/editor.worker-BzVsh9i0.js +0 -25
  66. package/dist/html.worker-BXHIYJhq.js +0 -25
  67. package/dist/json.worker-3UoNfmKv.js +0 -25
  68. package/types/components/hooks/useAI.d.ts +0 -236
  69. package/types/components/hooks/useAgent.d.ts +0 -17
  70. package/types/components/widgets/ai/avatar.d.ts +0 -3
  71. package/types/components/widgets/ai/bubble.d.ts +0 -26
  72. package/types/components/widgets/ai/chat-input.d.ts +0 -29
  73. package/types/components/widgets/ai/image-input.d.ts +0 -155
  74. package/types/components/widgets/ai/index.d.ts +0 -677
  75. package/types/components/widgets/ai/json-input.d.ts +0 -342
  76. package/types/components/widgets/ai/new-topic.d.ts +0 -23
  77. package/types/components/widgets/ai/records.d.ts +0 -18
  78. /package/types/components/widgets/{ai → agent}/login-tip.d.ts +0 -0
  79. /package/types/components/widgets/{ai → agent}/model-dialog.d.ts +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/designer",
3
3
  "private": false,
4
- "version": "0.18.29",
4
+ "version": "0.19.0",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "低代码引擎",
@@ -29,18 +29,18 @@
29
29
  "marked": "~17.0.1",
30
30
  "mockjs": "~1.1.0",
31
31
  "monaco-editor": "~0.55.0",
32
- "@vtj/core": "~0.18.29",
33
- "@vtj/icons": "~0.18.29",
34
- "@vtj/ui": "~0.18.29",
35
- "@vtj/renderer": "~0.18.29",
36
- "@vtj/uni": "~0.18.29",
37
- "@vtj/utils": "~0.18.29"
32
+ "@vtj/icons": "~0.19.0",
33
+ "@vtj/core": "~0.19.0",
34
+ "@vtj/renderer": "~0.19.0",
35
+ "@vtj/ui": "~0.19.0",
36
+ "@vtj/utils": "~0.19.0",
37
+ "@vtj/uni": "~0.19.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/mockjs": "~1.0.10",
41
41
  "vue": "~3.5.37",
42
42
  "vue-router": "~4.6.0",
43
- "@vtj/cli": "~0.13.1"
43
+ "@vtj/cli": "~0.14.0"
44
44
  },
45
45
  "files": [
46
46
  "dist",
@@ -16,11 +16,9 @@ export * from './useDataSources';
16
16
  export * from './useOpenApi';
17
17
  export * from './useTemplates';
18
18
  export * from './useCheckVersion';
19
- export * from './useAI';
20
19
  export * from './useWorkspace';
21
20
  export * from './useSwagger';
22
21
  export * from './useI18n';
23
22
  export * from './useHotkeys';
24
23
  export * from './useDevtools';
25
- export * from './useAgent';
26
24
  export * from './useChunkTree';
@@ -23,6 +23,8 @@ export declare function useOpenApi(): {
23
23
  getTopics: (fileId: string) => Promise<any>;
24
24
  postChat: (dto: ChatDto) => Promise<any>;
25
25
  removeTopic: (topicId: string) => Promise<any>;
26
+ updateTopic: (topic: any) => Promise<any>;
27
+ saveTrace: (trace: any) => Promise<any>;
26
28
  chatCompletions: (topicId: string, chatId: string, callback?: (data: CompletionChunk | null, done?: boolean) => void, error?: (err: Error, cancel?: boolean) => void) => Promise<() => void>;
27
29
  saveChat: (chat: any) => Promise<any>;
28
30
  getHotTopics: (platform?: string) => Promise<any>;
@@ -306,7 +306,7 @@ declare function __VLS_template(): {
306
306
  onChange?: ((model: Record<string, any>) => any) | undefined;
307
307
  onReset?: (() => any) | undefined;
308
308
  onSubmit?: ((model: Record<string, any>) => any) | undefined;
309
- }>, "model" | "validate" | "footer" | "submit" | "formRef" | "tooltipMessage" | "inline" | "reset" | "submitText" | "resetText" | "enterSubmit" | "sticky" | "footerAlign" | "clearValidate"> & {
309
+ }>, "model" | "footer" | "submit" | "formRef" | "tooltipMessage" | "inline" | "reset" | "submitText" | "resetText" | "enterSubmit" | "sticky" | "footerAlign" | "validate" | "clearValidate"> & {
310
310
  formRef: any;
311
311
  model: FormModel;
312
312
  submit: () => Promise<void>;
@@ -623,7 +623,7 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
623
623
  onChange?: ((model: Record<string, any>) => any) | undefined;
624
624
  onReset?: (() => any) | undefined;
625
625
  onSubmit?: ((model: Record<string, any>) => any) | undefined;
626
- }>, "model" | "validate" | "footer" | "submit" | "formRef" | "tooltipMessage" | "inline" | "reset" | "submitText" | "resetText" | "enterSubmit" | "sticky" | "footerAlign" | "clearValidate"> & {
626
+ }>, "model" | "footer" | "submit" | "formRef" | "tooltipMessage" | "inline" | "reset" | "submitText" | "resetText" | "enterSubmit" | "sticky" | "footerAlign" | "validate" | "clearValidate"> & {
627
627
  formRef: any;
628
628
  model: FormModel;
629
629
  submit: () => Promise<void>;
@@ -0,0 +1,23 @@
1
+ import { PlanResult } from './types/agent';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ plan: PlanResult | null;
5
+ answer: string;
6
+ streamText: string;
7
+ reasoningText: string;
8
+ error: string;
9
+ code: boolean;
10
+ detailsCommand: number;
11
+ retryable: boolean;
12
+ };
13
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
14
+ view: (source: string, language: string) => any;
15
+ retry: () => any;
16
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
17
+ onView?: ((source: string, language: string) => any) | undefined;
18
+ onRetry?: (() => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
20
+ reasoningContentRef: HTMLPreElement;
21
+ streamContentRef: HTMLDivElement;
22
+ }, any>;
23
+ export default _default;
@@ -0,0 +1,37 @@
1
+ import { AITopic } from '../../../../framework';
2
+ import { AgentTopicBody, AgentChatBody, SaveChatBody, UpdateTopicBody, SaveTraceBody } from '../types/agent';
3
+ /** useOpenApi 中 Agent 业务所需的最小接口(结构化类型,便于 mock 测试) */
4
+ export interface AgentOpenApi {
5
+ postTopic: (dto: any) => Promise<any>;
6
+ postChat: (dto: any) => Promise<any>;
7
+ saveChat: (chat: any) => Promise<any>;
8
+ getChats: (topicId: string) => Promise<any>;
9
+ getTopics: (fileId: string) => Promise<any>;
10
+ removeTopic: (topicId: string) => Promise<any>;
11
+ updateTopic: (topic: any) => Promise<any>;
12
+ saveTrace: (trace: any) => Promise<any>;
13
+ getSkills: (ids: string[]) => Promise<any>;
14
+ getHotTopics: (platform?: string) => Promise<any>;
15
+ recognitionFile: (file: File) => Promise<any>;
16
+ cancelChat: (chat: any) => Promise<any>;
17
+ }
18
+ export declare function useAgentApi(openApi: AgentOpenApi): {
19
+ postTopic: (body: AgentTopicBody) => Promise<any>;
20
+ postChat: (body: AgentChatBody) => Promise<any>;
21
+ saveChat: (body: SaveChatBody) => Promise<any>;
22
+ updateTopic: (body: UpdateTopicBody) => Promise<any>;
23
+ saveTrace: (body: SaveTraceBody) => Promise<any>;
24
+ getChats: (topicId: string) => Promise<any>;
25
+ getTopics: (projectId: string) => Promise<AITopic[]>;
26
+ removeTopic: (topicId: string) => Promise<boolean>;
27
+ getSkills: (ids: string[]) => Promise<string>;
28
+ getHotTopics: (platform?: string) => Promise<AITopic[]>;
29
+ recognitionFile: (file: File) => Promise<{
30
+ title?: string;
31
+ content?: string;
32
+ type?: string;
33
+ url?: string;
34
+ }>;
35
+ clearActiveChat: () => void;
36
+ cancelActiveChat: () => void;
37
+ };
@@ -0,0 +1,7 @@
1
+ import { ConversationRound, ArchitectPlanDeps } from '../types/agent';
2
+ export declare function useArchitectPlan(deps: ArchitectPlanDeps): {
3
+ executeArchitectPlan: (topicId: string, architectChatId: string, userId: string, traceId: string, userMessage: string, round: ConversationRound, signal?: AbortSignal) => Promise<void>;
4
+ retryEditorPlan: (topicId: string, userId: string, traceId: string, userMessage: string, round: ConversationRound, stepIndex: number, signal?: AbortSignal) => Promise<void>;
5
+ retrySummary: (topicId: string, userId: string, traceId: string, userMessage: string, round: ConversationRound, signal?: AbortSignal) => Promise<void>;
6
+ resumeEditorPlan: (topicId: string, userId: string, traceId: string, userMessage: string, round: ConversationRound, signal?: AbortSignal) => Promise<void>;
7
+ };
@@ -0,0 +1,7 @@
1
+ import { Ref } from 'vue';
2
+ export declare function useAuth(getToken: () => string | undefined): {
3
+ token: Ref<string, string>;
4
+ model: Ref<string, string>;
5
+ existingTopicId: Ref<string, string>;
6
+ initToken: () => void;
7
+ };
@@ -0,0 +1,13 @@
1
+ import { Ref } from 'vue';
2
+ /**
3
+ * 监听内容变化,自动将关联的 DOM 元素滚动到底部
4
+ * 适用于流式输出场景(reasoning-content、stream-content、turn 内容等)
5
+ * @param contentRef 内容源(字符串或派生数组,变化时触发滚动)
6
+ * @param elRef 目标元素或元素数组
7
+ * @param options.deep 内容为嵌套结构(如数组内对象字段)时开启
8
+ */
9
+ export declare function useContentAutoScroll(contentRef: Ref<unknown>, elRef: Ref<HTMLElement | HTMLElement[] | undefined>, options?: {
10
+ deep?: boolean;
11
+ }): {
12
+ dispose: () => void;
13
+ };
@@ -0,0 +1,15 @@
1
+ import { ConversationRound, AttachmentInfo, DualAgentInfrastructure, DualAgentApi, DualAgentState } from '../types/agent';
2
+ import { Ref } from 'vue';
3
+ export declare function useDualAgent(infra: DualAgentInfrastructure, api: DualAgentApi, state: DualAgentState, promptBuilder?: () => string, attachmentsBuilder?: () => AttachmentInfo[], clearAttachments?: () => void): {
4
+ running: Ref<boolean, boolean>;
5
+ userMessage: Ref<string, string>;
6
+ cancelled: Ref<boolean, boolean>;
7
+ startDualAgent: () => Promise<void>;
8
+ continueConversation: () => Promise<void>;
9
+ retryLastRound: (label?: string) => Promise<void>;
10
+ retryStep: (round: ConversationRound, stepIndex: number) => Promise<void>;
11
+ retrySummary: (round: ConversationRound) => Promise<void>;
12
+ retryArchitect: (round: ConversationRound) => Promise<void>;
13
+ resumeLastRound: () => Promise<void>;
14
+ abortAll: () => void;
15
+ };
@@ -0,0 +1,4 @@
1
+ import { PlanStep, EditorStepResult, StepExecutionResult, EditorStepDeps } from '../types/agent';
2
+ export declare function useEditorStep(deps: EditorStepDeps): {
3
+ executeEditorStep: (topicId: string, userId: string, step: PlanStep, stepIdx: number, allSteps: PlanStep[], stepStart: number, editorResults: EditorStepResult[], signal?: AbortSignal, retrySlot?: EditorStepResult) => Promise<StepExecutionResult>;
4
+ };
@@ -0,0 +1,46 @@
1
+ import { AttachmentInfo } from '../types/agent';
2
+ import { Ref, ComputedRef } from 'vue';
3
+ export interface UploadedFile {
4
+ id: string;
5
+ name: string;
6
+ type: 'image' | 'json';
7
+ description: string;
8
+ recognizing: boolean;
9
+ error: string;
10
+ /** 图片的 objectURL,用于缩略图预览 */
11
+ previewUrl: string;
12
+ /** 识别成功后后端返回的文件访问地址 */
13
+ url: string;
14
+ }
15
+ export declare function useFileRecognition(recognitionFile: (file: File) => Promise<{
16
+ title?: string;
17
+ content?: string;
18
+ type?: string;
19
+ url?: string;
20
+ }>): {
21
+ files: Ref<{
22
+ id: string;
23
+ name: string;
24
+ type: "image" | "json";
25
+ description: string;
26
+ recognizing: boolean;
27
+ error: string;
28
+ previewUrl: string;
29
+ url: string;
30
+ }[], UploadedFile[] | {
31
+ id: string;
32
+ name: string;
33
+ type: "image" | "json";
34
+ description: string;
35
+ recognizing: boolean;
36
+ error: string;
37
+ previewUrl: string;
38
+ url: string;
39
+ }[]>;
40
+ recognizing: ComputedRef<boolean>;
41
+ uploadFile: (file: File) => Promise<void>;
42
+ removeFile: (fileId: string) => void;
43
+ buildFilePrompt: () => string;
44
+ buildAttachments: () => AttachmentInfo[];
45
+ clearFiles: () => void;
46
+ };
@@ -0,0 +1,5 @@
1
+ import { Ref } from 'vue';
2
+ import { ConversationRound, ReplayChatDeps } from '../types/agent';
3
+ export declare function useReplayChat(deps: ReplayChatDeps, conversationRounds: Ref<ConversationRound[]>): {
4
+ loadChatHistory: (topicId: string) => Promise<void>;
5
+ };
@@ -0,0 +1,7 @@
1
+ import { SSEChunkData, StreamCompletionResult } from '../types/agent';
2
+ type ChatCompletions = (topicId: string, chatId: string, callback?: (data: SSEChunkData | null, done?: boolean) => void, error?: (error: Error, cancel?: boolean) => void) => Promise<(() => void) | undefined>;
3
+ export declare function useSSEStream(chatCompletions: ChatCompletions): {
4
+ streamCompletion: (topicId: string, chatId: string, onChunk?: (text: string) => void, onReasoning?: (text: string) => void) => Promise<StreamCompletionResult>;
5
+ abortAll: () => void;
6
+ };
7
+ export {};
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Agent 模块常量
3
+ * 集中管理流程参数、超时、存储键等可配置项
4
+ */
5
+ /** Editor 单步骤内最大工具调用轮次(ReAct 循环上限) */
6
+ export declare const MAX_TURNS = 10;
7
+ /** 工具执行超时时间(毫秒) */
8
+ export declare const TOOL_TIMEOUT_MS = 30000;
9
+ /** 代码块显示偏好存储键 */
10
+ export declare const HIDE_CODE_STORAGE_KEY = "CHAT_HIDE_CODE";
11
+ /** 滚动判断"接近底部"的阈值(像素) */
12
+ export declare const SCROLL_NEAR_BOTTOM_THRESHOLD = 80;
13
+ /** 服务端"额度/Token 用尽"错误文案片段(命中时弹出付费提示) */
14
+ export declare const PAY_LIMIT_MESSAGES: string[];
15
+ /** 判断错误文案是否命中付费提示条件 */
16
+ export declare const isPayLimitError: (text: string) => boolean;
@@ -0,0 +1,26 @@
1
+ import { ConversationRound } from './types/agent';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ round: ConversationRound;
5
+ roundNumber: number;
6
+ isLatest: boolean;
7
+ retryable: boolean;
8
+ code: boolean;
9
+ detailsCommand: number;
10
+ };
11
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
12
+ view: (source: string, language: string, dsl?: Record<string, any> | undefined) => any;
13
+ resolveApproval: (id: string, approved: boolean) => any;
14
+ apply: (dsl: Record<string, any>) => any;
15
+ retryStep: (stepIndex: number) => any;
16
+ retrySummary: () => any;
17
+ retryArchitect: () => any;
18
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
19
+ onView?: ((source: string, language: string, dsl?: Record<string, any> | undefined) => any) | undefined;
20
+ onResolveApproval?: ((id: string, approved: boolean) => any) | undefined;
21
+ onApply?: ((dsl: Record<string, any>) => any) | undefined;
22
+ onRetryStep?: ((stepIndex: number) => any) | undefined;
23
+ onRetrySummary?: (() => any) | undefined;
24
+ onRetryArchitect?: (() => any) | undefined;
25
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
26
+ export default _default;
@@ -1,14 +1,15 @@
1
- import { AIChat } from '../../hooks';
2
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
3
2
  import { Props } from '../../editor/Editor';
4
- export interface Props {
5
- chat: AIChat;
6
- updateChatDsl: any;
7
- }
8
- declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
9
- apply: (chat: AIChat, manual?: boolean | undefined) => any;
10
- }, string, PublicProps, Readonly<Props> & Readonly<{
11
- onApply?: ((chat: AIChat, manual?: boolean | undefined) => any) | undefined;
3
+ type __VLS_Props = {
4
+ source: string;
5
+ language: string;
6
+ dsl: any;
7
+ updateDsl: (source: string) => Promise<any>;
8
+ };
9
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
10
+ apply: (dsl: any) => any;
11
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onApply?: ((dsl: any) => any) | undefined;
12
13
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
13
14
  editorRef: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
14
15
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -0,0 +1,22 @@
1
+ import { EditorStepResult } from './types/agent';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ step: EditorStepResult;
5
+ code: boolean;
6
+ detailsCommand: number;
7
+ retryable: boolean;
8
+ };
9
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
10
+ view: (source: string, language: string, dsl?: Record<string, any> | undefined) => any;
11
+ retry: () => any;
12
+ resolveApproval: (id: string, approved: boolean) => any;
13
+ apply: (dsl: Record<string, any>) => any;
14
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onView?: ((source: string, language: string, dsl?: Record<string, any> | undefined) => any) | undefined;
16
+ onRetry?: (() => any) | undefined;
17
+ onResolveApproval?: ((id: string, approved: boolean) => any) | undefined;
18
+ onApply?: ((dsl: Record<string, any>) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
20
+ turnContentRefs: HTMLDivElement;
21
+ }, HTMLElement>;
22
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
2
+ import { Props } from './pay-tip';
3
+ declare const _default: DefineComponent<{}, {
4
+ newTask: () => void;
5
+ start: () => Promise<void>;
6
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
7
+ payTipRef: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{}>, {
8
+ show: () => void;
9
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
10
+ P: {};
11
+ B: {};
12
+ D: {};
13
+ C: {};
14
+ M: {};
15
+ Defaults: {};
16
+ }, Readonly< Props> & Readonly<{}>, {
17
+ show: () => void;
18
+ }, {}, {}, {}, {}> | null;
19
+ conversationRef: HTMLDivElement;
20
+ }, any>;
21
+ export default _default;
@@ -1,4 +1,4 @@
1
- import { Settings } from '../../hooks';
1
+ import { Settings } from '../../../framework';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  export interface Props {
4
4
  settings?: Settings;
@@ -0,0 +1,35 @@
1
+ import { DictOption } from '../../../framework';
2
+ import { UploadedFile } from './composables/useFileRecognition';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ type __VLS_Props = {
5
+ message: string;
6
+ running: boolean;
7
+ hasTopic: boolean;
8
+ files: UploadedFile[];
9
+ recognizing: boolean;
10
+ autoApprove: boolean;
11
+ model: string;
12
+ models: DictOption[];
13
+ };
14
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
+ abort: () => any;
16
+ "update:message": (value: string) => any;
17
+ start: () => any;
18
+ continue: () => any;
19
+ "update:autoApprove": (value: boolean) => any;
20
+ "update:model": (value: string) => any;
21
+ "upload-file": (file: File) => any;
22
+ "remove-file": (fileId: string) => any;
23
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
24
+ onAbort?: (() => any) | undefined;
25
+ "onUpdate:message"?: ((value: string) => any) | undefined;
26
+ onStart?: (() => any) | undefined;
27
+ onContinue?: (() => any) | undefined;
28
+ "onUpdate:autoApprove"?: ((value: boolean) => any) | undefined;
29
+ "onUpdate:model"?: ((value: string) => any) | undefined;
30
+ "onUpload-file"?: ((file: File) => any) | undefined;
31
+ "onRemove-file"?: ((fileId: string) => any) | undefined;
32
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
33
+ fileInputRef: HTMLInputElement;
34
+ }, HTMLElement>;
35
+ export default _default;
@@ -1,4 +1,4 @@
1
- import { Settings } from '../../hooks';
1
+ import { Settings } from '../../../framework';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  export interface Props {
4
4
  settings?: Settings;
@@ -8,5 +8,7 @@ export interface Props {
8
8
  getOrder: any;
9
9
  getImage: (path?: string) => string | undefined;
10
10
  }
11
- declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: DefineComponent<Props, {
12
+ show: () => void;
13
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
12
14
  export default _default;
@@ -0,0 +1,18 @@
1
+ import { AITopic } from '../../../framework';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ topics?: AITopic[];
5
+ current?: AITopic | null;
6
+ };
7
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8
+ load: (topic: AITopic) => any;
9
+ remove: (topic: AITopic) => any;
10
+ new: () => any;
11
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onLoad?: ((topic: AITopic) => any) | undefined;
13
+ onRemove?: ((topic: AITopic) => any) | undefined;
14
+ onNew?: (() => any) | undefined;
15
+ }>, {
16
+ topics: AITopic[];
17
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
18
+ export default _default;
@@ -4,9 +4,9 @@ type __VLS_Props = {
4
4
  code?: boolean;
5
5
  };
6
6
  declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
7
- click: (...args: any[]) => void;
7
+ click: (source: string, language: string) => any;
8
8
  }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
9
- onClick?: ((...args: any[]) => any) | undefined;
9
+ onClick?: ((source: string, language: string) => any) | undefined;
10
10
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
11
11
  container: HTMLDivElement;
12
12
  }, HTMLDivElement>;
@@ -0,0 +1,19 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ text: string;
4
+ reasoning: string;
5
+ error: string;
6
+ code: boolean;
7
+ detailsCommand: number;
8
+ retryable: boolean;
9
+ };
10
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
+ view: (source: string, language: string) => any;
12
+ retry: () => any;
13
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onView?: ((source: string, language: string) => any) | undefined;
15
+ onRetry?: (() => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
17
+ reasoningPreRef: HTMLPreElement;
18
+ }, any>;
19
+ export default _default;