bravecode-cli 0.1.42 → 0.1.43
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/cli-main.mjs +14 -9
- package/dist/cli-main.mjs.map +3 -3
- package/package.json +1 -1
package/dist/cli-main.mjs
CHANGED
|
@@ -38185,7 +38185,7 @@ var APP_VERSION, APP_NAME;
|
|
|
38185
38185
|
var init_version = __esm({
|
|
38186
38186
|
"src/version.ts"() {
|
|
38187
38187
|
"use strict";
|
|
38188
|
-
APP_VERSION = "0.1.
|
|
38188
|
+
APP_VERSION = "0.1.43";
|
|
38189
38189
|
APP_NAME = "BraveCode";
|
|
38190
38190
|
}
|
|
38191
38191
|
});
|
|
@@ -102571,6 +102571,7 @@ var init_marked_terminal = __esm({
|
|
|
102571
102571
|
// src/core/tui/app.tsx
|
|
102572
102572
|
import React4 from "react";
|
|
102573
102573
|
import { useRenderer, useKeyboard, useTerminalDimensions, createRoot } from "@opentui/react";
|
|
102574
|
+
import stripAnsi from "strip-ansi";
|
|
102574
102575
|
import { Fragment, jsx, jsxs } from "@opentui/react/jsx-runtime";
|
|
102575
102576
|
function s(v) {
|
|
102576
102577
|
if (v === null || v === void 0) return "";
|
|
@@ -102584,7 +102585,8 @@ function s(v) {
|
|
|
102584
102585
|
}
|
|
102585
102586
|
function renderMarkdown(src) {
|
|
102586
102587
|
try {
|
|
102587
|
-
|
|
102588
|
+
const html2 = marked.parse(s(src));
|
|
102589
|
+
return stripAnsi(s(html2));
|
|
102588
102590
|
} catch {
|
|
102589
102591
|
return s(src);
|
|
102590
102592
|
}
|
|
@@ -102672,11 +102674,7 @@ function PixelLogo() {
|
|
|
102672
102674
|
\u2580 \u2580\u2580\u2580 \u2580\u2580\u2580 \u2580\u2580\u2580 \u2580 \u2580\u2580\u2580 \u2580\u2580\u2580 \u2580\u2580\u2580 \u2580\u2580\u2580 \u2580\u2580\u2580
|
|
102673
102675
|
`;
|
|
102674
102676
|
const logo = letter.split("\n").filter(Boolean);
|
|
102675
|
-
return /* @__PURE__ */
|
|
102676
|
-
logo.map((line, i) => /* @__PURE__ */ jsx("text", { fg: colors2.primary, children: s(line) }, s(i))),
|
|
102677
|
-
/* @__PURE__ */ jsx("text", { fg: colors2.textMuted, children: "AI coding agent \u2014 iterate, debug, and ship faster" }),
|
|
102678
|
-
/* @__PURE__ */ jsx("text", { fg: colors2.textMuted, children: "with a contextual AI that understands your entire codebase." })
|
|
102679
|
-
] });
|
|
102677
|
+
return /* @__PURE__ */ jsx("box", { alignItems: "center", flexDirection: "column", gap: 0, children: logo.map((line, i) => /* @__PURE__ */ jsx("text", { fg: colors2.primary, children: s(line) }, s(i))) });
|
|
102680
102678
|
}
|
|
102681
102679
|
function Sidebar({ compact = false }) {
|
|
102682
102680
|
const { colors: colors2 } = useTheme();
|
|
@@ -102824,7 +102822,14 @@ function MessageBubble({ msg }) {
|
|
|
102824
102822
|
function MessageContainer() {
|
|
102825
102823
|
const { messages } = useSession();
|
|
102826
102824
|
const { colors: colors2 } = useTheme();
|
|
102827
|
-
return /* @__PURE__ */ jsx("scrollbox", { style: {
|
|
102825
|
+
return /* @__PURE__ */ jsx("scrollbox", { style: {
|
|
102826
|
+
flexGrow: 1,
|
|
102827
|
+
flexShrink: 1,
|
|
102828
|
+
flexBasis: 0,
|
|
102829
|
+
backgroundColor: colors2.bg,
|
|
102830
|
+
paddingLeft: 1,
|
|
102831
|
+
paddingRight: 1
|
|
102832
|
+
}, children: /* @__PURE__ */ jsx("box", { style: { flexDirection: "column", gap: 1, paddingTop: 1 }, children: messages.map((msg) => /* @__PURE__ */ jsx(MessageBubble, { msg }, s(msg.id))) }) });
|
|
102828
102833
|
}
|
|
102829
102834
|
function CommandPalette({
|
|
102830
102835
|
filter: filter3,
|
|
@@ -103319,7 +103324,7 @@ var init_app = __esm({
|
|
|
103319
103324
|
init_marked_terminal();
|
|
103320
103325
|
SIDEBAR_BREAKPOINT = 90;
|
|
103321
103326
|
mdRenderer = new marked_terminal_default({
|
|
103322
|
-
width:
|
|
103327
|
+
width: 80,
|
|
103323
103328
|
reflowText: true,
|
|
103324
103329
|
emoji: false,
|
|
103325
103330
|
code: (code) => code
|