@yaoshu-ai/ai-chat 1.5.69 → 1.5.70

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.
@@ -1,5 +1,5 @@
1
1
  import { isVNode as Tc, Comment as _c, Fragment as De, createVNode as pe, render as Ds, getCurrentInstance as st, ref as P, unref as $, computed as L, watch as re, toRefs as Dd, nextTick as ze, isRef as Fd, inject as We, defineComponent as ae, resolveComponent as Gt, openBlock as O, createBlock as Re, withCtx as Oe, createElementVNode as W, normalizeClass as le, renderSlot as kt, createElementBlock as q, renderList as Ve, createTextVNode as xl, toDisplayString as xe, onBeforeMount as Rc, onMounted as pt, onUpdated as Ld, onUnmounted as Nn, h as me, reactive as Mr, onBeforeUnmount as tn, watchEffect as Ci, provide as Si, resolveDirective as Nd, normalizeStyle as it, withDirectives as Qt, createCommentVNode as Ee, vShow as hn, Teleport as Cl, Transition as Ln, getCurrentScope as Od, onScopeDispose as Bd, toValue as Jn, shallowRef as Pr, createStaticVNode as Mc, withModifiers as Pd, defineAsyncComponent as Zt, useAttrs as Ic, markRaw as Fs, resolveDynamicComponent as tt, mergeProps as er, withMemo as Hr, isMemoSame as es, readonly as Hd, createApp as zd } from "vue";
2
- import { h as mr, i as Xt, a as Dr, b as $t, c as Yt, d as jt, E as ts, t as Wd, e as fr, g as Dc, f as il, u as gn, j as Sl, k as po, l as jd, m as qd, n as Ud, o as kr, p as Fc, q as Kd, r as mo, s as to, v as Vd, w as sr, _ as Lc, x as qo, y as go, z as Gd, A as sl, B as jl, C as Yd, D as Ls, F as Ns, G as Zd, H as Qd, I as ns, J as Nc, K as Xd, L as Jd, M as $d, N as ef, O as tf, P as Er, Q as Oc, R as Bc, S as Tt, T as En, U as El, V as Al, W as ko, X as Pc, Y as Hc, Z as zc, $ as Tl, a0 as Os } from "./index-CgKRJWcb.js";
2
+ import { h as mr, i as Xt, a as Dr, b as $t, c as Yt, d as jt, E as ts, t as Wd, e as fr, g as Dc, f as il, u as gn, j as Sl, k as po, l as jd, m as qd, n as Ud, o as kr, p as Fc, q as Kd, r as mo, s as to, v as Vd, w as sr, _ as Lc, x as qo, y as go, z as Gd, A as sl, B as jl, C as Yd, D as Ls, F as Ns, G as Zd, H as Qd, I as ns, J as Nc, K as Xd, L as Jd, M as $d, N as ef, O as tf, P as Er, Q as Oc, R as Bc, S as Tt, T as En, U as El, V as Al, W as ko, X as Pc, Y as Hc, Z as zc, $ as Tl, a0 as Os } from "./index-5_yRvPgo.js";
3
3
  import { isNull as _l, merge as Wc, flatMap as jc, castArray as qc, get as Bs, debounce as al } from "lodash-es";
4
4
  var Ps = !1, hr, Ei, Ai, Uo, Ko, Uc, Vo, Ti, _i, Ri, Kc, Mi, Ii, Vc, Gc;
