@menteeai/menteeswe 0.1.21 → 0.1.22

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 (2) hide show
  1. package/dist/cli.js +18 -8
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1306,7 +1306,7 @@ var init_loop = __esm({
1306
1306
  var version;
1307
1307
  var init_package = __esm({
1308
1308
  "package.json"() {
1309
- version = "0.1.21";
1309
+ version = "0.1.22";
1310
1310
  }
1311
1311
  });
1312
1312
 
@@ -1640,10 +1640,10 @@ var App_exports = {};
1640
1640
  __export(App_exports, {
1641
1641
  App: () => App
1642
1642
  });
1643
- import { useEffect as useEffect2, useMemo as useMemo2, useRef, useState as useState3 } from "react";
1643
+ import { memo, useEffect as useEffect2, useMemo as useMemo2, useRef, useState as useState3 } from "react";
1644
1644
  import { Box as Box6, Static, Text as Text6, useApp, useInput as useInput4, useStdout } from "ink";
1645
1645
  import TextInput2 from "ink-text-input";
1646
- import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
1646
+ import { Fragment, jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
1647
1647
  function App(props) {
1648
1648
  const { exit } = useApp();
1649
1649
  const { stdout } = useStdout();
@@ -1756,7 +1756,7 @@ function App(props) {
1756
1756
  unsubscribeLog();
1757
1757
  unsubscribeLog2();
1758
1758
  };
1759
- }, [bus, bridge, showDetails]);
1759
+ }, [bus, bridge]);
1760
1760
  useEffect2(() => {
1761
1761
  if (!running) return;
1762
1762
  const timer = setInterval(() => setFrame((f) => (f + 1) % SPINNER_FRAMES.length), 80);
@@ -2028,9 +2028,7 @@ function App(props) {
2028
2028
  return /* @__PURE__ */ jsxs6(Box6, { flexDirection: "column", children: [
2029
2029
  /* @__PURE__ */ jsx6(Static, { items: [{ key: "header", text: header }], children: (item) => /* @__PURE__ */ jsx6(Box6, { children: item.text }, item.key) }),
2030
2030
  /* @__PURE__ */ jsxs6(Box6, { flexDirection: "column", children: [
2031
- log.filter((l) => (showDetails || !l.noise) && (l.kind !== "patch" || showEdits)).map(
2032
- (line) => line.kind === "answer" ? /* @__PURE__ */ jsx6(AnswerBlock, { text: line.text }, line.id) : line.kind === "patch" && line.edit ? /* @__PURE__ */ jsx6(CurrentEditBox, { edit: line.edit }, line.id) : /* @__PURE__ */ jsx6(Text6, { children: line.text }, line.id)
2033
- ),
2031
+ /* @__PURE__ */ jsx6(LogList, { log, showDetails, showEdits }),
2034
2032
  finalPending !== null ? /* @__PURE__ */ jsx6(Box6, { marginTop: 1, flexDirection: "column", borderStyle: "round", borderColor: "green", paddingX: 1, children: /* @__PURE__ */ jsxs6(Text6, { color: "green", children: [
2035
2033
  typedText,
2036
2034
  typing ? "\u258C" : ""
@@ -2139,7 +2137,7 @@ function App(props) {
2139
2137
  ] })
2140
2138
  ] });
2141
2139
  }
2142
- var SPINNER_FRAMES, PHASE_LABEL, PROVIDER_NAMES, PROVIDER_DESCRIPTIONS, BANNER;
2140
+ var SPINNER_FRAMES, PHASE_LABEL, PROVIDER_NAMES, PROVIDER_DESCRIPTIONS, BANNER, MAX_RENDERED_LOG_LINES, LogList;
2143
2141
  var init_App = __esm({
2144
2142
  "src/tui/App.tsx"() {
2145
2143
  "use strict";
@@ -2184,6 +2182,18 @@ var init_App = __esm({
2184
2182
  | |
2185
2183
  MenteE SWE \u2014 https://menteeai.org
2186
2184
  Twitter: x.com/menteeaiorg`;
2185
+ MAX_RENDERED_LOG_LINES = 400;
2186
+ LogList = memo(function LogList2({
2187
+ log,
2188
+ showDetails,
2189
+ showEdits
2190
+ }) {
2191
+ const visible = log.filter((l) => (showDetails || !l.noise) && (l.kind !== "patch" || showEdits));
2192
+ const windowed = visible.length > MAX_RENDERED_LOG_LINES ? visible.slice(-MAX_RENDERED_LOG_LINES) : visible;
2193
+ return /* @__PURE__ */ jsx6(Fragment, { children: windowed.map(
2194
+ (line) => line.kind === "answer" ? /* @__PURE__ */ jsx6(AnswerBlock, { text: line.text }, line.id) : line.kind === "patch" && line.edit ? /* @__PURE__ */ jsx6(CurrentEditBox, { edit: line.edit }, line.id) : /* @__PURE__ */ jsx6(Text6, { children: line.text }, line.id)
2195
+ ) });
2196
+ });
2187
2197
  }
2188
2198
  });
2189
2199
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@menteeai/menteeswe",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "MenteE SWE — a model-agnostic autonomous software-engineering agent CLI. Bring your own intelligence: Kimi, GLM/Z.ai, and more.",
5
5
  "type": "module",
6
6
  "license": "MIT",