@deep-eye/core 1.2.76 → 1.2.77

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.
package/dist/index.js CHANGED
@@ -14176,7 +14176,7 @@ const Qq = ["data-tool-call-id", "data-state", "aria-label", "aria-busy"], pq =
14176
14176
  key: o.id,
14177
14177
  toolCall: o,
14178
14178
  toolMessage: i(e.toolMessages, o.id),
14179
- streaming: e.streaming === !0
14179
+ streaming: e.streaming === !0 && s === e.toolCalls.length - 1
14180
14180
  }, () => {
14181
14181
  var l;
14182
14182
  return [
@@ -14184,7 +14184,7 @@ const Qq = ["data-tool-call-id", "data-state", "aria-label", "aria-busy"], pq =
14184
14184
  "tool-call": o,
14185
14185
  "tool-message": i(e.toolMessages, o.id),
14186
14186
  "tool-state": (l = e.toolStates) == null ? void 0 : l[o.id],
14187
- "is-streaming": e.streaming,
14187
+ "is-streaming": e.streaming === !0 && s === e.toolCalls.length - 1,
14188
14188
  "is-first": s === 0,
14189
14189
  "is-last": s === e.toolCalls.length - 1,
14190
14190
  "compact-header": e.compactHeader === !0,
@@ -14195,7 +14195,7 @@ const Qq = ["data-tool-call-id", "data-state", "aria-label", "aria-busy"], pq =
14195
14195
  ]);
14196
14196
  };
14197
14197
  }
14198
- }), Vq = /* @__PURE__ */ Qe(Kq, [["__scopeId", "data-v-e69e0f2c"]]), Wq = 120;
14198
+ }), Vq = /* @__PURE__ */ Qe(Kq, [["__scopeId", "data-v-fdd9ee48"]]), Wq = 120;
14199
14199
  function zq(e) {
14200
14200
  let A = 0;
14201
14201
  for (const t of e)
@@ -14237,12 +14237,12 @@ function AP({
14237
14237
  for (const r of A)
14238
14238
  if (r.type === "tool_calls")
14239
14239
  for (const n of r.tool_calls) {
14240
- const a = t == null ? void 0 : t.find((s) => s.tool_call_id === n.id), o = V7({
14240
+ const a = t == null ? void 0 : t.find((s) => s.tool_call_id === n.id);
14241
+ if (V7({
14241
14242
  toolState: i == null ? void 0 : i[n.id],
14242
14243
  toolMessage: a,
14243
14244
  streaming: !1
14244
- });
14245
- if (o === "running" || o === "pending") return !0;
14245
+ }) === "running") return !0;
14246
14246
  }
14247
14247
  return !1;
14248
14248
  }
@@ -14385,7 +14385,7 @@ const iP = ["data-state", "aria-busy"], rP = {
14385
14385
  }, 8, ["title", "open"])
14386
14386
  ], 8, iP));
14387
14387
  }
14388
- }), aP = /* @__PURE__ */ Qe(nP, [["__scopeId", "data-v-3bdb7f46"]]), oP = {
14388
+ }), aP = /* @__PURE__ */ Qe(nP, [["__scopeId", "data-v-e504b103"]]), oP = {
14389
14389
  key: 0,
14390
14390
  class: "input-content__text"
14391
14391
  }, sP = {
@@ -60935,7 +60935,7 @@ const gS = /* @__PURE__ */ KA({
60935
60935
  ])
60936
60936
  ], 10, nBA));
60937
60937
  }
60938
- }), dBA = /* @__PURE__ */ Qe(fBA, [["__scopeId", "data-v-c0748fd8"]]), BBA = /* @__PURE__ */ KA({
60938
+ }), dBA = /* @__PURE__ */ Qe(fBA, [["__scopeId", "data-v-72626ac5"]]), BBA = /* @__PURE__ */ KA({
60939
60939
  name: "ChatMessage",
60940
60940
  __name: "ChatMessage",
60941
60941
  props: {
@@ -62223,9 +62223,7 @@ const gQA = {
62223
62223
  if (Le.value) return Le.value;
62224
62224
  const T = Ae(i.models);
62225
62225
  return T ? i.models.find(($) => $.id === T) ?? null : null;
62226
- }), Pe = J(
62227
- () => i.showModelSelector && i.models.length > 0
62228
- ), MA = gA(!1), ae = J(
62226
+ }), Pe = J(() => i.showModelSelector && i.models.length > 0), MA = gA(!1), ae = J(
62229
62227
  () => gi.value || Ve.value || MA.value
62230
62228
  );
62231
62229
  function $A() {
@@ -63443,7 +63441,7 @@ const gQA = {
63443
63441
  ], 38);
63444
63442
  };
63445
63443
  }
63446
- }), apA = /* @__PURE__ */ Qe(npA, [["__scopeId", "data-v-63e4017f"]]), opA = {
63444
+ }), apA = /* @__PURE__ */ Qe(npA, [["__scopeId", "data-v-62e7ba5d"]]), opA = {
63447
63445
  class: "chat-empty",
63448
63446
  role: "status"
63449
63447
  }, spA = { class: "chat-empty__title" }, lpA = { class: "chat-empty__description" }, gpA = /* @__PURE__ */ KA({