siesa-agents 1.0.1 → 1.1.0

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/README.md CHANGED
@@ -1,84 +1,84 @@
1
- # SIESA BMAD Agents
2
-
3
- Paquete para instalar y configurar agentes SIESA BMAD en tu proyecto.
4
-
5
- ## Instalación
6
-
7
- ### Instalación única con npx (Recomendado)
8
-
9
- ```bash
10
- npx siesa-agents
11
- ```
12
-
13
- Este comando instalará automáticamente las carpetas necesarias en tu directorio actual.
14
-
15
- ### Instalación global
16
-
17
- ```bash
18
- npm install -g siesa-bmad-agents
19
- siesa-agents
20
- ```
21
-
22
- ## ¿Qué hace este paquete?
23
-
24
- El paquete instala las siguientes carpetas en tu directorio actual:
25
-
26
- - **`.bmad-core/`** - Archivos principales del sistema BMAD
27
- - **`.vscode/`** - Configuración de Visual Studio Code
28
- - **`.github/`** - Configuración de GitHub Actions y workflows
29
-
30
- ## Características
31
-
32
- ✅ **Instalación automática**: Copia las carpetas necesarias automáticamente
33
- ✅ **Actualización inteligente**: Detecta instalaciones existentes y las actualiza
34
- ✅ **Instalación local**: Se instala en el directorio donde ejecutas el comando
35
- ✅ **Sobrescritura segura**: Reemplaza archivos existentes sin perder configuración
36
-
37
- ## Uso
38
-
39
- 1. Navega al directorio donde quieres instalar los agentes BMAD
40
- 2. Ejecuta `npx siesa-agents`
41
- 3. Las carpetas se instalarán automáticamente
42
-
43
- ### Actualización
44
-
45
- Para actualizar una instalación existente, simplemente ejecuta el comando nuevamente:
46
-
47
- ```bash
48
- npx siesa-agents
49
- ```
50
-
51
- El sistema detectará automáticamente que ya existe una instalación y la actualizará.
52
-
53
- ## Requisitos
54
-
55
- - Node.js >= 14.0.0
56
- - npm >= 6.0.0
57
-
58
- ## Estructura de archivos instalados
59
-
60
- ```
61
- tu-proyecto/
62
- ├── .bmad-core/
63
- │ └── [archivos del sistema BMAD]
64
- ├── .vscode/
65
- │ └── [configuración de VS Code]
66
- └── .github/
67
- └── [workflows y configuración de GitHub]
68
- ```
69
-
70
- ## Soporte
71
-
72
- Si encuentras algún problema durante la instalación, por favor verifica:
73
-
74
- 1. Que tienes permisos de escritura en el directorio
75
- 2. Que Node.js está instalado correctamente
76
- 3. Que tienes acceso a npm
77
-
78
- ## Licencia
79
-
80
- MIT
81
-
82
- ## Autor
83
-
1
+ # SIESA BMAD Agents
2
+
3
+ Paquete para instalar y configurar agentes SIESA BMAD en tu proyecto.
4
+
5
+ ## Instalación
6
+
7
+ ### Instalación única con npx (Recomendado)
8
+
9
+ ```bash
10
+ npx siesa-agents
11
+ ```
12
+
13
+ Este comando instalará automáticamente las carpetas necesarias en tu directorio actual.
14
+
15
+ ### Instalación global
16
+
17
+ ```bash
18
+ npm install -g siesa-bmad-agents
19
+ siesa-agents
20
+ ```
21
+
22
+ ## ¿Qué hace este paquete?
23
+
24
+ El paquete instala las siguientes carpetas en tu directorio actual:
25
+
26
+ - **`.bmad-core/`** - Archivos principales del sistema BMAD
27
+ - **`.vscode/`** - Configuración de Visual Studio Code
28
+ - **`.github/`** - Configuración de GitHub Actions y workflows
29
+
30
+ ## Características
31
+
32
+ ✅ **Instalación automática**: Copia las carpetas necesarias automáticamente
33
+ ✅ **Actualización inteligente**: Detecta instalaciones existentes y las actualiza
34
+ ✅ **Instalación local**: Se instala en el directorio donde ejecutas el comando
35
+ ✅ **Sobrescritura segura**: Reemplaza archivos existentes sin perder configuración
36
+
37
+ ## Uso
38
+
39
+ 1. Navega al directorio donde quieres instalar los agentes BMAD
40
+ 2. Ejecuta `npx siesa-agents`
41
+ 3. Las carpetas se instalarán automáticamente
42
+
43
+ ### Actualización
44
+
45
+ Para actualizar una instalación existente, simplemente ejecuta el comando nuevamente:
46
+
47
+ ```bash
48
+ npx siesa-agents
49
+ ```
50
+
51
+ El sistema detectará automáticamente que ya existe una instalación y la actualizará.
52
+
53
+ ## Requisitos
54
+
55
+ - Node.js >= 14.0.0
56
+ - npm >= 6.0.0
57
+
58
+ ## Estructura de archivos instalados
59
+
60
+ ```
61
+ tu-proyecto/
62
+ ├── .bmad-core/
63
+ │ └── [archivos del sistema BMAD]
64
+ ├── .vscode/
65
+ │ └── [configuración de VS Code]
66
+ └── .github/
67
+ └── [workflows y configuración de GitHub]
68
+ ```
69
+
70
+ ## Soporte
71
+
72
+ Si encuentras algún problema durante la instalación, por favor verifica:
73
+
74
+ 1. Que tienes permisos de escritura en el directorio
75
+ 2. Que Node.js está instalado correctamente
76
+ 3. Que tienes acceso a npm
77
+
78
+ ## Licencia
79
+
80
+ MIT
81
+
82
+ ## Autor
83
+
84
84
  SIESA - Sistemas de Información Empresarial