5
5
  function bt() {
@@ -15687,7 +15687,7 @@ const yn = Zt(() => Ie(null, null, function* () {
15687
15687
  return me(et, Sn(_e({}, n), { node: Sn(_e({}, n.node), { content: (o = n.node.raw) != null ? o : `$${(r = n.node.content) != null ? r : ""}$` }) }));
15688
15688
  };
15689
15689
  try {
15690
- if (yield Ts()) return (yield import("./index2-DwSterxR.js")).default;
15690
+ if (yield Ts()) return (yield import("./index2-Dq9q9GMp.js")).default;
15691
15691
  } catch (n) {
15692
15692
  console.warn('[markstream-vue] Optional peer dependencies for MathInlineNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".', n);
15693
15693
  }
@@ -15697,7 +15697,7 @@ const yn = Zt(() => Ie(null, null, function* () {
15697
15697
  };
15698
15698
  })), xd = Zt(() => Ie(null, null, function* () {
15699
15699
  try {
15700
- if (yield Ts()) return (yield import("./index3-DsbaeM5W.js")).default;
15700
+ if (yield Ts()) return (yield import("./index3-BO8RvCja.js")).default;
15701
15701
  } catch (e) {
15702
15702
  console.warn('[markstream-vue] Optional peer dependencies for MathBlockNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".', e);
15703
15703
  }
@@ -16450,25 +16450,25 @@ const hk = ["data-custom-id"], pk = ["data-node-index", "data-node-type"], Lt =
16450
16450
  });
16451
16451
  const Vr = Zt(() => Ie(null, null, function* () {
16452
16452
  try {
16453
- return (yield import("./index4-DWsnzNsU.js")).default;
16453
+ return (yield import("./index4-BtrZ5TYY.js")).default;
16454
16454
  } catch (R) {
16455
16455
  return console.warn('[markstream-vue] Optional peer dependencies for CodeBlockNode are missing. Falling back to inline-code rendering (no Monaco). To enable full code block features, please install "stream-monaco".', R), Zn;
16456
16456
  }
16457
16457
  })), So = Zt(() => Ie(null, null, function* () {
16458
16458
  try {
16459
- return (yield import("./index5-hD-84zSu.js")).default;
16459
+ return (yield import("./index5-BJYc-L_0.js")).default;
16460
16460
  } catch (R) {
16461
16461
  return console.warn('[markstream-vue] Optional peer dependencies for MermaidBlockNode are missing. Falling back to preformatted code rendering. To enable Mermaid rendering, please install "mermaid".', R), Zn;
16462
16462
  }
16463
16463
  })), Gr = Zt(() => Ie(null, null, function* () {
16464
16464
  try {
16465
- return (yield import("./index6-BZiveVZx.js")).default;
16465
+ return (yield import("./index6-C4FPuUYt.js")).default;
16466
16466
  } catch (R) {
16467
16467
  return console.warn('[markstream-vue] Optional peer dependencies for InfographicBlockNode are missing. Falling back to preformatted code rendering. To enable Infographic rendering, please install "@antv/infographic".', R), Zn;
16468
16468
  }
16469
16469
  })), Eo = Zt(() => Ie(null, null, function* () {
16470
16470
  try {
16471
- return (yield import("./index7-ClGmUUyv.js")).default;
16471
+ return (yield import("./index7-3MydIA3h.js")).default;
16472
16472
  } catch (R) {
16473
16473
  return console.warn('[markstream-vue] Optional peer dependencies for D2BlockNode are missing. Falling back to preformatted code rendering. To enable D2 rendering, please install "@terrastruct/d2".', R), Zn;
16474
16474
  }
@@ -17126,12 +17126,12 @@ function px(e, t, n = 1400) {
17126
17126
  }
17127
17127
  });
17128
17128
  }
17129
- Zt(() => import("./index4-DWsnzNsU.js"));
17130
- Zt(() => import("./index3-DsbaeM5W.js"));
17131
- Zt(() => import("./index2-DwSterxR.js"));
17132
- Zt(() => import("./index5-hD-84zSu.js"));
17133
- Zt(() => import("./index6-BZiveVZx.js"));
17134
- Zt(() => import("./index7-ClGmUUyv.js"));
17129
+ Zt(() => import("./index4-BtrZ5TYY.js"));
17130
+ Zt(() => import("./index3-BO8RvCja.js"));
17131
+ Zt(() => import("./index2-Dq9q9GMp.js"));
17132
+ Zt(() => import("./index5-BJYc-L_0.js"));
17133
+ Zt(() => import("./index6-C4FPuUYt.js"));
17134
+ Zt(() => import("./index7-3MydIA3h.js"));
17135
17135
  const ex = { key: 0 }, tx = ["innerHTML"], Ac = "chat-markdown-renderer", nx = /* @__PURE__ */ ae({
17136
17136
  __name: "RenderContent",
17137
17137
  props: {
@@ -62034,7 +62034,7 @@ ${T.error?.message || "请求失败"}
62034
62034
  Ib((Be) => ({
62035
62035
  v05cdcad3: P(N)
62036
62036
  }));
62037
- const o = Y8(() => import("./RenderContent-BgAE7ONi.js").then((Be) => Be.f)), r = e, {
62037
+ const o = Y8(() => import("./RenderContent-GlkAUGAb.js").then((Be) => Be.f)), r = e, {
62038
62038
  $chat: i
62039
62039
  } = Cs();
62040
62040
  function a(Be) {
@@ -69947,29 +69947,32 @@ function Jre() {
69947
69947
  }
69948
69948
  Jre();
69949
69949
  var Ds = /* @__PURE__ */ ((e) => (e.INFO = "info", e.SUCCESS = "success", e.WARNING = "warning", e.ERROR = "error", e))(Ds || {});
69950
- const sC = (e, t = 3, n = Ds.INFO, o = "normal", r) => {
69951
- let i = "gray", a = e;
69952
- n === Ds.INFO ? (i = "gray", a = `${a}`) : n === Ds.SUCCESS ? (i = "#58D58D", a = `✅${a}`) : n === Ds.WARNING ? (i = "#F6A821", a = `🚪${a}`) : n === Ds.ERROR && (i = "#f93555", a = `❌${a}`), t === 1 ? window.console.log(
69950
+ const sC = (e, t = 3, n = Ds.INFO, o = "normal", r, i) => {
69951
+ let a = "gray", s = e;
69952
+ n === Ds.INFO ? (a = "gray", s = `${s}`) : n === Ds.SUCCESS ? (a = "#58D58D", s = `✅${s}`) : n === Ds.WARNING ? (a = "#F6A821", s = `🚪${s}`) : n === Ds.ERROR && (a = "#f93555", s = `❌${s}`), t === 1 ? window.console.log(
69953
69953
  "%c %s %c %s",
69954
- `border: 2px solid white;border-radius: 3px 0 0 3px;padding: 8px;color: white;background-color: ${i};font-weight:600`,
69954
+ `border: 2px solid white;border-radius: 3px 0 0 3px;padding: 8px;color: white;background-color: ${a};font-weight:600`,
69955
69955
  o,
69956
- `border: 2px solid ${i};border-radius: 0 3px 3px 0;padding: 6px;color: black;background-color: white;border-left: none;font-weight:600`,
69957
- a,
69958
- r
69956
+ `border: 2px solid ${a};border-radius: 0 3px 3px 0;padding: 6px;color: black;background-color: white;border-left: none;font-weight:600`,
69957
+ s,
69958
+ r,
69959
+ i
69959
69960
  ) : t === 2 ? window.console.log(
69960
69961
  "%c %s %c %s",
69961
- `border: 2px solid white;border-radius: 3px 0 0 3px;padding: 5px;color: white;background-color: ${i};font-weight:600`,
69962
+ `border: 2px solid white;border-radius: 3px 0 0 3px;padding: 5px;color: white;background-color: ${a};font-weight:600`,
69962
69963
  o,
69963
69964
  "border: 1px solid white;border-radius: 0 3px 3px 0;padding: 2px 5px;color: black;background-color: white;border-left: none;font-weight:600",
69964
- a,
69965
- r
69965
+ s,
69966
+ r,
69967
+ i
69966
69968
  ) : t === 3 && window.console.log(
69967
69969
  "%c %s %c %s",
69968
- `border: 1px solid white;border-radius: 3px 0 0 3px;padding: 2px 5px;color: white;background-color: ${i};`,
69970
+ `border: 1px solid white;border-radius: 3px 0 0 3px;padding: 2px 5px;color: white;background-color: ${a};`,
69969
69971
  o,
69970
69972
  "border: 1px solid white;border-radius: 0 3px 3px 0;padding: 2px 5px;color: black;background-color: white;border-left: none;",
69971
- a,
69972
- r
69973
+ s,
69974
+ r,
69975
+ i
69973
69976
  );
69974
69977
  }, Wd = typeof window < "u" ? window.location.origin : "", Gre = [
69975
69978
  `${Wd}/echarts.min.js`,
@@ -82297,11 +82300,12 @@ function Que(e, t, n) {
82297
82300
  if (!(!r && !i)) {
82298
82301
  if (r) {
82299
82302
  sC(
82300
- `[mqtt消息-进度消息]--${t?.data?.conversationId}--${t?.data?.chatId}`,
82303
+ `[mqtt消息-进度消息]--${t?.data?.conversationId}--${t?.data?.chatId}--${t?.uuid}`,
82301
82304
  3,
82302
82305
  Ds.INFO,
82303
82306
  "mqtt",
82304
- `${(Number(t?.data?.progress) || 0) * 100}%`
82307
+ `${(Number(t?.data?.progress) || 0) * 100}%`,
82308
+ t
82305
82309
  ), o.setMqttProgress(t);
82306
82310
  return;
82307
82311
  }
@@ -82311,7 +82315,8 @@ function Que(e, t, n) {
82311
82315
  3,
82312
82316
  Ds.INFO,
82313
82317
  "mqtt",
82314
- `--${t?.data?.chatId}--${t?.data?.systemContent}`
82318
+ `--${t?.data?.chatId}-${t?.uuid}--${t?.data?.systemContent}`,
82319
+ t
82315
82320
  ), t?.data?.systemType === "execution-result") {
82316
82321
  o.handleAsyncExecutionResult(t);
82317
82322
  return;
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a1 as i, a2 as t, a3 as e, a4 as A, a5 as n, a6 as o, a7 as l, a8 as r, a9 as h, aa as p } from "./index-CgKRJWcb.js";
1
+ import { a1 as i, a2 as t, a3 as e, a4 as A, a5 as n, a6 as o, a7 as l, a8 as r, a9 as h, aa as p } from "./index-5_yRvPgo.js";
2
2
  export {
3
3
  i as AIBigScreenList,
4
4
  t as AiAnalysisReport,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as g, ref as _, watch as b, onMounted as L, onBeforeUnmount as I, openBlock as T, createElementBlock as M, withDirectives as O, createElementVNode as p, vShow as $, createBlock as B, Transition as N, withCtx as S, renderSlot as A, createCommentVNode as D } from "vue";
2
- import { l as K, m as V, C as H, w as P, L as U, v as W } from "./RenderContent-BgAE7ONi.js";
2
+ import { l as K, m as V, C as H, w as P, L as U, v as W } from "./RenderContent-GlkAUGAb.js";
3
3
  var k = (c, n, o) => new Promise((t, r) => {
4
4
  var v = (e) => {
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as R, ref as p, watch as g, onMounted as b, onBeforeUnmount as M, openBlock as _, createElementBlock as x, createVNode as B, Transition as I, withCtx as O, createElementVNode as C, createCommentVNode as L, normalizeClass as N } from "vue";
2
- import { l as V, m as A, C as K, w as D, L as H, v as P } from "./RenderContent-BgAE7ONi.js";
2
+ import { l as V, m as A, C as K, w as D, L as H, v as P } from "./RenderContent-GlkAUGAb.js";
3
3
  var T = (s, e, r) => new Promise((l, u) => {
4
4
  var v = (o) => {
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as so, getCurrentInstance as zo, computed as C, ref as M, watch as V, onBeforeUnmount as To, onUnmounted as co, openBlock as _, createBlock as be, unref as g, createElementBlock as H, normalizeClass as ne, normalizeStyle as $e, renderSlot as Ne, createElementVNode as u, toDisplayString as Ye, Fragment as Ho, createCommentVNode as J, withDirectives as Ze, vShow as eo, onMounted as Do, Teleport as Lo, withModifiers as jo, nextTick as ke } from "vue";
2
- import { l as vo, u as mo, g as ze, y as Vo, m as Yo, x as oo, a as Wo, k as Io, b as to, c as no, r as lo, d as qo } from "./RenderContent-BgAE7ONi.js";
2
+ import { l as vo, u as mo, g as ze, y as Vo, m as Yo, x as oo, a as Wo, k as Io, b as to, c as no, r as lo, d as qo } from "./RenderContent-GlkAUGAb.js";
3
3
  import { e as ae } from "./safeRaf-I3a3-dyJ.js";
4
4
  var Ro = Object.defineProperty, Ao = Object.defineProperties, Uo = Object.getOwnPropertyDescriptors, io = Object.getOwnPropertySymbols, Xo = Object.prototype.hasOwnProperty, Go = Object.prototype.propertyIsEnumerable, ao = (p, m, k) => m in p ? Ro(p, m, { enumerable: !0, configurable: !0, writable: !0, value: k }) : p[m] = k, Te = (p, m) => {
5
5
  for (var k in m || (m = {})) Xo.call(m, k) && ao(p, k, m[k]);
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as Lt, ref as d, computed as Q, watch as V, onBeforeUnmount as At, onMounted as Ft, onUnmounted as Rt, openBlock as g, createElementBlock as w, normalizeClass as y, renderSlot as Je, createElementVNode as n, unref as h, toDisplayString as xe, createCommentVNode as ee, normalizeStyle as xt, withDirectives as Ht, mergeProps as kt, toHandlers as bt, createBlock as Nt, Teleport as _t, createVNode as Xt, Transition as Yt, withCtx as Vt, withModifiers as Zt, vShow as qt, nextTick as A } from "vue";
2
- import { l as It, u as Ut, m as Wt, r as Mt, b as Gt, W as Kt, R as Jt, Y as Qt } from "./RenderContent-BgAE7ONi.js";
2
+ import { l as It, u as Ut, m as Wt, r as Mt, b as Gt, W as Kt, R as Jt, Y as Qt } from "./RenderContent-GlkAUGAb.js";
3
3
  import { e as el } from "./safeRaf-I3a3-dyJ.js";
4
4
  var tl = Object.defineProperty, ll = Object.defineProperties, rl = Object.getOwnPropertyDescriptors, Tt = Object.getOwnPropertySymbols, nl = Object.prototype.hasOwnProperty, ol = Object.prototype.propertyIsEnumerable, Ct = (L, j, M) => j in L ? tl(L, j, { enumerable: !0, configurable: !0, writable: !0, value: M }) : L[j] = M, Qe = (L, j) => {
5
5
  for (var M in j || (j = {})) nl.call(j, M) && Ct(L, M, j[M]);
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as c2, ref as m, computed as O, watch as Y, nextTick as j, onMounted as d2, onBeforeUnmount as h2, openBlock as s, createElementBlock as c, normalizeClass as a, renderSlot as q, createElementVNode as o, unref as i, toDisplayString as z, createCommentVNode as k, normalizeStyle as A, withDirectives as v2, vShow as g2, createBlock as w2, Teleport as m2, createVNode as p2, Transition as x2, withCtx as y2, withModifiers as C2 } from "vue";
2
- import { l as f2, u as k2, r as l2, b as b2 } from "./RenderContent-BgAE7ONi.js";
2
+ import { l as f2, u as k2, r as l2, b as b2 } from "./RenderContent-GlkAUGAb.js";
3
3
  var R = ($, J, r) => new Promise((l, b) => {
4
4
  var v = (y) => {
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as Le, ref as h, computed as _, watch as K, nextTick as me, onMounted as Pe, onBeforeUnmount as Re, openBlock as i, createElementBlock as u, normalizeClass as X, createElementVNode as a, unref as c, toDisplayString as M, createCommentVNode as D, normalizeStyle as Q, withDirectives as _e, vShow as Ue } from "vue";
2
- import { l as ze, u as Ve, r as fe, b as Xe, e as Ye } from "./RenderContent-BgAE7ONi.js";
2
+ import { l as ze, u as Ve, r as fe, b as Xe, e as Ye } from "./RenderContent-GlkAUGAb.js";
3
3
  var $e = Object.defineProperty, ge = Object.getOwnPropertySymbols, qe = Object.prototype.hasOwnProperty, Ge = Object.prototype.propertyIsEnumerable, ye = (v, t, r) => t in v ? $e(v, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : v[t] = r, W = (v, t) => {
4
4
  for (var r in t || (t = {})) qe.call(t, r) && ye(v, r, t[r]);
5
5
  if (ge) for (var r of ge(t)) Ge.call(t, r) && ye(v, r, t[r]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaoshu-ai/ai-chat",
3
- "version": "1.5.69",
3
+ "version": "1.5.70",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.18.2",