@shumai-one/shumai 0.6.0 → 0.6.2

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 (229) hide show
  1. package/bin/chunk-01052ssf.js +32 -0
  2. package/bin/{chunk-cdk8vqeg.js → chunk-02fvcrej.js} +4 -4
  3. package/bin/chunk-0bj887zm.js +2 -0
  4. package/bin/chunk-167z646e.js +2 -0
  5. package/bin/chunk-1ktk6764.js +10 -0
  6. package/bin/{chunk-4jj92zwa.js → chunk-1nvd90g2.js} +1 -1
  7. package/bin/{chunk-ww9qq8yq.js → chunk-1wfg56z3.js} +5 -5
  8. package/bin/{chunk-3tg10kwz.js → chunk-257dcd2f.js} +2 -2
  9. package/bin/chunk-26qn7fek.js +2 -0
  10. package/bin/chunk-2cdxm1cp.js +55 -0
  11. package/bin/chunk-2jj4j8cn.js +3 -0
  12. package/bin/chunk-2ne2b54t.js +2 -0
  13. package/bin/{chunk-h1fbev9c.js → chunk-2nhgdqdg.js} +2 -2
  14. package/bin/chunk-2vbeqczj.js +1 -0
  15. package/bin/chunk-37p6bcx2.js +1 -0
  16. package/bin/chunk-3ckkwdjx.js +13 -0
  17. package/bin/chunk-3knfx6dm.js +1 -0
  18. package/bin/chunk-3z85zxkn.js +1 -0
  19. package/bin/chunk-4mws03es.js +5 -0
  20. package/bin/chunk-54tbfvya.js +2 -0
  21. package/bin/chunk-55h9ze53.js +2 -0
  22. package/bin/chunk-56kh5fxc.js +1 -0
  23. package/bin/chunk-576nj64j.js +2 -0
  24. package/bin/{chunk-9gftd4f7.js → chunk-5wapd171.js} +13 -13
  25. package/bin/chunk-6cnqjngz.js +1 -0
  26. package/bin/chunk-73yncv54.js +2 -0
  27. package/bin/chunk-7g46e1wy.js +3 -0
  28. package/bin/{chunk-3020am4q.js → chunk-7naa7tpn.js} +2 -2
  29. package/bin/{chunk-6zerk0em.js → chunk-7sgrtxbt.js} +2 -2
  30. package/bin/{chunk-5bpvwv66.js → chunk-7v7mypc6.js} +2 -2
  31. package/bin/chunk-82tps5n1.js +2 -0
  32. package/bin/chunk-84x8p7v5.js +1 -0
  33. package/bin/{chunk-fxg81vtx.js → chunk-88jg9dq5.js} +2 -2
  34. package/bin/chunk-8cjet7pp.js +12 -0
  35. package/bin/chunk-8fyg9dy4.js +2 -0
  36. package/bin/chunk-8gtfgkrn.js +2 -0
  37. package/bin/chunk-8mqbztj8.js +2 -0
  38. package/bin/chunk-8qdtvfx3.css +1 -0
  39. package/bin/chunk-8xb6yz11.js +2 -0
  40. package/bin/chunk-8yjsmr7g.js +2 -0
  41. package/bin/chunk-91rb0jpb.js +2 -0
  42. package/bin/chunk-96qpjght.js +2 -0
  43. package/bin/chunk-9f1xk1nt.js +1 -0
  44. package/bin/chunk-9mk9cvbk.js +1 -0
  45. package/bin/{chunk-65t6rm5d.js → chunk-9n1w5dw1.js} +3 -3
  46. package/bin/chunk-9nw5w8vh.js +1 -0
  47. package/bin/{chunk-cv5xx81e.js → chunk-9t3p4xp6.js} +1 -1
  48. package/bin/chunk-9xhjy897.js +11 -0
  49. package/bin/chunk-9zsv6d2f.js +1 -0
  50. package/bin/chunk-a411xhmm.js +7 -0
  51. package/bin/{chunk-xbw7ffrz.js → chunk-a74g6h8a.js} +2 -2
  52. package/bin/chunk-ah8fjb6f.js +2 -0
  53. package/bin/chunk-atfz7g7e.js +2 -0
  54. package/bin/{chunk-j4p3eqtd.js → chunk-b5rhvzv9.js} +2 -2
  55. package/bin/{chunk-rq2h2bwt.js → chunk-b7bnp021.js} +2 -2
  56. package/bin/chunk-cf5axr8c.js +1 -0
  57. package/bin/chunk-cgmebxx6.js +2 -0
  58. package/bin/chunk-cwat1jwx.js +3 -0
  59. package/bin/chunk-cz13a82m.js +3 -0
  60. package/bin/chunk-dk42gf7v.js +2 -0
  61. package/bin/chunk-e4f56spj.js +4 -0
  62. package/bin/chunk-e4yscwen.js +18 -0
  63. package/bin/chunk-eb7mzbfm.js +1 -0
  64. package/bin/chunk-er14d498.js +3 -0
  65. package/bin/{chunk-sbyyn9yw.js → chunk-eyjfhdp9.js} +2 -2
  66. package/bin/chunk-f25fe9th.js +393 -0
  67. package/bin/chunk-f6avg5qe.js +129 -0
  68. package/bin/{chunk-vjyget8s.js → chunk-fatmqnp1.js} +1 -1
  69. package/bin/chunk-fvx9k1dc.js +2 -0
  70. package/bin/chunk-g22wmpk1.js +3 -0
  71. package/bin/chunk-g6sdezec.js +2 -0
  72. package/bin/chunk-gtf19jc1.js +2 -0
  73. package/bin/chunk-gxepkvt2.js +2 -0
  74. package/bin/chunk-h1n7jqnw.js +1 -0
  75. package/bin/chunk-hfm82066.js +2 -0
  76. package/bin/chunk-hnkcgvcj.js +3 -0
  77. package/bin/{chunk-fg9sr6r9.js → chunk-hpbn0k9n.js} +2 -2
  78. package/bin/{chunk-qk5hsn6e.js → chunk-hpwv4am3.js} +4 -4
  79. package/bin/{chunk-d6xezgrg.js → chunk-hw6czrya.js} +1 -1
  80. package/bin/{chunk-59t9s2jh.js → chunk-hzkjgcre.js} +1 -1
  81. package/bin/chunk-j2s311yc.js +3 -0
  82. package/bin/{chunk-6hzktewz.js → chunk-jt02kpfc.js} +2 -2
  83. package/bin/{chunk-qnyqtaf0.js → chunk-jt0ykktx.js} +1 -1
  84. package/bin/{chunk-047n9gfs.js → chunk-jzgbxqdg.js} +2 -2
  85. package/bin/chunk-kj6h5j5a.js +4 -0
  86. package/bin/chunk-km4gn6b6.js +1 -0
  87. package/bin/chunk-knj2s8mg.js +16 -0
  88. package/bin/{chunk-01ym2agz.js → chunk-kvhf12b4.js} +2 -2
  89. package/bin/chunk-m0q2cgfg.js +2 -0
  90. package/bin/chunk-m82tkhaa.js +11 -0
  91. package/bin/chunk-m9adtgzk.js +2 -0
  92. package/bin/{chunk-rh8dy99a.js → chunk-mcj1xpcc.js} +2 -2
  93. package/bin/chunk-mcw198kg.js +13 -0
  94. package/bin/{chunk-5e7r7a9d.js → chunk-mwktrwtx.js} +1 -1
  95. package/bin/chunk-mzsw9var.js +3 -0
  96. package/bin/chunk-ns33grgx.js +2 -0
  97. package/bin/{chunk-emgyjhmx.js → chunk-ny1kbmxt.js} +2 -2
  98. package/bin/{chunk-czybv3vy.js → chunk-p3f5aevs.js} +1 -1
  99. package/bin/chunk-p3j6ydk1.js +1 -0
  100. package/bin/chunk-p4s95471.js +2 -0
  101. package/bin/chunk-pk406dgy.js +2 -0
  102. package/bin/chunk-q2bew2vc.js +2 -0
  103. package/bin/chunk-q5vkxee3.js +5 -0
  104. package/bin/{chunk-n0wwtjwv.js → chunk-q83h0hkx.js} +2 -2
  105. package/bin/chunk-q8w4mbw4.js +2 -0
  106. package/bin/{chunk-hjwpd09v.js → chunk-qwpkcp8d.js} +2 -2
  107. package/bin/chunk-r1xer8gn.js +5 -0
  108. package/bin/chunk-s1e4qy3q.js +14 -0
  109. package/bin/{chunk-w89czwjj.js → chunk-s9ksftq2.js} +1 -1
  110. package/bin/chunk-srxp5jav.js +42 -0
  111. package/bin/chunk-swtwaaqe.js +1 -0
  112. package/bin/chunk-tagdrg7p.js +1 -0
  113. package/bin/{chunk-da86fpjt.js → chunk-tekwpkjf.js} +2 -2
  114. package/bin/chunk-twtxnzbv.js +2 -0
  115. package/bin/{chunk-q7t5zs7n.js → chunk-v05rrxp5.js} +2 -2
  116. package/bin/{chunk-8s9fehda.js → chunk-v5cn90cf.js} +2 -2
  117. package/bin/chunk-v5mcjwxy.js +2 -0
  118. package/bin/{chunk-fyb6t7ct.js → chunk-vcrmjtcz.js} +2 -2
  119. package/bin/chunk-vkzasgxw.js +2 -0
  120. package/bin/chunk-vp3czaeh.js +7 -0
  121. package/bin/chunk-x03jwaga.js +8 -0
  122. package/bin/chunk-x342vzdx.js +2 -0
  123. package/bin/chunk-x8mjh387.js +5 -0
  124. package/bin/chunk-xc54vhfz.js +2 -0
  125. package/bin/chunk-xvkwbczx.js +3 -0
  126. package/bin/chunk-y241cxff.js +1 -0
  127. package/bin/chunk-yk12hydf.js +7 -0
  128. package/bin/chunk-ympbfzz4.js +2 -0
  129. package/bin/chunk-yq32evnn.js +20 -0
  130. package/bin/chunk-z1p13dnc.js +2 -0
  131. package/bin/chunk-zarz3sqn.js +211 -0
  132. package/bin/chunk-zezje74z.js +4 -0
  133. package/bin/chunk-zrszykjf.js +3 -0
  134. package/bin/shumai-app.html +1 -1
  135. package/bin/shumai-app.js +947 -1012
  136. package/package.json +7 -7
  137. package/prisma/migrations/20261026024507_hash_api_tokens/migration.sql +28 -0
  138. package/prisma/migrations/20261026031904_add_audit_log_via/migration.sql +2 -0
  139. package/prisma/migrations/20261029024626_add_oauth_and_jwks/migration.sql +205 -0
  140. package/prisma/migrations/20261029030321_default_empty_arrays_oauth/migration.sql +25 -0
  141. package/prisma/schema.prisma +186 -1
  142. package/bin/chunk-0a4ahz7r.js +0 -2
  143. package/bin/chunk-0awcpx0a.js +0 -3
  144. package/bin/chunk-0fbgfgxv.js +0 -12
  145. package/bin/chunk-0nnqha4f.js +0 -3
  146. package/bin/chunk-0tvggyy4.js +0 -1
  147. package/bin/chunk-113baw0m.js +0 -2
  148. package/bin/chunk-1dbjyarc.js +0 -2
  149. package/bin/chunk-1qre79kf.js +0 -1
  150. package/bin/chunk-23780yj6.js +0 -3
  151. package/bin/chunk-27v3yepb.js +0 -1
  152. package/bin/chunk-2rq3w8sg.js +0 -2
  153. package/bin/chunk-3fjgf7eb.js +0 -3
  154. package/bin/chunk-3pwwg1xm.js +0 -1
  155. package/bin/chunk-3sfb63fp.js +0 -2
  156. package/bin/chunk-4g4pxmef.js +0 -3
  157. package/bin/chunk-4yhvexzk.js +0 -5
  158. package/bin/chunk-58cbk6e8.js +0 -1
  159. package/bin/chunk-5m51b7af.js +0 -2
  160. package/bin/chunk-6bed0rz4.js +0 -1
  161. package/bin/chunk-6smn0q1n.js +0 -20
  162. package/bin/chunk-7bbsv8g0.js +0 -2
  163. package/bin/chunk-83bdgs2c.js +0 -1
  164. package/bin/chunk-86qtjd30.js +0 -11
  165. package/bin/chunk-8rekh4h9.js +0 -3
  166. package/bin/chunk-8sf2hf31.js +0 -2
  167. package/bin/chunk-9d3w678j.js +0 -1
  168. package/bin/chunk-9rcg8zgs.js +0 -42
  169. package/bin/chunk-a23q1kc4.js +0 -5
  170. package/bin/chunk-a6cdt85k.js +0 -2
  171. package/bin/chunk-a76h3ehe.js +0 -1
  172. package/bin/chunk-b1bkd2p4.js +0 -32
  173. package/bin/chunk-bf5m8f6t.js +0 -2
  174. package/bin/chunk-cf57fk11.js +0 -2
  175. package/bin/chunk-d4sbcvpa.js +0 -2
  176. package/bin/chunk-dzjmwat0.js +0 -14
  177. package/bin/chunk-eex8sjfs.js +0 -2
  178. package/bin/chunk-exmwerag.js +0 -18
  179. package/bin/chunk-f38xyahm.js +0 -1
  180. package/bin/chunk-fb1bes2h.js +0 -2
  181. package/bin/chunk-fbvak7q2.js +0 -1
  182. package/bin/chunk-g2ptqqm3.js +0 -3
  183. package/bin/chunk-ggwqxn95.js +0 -2
  184. package/bin/chunk-ghk54h71.js +0 -13
  185. package/bin/chunk-h9akn41s.js +0 -3
  186. package/bin/chunk-hdansxny.js +0 -2
  187. package/bin/chunk-hjzbw975.js +0 -2
  188. package/bin/chunk-jtkxeat4.js +0 -2
  189. package/bin/chunk-jw4g9628.js +0 -5
  190. package/bin/chunk-jxebakyq.js +0 -1
  191. package/bin/chunk-kfewyax2.js +0 -2
  192. package/bin/chunk-kk3m4za5.js +0 -1
  193. package/bin/chunk-m7tnj47b.js +0 -3
  194. package/bin/chunk-maw5ah8t.js +0 -3
  195. package/bin/chunk-nahdd2t9.js +0 -2
  196. package/bin/chunk-nv7tztvh.js +0 -129
  197. package/bin/chunk-nyjwdxyj.js +0 -3
  198. package/bin/chunk-p0yfxt5e.js +0 -54
  199. package/bin/chunk-q27qn367.js +0 -5
  200. package/bin/chunk-q36sdt2w.js +0 -2
  201. package/bin/chunk-qbj5pe8t.js +0 -1
  202. package/bin/chunk-qj0bxb1m.js +0 -2
  203. package/bin/chunk-qqkr6h07.js +0 -11
  204. package/bin/chunk-qyqc5j3a.css +0 -1
  205. package/bin/chunk-qzaf6bre.js +0 -2
  206. package/bin/chunk-r1e59gf0.js +0 -2
  207. package/bin/chunk-ra5csbkr.js +0 -2
  208. package/bin/chunk-rx9g95wk.js +0 -10
  209. package/bin/chunk-rxyy37wa.js +0 -4
  210. package/bin/chunk-scez7ppq.js +0 -3
  211. package/bin/chunk-t2a1vq34.js +0 -7
  212. package/bin/chunk-t879v3b7.js +0 -1
  213. package/bin/chunk-tjavzarz.js +0 -3
  214. package/bin/chunk-treyx8em.js +0 -2
  215. package/bin/chunk-v3z4z04s.js +0 -2
  216. package/bin/chunk-v3z63tpw.js +0 -2
  217. package/bin/chunk-v9bes1fv.js +0 -2
  218. package/bin/chunk-vmm9m3nv.js +0 -2
  219. package/bin/chunk-vvr8tnse.js +0 -211
  220. package/bin/chunk-w3stry4v.js +0 -1
  221. package/bin/chunk-wk0hk00z.js +0 -1
  222. package/bin/chunk-x4q082e6.js +0 -2
  223. package/bin/chunk-x6rf77jm.js +0 -16
  224. package/bin/chunk-x7dyj53k.js +0 -2
  225. package/bin/chunk-xcrd0y8v.js +0 -6
  226. package/bin/chunk-z0z0jn5h.js +0 -4
  227. package/bin/chunk-zasjhrwc.js +0 -2
  228. package/bin/chunk-zefds5gg.js +0 -1
  229. package/bin/chunk-zzzgk1d5.js +0 -4
