bravecode-cli 0.1.14 → 0.1.15

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.mjs CHANGED
@@ -38047,7 +38047,7 @@ var APP_VERSION;
38047
38047
  var init_version = __esm({
38048
38048
  "src/version.ts"() {
38049
38049
  "use strict";
38050
- APP_VERSION = "0.1.14";
38050
+ APP_VERSION = "0.1.15";
38051
38051
  }
38052
38052
  });
38053
38053
 
@@ -41583,13 +41583,14 @@ import { Box, Text } from "ink";
41583
41583
  import { jsx as jsx6 } from "react/jsx-runtime";
41584
41584
  function Logo({ width = 80 }) {
41585
41585
  const logo = [
41586
- " ____ _ ____ __ ",
41587
- "| __ ) ___ ___ | | _____ | __ ) ___ / _| ",
41588
- "| _ \\ / _ \\ / _ \\| |/ / _ \\ | _ \\ / _ \\ | |_ ",
41589
- "| |_) | (_) | (_) | < __/ | |_) | (_) || _| ",
41590
- "|____/ \\___/ \\___/|_|\\_\\___| |____/ \\___/ |_| "
41586
+ "\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2557",
41587
+ "\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2551 \u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2551",
41588
+ "\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2557 \u2588\u2588\u2551",
41589
+ "\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2551\u255A\u2550\u2550\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551\u2588\u2588\u2588\u2557\u2588\u2588\u2551",
41590
+ "\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u255A\u2588\u2588\u2588\u2554\u2588\u2588\u2588\u2554\u255D",
41591
+ "\u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u255D\u255A\u2550\u2550\u255D"
41591
41592
  ];
41592
- return /* @__PURE__ */ jsx6(Box, { flexDirection: "column", alignItems: "center", children: logo.map((line, i) => /* @__PURE__ */ jsx6(Text, { color: "gray", bold: true, children: line }, i)) });
41593
+ return /* @__PURE__ */ jsx6(Box, { flexDirection: "column", alignItems: "center", children: logo.map((line, i) => /* @__PURE__ */ jsx6(Text, { color: "gray", children: line }, i)) });
41593
41594
  }
