kimiflare 0.48.1 → 0.48.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.
package/dist/index.js CHANGED
@@ -8248,7 +8248,7 @@ var init_cloud_quota_message = __esm({
8248
8248
 
8249
8249
  // src/ui/chat.tsx
8250
8250
  import React4 from "react";
8251
- import { Box as Box5, Text as Text5, Static } from "ink";
8251
+ import { Box as Box5, Text as Text5 } from "ink";
8252
8252
  import Spinner2 from "ink-spinner";
8253
8253
  import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
8254
8254
  function toolSignature(name, args) {
@@ -8265,8 +8265,6 @@ var init_chat = __esm({
8265
8265
  init_cloud_quota_message();
8266
8266
  ChatView = React4.memo(function ChatView2({ events, showReasoning, verbose, intentTier }) {
8267
8267
  const theme = useTheme();
8268
- const finalized = [];
8269
- const active = [];
8270
8268
  const toolCounts = /* @__PURE__ */ new Map();
8271
8269
  for (const e of events) {
8272
8270
  if (e.kind === "tool") {
@@ -8278,31 +8276,14 @@ var init_chat = __esm({
8278
8276
  for (const [sig, count] of toolCounts) {
8279
8277
  if (count >= 3) repeatedSigs.add(sig);
8280
8278
  }
8281
- for (let i = 0; i < events.length; i++) {
8282
- const e = events[i];
8283
- const isStreaming = e.kind === "assistant" && e.streaming;
8284
- if (isStreaming) {
8285
- active.push(e);
8286
- } else {
8287
- const prev = events[i - 1];
8288
- const showSeparator = !!(e.kind === "user" && prev && (prev.kind === "assistant" || prev.kind === "tool"));
8289
- finalized.push({ id: e.key, evt: e, showSeparator });
8290
- }
8291
- }
8292
- return /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", children: [
8293
- /* @__PURE__ */ jsx6(Static, { items: finalized, children: (item) => /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", children: [
8294
- item.showSeparator && /* @__PURE__ */ jsx6(Box5, { marginY: 1, children: /* @__PURE__ */ jsx6(Text5, { color: theme.info.color, children: "\u2500".repeat(40) }) }),
8295
- /* @__PURE__ */ jsx6(EventView, { evt: item.evt, showReasoning, verbose, repeatedSigs, intentTier })
8296
- ] }, item.id) }),
8297
- active.map((e, i) => {
8298
- const prevEvt = i > 0 ? active[i - 1] : finalized[finalized.length - 1]?.evt;
8299
- const showSeparator = e.kind === "user" && prevEvt && (prevEvt.kind === "assistant" || prevEvt.kind === "tool");
8300
- return /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", children: [
8301
- showSeparator && /* @__PURE__ */ jsx6(Box5, { marginY: 1, children: /* @__PURE__ */ jsx6(Text5, { color: theme.info.color, children: "\u2500".repeat(40) }) }),
8302
- /* @__PURE__ */ jsx6(EventView, { evt: e, showReasoning, verbose, repeatedSigs, intentTier })
8303
- ] }, e.key);
8304
- })
8305
- ] });
8279
+ return /* @__PURE__ */ jsx6(Box5, { flexDirection: "column", children: events.map((e, i) => {
8280
+ const prev = events[i - 1];
8281
+ const showSeparator = !!(e.kind === "user" && prev && (prev.kind === "assistant" || prev.kind === "tool"));
8282
+ return /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", children: [
8283
+ showSeparator && /* @__PURE__ */ jsx6(Box5, { marginY: 1, children: /* @__PURE__ */ jsx6(Text5, { color: theme.info.color, children: "\u2500".repeat(40) }) }),
8284
+ /* @__PURE__ */ jsx6(EventView, { evt: e, showReasoning, verbose, repeatedSigs, intentTier })
8285
+ ] }, e.key);
8286
+ }) });
8306
8287
  });
8307
8288
  EventView = React4.memo(function EventView2({
8308
8289
  evt,