@aheart-ui/ai 1.1.0 → 2.0.0-alpha.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 (408) hide show
  1. package/dist/cjs/agent-execution.vue.js +1 -0
  2. package/dist/cjs/agent-workbench.vue.js +1 -0
  3. package/dist/cjs/form-field.vue.js +1 -0
  4. package/dist/cjs/form.vue.js +1 -0
  5. package/dist/cjs/full.js +1 -0
  6. package/dist/cjs/index.js +1 -0
  7. package/dist/cjs/package.json +6 -0
  8. package/dist/compat/es/actions/index.d.ts +2 -0
  9. package/dist/compat/es/actions/index.js +2 -0
  10. package/dist/compat/es/actions.vue.d.ts +2 -0
  11. package/dist/compat/es/actions.vue.js +2 -0
  12. package/dist/compat/es/actions.vue2.js +2 -0
  13. package/dist/compat/es/agent/index.d.ts +1 -0
  14. package/dist/compat/es/agent/index.js +1 -0
  15. package/dist/compat/es/agent/style.css +3241 -0
  16. package/dist/compat/es/agent-execution.vue.d.ts +2 -0
  17. package/dist/compat/es/agent-execution.vue.js +2 -0
  18. package/dist/compat/es/agent-execution.vue2.js +2 -0
  19. package/dist/compat/es/agent-workbench/index.d.ts +2 -0
  20. package/dist/compat/es/agent-workbench/index.js +2 -0
  21. package/{es → dist/compat/es}/agent-workbench/style.css +1095 -4
  22. package/dist/compat/es/agent-workbench.vue.d.ts +2 -0
  23. package/dist/compat/es/agent-workbench.vue.js +2 -0
  24. package/dist/compat/es/agent-workbench.vue2.js +2 -0
  25. package/dist/compat/es/attachments/index.d.ts +2 -0
  26. package/dist/compat/es/attachments/index.js +2 -0
  27. package/dist/compat/es/attachments.vue.d.ts +2 -0
  28. package/dist/compat/es/attachments.vue.js +2 -0
  29. package/dist/compat/es/attachments.vue2.js +2 -0
  30. package/dist/compat/es/bubble/index.d.ts +2 -0
  31. package/dist/compat/es/bubble/index.js +2 -0
  32. package/dist/compat/es/bubble.vue.d.ts +2 -0
  33. package/dist/compat/es/bubble.vue.js +2 -0
  34. package/dist/compat/es/bubble.vue2.js +2 -0
  35. package/dist/compat/es/chat/index.d.ts +1 -0
  36. package/dist/compat/es/chat/index.js +1 -0
  37. package/dist/compat/es/chat-panel/index.d.ts +2 -0
  38. package/dist/compat/es/chat-panel/index.js +2 -0
  39. package/{lib/chat → dist/compat/es/chat-panel}/style.css +0 -4
  40. package/dist/compat/es/chat-panel.vue.d.ts +2 -0
  41. package/dist/compat/es/chat-panel.vue.js +2 -0
  42. package/dist/compat/es/chat-panel.vue2.js +2 -0
  43. package/dist/compat/es/conversations/index.d.ts +2 -0
  44. package/dist/compat/es/conversations/index.js +2 -0
  45. package/dist/compat/es/conversations.vue.d.ts +2 -0
  46. package/dist/compat/es/conversations.vue.js +2 -0
  47. package/dist/compat/es/conversations.vue2.js +2 -0
  48. package/dist/compat/es/form/index.d.ts +2 -0
  49. package/dist/compat/es/form/index.js +2 -0
  50. package/dist/compat/es/form/style.css +3175 -0
  51. package/dist/compat/es/form-field.vue.d.ts +2 -0
  52. package/dist/compat/es/form-field.vue.js +2 -0
  53. package/dist/compat/es/form-field.vue2.js +2 -0
  54. package/dist/compat/es/form-schema.d.ts +1 -0
  55. package/dist/compat/es/form-schema.js +1 -0
  56. package/dist/compat/es/form.vue.d.ts +2 -0
  57. package/dist/compat/es/form.vue.js +2 -0
  58. package/dist/compat/es/form.vue2.js +2 -0
  59. package/dist/compat/es/full.d.ts +2 -0
  60. package/dist/compat/es/full.js +2 -0
  61. package/dist/compat/es/index.d.ts +2 -0
  62. package/dist/compat/es/index.js +2 -0
  63. package/dist/compat/es/package.json +6 -0
  64. package/dist/compat/es/process/index.d.ts +2 -0
  65. package/dist/compat/es/process/index.js +2 -0
  66. package/dist/compat/es/process.vue.d.ts +2 -0
  67. package/dist/compat/es/process.vue.js +2 -0
  68. package/dist/compat/es/process.vue2.js +2 -0
  69. package/dist/compat/es/prompts/index.d.ts +2 -0
  70. package/dist/compat/es/prompts/index.js +2 -0
  71. package/dist/compat/es/prompts.vue.d.ts +2 -0
  72. package/dist/compat/es/prompts.vue.js +2 -0
  73. package/dist/compat/es/prompts.vue2.js +2 -0
  74. package/dist/compat/es/safe-markdown.d.ts +1 -0
  75. package/dist/compat/es/safe-markdown.js +1 -0
  76. package/dist/compat/es/sender/index.d.ts +2 -0
  77. package/dist/compat/es/sender/index.js +2 -0
  78. package/dist/compat/es/sender.vue.d.ts +2 -0
  79. package/dist/compat/es/sender.vue.js +2 -0
  80. package/dist/compat/es/sender.vue2.js +2 -0
  81. package/dist/compat/es/sources/index.d.ts +2 -0
  82. package/dist/compat/es/sources/index.js +2 -0
  83. package/dist/compat/es/sources.vue.d.ts +2 -0
  84. package/dist/compat/es/sources.vue.js +2 -0
  85. package/dist/compat/es/sources.vue2.js +2 -0
  86. package/dist/compat/es/stream-reducer.d.ts +1 -0
  87. package/dist/compat/es/stream-reducer.js +1 -0
  88. package/dist/compat/es/thought-chain/index.d.ts +2 -0
  89. package/dist/compat/es/thought-chain/index.js +2 -0
  90. package/dist/compat/es/thought-chain.vue.d.ts +2 -0
  91. package/dist/compat/es/thought-chain.vue.js +2 -0
  92. package/dist/compat/es/thought-chain.vue2.js +2 -0
  93. package/dist/compat/es/types.d.ts +1 -0
  94. package/dist/compat/es/welcome/index.d.ts +2 -0
  95. package/dist/compat/es/welcome/index.js +2 -0
  96. package/dist/compat/es/welcome.vue.d.ts +2 -0
  97. package/dist/compat/es/welcome.vue.js +2 -0
  98. package/dist/compat/es/welcome.vue2.js +2 -0
  99. package/dist/compat/lib/actions/index.d.ts +2 -0
  100. package/dist/compat/lib/actions/index.js +1 -0
  101. package/dist/compat/lib/actions.vue.d.ts +2 -0
  102. package/dist/compat/lib/actions.vue.js +1 -0
  103. package/dist/compat/lib/actions.vue2.js +1 -0
  104. package/dist/compat/lib/agent/index.d.ts +1 -0
  105. package/dist/compat/lib/agent/index.js +1 -0
  106. package/dist/compat/lib/agent/style.css +3241 -0
  107. package/dist/compat/lib/agent-execution.vue.d.ts +2 -0
  108. package/dist/compat/lib/agent-execution.vue.js +1 -0
  109. package/dist/compat/lib/agent-execution.vue2.js +1 -0
  110. package/dist/compat/lib/agent-workbench/index.d.ts +2 -0
  111. package/dist/compat/lib/agent-workbench/index.js +1 -0
  112. package/dist/compat/lib/agent-workbench/style.css +2423 -0
  113. package/dist/compat/lib/agent-workbench.vue.d.ts +2 -0
  114. package/dist/compat/lib/agent-workbench.vue.js +1 -0
  115. package/dist/compat/lib/agent-workbench.vue2.js +1 -0
  116. package/dist/compat/lib/attachments/index.d.ts +2 -0
  117. package/dist/compat/lib/attachments/index.js +1 -0
  118. package/dist/compat/lib/attachments.vue.d.ts +2 -0
  119. package/dist/compat/lib/attachments.vue.js +1 -0
  120. package/dist/compat/lib/attachments.vue2.js +1 -0
  121. package/dist/compat/lib/bubble/index.d.ts +2 -0
  122. package/dist/compat/lib/bubble/index.js +1 -0
  123. package/dist/compat/lib/bubble.vue.d.ts +2 -0
  124. package/dist/compat/lib/bubble.vue.js +1 -0
  125. package/dist/compat/lib/bubble.vue2.js +1 -0
  126. package/dist/compat/lib/chat/index.d.ts +1 -0
  127. package/dist/compat/lib/chat/index.js +1 -0
  128. package/dist/compat/lib/chat-panel/index.d.ts +2 -0
  129. package/dist/compat/lib/chat-panel/index.js +1 -0
  130. package/dist/compat/lib/chat-panel/style.css +591 -0
  131. package/dist/compat/lib/chat-panel.vue.d.ts +2 -0
  132. package/dist/compat/lib/chat-panel.vue.js +1 -0
  133. package/dist/compat/lib/chat-panel.vue2.js +1 -0
  134. package/dist/compat/lib/conversations/index.d.ts +2 -0
  135. package/dist/compat/lib/conversations/index.js +1 -0
  136. package/dist/compat/lib/conversations.vue.d.ts +2 -0
  137. package/dist/compat/lib/conversations.vue.js +1 -0
  138. package/dist/compat/lib/conversations.vue2.js +1 -0
  139. package/dist/compat/lib/form/index.d.ts +2 -0
  140. package/dist/compat/lib/form/index.js +1 -0
  141. package/dist/compat/lib/form/style.css +3175 -0
  142. package/dist/compat/lib/form-field.vue.d.ts +2 -0
  143. package/dist/compat/lib/form-field.vue.js +1 -0
  144. package/dist/compat/lib/form-field.vue2.js +1 -0
  145. package/dist/compat/lib/form-schema.d.ts +1 -0
  146. package/dist/compat/lib/form-schema.js +1 -0
  147. package/dist/compat/lib/form.vue.d.ts +2 -0
  148. package/dist/compat/lib/form.vue.js +1 -0
  149. package/dist/compat/lib/form.vue2.js +1 -0
  150. package/dist/compat/lib/full.d.ts +2 -0
  151. package/dist/compat/lib/full.js +1 -0
  152. package/dist/compat/lib/index.d.ts +2 -0
  153. package/dist/compat/lib/index.js +1 -0
  154. package/dist/compat/lib/package.json +6 -0
  155. package/dist/compat/lib/process/index.d.ts +2 -0
  156. package/dist/compat/lib/process/index.js +1 -0
  157. package/dist/compat/lib/process.vue.d.ts +2 -0
  158. package/dist/compat/lib/process.vue.js +1 -0
  159. package/dist/compat/lib/process.vue2.js +1 -0
  160. package/dist/compat/lib/prompts/index.d.ts +2 -0
  161. package/dist/compat/lib/prompts/index.js +1 -0
  162. package/dist/compat/lib/prompts.vue.d.ts +2 -0
  163. package/dist/compat/lib/prompts.vue.js +1 -0
  164. package/dist/compat/lib/prompts.vue2.js +1 -0
  165. package/dist/compat/lib/safe-markdown.d.ts +1 -0
  166. package/dist/compat/lib/safe-markdown.js +1 -0
  167. package/dist/compat/lib/sender/index.d.ts +2 -0
  168. package/dist/compat/lib/sender/index.js +1 -0
  169. package/dist/compat/lib/sender.vue.d.ts +2 -0
  170. package/dist/compat/lib/sender.vue.js +1 -0
  171. package/dist/compat/lib/sender.vue2.js +1 -0
  172. package/dist/compat/lib/sources/index.d.ts +2 -0
  173. package/dist/compat/lib/sources/index.js +1 -0
  174. package/dist/compat/lib/sources.vue.d.ts +2 -0
  175. package/dist/compat/lib/sources.vue.js +1 -0
  176. package/dist/compat/lib/sources.vue2.js +1 -0
  177. package/dist/compat/lib/stream-reducer.d.ts +1 -0
  178. package/dist/compat/lib/stream-reducer.js +1 -0
  179. package/dist/compat/lib/thought-chain/index.d.ts +2 -0
  180. package/dist/compat/lib/thought-chain/index.js +1 -0
  181. package/dist/compat/lib/thought-chain.vue.d.ts +2 -0
  182. package/dist/compat/lib/thought-chain.vue.js +1 -0
  183. package/dist/compat/lib/thought-chain.vue2.js +1 -0
  184. package/dist/compat/lib/types.d.ts +1 -0
  185. package/dist/compat/lib/welcome/index.d.ts +2 -0
  186. package/dist/compat/lib/welcome/index.js +1 -0
  187. package/dist/compat/lib/welcome.vue.d.ts +2 -0
  188. package/dist/compat/lib/welcome.vue.js +1 -0
  189. package/dist/compat/lib/welcome.vue2.js +1 -0
  190. package/{es → dist/esm}/agent-execution.vue.js +1 -1
  191. package/{es → dist/esm}/agent-workbench.vue.js +9 -6
  192. package/{es → dist/esm}/form-field.vue.js +53 -43
  193. package/{es → dist/esm}/form.vue.js +7 -6
  194. package/dist/esm/full.js +42 -0
  195. package/dist/esm/index.js +39 -0
  196. package/dist/esm/package.json +6 -0
  197. package/dist/styles/actions/style.css +36 -0
  198. package/dist/styles/agent/style.css +3241 -0
  199. package/dist/styles/agent-workbench/style.css +2423 -0
  200. package/dist/styles/attachments/style.css +62 -0
  201. package/dist/styles/bubble/style.css +241 -0
  202. package/dist/styles/chat-panel/style.css +591 -0
  203. package/dist/styles/conversations/style.css +48 -0
  204. package/dist/styles/form/style.css +3175 -0
  205. package/dist/styles/process/style.css +77 -0
  206. package/dist/styles/prompts/style.css +76 -0
  207. package/dist/styles/sender/style.css +88 -0
  208. package/dist/styles/sources/style.css +54 -0
  209. package/{lib/agent-workbench → dist/styles}/style.css +254 -0
  210. package/dist/styles/thought-chain/style.css +77 -0
  211. package/dist/styles/welcome/style.css +33 -0
  212. package/dist/types/full.d.ts +6 -0
  213. package/{lib → dist/types}/index.d.ts +1 -2
  214. package/package.json +111 -85
  215. package/es/agent/style.css +0 -308
  216. package/es/form/style.css +0 -242
  217. package/es/index.d.ts +0 -20
  218. package/es/index.js +0 -42
  219. package/es/package.json +0 -3
  220. package/lib/actions/index.d.ts +0 -2
  221. package/lib/actions.vue.d.ts +0 -34
  222. package/lib/agent/index.d.ts +0 -5
  223. package/lib/agent/style.css +0 -308
  224. package/lib/agent-execution.vue.d.ts +0 -106
  225. package/lib/agent-execution.vue.js +0 -1
  226. package/lib/agent-workbench/index.d.ts +0 -2
  227. package/lib/agent-workbench.vue.d.ts +0 -186
  228. package/lib/agent-workbench.vue.js +0 -1
  229. package/lib/attachments/index.d.ts +0 -2
  230. package/lib/attachments.vue.d.ts +0 -39
  231. package/lib/bubble/index.d.ts +0 -2
  232. package/lib/bubble.vue.d.ts +0 -27
  233. package/lib/chat/index.d.ts +0 -11
  234. package/lib/chat-panel/index.d.ts +0 -3
  235. package/lib/chat-panel.vue.d.ts +0 -108
  236. package/lib/conversations/index.d.ts +0 -2
  237. package/lib/conversations.vue.d.ts +0 -39
  238. package/lib/form/index.d.ts +0 -3
  239. package/lib/form/style.css +0 -242
  240. package/lib/form-field.vue.d.ts +0 -28
  241. package/lib/form-field.vue.js +0 -1
  242. package/lib/form-schema.d.ts +0 -73
  243. package/lib/form.vue.d.ts +0 -81
  244. package/lib/form.vue.js +0 -1
  245. package/lib/index.js +0 -1
  246. package/lib/package.json +0 -3
  247. package/lib/process/index.d.ts +0 -2
  248. package/lib/process.vue.d.ts +0 -30
  249. package/lib/prompts/index.d.ts +0 -2
  250. package/lib/prompts.vue.d.ts +0 -39
  251. package/lib/safe-markdown.d.ts +0 -3
  252. package/lib/sender/index.d.ts +0 -2
  253. package/lib/sender.vue.d.ts +0 -52
  254. package/lib/sources/index.d.ts +0 -2
  255. package/lib/sources.vue.d.ts +0 -30
  256. package/lib/stream-reducer.d.ts +0 -35
  257. package/lib/thought-chain/index.d.ts +0 -2
  258. package/lib/thought-chain.vue.d.ts +0 -30
  259. package/lib/types.d.ts +0 -203
  260. package/lib/welcome/index.d.ts +0 -2
  261. package/lib/welcome.vue.d.ts +0 -41
  262. /package/{lib → dist/cjs}/actions/index.js +0 -0
  263. /package/{lib → dist/cjs}/actions.vue.js +0 -0
  264. /package/{lib → dist/cjs}/actions.vue2.js +0 -0
  265. /package/{lib → dist/cjs}/agent/index.js +0 -0
  266. /package/{lib → dist/cjs}/agent-execution.vue2.js +0 -0
  267. /package/{lib → dist/cjs}/agent-workbench/index.js +0 -0
  268. /package/{lib → dist/cjs}/agent-workbench.vue2.js +0 -0
  269. /package/{lib → dist/cjs}/attachments/index.js +0 -0
  270. /package/{lib → dist/cjs}/attachments.vue.js +0 -0
  271. /package/{lib → dist/cjs}/attachments.vue2.js +0 -0
  272. /package/{lib → dist/cjs}/bubble/index.js +0 -0
  273. /package/{lib → dist/cjs}/bubble.vue.js +0 -0
  274. /package/{lib → dist/cjs}/bubble.vue2.js +0 -0
  275. /package/{lib → dist/cjs}/chat/index.js +0 -0
  276. /package/{lib → dist/cjs}/chat-panel/index.js +0 -0
  277. /package/{lib → dist/cjs}/chat-panel.vue.js +0 -0
  278. /package/{lib → dist/cjs}/chat-panel.vue2.js +0 -0
  279. /package/{lib → dist/cjs}/conversations/index.js +0 -0
  280. /package/{lib → dist/cjs}/conversations.vue.js +0 -0
  281. /package/{lib → dist/cjs}/conversations.vue2.js +0 -0
  282. /package/{lib → dist/cjs}/form/index.js +0 -0
  283. /package/{lib → dist/cjs}/form-field.vue2.js +0 -0
  284. /package/{lib → dist/cjs}/form-schema.js +0 -0
  285. /package/{lib → dist/cjs}/form.vue2.js +0 -0
  286. /package/{lib → dist/cjs}/process/index.js +0 -0
  287. /package/{lib → dist/cjs}/process.vue.js +0 -0
  288. /package/{lib → dist/cjs}/process.vue2.js +0 -0
  289. /package/{lib → dist/cjs}/prompts/index.js +0 -0
  290. /package/{lib → dist/cjs}/prompts.vue.js +0 -0
  291. /package/{lib → dist/cjs}/prompts.vue2.js +0 -0
  292. /package/{lib → dist/cjs}/safe-markdown.js +0 -0
  293. /package/{lib → dist/cjs}/sender/index.js +0 -0
  294. /package/{lib → dist/cjs}/sender.vue.js +0 -0
  295. /package/{lib → dist/cjs}/sender.vue2.js +0 -0
  296. /package/{lib → dist/cjs}/sources/index.js +0 -0
  297. /package/{lib → dist/cjs}/sources.vue.js +0 -0
  298. /package/{lib → dist/cjs}/sources.vue2.js +0 -0
  299. /package/{lib → dist/cjs}/stream-reducer.js +0 -0
  300. /package/{lib → dist/cjs}/thought-chain/index.js +0 -0
  301. /package/{lib → dist/cjs}/thought-chain.vue.js +0 -0
  302. /package/{lib → dist/cjs}/thought-chain.vue2.js +0 -0
  303. /package/{lib → dist/cjs}/welcome/index.js +0 -0
  304. /package/{lib → dist/cjs}/welcome.vue.js +0 -0
  305. /package/{lib → dist/cjs}/welcome.vue2.js +0 -0
  306. /package/{es → dist/compat/es}/actions/style.css +0 -0
  307. /package/{es → dist/compat/es}/attachments/style.css +0 -0
  308. /package/{es → dist/compat/es}/bubble/style.css +0 -0
  309. /package/{es/chat-panel → dist/compat/es/chat}/style.css +0 -0
  310. /package/{es → dist/compat/es}/conversations/style.css +0 -0
  311. /package/{es → dist/compat/es}/process/style.css +0 -0
  312. /package/{es → dist/compat/es}/prompts/style.css +0 -0
  313. /package/{es → dist/compat/es}/sender/style.css +0 -0
  314. /package/{es → dist/compat/es}/sources/style.css +0 -0
  315. /package/{es → dist/compat/es}/style.css +0 -0
  316. /package/{es → dist/compat/es}/thought-chain/style.css +0 -0
  317. /package/{es → dist/compat/es}/welcome/style.css +0 -0
  318. /package/{lib → dist/compat/lib}/actions/style.css +0 -0
  319. /package/{lib → dist/compat/lib}/attachments/style.css +0 -0
  320. /package/{lib → dist/compat/lib}/bubble/style.css +0 -0
  321. /package/{es → dist/compat/lib}/chat/style.css +0 -0
  322. /package/{lib → dist/compat/lib}/conversations/style.css +0 -0
  323. /package/{lib → dist/compat/lib}/process/style.css +0 -0
  324. /package/{lib → dist/compat/lib}/prompts/style.css +0 -0
  325. /package/{lib → dist/compat/lib}/sender/style.css +0 -0
  326. /package/{lib → dist/compat/lib}/sources/style.css +0 -0
  327. /package/{lib → dist/compat/lib}/style.css +0 -0
  328. /package/{lib → dist/compat/lib}/thought-chain/style.css +0 -0
  329. /package/{lib → dist/compat/lib}/welcome/style.css +0 -0
  330. /package/{es → dist/esm}/actions/index.js +0 -0
  331. /package/{es → dist/esm}/actions.vue.js +0 -0
  332. /package/{es → dist/esm}/actions.vue2.js +0 -0
  333. /package/{es → dist/esm}/agent/index.js +0 -0
  334. /package/{es → dist/esm}/agent-execution.vue2.js +0 -0
  335. /package/{es → dist/esm}/agent-workbench/index.js +0 -0
  336. /package/{es → dist/esm}/agent-workbench.vue2.js +0 -0
  337. /package/{es → dist/esm}/attachments/index.js +0 -0
  338. /package/{es → dist/esm}/attachments.vue.js +0 -0
  339. /package/{es → dist/esm}/attachments.vue2.js +0 -0
  340. /package/{es → dist/esm}/bubble/index.js +0 -0
  341. /package/{es → dist/esm}/bubble.vue.js +0 -0
  342. /package/{es → dist/esm}/bubble.vue2.js +0 -0
  343. /package/{es → dist/esm}/chat/index.js +0 -0
  344. /package/{es → dist/esm}/chat-panel/index.js +0 -0
  345. /package/{es → dist/esm}/chat-panel.vue.js +0 -0
  346. /package/{es → dist/esm}/chat-panel.vue2.js +0 -0
  347. /package/{es → dist/esm}/conversations/index.js +0 -0
  348. /package/{es → dist/esm}/conversations.vue.js +0 -0
  349. /package/{es → dist/esm}/conversations.vue2.js +0 -0
  350. /package/{es → dist/esm}/form/index.js +0 -0
  351. /package/{es → dist/esm}/form-field.vue2.js +0 -0
  352. /package/{es → dist/esm}/form-schema.js +0 -0
  353. /package/{es → dist/esm}/form.vue2.js +0 -0
  354. /package/{es → dist/esm}/process/index.js +0 -0
  355. /package/{es → dist/esm}/process.vue.js +0 -0
  356. /package/{es → dist/esm}/process.vue2.js +0 -0
  357. /package/{es → dist/esm}/prompts/index.js +0 -0
  358. /package/{es → dist/esm}/prompts.vue.js +0 -0
  359. /package/{es → dist/esm}/prompts.vue2.js +0 -0
  360. /package/{es → dist/esm}/safe-markdown.js +0 -0
  361. /package/{es → dist/esm}/sender/index.js +0 -0
  362. /package/{es → dist/esm}/sender.vue.js +0 -0
  363. /package/{es → dist/esm}/sender.vue2.js +0 -0
  364. /package/{es → dist/esm}/sources/index.js +0 -0
  365. /package/{es → dist/esm}/sources.vue.js +0 -0
  366. /package/{es → dist/esm}/sources.vue2.js +0 -0
  367. /package/{es → dist/esm}/stream-reducer.js +0 -0
  368. /package/{es → dist/esm}/thought-chain/index.js +0 -0
  369. /package/{es → dist/esm}/thought-chain.vue.js +0 -0
  370. /package/{es → dist/esm}/thought-chain.vue2.js +0 -0
  371. /package/{es → dist/esm}/welcome/index.js +0 -0
  372. /package/{es → dist/esm}/welcome.vue.js +0 -0
  373. /package/{es → dist/esm}/welcome.vue2.js +0 -0
  374. /package/{lib/chat-panel → dist/styles/chat}/style.css +0 -0
  375. /package/{es → dist/types}/actions/index.d.ts +0 -0
  376. /package/{es → dist/types}/actions.vue.d.ts +0 -0
  377. /package/{es → dist/types}/agent/index.d.ts +0 -0
  378. /package/{es → dist/types}/agent-execution.vue.d.ts +0 -0
  379. /package/{es → dist/types}/agent-workbench/index.d.ts +0 -0
  380. /package/{es → dist/types}/agent-workbench.vue.d.ts +0 -0
  381. /package/{es → dist/types}/attachments/index.d.ts +0 -0
  382. /package/{es → dist/types}/attachments.vue.d.ts +0 -0
  383. /package/{es → dist/types}/bubble/index.d.ts +0 -0
  384. /package/{es → dist/types}/bubble.vue.d.ts +0 -0
  385. /package/{es → dist/types}/chat/index.d.ts +0 -0
  386. /package/{es → dist/types}/chat-panel/index.d.ts +0 -0
  387. /package/{es → dist/types}/chat-panel.vue.d.ts +0 -0
  388. /package/{es → dist/types}/conversations/index.d.ts +0 -0
  389. /package/{es → dist/types}/conversations.vue.d.ts +0 -0
  390. /package/{es → dist/types}/form/index.d.ts +0 -0
  391. /package/{es → dist/types}/form-field.vue.d.ts +0 -0
  392. /package/{es → dist/types}/form-schema.d.ts +0 -0
  393. /package/{es → dist/types}/form.vue.d.ts +0 -0
  394. /package/{es → dist/types}/process/index.d.ts +0 -0
  395. /package/{es → dist/types}/process.vue.d.ts +0 -0
  396. /package/{es → dist/types}/prompts/index.d.ts +0 -0
  397. /package/{es → dist/types}/prompts.vue.d.ts +0 -0
  398. /package/{es → dist/types}/safe-markdown.d.ts +0 -0
  399. /package/{es → dist/types}/sender/index.d.ts +0 -0
  400. /package/{es → dist/types}/sender.vue.d.ts +0 -0
  401. /package/{es → dist/types}/sources/index.d.ts +0 -0
  402. /package/{es → dist/types}/sources.vue.d.ts +0 -0
  403. /package/{es → dist/types}/stream-reducer.d.ts +0 -0
  404. /package/{es → dist/types}/thought-chain/index.d.ts +0 -0
  405. /package/{es → dist/types}/thought-chain.vue.d.ts +0 -0
  406. /package/{es → dist/types}/types.d.ts +0 -0
  407. /package/{es → dist/types}/welcome/index.d.ts +0 -0
  408. /package/{es → dist/types}/welcome.vue.d.ts +0 -0
