bimmo-cli 2.1.1 → 2.1.2
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/package.json +1 -1
- package/src/interface.js +10 -1
package/package.json
CHANGED
package/src/interface.js
CHANGED
|
@@ -8,6 +8,7 @@ import fs from 'fs';
|
|
|
8
8
|
import path from 'path';
|
|
9
9
|
import mime from 'mime-types';
|
|
10
10
|
import readline from 'readline';
|
|
11
|
+
import { fileURLToPath } from 'url';
|
|
11
12
|
|
|
12
13
|
import { getConfig, configure, updateActiveModel, switchProfile } from './config.js';
|
|
13
14
|
import { createProvider } from './providers/factory.js';
|
|
@@ -15,6 +16,11 @@ import { getProjectContext } from './project-context.js';
|
|
|
15
16
|
import { SwarmOrchestrator } from './orchestrator.js';
|
|
16
17
|
import { editState } from './agent.js';
|
|
17
18
|
|
|
19
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
20
|
+
const __dirname = path.dirname(__filename);
|
|
21
|
+
const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '../package.json'), 'utf-8'));
|
|
22
|
+
const version = pkg.version;
|
|
23
|
+
|
|
18
24
|
marked.use(new TerminalRenderer({
|
|
19
25
|
heading: chalk.hex('#c084fc').bold,
|
|
20
26
|
code: chalk.hex('#00ff9d'),
|
|
@@ -137,7 +143,7 @@ export async function startInteractive() {
|
|
|
137
143
|
|
|
138
144
|
console.clear();
|
|
139
145
|
console.log(lavender(figlet.textSync('bimmo')));
|
|
140
|
-
console.log(lavender('─'
|
|
146
|
+
console.log(lavender(` v${version} `.padStart(60, '─')));
|
|
141
147
|
console.log(green(` Perfil: ${bold(config.activeProfile || 'Padrão')} • IA: ${bold(config.provider.toUpperCase())}`));
|
|
142
148
|
console.log(green(` Modelo: ${bold(config.model)}`));
|
|
143
149
|
console.log(gray(' /chat | /plan | /edit | /swarm | /use [agente] | /help'));
|
|
@@ -180,6 +186,9 @@ export async function startInteractive() {
|
|
|
180
186
|
continue;
|
|
181
187
|
}
|
|
182
188
|
|
|
189
|
+
// Mostra o diretório atual logo abaixo do input do usuário
|
|
190
|
+
console.log(gray(` 📁 ${process.cwd()}`));
|
|
191
|
+
|
|
183
192
|
const rawInput = input.trim();
|
|
184
193
|
const cmd = rawInput.toLowerCase();
|
|
185
194
|
|