41594
41595
  var init_logo = __esm({
41595
41596
  "src/core/tui/components/logo.tsx"() {
@@ -42291,53 +42292,81 @@ function App() {
42291
42292
  await sendMessage(value);
42292
42293
  };
42293
42294
  const hasMessages = messages.length > 0;
42294
- return /* @__PURE__ */ jsxs7(
42295
- Box8,
42296
- {
42297
- flexDirection: "column",
42298
- width: "100%",
42299
- height: "100%",
42300
- backgroundColor: colors.background,
42301
- children: [
42302
- /* @__PURE__ */ jsx13(Box8, { flexDirection: "column", flexGrow: 1, justifyContent: hasMessages ? "flex-start" : "center", children: hasMessages ? /* @__PURE__ */ jsx13(MessageContainer, {}) : (
42303
- /* Welcome screen - centered layout like OpenCode */
42304
- /* @__PURE__ */ jsxs7(Box8, { flexDirection: "column", alignItems: "center", gap: 1, children: [
42305
- /* @__PURE__ */ jsx13(Logo, {}),
42306
- /* @__PURE__ */ jsx13(
42307
- Box8,
42308
- {
42309
- flexDirection: "column",
42310
- width: 60,
42311
- borderStyle: "round",
42312
- borderColor: colors.border,
42313
- paddingX: 2,
42314
- paddingY: 1,
42315
- children: /* @__PURE__ */ jsx13(
42316
- InputEditor,
42317
- {
42318
- onSubmit: handleSubmit,
42319
- placeholder: 'Ask anything... "What is the tech stack of this project?"'
42320
- }
42321
- )
42322
- }
42323
- ),
42324
- /* @__PURE__ */ jsxs7(Box8, { gap: 1, children: [
42325
- /* @__PURE__ */ jsx13(Text8, { bold: true, color: colors.primary, children: currentAgent.name }),
42326
- /* @__PURE__ */ jsx13(Text8, { color: colors.textMuted, children: "\xB7" }),
42327
- /* @__PURE__ */ jsx13(Text8, { color: colors.textSecondary, children: currentModel })
42328
- ] }),
42329
- /* @__PURE__ */ jsxs7(Box8, { gap: 2, children: [
42330
- /* @__PURE__ */ jsx13(Text8, { color: colors.textMuted, children: "tab agents" }),
42331
- /* @__PURE__ */ jsx13(Text8, { color: colors.textMuted, children: "ctrl+p commands" })
42295
+ const cwd = process.cwd().replace(process.env.HOME || "", "~");
42296
+ return /* @__PURE__ */ jsxs7(Box8, { flexDirection: "row", width: "100%", height: "100%", children: [
42297
+ /* @__PURE__ */ jsxs7(Box8, { flexDirection: "column", flexGrow: 1, backgroundColor: colors.background, children: [
42298
+ /* @__PURE__ */ jsx13(Box8, { flexDirection: "column", flexGrow: 1, justifyContent: hasMessages ? "flex-start" : "center", children: hasMessages ? /* @__PURE__ */ jsx13(MessageContainer, {}) : (
42299
+ /* Welcome screen - centered vertically */
42300
+ /* @__PURE__ */ jsxs7(Box8, { flexDirection: "column", alignItems: "center", gap: 1, children: [
42301
+ /* @__PURE__ */ jsx13(Logo, {}),
42302
+ /* @__PURE__ */ jsx13(
42303
+ Box8,
42304
+ {
42305
+ flexDirection: "column",
42306
+ width: 60,
42307
+ borderStyle: "round",
42308
+ borderColor: colors.border,
42309
+ paddingX: 2,
42310
+ paddingY: 1,
42311
+ children: /* @__PURE__ */ jsx13(
42312
+ InputEditor,
42313
+ {
42314
+ onSubmit: handleSubmit,
42315
+ placeholder: 'Ask anything... "What is the tech stack of this project?"'
42316
+ }
42317
+ )
42318
+ }
42319
+ ),
42320
+ /* @__PURE__ */ jsxs7(Box8, { gap: 1, children: [
42321
+ /* @__PURE__ */ jsx13(Text8, { bold: true, color: colors.primary, children: currentAgent.name }),
42322
+ /* @__PURE__ */ jsx13(Text8, { color: colors.textMuted, children: "\xB7" }),
42323
+ /* @__PURE__ */ jsx13(Text8, { color: colors.textSecondary, children: currentModel })
42324
+ ] }),
42325
+ /* @__PURE__ */ jsxs7(Box8, { gap: 2, children: [
42326
+ /* @__PURE__ */ jsx13(Text8, { color: colors.textMuted, children: "tab agents" }),
42327
+ /* @__PURE__ */ jsx13(Text8, { color: colors.textMuted, children: "ctrl+p commands" })
42328
+ ] })
42329
+ ] })
42330
+ ) }),
42331
+ /* @__PURE__ */ jsx13(StatusBar, {})
42332
+ ] }),
42333
+ /* @__PURE__ */ jsxs7(
42334
+ Box8,
42335
+ {
42336
+ flexDirection: "column",
42337
+ width: 35,
42338
+ borderStyle: "single",
42339
+ borderColor: colors.border,
42340
+ paddingLeft: 1,
42341
+ children: [
42342
+ /* @__PURE__ */ jsx13(Text8, { bold: true, color: colors.textSecondary, children: "New session" }),
42343
+ /* @__PURE__ */ jsxs7(Text8, { color: colors.textMuted, children: [
42344
+ (/* @__PURE__ */ new Date()).toISOString().split(".")[0],
42345
+ "Z"
42346
+ ] }),
42347
+ /* @__PURE__ */ jsx13(Box8, { marginTop: 1, children: /* @__PURE__ */ jsx13(Text8, { bold: true, color: colors.textSecondary, children: "Context" }) }),
42348
+ /* @__PURE__ */ jsx13(Text8, { color: colors.textMuted, children: "0 tokens" }),
42349
+ /* @__PURE__ */ jsx13(Text8, { color: colors.textMuted, children: "0% used" }),
42350
+ /* @__PURE__ */ jsx13(Text8, { color: colors.textMuted, children: "$0.00 spent" }),
42351
+ /* @__PURE__ */ jsx13(Box8, { marginTop: 1, children: /* @__PURE__ */ jsx13(Text8, { bold: true, color: colors.textSecondary, children: "MCP" }) }),
42352
+ /* @__PURE__ */ jsx13(Text8, { color: colors.textMuted, children: "\u25CF railway Connected" }),
42353
+ /* @__PURE__ */ jsx13(Box8, { marginTop: 1, children: /* @__PURE__ */ jsx13(Text8, { bold: true, color: colors.textSecondary, children: "LSP" }) }),
42354
+ /* @__PURE__ */ jsx13(Text8, { color: colors.textMuted, children: "LSPs are disabled" }),
42355
+ /* @__PURE__ */ jsx13(Box8, { flexGrow: 1 }),
42356
+ /* @__PURE__ */ jsx13(Box8, { marginTop: 1, children: /* @__PURE__ */ jsx13(Text8, { color: colors.textMuted, children: cwd }) }),
42357
+ /* @__PURE__ */ jsxs7(Box8, { children: [
42358
+ /* @__PURE__ */ jsx13(Text8, { color: colors.success, children: "\u25CF" }),
42359
+ /* @__PURE__ */ jsxs7(Text8, { color: colors.textMuted, children: [
42360
+ " ",
42361
+ APP_VERSION
42332
42362
  ] })
42333
42363
  ] })
42334
- ) }),
42335
- /* @__PURE__ */ jsx13(StatusBar, {}),
42336
- isOpen && dialog.type === "model" && /* @__PURE__ */ jsx13(ModelSelector, {}),
42337
- /* @__PURE__ */ jsx13(ToastContainer, {})
42338
- ]
42339
- }
42340
- );
42364
+ ]
42365
+ }
42366
+ ),
42367
+ isOpen && dialog.type === "model" && /* @__PURE__ */ jsx13(ModelSelector, {}),
42368
+ /* @__PURE__ */ jsx13(ToastContainer, {})
42369
+ ] });
42341
42370
  }
42342
42371
  var init_app = __esm({
42343
42372
  "src/core/tui/app.tsx"() {
@@ -42353,6 +42382,7 @@ var init_app = __esm({
42353
42382
  init_toast2();
42354
42383
  init_model_selector();
42355
42384
  init_use_agent();
42385
+ init_version();
42356
42386
  }
42357
42387
  });
42358
42388