package/bin/install.js CHANGED
@@ -1,155 +1,233 @@
1
1
  #!/usr/bin/env node
2
-
3
- const fs = require('fs-extra');
4
- const path = require('path');
5
-
6
- class SiesaBmadInstaller {
7
- constructor() {
8
- // Definir las carpetas primero (nombres en el paquete vs nombres finales)
9
- this.folderMappings = [
10
- { source: 'bmad-core', target: '.bmad-core' },
11
- { source: 'vscode', target: '.vscode' },
12
- { source: 'github', target: '.github' }
13
- ];
14
- this.targetDir = process.cwd();
15
- // Intentar múltiples ubicaciones posibles para el paquete
16
- this.packageDir = this.findPackageDir();
17
- }
18
-
19
- findPackageDir() {
20
- // Opción 1: directorio padre del bin (instalación normal)
21
- let packageDir = path.dirname(__dirname);
22
-
23
- // Opción 2: si estamos en npx, buscar en node_modules
24
- if (!this.hasRequiredFolders(packageDir)) {
25
- // Para npm 6.14+ y npx, intentar ubicaciones alternativas
26
- const possiblePaths = [
27
- path.join(__dirname, '..'), // bin -> paquete
28
- path.resolve(__dirname, '..'), // alternativa con resolve
29
- path.resolve(__dirname, '..', '..', 'siesa-bmad-agents'), // desde node_modules
30
- // Intentar buscar basado en __dirname específicamente para npx
31
- path.resolve(__dirname.replace(/\\bin$|\/bin$/, '')),
32
- process.cwd(), // directorio actual como último recurso
33
- ];
34
-
35
- console.log('🔍 Buscando paquete en ubicaciones alternativas...');
36
- for (const possiblePath of possiblePaths) {
37
- console.log(` Probando: ${possiblePath}`);
38
- if (this.hasRequiredFolders(possiblePath)) {
39
- console.log(` ✅ Encontrado en: ${possiblePath}`);
40
- packageDir = possiblePath;
41
- break;
42
- }
43
- }
44
- }
45
-
46
- console.log(`🎯 Directorio del paquete seleccionado: ${packageDir}`);
47
- return packageDir;
48
- }
49
-
50
- hasRequiredFolders(dir) {
51
- return this.folderMappings.some(mapping => {
52
- const folderPath = path.join(dir, mapping.source);
53
- return fs.existsSync(folderPath);
54
- });
55
- }
56
-
57
- async install() {
58
- console.log('🔍 Directorio del paquete:', this.packageDir);
59
- console.log('🚀 Instalando SIESA BMAD Agents...');
60
- console.log(`📁 Directorio de destino: ${this.targetDir}`);
61
-
62
- try {
63
- // Verificar si ya existe una instalación
64
- const hasExistingInstallation = this.checkExistingInstallation();
65
-
66
- if (hasExistingInstallation) {
67
- console.log('🔄 Instalación existente detectada. Actualizando...');
68
- await this.update();
69
- } else {
70
- console.log('✨ Nueva instalación...');
71
- await this.performInstallation();
72
- }
73
-
74
- console.log('✅ SIESA BMAD Agents instalado correctamente!');
75
- this.showPostInstallMessage();
76
-
77
- } catch (error) {
78
- console.error('❌ Error durante la instalación:', error.message);
79
- process.exit(1);
80
- }
81
- }
82
-
83
- checkExistingInstallation() {
84
- return this.folderMappings.some(mapping => {
85
- const targetPath = path.join(this.targetDir, mapping.target);
86
- return fs.existsSync(targetPath);
87
- });
88
- }
89
-
90
- async performInstallation() {
91
- // Debug: listar contenido del directorio del paquete
92
- console.log('🔍 Contenido del directorio del paquete:');
93
- try {
94
- const packageContents = await fs.readdir(this.packageDir);
95
- console.log('📋 Archivos/carpetas encontrados:', packageContents);
96
- } catch (error) {
97
- console.log('❌ Error leyendo directorio del paquete:', error.message);
98
- }
99
-
100
- for (const mapping of this.folderMappings) {
101
- const sourcePath = path.join(this.packageDir, mapping.source);
102
- const targetPath = path.join(this.targetDir, mapping.target);
103
-
104
- console.log(`🔍 Buscando: ${sourcePath}`);
105
- if (fs.existsSync(sourcePath)) {
106
- console.log(`📋 Copiando ${mapping.source} -> ${mapping.target}...`);
107
- await fs.copy(sourcePath, targetPath, {
108
- overwrite: true,
109
- recursive: true
110
- });
111
- console.log(`✓ ${mapping.target} copiado exitosamente`);
112
- } else {
113
- console.warn(`⚠️ Carpeta ${mapping.source} no encontrada en el paquete`);
114
- }
115
- }
116
- }
117
-
118
- async update() {
119
- // Crear backup de archivos existentes si es necesario
120
- for (const mapping of this.folderMappings) {
121
- const targetPath = path.join(this.targetDir, mapping.target);
122
-
123
- if (fs.existsSync(targetPath)) {
124
- console.log(`🔄 Actualizando ${mapping.target}...`);
125
- // Remover carpeta existente
126
- await fs.remove(targetPath);
127
- }
128
- }
129
-
130
- // Realizar instalación nueva
131
- await this.performInstallation();
132
- }
133
-
134
- showPostInstallMessage() {
135
- console.log('\n📚 Carpetas instaladas:');
136
- this.folderMappings.forEach(mapping => {
137
- const targetPath = path.join(this.targetDir, mapping.target);
138
- if (fs.existsSync(targetPath)) {
139
- console.log(` ✓ ${mapping.target}`);
140
- }
141
- });
142
-
143
- console.log('\n🎉 ¡Instalación completada!');
144
- console.log('💡 Las carpetas han sido instaladas en tu directorio actual.');
145
- console.log('🔧 Puedes ejecutar "npx siesa-agents" nuevamente para actualizar.');
146
- }
147
- }
148
-
149
- // Ejecutar instalación si el script es llamado directamente
150
- if (require.main === module) {
151
- const installer = new SiesaBmadInstaller();
152
- installer.install();
153
- }
154
-
2
+
3
+ const fs = require('fs-extra');
4
+ const path = require('path');
5
+
6
+ class SiesaBmadInstaller {
7
+ constructor() {
8
+ // Definir las carpetas primero (nombres en el paquete vs nombres finales)
9
+ this.folderMappings = [
10
+ { source: '.bmad-core', target: '.bmad-core' },
11
+ { source: '.vscode', target: '.vscode' },
12
+ { source: '.github', target: '.github' }
13
+ ];
14
+ this.targetDir = process.cwd();
15
+ // Intentar múltiples ubicaciones posibles para el paquete
16
+ this.packageDir = this.findPackageDir();
17
+ }
18
+
19
+ findPackageDir() {
20
+ // Opción 1: directorio padre del bin (instalación normal)
21
+ let packageDir = path.dirname(__dirname);
22
+
23
+ // Opción 2: si estamos en npx, buscar en node_modules
24
+ if (!this.hasRequiredFolders(packageDir)) {
25
+ // Para npm 6.14+ y npx, intentar ubicaciones alternativas
26
+ const possiblePaths = [
27
+ path.join(__dirname, '..'), // bin -> paquete
28
+ path.resolve(__dirname, '..'), // alternativa con resolve
29
+ path.resolve(__dirname, '..', '..', 'siesa-bmad-agents'), // desde node_modules
30
+ // Intentar buscar basado en __dirname específicamente para npx
31
+ path.resolve(__dirname.replace(/\\bin$|\/bin$/, '')),
32
+ process.cwd(), // directorio actual como último recurso
33
+ ];
34
+
35
+ console.log('🔍 Buscando paquete en ubicaciones alternativas...');
36
+ for (const possiblePath of possiblePaths) {
37
+ console.log(` Probando: ${possiblePath}`);
38
+ if (this.hasRequiredFolders(possiblePath)) {
39
+ console.log(` ✅ Encontrado en: ${possiblePath}`);
40
+ packageDir = possiblePath;
41
+ break;
42
+ }
43
+ }
44
+ }
45
+
46
+ console.log(`🎯 Directorio del paquete seleccionado: ${packageDir}`);
47
+ return packageDir;
48
+ }
49
+
50
+ hasRequiredFolders(dir) {
51
+ return this.folderMappings.some(mapping => {
52
+ const folderPath = path.join(dir, mapping.source);
53
+ return fs.existsSync(folderPath);
54
+ });
55
+ }
56
+
57
+ async install() {
58
+ console.log('🔍 Directorio del paquete:', this.packageDir);
59
+ console.log('🚀 Instalando SIESA BMAD Agents...');
60
+ console.log(`📁 Directorio de destino: ${this.targetDir}`);
61
+
62
+ try {
63
+ // Verificar si ya existe una instalación
64
+ const hasExistingInstallation = this.checkExistingInstallation();
65
+
66
+ if (hasExistingInstallation) {
67
+ console.log('🔄 Instalación existente detectada. Actualizando...');
68
+ await this.update();
69
+ } else {
70
+ console.log('✨ Nueva instalación...');
71
+ await this.performInstallation();
72
+ }
73
+
74
+ console.log('✅ SIESA BMAD Agents instalado correctamente!');
75
+ this.showPostInstallMessage();
76
+
77
+ } catch (error) {
78
+ console.error('❌ Error durante la instalación:', error.message);
79
+ process.exit(1);
80
+ }
81
+ }
82
+
83
+ checkExistingInstallation() {
84
+ return this.folderMappings.some(mapping => {
85
+ const targetPath = path.join(this.targetDir, mapping.target);
86
+ return fs.existsSync(targetPath);
87
+ });
88
+ }
89
+
90
+ async performInstallation() {
91
+ // Debug: listar contenido del directorio del paquete
92
+ console.log('🔍 Contenido del directorio del paquete:');
93
+ try {
94
+ const packageContents = await fs.readdir(this.packageDir);
95
+ console.log('📋 Archivos/carpetas encontrados:', packageContents);
96
+ } catch (error) {
97
+ console.log('❌ Error leyendo directorio del paquete:', error.message);
98
+ }
99
+
100
+ for (const mapping of this.folderMappings) {
101
+ const sourcePath = path.join(this.packageDir, mapping.source);
102
+ const targetPath = path.join(this.targetDir, mapping.target);
103
+
104
+ console.log(`🔍 Buscando: ${sourcePath}`);
105
+ if (fs.existsSync(sourcePath)) {
106
+ console.log(`📋 Copiando ${mapping.source} -> ${mapping.target}...`);
107
+ await fs.copy(sourcePath, targetPath, {
108
+ overwrite: true,
109
+ recursive: true
110
+ });
111
+ console.log(`✓ ${mapping.target} copiado exitosamente`);
112
+ } else {
113
+ console.log(`📁 Creando carpeta ${mapping.source} con contenido por defecto...`);
114
+ await this.createDefaultFolder(mapping.source, mapping.target);
115
+ console.log(`✓ ${mapping.target} creado exitosamente`);
116
+ }
117
+ }
118
+ }
119
+
120
+ async createDefaultFolder(sourceFolder, targetFolder) {
121
+ const targetPath = path.join(this.targetDir, targetFolder);
122
+
123
+ // Crear directamente en el destino
124
+ await fs.ensureDir(targetPath);
125
+
126
+ // Crear contenido por defecto según la carpeta
127
+ if (sourceFolder === '.bmad-core') {
128
+ await this.createBmadCoreDefaults(targetPath);
129
+ } else if (sourceFolder === '.vscode') {
130
+ await this.createVscodeDefaults(targetPath);
131
+ } else if (sourceFolder === '.github') {
132
+ await this.createGithubDefaults(targetPath);
133
+ }
134
+ }
135
+
136
+ async createBmadCoreDefaults(folderPath) {
137
+ const configContent = {
138
+ "version": "1.0.0",
139
+ "agents": {
140
+ "enabled": true,
141
+ "autoStart": false
142
+ },
143
+ "siesa": {
144
+ "environment": "development",
145
+ "apiUrl": "https://api.siesa.com"
146
+ }
147
+ };
148
+
149
+ await fs.writeJson(path.join(folderPath, 'config.json'), configContent, { spaces: 2 });
150
+ }
151
+
152
+ async createVscodeDefaults(folderPath) {
153
+ const settingsContent = {
154
+ "editor.formatOnSave": true,
155
+ "editor.codeActionsOnSave": {
156
+ "source.fixAll": true
157
+ },
158
+ "files.exclude": {
159
+ "**/node_modules": true,
160
+ "**/.git": true
161
+ },
162
+ "siesa.bmad.enabled": true
163
+ };
164
+
165
+ await fs.writeJson(path.join(folderPath, 'settings.json'), settingsContent, { spaces: 2 });
166
+ }
167
+
168
+ async createGithubDefaults(folderPath) {
169
+ const workflowsPath = path.join(folderPath, 'workflows');
170
+ await fs.ensureDir(workflowsPath);
171
+
172
+ const ciContent = `name: CI/CD Pipeline
173
+
174
+ on:
175
+ push:
176
+ branches: [ main, develop ]
177
+ pull_request:
178
+ branches: [ main ]
179
+
180
+ jobs:
181
+ test:
182
+ runs-on: ubuntu-latest
183
+ steps:
184
+ - uses: actions/checkout@v3
185
+ - name: Setup Node.js
186
+ uses: actions/setup-node@v3
187
+ with:
188
+ node-version: '18'
189
+ - run: npm install
190
+ - run: npm test
191
+ `;
192
+
193
+ await fs.writeFile(path.join(workflowsPath, 'ci.yml'), ciContent);
194
+ }
195
+
196
+ async update() {
197
+ // Crear backup de archivos existentes si es necesario
198
+ for (const mapping of this.folderMappings) {
199
+ const targetPath = path.join(this.targetDir, mapping.target);
200
+
201
+ if (fs.existsSync(targetPath)) {
202
+ console.log(`🔄 Actualizando ${mapping.target}...`);
203
+ // Remover carpeta existente
204
+ await fs.remove(targetPath);
205
+ }
206
+ }
207
+
208
+ // Realizar instalación nueva
209
+ await this.performInstallation();
210
+ }
211
+
212
+ showPostInstallMessage() {
213
+ console.log('\n📚 Carpetas instaladas:');
214
+ this.folderMappings.forEach(mapping => {
215
+ const targetPath = path.join(this.targetDir, mapping.target);
216
+ if (fs.existsSync(targetPath)) {
217
+ console.log(` ✓ ${mapping.target}`);
218
+ }
219
+ });
220
+
221
+ console.log('\n🎉 ¡Instalación completada!');
222
+ console.log('💡 Las carpetas han sido instaladas en tu directorio actual.');
223
+ console.log('🔧 Puedes ejecutar "npx siesa-agents" nuevamente para actualizar.');
224
+ }
225
+ }
226
+
227
+ // Ejecutar instalación si el script es llamado directamente
228
+ if (require.main === module) {
229
+ const installer = new SiesaBmadInstaller();
230
+ installer.install();
231
+ }
232
+
155
233
  module.exports = SiesaBmadInstaller;
