@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
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
margin: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.aheart-ai-sources {
|
|
19
|
+
display: grid;
|
|
20
|
+
gap: 8px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.aheart-ai-sources ul {
|
|
24
|
+
margin: 0;
|
|
25
|
+
padding: 0;
|
|
26
|
+
list-style: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.aheart-ai-sources li {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: space-between;
|
|
33
|
+
gap: 8px;
|
|
34
|
+
min-block-size: 34px;
|
|
35
|
+
padding: 6px 8px;
|
|
36
|
+
border: 1px solid var(--aheart-ai-line);
|
|
37
|
+
border-radius: 5px;
|
|
38
|
+
background: var(--aheart-ai-surface-subtle);
|
|
39
|
+
font-size: 12px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.aheart-ai-sources {
|
|
43
|
+
padding-block-start: 8px;
|
|
44
|
+
border-block-start: 1px solid var(--aheart-ai-line);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.aheart-ai-sources a {
|
|
48
|
+
color: var(--aheart-ai-brand-strong);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.aheart-ai-sources h3 {
|
|
52
|
+
font-size: 12px;
|
|
53
|
+
color: var(--aheart-ai-text-secondary);
|
|
54
|
+
}
|
package/es/sources.vue.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { AISource } from './types';
|
|
2
|
-
declare const _default: import("
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
sources?: AISource[] | undefined;
|
|
4
4
|
}>, {
|
|
5
5
|
sources: () => never[];
|
|
6
|
-
}>>, {}, {}, {}, {}, import("
|
|
6
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
7
7
|
sources?: AISource[] | undefined;
|
|
8
8
|
}>, {
|
|
9
9
|
sources: () => never[];
|
|
10
10
|
}>>> & Readonly<{}>, {
|
|
11
11
|
sources: AISource[];
|
|
12
|
-
}, {}, {}, {}, string, import("
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
13
13
|
export default _default;
|
|
14
14
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
15
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -0,0 +1,77 @@
|
|
|
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-process h3 {
|
|
14
|
+
margin: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.aheart-ai-process small {
|
|
18
|
+
display: block;
|
|
19
|
+
color: var(--aheart-ai-text-secondary);
|
|
20
|
+
font-size: 12px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.aheart-ai-process {
|
|
24
|
+
display: grid;
|
|
25
|
+
gap: 8px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.aheart-ai-process ol {
|
|
29
|
+
margin: 0;
|
|
30
|
+
padding: 0;
|
|
31
|
+
list-style: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.aheart-ai-process h3 {
|
|
35
|
+
font-size: 12px;
|
|
36
|
+
color: var(--aheart-ai-text-secondary);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.aheart-ai-process ol {
|
|
40
|
+
display: grid;
|
|
41
|
+
gap: 6px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.aheart-ai-process li {
|
|
45
|
+
position: relative;
|
|
46
|
+
display: grid;
|
|
47
|
+
gap: 2px;
|
|
48
|
+
padding-inline-start: 16px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.aheart-ai-process li::before {
|
|
52
|
+
content: "";
|
|
53
|
+
position: absolute;
|
|
54
|
+
inset-block-start: 7px;
|
|
55
|
+
inset-inline-start: 2px;
|
|
56
|
+
inline-size: 6px;
|
|
57
|
+
block-size: 6px;
|
|
58
|
+
border-radius: 50%;
|
|
59
|
+
background: #98a2b3;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.aheart-ai-process li.is-running::before {
|
|
63
|
+
background: var(--aheart-ai-cyan);
|
|
64
|
+
box-shadow: 0 0 0 3px #cffafe;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.aheart-ai-process li.is-complete::before {
|
|
68
|
+
background: #12b76a;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.aheart-ai-process li.is-stopped::before {
|
|
72
|
+
background: #98a2b3;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.aheart-ai-process li.is-error {
|
|
76
|
+
color: var(--aheart-color-danger, #d92d20);
|
|
77
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { AIProcessItem } from './types';
|
|
2
|
-
declare const _default: import("
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
items?: AIProcessItem[] | undefined;
|
|
4
4
|
}>, {
|
|
5
5
|
items: () => never[];
|
|
6
|
-
}>>, {}, {}, {}, {}, import("
|
|
6
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
7
7
|
items?: AIProcessItem[] | undefined;
|
|
8
8
|
}>, {
|
|
9
9
|
items: () => never[];
|
|
10
10
|
}>>> & Readonly<{}>, {
|
|
11
11
|
items: AIProcessItem[];
|
|
12
|
-
}, {}, {}, {}, string, import("
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
13
13
|
export default _default;
|
|
14
14
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
15
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -0,0 +1,33 @@
|
|
|
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-welcome {
|
|
14
|
+
display: grid;
|
|
15
|
+
gap: 6px;
|
|
16
|
+
max-inline-size: 620px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.aheart-ai-welcome__title,
|
|
20
|
+
.aheart-ai-welcome__description {
|
|
21
|
+
margin: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.aheart-ai-welcome__title {
|
|
25
|
+
color: var(--aheart-ai-text);
|
|
26
|
+
font-size: 24px;
|
|
27
|
+
line-height: 1.35;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.aheart-ai-welcome__description {
|
|
31
|
+
color: var(--aheart-ai-text-secondary);
|
|
32
|
+
line-height: 1.65;
|
|
33
|
+
}
|
package/es/welcome.vue.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
title?: string | undefined;
|
|
3
3
|
description?: string | undefined;
|
|
4
4
|
}>, {
|
|
5
5
|
title: string;
|
|
6
6
|
description: undefined;
|
|
7
|
-
}>>, {}, {}, {}, {}, import("
|
|
7
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
8
|
title?: string | undefined;
|
|
9
9
|
description?: string | undefined;
|
|
10
10
|
}>, {
|
|
@@ -13,7 +13,7 @@ declare const _default: __VLS_WithTemplateSlots<import("@vue/runtime-core").Defi
|
|
|
13
13
|
}>>> & Readonly<{}>, {
|
|
14
14
|
title: string;
|
|
15
15
|
description: string;
|
|
16
|
-
}, {}, {}, {}, string, import("
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
17
17
|
default?(_: {}): any;
|
|
18
18
|
}>;
|
|
19
19
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../actions.vue.js");exports.AIActions=e.default;exports.default=e.default;
|
|
@@ -0,0 +1,36 @@
|
|
|
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-actions 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-actions button:hover,
|
|
26
|
+
.aheart-ai-actions 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-actions {
|
|
34
|
+
display: grid;
|
|
35
|
+
gap: 8px;
|
|
36
|
+
}
|
package/lib/actions.vue.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { AIAction } from './types';
|
|
2
|
-
declare const _default: import("
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
actions?: AIAction[] | undefined;
|
|
4
4
|
}>, {
|
|
5
5
|
actions: () => never[];
|
|
6
|
-
}>>, {}, {}, {}, {}, import("
|
|
6
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
select: (action: AIAction) => void;
|
|
8
|
-
}, string, import("
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
9
|
actions?: AIAction[] | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
actions: () => never[];
|
|
@@ -13,7 +13,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue
|
|
|
13
13
|
onSelect?: ((action: AIAction) => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
15
|
actions: AIAction[];
|
|
16
|
-
}, {}, {}, {}, string, import("
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
17
17
|
export default _default;
|
|
18
18
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
19
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("../process.vue.js"),t=require("../thought-chain.vue.js"),r=require("../form.vue.js"),e=require("../form-schema.js");exports.AIProcess=_.default;exports.AIThoughtChain=t.default;exports.AIForm=r.default;exports.AI_FORM_CONDITION_OPERATORS=e.AI_FORM_CONDITION_OPERATORS;exports.AI_FORM_FIELD_TYPES=e.AI_FORM_FIELD_TYPES;exports.validateAIFormSchema=e.validateAIFormSchema;
|
|
@@ -0,0 +1,308 @@
|
|
|
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-visually-hidden {
|
|
14
|
+
position: absolute;
|
|
15
|
+
width: 1px;
|
|
16
|
+
height: 1px;
|
|
17
|
+
padding: 0;
|
|
18
|
+
margin: -1px;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
clip: rect(0, 0, 0, 0);
|
|
21
|
+
white-space: nowrap;
|
|
22
|
+
border: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.aheart-ai-form {
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
color: var(--aheart-color-text, var(--aheart-ai-text));
|
|
28
|
+
letter-spacing: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.aheart-ai-form * {
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.aheart-ai-process h3 {
|
|
36
|
+
margin: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.aheart-ai-process small {
|
|
40
|
+
display: block;
|
|
41
|
+
color: var(--aheart-ai-text-secondary);
|
|
42
|
+
font-size: 12px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.aheart-ai-process {
|
|
46
|
+
display: grid;
|
|
47
|
+
gap: 8px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.aheart-ai-process ol {
|
|
51
|
+
margin: 0;
|
|
52
|
+
padding: 0;
|
|
53
|
+
list-style: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.aheart-ai-process h3 {
|
|
57
|
+
font-size: 12px;
|
|
58
|
+
color: var(--aheart-ai-text-secondary);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.aheart-ai-process ol {
|
|
62
|
+
display: grid;
|
|
63
|
+
gap: 6px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.aheart-ai-process li {
|
|
67
|
+
position: relative;
|
|
68
|
+
display: grid;
|
|
69
|
+
gap: 2px;
|
|
70
|
+
padding-inline-start: 16px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.aheart-ai-process li::before {
|
|
74
|
+
content: "";
|
|
75
|
+
position: absolute;
|
|
76
|
+
inset-block-start: 7px;
|
|
77
|
+
inset-inline-start: 2px;
|
|
78
|
+
inline-size: 6px;
|
|
79
|
+
block-size: 6px;
|
|
80
|
+
border-radius: 50%;
|
|
81
|
+
background: #98a2b3;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.aheart-ai-process li.is-running::before {
|
|
85
|
+
background: var(--aheart-ai-cyan);
|
|
86
|
+
box-shadow: 0 0 0 3px #cffafe;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.aheart-ai-process li.is-complete::before {
|
|
90
|
+
background: #12b76a;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.aheart-ai-process li.is-stopped::before {
|
|
94
|
+
background: #98a2b3;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.aheart-ai-process li.is-error {
|
|
98
|
+
color: var(--aheart-color-danger, #d92d20);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.aheart-ai-form {
|
|
102
|
+
display: grid;
|
|
103
|
+
gap: 20px;
|
|
104
|
+
inline-size: min(100%, 760px);
|
|
105
|
+
padding: clamp(18px, 4vw, 32px);
|
|
106
|
+
border: 1px solid var(--aheart-ai-line);
|
|
107
|
+
border-radius: 8px;
|
|
108
|
+
background: var(--aheart-ai-surface);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.aheart-ai-form__header {
|
|
112
|
+
display: grid;
|
|
113
|
+
gap: 5px;
|
|
114
|
+
padding-block-end: 18px;
|
|
115
|
+
border-block-end: 1px solid var(--aheart-ai-line);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.aheart-ai-form__header h2,
|
|
119
|
+
.aheart-ai-form__header p {
|
|
120
|
+
margin: 0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.aheart-ai-form__header h2 {
|
|
124
|
+
color: var(--aheart-ai-text);
|
|
125
|
+
font-size: 20px;
|
|
126
|
+
line-height: 1.4;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.aheart-ai-form__header p {
|
|
130
|
+
color: var(--aheart-ai-text-secondary);
|
|
131
|
+
line-height: 1.6;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.aheart-ai-form__group {
|
|
135
|
+
display: grid;
|
|
136
|
+
gap: 16px;
|
|
137
|
+
min-inline-size: 0;
|
|
138
|
+
margin: 0;
|
|
139
|
+
padding: 0;
|
|
140
|
+
border: 0;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
fieldset.aheart-ai-form__group {
|
|
144
|
+
padding-block-start: 16px;
|
|
145
|
+
border-block-start: 1px solid var(--aheart-ai-line);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.aheart-ai-form__group legend {
|
|
149
|
+
display: grid;
|
|
150
|
+
gap: 3px;
|
|
151
|
+
inline-size: 100%;
|
|
152
|
+
padding: 0;
|
|
153
|
+
color: var(--aheart-ai-text);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.aheart-ai-form__group legend span {
|
|
157
|
+
font-weight: 650;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.aheart-ai-form__group legend small,
|
|
161
|
+
.aheart-ai-form__field-description {
|
|
162
|
+
color: var(--aheart-ai-text-secondary);
|
|
163
|
+
font-size: 12px;
|
|
164
|
+
line-height: 1.5;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.aheart-ai-form__field {
|
|
168
|
+
display: grid;
|
|
169
|
+
grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
|
|
170
|
+
column-gap: 18px;
|
|
171
|
+
row-gap: 6px;
|
|
172
|
+
align-items: start;
|
|
173
|
+
padding: 3px 0;
|
|
174
|
+
border-radius: 5px;
|
|
175
|
+
outline: none;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.aheart-ai-form__field:focus-visible {
|
|
179
|
+
box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.15);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.aheart-ai-form__field > label {
|
|
183
|
+
grid-column: 1;
|
|
184
|
+
grid-row: 1;
|
|
185
|
+
padding-block-start: 7px;
|
|
186
|
+
color: #344054;
|
|
187
|
+
font-weight: 550;
|
|
188
|
+
line-height: 1.5;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.aheart-ai-form__field-description {
|
|
192
|
+
grid-column: 1;
|
|
193
|
+
grid-row: 2;
|
|
194
|
+
margin: 0;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.aheart-ai-form__field > :not(label):not(.aheart-ai-form__field-description):not(.aheart-ai-form__field-error):not(.aheart-switch) {
|
|
198
|
+
grid-column: 2;
|
|
199
|
+
grid-row: 1 / span 2;
|
|
200
|
+
inline-size: 100%;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.aheart-ai-form__field > .aheart-switch {
|
|
204
|
+
grid-column: 2;
|
|
205
|
+
grid-row: 1 / span 2;
|
|
206
|
+
justify-self: start;
|
|
207
|
+
inline-size: fit-content;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.aheart-ai-form__required {
|
|
211
|
+
margin-inline-start: 3px;
|
|
212
|
+
color: var(--aheart-color-danger, #d92d20);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.aheart-ai-form__field-error {
|
|
216
|
+
grid-column: 2;
|
|
217
|
+
margin: 0;
|
|
218
|
+
color: var(--aheart-color-danger, #d92d20);
|
|
219
|
+
font-size: 12px;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.aheart-ai-form__field.is-error {
|
|
223
|
+
padding: 8px;
|
|
224
|
+
background: #fff7f6;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.aheart-ai-form__error-summary,
|
|
228
|
+
.aheart-ai-form__submit-error,
|
|
229
|
+
.aheart-ai-form__error {
|
|
230
|
+
border-inline-start: 3px solid var(--aheart-color-danger, #d92d20);
|
|
231
|
+
background: #fff7f6;
|
|
232
|
+
color: #912018;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.aheart-ai-form__error-summary {
|
|
236
|
+
display: grid;
|
|
237
|
+
gap: 8px;
|
|
238
|
+
padding: 12px 14px;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.aheart-ai-form__error-summary ul,
|
|
242
|
+
.aheart-ai-form__error ul {
|
|
243
|
+
display: grid;
|
|
244
|
+
gap: 4px;
|
|
245
|
+
margin: 0;
|
|
246
|
+
padding-inline-start: 20px;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.aheart-ai-form__error-summary button {
|
|
250
|
+
padding: 0;
|
|
251
|
+
border: 0;
|
|
252
|
+
background: transparent;
|
|
253
|
+
color: inherit;
|
|
254
|
+
font: inherit;
|
|
255
|
+
text-decoration: underline;
|
|
256
|
+
cursor: pointer;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.aheart-ai-form__submit-error {
|
|
260
|
+
margin: 0;
|
|
261
|
+
padding: 9px 12px;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.aheart-ai-form__footer {
|
|
265
|
+
display: flex;
|
|
266
|
+
justify-content: flex-end;
|
|
267
|
+
padding-block-start: 16px;
|
|
268
|
+
border-block-start: 1px solid var(--aheart-ai-line);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.aheart-ai-form__error {
|
|
272
|
+
display: grid;
|
|
273
|
+
gap: 8px;
|
|
274
|
+
max-inline-size: 760px;
|
|
275
|
+
padding: 16px;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
@media (max-width: 760px) {
|
|
279
|
+
|
|
280
|
+
.aheart-ai-form {
|
|
281
|
+
padding: 18px 14px;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.aheart-ai-form__field {
|
|
285
|
+
grid-template-columns: minmax(0, 1fr);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.aheart-ai-form__field > label,
|
|
289
|
+
.aheart-ai-form__field-description,
|
|
290
|
+
.aheart-ai-form__field > :not(label):not(.aheart-ai-form__field-description):not(.aheart-ai-form__field-error):not(.aheart-switch),
|
|
291
|
+
.aheart-ai-form__field > .aheart-switch,
|
|
292
|
+
.aheart-ai-form__field-error {
|
|
293
|
+
grid-column: 1;
|
|
294
|
+
grid-row: auto;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.aheart-ai-form__field > label {
|
|
298
|
+
padding-block-start: 0;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
@media (prefers-reduced-motion: reduce) {
|
|
303
|
+
.aheart-ai-form * {
|
|
304
|
+
scroll-behavior: auto !important;
|
|
305
|
+
transition-duration: 0.01ms !important;
|
|
306
|
+
animation-duration: 0.01ms !important;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AIAgentArtifact, AIAgentTask } from './types';
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
tasks?: AIAgentTask[] | undefined;
|
|
4
4
|
artifacts?: AIAgentArtifact[] | undefined;
|
|
5
5
|
activeArtifact?: string | undefined;
|
|
@@ -20,7 +20,7 @@ declare const _default: __VLS_WithTemplateSlots<import("@vue/runtime-core").Defi
|
|
|
20
20
|
actionDisabled: () => false;
|
|
21
21
|
operationMessages: () => {};
|
|
22
22
|
validateCandidate: () => undefined;
|
|
23
|
-
}>>, {}, {}, {}, {}, import("
|
|
23
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
24
|
retry: (task: AIAgentTask) => void;
|
|
25
25
|
approve: (task: AIAgentTask) => void;
|
|
26
26
|
reject: (task: AIAgentTask) => void;
|
|
@@ -29,7 +29,7 @@ declare const _default: __VLS_WithTemplateSlots<import("@vue/runtime-core").Defi
|
|
|
29
29
|
"move-task": (id: string, direction: "up" | "down") => void;
|
|
30
30
|
"move-task-reject": (reason: string) => void;
|
|
31
31
|
"select-artifact": (artifact: AIAgentArtifact) => void;
|
|
32
|
-
}, string, import("
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
33
33
|
tasks?: AIAgentTask[] | undefined;
|
|
34
34
|
artifacts?: AIAgentArtifact[] | undefined;
|
|
35
35
|
activeArtifact?: string | undefined;
|
|
@@ -69,7 +69,7 @@ declare const _default: __VLS_WithTemplateSlots<import("@vue/runtime-core").Defi
|
|
|
69
69
|
actionDisabled: (task: AIAgentTask, action: string) => boolean;
|
|
70
70
|
operationMessages: Record<string, string>;
|
|
71
71
|
validateCandidate: (tasks: AIAgentTask[]) => string | undefined;
|
|
72
|
-
}, {}, {}, {}, string, import("
|
|
72
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
73
73
|
task?(_: {
|
|
74
74
|
task: AIAgentTask;
|
|
75
75
|
index: number;
|