bravecode-cli 0.1.14 → 0.1.16
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 +77 -55
- 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.16";
|
|
38051
38051
|
}
|
|
38052
38052
|
});
|
|
38053
38053
|
|
|
@@ -41581,15 +41581,8 @@ var init_toast = __esm({
|
|
|
41581
41581
|
import "react";
|
|
41582
41582
|
import { Box, Text } from "ink";
|
|
41583
41583
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
41584
|
-
function Logo(
|
|
41585
|
-
|
|
41586
|
-
" ____ _ ____ __ ",
|
|
41587
|
-
"| __ ) ___ ___ | | _____ | __ ) ___ / _| ",
|
|
41588
|
-
"| _ \\ / _ \\ / _ \\| |/ / _ \\ | _ \\ / _ \\ | |_ ",
|
|
41589
|
-
"| |_) | (_) | (_) | < __/ | |_) | (_) || _| ",
|
|
41590
|
-
"|____/ \\___/ \\___/|_|\\_\\___| |____/ \\___/ |_| "
|
|
41591
|
-
];
|
|
41592
|
-
return /* @__PURE__ */ jsx6(Box, { flexDirection: "column", alignItems: "center", children: logo.map((line, i) => /* @__PURE__ */ jsx6(Text, { color: "gray", bold: true, children: line }, i)) });
|
|
41584
|
+
function Logo() {
|
|
41585
|
+
return /* @__PURE__ */ jsx6(Box, { flexDirection: "column", alignItems: "center", children: /* @__PURE__ */ jsx6(Text, { bold: true, color: "#00d4ff", fontSize: 2, children: "bravecode" }) });
|
|
41593
41586
|
}
|
|
41594
41587
|
var init_logo = __esm({
|
|
41595
41588
|
"src/core/tui/components/logo.tsx"() {
|
|
@@ -42291,53 +42284,81 @@ function App() {
|
|
|
42291
42284
|
await sendMessage(value);
|
|
42292
42285
|
};
|
|
42293
42286
|
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
|
-
|
|
42287
|
+
const cwd = process.cwd().replace(process.env.HOME || "", "~");
|
|
42288
|
+
return /* @__PURE__ */ jsxs7(Box8, { flexDirection: "row", width: "100%", height: "100%", children: [
|
|
42289
|
+
/* @__PURE__ */ jsxs7(Box8, { flexDirection: "column", flexGrow: 1, backgroundColor: colors.background, children: [
|
|
42290
|
+
/* @__PURE__ */ jsx13(Box8, { flexDirection: "column", flexGrow: 1, justifyContent: hasMessages ? "flex-start" : "center", children: hasMessages ? /* @__PURE__ */ jsx13(MessageContainer, {}) : (
|
|
42291
|
+
/* Welcome screen - centered vertically */
|
|
42292
|
+
/* @__PURE__ */ jsxs7(Box8, { flexDirection: "column", alignItems: "center", gap: 1, children: [
|
|
42293
|
+
/* @__PURE__ */ jsx13(Logo, {}),
|
|
42294
|
+
/* @__PURE__ */ jsx13(
|
|
42295
|
+
Box8,
|
|
42296
|
+
{
|
|
42297
|
+
flexDirection: "column",
|
|
42298
|
+
width: 60,
|
|
42299
|
+
borderStyle: "round",
|
|
42300
|
+
borderColor: colors.border,
|
|
42301
|
+
paddingX: 2,
|
|
42302
|
+
paddingY: 1,
|
|
42303
|
+
children: /* @__PURE__ */ jsx13(
|
|
42304
|
+
InputEditor,
|
|
42305
|
+
{
|
|
42306
|
+
onSubmit: handleSubmit,
|
|
42307
|
+
placeholder: 'Ask anything... "What is the tech stack of this project?"'
|
|
42308
|
+
}
|
|
42309
|
+
)
|
|
42310
|
+
}
|
|
42311
|
+
),
|
|
42312
|
+
/* @__PURE__ */ jsxs7(Box8, { gap: 1, children: [
|
|
42313
|
+
/* @__PURE__ */ jsx13(Text8, { bold: true, color: colors.primary, children: currentAgent.name }),
|
|
42314
|
+
/* @__PURE__ */ jsx13(Text8, { color: colors.textMuted, children: "\xB7" }),
|
|
42315
|
+
/* @__PURE__ */ jsx13(Text8, { color: colors.textSecondary, children: currentModel })
|
|
42316
|
+
] }),
|
|
42317
|
+
/* @__PURE__ */ jsxs7(Box8, { gap: 2, children: [
|
|
42318
|
+
/* @__PURE__ */ jsx13(Text8, { color: colors.textMuted, children: "tab agents" }),
|
|
42319
|
+
/* @__PURE__ */ jsx13(Text8, { color: colors.textMuted, children: "ctrl+p commands" })
|
|
42320
|
+
] })
|
|
42321
|
+
] })
|
|
42322
|
+
) }),
|
|
42323
|
+
/* @__PURE__ */ jsx13(StatusBar, {})
|
|
42324
|
+
] }),
|
|
42325
|
+
/* @__PURE__ */ jsxs7(
|
|
42326
|
+
Box8,
|
|
42327
|
+
{
|
|
42328
|
+
flexDirection: "column",
|
|
42329
|
+
width: 35,
|
|
42330
|
+
borderStyle: "single",
|
|
42331
|
+
borderColor: colors.border,
|
|
42332
|
+
paddingLeft: 1,
|
|
42333
|
+
children: [
|
|
42334
|
+
/* @__PURE__ */ jsx13(Text8, { bold: true, color: colors.textSecondary, children: "New session" }),
|
|
42335
|
+
/* @__PURE__ */ jsxs7(Text8, { color: colors.textMuted, children: [
|
|
42336
|
+
(/* @__PURE__ */ new Date()).toISOString().split(".")[0],
|
|
42337
|
+
"Z"
|
|
42338
|
+
] }),
|
|
42339
|
+
/* @__PURE__ */ jsx13(Box8, { marginTop: 1, children: /* @__PURE__ */ jsx13(Text8, { bold: true, color: colors.textSecondary, children: "Context" }) }),
|
|
42340
|
+
/* @__PURE__ */ jsx13(Text8, { color: colors.textMuted, children: "0 tokens" }),
|
|
42341
|
+
/* @__PURE__ */ jsx13(Text8, { color: colors.textMuted, children: "0% used" }),
|
|
42342
|
+
/* @__PURE__ */ jsx13(Text8, { color: colors.textMuted, children: "$0.00 spent" }),
|
|
42343
|
+
/* @__PURE__ */ jsx13(Box8, { marginTop: 1, children: /* @__PURE__ */ jsx13(Text8, { bold: true, color: colors.textSecondary, children: "MCP" }) }),
|
|
42344
|
+
/* @__PURE__ */ jsx13(Text8, { color: colors.textMuted, children: "\u25CF railway Connected" }),
|
|
42345
|
+
/* @__PURE__ */ jsx13(Box8, { marginTop: 1, children: /* @__PURE__ */ jsx13(Text8, { bold: true, color: colors.textSecondary, children: "LSP" }) }),
|
|
42346
|
+
/* @__PURE__ */ jsx13(Text8, { color: colors.textMuted, children: "LSPs are disabled" }),
|
|
42347
|
+
/* @__PURE__ */ jsx13(Box8, { flexGrow: 1 }),
|
|
42348
|
+
/* @__PURE__ */ jsx13(Box8, { marginTop: 1, children: /* @__PURE__ */ jsx13(Text8, { color: colors.textMuted, children: cwd }) }),
|
|
42349
|
+
/* @__PURE__ */ jsxs7(Box8, { children: [
|
|
42350
|
+
/* @__PURE__ */ jsx13(Text8, { color: colors.success, children: "\u25CF" }),
|
|
42351
|
+
/* @__PURE__ */ jsxs7(Text8, { color: colors.textMuted, children: [
|
|
42352
|
+
" ",
|
|
42353
|
+
APP_VERSION
|
|
42332
42354
|
] })
|
|
42333
42355
|
] })
|
|
42334
|
-
|
|
42335
|
-
|
|
42336
|
-
|
|
42337
|
-
|
|
42338
|
-
|
|
42339
|
-
|
|
42340
|
-
);
|
|
42356
|
+
]
|
|
42357
|
+
}
|
|
42358
|
+
),
|
|
42359
|
+
isOpen && dialog.type === "model" && /* @__PURE__ */ jsx13(ModelSelector, {}),
|
|
42360
|
+
/* @__PURE__ */ jsx13(ToastContainer, {})
|
|
42361
|
+
] });
|
|
42341
42362
|
}
|
|
42342
42363
|
var init_app = __esm({
|
|
42343
42364
|
"src/core/tui/app.tsx"() {
|
|
@@ -42353,6 +42374,7 @@ var init_app = __esm({
|
|
|
42353
42374
|
init_toast2();
|
|
42354
42375
|
init_model_selector();
|
|
42355
42376
|
init_use_agent();
|
|
42377
|
+
init_version();
|
|
42356
42378
|
}
|
|
42357
42379
|
});
|
|
42358
42380
|
|