siesa-agents 1.2.0 → 1.4.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/bin/install.js +1 -79
- package/package.json +1 -1
- package/.bmad-core/config.json +0 -11
- package/.github/workflows/ci.yml +0 -19
- package/.vscode/settings.json +0 -11
package/bin/install.js
CHANGED
|
@@ -110,89 +110,11 @@ class SiesaBmadInstaller {
|
|
|
110
110
|
});
|
|
111
111
|
console.log(`✓ ${mapping.target} copiado exitosamente`);
|
|
112
112
|
} else {
|
|
113
|
-
console.
|
|
114
|
-
await this.createDefaultFolder(mapping.source, mapping.target);
|
|
115
|
-
console.log(`✓ ${mapping.target} creado exitosamente`);
|
|
113
|
+
console.warn(`⚠️ Carpeta ${mapping.source} no encontrada en el paquete`);
|
|
116
114
|
}
|
|
117
115
|
}
|
|
118
116
|
}
|
|
119
117
|
|
|
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
118
|
async update() {
|
|
197
119
|
// Crear backup de archivos existentes si es necesario
|
|
198
120
|
for (const mapping of this.folderMappings) {
|
package/package.json
CHANGED
package/.bmad-core/config.json
DELETED
package/.github/workflows/ci.yml
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
name: CI/CD Pipeline
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [ main, develop ]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [ main ]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
test:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
steps:
|
|
13
|
-
- uses: actions/checkout@v3
|
|
14
|
-
- name: Setup Node.js
|
|
15
|
-
uses: actions/setup-node@v3
|
|
16
|
-
with:
|
|
17
|
-
node-version: '18'
|
|
18
|
-
- run: npm install
|
|
19
|
-
- run: npm test
|