bravecode-cli 0.1.1 → 0.1.3
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.cjs +15 -7
- package/dist/cli.cjs.map +2 -2
- package/dist/cli.js +16 -7
- package/dist/cli.js.map +1 -1
- package/package.json +2 -2
package/dist/cli.cjs
CHANGED
|
@@ -41347,9 +41347,22 @@ var UpdateChecker = class {
|
|
|
41347
41347
|
var import_fs9 = require("fs");
|
|
41348
41348
|
var import_path7 = require("path");
|
|
41349
41349
|
var program2 = new Command();
|
|
41350
|
-
|
|
41350
|
+
var BANNER = `
|
|
41351
|
+
\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\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557
|
|
41352
|
+
\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2551 \u2588\u2588\u2551\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\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D
|
|
41353
|
+
\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557
|
|
41354
|
+
\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2550\u255D \u2588\u2588\u2554\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2588\u2588\u2551
|
|
41355
|
+
\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551
|
|
41356
|
+
\u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\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\u255D \u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D
|
|
41357
|
+
`;
|
|
41358
|
+
program2.name("bravecode").description("BraveCode AI - Agentic AI Vibe Coding CLI with free model support").version("0.1.2").action(async () => {
|
|
41359
|
+
console.log(BANNER);
|
|
41360
|
+
const { TUILauncher: TUILauncher2 } = await Promise.resolve().then(() => (init_tui(), tui_exports));
|
|
41361
|
+
const launcher = new TUILauncher2();
|
|
41362
|
+
await launcher.start();
|
|
41363
|
+
});
|
|
41351
41364
|
program2.command("chat").description("Start a chat session").option("-m, --model <model>", "Model to use (or 'auto' for auto-selection)").option("-t, --task <task>", "Task type hint (code, reasoning, vision, audio, general)").option("-a, --agent <agent>", "Agent to use", "build").option("--tui", "Launch interactive TUI mode").argument("[prompt]", "Initial prompt").action(async (prompt, options) => {
|
|
41352
|
-
if (options.tui) {
|
|
41365
|
+
if (!prompt || options.tui) {
|
|
41353
41366
|
const { TUILauncher: TUILauncher2 } = await Promise.resolve().then(() => (init_tui(), tui_exports));
|
|
41354
41367
|
const launcher = new TUILauncher2(options.model, options.agent);
|
|
41355
41368
|
await launcher.start();
|
|
@@ -41357,11 +41370,6 @@ program2.command("chat").description("Start a chat session").option("-m, --model
|
|
|
41357
41370
|
}
|
|
41358
41371
|
const provider = new LLMProviderManager();
|
|
41359
41372
|
const autoModel = new AutoModelSelector();
|
|
41360
|
-
if (!prompt) {
|
|
41361
|
-
console.log("Interactive mode coming soon. For now, provide a prompt:");
|
|
41362
|
-
console.log(' bravecode chat "Write a hello world program"');
|
|
41363
|
-
return;
|
|
41364
|
-
}
|
|
41365
41373
|
let modelId;
|
|
41366
41374
|
if (options.model === "auto" || !options.model) {
|
|
41367
41375
|
const taskType = options.task || autoModel.detectTaskType(prompt);
|