auroq-os 1.2.5 → 1.2.6

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/auroq-os.js +17 -4
  2. package/package.json +1 -1
package/bin/auroq-os.js CHANGED
@@ -274,13 +274,26 @@ async function init() {
274
274
  }
275
275
  }
276
276
 
277
- // Migrar squads/ → agents/ (versoes antigas usavam squads/)
277
+ // Migrar meta squads de squads/ → agents/ (versoes antigas usavam squads/)
278
278
  const legacySquadsDir = path.join(targetDir, 'squads');
279
279
  if (await fs.pathExists(legacySquadsDir)) {
280
- const legacySquads = await fs.readdir(legacySquadsDir);
281
- if (legacySquads.length > 0) {
282
- log(`${DIM} Pasta squads/ antiga detectada com ${legacySquads.length} itens — removendo (agora tudo fica em agents/)${RESET}`);
280
+ const metaSquadNames = ['squad-forge', 'mind-forge', 'worker-forge', 'clone-forge', 'etlmaker', 'organizer', 'companion'];
281
+ let migrated = 0;
282
+ for (const name of metaSquadNames) {
283
+ const oldPath = path.join(legacySquadsDir, name);
284
+ if (await fs.pathExists(oldPath)) {
285
+ await fs.remove(oldPath);
286
+ migrated++;
287
+ }
288
+ }
289
+ if (migrated > 0) {
290
+ log(`${DIM} Removidos ${migrated} meta squads antigos de squads/ (agora ficam em agents/)${RESET}`);
291
+ }
292
+ // Se squads/ ficou vazia, remover a pasta
293
+ const remaining = await fs.readdir(legacySquadsDir);
294
+ if (remaining.length === 0) {
283
295
  await fs.remove(legacySquadsDir);
296
+ log(`${DIM} Pasta squads/ vazia removida${RESET}`);
284
297
  }
285
298
  }
286
299
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auroq-os",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "Auroq OS — Sistema Operacional de IA para Experts",
5
5
  "bin": {
6
6
  "auroq-os": "bin/auroq-os.js"