@@ -1,4 +0,0 @@
1
- import{In,S,t,o,Z,A,m0,v0,Df,_d,Jf,wS,HC,Np,eA,DI,Vp,Qp,An,de,le,me,ce,Mt,LA,kn,ao,Io,ae}from"./chunk-vvr8tnse.js";import{ko}from"./chunk-hjzbw975.js";S();var y=(g)=>g.replace(/<@([a-zA-Z0-9_-]+)>/g,"@$1").replace(/^\[([^\]]+)\]:/gm,"\\[$1\\]:");function Yl({sessionId:g,open:N,onOpenChange:_}){let{data:x,isLoading:D}=Z({queryKey:["agent-sessions",g,"entries"],queryFn:async()=>{if(!g)return[];let s=await A.api["agent-sessions"][":sessionId"].entries.$get({param:{sessionId:g}});if(!s.ok)throw Error("Failed to fetch session logs");return await s.json()},enabled:N&&!!g});return t(de,{open:N,onOpenChange:_,children:o(le,{className:"sm:max-w-2xl max-h-[80vh] flex flex-col p-6 overflow-hidden bg-background/95 backdrop-blur-md border border-foreground/15 shadow-2xl",children:[o(me,{className:"pb-4 border-b border-foreground/15",children:[o(ce,{className:"flex items-center gap-2 text-xl font-bold",children:[t(ko,{className:"w-5 h-5 text-violet-500"}),v0()]}),t(Mt,{children:m0()})]}),t("div",{className:"flex-1 overflow-y-auto pr-1 py-4 space-y-4 min-h-0 select-text",children:D?o("div",{className:"space-y-4",children:[o("div",{className:"flex gap-4",children:[t(ae,{className:"h-5 w-5 rounded-full shrink-0"}),o("div",{className:"flex-1 space-y-2",children:[t(ae,{className:"h-4 w-1/4"}),t(ae,{className:"h-20 w-full"})]})]}),o("div",{className:"flex gap-4",children:[t(ae,{className:"h-5 w-5 rounded-full shrink-0"}),o("div",{className:"flex-1 space-y-2",children:[t(ae,{className:"h-4 w-1/4"}),t(ae,{className:"h-12 w-full"})]})]})]}):x&&x.length>0?t("div",{className:"flex flex-col",children:x.map((s)=>{let a=s.entry,b=a?.timestamp||s.timestamp,f="";if(typeof b==="string"||typeof b==="number"){let e=new Date(b);if(!isNaN(e.getTime()))f=kn(e.toISOString())}if(a&&typeof a==="object"){if(a.type==="custom_message"){if(a.customType==="context")return null;if(a.customType==="shumai_message"){let e=LA(a.details),m=typeof a.content==="string"?a.content:"",p=e?`${m}
2
-
3
- ${e}`.trim():m,w="bg-primary/10 text-primary",v=eA();return o("div",{className:"relative pl-6 pb-6 last:pb-0",children:[t("div",{className:"absolute left-[9px] top-2 bottom-0 w-0.5 bg-foreground/10 last:hidden"}),t("div",{className:"absolute left-0 top-1.5 h-5 w-5 rounded-full border-4 border-background flex items-center justify-center bg-primary"}),o("div",{className:"flex flex-col gap-1.5 bg-muted/30 dark:bg-muted/10 p-3 rounded-lg border border-foreground/5 backdrop-blur-xs w-full",children:[o("div",{className:"flex items-center justify-between gap-2",children:[o("div",{className:"flex items-center gap-2 flex-wrap",children:[t("span",{className:"text-[10px] px-2 py-0.5 rounded-full font-semibold uppercase tracking-wider bg-primary/10 text-primary",children:v}),o("span",{className:"text-[10px] font-mono text-muted-foreground bg-muted/50 px-1.5 py-0.5 rounded border border-foreground/10 select-all",title:_d(),children:[_d(),": ",s.id]})]}),t("span",{className:"text-[10px] text-muted-foreground/60 shrink-0",children:f})]}),t("div",{className:"text-xs text-foreground/90 whitespace-pre-wrap leading-relaxed font-sans",children:p})]})]},s.id)}}if(a.type==="message"&&a.message){let e=a.message,m="bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-200",p=String(e.role||"");if(e.role==="user")m="bg-primary/10 text-primary",p=eA();else if(e.role==="assistant")m="bg-violet-100 text-violet-800 dark:bg-violet-900/30 dark:text-violet-300",p=HC();else if(e.role==="toolResult")m=e.isError?"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300":"bg-emerald-100 text-emerald-800 dark:bg-emerald-900/30 dark:text-emerald-300",p=Qp({name:String(e.toolName||An())});else if(e.role==="thought")m="bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300",p=Np();let w=(n)=>{let r=n;if(typeof n==="string")try{r=JSON.parse(n)}catch{}if(r&&typeof r==="object"&&!Array.isArray(r))return t("div",{className:"mt-1 space-y-1.5 pt-3",children:Object.entries(r).map(([l,i])=>{let c=i&&typeof i==="object"?JSON.stringify(i,null,2):String(i);return o("div",{className:"text-xs leading-relaxed break-words",children:[o("span",{className:"font-semibold text-violet-600 dark:text-violet-400",children:[l,":"]})," ",t("span",{className:"text-foreground/90 font-mono whitespace-pre-wrap",children:c})]},l)})});return t("div",{className:"text-xs font-mono whitespace-pre-wrap",children:String(n)})},v=()=>{let n=e.content;if(!n)return null;if(typeof n==="string"){if(!n.trim())return null;return t("div",{className:"text-xs text-foreground/80 dark:text-foreground/95 leading-relaxed prose prose-sm dark:prose-invert max-w-none break-words",children:t(Io,{children:y(n)})})}if(Array.isArray(n)){let r=[];if(n.forEach((d,l)=>{if(!d)return;if(typeof d==="string"){if(!d.trim())return;r.push(t("div",{className:"text-xs text-foreground/80 dark:text-foreground/95 leading-relaxed prose prose-sm dark:prose-invert max-w-none break-words",children:t(Io,{children:y(d)})},`str-${l}`));return}if(typeof d==="object"){let i=d,c=i.type;if(c==="text"){let u=i.text;if(typeof u!=="string"||!u.trim())return;r.push(t("div",{className:"text-xs text-foreground/80 dark:text-foreground/95 leading-relaxed prose prose-sm dark:prose-invert max-w-none break-words",children:t(Io,{children:y(u)})},`txt-${l}`));return}if(c==="toolCall"){let u=String(i.name||i.toolName||An()),h=i.arguments||i.args;r.push(o("div",{className:"text-xs space-y-2 py-1",children:[o("div",{className:"font-semibold text-violet-600 dark:text-violet-400 flex items-center gap-1.5",children:[Df()," ",t("span",{className:"font-mono bg-violet-500/10 px-1 py-0.5 rounded text-[11px]",children:u})]}),!!h&&o("div",{className:"space-y-1 pt-3",children:[t("div",{className:"text-[10px] text-muted-foreground/60 uppercase font-bold tracking-wider",children:Vp()}),w(h)]})]},`tool-${l}`));return}if(c==="image"){r.push(t("div",{className:"text-xs text-muted-foreground italic flex items-center gap-1.5 py-1",children:Jf()},`img-${l}`));return}let k=JSON.stringify(d,null,2);if(k==="{}")return;r.push(t("pre",{className:"text-xs text-foreground/80 font-mono whitespace-pre-wrap break-words bg-muted/20 p-2 rounded",children:k},`other-${l}`))}}),r.length===0)return null;return t("div",{className:"space-y-3 w-full",children:r.map((d,l)=>o(In,{children:[l>0&&t(ao,{className:"my-3 opacity-50"}),d]},l))})}return null};return o("div",{className:"relative pl-6 pb-6 last:pb-0",children:[t("div",{className:"absolute left-[9px] top-2 bottom-0 w-0.5 bg-foreground/10 last:hidden"}),t("div",{className:`absolute left-0 top-1.5 h-5 w-5 rounded-full border-4 border-background flex items-center justify-center ${e.role==="user"?"bg-primary":e.role==="assistant"?"bg-violet-500":e.role==="toolResult"?e.isError?"bg-red-500":"bg-emerald-500":"bg-amber-500"}`}),o("div",{className:"flex flex-col gap-1.5 bg-muted/30 dark:bg-muted/10 p-3 rounded-lg border border-foreground/5 backdrop-blur-xs w-full",children:[o("div",{className:"flex items-center justify-between gap-2",children:[o("div",{className:"flex items-center gap-2 flex-wrap",children:[t("span",{className:`text-[10px] px-2 py-0.5 rounded-full font-semibold uppercase tracking-wider ${m}`,children:p}),o("span",{className:"text-[10px] font-mono text-muted-foreground bg-muted/50 px-1.5 py-0.5 rounded border border-foreground/10 select-all",title:_d(),children:[_d(),": ",s.id]})]}),t("span",{className:"text-[10px] text-muted-foreground/60 shrink-0",children:f})]}),v()]})]},s.id)}}return o("div",{className:"relative pl-6 pb-6 last:pb-0",children:[t("div",{className:"absolute left-[9px] top-2 bottom-0 w-0.5 bg-foreground/10 last:hidden"}),t("div",{className:"absolute left-0 top-1.5 h-5 w-5 rounded-full border-4 border-background bg-gray-400"}),o("div",{className:"bg-muted/30 p-3 rounded-lg border border-foreground/5",children:[o("div",{className:"flex items-center justify-between gap-2 mb-1.5 flex-wrap",children:[o("span",{className:"text-[10px] font-mono text-muted-foreground bg-muted/50 px-1.5 py-0.5 rounded border border-foreground/10 select-all",title:"Entry ID",children:["ID: ",s.id]}),t("div",{className:"text-[10px] text-muted-foreground/60",children:f})]}),t("pre",{className:"text-xs text-foreground/80 font-mono whitespace-pre-wrap break-words",children:JSON.stringify(s.entry,null,2)})]})]},s.id)})}):o("div",{className:"flex flex-col items-center justify-center py-12 text-center text-muted-foreground",children:[t(ko,{className:"w-8 h-8 text-muted-foreground/40 mb-2 animate-pulse"}),t("p",{className:"text-sm font-medium",children:wS()}),t("p",{className:"text-xs text-muted-foreground/60 mt-1",children:DI()})]})})]})})}
4
- export{Yl};