@@ -1,27 +1,27 @@
1
- #!/usr/bin/env node
2
-
3
- const fs = require('fs-extra');
4
- const path = require('path');
5
-
6
- const rootDir = path.dirname(__dirname);
7
-
8
- // Renombrar carpetas que empiezan con punto para que npm las incluya
9
- const folderMappings = [
10
- { from: '.bmad-core', to: 'bmad-core' },
11
- { from: '.vscode', to: 'vscode' },
12
- { from: '.github', to: 'github' }
13
- ];
14
-
15
- console.log('📦 Preparando carpetas para publicación (siesa-agents)...');
16
-
17
- for (const mapping of folderMappings) {
18
- const fromPath = path.join(rootDir, mapping.from);
19
- const toPath = path.join(rootDir, mapping.to);
20
-
21
- if (fs.existsSync(fromPath)) {
22
- console.log(`📁 Renombrando ${mapping.from} -> ${mapping.to}`);
23
- fs.moveSync(fromPath, toPath);
24
- }
25
- }
26
-
1
+ #!/usr/bin/env node
2
+
3
+ const fs = require('fs-extra');
4
+ const path = require('path');
5
+
6
+ const rootDir = path.dirname(__dirname);
7
+
8
+ // Renombrar carpetas que empiezan con punto para que npm las incluya
9
+ const folderMappings = [
10
+ { from: '.bmad-core', to: 'bmad-core' },
11
+ { from: '.vscode', to: 'vscode' },
12
+ { from: '.github', to: 'github' }
13
+ ];
14
+
15
+ console.log('📦 Preparando carpetas para publicación (siesa-agents)...');
16
+
17
+ for (const mapping of folderMappings) {
18
+ const fromPath = path.join(rootDir, mapping.from);
19
+ const toPath = path.join(rootDir, mapping.to);
20
+
21
+ if (fs.existsSync(fromPath)) {
22
+ console.log(`📁 Renombrando ${mapping.from} -> ${mapping.to}`);
23
+ fs.moveSync(fromPath, toPath);
24
+ }
25
+ }
26
+
27
27
  console.log('✅ Carpetas preparadas para publicación');
