@aheart-ui/ai 1.0.0 → 1.2.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 (130) hide show
  1. package/README.md +10 -1
  2. package/es/actions/index.d.ts +2 -0
  3. package/es/actions/index.js +5 -0
  4. package/es/actions/style.css +36 -0
  5. package/es/actions.vue.d.ts +4 -4
  6. package/es/agent/index.d.ts +5 -0
  7. package/es/agent/index.js +12 -0
  8. package/es/agent/style.css +3241 -0
  9. package/es/agent-execution.vue.d.ts +4 -4
  10. package/es/agent-execution.vue.js +2 -2
  11. package/es/agent-workbench/index.d.ts +2 -0
  12. package/es/agent-workbench/index.js +5 -0
  13. package/es/agent-workbench/style.css +2423 -0
  14. package/es/agent-workbench.vue.d.ts +4 -4
  15. package/es/agent-workbench.vue.js +10 -7
  16. package/es/attachments/index.d.ts +2 -0
  17. package/es/attachments/index.js +5 -0
  18. package/es/attachments/style.css +62 -0
  19. package/es/attachments.vue.d.ts +4 -4
  20. package/es/bubble/index.d.ts +2 -0
  21. package/es/bubble/index.js +5 -0
  22. package/es/bubble/style.css +241 -0
  23. package/es/bubble.vue.d.ts +3 -3
  24. package/es/chat/index.d.ts +11 -0
  25. package/es/chat/index.js +23 -0
  26. package/es/chat/style.css +595 -0
  27. package/es/chat-panel/index.d.ts +3 -0
  28. package/es/chat-panel/index.js +8 -0
  29. package/es/chat-panel/style.css +591 -0
  30. package/es/chat-panel.vue.d.ts +4 -4
  31. package/es/conversations/index.d.ts +2 -0
  32. package/es/conversations/index.js +5 -0
  33. package/es/conversations/style.css +48 -0
  34. package/es/conversations.vue.d.ts +4 -4
  35. package/es/form/index.d.ts +3 -0
  36. package/es/form/index.js +9 -0
  37. package/es/form/style.css +3175 -0
  38. package/es/form-field.vue.d.ts +4 -4
  39. package/es/form-field.vue.js +53 -43
  40. package/es/form.vue.d.ts +4 -4
  41. package/es/form.vue.js +7 -6
  42. package/es/process/index.d.ts +2 -0
  43. package/es/process/index.js +5 -0
  44. package/es/process/style.css +77 -0
  45. package/es/process.vue.d.ts +3 -3
  46. package/es/prompts/index.d.ts +2 -0
  47. package/es/prompts/index.js +5 -0
  48. package/es/prompts/style.css +76 -0
  49. package/es/prompts.vue.d.ts +4 -4
  50. package/es/sender/index.d.ts +2 -0
  51. package/es/sender/index.js +5 -0
  52. package/es/sender/style.css +88 -0
  53. package/es/sender.vue.d.ts +4 -4
  54. package/es/sources/index.d.ts +2 -0
  55. package/es/sources/index.js +5 -0
  56. package/es/sources/style.css +54 -0
  57. package/es/sources.vue.d.ts +3 -3
  58. package/es/thought-chain/index.d.ts +2 -0
  59. package/es/thought-chain/index.js +5 -0
  60. package/es/thought-chain/style.css +77 -0
  61. package/es/thought-chain.vue.d.ts +3 -3
  62. package/es/welcome/index.d.ts +2 -0
  63. package/es/welcome/index.js +5 -0
  64. package/es/welcome/style.css +33 -0
  65. package/es/welcome.vue.d.ts +3 -3
  66. package/lib/actions/index.d.ts +2 -0
  67. package/lib/actions/index.js +1 -0
  68. package/lib/actions/style.css +36 -0
  69. package/lib/actions.vue.d.ts +4 -4
  70. package/lib/agent/index.d.ts +5 -0
  71. package/lib/agent/index.js +1 -0
  72. package/lib/agent/style.css +3241 -0
  73. package/lib/agent-execution.vue.d.ts +4 -4
  74. package/lib/agent-execution.vue.js +1 -1
  75. package/lib/agent-workbench/index.d.ts +2 -0
  76. package/lib/agent-workbench/index.js +1 -0
  77. package/lib/agent-workbench/style.css +2423 -0
  78. package/lib/agent-workbench.vue.d.ts +4 -4
  79. package/lib/agent-workbench.vue.js +1 -1
  80. package/lib/attachments/index.d.ts +2 -0
  81. package/lib/attachments/index.js +1 -0
  82. package/lib/attachments/style.css +62 -0
  83. package/lib/attachments.vue.d.ts +4 -4
  84. package/lib/bubble/index.d.ts +2 -0
  85. package/lib/bubble/index.js +1 -0
  86. package/lib/bubble/style.css +241 -0
  87. package/lib/bubble.vue.d.ts +3 -3
  88. package/lib/chat/index.d.ts +11 -0
  89. package/lib/chat/index.js +1 -0
  90. package/lib/chat/style.css +595 -0
  91. package/lib/chat-panel/index.d.ts +3 -0
  92. package/lib/chat-panel/index.js +1 -0
  93. package/lib/chat-panel/style.css +591 -0
  94. package/lib/chat-panel.vue.d.ts +4 -4
  95. package/lib/conversations/index.d.ts +2 -0
  96. package/lib/conversations/index.js +1 -0
  97. package/lib/conversations/style.css +48 -0
  98. package/lib/conversations.vue.d.ts +4 -4
  99. package/lib/form/index.d.ts +3 -0
  100. package/lib/form/index.js +1 -0
  101. package/lib/form/style.css +3175 -0
  102. package/lib/form-field.vue.d.ts +4 -4
  103. package/lib/form-field.vue.js +1 -1
  104. package/lib/form.vue.d.ts +4 -4
  105. package/lib/form.vue.js +1 -1
  106. package/lib/process/index.d.ts +2 -0
  107. package/lib/process/index.js +1 -0
  108. package/lib/process/style.css +77 -0
  109. package/lib/process.vue.d.ts +3 -3
  110. package/lib/prompts/index.d.ts +2 -0
  111. package/lib/prompts/index.js +1 -0
  112. package/lib/prompts/style.css +76 -0
  113. package/lib/prompts.vue.d.ts +4 -4
  114. package/lib/sender/index.d.ts +2 -0
  115. package/lib/sender/index.js +1 -0
  116. package/lib/sender/style.css +88 -0
  117. package/lib/sender.vue.d.ts +4 -4
  118. package/lib/sources/index.d.ts +2 -0
  119. package/lib/sources/index.js +1 -0
  120. package/lib/sources/style.css +54 -0
  121. package/lib/sources.vue.d.ts +3 -3
  122. package/lib/thought-chain/index.d.ts +2 -0
  123. package/lib/thought-chain/index.js +1 -0
  124. package/lib/thought-chain/style.css +77 -0
  125. package/lib/thought-chain.vue.d.ts +3 -3
  126. package/lib/welcome/index.d.ts +2 -0
  127. package/lib/welcome/index.js +1 -0
  128. package/lib/welcome/style.css +33 -0
  129. package/lib/welcome.vue.d.ts +3 -3
  130. package/package.json +106 -4
