@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.
Files changed (205) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +30 -2
  3. package/es/actions/index.d.ts +2 -0
  4. package/es/actions/index.js +5 -0
  5. package/es/actions/style.css +36 -0
  6. package/es/actions.vue.d.ts +34 -0
  7. package/es/actions.vue.js +27 -0
  8. package/es/actions.vue2.js +4 -0
  9. package/es/agent/index.d.ts +5 -0
  10. package/es/agent/index.js +12 -0
  11. package/es/agent/style.css +308 -0
  12. package/es/agent-execution.vue.d.ts +106 -0
  13. package/es/agent-execution.vue.js +441 -0
  14. package/es/agent-execution.vue2.js +4 -0
  15. package/es/agent-workbench/index.d.ts +2 -0
  16. package/es/agent-workbench/index.js +5 -0
  17. package/es/agent-workbench/style.css +1332 -0
  18. package/es/agent-workbench.vue.d.ts +186 -0
  19. package/es/agent-workbench.vue.js +537 -0
  20. package/es/agent-workbench.vue2.js +4 -0
  21. package/es/attachments/index.d.ts +2 -0
  22. package/es/attachments/index.js +5 -0
  23. package/es/attachments/style.css +62 -0
  24. package/es/attachments.vue.d.ts +39 -0
  25. package/es/attachments.vue.js +39 -0
  26. package/es/attachments.vue2.js +4 -0
  27. package/es/bubble/index.d.ts +2 -0
  28. package/es/bubble/index.js +5 -0
  29. package/es/bubble/style.css +241 -0
  30. package/es/bubble.vue.d.ts +27 -0
  31. package/es/bubble.vue.js +82 -0
  32. package/es/bubble.vue2.js +4 -0
  33. package/es/chat/index.d.ts +11 -0
  34. package/es/chat/index.js +23 -0
  35. package/es/chat/style.css +595 -0
  36. package/es/chat-panel/index.d.ts +3 -0
  37. package/es/chat-panel/index.js +8 -0
  38. package/es/chat-panel/style.css +595 -0
  39. package/es/chat-panel.vue.d.ts +108 -0
  40. package/es/chat-panel.vue.js +330 -0
  41. package/es/chat-panel.vue2.js +4 -0
  42. package/es/conversations/index.d.ts +2 -0
  43. package/es/conversations/index.js +5 -0
  44. package/es/conversations/style.css +48 -0
  45. package/es/conversations.vue.d.ts +39 -0
  46. package/es/conversations.vue.js +29 -0
  47. package/es/conversations.vue2.js +4 -0
  48. package/es/form/index.d.ts +3 -0
  49. package/es/form/index.js +9 -0
  50. package/es/form/style.css +242 -0
  51. package/es/form-field.vue.d.ts +28 -0
  52. package/es/form-field.vue.js +176 -0
  53. package/es/form-field.vue2.js +4 -0
  54. package/es/form-schema.d.ts +73 -0
  55. package/es/form-schema.js +105 -0
  56. package/es/form.vue.d.ts +81 -0
  57. package/es/form.vue.js +376 -0
  58. package/es/form.vue2.js +4 -0
  59. package/es/index.d.ts +20 -0
  60. package/es/index.js +42 -0
  61. package/es/package.json +3 -0
  62. package/es/process/index.d.ts +2 -0
  63. package/es/process/index.js +5 -0
  64. package/es/process/style.css +77 -0
  65. package/es/process.vue.d.ts +30 -0
  66. package/es/process.vue.js +29 -0
  67. package/es/process.vue2.js +4 -0
  68. package/es/prompts/index.d.ts +2 -0
  69. package/es/prompts/index.js +5 -0
  70. package/es/prompts/style.css +76 -0
  71. package/es/prompts.vue.d.ts +39 -0
  72. package/es/prompts.vue.js +33 -0
  73. package/es/prompts.vue2.js +4 -0
  74. package/es/safe-markdown.d.ts +3 -0
  75. package/es/safe-markdown.js +23 -0
  76. package/es/sender/index.d.ts +2 -0
  77. package/es/sender/index.js +5 -0
  78. package/es/sender/style.css +88 -0
  79. package/es/sender.vue.d.ts +52 -0
  80. package/es/sender.vue.js +46 -0
  81. package/es/sender.vue2.js +4 -0
  82. package/es/sources/index.d.ts +2 -0
  83. package/es/sources/index.js +5 -0
  84. package/es/sources/style.css +54 -0
  85. package/es/sources.vue.d.ts +30 -0
  86. package/es/sources.vue.js +34 -0
  87. package/es/sources.vue2.js +4 -0
  88. package/es/stream-reducer.d.ts +35 -0
  89. package/es/stream-reducer.js +85 -0
  90. package/es/style.css +1586 -0
  91. package/es/thought-chain/index.d.ts +2 -0
  92. package/es/thought-chain/index.js +5 -0
  93. package/es/thought-chain/style.css +77 -0
  94. package/es/thought-chain.vue.d.ts +30 -0
  95. package/es/thought-chain.vue.js +15 -0
  96. package/es/thought-chain.vue2.js +4 -0
  97. package/es/types.d.ts +203 -0
  98. package/es/welcome/index.d.ts +2 -0
  99. package/es/welcome/index.js +5 -0
  100. package/es/welcome/style.css +33 -0
  101. package/es/welcome.vue.d.ts +41 -0
  102. package/es/welcome.vue.js +27 -0
  103. package/es/welcome.vue2.js +4 -0
  104. package/lib/actions/index.d.ts +2 -0
  105. package/lib/actions/index.js +1 -0
  106. package/lib/actions/style.css +36 -0
  107. package/lib/actions.vue.d.ts +34 -0
  108. package/lib/actions.vue.js +1 -0
  109. package/lib/actions.vue2.js +1 -0
  110. package/lib/agent/index.d.ts +5 -0
  111. package/lib/agent/index.js +1 -0
  112. package/lib/agent/style.css +308 -0
  113. package/lib/agent-execution.vue.d.ts +106 -0
  114. package/lib/agent-execution.vue.js +1 -0
  115. package/lib/agent-execution.vue2.js +1 -0
  116. package/lib/agent-workbench/index.d.ts +2 -0
  117. package/lib/agent-workbench/index.js +1 -0
  118. package/lib/agent-workbench/style.css +1332 -0
  119. package/lib/agent-workbench.vue.d.ts +186 -0
  120. package/lib/agent-workbench.vue.js +1 -0
  121. package/lib/agent-workbench.vue2.js +1 -0
  122. package/lib/attachments/index.d.ts +2 -0
  123. package/lib/attachments/index.js +1 -0
  124. package/lib/attachments/style.css +62 -0
  125. package/lib/attachments.vue.d.ts +39 -0
  126. package/lib/attachments.vue.js +1 -0
  127. package/lib/attachments.vue2.js +1 -0
  128. package/lib/bubble/index.d.ts +2 -0
  129. package/lib/bubble/index.js +1 -0
  130. package/lib/bubble/style.css +241 -0
  131. package/lib/bubble.vue.d.ts +27 -0
  132. package/lib/bubble.vue.js +1 -0
  133. package/lib/bubble.vue2.js +1 -0
  134. package/lib/chat/index.d.ts +11 -0
  135. package/lib/chat/index.js +1 -0
  136. package/lib/chat/style.css +595 -0
  137. package/lib/chat-panel/index.d.ts +3 -0
  138. package/lib/chat-panel/index.js +1 -0
  139. package/lib/chat-panel/style.css +595 -0
  140. package/lib/chat-panel.vue.d.ts +108 -0
  141. package/lib/chat-panel.vue.js +1 -0
  142. package/lib/chat-panel.vue2.js +1 -0
  143. package/lib/conversations/index.d.ts +2 -0
  144. package/lib/conversations/index.js +1 -0
  145. package/lib/conversations/style.css +48 -0
  146. package/lib/conversations.vue.d.ts +39 -0
  147. package/lib/conversations.vue.js +1 -0
  148. package/lib/conversations.vue2.js +1 -0
  149. package/lib/form/index.d.ts +3 -0
  150. package/lib/form/index.js +1 -0
  151. package/lib/form/style.css +242 -0
  152. package/lib/form-field.vue.d.ts +28 -0
  153. package/lib/form-field.vue.js +1 -0
  154. package/lib/form-field.vue2.js +1 -0
  155. package/lib/form-schema.d.ts +73 -0
  156. package/lib/form-schema.js +1 -0
  157. package/lib/form.vue.d.ts +81 -0
  158. package/lib/form.vue.js +1 -0
  159. package/lib/form.vue2.js +1 -0
  160. package/lib/index.d.ts +20 -0
  161. package/lib/index.js +1 -0
  162. package/lib/package.json +3 -0
  163. package/lib/process/index.d.ts +2 -0
  164. package/lib/process/index.js +1 -0
  165. package/lib/process/style.css +77 -0
  166. package/lib/process.vue.d.ts +30 -0
  167. package/lib/process.vue.js +1 -0
  168. package/lib/process.vue2.js +1 -0
  169. package/lib/prompts/index.d.ts +2 -0
  170. package/lib/prompts/index.js +1 -0
  171. package/lib/prompts/style.css +76 -0
  172. package/lib/prompts.vue.d.ts +39 -0
  173. package/lib/prompts.vue.js +1 -0
  174. package/lib/prompts.vue2.js +1 -0
  175. package/lib/safe-markdown.d.ts +3 -0
  176. package/lib/safe-markdown.js +2 -0
  177. package/lib/sender/index.d.ts +2 -0
  178. package/lib/sender/index.js +1 -0
  179. package/lib/sender/style.css +88 -0
  180. package/lib/sender.vue.d.ts +52 -0
  181. package/lib/sender.vue.js +1 -0
  182. package/lib/sender.vue2.js +1 -0
  183. package/lib/sources/index.d.ts +2 -0
  184. package/lib/sources/index.js +1 -0
  185. package/lib/sources/style.css +54 -0
  186. package/lib/sources.vue.d.ts +30 -0
  187. package/lib/sources.vue.js +1 -0
  188. package/lib/sources.vue2.js +1 -0
  189. package/lib/stream-reducer.d.ts +35 -0
  190. package/lib/stream-reducer.js +1 -0
  191. package/lib/style.css +1586 -0
  192. package/lib/thought-chain/index.d.ts +2 -0
  193. package/lib/thought-chain/index.js +1 -0
  194. package/lib/thought-chain/style.css +77 -0
  195. package/lib/thought-chain.vue.d.ts +30 -0
  196. package/lib/thought-chain.vue.js +1 -0
  197. package/lib/thought-chain.vue2.js +1 -0
  198. package/lib/types.d.ts +203 -0
  199. package/lib/welcome/index.d.ts +2 -0
  200. package/lib/welcome/index.js +1 -0
  201. package/lib/welcome/style.css +33 -0
  202. package/lib/welcome.vue.d.ts +41 -0
  203. package/lib/welcome.vue.js +1 -0
  204. package/lib/welcome.vue2.js +1 -0
  205. package/package.json +172 -3