@@ -1,106 +0,0 @@
1
- import type { AIAgentArtifact, AIAgentTask } from './types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
- tasks?: AIAgentTask[] | undefined;
4
- artifacts?: AIAgentArtifact[] | undefined;
5
- activeArtifact?: string | undefined;
6
- disabled?: boolean | undefined;
7
- reorderable?: boolean | undefined;
8
- tasksRevision?: string | number | undefined;
9
- scopeKey?: string | undefined;
10
- actionDisabled?: ((task: AIAgentTask, action: string) => boolean) | undefined;
11
- operationMessages?: Record<string, string> | undefined;
12
- validateCandidate?: ((tasks: AIAgentTask[]) => string | undefined) | undefined;
13
- }>, {
14
- tasks: () => never[];
15
- artifacts: () => never[];
16
- activeArtifact: undefined;
17
- disabled: boolean;
18
- reorderable: boolean;
19
- scopeKey: string;
20
- actionDisabled: () => false;
21
- operationMessages: () => {};
22
- validateCandidate: () => undefined;
23
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
- retry: (task: AIAgentTask) => void;
25
- approve: (task: AIAgentTask) => void;
26
- reject: (task: AIAgentTask) => void;
27
- cancel: (task: AIAgentTask) => void;
28
- "update:tasks": (tasks: AIAgentTask[]) => void;
29
- "move-task": (id: string, direction: "up" | "down") => void;
30
- "move-task-reject": (reason: string) => void;
31
- "select-artifact": (artifact: AIAgentArtifact) => void;
32
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
33
- tasks?: AIAgentTask[] | undefined;
34
- artifacts?: AIAgentArtifact[] | undefined;
35
- activeArtifact?: string | undefined;
36
- disabled?: boolean | undefined;
37
- reorderable?: boolean | undefined;
38
- tasksRevision?: string | number | undefined;
39
- scopeKey?: string | undefined;
40
- actionDisabled?: ((task: AIAgentTask, action: string) => boolean) | undefined;
41
- operationMessages?: Record<string, string> | undefined;
42
- validateCandidate?: ((tasks: AIAgentTask[]) => string | undefined) | undefined;
43
- }>, {
44
- tasks: () => never[];
45
- artifacts: () => never[];
46
- activeArtifact: undefined;
47
- disabled: boolean;
48
- reorderable: boolean;
49
- scopeKey: string;
50
- actionDisabled: () => false;
51
- operationMessages: () => {};
52
- validateCandidate: () => undefined;
53
- }>>> & Readonly<{
54
- onRetry?: ((task: AIAgentTask) => any) | undefined;
55
- onApprove?: ((task: AIAgentTask) => any) | undefined;
56
- onReject?: ((task: AIAgentTask) => any) | undefined;
57
- onCancel?: ((task: AIAgentTask) => any) | undefined;
58
- "onUpdate:tasks"?: ((tasks: AIAgentTask[]) => any) | undefined;
59
- "onMove-task"?: ((id: string, direction: "up" | "down") => any) | undefined;
60
- "onMove-task-reject"?: ((reason: string) => any) | undefined;
61
- "onSelect-artifact"?: ((artifact: AIAgentArtifact) => any) | undefined;
62
- }>, {
63
- disabled: boolean;
64
- tasks: AIAgentTask[];
65
- artifacts: AIAgentArtifact[];
66
- activeArtifact: string;
67
- reorderable: boolean;
68
- scopeKey: string;
69
- actionDisabled: (task: AIAgentTask, action: string) => boolean;
70
- operationMessages: Record<string, string>;
71
- validateCandidate: (tasks: AIAgentTask[]) => string | undefined;
72
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
73
- task?(_: {
74
- task: AIAgentTask;
75
- index: number;
76
- }): any;
77
- artifact?(_: {
78
- artifact: AIAgentArtifact;
79
- }): any;
80
- "artifact-preview"?(_: {
81
- artifact: AIAgentArtifact;
82
- }): any;
83
- }>;
84
- export default _default;
85
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
86
- type __VLS_TypePropsToRuntimeProps<T> = {
87
- [K in keyof T]-?: {} extends Pick<T, K> ? {
88
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
89
- } : {
90
- type: import('vue').PropType<T[K]>;
91
- required: true;
92
- };
93
- };
94
- type __VLS_WithDefaults<P, D> = {
95
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
96
- default: D[K];
97
- }> : P[K];
98
- };
99
- type __VLS_Prettify<T> = {
100
- [K in keyof T]: T[K];
101
- } & {};
102
- type __VLS_WithTemplateSlots<T, S> = T & {
103
- new (): {
104
- $slots: S;
105
- };
106
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("aheart-ui"),ne=require("@aheart-ui/dnd/sortable"),J=require("./safe-markdown.js"),se={class:"aheart-ai-workbench__execution-content"},ce={key:0,class:"aheart-ai-workbench__mobile-priority",role:"region","aria-label":"移动端优先处理"},ie={class:"aheart-ai-workbench__priority-heading"},de={class:"aheart-ai-workbench__eyebrow"},pe={key:0},ue={key:1},ke={key:0,class:"aheart-ai-workbench__priority-approval"},me={key:0},ve={class:"aheart-ai-workbench__priority-actions"},_e={key:1,class:"aheart-ai-workbench__approval-result"},ye=["aria-label"],he={key:0},be=["aria-label"],ge={key:0},Be=["aria-labelledby"],Ne={class:"aheart-ai-workbench__section-heading"},Ve=["id"],Ee={class:"aheart-ai-workbench__timeline"},fe=["data-task-id"],Ce={class:"aheart-ai-workbench__task-body"},we={class:"aheart-ai-workbench__task-summary"},Se={key:0,class:"aheart-ai-workbench__tool-name"},De={class:"aheart-ai-workbench__task-status"},$e={key:0,class:"aheart-ai-workbench__task-detail"},xe={key:1,class:"aheart-ai-workbench__tool-call","aria-label":"工具调用摘要"},je={key:0},Ae={key:1},Te={key:2},Me={key:2,class:"aheart-ai-workbench__task-lock-reason",role:"status"},Ie={key:3,class:"aheart-ai-workbench__task-lock-reason",role:"status"},ze={key:4,class:"aheart-ai-workbench__task-lock-reason",role:"status"},Ke={key:5,class:"aheart-ai-workbench__task-progress"},Re=["aria-valuenow"],Le={key:6,class:"aheart-ai-workbench__task-time"},Fe={key:0},qe={key:1},Ue={key:7,class:"aheart-ai-workbench__task-error"},He={class:"aheart-ai-workbench__task-actions"},Pe={key:8,class:"aheart-ai-workbench__operation-status",role:"status"},Oe=["data-approval-id"],We={key:0},Ze={key:1,class:"aheart-ai-workbench__approval-result"},Ge={key:0,class:"aheart-ai-workbench__empty"},Je=["aria-labelledby"],Qe={class:"aheart-ai-workbench__section-heading"},Xe=["id"],Ye={key:0,class:"aheart-ai-workbench__artifact-list"},et=["data-artifact-id"],tt=["aria-pressed","onClick"],at={key:0},ot={key:1,class:"aheart-ai-workbench__empty"},lt={key:2,class:"aheart-ai-workbench__artifact-preview","aria-label":"产物预览"},rt={class:"aheart-ai-workbench__artifact-preview-header"},nt=["href"],st={key:0},ct=e.defineComponent({name:"AIAgentWorkbenchExecution",__name:"agent-execution",props:{tasks:{default:()=>[]},artifacts:{default:()=>[]},activeArtifact:{default:void 0},disabled:{type:Boolean,default:!1},reorderable:{type:Boolean,default:!0},tasksRevision:{},scopeKey:{default:"default"},actionDisabled:{type:Function,default:()=>!1},operationMessages:{default:()=>({})},validateCandidate:{type:Function,default:()=>{}}},emits:["update:tasks","approve","reject","cancel","retry","move-task","move-task-reject","select-artifact"],setup(i,{emit:Q}){const r=i,C=e.computed(()=>`aheart-agent-execution-${String(r.scopeKey??"default").replace(/[^a-zA-Z0-9_-]/g,"-")}`),w=e.computed(()=>`${C.value}-tasks`),S=e.computed(()=>`${C.value}-artifacts`),d=Q,X={pending:"等待执行",running:"执行中","waiting-approval":"等待审批",complete:"已完成",error:"执行失败",cancelled:"已取消"},Y=e.computed(()=>r.tasks.map((o,l)=>({...o,__sortableKey:`${o.id}::${l}`}))),n=e.computed(()=>r.artifacts.find(o=>o.id===r.activeArtifact)??r.artifacts[0]),s=e.computed(()=>r.tasks.find(o=>o.approval&&(!o.approval.status||o.approval.status==="pending"))??r.tasks.find(o=>o.approval)),_=e.computed(()=>r.artifacts.find(o=>{var l,c;return o.id===((c=(l=s.value)==null?void 0:l.approval)==null?void 0:c.artifactId)})??n.value),ee=e.computed(()=>{var o;return(o=s.value)!=null&&o.approval&&(!s.value.approval.status||s.value.approval.status==="pending")?"等待审批":s.value?"审批结果":"当前产物"}),a=o=>o,p=o=>o.toolCall,N=o=>{var l;return`${o.id}:${String(o.revision??"")}:${((l=o.approval)==null?void 0:l.id)??""}`},te=o=>{d("move-task-reject",{"stale-revision":"任务版本已变化,排序已拒绝","source-missing":"源任务已不存在,排序已拒绝","target-missing":"目标位置已不存在,排序已拒绝","duplicate-key":"任务标识重复,无法排序","group-mismatch":"任务不属于当前排序分组",disabled:"任务当前不可排序,排序已拒绝","invalid-position":"目标位置无效,排序已拒绝","parent-rejected":"任务版本已变化,排序已拒绝","rollback-rejected":"排序回滚失败,请刷新后重试",unmounted:"排序目标已卸载",cancelled:"排序已取消"}[o.reason??""]??"任务当前不可排序,排序已拒绝")},ae=o=>X[o],oe=o=>o.status,le=o=>ae(o.status),V=o=>Math.min(100,Math.max(0,Math.round(o??0))),re=o=>{var l;if(!r.disabled&&r.reorderable){const c=o.map(({__sortableKey:b,...h})=>h),k=(l=r.validateCandidate)==null?void 0:l.call(r,c);if(k){d("move-task-reject",k);return}d("update:tasks",c)}},D=(o,l)=>{var h;if(E(r.tasks[o],o,l))return;const c=[...r.tasks],[k]=c.splice(o,1);c.splice(o+l,0,k);const b=(h=r.validateCandidate)==null?void 0:h.call(r,c);if(b){d("move-task-reject",b);return}d("update:tasks",c),d("move-task",k.id,l<0?"up":"down")},y=(o,l)=>{var c;return r.disabled||!!((c=r.actionDisabled)!=null&&c.call(r,o,l))},E=(o,l,c)=>!!(r.disabled||!r.reorderable||l+c<0||l+c>=r.tasks.length||(o==null?void 0:o.reorderable)===!1||o!=null&&o.lockedReason||(o==null?void 0:o.status)==="running"||(o==null?void 0:o.status)==="waiting-approval");return(o,l)=>{var c,k,b,h,$,x;return e.openBlock(),e.createElementBlock("div",se,[s.value||n.value?(e.openBlock(),e.createElementBlock("section",ce,[e.createElementVNode("div",ie,[e.createElementVNode("span",de,e.toDisplayString(ee.value),1),s.value?(e.openBlock(),e.createElementBlock("strong",pe,e.toDisplayString((c=s.value.approval)==null?void 0:c.title),1)):(e.openBlock(),e.createElementBlock("strong",ue,"查看当前产物"))]),s.value?(e.openBlock(),e.createElementBlock("div",ke,[(k=s.value.approval)!=null&&k.description?(e.openBlock(),e.createElementBlock("p",me,e.toDisplayString(s.value.approval.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",ve,[!((b=s.value.approval)!=null&&b.status)||s.value.approval.status==="pending"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(v.Button),{"data-action":"approve",type:"primary",disabled:y(s.value,"approve"),onClick:l[0]||(l[0]=t=>d("approve",s.value))},{default:e.withCtx(()=>[...l[4]||(l[4]=[e.createTextVNode("批准",-1)])]),_:1},8,["disabled"]),e.createVNode(e.unref(v.Button),{"data-action":"reject",danger:"",disabled:y(s.value,"reject"),onClick:l[1]||(l[1]=t=>d("reject",s.value))},{default:e.withCtx(()=>[...l[5]||(l[5]=[e.createTextVNode("拒绝",-1)])]),_:1},8,["disabled"])],64)):(e.openBlock(),e.createElementBlock("span",_e,e.toDisplayString(s.value.approval.status==="approved"?"已批准":"已拒绝"),1))])])):e.createCommentVNode("",!0),_.value?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"aheart-ai-workbench__priority-artifact","data-artifact-role":"approval","aria-label":_.value.title,onClick:l[2]||(l[2]=t=>d("select-artifact",_.value))},[e.createElementVNode("span",null,e.toDisplayString(($=(h=s.value)==null?void 0:h.approval)!=null&&$.artifactId?"审批对象":"当前产物"),1),e.createElementVNode("strong",null,e.toDisplayString(_.value.title),1),_.value.description?(e.openBlock(),e.createElementBlock("small",he,e.toDisplayString(_.value.description),1)):e.createCommentVNode("",!0)],8,ye)):e.createCommentVNode("",!0),n.value&&n.value.id!==((x=_.value)==null?void 0:x.id)?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:"aheart-ai-workbench__priority-artifact","data-artifact-role":"current","aria-label":n.value.title,onClick:l[3]||(l[3]=t=>d("select-artifact",n.value))},[l[6]||(l[6]=e.createElementVNode("span",null,"当前产物",-1)),e.createElementVNode("strong",null,e.toDisplayString(n.value.title),1),n.value.description?(e.openBlock(),e.createElementBlock("small",ge,e.toDisplayString(n.value.description),1)):e.createCommentVNode("",!0)],8,be)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("section",{class:"aheart-ai-workbench__tasks","aria-labelledby":w.value},[e.createElementVNode("div",Ne,[e.createElementVNode("div",null,[l[7]||(l[7]=e.createElementVNode("span",{class:"aheart-ai-workbench__eyebrow"},"执行流程",-1)),e.createElementVNode("h2",{id:w.value},"执行时间线",8,Ve)]),e.createElementVNode("span",null,e.toDisplayString(i.tasks.length)+" 项",1)]),e.createElementVNode("div",Ee,[e.createVNode(e.unref(ne.SortableList),{items:Y.value,"item-key":"__sortableKey",disabled:i.disabled||!i.reorderable,revision:i.tasksRevision,group:`agent-tasks-${i.scopeKey}`,"onUpdate:items":re,onMoveReject:te},{item:e.withCtx(({item:t,index:m})=>[e.renderSlot(o.$slots,"task",{task:a(t),index:m},()=>{var g,f,j,A,T,M,I,z,K,R,L,F,q,U,H,P,O,W,Z,G;return[e.createElementVNode("article",{"data-task-id":a(t).id,class:e.normalizeClass(["aheart-ai-workbench__timeline-item",[`is-${oe(a(t))}`,{"has-approval-summary":!!a(t).approval}]])},[l[15]||(l[15]=e.createElementVNode("span",{class:"aheart-ai-workbench__timeline-marker","aria-hidden":"true"},null,-1)),e.createElementVNode("div",Ce,[e.createElementVNode("header",we,[e.createElementVNode("div",null,[e.createElementVNode("strong",null,e.toDisplayString(a(t).label),1),a(t).toolName?(e.openBlock(),e.createElementBlock("span",Se,e.toDisplayString(a(t).toolName),1)):e.createCommentVNode("",!0)]),e.createElementVNode("span",De,e.toDisplayString(le(a(t))),1)]),a(t).detail&&!p(a(t))?(e.openBlock(),e.createElementBlock("p",$e,e.toDisplayString(a(t).detail),1)):e.createCommentVNode("",!0),p(a(t))?(e.openBlock(),e.createElementBlock("section",xe,[e.createElementVNode("strong",null,e.toDisplayString((g=p(a(t)))==null?void 0:g.name),1),e.createElementVNode("span",null,e.toDisplayString((f=p(a(t)))==null?void 0:f.summary),1),(j=p(a(t)))!=null&&j.inputSummary?(e.openBlock(),e.createElementBlock("small",je,e.toDisplayString((A=p(a(t)))==null?void 0:A.inputSummary),1)):e.createCommentVNode("",!0),(T=p(a(t)))!=null&&T.resultSummary?(e.openBlock(),e.createElementBlock("small",Ae,e.toDisplayString((M=p(a(t)))==null?void 0:M.resultSummary),1)):e.createCommentVNode("",!0),(I=p(a(t)))!=null&&I.error?(e.openBlock(),e.createElementBlock("small",Te,e.toDisplayString((z=p(a(t)))==null?void 0:z.error),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),a(t).lockedReason||((K=i.operationMessages)==null?void 0:K[N(a(t))])===""?(e.openBlock(),e.createElementBlock("p",Me,e.toDisplayString(a(t).lockedReason),1)):e.createCommentVNode("",!0),a(t).revision===void 0&&y(a(t),"approve")?(e.openBlock(),e.createElementBlock("p",Ie,"缺少任务版本")):e.createCommentVNode("",!0),(R=a(t).approval)!=null&&R.artifactId&&(!i.artifacts.some(u=>{var B;return u.id===((B=a(t).approval)==null?void 0:B.artifactId)})||i.artifacts.some(u=>{var B;return u.id===((B=a(t).approval)==null?void 0:B.artifactId)&&u.revision===void 0}))?(e.openBlock(),e.createElementBlock("p",ze,"缺少产物版本")):e.createCommentVNode("",!0),a(t).progress!==void 0?(e.openBlock(),e.createElementBlock("div",Ke,[e.createElementVNode("div",{role:"progressbar","aria-label":"任务进度","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":V(a(t).progress)},[e.createElementVNode("span",{style:e.normalizeStyle({inlineSize:`${V(a(t).progress)}%`})},null,4)],8,Re),e.createElementVNode("small",null,e.toDisplayString(V(a(t).progress))+"%",1)])):e.createCommentVNode("",!0),a(t).startedAt||a(t).completedAt?(e.openBlock(),e.createElementBlock("div",Le,[a(t).startedAt?(e.openBlock(),e.createElementBlock("span",Fe,"开始 "+e.toDisplayString(a(t).startedAt),1)):e.createCommentVNode("",!0),a(t).completedAt?(e.openBlock(),e.createElementBlock("span",qe,"完成 "+e.toDisplayString(a(t).completedAt),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),a(t).error?(e.openBlock(),e.createElementBlock("details",Ue,[l[8]||(l[8]=e.createElementVNode("summary",null,"查看错误详情",-1)),e.createElementVNode("p",null,e.toDisplayString(a(t).error),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",He,[a(t).status==="running"?(e.openBlock(),e.createBlock(e.unref(v.Button),{key:0,"data-action":"cancel",type:"text",disabled:y(a(t),"cancel"),onClick:u=>d("cancel",a(t))},{default:e.withCtx(()=>[...l[9]||(l[9]=[e.createTextVNode("取消",-1)])]),_:1},8,["disabled","onClick"])):e.createCommentVNode("",!0),a(t).status==="error"||(L=i.operationMessages)!=null&&L[N(a(t))]?(e.openBlock(),e.createBlock(e.unref(v.Button),{key:1,"data-action":"retry",type:"text",disabled:y(a(t),"retry"),onClick:u=>d("retry",a(t))},{default:e.withCtx(()=>[...l[10]||(l[10]=[e.createTextVNode("重试",-1)])]),_:1},8,["disabled","onClick"])):e.createCommentVNode("",!0),e.createVNode(e.unref(v.Button),{"data-action":"move-up",type:"text",disabled:E(a(t),m,-1),onClick:u=>D(m,-1)},{default:e.withCtx(()=>[...l[11]||(l[11]=[e.createTextVNode("上移",-1)])]),_:1},8,["disabled","onClick"]),e.createVNode(e.unref(v.Button),{"data-action":"move-down",type:"text",disabled:E(a(t),m,1),onClick:u=>D(m,1)},{default:e.withCtx(()=>[...l[12]||(l[12]=[e.createTextVNode("下移",-1)])]),_:1},8,["disabled","onClick"])]),(F=i.operationMessages)!=null&&F[N(a(t))]?(e.openBlock(),e.createElementBlock("p",Pe,e.toDisplayString(i.operationMessages[N(a(t))]),1)):e.createCommentVNode("",!0),a(t).approval?(e.openBlock(),e.createElementBlock("div",{key:9,"data-approval-id":(q=a(t).approval)==null?void 0:q.id,class:e.normalizeClass(["aheart-ai-workbench__approval",`is-${((U=a(t).approval)==null?void 0:U.status)??"pending"}`])},[e.createElementVNode("div",null,[e.createElementVNode("strong",null,e.toDisplayString((H=a(t).approval)==null?void 0:H.title),1),(P=a(t).approval)!=null&&P.description?(e.openBlock(),e.createElementBlock("p",We,e.toDisplayString((O=a(t).approval)==null?void 0:O.description),1)):e.createCommentVNode("",!0)]),!((W=a(t).approval)!=null&&W.status)||((Z=a(t).approval)==null?void 0:Z.status)==="pending"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(v.Button),{"data-action":"approve",type:"primary",disabled:y(a(t),"approve"),onClick:u=>d("approve",a(t))},{default:e.withCtx(()=>[...l[13]||(l[13]=[e.createTextVNode("批准",-1)])]),_:1},8,["disabled","onClick"]),e.createVNode(e.unref(v.Button),{"data-action":"reject",danger:"",disabled:y(a(t),"reject"),onClick:u=>d("reject",a(t))},{default:e.withCtx(()=>[...l[14]||(l[14]=[e.createTextVNode("拒绝",-1)])]),_:1},8,["disabled","onClick"])],64)):(e.openBlock(),e.createElementBlock("span",Ze,e.toDisplayString(((G=a(t).approval)==null?void 0:G.status)==="approved"?"已批准":"已拒绝"),1))],10,Oe)):e.createCommentVNode("",!0)])],10,fe)]})]),_:3},8,["items","disabled","revision","group"])]),i.tasks.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",Ge,"尚无执行任务。"))],8,Be),e.createElementVNode("section",{class:"aheart-ai-workbench__artifacts","aria-labelledby":S.value},[e.createElementVNode("div",Qe,[e.createElementVNode("div",null,[l[16]||(l[16]=e.createElementVNode("span",{class:"aheart-ai-workbench__eyebrow"},"产物输出",-1)),e.createElementVNode("h2",{id:S.value},"产物",8,Xe)]),e.createElementVNode("span",null,e.toDisplayString(i.artifacts.length)+" 项",1)]),i.artifacts.length?(e.openBlock(),e.createElementBlock("ul",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.artifacts,t=>{var m,g;return e.openBlock(),e.createElementBlock("li",{key:t.id,"data-artifact-id":t.id,class:e.normalizeClass({"is-active":t.id===((m=n.value)==null?void 0:m.id)})},[e.createElementVNode("button",{type:"button","aria-pressed":t.id===((g=n.value)==null?void 0:g.id),onClick:f=>d("select-artifact",t)},[e.renderSlot(o.$slots,"artifact",{artifact:t},()=>[e.createElementVNode("span",null,e.toDisplayString(t.title),1),t.description?(e.openBlock(),e.createElementBlock("small",at,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])],8,tt)],10,et)}),128))])):(e.openBlock(),e.createElementBlock("p",ot,"任务完成后,产物会出现在这里。")),n.value?(e.openBlock(),e.createElementBlock("section",lt,[e.renderSlot(o.$slots,"artifact-preview",{artifact:n.value},()=>[e.createElementVNode("div",rt,[e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString(n.value.type??"文件"),1),e.createElementVNode("h3",null,e.toDisplayString(n.value.title),1)]),e.unref(J.getSafeUrl)(n.value.url)?(e.openBlock(),e.createElementBlock("a",{key:0,href:e.unref(J.getSafeUrl)(n.value.url),target:"_blank",rel:"noreferrer"},"打开产物",8,nt)):e.createCommentVNode("",!0)]),e.createElementVNode("p",null,e.toDisplayString(n.value.description??"业务层可通过 artifact-preview 插槽提供自定义预览。"),1),n.value.updatedAt?(e.openBlock(),e.createElementBlock("small",st,"更新于 "+e.toDisplayString(n.value.updatedAt),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)],8,Je)])}}});exports.default=ct;
@@ -1,2 +0,0 @@
1
- export { default as AIAgentWorkbench, default } from '../agent-workbench.vue';
2
- export type * from '../types';
@@ -1,186 +0,0 @@
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").DefineComponent<import("vue").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").ComponentOptionsMixin, import("vue").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").PublicProps, Readonly<import("vue").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").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
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("aheart-ui"),ge=require("@aheart-ui/dnd/sortable"),re=require("./attachments.vue.js"),ye=require("./chat-panel.vue.js"),se=require("./conversations.vue.js"),ie=require("./sources.vue.js"),we=require("./agent-execution.vue.js"),Ce={class:"aheart-ai-workbench","aria-label":"AI 工作台"},Ve={class:"aheart-ai-workbench__header"},Ie={key:0},Ne={class:"aheart-ai-workbench__header-status"},xe={class:"aheart-ai-workbench__progress"},Se=["aria-label"],Ee={class:"aheart-ai-workbench__desktop"},$e={class:"aheart-ai-workbench__sidebar"},Be={key:0,class:"aheart-ai-workbench__context","aria-label":"上下文"},_e=["data-context-id"],Te={key:0},Ae={class:"aheart-ai-workbench__move-actions"},Me={class:"aheart-ai-workbench__chat"},De={key:1,class:"aheart-ai-workbench__empty"},Re={class:"aheart-ai-workbench__execution","aria-label":"执行与产物"},je={key:0,class:"aheart-ai-workbench__task-order-error",role:"alert"},Oe={class:"aheart-ai-workbench__mobile"},ze={class:"aheart-ai-workbench__mobile-panel"},Ue={key:0,class:"aheart-ai-workbench__context","aria-label":"上下文"},Pe={class:"aheart-ai-workbench__context-list-mobile"},Ke=["data-context-id"],qe={key:0},He={class:"aheart-ai-workbench__move-actions"},Le={class:"aheart-ai-workbench__mobile-panel"},Fe={class:"aheart-ai-workbench__mobile-panel--chat"},Je=["id"],Ze={key:0,class:"aheart-ai-workbench__empty"},We={class:"aheart-ai-workbench__mobile-panel"},Ge=e.defineComponent({name:"AAIAgentWorkbench",__name:"agent-workbench",props:{title:{default:"AI 工作台"},description:{default:"编排对话、任务、审批与产物。"},panelSizes:{default:()=>[150,"auto",200]},conversations:{default:()=>[]},activeConversation:{default:void 0},messages:{default:()=>[]},prompts:{default:()=>[]},transport:{default:void 0},tasks:{default:()=>[]},contextItems:{default:()=>[]},sources:{default:()=>[]},attachments:{default:()=>[]},artifacts:{default:()=>[]},activeArtifact:{default:void 0},disabled:{type:Boolean,default:!1},actionHandler:{},reorderable:{type:Boolean,default:!0},tasksRevision:{default:void 0},scopeKey:{default:void 0}},emits:["update:panelSizes","update:activeConversation","update:messages","update:activeArtifact","update:tasks","update:contextItems","approve","reject","cancel","retry","move-task","move-context","stop","chat-retry","chat-regenerate","chat-edit","chat-copy","error","operation-start","operation-success","operation-error","task-move-reject"],setup(c,{emit:le}){const r=c,v=le,V=e.ref("chat"),_=e.ref(!1),O=e.ref(),z=e.ref(),q=e.ref(!1),S=e.ref(!1),E=e.ref(!1);let g,M;const $=e.getCurrentInstance(),U=`scope-${e.useId().replace(/[^a-zA-Z0-9_-]/g,"-")}`,P=U.replace(/^scope-/,""),ce=`aheart-ai-${P}-chat-target`,H=`aheart-ai-${P}-execution-target`,K=e.computed(()=>r.scopeKey===void 0?U:`scope-${String(r.scopeKey).replace(/[^a-zA-Z0-9_-]/g,"-")}-${U.replace(/^scope-/,"")}`);e.onMounted(async()=>{var o,n,i;q.value=!0;const a=(n=(o=$==null?void 0:$.proxy)==null?void 0:o.$el)==null?void 0:n.ownerDocument,t=a==null?void 0:a.defaultView;t!=null&&t.matchMedia?(g=t.matchMedia("(max-width: 760px)"),E.value=g.matches,M=d=>{E.value=d.matches},(i=g.addEventListener)==null||i.call(g,"change",M)):E.value=!0,S.value=!0,await e.nextTick()}),e.onBeforeUnmount(()=>{var a;g&&M&&((a=g.removeEventListener)==null||a.call(g,"change",M))}),e.watch(E,a=>{a||(_.value=!1)});const m=e.ref({}),y=new Map,N=new Map;let L=0;const x=new Set,F=()=>Object.prototype.hasOwnProperty.call(($==null?void 0:$.vnode.props)??{},"messages"),J=e.ref(F());e.onBeforeUpdate(()=>{J.value=F()});const de=e.computed(()=>J.value?{messages:r.messages}:{defaultMessages:r.messages}),Z=e.computed(()=>r.tasks.filter(a=>a.approval&&(!a.approval.status||a.approval.status==="pending"))),I=e.computed(()=>Z.value.length),W=e.computed(()=>{const a=Z.value[0],t=r.artifacts.find(n=>{var i;return n.id===((i=a==null?void 0:a.approval)==null?void 0:i.artifactId)});return t?`${I.value>1?`${I.value} 项待审批`:"待审批"}:${t.title}`:`${I.value} 项待审批`}),ue=()=>{V.value="execution",_.value=!0},ve=e.computed(()=>[{key:D("conversations"),label:"会话"},{key:D("chat"),label:"对话"},{key:D("execution"),label:e.h("span",{class:"aheart-ai-workbench__mobile-tab-label"},[e.h("span","执行"),I.value>0?e.h("span",{class:"aheart-ai-workbench__pending-badge","aria-label":`${I.value} 项待审批`},String(I.value)):null])}]),D=a=>`${a}--${P}`,pe=e.computed(()=>Object.fromEntries(Object.entries(m.value).map(([a,t])=>[a,t.message??(t.status==="pending"?"处理中…":t.status==="success"?"成功":"")]))),B=a=>{var t;return`${a.id}:${String(a.revision??"")}:${((t=a.approval)==null?void 0:t.id)??""}`},G=(a,t)=>{const o=B(a),n=m.value[o];return x.has(o)||[...x].some(d=>d.startsWith(`${a.id}:`))||(n==null?void 0:n.status)==="pending"||(n==null?void 0:n.status)==="success"||r.disabled||r.actionHandler&&a.revision===void 0?!0:a.approval?(n==null?void 0:n.status)==="error"&&n.outcome!=="not-applied"&&t!=="retry"||r.actionHandler&&(a.revision===void 0||a.approval.artifactId&&(!r.artifacts.find(d=>{var s;return d.id===((s=a.approval)==null?void 0:s.artifactId)})||r.artifacts.some(d=>{var s;return d.id===((s=a.approval)==null?void 0:s.artifactId)&&d.revision===void 0})))?!0:a.status==="running"&&t!=="cancel":(n==null?void 0:n.status)==="error"?t!=="retry":!(a.status==="running"&&t==="cancel"||a.status==="error"&&t==="retry")},R=async(a,t)=>{var u,p,f,C,A,oe;if(G(t,a))return;if(!r.actionHandler){v(a==="approve"?"approve":a==="reject"?"reject":a==="cancel"?"cancel":"retry",t);return}const o=(u=t.approval)!=null&&u.artifactId?r.artifacts.find(b=>{var h;return b.id===((h=t.approval)==null?void 0:h.artifactId)}):void 0,n=B(t),i=m.value[n];(i==null?void 0:i.status)==="error"&&i.outcome==="not-applied"&&N.delete(n);const d=N.get(n)??`${n}:${Date.now()}:${++L}`;N.set(n,d);const s={operationId:`${d}:attempt-${++L}`,idempotencyKey:d,conversationId:r.activeConversation,taskId:t.id,taskRevision:t.revision,action:(i==null?void 0:i.status)==="error"&&i.outcome==="unknown"&&a==="retry"?i.action:a,...(p=t.approval)!=null&&p.id?{approvalId:t.approval.id}:{},artifactId:((f=t.approval)==null?void 0:f.artifactId)??(o==null?void 0:o.id),...(o==null?void 0:o.revision)===void 0?{}:{artifactRevision:o.revision}},l=new AbortController;x.add(n),y.set(n,l),m.value={...m.value,[n]:{status:"pending",operationId:s.operationId,idempotencyKey:d,action:s.action,taskRevision:t.revision,taskStatus:t.status,approvalStatus:(C=t.approval)==null?void 0:C.status,approvalId:(A=t.approval)==null?void 0:A.id,artifactId:(o==null?void 0:o.id)??((oe=t.approval)==null?void 0:oe.artifactId),artifactRevision:o==null?void 0:o.revision,conversationId:r.activeConversation}},v("operation-start",s);try{const b=await r.actionHandler(s,l.signal),h=m.value[n];if(l.signal.aborted||!h||h.operationId!==s.operationId||b.operationId!==s.operationId)return;b.status==="success"?(m.value={...m.value,[n]:{...h,status:"success",message:"成功"}},v("operation-success",s)):(m.value={...m.value,[n]:{...h,status:"error",message:b.error,outcome:b.outcome??"unknown"}},v("operation-error",s,b.error))}catch(b){if(l.signal.aborted)return;const h=m.value[n];if(!h||h.operationId!==s.operationId)return;const ne=b instanceof Error?b.message:"操作失败";m.value={...m.value,[n]:{...h,status:"error",message:ne,outcome:"unknown"}},v("operation-error",s,ne)}finally{x.delete(n),y.get(n)===l&&y.delete(n)}},X=a=>{const t=new Set(a.map(l=>l.id)),o=new Set(r.tasks.map(l=>l.id));if(t.size!==a.length||t.size!==o.size||[...t].some(l=>!o.has(l))||a.some(l=>{var u;return(u=l.dependsOn)==null?void 0:u.some(p=>!t.has(p))}))return"任务集合或依赖无效,无法排序";const n=new Map(a.map((l,u)=>[l.id,u]));if(a.some(l=>{var u;return(u=l.dependsOn)==null?void 0:u.some(p=>(n.get(p)??1/0)>=n.get(l.id))}))return"依赖任务必须排在前面";const i=new Set,d=new Set,s=l=>{var p;if(i.has(l))return!0;if(d.has(l))return!1;i.add(l);const u=a.find(f=>f.id===l);return(p=u==null?void 0:u.dependsOn)!=null&&p.some(s)?!0:(i.delete(l),d.add(l),!1)};if(a.some(l=>s(l.id)))return"任务依赖存在循环"},Y=e.computed(()=>X(r.tasks)),Q=a=>{var n;const t=X(a);if(t)return t;const o=new Map(r.tasks.map((i,d)=>[i.id,d]));for(const[i,d]of a.entries()){const s=r.tasks[o.get(d.id)??-1];if(!s)return"任务集合发生变化,无法排序";if(JSON.stringify(d)!==JSON.stringify(s))return"任务数据在排序期间发生变化";if((s.lockedReason||s.reorderable===!1||["running","waiting-approval"].includes(s.status))&&o.get(d.id)!==i)return s.lockedReason??"任务当前不可移动";if(((n=m.value[B(s)])==null?void 0:n.status)==="pending"&&o.get(d.id)!==i)return"任务操作进行中,无法移动"}},me=a=>{const t=a,o=Q(t);if(o){v("task-move-reject",o);return}v("update:tasks",t)},ee=e.computed(()=>r.contextItems),te=e.computed(()=>r.tasks.filter(a=>a.status==="complete").length),ae=e.computed(()=>r.tasks.some(a=>a.status==="error")?{key:"error",label:"需要处理"}:I.value>0?{key:"waiting",label:"等待人工审批"}:r.tasks.some(a=>a.status==="running")?{key:"running",label:"执行中"}:r.tasks.length&&te.value===r.tasks.length?{key:"complete",label:"已完成"}:{key:"idle",label:"待开始"}),w=a=>a,fe=(a,t,o)=>{const n=t+o;if(n<0||n>=a.length)return a;const i=[...a],[d]=i.splice(t,1);return i.splice(n,0,d),i},T=(a,t)=>{var n,i;const o=a+t;return!!(r.disabled||o<0||o>=r.contextItems.length||(n=r.contextItems[a])!=null&&n.disabled||(i=r.contextItems[o])!=null&&i.disabled)},j=(a,t)=>{if(T(a,t))return;const o=r.contextItems[a];!o||a+t<0||a+t>=r.contextItems.length||(v("update:contextItems",fe(r.contextItems,a,t)),v("move-context",o.id,t<0?"up":"down"))},he=a=>{if(r.disabled)return;const t=a;r.contextItems.some((n,i)=>{var d;return n.disabled&&((d=t[i])==null?void 0:d.id)!==n.id})||v("update:contextItems",t)},ke=(a,t)=>v("move-task",a,t),be=(a,t)=>v("chat-edit",a,t);return e.watch(()=>[r.tasks,r.artifacts,r.activeConversation,r.actionHandler],()=>{var a,t,o,n,i,d;for(const[s,l]of y){const u=r.tasks.find(C=>B(C)===s);if(!u){l.abort(),y.delete(s),x.delete(s),N.delete(s);continue}const p=m.value[s],f=(a=u.approval)!=null&&a.artifactId?r.artifacts.find(C=>{var A;return C.id===((A=u.approval)==null?void 0:A.artifactId)}):void 0;p&&(p.taskRevision!==u.revision||p.approvalId!==((t=u.approval)==null?void 0:t.id)||p.artifactId!==((f==null?void 0:f.id)??((o=u.approval)==null?void 0:o.artifactId))||p.artifactRevision!==(f==null?void 0:f.revision)||p.conversationId!==r.activeConversation)&&(l==null||l.abort(),l&&y.delete(s),x.delete(s),N.delete(s),delete m.value[s])}for(const s of Object.keys(m.value))r.tasks.some(l=>B(l)===s)||delete m.value[s];for(const[s,l]of Object.entries(m.value)){const u=r.tasks.find(f=>B(f)===s),p=(n=u==null?void 0:u.approval)!=null&&n.artifactId?r.artifacts.find(f=>{var C;return f.id===((C=u.approval)==null?void 0:C.artifactId)}):void 0;(!u||l.conversationId!==r.activeConversation||l.taskStatus!==u.status||l.approvalStatus!==((i=u.approval)==null?void 0:i.status)||l.artifactId!==((p==null?void 0:p.id)??((d=u.approval)==null?void 0:d.artifactId))||l.artifactRevision!==(p==null?void 0:p.revision))&&(N.delete(s),delete m.value[s])}},{deep:!0}),e.watch(()=>r.actionHandler,(a,t)=>{if(a!==t){for(const o of y.values())o.abort();y.clear(),x.clear(),m.value={},N.clear()}}),e.onBeforeUnmount(()=>{for(const a of y.values())a.abort()}),(a,t)=>(e.openBlock(),e.createElementBlock("section",Ce,[e.createElementVNode("header",Ve,[e.createElementVNode("div",null,[t[18]||(t[18]=e.createElementVNode("span",{class:"aheart-ai-workbench__eyebrow"},"智能工作区",-1)),e.createElementVNode("h2",null,e.toDisplayString(c.title),1),c.description?(e.openBlock(),e.createElementBlock("p",Ie,e.toDisplayString(c.description),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ne,[e.createElementVNode("span",{"data-workbench-status":"",class:e.normalizeClass(`is-${ae.value.key}`)},e.toDisplayString(ae.value.label),3),e.createElementVNode("small",xe,e.toDisplayString(te.value)+" / "+e.toDisplayString(c.tasks.length)+" 已完成",1),I.value>0?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button","data-pending-approval-summary":"",class:"aheart-ai-workbench__pending-summary","aria-label":W.value,onClick:ue},e.toDisplayString(W.value),9,Se)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Ee,[e.createVNode(e.unref(k.Splitter),{sizes:c.panelSizes,"default-sizes":[150,"auto",200],"onUpdate:sizes":t[13]||(t[13]=o=>v("update:panelSizes",o))},{default:e.withCtx(()=>[e.createVNode(e.unref(k.SplitterPanel),{min:140,collapsible:""},{default:e.withCtx(()=>[e.createElementVNode("aside",$e,[t[22]||(t[22]=e.createElementVNode("h2",null,"会话",-1)),e.createVNode(se.default,{"model-value":c.activeConversation,conversations:c.conversations,"onUpdate:modelValue":t[0]||(t[0]=o=>v("update:activeConversation",o))},null,8,["model-value","conversations"]),c.contextItems.length?(e.openBlock(),e.createElementBlock("section",Be,[t[21]||(t[21]=e.createElementVNode("h3",null,"上下文",-1)),e.createVNode(e.unref(ge.SortableList),{items:ee.value,"item-key":"id",group:`agent-context-${K.value}`,disabled:c.disabled,"onUpdate:items":he},{item:e.withCtx(({item:o,index:n})=>[e.createElementVNode("div",{class:"aheart-ai-workbench__context-item","data-context-id":w(o).id},[e.createElementVNode("span",null,e.toDisplayString(w(o).label),1),w(o).description?(e.openBlock(),e.createElementBlock("small",Te,e.toDisplayString(w(o).description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ae,[e.createVNode(e.unref(k.Button),{type:"text",disabled:T(n,-1),onClick:i=>j(n,-1)},{default:e.withCtx(()=>[...t[19]||(t[19]=[e.createTextVNode("上移",-1)])]),_:1},8,["disabled","onClick"]),e.createVNode(e.unref(k.Button),{type:"text",disabled:T(n,1),onClick:i=>j(n,1)},{default:e.withCtx(()=>[...t[20]||(t[20]=[e.createTextVNode("下移",-1)])]),_:1},8,["disabled","onClick"])])],8,_e)]),_:1},8,["items","group","disabled"])])):e.createCommentVNode("",!0)])]),_:1}),e.createVNode(e.unref(k.SplitterPanel),{min:230},{default:e.withCtx(()=>[e.createElementVNode("main",Me,[c.transport?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:S.value?O.value:`#${ce}`,disabled:!S.value||!E.value||V.value!=="chat"||!O.value&&S.value},[c.transport?(e.openBlock(),e.createBlock(ye.default,e.mergeProps({key:"chat-owner"},de.value,{transport:c.transport,"conversation-id":c.activeConversation,prompts:c.prompts,disabled:c.disabled,"onUpdate:messages":t[1]||(t[1]=o=>v("update:messages",o)),onError:t[2]||(t[2]=o=>v("error",o)),onStop:t[3]||(t[3]=o=>v("stop")),onRetry:t[4]||(t[4]=o=>v("chat-retry",o)),onRegenerate:t[5]||(t[5]=o=>v("chat-regenerate",o)),onEdit:be,onCopy:t[6]||(t[6]=o=>v("chat-copy",o))}),null,16,["transport","conversation-id","prompts","disabled"])):e.createCommentVNode("",!0)],8,["to","disabled"])):e.createCommentVNode("",!0),c.transport?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",De,"业务层尚未提供对话传输适配器。")),e.renderSlot(a.$slots,"sources",{sources:c.sources},()=>[e.createVNode(ie.default,{sources:c.sources},null,8,["sources"])]),e.renderSlot(a.$slots,"attachments",{attachments:c.attachments},()=>[e.createVNode(re.default,{items:c.attachments},null,8,["items"])])])]),_:3}),e.createVNode(e.unref(k.SplitterPanel),{min:180,collapsible:""},{default:e.withCtx(()=>[e.createElementVNode("aside",Re,[(e.openBlock(),e.createBlock(e.Teleport,{to:S.value?z.value:`#${H}`,disabled:!S.value||!E.value||V.value!=="execution"||!z.value},[e.createVNode(we.default,{key:"execution-owner",tasks:c.tasks,artifacts:c.artifacts,"active-artifact":c.activeArtifact,disabled:c.disabled,reorderable:c.reorderable,"tasks-revision":c.tasksRevision,"scope-key":K.value,"action-disabled":G,"operation-messages":pe.value,"validate-candidate":Q,"onUpdate:tasks":me,onApprove:t[7]||(t[7]=o=>R("approve",o)),onReject:t[8]||(t[8]=o=>R("reject",o)),onCancel:t[9]||(t[9]=o=>R("cancel",o)),onRetry:t[10]||(t[10]=o=>R("retry",o)),onMoveTask:ke,onMoveTaskReject:t[11]||(t[11]=o=>v("task-move-reject",o)),onSelectArtifact:t[12]||(t[12]=o=>v("update:activeArtifact",o.id))},e.createSlots({_:2},[a.$slots.task?{name:"task",fn:e.withCtx(({task:o,index:n})=>[e.renderSlot(a.$slots,"task",{task:o,index:n})]),key:"0"}:void 0,a.$slots.artifact?{name:"artifact",fn:e.withCtx(({artifact:o})=>[e.renderSlot(a.$slots,"artifact",{artifact:o})]),key:"1"}:void 0,a.$slots["artifact-preview"]?{name:"artifact-preview",fn:e.withCtx(({artifact:o})=>[e.renderSlot(a.$slots,"artifact-preview",{artifact:o})]),key:"2"}:void 0]),1032,["tasks","artifacts","active-artifact","disabled","reorderable","tasks-revision","scope-key","operation-messages"])],8,["to","disabled"])),Y.value?(e.openBlock(),e.createElementBlock("p",je,"无法排序:"+e.toDisplayString(Y.value),1)):e.createCommentVNode("",!0)])]),_:3})]),_:3},8,["sizes"])]),e.createElementVNode("div",Oe,[e.createVNode(e.unref(k.Tabs),{items:ve.value,"active-key":D(V.value),"onUpdate:activeKey":t[14]||(t[14]=o=>V.value=String(o).split("--")[0])},null,8,["items","active-key"]),e.withDirectives(e.createElementVNode("section",ze,[e.createVNode(se.default,{"model-value":c.activeConversation,conversations:c.conversations,"onUpdate:modelValue":t[15]||(t[15]=o=>v("update:activeConversation",o))},null,8,["model-value","conversations"]),c.contextItems.length?(e.openBlock(),e.createElementBlock("section",Ue,[t[25]||(t[25]=e.createElementVNode("h3",null,"上下文",-1)),e.createElementVNode("div",Pe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ee.value,(o,n)=>(e.openBlock(),e.createElementBlock("div",{key:w(o).id,class:"aheart-ai-workbench__context-item","data-context-id":w(o).id},[e.createElementVNode("span",null,e.toDisplayString(w(o).label),1),w(o).description?(e.openBlock(),e.createElementBlock("small",qe,e.toDisplayString(w(o).description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",He,[e.createVNode(e.unref(k.Button),{type:"text",disabled:T(n,-1),onClick:i=>j(n,-1)},{default:e.withCtx(()=>[...t[23]||(t[23]=[e.createTextVNode("上移",-1)])]),_:1},8,["disabled","onClick"]),e.createVNode(e.unref(k.Button),{type:"text",disabled:T(n,1),onClick:i=>j(n,1)},{default:e.withCtx(()=>[...t[24]||(t[24]=[e.createTextVNode("下移",-1)])]),_:1},8,["disabled","onClick"])])],8,Ke))),128))])])):e.createCommentVNode("",!0)],512),[[e.vShow,V.value==="conversations"]]),e.withDirectives(e.createElementVNode("section",Le,[e.createElementVNode("div",Fe,[e.createElementVNode("div",{id:`${K.value}-chat-target`,ref_key:"mobileChatTarget",ref:O,class:"aheart-ai-workbench__mobile-owner-target"},null,8,Je)]),c.transport?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",Ze,"业务层尚未提供对话传输适配器。")),e.renderSlot(a.$slots,"sources",{sources:c.sources},()=>[e.createVNode(ie.default,{sources:c.sources},null,8,["sources"])]),e.renderSlot(a.$slots,"attachments",{attachments:c.attachments},()=>[e.createVNode(re.default,{items:c.attachments},null,8,["items"])])],512),[[e.vShow,V.value==="chat"]]),e.withDirectives(e.createElementVNode("section",We,[e.createVNode(e.unref(k.Button),{"data-action":"open-execution-drawer",type:"primary",onClick:t[16]||(t[16]=o=>_.value=!0)},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("查看执行与产物",-1)])]),_:1})],512),[[e.vShow,V.value==="execution"]]),e.createVNode(e.unref(k.Drawer),{open:_.value,"onUpdate:open":t[17]||(t[17]=o=>_.value=o),title:"执行与产物","get-container":!1,"force-render":q.value,"destroy-on-close":!1,placement:"right"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:H,ref_key:"mobileExecutionTarget",ref:z,class:"aheart-ai-workbench__mobile-owner-target"},null,512)]),_:1},8,["open","force-render"])])]))}});exports.default=Ge;
@@ -1,2 +0,0 @@
1
- export { default as AIAttachments, default } from '../attachments.vue';
2
- export type * from '../types';
@@ -1,39 +0,0 @@
1
- import type { AIAttachment } from './types';
2
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
- items?: AIAttachment[] | undefined;
4
- removable?: boolean | undefined;
5
- }>, {
6
- items: () => never[];
7
- removable: boolean;
8
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
- remove: (item: AIAttachment) => void;
10
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
- items?: AIAttachment[] | undefined;
12
- removable?: boolean | undefined;
13
- }>, {
14
- items: () => never[];
15
- removable: boolean;
16
- }>>> & Readonly<{
17
- onRemove?: ((item: AIAttachment) => any) | undefined;
18
- }>, {
19
- items: AIAttachment[];
20
- removable: boolean;
21
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
22
- export default _default;
23
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
- type __VLS_TypePropsToRuntimeProps<T> = {
25
- [K in keyof T]-?: {} extends Pick<T, K> ? {
26
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
27
- } : {
28
- type: import('vue').PropType<T[K]>;
29
- required: true;
30
- };
31
- };
32
- type __VLS_WithDefaults<P, D> = {
33
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
34
- default: D[K];
35
- }> : P[K];
36
- };
37
- type __VLS_Prettify<T> = {
38
- [K in keyof T]: T[K];
39
- } & {};
@@ -1,2 +0,0 @@
1
- export { default as AIBubble, default } from '../bubble.vue';
2
- export type * from '../types';
@@ -1,27 +0,0 @@
1
- import type { AIContentRenderer, AIMessage } from './types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
3
- message: AIMessage;
4
- contentRenderer?: AIContentRenderer | undefined;
5
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
- message: AIMessage;
7
- contentRenderer?: AIContentRenderer | undefined;
8
- }>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
9
- actions?(_: {
10
- message: AIMessage;
11
- }): any;
12
- }>;
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_WithTemplateSlots<T, S> = T & {
24
- new (): {
25
- $slots: S;
26
- };
27
- };
@@ -1,11 +0,0 @@
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';
@@ -1,3 +0,0 @@
1
- export { default as AIChatPanel, default } from '../chat-panel.vue';
2
- export type * from '../types';
3
- export * from '../stream-reducer';
@@ -1,108 +0,0 @@
1
- import type { AIAttachment, AIConversation, AIMessage, AIPrompt, AITransport, AITransportV2 } from './types';
2
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
- messages?: AIMessage[] | undefined;
4
- defaultMessages?: AIMessage[] | undefined;
5
- transport: AITransport | AITransportV2;
6
- conversationId?: string | undefined;
7
- conversations?: AIConversation[] | undefined;
8
- activeConversation?: string | undefined;
9
- prompts?: AIPrompt[] | undefined;
10
- attachments?: AIAttachment[] | undefined;
11
- welcomeTitle?: string | undefined;
12
- welcomeDescription?: string | undefined;
13
- disabled?: boolean | undefined;
14
- maxReconnectAttempts?: number | undefined;
15
- }>, {
16
- messages: () => never[];
17
- defaultMessages: () => never[];
18
- conversationId: undefined;
19
- conversations: () => never[];
20
- activeConversation: undefined;
21
- prompts: () => never[];
22
- attachments: () => never[];
23
- welcomeTitle: string;
24
- welcomeDescription: string;
25
- disabled: boolean;
26
- maxReconnectAttempts: number;
27
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
- error: (error: string) => void;
29
- send: (content: string) => void;
30
- retry: (message: AIMessage) => void;
31
- regenerate: (message: AIMessage) => void;
32
- edit: (message: AIMessage, content: string) => void;
33
- copy: (message: AIMessage) => void;
34
- stop: () => void;
35
- "update:messages": (messages: AIMessage[]) => void;
36
- "update:activeConversation": (key: string) => void;
37
- "update:attachments": (attachments: AIAttachment[]) => void;
38
- "stream-status": (status: string) => void;
39
- "stream-reject": (reason: string) => void;
40
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
41
- messages?: AIMessage[] | undefined;
42
- defaultMessages?: AIMessage[] | undefined;
43
- transport: AITransport | AITransportV2;
44
- conversationId?: string | undefined;
45
- conversations?: AIConversation[] | undefined;
46
- activeConversation?: string | undefined;
47
- prompts?: AIPrompt[] | undefined;
48
- attachments?: AIAttachment[] | undefined;
49
- welcomeTitle?: string | undefined;
50
- welcomeDescription?: string | undefined;
51
- disabled?: boolean | undefined;
52
- maxReconnectAttempts?: number | undefined;
53
- }>, {
54
- messages: () => never[];
55
- defaultMessages: () => never[];
56
- conversationId: undefined;
57
- conversations: () => never[];
58
- activeConversation: undefined;
59
- prompts: () => never[];
60
- attachments: () => never[];
61
- welcomeTitle: string;
62
- welcomeDescription: string;
63
- disabled: boolean;
64
- maxReconnectAttempts: number;
65
- }>>> & Readonly<{
66
- onError?: ((error: string) => any) | undefined;
67
- onSend?: ((content: string) => any) | undefined;
68
- onRetry?: ((message: AIMessage) => any) | undefined;
69
- onRegenerate?: ((message: AIMessage) => any) | undefined;
70
- onEdit?: ((message: AIMessage, content: string) => any) | undefined;
71
- onCopy?: ((message: AIMessage) => any) | undefined;
72
- onStop?: (() => any) | undefined;
73
- "onUpdate:messages"?: ((messages: AIMessage[]) => any) | undefined;
74
- "onUpdate:activeConversation"?: ((key: string) => any) | undefined;
75
- "onUpdate:attachments"?: ((attachments: AIAttachment[]) => any) | undefined;
76
- "onStream-status"?: ((status: string) => any) | undefined;
77
- "onStream-reject"?: ((reason: string) => any) | undefined;
78
- }>, {
79
- conversationId: string;
80
- messages: AIMessage[];
81
- disabled: boolean;
82
- attachments: AIAttachment[];
83
- conversations: AIConversation[];
84
- prompts: AIPrompt[];
85
- defaultMessages: AIMessage[];
86
- activeConversation: string;
87
- welcomeTitle: string;
88
- welcomeDescription: string;
89
- maxReconnectAttempts: number;
90
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
91
- export default _default;
92
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
93
- type __VLS_TypePropsToRuntimeProps<T> = {
94
- [K in keyof T]-?: {} extends Pick<T, K> ? {
95
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
96
- } : {
97
- type: import('vue').PropType<T[K]>;
98
- required: true;
99
- };
100
- };
101
- type __VLS_WithDefaults<P, D> = {
102
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
103
- default: D[K];
104
- }> : P[K];
105
- };
106
- type __VLS_Prettify<T> = {
107
- [K in keyof T]: T[K];
108
- } & {};
@@ -1,2 +0,0 @@
1
- export { default as AIConversations, default } from '../conversations.vue';
2
- export type * from '../types';
@@ -1,39 +0,0 @@
1
- import type { AIConversation } from './types';
2
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
- modelValue?: string | undefined;
4
- conversations?: AIConversation[] | undefined;
5
- }>, {
6
- modelValue: undefined;
7
- conversations: () => never[];
8
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
- "update:modelValue": (key: string) => void;
10
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
- modelValue?: string | undefined;
12
- conversations?: AIConversation[] | undefined;
13
- }>, {
14
- modelValue: undefined;
15
- conversations: () => never[];
16
- }>>> & Readonly<{
17
- "onUpdate:modelValue"?: ((key: string) => any) | undefined;
18
- }>, {
19
- modelValue: string;
20
- conversations: AIConversation[];
21
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
22
- export default _default;
23
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
- type __VLS_TypePropsToRuntimeProps<T> = {
25
- [K in keyof T]-?: {} extends Pick<T, K> ? {
26
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
27
- } : {
28
- type: import('vue').PropType<T[K]>;
29
- required: true;
30
- };
31
- };
32
- type __VLS_WithDefaults<P, D> = {
33
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
34
- default: D[K];
35
- }> : P[K];
36
- };
37
- type __VLS_Prettify<T> = {
38
- [K in keyof T]: T[K];
39
- } & {};
@@ -1,3 +0,0 @@
1
- export { default as AIForm, default } from '../form.vue';
2
- export type * from '../types';
3
- export * from '../form-schema';