bravecode-cli 0.1.38 → 0.1.39

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 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.38";
38188
+ APP_VERSION = "0.1.39";
38189
38189
  APP_NAME = "BraveCode";
38190
38190
  }
38191
38191
  });
@@ -42109,14 +42109,28 @@ function MessageBubble({ msg }) {
42109
42109
  paddingRight: 2,
42110
42110
  paddingTop: 0,
42111
42111
  paddingBottom: 0,
42112
- flexDirection: "column"
42112
+ flexDirection: "row",
42113
+ gap: 1
42113
42114
  }, children: [
42114
- /* @__PURE__ */ jsx("text", { fg: colors2.textMuted, children: /* @__PURE__ */ jsxs("b", { children: [
42115
- "[Tool result for ",
42115
+ /* @__PURE__ */ jsx("text", { fg: colors2.textMuted, children: /* @__PURE__ */ jsx("b", { children: "\u203A" }) }),
42116
+ /* @__PURE__ */ jsxs("text", { fg: colors2.textMuted, children: [
42116
42117
  s(msg.toolName ?? "tool"),
42117
- "]"
42118
- ] }) }),
42119
- /* @__PURE__ */ jsx("scrollbox", { style: { maxHeight: 10, backgroundColor: colors2.bgAlt }, children: /* @__PURE__ */ jsx("text", { fg: colors2.textSecondary, children: s(msg.content.length > 4e3 ? msg.content.slice(0, 4e3) + "\n... (truncated)" : msg.content) }) })
42118
+ " ",
42119
+ s(msg.content.length > 60 ? msg.content.slice(0, 60) + "\u2026" : msg.content.split("\n")[0])
42120
+ ] })
42121
+ ] });
42122
+ }
42123
+ if (isUser) {
42124
+ return /* @__PURE__ */ jsxs("box", { style: {
42125
+ paddingLeft: 1,
42126
+ paddingRight: 1,
42127
+ paddingTop: 0,
42128
+ paddingBottom: 0,
42129
+ flexDirection: "row",
42130
+ gap: 1
42131
+ }, children: [
42132
+ /* @__PURE__ */ jsx("text", { fg: colors2.primary, children: /* @__PURE__ */ jsx("b", { children: ">" }) }),
42133
+ /* @__PURE__ */ jsx("text", { fg: colors2.text, wrapMode: "word", children: s(msg.content) })
42120
42134
  ] });
42121
42135
  }
42122
42136
  return /* @__PURE__ */ jsxs("box", { style: {
@@ -42124,33 +42138,24 @@ function MessageBubble({ msg }) {
42124
42138
  paddingRight: 1,
42125
42139
  paddingTop: 0,
42126
42140
  paddingBottom: 0,
42127
- flexDirection: "column",
42128
- backgroundColor: isUser ? colors2.userMsg : colors2.assistantMsg,
42129
- border: true,
42130
- borderColor: isUser ? colors2.primaryDim : colors2.border
42141
+ flexDirection: "column"
42131
42142
  }, children: [
42132
- /* @__PURE__ */ jsxs("box", { style: { flexDirection: "row", gap: 1, marginBottom: 0 }, children: [
42133
- /* @__PURE__ */ jsx("text", { fg: isUser ? colors2.primary : colors2.textSecondary, children: /* @__PURE__ */ jsx("b", { children: isUser ? "You" : "Assistant" }) }),
42134
- /* @__PURE__ */ jsx("text", { fg: colors2.textMuted, children: s(msg.timestamp.toLocaleTimeString()) })
42135
- ] }),
42136
- /* @__PURE__ */ jsx("scrollbox", { style: { maxHeight: 40 }, children: /* @__PURE__ */ jsx("text", { fg: colors2.text, wrapMode: "word", children: s(msg.content || (isUser ? "" : " ")) }) }),
42137
- msg.toolCalls && msg.toolCalls.length > 0 ? /* @__PURE__ */ jsx("box", { style: { marginTop: 0, flexDirection: "column" }, children: msg.toolCalls.map((tc) => {
42143
+ /* @__PURE__ */ jsx("text", { fg: colors2.text, wrapMode: "word", children: s(msg.content || " ") }),
42144
+ msg.toolCalls && msg.toolCalls.length > 0 ? /* @__PURE__ */ jsx("box", { style: { marginTop: 0, flexDirection: "column", paddingLeft: 1 }, children: msg.toolCalls.map((tc) => {
42138
42145
  if (tc.name === "write" || tc.name === "edit") {
42139
42146
  const filePath = tc.args?.filePath || tc.args?.path || "";
42140
42147
  const isCreate = tc.name === "write";
42141
42148
  const icon = isCreate ? "+" : "~";
42142
42149
  const iconColor = isCreate ? colors2.success : colors2.warning;
42143
- return /* @__PURE__ */ jsxs("box", { style: { flexDirection: "row", gap: 1, paddingLeft: 1 }, children: [
42150
+ return /* @__PURE__ */ jsxs("box", { style: { flexDirection: "row", gap: 1 }, children: [
42144
42151
  /* @__PURE__ */ jsx("text", { fg: iconColor, children: /* @__PURE__ */ jsx("b", { children: icon }) }),
42145
42152
  /* @__PURE__ */ jsx("text", { fg: colors2.textSecondary, children: s(filePath) })
42146
42153
  ] }, s(tc.id));
42147
42154
  }
42148
- return /* @__PURE__ */ jsx("box", { style: { flexDirection: "row", gap: 1 }, children: /* @__PURE__ */ jsx("text", { fg: tc.status === "error" ? colors2.error : colors2.info, children: /* @__PURE__ */ jsxs("b", { children: [
42149
- "[",
42155
+ return /* @__PURE__ */ jsx("box", { style: { flexDirection: "row", gap: 1 }, children: /* @__PURE__ */ jsxs("text", { fg: tc.status === "error" ? colors2.error : colors2.textMuted, children: [
42150
42156
  s(tc.name),
42151
- tc.status === "done" ? " \u2713" : tc.status === "error" ? " \u2717" : "\u2026",
42152
- "]"
42153
- ] }) }) }, s(tc.id));
42157
+ tc.status === "done" ? " \u2713" : tc.status === "error" ? " \u2717" : "\u2026"
42158
+ ] }) }, s(tc.id));
42154
42159
  }) }) : null
42155
42160
  ] });
42156
42161
  }