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 +82 -52
- package/dist/cli.mjs.map +2 -2
- package/package.json +1 -1
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.
|
|
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",
|
|
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
|
-
|
|
42295
|
-
|
|
42296
|
-
{
|
|
42297
|
-
flexDirection: "column",
|
|
42298
|
-
|
|
42299
|
-
|
|
42300
|
-
|
|
42301
|
-
|
|
42302
|
-
|
|
42303
|
-
|
|
42304
|
-
|
|
42305
|
-
|
|
42306
|
-
|
|
42307
|
-
|
|
42308
|
-
|
|
42309
|
-
|
|
42310
|
-
|
|
42311
|
-
|
|
42312
|
-
|
|
42313
|
-
|
|
42314
|
-
|
|
42315
|
-
|
|
42316
|
-
|
|
42317
|
-
|
|
42318
|
-
|
|
42319
|
-
|
|
42320
|
-
|
|
42321
|
-
|
|
42322
|
-
|
|
42323
|
-
|
|
42324
|
-
|
|
42325
|
-
|
|
42326
|
-
|
|
42327
|
-
|
|
42328
|
-
|
|
42329
|
-
|
|
42330
|
-
|
|
42331
|
-
|
|
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
|
-
|
|
42336
|
-
|
|
42337
|
-
|
|
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
|
|