@@ -0,0 +1,2 @@
1
+ export { default as AIThoughtChain, default } from '../thought-chain.vue';
2
+ export type * from '../types';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../thought-chain.vue.js");exports.AIThoughtChain=e.default;exports.default=e.default;
@@ -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
+ }
@@ -0,0 +1,30 @@
1
+ import type { AIProcessItem } from './types';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ items?: AIProcessItem[] | undefined;
4
+ }>, {
5
+ items: () => never[];
6
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
7
+ items?: AIProcessItem[] | undefined;
8
+ }>, {
9
+ items: () => never[];
10
+ }>>> & Readonly<{}>, {
11
+ items: AIProcessItem[];
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
13
+ export default _default;
14
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ type __VLS_TypePropsToRuntimeProps<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: import('vue').PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };
23
+ type __VLS_WithDefaults<P, D> = {
24
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
25
+ default: D[K];
26
+ }> : P[K];
27
+ };
28
+ type __VLS_Prettify<T> = {
29
+ [K in keyof T]: T[K];
30
+ } & {};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("./process.vue.js"),n=e.defineComponent({name:"AAIThoughtChain",__name:"thought-chain",props:{items:{default:()=>[]}},setup(t){return(r,s)=>(e.openBlock(),e.createBlock(u.default,{items:t.items},null,8,["items"]))}});exports.default=n;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./thought-chain.vue.js");exports.default=e.default;
package/lib/types.d.ts ADDED
@@ -0,0 +1,203 @@
1
+ export type AIMessageRole = 'user' | 'assistant' | 'system' | 'tool';
2
+ export type AIMessageStatus = 'complete' | 'streaming' | 'stopped' | 'error';
3
+ export type AIProcessStatus = 'pending' | 'running' | 'complete' | 'stopped' | 'error';
4
+ export interface AIAttachment {
5
+ id: string;
6
+ name: string;
7
+ url?: string;
8
+ type?: string;
9
+ size?: number;
10
+ }
11
+ export interface AISource {
12
+ id: string;
13
+ title: string;
14
+ url?: string;
15
+ description?: string;
16
+ }
17
+ export interface AIProcessItem {
18
+ id: string;
19
+ label: string;
20
+ status: AIProcessStatus;
21
+ detail?: string;
22
+ }
23
+ export interface AIMessage {
24
+ id: string;
25
+ role: AIMessageRole;
26
+ content: string;
27
+ status?: AIMessageStatus;
28
+ attachments?: AIAttachment[];
29
+ sources?: AISource[];
30
+ process?: AIProcessItem[];
31
+ error?: string;
32
+ retryable?: boolean;
33
+ toolCall?: AIToolCallDisplay;
34
+ }
35
+ export interface AIToolCallDisplay {
36
+ id: string;
37
+ name: string;
38
+ summary: string;
39
+ inputStatus?: 'pending' | 'ready' | 'redacted';
40
+ inputSummary?: string;
41
+ resultStatus?: 'pending' | 'success' | 'error';
42
+ resultSummary?: string;
43
+ error?: string;
44
+ }
45
+ export type AIContentRenderer = (message: AIMessage) => VNodeChild;
46
+ export type AIChatAction = 'send' | 'retry' | 'regenerate' | 'edit';
47
+ export interface AIChatRequest {
48
+ conversationId?: string;
49
+ messages: AIMessage[];
50
+ action?: AIChatAction;
51
+ messageId?: string;
52
+ }
53
+ export type AIStreamEvent = {
54
+ type: 'text-delta';
55
+ delta: string;
56
+ } | {
57
+ type: 'process';
58
+ item: AIProcessItem;
59
+ } | {
60
+ type: 'sources';
61
+ sources: AISource[];
62
+ } | {
63
+ type: 'done';
64
+ } | {
65
+ type: 'cancelled';
66
+ } | {
67
+ type: 'error';
68
+ error: string;
69
+ };
70
+ export interface AITransport {
71
+ send(request: AIChatRequest, signal: AbortSignal): AsyncIterable<AIStreamEvent>;
72
+ }
73
+ export interface AIStreamEventBaseV2 {
74
+ version: '2';
75
+ requestId: string;
76
+ messageId: string;
77
+ sequence: number;
78
+ revision: number;
79
+ }
80
+ export type AIStreamEventV2 = (AIStreamEventBaseV2 & {
81
+ type: 'text-delta';
82
+ delta: string;
83
+ }) | (AIStreamEventBaseV2 & {
84
+ type: 'process-upsert';
85
+ item: AIProcessItem;
86
+ }) | (AIStreamEventBaseV2 & {
87
+ type: 'sources-replace';
88
+ sources: AISource[];
89
+ }) | (AIStreamEventBaseV2 & {
90
+ type: 'snapshot';
91
+ message: AIMessage;
92
+ }) | (AIStreamEventBaseV2 & {
93
+ type: 'final';
94
+ message: AIMessage;
95
+ }) | (AIStreamEventBaseV2 & {
96
+ type: 'cancelled';
97
+ reason?: string;
98
+ }) | (AIStreamEventBaseV2 & {
99
+ type: 'error';
100
+ error: string;
101
+ retryable?: boolean;
102
+ });
103
+ export interface AIChatResumeCursorV2 {
104
+ afterSequence: number;
105
+ revision: number;
106
+ }
107
+ export interface AIChatRequestV2 extends Omit<AIChatRequest, 'messageId'> {
108
+ version: '2';
109
+ requestId: string;
110
+ messageId: string;
111
+ targetMessageId?: string;
112
+ idempotencyKey: string;
113
+ resume?: AIChatResumeCursorV2;
114
+ }
115
+ export interface AITransportV2 {
116
+ version: '2';
117
+ send(request: AIChatRequestV2, signal: AbortSignal): AsyncIterable<AIStreamEventV2>;
118
+ resume?(request: AIChatRequestV2, signal: AbortSignal): AsyncIterable<AIStreamEventV2>;
119
+ }
120
+ export interface AIPrompt {
121
+ key: string;
122
+ label: string;
123
+ description?: string;
124
+ }
125
+ export interface AIConversation {
126
+ key: string;
127
+ label: string;
128
+ disabled?: boolean;
129
+ }
130
+ export interface AIAction {
131
+ key: string;
132
+ label: string;
133
+ disabled?: boolean;
134
+ }
135
+ export type AIAgentTaskStatus = 'pending' | 'running' | 'waiting-approval' | 'complete' | 'error' | 'cancelled';
136
+ export type AIAgentApprovalStatus = 'pending' | 'approved' | 'rejected';
137
+ export type AIAgentTaskKind = 'task' | 'tool' | 'approval';
138
+ export interface AIAgentApproval {
139
+ id: string;
140
+ title: string;
141
+ description?: string;
142
+ artifactId?: string;
143
+ status?: AIAgentApprovalStatus;
144
+ }
145
+ export interface AIAgentTask {
146
+ id: string;
147
+ label: string;
148
+ status: AIAgentTaskStatus;
149
+ kind?: AIAgentTaskKind;
150
+ detail?: string;
151
+ error?: string;
152
+ toolName?: string;
153
+ progress?: number;
154
+ startedAt?: string;
155
+ completedAt?: string;
156
+ approval?: AIAgentApproval;
157
+ revision?: string | number;
158
+ dependsOn?: string[];
159
+ reorderable?: boolean;
160
+ lockedReason?: string;
161
+ toolCall?: AIToolCallDisplay;
162
+ }
163
+ export interface AIAgentContextItem {
164
+ id: string;
165
+ label: string;
166
+ description?: string;
167
+ disabled?: boolean;
168
+ }
169
+ export interface AIAgentArtifact {
170
+ id: string;
171
+ title: string;
172
+ description?: string;
173
+ type?: string;
174
+ url?: string;
175
+ status?: 'draft' | 'ready' | 'error';
176
+ updatedAt?: string;
177
+ revision?: string | number;
178
+ }
179
+ export type AIAgentOperationAction = 'approve' | 'reject' | 'cancel' | 'retry';
180
+ export type AIAgentOperationStatus = 'idle' | 'pending' | 'success' | 'error';
181
+ export interface AIAgentOperationRequest {
182
+ operationId: string;
183
+ idempotencyKey: string;
184
+ conversationId?: string;
185
+ taskId: string;
186
+ taskRevision: string | number;
187
+ action: AIAgentOperationAction;
188
+ approvalId?: string;
189
+ artifactId?: string;
190
+ artifactRevision?: string | number;
191
+ }
192
+ export type AIAgentOperationResult = {
193
+ status: 'success';
194
+ operationId: string;
195
+ } | {
196
+ status: 'error';
197
+ operationId: string;
198
+ error: string;
199
+ retryable?: boolean;
200
+ outcome?: 'not-applied' | 'unknown';
201
+ };
202
+ export type AIAgentActionHandler = (request: AIAgentOperationRequest, signal: AbortSignal) => Promise<AIAgentOperationResult>;
203
+ import type { VNodeChild } from 'vue';
@@ -0,0 +1,2 @@
1
+ export { default as AIWelcome, default } from '../welcome.vue';
2
+ export type * from '../types';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../welcome.vue.js");exports.AIWelcome=e.default;exports.default=e.default;
@@ -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
+ }
@@ -0,0 +1,41 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ title?: string | undefined;
3
+ description?: string | undefined;
4
+ }>, {
5
+ title: string;
6
+ description: undefined;
7
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
+ title?: string | undefined;
9
+ description?: string | undefined;
10
+ }>, {
11
+ title: string;
12
+ description: undefined;
13
+ }>>> & Readonly<{}>, {
14
+ title: string;
15
+ description: string;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
17
+ default?(_: {}): any;
18
+ }>;
19
+ export default _default;
20
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
+ type __VLS_TypePropsToRuntimeProps<T> = {
22
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
23
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
24
+ } : {
25
+ type: import('vue').PropType<T[K]>;
26
+ required: true;
27
+ };
28
+ };
29
+ type __VLS_WithDefaults<P, D> = {
30
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
31
+ default: D[K];
32
+ }> : P[K];
33
+ };
34
+ type __VLS_Prettify<T> = {
35
+ [K in keyof T]: T[K];
36
+ } & {};
37
+ type __VLS_WithTemplateSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c={class:"aheart-ai-welcome"},l={class:"aheart-ai-welcome__title"},a={key:0,class:"aheart-ai-welcome__description"},n={key:1,class:"aheart-ai-welcome__content"},s=e.defineComponent({name:"AAIWelcome",__name:"welcome",props:{title:{default:"你好,我能为你做些什么?"},description:{default:void 0}},setup(t){return(o,i)=>(e.openBlock(),e.createElementBlock("section",c,[e.createElementVNode("h2",l,e.toDisplayString(t.title),1),t.description?(e.openBlock(),e.createElementBlock("p",a,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),o.$slots.default?(e.openBlock(),e.createElementBlock("div",n,[e.renderSlot(o.$slots,"default")])):e.createCommentVNode("",!0)]))}});exports.default=s;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./welcome.vue.js");exports.default=e.default;
package/package.json CHANGED
@@ -1,6 +1,175 @@
1
1
  {
2
2
  "name": "@aheart-ui/ai",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "1.1.0",
4
+ "description": "Vue 3 AI interface components for Aheart UI.",
5
+ "main": "lib/index.js",
6
+ "module": "es/index.js",
7
+ "types": "es/index.d.ts",
8
+ "sideEffects": [
9
+ "**/*.css"
10
+ ],
11
+ "exports": {
12
+ ".": {
13
+ "types": "./es/index.d.ts",
14
+ "import": "./es/index.js",
15
+ "require": "./lib/index.js"
16
+ },
17
+ "./style.css": "./es/style.css",
18
+ "./es/*": "./es/*",
19
+ "./lib/*": "./lib/*",
20
+ "./package.json": "./package.json",
21
+ "./actions": {
22
+ "types": "./es/actions/index.d.ts",
23
+ "import": "./es/actions/index.js",
24
+ "require": "./lib/actions/index.js"
25
+ },
26
+ "./actions/style.css": "./es/actions/style.css",
27
+ "./attachments": {
28
+ "types": "./es/attachments/index.d.ts",
29
+ "import": "./es/attachments/index.js",
30
+ "require": "./lib/attachments/index.js"
31
+ },
32
+ "./attachments/style.css": "./es/attachments/style.css",
33
+ "./bubble": {
34
+ "types": "./es/bubble/index.d.ts",
35
+ "import": "./es/bubble/index.js",
36
+ "require": "./lib/bubble/index.js"
37
+ },
38
+ "./bubble/style.css": "./es/bubble/style.css",
39
+ "./conversations": {
40
+ "types": "./es/conversations/index.d.ts",
41
+ "import": "./es/conversations/index.js",
42
+ "require": "./lib/conversations/index.js"
43
+ },
44
+ "./conversations/style.css": "./es/conversations/style.css",
45
+ "./form": {
46
+ "types": "./es/form/index.d.ts",
47
+ "import": "./es/form/index.js",
48
+ "require": "./lib/form/index.js"
49
+ },
50
+ "./form/style.css": "./es/form/style.css",
51
+ "./process": {
52
+ "types": "./es/process/index.d.ts",
53
+ "import": "./es/process/index.js",
54
+ "require": "./lib/process/index.js"
55
+ },
56
+ "./process/style.css": "./es/process/style.css",
57
+ "./prompts": {
58
+ "types": "./es/prompts/index.d.ts",
59
+ "import": "./es/prompts/index.js",
60
+ "require": "./lib/prompts/index.js"
61
+ },
62
+ "./prompts/style.css": "./es/prompts/style.css",
63
+ "./sender": {
64
+ "types": "./es/sender/index.d.ts",
65
+ "import": "./es/sender/index.js",
66
+ "require": "./lib/sender/index.js"
67
+ },
68
+ "./sender/style.css": "./es/sender/style.css",
69
+ "./sources": {
70
+ "types": "./es/sources/index.d.ts",
71
+ "import": "./es/sources/index.js",
72
+ "require": "./lib/sources/index.js"
73
+ },
74
+ "./sources/style.css": "./es/sources/style.css",
75
+ "./thought-chain": {
76
+ "types": "./es/thought-chain/index.d.ts",
77
+ "import": "./es/thought-chain/index.js",
78
+ "require": "./lib/thought-chain/index.js"
79
+ },
80
+ "./thought-chain/style.css": "./es/thought-chain/style.css",
81
+ "./welcome": {
82
+ "types": "./es/welcome/index.d.ts",
83
+ "import": "./es/welcome/index.js",
84
+ "require": "./lib/welcome/index.js"
85
+ },
86
+ "./welcome/style.css": "./es/welcome/style.css",
87
+ "./chat-panel": {
88
+ "types": "./es/chat-panel/index.d.ts",
89
+ "import": "./es/chat-panel/index.js",
90
+ "require": "./lib/chat-panel/index.js"
91
+ },
92
+ "./chat-panel/style.css": "./es/chat-panel/style.css",
93
+ "./agent-workbench": {
94
+ "types": "./es/agent-workbench/index.d.ts",
95
+ "import": "./es/agent-workbench/index.js",
96
+ "require": "./lib/agent-workbench/index.js"
97
+ },
98
+ "./agent-workbench/style.css": "./es/agent-workbench/style.css",
99
+ "./chat": {
100
+ "types": "./es/chat/index.d.ts",
101
+ "import": "./es/chat/index.js",
102
+ "require": "./lib/chat/index.js"
103
+ },
104
+ "./chat/style.css": "./es/chat/style.css",
105
+ "./agent": {
106
+ "types": "./es/agent/index.d.ts",
107
+ "import": "./es/agent/index.js",
108
+ "require": "./lib/agent/index.js"
109
+ },
110
+ "./agent/style.css": "./es/agent/style.css",
111
+ "./workbench": {
112
+ "types": "./es/agent-workbench/index.d.ts",
113
+ "import": "./es/agent-workbench/index.js",
114
+ "require": "./lib/agent-workbench/index.js"
115
+ },
116
+ "./workbench/style.css": "./es/agent-workbench/style.css",
117
+ "./full": {
118
+ "types": "./es/index.d.ts",
119
+ "import": "./es/index.js",
120
+ "require": "./lib/index.js"
121
+ },
122
+ "./full.css": "./es/style.css"
123
+ },
124
+ "files": [
125
+ "es",
126
+ "lib"
127
+ ],
128
+ "keywords": [
129
+ "aheart-ui",
130
+ "vue3",
131
+ "ai",
132
+ "chat",
133
+ "agent",
134
+ "form"
135
+ ],
136
+ "author": "小凡",
137
+ "license": "MIT",
138
+ "repository": {
139
+ "type": "git",
140
+ "url": "git+https://github.com/wzfdhr/aheart-ui.git",
141
+ "directory": "packages/ai"
142
+ },
143
+ "homepage": "https://github.com/wzfdhr/aheart-ui#readme",
144
+ "bugs": {
145
+ "url": "https://github.com/wzfdhr/aheart-ui/issues"
146
+ },
147
+ "publishConfig": {
148
+ "access": "public",
149
+ "registry": "https://registry.npmjs.org/"
150
+ },
151
+ "peerDependencies": {
152
+ "aheart-ui": "^1.1.0",
153
+ "vue": ">=3.5.0 <4"
154
+ },
155
+ "dependencies": {
156
+ "@aheart-ui/dnd": "^1.1.0"
157
+ },
158
+ "devDependencies": {
159
+ "@vitejs/plugin-vue": "^5.0.3",
160
+ "@vitest/coverage-v8": "1.6.1",
161
+ "@vue/test-utils": "^2.4.6",
162
+ "jsdom": "^24.1.1",
163
+ "vite": "^5.0.12",
164
+ "vite-plugin-dts": "^3.7.2",
165
+ "vitest": "^1.6.1",
166
+ "vue": "^3.5.38",
167
+ "vue-tsc": "^2.0.29"
168
+ },
169
+ "scripts": {
170
+ "build": "vite build",
171
+ "typecheck": "vue-tsc --noEmit -p tsconfig.json",
172
+ "test": "vitest run --environment jsdom",
173
+ "test:coverage": "vitest run --environment jsdom --coverage"
174
+ }
6
175
  }