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