nex-app 0.2.5 → 0.2.7

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.
@@ -71,10 +71,10 @@ export async function integrateCursor(projectPath, agents) {
71
71
  const cursorRulesDir = path.join(projectPath, '.cursor', 'rules', 'nex')
72
72
  await fs.ensureDir(cursorRulesDir)
73
73
 
74
- // 3. Criar arquivos .mdc para cada agente (NOVO!)
74
+ // 3. Criar arquivos .mdc para cada agente
75
75
  const agentPromises = agents.map(async (agentId) => {
76
- // Buscar no registry local do create-nex-app (agora incluído no pacote)
77
- const registryPath = path.join(__dirname, '..', 'registry', 'bmad', agentId, 'README.md')
76
+ // Buscar no registry local do create-nex-app
77
+ const registryPath = path.join(__dirname, '..', 'registry', agentId, 'README.md')
78
78
 
79
79
  let agentContent = `---
80
80
  description: NEX Agent - ${agentId}
@@ -88,7 +88,7 @@ Expert agent from NEX Framework.
88
88
 
89
89
  ## How to Use
90
90
 
91
- Reference this agent using: \`@nex/bmad/agents/${agentId}\`
91
+ Reference this agent using: \`@${agentId}\`
92
92
 
93
93
  ## Installation
94
94
 
@@ -108,17 +108,15 @@ ${readme}`
108
108
  console.log(` 📄 README encontrado para ${agentId}`)
109
109
  } else {
110
110
  console.log(` ⚠️ README não encontrado para ${agentId}, usando conteúdo genérico`)
111
+ console.log(` Path tentado: ${registryPath}`)
111
112
  }
112
113
 
113
- // Criar diretório para o agente
114
- const agentDir = path.join(cursorRulesDir, 'bmad', 'agents')
115
- await fs.ensureDir(agentDir)
116
-
117
- // Criar arquivo .mdc do agente
118
- const agentPath = path.join(agentDir, `${agentId}.mdc`)
114
+ // Criar arquivo .mdc DIRETO na raiz (como BMAD faz)
115
+ // Isso permite usar @vex ao invés de @nex/bmad/agents/vex
116
+ const agentPath = path.join(cursorRulesDir, `${agentId}.mdc`)
119
117
  await fs.writeFile(agentPath, agentContent, 'utf8')
120
118
 
121
- console.log(` ✅ Criado: .cursor/rules/nex/bmad/agents/${agentId}.mdc`)
119
+ console.log(` ✅ Criado: .cursor/rules/nex/${agentId}.mdc`)
122
120
  })
123
121
 
124
122
  await Promise.all(agentPromises)
@@ -142,13 +140,13 @@ NEX rules have been installed to: \`.cursor/rules/nex/\`
142
140
 
143
141
  ## How to Use
144
142
 
145
- - Reference specific agents: @nex/bmad/agents/{agent-name}
143
+ - Reference agents directly: @{agent-name} (ex: @vex, @ada, @rex)
146
144
  - Reference this index: @nex/index
147
145
 
148
146
  ## Installed Agents
149
147
 
150
148
  ${agents.length > 0
151
- ? agents.map(agentId => `- @nex/bmad/agents/${agentId} - ${agentId}`).join('\n')
149
+ ? agents.map(agentId => `- @${agentId} - ${agentId}`).join('\n')
152
150
  : 'No agents installed yet. Use: nex agent install <agent-id>'
153
151
  }
154
152
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nex-app",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "Create NEX projects with interactive installer (CLI + Web UI)",
5
5
  "type": "module",
6
6
  "main": "cli/create.js",
package/ui/assets/app.js CHANGED
@@ -180,7 +180,7 @@ nex agent list --all
180
180
  nex agent install <agent-id>
181
181
 
182
182
  # Usar no Cursor:
183
- @nex/bmad/agents/<agent-id>`
183
+ @<agent-id>`
184
184
 
185
185
  // Adicionar evento ao botão de fechar
186
186
  document.getElementById('close-btn').addEventListener('click', () => {