auroq-os 1.2.1 → 1.2.2

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 -0
  2. package/package.json +1 -1
package/bin/auroq-os.js CHANGED
@@ -245,8 +245,25 @@ async function init() {
245
245
  'business/cockpit.md',
246
246
  ];
247
247
 
248
+ // Detectar se ja existe companion personalizado (ex: taquion-companion.md)
249
+ // Se existir, NAO copiar companion.md generico pra nao duplicar
250
+ const commandsDir = path.join(targetDir, '.claude', 'commands');
251
+ let hasCustomCompanion = false;
252
+ if (await fs.pathExists(commandsDir)) {
253
+ const cmdFiles = await fs.readdir(commandsDir);
254
+ hasCustomCompanion = cmdFiles.some(f => f.endsWith('-companion.md') && f !== 'companion.md');
255
+ if (hasCustomCompanion) {
256
+ const customName = cmdFiles.find(f => f.endsWith('-companion.md') && f !== 'companion.md');
257
+ log(`${DIM} Companion personalizado detectado: ${customName} — pulando companion.md generico${RESET}`);
258
+ }
259
+ }
260
+
248
261
  let copied = 0;
249
262
  for (const file of frameworkFiles) {
263
+ // Pular companion.md generico se ja tem personalizado
264
+ if (file === '.claude/commands/companion.md' && hasCustomCompanion) {
265
+ continue;
266
+ }
250
267
  const src = path.join(sourceDir, file);
251
268
  const dst = path.join(targetDir, file);
252
269
  if (await fs.pathExists(src)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auroq-os",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Auroq OS — Sistema Operacional de IA para Experts",
5
5
  "bin": {
6
6
  "auroq-os": "bin/auroq-os.js"