@@ -1,27 +1,27 @@
1
- #!/usr/bin/env node
2
-
3
- const fs = require('fs-extra');
4
- const path = require('path');
5
-
6
- const rootDir = path.dirname(__dirname);
7
-
8
- // Restaurar nombres originales de las carpetas
9
- const folderMappings = [
10
- { from: 'bmad-core', to: '.bmad-core' },
11
- { from: 'vscode', to: '.vscode' },
12
- { from: 'github', to: '.github' }
13
- ];
14
-
15
- console.log('🔄 Restaurando nombres originales de carpetas...');
16
-
17
- for (const mapping of folderMappings) {
18
- const fromPath = path.join(rootDir, mapping.from);
19
- const toPath = path.join(rootDir, mapping.to);
20
-
21
- if (fs.existsSync(fromPath)) {
22
- console.log(`📁 Restaurando ${mapping.from} -> ${mapping.to}`);
23
- fs.moveSync(fromPath, toPath);
24
- }
25
- }
26
-
1
+ #!/usr/bin/env node
2
+
3
+ const fs = require('fs-extra');
4
+ const path = require('path');
5
+
6
+ const rootDir = path.dirname(__dirname);
7
+
8
+ // Restaurar nombres originales de las carpetas
9
+ const folderMappings = [
10
+ { from: 'bmad-core', to: '.bmad-core' },
11
+ { from: 'vscode', to: '.vscode' },
12
+ { from: 'github', to: '.github' }
13
+ ];
14
+
15
+ console.log('🔄 Restaurando nombres originales de carpetas...');
16
+
17
+ for (const mapping of folderMappings) {
18
+ const fromPath = path.join(rootDir, mapping.from);
19
+ const toPath = path.join(rootDir, mapping.to);
20
+
21
+ if (fs.existsSync(fromPath)) {
22
+ console.log(`📁 Restaurando ${mapping.from} -> ${mapping.to}`);
23
+ fs.moveSync(fromPath, toPath);
24
+ }
25
+ }
26
+
27
27
  console.log('✅ Carpetas restauradas');
