auroq-os 1.2.4 → 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 +23 -0
  2. package/package.json +1 -1
package/bin/auroq-os.js CHANGED
@@ -274,6 +274,29 @@ async function init() {
274
274
  }
275
275
  }
276
276
 
277
+ // Migrar meta squads de squads/ → agents/ (versoes antigas usavam squads/)
278
+ const legacySquadsDir = path.join(targetDir, 'squads');
279
+ if (await fs.pathExists(legacySquadsDir)) {
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) {
295
+ await fs.remove(legacySquadsDir);
296
+ log(`${DIM} Pasta squads/ vazia removida${RESET}`);
297
+ }
298
+ }
299
+
277
300
  let copied = 0;
278
301
  for (const file of frameworkFiles) {
279
302
  // Pular companion.md generico se ja tem personalizado
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auroq-os",
3
- "version": "1.2.4",
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"