@@ -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("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
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("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
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("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
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("@vue/runtime-core").ComponentProvideOptions, true, {}, any>, {
146
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
147
147
  sources?(_: {
148
148
  sources: AISource[];
149
149
  }): any;
@@ -1,6 +1,9 @@
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
- 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";
2
+ import { Button as N } from "aheart-ui/button";
3
+ import { Drawer as We } from "aheart-ui/drawer";
4
+ import { Splitter as Ge, SplitterPanel as ne } from "aheart-ui/splitter";
5
+ import { Tabs as Xe } from "aheart-ui/tabs";
6
+ import { SortableList as Ye } from "@aheart-ui/dnd/sortable";
4
7
  import Ce from "./attachments.vue.js";
5
8
  import Qe from "./chat-panel.vue.js";
6
9
  import xe from "./conversations.vue.js";
@@ -30,7 +33,7 @@ const tt = {
30
33
  }, yt = { class: "aheart-ai-workbench__context-list-mobile" }, wt = ["data-context-id"], It = { key: 0 }, $t = { class: "aheart-ai-workbench__move-actions" }, Ct = { class: "aheart-ai-workbench__mobile-panel" }, xt = { class: "aheart-ai-workbench__mobile-panel--chat" }, St = ["id"], At = {
31
34
  key: 0,
32
35
  class: "aheart-ai-workbench__empty"
33
- }, Tt = { class: "aheart-ai-workbench__mobile-panel" }, Ut = /* @__PURE__ */ Be({
36
+ }, Tt = { class: "aheart-ai-workbench__mobile-panel" }, Dt = /* @__PURE__ */ Be({
34
37
  name: "AAIAgentWorkbench",
35
38
  __name: "agent-workbench",
36
39
  props: {
@@ -262,7 +265,7 @@ const tt = {
262
265
  ])
263
266
  ]),
264
267
  u("div", it, [
265
- m(y(We), {
268
+ m(y(Ge), {
266
269
  sizes: l.panelSizes,
267
270
  "default-sizes": [150, "auto", 200],
268
271
  "onUpdate:sizes": e[13] || (e[13] = (a) => v("update:panelSizes", a))
@@ -427,7 +430,7 @@ const tt = {
427
430
  }, 8, ["sizes"])
428
431
  ]),
429
432
  u("div", ht, [
430
- m(y(Ge), {
433
+ m(y(Xe), {
431
434
  items: je.value,
432
435
  "active-key": J(j.value),
433
436
  "onUpdate:activeKey": e[14] || (e[14] = (a) => j.value = String(a).split("--")[0])
@@ -509,7 +512,7 @@ const tt = {
509
512
  ], 512), [
510
513
  [se, j.value === "execution"]
511
514
  ]),
512
- m(y(Xe), {
515
+ m(y(We), {
513
516
  open: D.value,
514
517
  "onUpdate:open": e[17] || (e[17] = (a) => D.value = a),
515
518
  title: "执行与产物",
@@ -533,5 +536,5 @@ const tt = {
533
536
  }
534
537
  });
535
538
  export {
536
- Ut as default
539
+ Dt as default
537
540
  };
@@ -0,0 +1,2 @@
1
+ export { default as AIAttachments, default } from '../attachments.vue';
2
+ export type * from '../types';
@@ -0,0 +1,5 @@
1
+ import { default as e, default as f } from "../attachments.vue.js";
2
+ export {
3
+ e as AIAttachments,
4
+ f as default
5
+ };
@@ -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
+ }
@@ -1,13 +1,13 @@
1
1
  import type { AIAttachment } from './types';
2
- declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
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("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
8
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  remove: (item: AIAttachment) => void;
10
- }, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
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("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
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,2 @@
1
+ export { default as AIBubble, default } from '../bubble.vue';
2
+ export type * from '../types';
@@ -0,0 +1,5 @@
1
+ import { default as f, default as l } from "../bubble.vue.js";
2
+ export {
3
+ f as AIBubble,
4
+ l as default
5
+ };
@@ -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
+ }
@@ -1,11 +1,11 @@
1
1
  import type { AIContentRenderer, AIMessage } from './types';
2
- declare const _default: __VLS_WithTemplateSlots<import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
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("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
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("@vue/runtime-core").ComponentProvideOptions, true, {}, any>, {
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';
@@ -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
+ };