package/index.js CHANGED
@@ -1,10 +1,10 @@
1
- #!/usr/bin/env node
2
-
3
- const SiesaBmadInstaller = require('./bin/install.js');
4
-
5
- if (require.main === module) {
6
- const installer = new SiesaBmadInstaller();
7
- installer.install();
8
- }
9
-
1
+ #!/usr/bin/env node
2
+
3
+ const SiesaBmadInstaller = require('./bin/install.js');
4
+
5
+ if (require.main === module) {
6
+ const installer = new SiesaBmadInstaller();
7
+ installer.install();
8
+ }
9
+
10
10
  module.exports = SiesaBmadInstaller;
package/package.json CHANGED
@@ -1,38 +1,38 @@
1
- {
2
- "name": "siesa-agents",
3
- "version": "1.0.1",
4
- "description": "Paquete para instalar y configurar agentes SIESA BMAD en tu proyecto",
5
- "main": "index.js",
6
- "bin": {
7
- "siesa-agents": "./bin/install.js"
8
- },
9
- "scripts": {
10
- "postinstall": "node ./bin/install.js",
11
- "prepublishOnly": "node ./bin/prepare-publish.js",
12
- "postpublish": "node ./bin/restore-folders.js",
13
- "build": "echo 'Build complete'"
14
- },
15
- "keywords": [
16
- "siesa",
17
- "bmad",
18
- "agents",
19
- "automation",
20
- "cli"
21
- ],
22
- "author": "Sistemas de Información Empresarial",
23
- "license": "MIT",
24
- "files": [
25
- "bmad-core/**/*",
26
- "vscode/**/*",
27
- "github/**/*",
28
- "bin/**/*",
29
- "README.md"
30
- ],
31
- "engines": {
32
- "node": ">=14.0.0"
33
- },
34
- "dependencies": {
35
- "fs-extra": "^11.1.1",
36
- "path": "^0.12.7"
37
- }
38
- }
1
+ {
2
+ "name": "siesa-agents",
3
+ "version": "1.1.0",
4
+ "description": "Paquete para instalar y configurar agentes SIESA BMAD en tu proyecto",
5
+ "main": "index.js",
6
+ "bin": {
7
+ "siesa-agents": "./bin/install.js"
8
+ },
9
+ "scripts": {
10
+ "postinstall": "node ./bin/install.js",
11
+ "prepublishOnly": "node ./bin/prepare-publish.js",
12
+ "postpublish": "node ./bin/restore-folders.js",
13
+ "build": "echo 'Build complete'"
14
+ },
15
+ "keywords": [
16
+ "siesa",
17
+ "bmad",
18
+ "agents",
19
+ "automation",
20
+ "cli"
21
+ ],
22
+ "author": "Sistemas de Información Empresarial",
23
+ "license": "MIT",
24
+ "files": [
25
+ ".bmad-core/**/*",
26
+ ".vscode/**/*",
27
+ ".github/**/*",
28
+ "bin/**/*",
29
+ "README.md"
30
+ ],
31
+ "engines": {
32
+ "node": ">=14.0.0"
33
+ },
34
+ "dependencies": {
35
+ "fs-extra": "^11.1.1",
36
+ "path": "^0.12.7"
37
+ }
38
+ }