@aheart-ui/ai 1.0.0 → 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/README.md +10 -1
- 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 +4 -4
- 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 +4 -4
- package/es/agent-execution.vue.js +1 -1
- 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 +4 -4
- package/es/agent-workbench.vue.js +1 -1
- 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 +4 -4
- 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 +3 -3
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- package/es/form.vue.d.ts +4 -4
- 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 +3 -3
- 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 +4 -4
- 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 +4 -4
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +4 -4
- 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 +4 -4
- package/lib/agent-execution.vue.js +1 -1
- 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 +4 -4
- package/lib/agent-workbench.vue.js +1 -1
- 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 +4 -4
- 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 +3 -3
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- package/lib/form.vue.d.ts +4 -4
- 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 +3 -3
- 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 +4 -4
- 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 +4 -4
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- package/package.json +105 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AIAgentActionHandler, AIAgentArtifact, AIAgentContextItem, AIAgentOperationRequest, AIAgentTask, AIAttachment, AIConversation, AIMessage, AIPrompt, AISource, AITransport, AITransportV2 } from './types';
|
|
2
2
|
type WorkbenchPanelSize = number | `${number}%` | 'auto';
|
|
3
|
-
declare const _default: __VLS_WithTemplateSlots<import("
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
title?: string | undefined;
|
|
5
5
|
description?: string | undefined;
|
|
6
6
|
panelSizes?: WorkbenchPanelSize[] | undefined;
|
|
@@ -39,7 +39,7 @@ declare const _default: __VLS_WithTemplateSlots<import("@vue/runtime-core").Defi
|
|
|
39
39
|
reorderable: boolean;
|
|
40
40
|
tasksRevision: undefined;
|
|
41
41
|
scopeKey: undefined;
|
|
42
|
-
}>>, {}, {}, {}, {}, import("
|
|
42
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
43
|
error: (message: string) => void;
|
|
44
44
|
retry: (task: AIAgentTask) => void;
|
|
45
45
|
approve: (task: AIAgentTask) => void;
|
|
@@ -62,7 +62,7 @@ declare const _default: __VLS_WithTemplateSlots<import("@vue/runtime-core").Defi
|
|
|
62
62
|
"operation-success": (request: AIAgentOperationRequest) => void;
|
|
63
63
|
"operation-error": (request: AIAgentOperationRequest, message: string) => void;
|
|
64
64
|
"task-move-reject": (reason: string) => void;
|
|
65
|
-
}, string, import("
|
|
65
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
66
66
|
title?: string | undefined;
|
|
67
67
|
description?: string | undefined;
|
|
68
68
|
panelSizes?: WorkbenchPanelSize[] | undefined;
|
|
@@ -143,7 +143,7 @@ declare const _default: __VLS_WithTemplateSlots<import("@vue/runtime-core").Defi
|
|
|
143
143
|
activeConversation: string;
|
|
144
144
|
panelSizes: WorkbenchPanelSize[];
|
|
145
145
|
contextItems: AIAgentContextItem[];
|
|
146
|
-
}, {}, {}, {}, string, import("
|
|
146
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
147
147
|
sources?(_: {
|
|
148
148
|
sources: AISource[];
|
|
149
149
|
}): any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as Be, ref as R, getCurrentInstance as Ve, useId as De, computed as I, onMounted as He, nextTick as Le, onBeforeUnmount as Ie, watch as ee, onBeforeUpdate as Pe, h as te, openBlock as h, createElementBlock as g, createElementVNode as u, toDisplayString as $, createCommentVNode as C, normalizeClass as Ne, createVNode as m, unref as y, withCtx as k, createTextVNode as P, createBlock as ae, Teleport as $e, mergeProps as Fe, renderSlot as _, createSlots as Je, withDirectives as oe, Fragment as Ze, renderList as qe, vShow as se } from "vue";
|
|
2
2
|
import { Splitter as We, SplitterPanel as ne, Button as N, Tabs as Ge, Drawer as Xe } from "aheart-ui";
|
|
3
|
-
import { SortableList as Ye } from "@aheart-ui/dnd";
|
|
3
|
+
import { SortableList as Ye } from "@aheart-ui/dnd/sortable";
|
|
4
4
|
import Ce from "./attachments.vue.js";
|
|
5
5
|
import Qe from "./chat-panel.vue.js";
|
|
6
6
|
import xe from "./conversations.vue.js";
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--aheart-ai-cyan: #0e7490;
|
|
3
|
+
--aheart-ai-cyan-strong: #0e7490;
|
|
4
|
+
--aheart-ai-brand-strong: #0958d9;
|
|
5
|
+
--aheart-ai-cyan-soft: #ecfeff;
|
|
6
|
+
--aheart-ai-line: #e4e7ec;
|
|
7
|
+
--aheart-ai-surface: #ffffff;
|
|
8
|
+
--aheart-ai-surface-subtle: #f8fafc;
|
|
9
|
+
--aheart-ai-text: #182230;
|
|
10
|
+
--aheart-ai-text-secondary: #667085;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.aheart-ai-attachments button {
|
|
14
|
+
min-block-size: 28px;
|
|
15
|
+
padding: 3px 8px;
|
|
16
|
+
border: 1px solid transparent;
|
|
17
|
+
border-radius: 4px;
|
|
18
|
+
background: transparent;
|
|
19
|
+
color: var(--aheart-ai-text-secondary);
|
|
20
|
+
font: 12px/1.4 inherit;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
transition: border-color 120ms ease-out, background-color 120ms ease-out, color 120ms ease-out;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.aheart-ai-attachments button:hover,
|
|
26
|
+
.aheart-ai-attachments button:focus-visible {
|
|
27
|
+
border-color: #b9c2cf;
|
|
28
|
+
background: var(--aheart-ai-surface-subtle);
|
|
29
|
+
color: var(--aheart-ai-text);
|
|
30
|
+
outline: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.aheart-ai-attachments {
|
|
34
|
+
display: grid;
|
|
35
|
+
gap: 8px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.aheart-ai-attachments {
|
|
39
|
+
margin: 0;
|
|
40
|
+
padding: 0;
|
|
41
|
+
list-style: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.aheart-ai-attachments li {
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: space-between;
|
|
48
|
+
gap: 8px;
|
|
49
|
+
min-block-size: 34px;
|
|
50
|
+
padding: 6px 8px;
|
|
51
|
+
border: 1px solid var(--aheart-ai-line);
|
|
52
|
+
border-radius: 5px;
|
|
53
|
+
background: var(--aheart-ai-surface-subtle);
|
|
54
|
+
font-size: 12px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@media (pointer: coarse) {
|
|
58
|
+
.aheart-ai-attachments button {
|
|
59
|
+
min-block-size: 44px;
|
|
60
|
+
min-inline-size: 44px;
|
|
61
|
+
}
|
|
62
|
+
}
|
package/es/attachments.vue.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { AIAttachment } from './types';
|
|
2
|
-
declare const _default: import("
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
items?: AIAttachment[] | undefined;
|
|
4
4
|
removable?: boolean | undefined;
|
|
5
5
|
}>, {
|
|
6
6
|
items: () => never[];
|
|
7
7
|
removable: boolean;
|
|
8
|
-
}>>, {}, {}, {}, {}, import("
|
|
8
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
remove: (item: AIAttachment) => void;
|
|
10
|
-
}, string, import("
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
11
11
|
items?: AIAttachment[] | undefined;
|
|
12
12
|
removable?: boolean | undefined;
|
|
13
13
|
}>, {
|
|
@@ -18,7 +18,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue
|
|
|
18
18
|
}>, {
|
|
19
19
|
items: AIAttachment[];
|
|
20
20
|
removable: boolean;
|
|
21
|
-
}, {}, {}, {}, string, import("
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
22
22
|
export default _default;
|
|
23
23
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
24
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--aheart-ai-cyan: #0e7490;
|
|
3
|
+
--aheart-ai-cyan-strong: #0e7490;
|
|
4
|
+
--aheart-ai-brand-strong: #0958d9;
|
|
5
|
+
--aheart-ai-cyan-soft: #ecfeff;
|
|
6
|
+
--aheart-ai-line: #e4e7ec;
|
|
7
|
+
--aheart-ai-surface: #ffffff;
|
|
8
|
+
--aheart-ai-surface-subtle: #f8fafc;
|
|
9
|
+
--aheart-ai-text: #182230;
|
|
10
|
+
--aheart-ai-text-secondary: #667085;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.aheart-ai-sources h3,
|
|
14
|
+
.aheart-ai-sources p,
|
|
15
|
+
.aheart-ai-process h3 {
|
|
16
|
+
margin: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.aheart-ai-process small {
|
|
20
|
+
display: block;
|
|
21
|
+
color: var(--aheart-ai-text-secondary);
|
|
22
|
+
font-size: 12px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.aheart-ai-bubble {
|
|
26
|
+
position: relative;
|
|
27
|
+
display: grid;
|
|
28
|
+
gap: 8px;
|
|
29
|
+
max-inline-size: min(760px, 92%);
|
|
30
|
+
margin: 0;
|
|
31
|
+
padding: 12px 14px;
|
|
32
|
+
border: 1px solid var(--aheart-ai-line);
|
|
33
|
+
border-radius: 7px;
|
|
34
|
+
background: #fff;
|
|
35
|
+
box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.aheart-ai-bubble.is-user {
|
|
39
|
+
align-self: end;
|
|
40
|
+
border-color: #91caff;
|
|
41
|
+
background: #f0f7ff;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.aheart-ai-bubble.is-assistant {
|
|
45
|
+
align-self: start;
|
|
46
|
+
border-inline-start: 3px solid var(--aheart-ai-cyan);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.aheart-ai-bubble__header {
|
|
50
|
+
color: var(--aheart-ai-text-secondary);
|
|
51
|
+
font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
52
|
+
text-transform: uppercase;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.aheart-ai-bubble__content,
|
|
56
|
+
.aheart-ai-bubble__error {
|
|
57
|
+
margin: 0;
|
|
58
|
+
line-height: 1.72;
|
|
59
|
+
white-space: pre-wrap;
|
|
60
|
+
overflow-wrap: anywhere;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.aheart-ai-bubble__content a {
|
|
64
|
+
color: var(--aheart-color-primary, #1677ff);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.aheart-ai-bubble__tool-call {
|
|
68
|
+
display: grid;
|
|
69
|
+
min-inline-size: 0;
|
|
70
|
+
gap: 10px;
|
|
71
|
+
margin-block: 10px;
|
|
72
|
+
padding: 12px;
|
|
73
|
+
overflow-wrap: anywhere;
|
|
74
|
+
border: 1px solid var(--aheart-ai-line, #d0d5dd);
|
|
75
|
+
border-radius: 8px;
|
|
76
|
+
background: var(--aheart-ai-surface-subtle, #f8fafc);
|
|
77
|
+
}
|
|
78
|
+
.aheart-ai-bubble__tool-heading {
|
|
79
|
+
display: grid;
|
|
80
|
+
gap: 3px;
|
|
81
|
+
}
|
|
82
|
+
.aheart-ai-bubble__tool-heading strong {
|
|
83
|
+
color: var(--aheart-ai-text, #101828);
|
|
84
|
+
font-size: 13px;
|
|
85
|
+
}
|
|
86
|
+
.aheart-ai-bubble__tool-heading span {
|
|
87
|
+
color: var(--aheart-ai-text-secondary, #475467);
|
|
88
|
+
font-size: 13px;
|
|
89
|
+
line-height: 1.45;
|
|
90
|
+
}
|
|
91
|
+
.aheart-ai-bubble__tool-details {
|
|
92
|
+
display: grid;
|
|
93
|
+
grid-template-columns: max-content minmax(0, 1fr);
|
|
94
|
+
gap: 6px 10px;
|
|
95
|
+
margin: 0;
|
|
96
|
+
font-size: 12px;
|
|
97
|
+
line-height: 1.45;
|
|
98
|
+
}
|
|
99
|
+
.aheart-ai-bubble__tool-details dt {
|
|
100
|
+
color: var(--aheart-ai-text-secondary, #667085);
|
|
101
|
+
font-weight: 600;
|
|
102
|
+
}
|
|
103
|
+
.aheart-ai-bubble__tool-details dd {
|
|
104
|
+
display: flex;
|
|
105
|
+
min-inline-size: 0;
|
|
106
|
+
flex-wrap: wrap;
|
|
107
|
+
gap: 6px;
|
|
108
|
+
margin: 0;
|
|
109
|
+
color: var(--aheart-ai-text, #344054);
|
|
110
|
+
}
|
|
111
|
+
.aheart-ai-bubble__tool-details small {
|
|
112
|
+
padding: 1px 5px;
|
|
113
|
+
border-radius: 4px;
|
|
114
|
+
background: color-mix(in srgb, currentColor 10%, transparent);
|
|
115
|
+
font-size: 11px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.aheart-ai-bubble__error {
|
|
119
|
+
padding: 8px 10px;
|
|
120
|
+
border-inline-start: 3px solid var(--aheart-color-danger, #d92d20);
|
|
121
|
+
background: #fff1f0;
|
|
122
|
+
color: #b42318;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.aheart-ai-attachments button {
|
|
126
|
+
min-block-size: 28px;
|
|
127
|
+
padding: 3px 8px;
|
|
128
|
+
border: 1px solid transparent;
|
|
129
|
+
border-radius: 4px;
|
|
130
|
+
background: transparent;
|
|
131
|
+
color: var(--aheart-ai-text-secondary);
|
|
132
|
+
font: 12px/1.4 inherit;
|
|
133
|
+
cursor: pointer;
|
|
134
|
+
transition: border-color 120ms ease-out, background-color 120ms ease-out, color 120ms ease-out;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.aheart-ai-attachments button:hover,
|
|
138
|
+
.aheart-ai-attachments button:focus-visible {
|
|
139
|
+
border-color: #b9c2cf;
|
|
140
|
+
background: var(--aheart-ai-surface-subtle);
|
|
141
|
+
color: var(--aheart-ai-text);
|
|
142
|
+
outline: none;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.aheart-ai-sources,
|
|
146
|
+
.aheart-ai-process,
|
|
147
|
+
.aheart-ai-attachments {
|
|
148
|
+
display: grid;
|
|
149
|
+
gap: 8px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.aheart-ai-attachments,
|
|
153
|
+
.aheart-ai-sources ul,
|
|
154
|
+
.aheart-ai-process ol {
|
|
155
|
+
margin: 0;
|
|
156
|
+
padding: 0;
|
|
157
|
+
list-style: none;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.aheart-ai-attachments li,
|
|
161
|
+
.aheart-ai-sources li {
|
|
162
|
+
display: flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
justify-content: space-between;
|
|
165
|
+
gap: 8px;
|
|
166
|
+
min-block-size: 34px;
|
|
167
|
+
padding: 6px 8px;
|
|
168
|
+
border: 1px solid var(--aheart-ai-line);
|
|
169
|
+
border-radius: 5px;
|
|
170
|
+
background: var(--aheart-ai-surface-subtle);
|
|
171
|
+
font-size: 12px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.aheart-ai-sources {
|
|
175
|
+
padding-block-start: 8px;
|
|
176
|
+
border-block-start: 1px solid var(--aheart-ai-line);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.aheart-ai-sources a {
|
|
180
|
+
color: var(--aheart-ai-brand-strong);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.aheart-ai-sources h3,
|
|
184
|
+
.aheart-ai-process h3 {
|
|
185
|
+
font-size: 12px;
|
|
186
|
+
color: var(--aheart-ai-text-secondary);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.aheart-ai-process ol {
|
|
190
|
+
display: grid;
|
|
191
|
+
gap: 6px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.aheart-ai-process li {
|
|
195
|
+
position: relative;
|
|
196
|
+
display: grid;
|
|
197
|
+
gap: 2px;
|
|
198
|
+
padding-inline-start: 16px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.aheart-ai-process li::before {
|
|
202
|
+
content: "";
|
|
203
|
+
position: absolute;
|
|
204
|
+
inset-block-start: 7px;
|
|
205
|
+
inset-inline-start: 2px;
|
|
206
|
+
inline-size: 6px;
|
|
207
|
+
block-size: 6px;
|
|
208
|
+
border-radius: 50%;
|
|
209
|
+
background: #98a2b3;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.aheart-ai-process li.is-running::before {
|
|
213
|
+
background: var(--aheart-ai-cyan);
|
|
214
|
+
box-shadow: 0 0 0 3px #cffafe;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.aheart-ai-process li.is-complete::before {
|
|
218
|
+
background: #12b76a;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.aheart-ai-process li.is-stopped::before {
|
|
222
|
+
background: #98a2b3;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.aheart-ai-process li.is-error {
|
|
226
|
+
color: var(--aheart-color-danger, #d92d20);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
@media (max-width: 760px) {
|
|
230
|
+
|
|
231
|
+
.aheart-ai-bubble {
|
|
232
|
+
max-inline-size: 96%;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
@media (pointer: coarse) {
|
|
237
|
+
.aheart-ai-attachments button {
|
|
238
|
+
min-block-size: 44px;
|
|
239
|
+
min-inline-size: 44px;
|
|
240
|
+
}
|
|
241
|
+
}
|
package/es/bubble.vue.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { AIContentRenderer, AIMessage } from './types';
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
message: AIMessage;
|
|
4
4
|
contentRenderer?: AIContentRenderer | undefined;
|
|
5
|
-
}>>, {}, {}, {}, {}, import("
|
|
5
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
6
|
message: AIMessage;
|
|
7
7
|
contentRenderer?: AIContentRenderer | undefined;
|
|
8
|
-
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("
|
|
8
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
9
9
|
actions?(_: {
|
|
10
10
|
message: AIMessage;
|
|
11
11
|
}): any;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { default as AIChatPanel } from '../chat-panel.vue';
|
|
2
|
+
export { default as AIActions } from '../actions.vue';
|
|
3
|
+
export { default as AIAttachments } from '../attachments.vue';
|
|
4
|
+
export { default as AIBubble } from '../bubble.vue';
|
|
5
|
+
export { default as AIConversations } from '../conversations.vue';
|
|
6
|
+
export { default as AIPrompts } from '../prompts.vue';
|
|
7
|
+
export { default as AISender } from '../sender.vue';
|
|
8
|
+
export { default as AISources } from '../sources.vue';
|
|
9
|
+
export { default as AIWelcome } from '../welcome.vue';
|
|
10
|
+
export type * from '../types';
|
|
11
|
+
export * from '../stream-reducer';
|
package/es/chat/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { default as r } from "../chat-panel.vue.js";
|
|
2
|
+
import { default as a } from "../actions.vue.js";
|
|
3
|
+
import { default as m } from "../attachments.vue.js";
|
|
4
|
+
import { default as u } from "../bubble.vue.js";
|
|
5
|
+
import { default as d } from "../conversations.vue.js";
|
|
6
|
+
import { default as p } from "../prompts.vue.js";
|
|
7
|
+
import { default as x } from "../sender.vue.js";
|
|
8
|
+
import { default as n } from "../sources.vue.js";
|
|
9
|
+
import { default as b } from "../welcome.vue.js";
|
|
10
|
+
import { createAIStreamReducer as i, reduceAIStreamEvent as v } from "../stream-reducer.js";
|
|
11
|
+
export {
|
|
12
|
+
a as AIActions,
|
|
13
|
+
m as AIAttachments,
|
|
14
|
+
u as AIBubble,
|
|
15
|
+
r as AIChatPanel,
|
|
16
|
+
d as AIConversations,
|
|
17
|
+
p as AIPrompts,
|
|
18
|
+
x as AISender,
|
|
19
|
+
n as AISources,
|
|
20
|
+
b as AIWelcome,
|
|
21
|
+
i as createAIStreamReducer,
|
|
22
|
+
v as reduceAIStreamEvent
|
|
23
|
+
};
|