mega-brain-ai 1.2.6 → 1.2.8

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.

Potentially problematic release.


This version of mega-brain-ai might be problematic. Click here for more details.

@@ -23,9 +23,6 @@ agents/persons/
23
23
  # Processed content
24
24
  processing/
25
25
 
26
- # BILHON company module
27
- .bilhon/
28
-
29
26
  # === LAYER 3 EXCLUSIONS (never in Layer 2) ===
30
27
  # These are stripped from Layer 2 pushes:
31
28
  # - inbox/ (raw user uploads)
@@ -38,3 +35,4 @@ processing/
38
35
  # - .claude/monitoring/ (runtime state)
39
36
  # - system/backups/ (personal backups)
40
37
  # - system/jarvis-voice/audiobooks/ (personal audio)
38
+ # - .bilhon/ (company data - Layer 3)
@@ -38,7 +38,7 @@ function stepHeader(step, total, description) {
38
38
  /**
39
39
  * Main installer flow
40
40
  */
41
- export async function runInstaller(version) {
41
+ export async function runInstaller(version, projectName) {
42
42
  console.log();
43
43
 
44
44
  // ──────────────────────────────────────────────────────────
@@ -108,36 +108,44 @@ export async function runInstaller(version) {
108
108
  stepHeader(3, 5, 'Diretório de Instalação');
109
109
 
110
110
  const cwd = process.cwd();
111
- const { dirChoice } = await inquirer.prompt([{
112
- type: 'list',
113
- name: 'dirChoice',
114
- message: chalk.cyan('Onde deseja instalar?'),
115
- choices: [
116
- { name: `Diretório atual ${chalk.dim('(' + cwd + ')')}`, value: 'current' },
117
- { name: `Novo diretório ${chalk.dim('./mega-brain')}`, value: 'new' },
118
- { name: 'Caminho personalizado', value: 'custom' },
119
- ],
120
- }]);
121
-
122
111
  let targetDir;
123
- switch (dirChoice) {
124
- case 'current':
125
- targetDir = cwd;
126
- break;
127
- case 'custom': {
128
- const { customPath } = await inquirer.prompt([{
129
- type: 'input',
130
- name: 'customPath',
131
- message: chalk.cyan('Caminho completo:'),
132
- validate: (input) => input.trim() ? true : chalk.red('Caminho não pode estar vazio.'),
133
- }]);
134
- targetDir = resolve(customPath.trim());
135
- break;
112
+
113
+ if (projectName) {
114
+ // Project name passed via CLI — skip interactive prompt
115
+ targetDir = resolve(cwd, projectName);
116
+ console.log(chalk.cyan(` Instalando em: ${chalk.bold(targetDir)}\n`));
117
+ } else {
118
+ // Interactive directory selection
119
+ const { dirChoice } = await inquirer.prompt([{
120
+ type: 'list',
121
+ name: 'dirChoice',
122
+ message: chalk.cyan('Onde deseja instalar?'),
123
+ choices: [
124
+ { name: `Diretório atual ${chalk.dim('(' + cwd + ')')}`, value: 'current' },
125
+ { name: `Novo diretório ${chalk.dim('./mega-brain')}`, value: 'new' },
126
+ { name: 'Caminho personalizado', value: 'custom' },
127
+ ],
128
+ }]);
129
+
130
+ switch (dirChoice) {
131
+ case 'current':
132
+ targetDir = cwd;
133
+ break;
134
+ case 'custom': {
135
+ const { customPath } = await inquirer.prompt([{
136
+ type: 'input',
137
+ name: 'customPath',
138
+ message: chalk.cyan('Caminho completo:'),
139
+ validate: (input) => input.trim() ? true : chalk.red('Caminho não pode estar vazio.'),
140
+ }]);
141
+ targetDir = resolve(customPath.trim());
142
+ break;
143
+ }
144
+ case 'new':
145
+ default:
146
+ targetDir = resolve(cwd, 'mega-brain');
147
+ break;
136
148
  }
137
- case 'new':
138
- default:
139
- targetDir = resolve(cwd, 'mega-brain');
140
- break;
141
149
  }
142
150
 
143
151
  if (existsSync(join(targetDir, '.claude', 'CLAUDE.md'))) {
package/bin/mega-brain.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * CLI Entry Point
6
6
  *
7
7
  * Usage:
8
- * npx mega-brain-ai install - Install Mega Brain in current/specified directory
8
+ * npx mega-brain-ai install [name] - Install Mega Brain (optional project name)
9
9
  * npx mega-brain-ai validate - Validate MoneyClub email
10
10
  * npx mega-brain-ai push - Push to Layer 1/2/3 remote
11
11
  * npx mega-brain-ai upgrade - Upgrade Community to Premium
@@ -38,7 +38,7 @@ async function main() {
38
38
 
39
39
  if (command === 'install') {
40
40
  const { runInstaller } = await import('./lib/installer.js');
41
- await runInstaller(pkg.version);
41
+ await runInstaller(pkg.version, args[1]);
42
42
  } else if (command === 'validate') {
43
43
  const { validateEmail } = await import('./lib/validate-email.js');
44
44
  const email = args[1];
@@ -73,7 +73,7 @@ function showHelp() {
73
73
  AI Knowledge Management System
74
74
 
75
75
  Comandos:
76
- install Instalar Mega Brain (PREMIUM ou Community)
76
+ install [nome] Instalar Mega Brain (PREMIUM ou Community)
77
77
  validate Validar email MoneyClub (mega-brain validate <email>)
78
78
  push Push para Layer 1/2/3 (mega-brain push [--layer N])
79
79
  upgrade Atualizar Community para Premium
@@ -86,6 +86,7 @@ function showHelp() {
86
86
 
87
87
  Exemplos:
88
88
  npx mega-brain-ai install
89
+ npx mega-brain-ai install meu-projeto
89
90
  npx mega-brain-ai push --layer 1
90
91
  npx mega-brain-ai push
91
92
  `);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mega-brain-ai",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "description": "AI Knowledge Management System - Transform expert materials into actionable playbooks",
5
5
  "type": "module",
6
6
  "bin": {