@aheart-ui/ai 0.0.0-stage → 1.1.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/LICENSE +21 -0
- package/README.md +30 -2
- package/es/actions/index.d.ts +2 -0
- package/es/actions/index.js +5 -0
- package/es/actions/style.css +36 -0
- package/es/actions.vue.d.ts +34 -0
- package/es/actions.vue.js +27 -0
- package/es/actions.vue2.js +4 -0
- package/es/agent/index.d.ts +5 -0
- package/es/agent/index.js +12 -0
- package/es/agent/style.css +308 -0
- package/es/agent-execution.vue.d.ts +106 -0
- package/es/agent-execution.vue.js +441 -0
- package/es/agent-execution.vue2.js +4 -0
- package/es/agent-workbench/index.d.ts +2 -0
- package/es/agent-workbench/index.js +5 -0
- package/es/agent-workbench/style.css +1332 -0
- package/es/agent-workbench.vue.d.ts +186 -0
- package/es/agent-workbench.vue.js +537 -0
- package/es/agent-workbench.vue2.js +4 -0
- package/es/attachments/index.d.ts +2 -0
- package/es/attachments/index.js +5 -0
- package/es/attachments/style.css +62 -0
- package/es/attachments.vue.d.ts +39 -0
- package/es/attachments.vue.js +39 -0
- package/es/attachments.vue2.js +4 -0
- package/es/bubble/index.d.ts +2 -0
- package/es/bubble/index.js +5 -0
- package/es/bubble/style.css +241 -0
- package/es/bubble.vue.d.ts +27 -0
- package/es/bubble.vue.js +82 -0
- package/es/bubble.vue2.js +4 -0
- package/es/chat/index.d.ts +11 -0
- package/es/chat/index.js +23 -0
- package/es/chat/style.css +595 -0
- package/es/chat-panel/index.d.ts +3 -0
- package/es/chat-panel/index.js +8 -0
- package/es/chat-panel/style.css +595 -0
- package/es/chat-panel.vue.d.ts +108 -0
- package/es/chat-panel.vue.js +330 -0
- package/es/chat-panel.vue2.js +4 -0
- package/es/conversations/index.d.ts +2 -0
- package/es/conversations/index.js +5 -0
- package/es/conversations/style.css +48 -0
- package/es/conversations.vue.d.ts +39 -0
- package/es/conversations.vue.js +29 -0
- package/es/conversations.vue2.js +4 -0
- package/es/form/index.d.ts +3 -0
- package/es/form/index.js +9 -0
- package/es/form/style.css +242 -0
- package/es/form-field.vue.d.ts +28 -0
- package/es/form-field.vue.js +176 -0
- package/es/form-field.vue2.js +4 -0
- package/es/form-schema.d.ts +73 -0
- package/es/form-schema.js +105 -0
- package/es/form.vue.d.ts +81 -0
- package/es/form.vue.js +376 -0
- package/es/form.vue2.js +4 -0
- package/es/index.d.ts +20 -0
- package/es/index.js +42 -0
- package/es/package.json +3 -0
- package/es/process/index.d.ts +2 -0
- package/es/process/index.js +5 -0
- package/es/process/style.css +77 -0
- package/es/process.vue.d.ts +30 -0
- package/es/process.vue.js +29 -0
- package/es/process.vue2.js +4 -0
- package/es/prompts/index.d.ts +2 -0
- package/es/prompts/index.js +5 -0
- package/es/prompts/style.css +76 -0
- package/es/prompts.vue.d.ts +39 -0
- package/es/prompts.vue.js +33 -0
- package/es/prompts.vue2.js +4 -0
- package/es/safe-markdown.d.ts +3 -0
- package/es/safe-markdown.js +23 -0
- package/es/sender/index.d.ts +2 -0
- package/es/sender/index.js +5 -0
- package/es/sender/style.css +88 -0
- package/es/sender.vue.d.ts +52 -0
- package/es/sender.vue.js +46 -0
- package/es/sender.vue2.js +4 -0
- package/es/sources/index.d.ts +2 -0
- package/es/sources/index.js +5 -0
- package/es/sources/style.css +54 -0
- package/es/sources.vue.d.ts +30 -0
- package/es/sources.vue.js +34 -0
- package/es/sources.vue2.js +4 -0
- package/es/stream-reducer.d.ts +35 -0
- package/es/stream-reducer.js +85 -0
- package/es/style.css +1586 -0
- package/es/thought-chain/index.d.ts +2 -0
- package/es/thought-chain/index.js +5 -0
- package/es/thought-chain/style.css +77 -0
- package/es/thought-chain.vue.d.ts +30 -0
- package/es/thought-chain.vue.js +15 -0
- package/es/thought-chain.vue2.js +4 -0
- package/es/types.d.ts +203 -0
- package/es/welcome/index.d.ts +2 -0
- package/es/welcome/index.js +5 -0
- package/es/welcome/style.css +33 -0
- package/es/welcome.vue.d.ts +41 -0
- package/es/welcome.vue.js +27 -0
- package/es/welcome.vue2.js +4 -0
- package/lib/actions/index.d.ts +2 -0
- package/lib/actions/index.js +1 -0
- package/lib/actions/style.css +36 -0
- package/lib/actions.vue.d.ts +34 -0
- package/lib/actions.vue.js +1 -0
- package/lib/actions.vue2.js +1 -0
- package/lib/agent/index.d.ts +5 -0
- package/lib/agent/index.js +1 -0
- package/lib/agent/style.css +308 -0
- package/lib/agent-execution.vue.d.ts +106 -0
- package/lib/agent-execution.vue.js +1 -0
- package/lib/agent-execution.vue2.js +1 -0
- package/lib/agent-workbench/index.d.ts +2 -0
- package/lib/agent-workbench/index.js +1 -0
- package/lib/agent-workbench/style.css +1332 -0
- package/lib/agent-workbench.vue.d.ts +186 -0
- package/lib/agent-workbench.vue.js +1 -0
- package/lib/agent-workbench.vue2.js +1 -0
- package/lib/attachments/index.d.ts +2 -0
- package/lib/attachments/index.js +1 -0
- package/lib/attachments/style.css +62 -0
- package/lib/attachments.vue.d.ts +39 -0
- package/lib/attachments.vue.js +1 -0
- package/lib/attachments.vue2.js +1 -0
- package/lib/bubble/index.d.ts +2 -0
- package/lib/bubble/index.js +1 -0
- package/lib/bubble/style.css +241 -0
- package/lib/bubble.vue.d.ts +27 -0
- package/lib/bubble.vue.js +1 -0
- package/lib/bubble.vue2.js +1 -0
- package/lib/chat/index.d.ts +11 -0
- package/lib/chat/index.js +1 -0
- package/lib/chat/style.css +595 -0
- package/lib/chat-panel/index.d.ts +3 -0
- package/lib/chat-panel/index.js +1 -0
- package/lib/chat-panel/style.css +595 -0
- package/lib/chat-panel.vue.d.ts +108 -0
- package/lib/chat-panel.vue.js +1 -0
- package/lib/chat-panel.vue2.js +1 -0
- package/lib/conversations/index.d.ts +2 -0
- package/lib/conversations/index.js +1 -0
- package/lib/conversations/style.css +48 -0
- package/lib/conversations.vue.d.ts +39 -0
- package/lib/conversations.vue.js +1 -0
- package/lib/conversations.vue2.js +1 -0
- package/lib/form/index.d.ts +3 -0
- package/lib/form/index.js +1 -0
- package/lib/form/style.css +242 -0
- package/lib/form-field.vue.d.ts +28 -0
- package/lib/form-field.vue.js +1 -0
- package/lib/form-field.vue2.js +1 -0
- package/lib/form-schema.d.ts +73 -0
- package/lib/form-schema.js +1 -0
- package/lib/form.vue.d.ts +81 -0
- package/lib/form.vue.js +1 -0
- package/lib/form.vue2.js +1 -0
- package/lib/index.d.ts +20 -0
- package/lib/index.js +1 -0
- package/lib/package.json +3 -0
- package/lib/process/index.d.ts +2 -0
- package/lib/process/index.js +1 -0
- package/lib/process/style.css +77 -0
- package/lib/process.vue.d.ts +30 -0
- package/lib/process.vue.js +1 -0
- package/lib/process.vue2.js +1 -0
- package/lib/prompts/index.d.ts +2 -0
- package/lib/prompts/index.js +1 -0
- package/lib/prompts/style.css +76 -0
- package/lib/prompts.vue.d.ts +39 -0
- package/lib/prompts.vue.js +1 -0
- package/lib/prompts.vue2.js +1 -0
- package/lib/safe-markdown.d.ts +3 -0
- package/lib/safe-markdown.js +2 -0
- package/lib/sender/index.d.ts +2 -0
- package/lib/sender/index.js +1 -0
- package/lib/sender/style.css +88 -0
- package/lib/sender.vue.d.ts +52 -0
- package/lib/sender.vue.js +1 -0
- package/lib/sender.vue2.js +1 -0
- package/lib/sources/index.d.ts +2 -0
- package/lib/sources/index.js +1 -0
- package/lib/sources/style.css +54 -0
- package/lib/sources.vue.d.ts +30 -0
- package/lib/sources.vue.js +1 -0
- package/lib/sources.vue2.js +1 -0
- package/lib/stream-reducer.d.ts +35 -0
- package/lib/stream-reducer.js +1 -0
- package/lib/style.css +1586 -0
- package/lib/thought-chain/index.d.ts +2 -0
- package/lib/thought-chain/index.js +1 -0
- package/lib/thought-chain/style.css +77 -0
- package/lib/thought-chain.vue.d.ts +30 -0
- package/lib/thought-chain.vue.js +1 -0
- package/lib/thought-chain.vue2.js +1 -0
- package/lib/types.d.ts +203 -0
- package/lib/welcome/index.d.ts +2 -0
- package/lib/welcome/index.js +1 -0
- package/lib/welcome/style.css +33 -0
- package/lib/welcome.vue.d.ts +41 -0
- package/lib/welcome.vue.js +1 -0
- package/lib/welcome.vue2.js +1 -0
- package/package.json +172 -3
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import type { AIAgentActionHandler, AIAgentArtifact, AIAgentContextItem, AIAgentOperationRequest, AIAgentTask, AIAttachment, AIConversation, AIMessage, AIPrompt, AISource, AITransport, AITransportV2 } from './types';
|
|
2
|
+
type WorkbenchPanelSize = number | `${number}%` | 'auto';
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
title?: string | undefined;
|
|
5
|
+
description?: string | undefined;
|
|
6
|
+
panelSizes?: WorkbenchPanelSize[] | undefined;
|
|
7
|
+
conversations?: AIConversation[] | undefined;
|
|
8
|
+
activeConversation?: string | undefined;
|
|
9
|
+
messages?: AIMessage[] | undefined;
|
|
10
|
+
prompts?: AIPrompt[] | undefined;
|
|
11
|
+
transport?: AITransport | AITransportV2 | undefined;
|
|
12
|
+
tasks?: AIAgentTask[] | undefined;
|
|
13
|
+
contextItems?: AIAgentContextItem[] | undefined;
|
|
14
|
+
sources?: AISource[] | undefined;
|
|
15
|
+
attachments?: AIAttachment[] | undefined;
|
|
16
|
+
artifacts?: AIAgentArtifact[] | undefined;
|
|
17
|
+
activeArtifact?: string | undefined;
|
|
18
|
+
disabled?: boolean | undefined;
|
|
19
|
+
actionHandler?: AIAgentActionHandler | undefined;
|
|
20
|
+
reorderable?: boolean | undefined;
|
|
21
|
+
tasksRevision?: string | number | undefined;
|
|
22
|
+
scopeKey?: string | number | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
title: string;
|
|
25
|
+
description: string;
|
|
26
|
+
panelSizes: () => (string | number)[];
|
|
27
|
+
conversations: () => never[];
|
|
28
|
+
activeConversation: undefined;
|
|
29
|
+
messages: () => never[];
|
|
30
|
+
prompts: () => never[];
|
|
31
|
+
transport: undefined;
|
|
32
|
+
tasks: () => never[];
|
|
33
|
+
contextItems: () => never[];
|
|
34
|
+
sources: () => never[];
|
|
35
|
+
attachments: () => never[];
|
|
36
|
+
artifacts: () => never[];
|
|
37
|
+
activeArtifact: undefined;
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
reorderable: boolean;
|
|
40
|
+
tasksRevision: undefined;
|
|
41
|
+
scopeKey: undefined;
|
|
42
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
|
+
error: (message: string) => void;
|
|
44
|
+
retry: (task: AIAgentTask) => void;
|
|
45
|
+
approve: (task: AIAgentTask) => void;
|
|
46
|
+
reject: (task: AIAgentTask) => void;
|
|
47
|
+
cancel: (task: AIAgentTask) => void;
|
|
48
|
+
stop: () => void;
|
|
49
|
+
"update:tasks": (tasks: AIAgentTask[]) => void;
|
|
50
|
+
"move-task": (id: string, direction: "up" | "down") => void;
|
|
51
|
+
"update:messages": (messages: AIMessage[]) => void;
|
|
52
|
+
"update:activeConversation": (key: string) => void;
|
|
53
|
+
"update:panelSizes": (sizes: number[]) => void;
|
|
54
|
+
"update:activeArtifact": (id: string) => void;
|
|
55
|
+
"update:contextItems": (items: AIAgentContextItem[]) => void;
|
|
56
|
+
"move-context": (id: string, direction: "up" | "down") => void;
|
|
57
|
+
"chat-retry": (message: AIMessage) => void;
|
|
58
|
+
"chat-regenerate": (message: AIMessage) => void;
|
|
59
|
+
"chat-edit": (message: AIMessage, content: string) => void;
|
|
60
|
+
"chat-copy": (message: AIMessage) => void;
|
|
61
|
+
"operation-start": (request: AIAgentOperationRequest) => void;
|
|
62
|
+
"operation-success": (request: AIAgentOperationRequest) => void;
|
|
63
|
+
"operation-error": (request: AIAgentOperationRequest, message: string) => void;
|
|
64
|
+
"task-move-reject": (reason: string) => void;
|
|
65
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
66
|
+
title?: string | undefined;
|
|
67
|
+
description?: string | undefined;
|
|
68
|
+
panelSizes?: WorkbenchPanelSize[] | undefined;
|
|
69
|
+
conversations?: AIConversation[] | undefined;
|
|
70
|
+
activeConversation?: string | undefined;
|
|
71
|
+
messages?: AIMessage[] | undefined;
|
|
72
|
+
prompts?: AIPrompt[] | undefined;
|
|
73
|
+
transport?: AITransport | AITransportV2 | undefined;
|
|
74
|
+
tasks?: AIAgentTask[] | undefined;
|
|
75
|
+
contextItems?: AIAgentContextItem[] | undefined;
|
|
76
|
+
sources?: AISource[] | undefined;
|
|
77
|
+
attachments?: AIAttachment[] | undefined;
|
|
78
|
+
artifacts?: AIAgentArtifact[] | undefined;
|
|
79
|
+
activeArtifact?: string | undefined;
|
|
80
|
+
disabled?: boolean | undefined;
|
|
81
|
+
actionHandler?: AIAgentActionHandler | undefined;
|
|
82
|
+
reorderable?: boolean | undefined;
|
|
83
|
+
tasksRevision?: string | number | undefined;
|
|
84
|
+
scopeKey?: string | number | undefined;
|
|
85
|
+
}>, {
|
|
86
|
+
title: string;
|
|
87
|
+
description: string;
|
|
88
|
+
panelSizes: () => (string | number)[];
|
|
89
|
+
conversations: () => never[];
|
|
90
|
+
activeConversation: undefined;
|
|
91
|
+
messages: () => never[];
|
|
92
|
+
prompts: () => never[];
|
|
93
|
+
transport: undefined;
|
|
94
|
+
tasks: () => never[];
|
|
95
|
+
contextItems: () => never[];
|
|
96
|
+
sources: () => never[];
|
|
97
|
+
attachments: () => never[];
|
|
98
|
+
artifacts: () => never[];
|
|
99
|
+
activeArtifact: undefined;
|
|
100
|
+
disabled: boolean;
|
|
101
|
+
reorderable: boolean;
|
|
102
|
+
tasksRevision: undefined;
|
|
103
|
+
scopeKey: undefined;
|
|
104
|
+
}>>> & Readonly<{
|
|
105
|
+
onError?: ((message: string) => any) | undefined;
|
|
106
|
+
onRetry?: ((task: AIAgentTask) => any) | undefined;
|
|
107
|
+
onApprove?: ((task: AIAgentTask) => any) | undefined;
|
|
108
|
+
onReject?: ((task: AIAgentTask) => any) | undefined;
|
|
109
|
+
onCancel?: ((task: AIAgentTask) => any) | undefined;
|
|
110
|
+
onStop?: (() => any) | undefined;
|
|
111
|
+
"onUpdate:tasks"?: ((tasks: AIAgentTask[]) => any) | undefined;
|
|
112
|
+
"onMove-task"?: ((id: string, direction: "up" | "down") => any) | undefined;
|
|
113
|
+
"onUpdate:messages"?: ((messages: AIMessage[]) => any) | undefined;
|
|
114
|
+
"onUpdate:activeConversation"?: ((key: string) => any) | undefined;
|
|
115
|
+
"onUpdate:panelSizes"?: ((sizes: number[]) => any) | undefined;
|
|
116
|
+
"onUpdate:activeArtifact"?: ((id: string) => any) | undefined;
|
|
117
|
+
"onUpdate:contextItems"?: ((items: AIAgentContextItem[]) => any) | undefined;
|
|
118
|
+
"onMove-context"?: ((id: string, direction: "up" | "down") => any) | undefined;
|
|
119
|
+
"onChat-retry"?: ((message: AIMessage) => any) | undefined;
|
|
120
|
+
"onChat-regenerate"?: ((message: AIMessage) => any) | undefined;
|
|
121
|
+
"onChat-edit"?: ((message: AIMessage, content: string) => any) | undefined;
|
|
122
|
+
"onChat-copy"?: ((message: AIMessage) => any) | undefined;
|
|
123
|
+
"onOperation-start"?: ((request: AIAgentOperationRequest) => any) | undefined;
|
|
124
|
+
"onOperation-success"?: ((request: AIAgentOperationRequest) => any) | undefined;
|
|
125
|
+
"onOperation-error"?: ((request: AIAgentOperationRequest, message: string) => any) | undefined;
|
|
126
|
+
"onTask-move-reject"?: ((reason: string) => any) | undefined;
|
|
127
|
+
}>, {
|
|
128
|
+
sources: AISource[];
|
|
129
|
+
messages: AIMessage[];
|
|
130
|
+
title: string;
|
|
131
|
+
disabled: boolean;
|
|
132
|
+
tasks: AIAgentTask[];
|
|
133
|
+
artifacts: AIAgentArtifact[];
|
|
134
|
+
activeArtifact: string;
|
|
135
|
+
reorderable: boolean;
|
|
136
|
+
tasksRevision: string | number;
|
|
137
|
+
scopeKey: string | number;
|
|
138
|
+
description: string;
|
|
139
|
+
attachments: AIAttachment[];
|
|
140
|
+
conversations: AIConversation[];
|
|
141
|
+
prompts: AIPrompt[];
|
|
142
|
+
transport: AITransport | AITransportV2;
|
|
143
|
+
activeConversation: string;
|
|
144
|
+
panelSizes: WorkbenchPanelSize[];
|
|
145
|
+
contextItems: AIAgentContextItem[];
|
|
146
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
147
|
+
sources?(_: {
|
|
148
|
+
sources: AISource[];
|
|
149
|
+
}): any;
|
|
150
|
+
attachments?(_: {
|
|
151
|
+
attachments: AIAttachment[];
|
|
152
|
+
}): any;
|
|
153
|
+
task?(_: {
|
|
154
|
+
task: AIAgentTask;
|
|
155
|
+
index: number;
|
|
156
|
+
}): any;
|
|
157
|
+
artifact?(_: {
|
|
158
|
+
artifact: AIAgentArtifact;
|
|
159
|
+
}): any;
|
|
160
|
+
"artifact-preview"?(_: {
|
|
161
|
+
artifact: AIAgentArtifact;
|
|
162
|
+
}): any;
|
|
163
|
+
}>;
|
|
164
|
+
export default _default;
|
|
165
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
166
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
167
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
168
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
169
|
+
} : {
|
|
170
|
+
type: import('vue').PropType<T[K]>;
|
|
171
|
+
required: true;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
type __VLS_WithDefaults<P, D> = {
|
|
175
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
176
|
+
default: D[K];
|
|
177
|
+
}> : P[K];
|
|
178
|
+
};
|
|
179
|
+
type __VLS_Prettify<T> = {
|
|
180
|
+
[K in keyof T]: T[K];
|
|
181
|
+
} & {};
|
|
182
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
183
|
+
new (): {
|
|
184
|
+
$slots: S;
|
|
185
|
+
};
|
|
186
|
+
};
|