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.
- package/generator/cursor-integration.js +11 -13
- package/package.json +1 -1
- package/ui/assets/app.js +1 -1
|
@@ -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
|
|
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
|
|
77
|
-
const registryPath = path.join(__dirname, '..', 'registry',
|
|
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:
|
|
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
|
|
114
|
-
|
|
115
|
-
|
|
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
|
|
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
|
|
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 => `-
|
|
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
package/ui/assets/app.js
CHANGED