bimmo-cli 3.1.1 → 3.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.
Files changed (2) hide show
  1. package/bin/bimmo +7 -2
  2. package/package.json +1 -1
package/bin/bimmo CHANGED
@@ -1,17 +1,22 @@
1
- #!/usr/bin/env -S node --import=tsx
1
+ #!/usr/bin/env node
2
2
 
3
3
  // Silencia o aviso de depreciação do punycode que polui o terminal em versões novas do Node
4
4
  process.removeAllListeners('warning');
5
5
 
6
6
  import { program } from 'commander';
7
- import { startInteractive } from '../src/interface.jsx';
8
7
  import { configure } from '../src/config.js';
9
8
  import fs from 'fs';
10
9
  import path from 'path';
11
10
  import { fileURLToPath } from 'url';
11
+ import { createJiti } from 'jiti';
12
12
 
13
13
  const __filename = fileURLToPath(import.meta.url);
14
14
  const __dirname = path.dirname(__filename);
15
+
16
+ // Usa jiti para carregar interface.jsx com suporte a JSX em tempo de execução
17
+ const jiti = createJiti(import.meta.url);
18
+ const { startInteractive } = await jiti.import('../src/interface.jsx');
19
+
15
20
  const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '../package.json'), 'utf-8'));
16
21
 
17
22
  program
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bimmo-cli",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "🌿 Plataforma de IA universal profissional com interface React (Ink). Agentes, Swarms, Autocomplete real-time e Contexto Inteligente.",
5
5
  "bin": {
6
6
  "bimmo": "bin/bimmo"