nex-framework-cli 1.0.1
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/LICENSE +51 -0
- package/README.md +484 -0
- package/cli/nex-cli.js +321 -0
- package/package.json +56 -0
- package/registry/.meta/registry.yaml +72 -0
- package/registry/README.md +181 -0
- package/registry/bmad/README.md +433 -0
- package/registry/bmad/ada/manifest.yaml +205 -0
- package/registry/bmad/rex/manifest.yaml +242 -0
- package/registry/bmad/vex/README.md +500 -0
- package/registry/bmad/vex/manifest.yaml +242 -0
- package/registry/planning/anx/CHANGELOG.md +63 -0
- package/registry/planning/anx/README.md +224 -0
- package/registry/planning/anx/manifest.yaml +172 -0
- package/registry/planning/arx/manifest.yaml +98 -0
- package/registry/planning/pmx/manifest.yaml +96 -0
- package/src/services/nex-installer/agentLoader.js +108 -0
- package/src/services/nex-installer/agentValidator.js +93 -0
- package/src/services/nex-installer/dependencyResolver.js +59 -0
- package/src/services/nex-installer/installer.js +226 -0
- package/src/services/nex-installer/registry.js +75 -0
- package/src/services/nex-marketplace/NEXMarketplace.js +964 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
PROPRIETARY LICENSE - INOSX
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 INOSX (https://inosx.com)
|
|
4
|
+
All Rights Reserved
|
|
5
|
+
|
|
6
|
+
NOTICE: All information contained herein is, and remains the property of INOSX
|
|
7
|
+
and its suppliers, if any. The intellectual and technical concepts contained
|
|
8
|
+
herein are proprietary to INOSX and its suppliers and may be covered by patents,
|
|
9
|
+
patents in process, and are protected by trade secret or copyright law.
|
|
10
|
+
|
|
11
|
+
Dissemination of this information or reproduction of this material is strictly
|
|
12
|
+
forbidden unless prior written permission is obtained from INOSX.
|
|
13
|
+
|
|
14
|
+
TERMS AND CONDITIONS:
|
|
15
|
+
|
|
16
|
+
1. PROPRIETARY RIGHTS
|
|
17
|
+
This software and associated documentation files (the "Software") are the
|
|
18
|
+
proprietary and confidential information of INOSX. The Software is protected
|
|
19
|
+
by copyright laws and international copyright treaties, as well as other
|
|
20
|
+
intellectual property laws and treaties.
|
|
21
|
+
|
|
22
|
+
2. RESTRICTIONS
|
|
23
|
+
You may NOT:
|
|
24
|
+
- Copy, modify, adapt, alter, translate, or create derivative works of the Software
|
|
25
|
+
- Reverse engineer, disassemble, decompile, or otherwise attempt to derive the
|
|
26
|
+
source code of the Software
|
|
27
|
+
- Remove, alter, or obscure any proprietary notices, labels, or marks on the Software
|
|
28
|
+
- Use the Software for any commercial purpose without explicit written permission
|
|
29
|
+
- Distribute, sublicense, rent, lease, or lend the Software to any third party
|
|
30
|
+
- Use the Software in any way that violates any applicable law or regulation
|
|
31
|
+
|
|
32
|
+
3. NO WARRANTY
|
|
33
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
34
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
35
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL INOSX
|
|
36
|
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
|
37
|
+
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
38
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
39
|
+
|
|
40
|
+
4. TERMINATION
|
|
41
|
+
This license is effective until terminated. Your rights under this license will
|
|
42
|
+
terminate automatically without notice from INOSX if you fail to comply with any
|
|
43
|
+
term(s) of this license.
|
|
44
|
+
|
|
45
|
+
5. CONTACT
|
|
46
|
+
For licensing inquiries, please contact:
|
|
47
|
+
Website: https://inosx.com
|
|
48
|
+
Email: [contact information]
|
|
49
|
+
|
|
50
|
+
INOSX reserves all rights not expressly granted to you in this license.
|
|
51
|
+
|
package/README.md
ADDED
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
# 🚀 NEX Framework
|
|
2
|
+
|
|
3
|
+
> Framework completo de Agentes AI para desenvolvimento de software inteligente
|
|
4
|
+
|
|
5
|
+
[](https://inosx.com)
|
|
6
|
+
[](https://nodejs.org/)
|
|
7
|
+
[](https://www.javascript.com/)
|
|
8
|
+
|
|
9
|
+
NEX é um framework avançado de agentes AI que permite criar, gerenciar e orquestrar múltiplos agentes especializados para desenvolvimento de software, planejamento de projetos, análise de requisitos e muito mais.
|
|
10
|
+
|
|
11
|
+
## 📋 Índice
|
|
12
|
+
|
|
13
|
+
- [Características](#-características)
|
|
14
|
+
- [Instalação](#-instalação)
|
|
15
|
+
- [Início Rápido](#-início-rápido)
|
|
16
|
+
- [Arquitetura](#-arquitetura)
|
|
17
|
+
- [Documentação](#-documentação)
|
|
18
|
+
- [Estrutura do Projeto](#-estrutura-do-projeto)
|
|
19
|
+
- [Agentes](#-agentes)
|
|
20
|
+
- [CLI](#-cli)
|
|
21
|
+
- [NEX Store](#-nex-store)
|
|
22
|
+
- [Contribuindo](#-contribuindo)
|
|
23
|
+
- [Licença](#-licença)
|
|
24
|
+
|
|
25
|
+
## ✨ Características
|
|
26
|
+
|
|
27
|
+
### 🎯 Agentes de Planejamento
|
|
28
|
+
- **ANX** - Análise de requisitos e geração de insights
|
|
29
|
+
- **PMX** - Gestão de produto e criação de PRDs
|
|
30
|
+
- **ARX** - Arquitetura de sistemas e infraestrutura
|
|
31
|
+
- **DVX** - Desenvolvimento e geração de código
|
|
32
|
+
- **DOCX** - Documentação técnica
|
|
33
|
+
- **QAX** - Garantia de qualidade e testes
|
|
34
|
+
- **DEPX** - Deploy e CI/CD
|
|
35
|
+
- **MONX** - Monitoramento e observabilidade
|
|
36
|
+
|
|
37
|
+
### 🤖 Agentes de Execução
|
|
38
|
+
- **18 agentes especializados** para execução de comandos
|
|
39
|
+
- Sistema de orquestração multi-agente
|
|
40
|
+
- Validação multi-camada
|
|
41
|
+
- Busca semântica com vetorização
|
|
42
|
+
|
|
43
|
+
### 🛠️ Ferramentas
|
|
44
|
+
- **CLI completo** para gerenciamento de projetos
|
|
45
|
+
- **Sistema de workflows** pré-definidos e customizáveis
|
|
46
|
+
- **Templates** para PRDs, user stories e arquitetura
|
|
47
|
+
- **Sistema de preferências** técnicas configuráveis
|
|
48
|
+
- **Sharding inteligente** para otimização de tokens
|
|
49
|
+
- **Web UI** para gerenciamento visual
|
|
50
|
+
|
|
51
|
+
### 🏪 NEX Agent Marketplace
|
|
52
|
+
- **Registry completo** de agents (planning + execution + community)
|
|
53
|
+
- **CLI poderoso** para instalação e gerenciamento
|
|
54
|
+
- **Sistema de versionamento** semântico
|
|
55
|
+
- **Dependency management** automático
|
|
56
|
+
- **Supabase integration** para sync e analytics
|
|
57
|
+
- **Reviews & ratings** (database ready)
|
|
58
|
+
- **Search & discovery** inteligente
|
|
59
|
+
- **Official & community** agents
|
|
60
|
+
|
|
61
|
+
### 🧠 Inteligência Artificial
|
|
62
|
+
- Suporte a múltiplos providers (OpenAI, Claude, Gemini, Mistral)
|
|
63
|
+
- Configuração flexível de modelos
|
|
64
|
+
- Integração de IA em todos os agentes
|
|
65
|
+
- Sistema de aprendizado contínuo
|
|
66
|
+
|
|
67
|
+
## 📦 Instalação
|
|
68
|
+
|
|
69
|
+
### Pré-requisitos
|
|
70
|
+
|
|
71
|
+
- Node.js >= 18.0.0
|
|
72
|
+
- npm ou yarn
|
|
73
|
+
- Git
|
|
74
|
+
- Conta no Supabase (para backend e banco de dados)
|
|
75
|
+
- Conta no Vercel (para deploy do frontend)
|
|
76
|
+
|
|
77
|
+
### Instalação Local
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# Clone o repositório
|
|
81
|
+
git clone https://github.com/INOSX/nex.git
|
|
82
|
+
cd nex
|
|
83
|
+
|
|
84
|
+
# Instale as dependências
|
|
85
|
+
npm install
|
|
86
|
+
|
|
87
|
+
# Configure as variáveis de ambiente
|
|
88
|
+
cp .env.example .env
|
|
89
|
+
# Edite o .env com suas configurações do Supabase:
|
|
90
|
+
# VITE_SUPABASE_URL=your_supabase_project_url
|
|
91
|
+
# VITE_SUPABASE_ANON_KEY=your_supabase_anon_key
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Configuração do Supabase
|
|
95
|
+
|
|
96
|
+
1. Crie um projeto no [Supabase](https://supabase.com)
|
|
97
|
+
2. Execute as migrations:
|
|
98
|
+
```bash
|
|
99
|
+
# Instale o Supabase CLI
|
|
100
|
+
npm install -g supabase
|
|
101
|
+
|
|
102
|
+
# Faça login
|
|
103
|
+
supabase login
|
|
104
|
+
|
|
105
|
+
# Link seu projeto
|
|
106
|
+
supabase link --project-ref your-project-ref
|
|
107
|
+
|
|
108
|
+
# Execute as migrations
|
|
109
|
+
supabase db push
|
|
110
|
+
```
|
|
111
|
+
3. Configure as Edge Functions:
|
|
112
|
+
```bash
|
|
113
|
+
supabase functions deploy nex-store-auth
|
|
114
|
+
supabase functions deploy nex-store-agents
|
|
115
|
+
supabase functions deploy nex-manager-api
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Instalação via NPM (em breve)
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
npm install -g @nex/framework
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## 🚀 Início Rápido
|
|
125
|
+
|
|
126
|
+
### Desenvolvimento Local
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
# Iniciar servidor de desenvolvimento (Vite)
|
|
130
|
+
npm run dev
|
|
131
|
+
|
|
132
|
+
# O frontend estará disponível em http://localhost:3000
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### Deploy no Vercel
|
|
136
|
+
|
|
137
|
+
1. Conecte seu repositório ao Vercel
|
|
138
|
+
2. Configure as variáveis de ambiente no Vercel:
|
|
139
|
+
- `VITE_SUPABASE_URL`
|
|
140
|
+
- `VITE_SUPABASE_ANON_KEY`
|
|
141
|
+
3. O Vercel detectará automaticamente o Vite e fará o deploy
|
|
142
|
+
|
|
143
|
+
### Usando o CLI
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
# Inicializar um novo projeto
|
|
147
|
+
nex init meu-projeto
|
|
148
|
+
|
|
149
|
+
# Criar um plano completo
|
|
150
|
+
nex plan --requirements "Sistema de e-commerce"
|
|
151
|
+
|
|
152
|
+
# Executar um workflow
|
|
153
|
+
nex workflow full-stack-app
|
|
154
|
+
|
|
155
|
+
# Gerenciar agentes
|
|
156
|
+
nex agent list
|
|
157
|
+
nex agent install agent-id
|
|
158
|
+
|
|
159
|
+
# Configurar IA
|
|
160
|
+
nex config ai --provider openai
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### Uso Programático
|
|
164
|
+
|
|
165
|
+
```javascript
|
|
166
|
+
import { NEXOrchestrator } from '@nex/framework'
|
|
167
|
+
|
|
168
|
+
const orchestrator = new NEXOrchestrator()
|
|
169
|
+
|
|
170
|
+
// Processar comando
|
|
171
|
+
const result = await orchestrator.processCommand(
|
|
172
|
+
"Liste todas as empresas",
|
|
173
|
+
user,
|
|
174
|
+
context
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
// Executar workflow de planejamento
|
|
178
|
+
const plan = await orchestrator.executePlanningWorkflow(
|
|
179
|
+
requirements,
|
|
180
|
+
context
|
|
181
|
+
)
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
## 🏗️ Arquitetura
|
|
185
|
+
|
|
186
|
+
### Stack Tecnológica
|
|
187
|
+
|
|
188
|
+
- **Frontend**: Vite + React (deploy no Vercel)
|
|
189
|
+
- **Backend**: Supabase Edge Functions (Deno)
|
|
190
|
+
- **Banco de Dados**: Supabase PostgreSQL
|
|
191
|
+
- **Autenticação**: Supabase Auth
|
|
192
|
+
- **Storage**: Supabase Storage
|
|
193
|
+
|
|
194
|
+
### Padrão de Agentes
|
|
195
|
+
|
|
196
|
+
NEX segue o padrão de categorização de agentes:
|
|
197
|
+
|
|
198
|
+
- **🔷 NEX (Nexus)** - Orquestração central
|
|
199
|
+
- **📐 ORDX (Ordo)** - Ordem, validação e estruturação
|
|
200
|
+
- **🌊 FLX (Fluxus)** - Fluxo contínuo e planejamento
|
|
201
|
+
- **⚡ AGX (Agens)** - Execução de ações de domínio
|
|
202
|
+
- **🔧 OPX (Opus)** - Execução técnica especializada
|
|
203
|
+
|
|
204
|
+
Para mais detalhes, consulte: [PADRAO_NEX_FLX_AGX_OPX_ORDX.md](./PADRAO_NEX_FLX_AGX_OPX_ORDX.md)
|
|
205
|
+
|
|
206
|
+
## 📚 Documentação
|
|
207
|
+
|
|
208
|
+
### Documentação Principal
|
|
209
|
+
|
|
210
|
+
- **[Padrão NEX/FLX/AGX/OPX/ORDX](./PADRAO_NEX_FLX_AGX_OPX_ORDX.md)** - Explicação completa do padrão de nomenclatura e arquitetura
|
|
211
|
+
- **[Documentação de Agentes](./DOCUMENTACAO_AGENTES_NEX.md)** - Documentação detalhada de todos os 18 agentes
|
|
212
|
+
- **[Diagramas de Agentes](./DIAGRAMAS_AGENTES_NEX.md)** - Diagramas Mermaid de cada agente
|
|
213
|
+
- **[Fluxo do Sistema](./FLUXO_ESPECIALISTA_NEX.md)** - Fluxo completo de processamento
|
|
214
|
+
- **[Resumo de Implementação](./IMPLEMENTACAO_NEX_RESUMO.md)** - Visão geral das implementações
|
|
215
|
+
|
|
216
|
+
### Documentação Técnica
|
|
217
|
+
|
|
218
|
+
- **[Configuração Vite + Supabase](./docs/VITE_SUPABASE_SETUP.md)** - Guia completo de configuração do frontend e backend
|
|
219
|
+
- **[Guia de Deploy](./DEPLOYMENT.md)** - Como fazer deploy no Vercel e Supabase
|
|
220
|
+
- **[Módulo Especialista IA](./docs/MODULO_ESPECIALISTA_IA.md)** - Documentação do módulo de especialista
|
|
221
|
+
- **[Integração de IA](./docs/AGENTES_IA_INTEGRATION.md)** - Estratégia de integração de IA nos agentes
|
|
222
|
+
- **[Guia de Testes](./GUIA_TESTES_NEX_ESPECIALISTA.md)** - Guia completo de testes
|
|
223
|
+
- **[Testes Rápidos](./TESTES_RAPIDOS_NEX.md)** - Testes rápidos e exemplos
|
|
224
|
+
|
|
225
|
+
## 📁 Estrutura do Projeto
|
|
226
|
+
|
|
227
|
+
```
|
|
228
|
+
nex-agents/
|
|
229
|
+
├── cli/ # CLI do framework
|
|
230
|
+
│ └── nex-cli.js
|
|
231
|
+
├── src/
|
|
232
|
+
│ ├── services/
|
|
233
|
+
│ │ ├── nex-execution/ # Agentes de execução
|
|
234
|
+
│ │ │ ├── nexOrchestrator.js
|
|
235
|
+
│ │ │ ├── agents/ # 18 agentes especializados
|
|
236
|
+
│ │ │ ├── services/ # Serviços de vetorização
|
|
237
|
+
│ │ │ └── utils/ # Utilitários
|
|
238
|
+
│ │ ├── nex/ # Sistema NEX Framework
|
|
239
|
+
│ │ │ ├── agents/planning/ # Agentes de planejamento
|
|
240
|
+
│ │ │ ├── core/ # Core do framework
|
|
241
|
+
│ │ │ ├── api/ # APIs
|
|
242
|
+
│ │ │ └── installer/ # Sistema de instalação
|
|
243
|
+
│ │ ├── nex-store/ # NEX Store (marketplace)
|
|
244
|
+
│ │ └── nex-installer/ # Instalador de agentes
|
|
245
|
+
│ ├── components/ # Componentes React
|
|
246
|
+
│ │ ├── specialist/ # Módulo especialista
|
|
247
|
+
│ │ ├── nex-manager/ # Gerenciador web
|
|
248
|
+
│ │ └── store/ # Loja virtual
|
|
249
|
+
│ ├── pages/ # Páginas React
|
|
250
|
+
│ │ ├── admin/ # Painel admin
|
|
251
|
+
│ │ └── store/ # Páginas da loja
|
|
252
|
+
│ └── config/ # Configurações
|
|
253
|
+
│ ├── nexConfig.js
|
|
254
|
+
│ └── aiConfig.js
|
|
255
|
+
├── templates/ # Templates de documentos
|
|
256
|
+
│ ├── prd-template.md
|
|
257
|
+
│ ├── user-story-template.md
|
|
258
|
+
│ └── architecture-template.md
|
|
259
|
+
├── workflows/ # Workflows pré-definidos
|
|
260
|
+
│ ├── greenfield/
|
|
261
|
+
│ └── brownfield/
|
|
262
|
+
├── docs/ # Documentação adicional
|
|
263
|
+
├── sql/ # Scripts SQL
|
|
264
|
+
└── package.json
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
## 🤖 Agentes
|
|
268
|
+
|
|
269
|
+
### Agentes de Planejamento (Novos)
|
|
270
|
+
|
|
271
|
+
| Agente | Categoria | Função |
|
|
272
|
+
|--------|-----------|--------|
|
|
273
|
+
| **ANX** | FLX | Análise de requisitos e insights |
|
|
274
|
+
| **PMX** | FLX | Gestão de produto e PRDs |
|
|
275
|
+
| **ARX** | OPX | Arquitetura e design de sistemas |
|
|
276
|
+
| **DVX** | AGX | Desenvolvimento e código |
|
|
277
|
+
| **DOCX** | OPX | Documentação técnica |
|
|
278
|
+
| **QAX** | ORDX | Qualidade e testes |
|
|
279
|
+
| **DEPX** | AGX | Deploy e CI/CD |
|
|
280
|
+
| **MONX** | ORDX | Monitoramento e observabilidade |
|
|
281
|
+
|
|
282
|
+
### Agentes de Execução (Existentes)
|
|
283
|
+
|
|
284
|
+
| Categoria | Agentes |
|
|
285
|
+
|-----------|---------|
|
|
286
|
+
| **ORDX** | SupervisorAgent, PermissionAgent, ContextAgent, MemoryResourceAgent |
|
|
287
|
+
| **FLX** | VoiceIntentAgent, QueryPlanningAgent, SuggestionAgent |
|
|
288
|
+
| **AGX** | CompanyActionAgent, EmployeeActionAgent, CampaignActionAgent, ProspectingActionAgent, BenefitActionAgent, ProductActionAgent, IntegrationActionAgent |
|
|
289
|
+
| **OPX** | DatabaseQueryAgent, DatabaseKnowledgeAgent, DataVisualizationAgent, FeedbackAgent |
|
|
290
|
+
|
|
291
|
+
Para documentação completa, veja: [DOCUMENTACAO_AGENTES_NEX.md](./DOCUMENTACAO_AGENTES_NEX.md)
|
|
292
|
+
|
|
293
|
+
## 💻 CLI
|
|
294
|
+
|
|
295
|
+
O NEX Framework inclui uma CLI completa para gerenciamento:
|
|
296
|
+
|
|
297
|
+
```bash
|
|
298
|
+
# Comandos principais
|
|
299
|
+
nex init # Inicializar projeto
|
|
300
|
+
nex plan # Criar plano de projeto
|
|
301
|
+
nex workflow # Executar workflows
|
|
302
|
+
nex store # Acessar NEX Store
|
|
303
|
+
nex config # Configurar framework
|
|
304
|
+
|
|
305
|
+
# 🆕 Agent Marketplace Commands
|
|
306
|
+
nex agent search <query> # Buscar agents
|
|
307
|
+
nex agent install <agent-id> # Instalar agent
|
|
308
|
+
nex agent list # Listar instalados
|
|
309
|
+
nex agent info <agent-id> # Ver detalhes
|
|
310
|
+
nex agent update <agent-id> # Atualizar agent
|
|
311
|
+
nex agent uninstall <agent-id> # Remover agent
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
Para mais detalhes sobre o Marketplace: [NEX_MARKETPLACE_SETUP.md](./NEX_MARKETPLACE_SETUP.md)
|
|
315
|
+
|
|
316
|
+
## 🏪 NEX Agent Marketplace
|
|
317
|
+
|
|
318
|
+
O NEX Agent Marketplace é um sistema completo de distribuição de agents:
|
|
319
|
+
|
|
320
|
+
**Features:**
|
|
321
|
+
- 📦 **Registry Universal** - Local + Git + Supabase
|
|
322
|
+
- 🔍 **Search & Discovery** - Busca por texto, tags, categoria
|
|
323
|
+
- ⚡ **Instalação Rápida** - `nex agent install anx`
|
|
324
|
+
- 🔗 **Dependency Management** - Auto-instalação de dependências
|
|
325
|
+
- 📊 **Stats & Analytics** - Tracking de instalações e uso
|
|
326
|
+
- ⭐ **Reviews & Ratings** - Sistema de feedback da comunidade
|
|
327
|
+
- 🎯 **Official & Community** - Agents oficiais INOSX + comunidade
|
|
328
|
+
|
|
329
|
+
**Quick Start:**
|
|
330
|
+
```bash
|
|
331
|
+
# Buscar agents
|
|
332
|
+
nex agent search "planning"
|
|
333
|
+
|
|
334
|
+
# Instalar
|
|
335
|
+
nex agent install anx
|
|
336
|
+
|
|
337
|
+
# Ver instalados
|
|
338
|
+
nex agent list
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
Documentação completa: [NEX_MARKETPLACE_SETUP.md](./NEX_MARKETPLACE_SETUP.md)
|
|
342
|
+
|
|
343
|
+
## 🔧 Configuração
|
|
344
|
+
|
|
345
|
+
### Configuração de IA
|
|
346
|
+
|
|
347
|
+
Edite `src/config/aiConfig.js` para configurar seus providers:
|
|
348
|
+
|
|
349
|
+
```javascript
|
|
350
|
+
export default {
|
|
351
|
+
currentProvider: 'openai',
|
|
352
|
+
providers: {
|
|
353
|
+
openai: {
|
|
354
|
+
apiKey: process.env.OPENAI_API_KEY,
|
|
355
|
+
model: 'gpt-4o-mini'
|
|
356
|
+
},
|
|
357
|
+
claude: {
|
|
358
|
+
apiKey: process.env.CLAUDE_API_KEY,
|
|
359
|
+
model: 'claude-3-sonnet'
|
|
360
|
+
}
|
|
361
|
+
// ... outros providers
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
### Configuração de Agentes
|
|
367
|
+
|
|
368
|
+
Edite `src/config/nexConfig.js` para personalizar os agentes:
|
|
369
|
+
|
|
370
|
+
```javascript
|
|
371
|
+
export const nexConfig = {
|
|
372
|
+
supervisor: {
|
|
373
|
+
minQualityScore: 70,
|
|
374
|
+
maxRetries: 3
|
|
375
|
+
},
|
|
376
|
+
// ... outras configurações
|
|
377
|
+
}
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
## 🧪 Testes
|
|
381
|
+
|
|
382
|
+
```bash
|
|
383
|
+
# Executar testes
|
|
384
|
+
npm test
|
|
385
|
+
|
|
386
|
+
# Testes com cobertura
|
|
387
|
+
npm run test:coverage
|
|
388
|
+
|
|
389
|
+
# Testes rápidos
|
|
390
|
+
npm run test:quick
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
Consulte: [GUIA_TESTES_NEX_ESPECIALISTA.md](./GUIA_TESTES_NEX_ESPECIALISTA.md)
|
|
394
|
+
|
|
395
|
+
## 🚧 Desenvolvimento
|
|
396
|
+
|
|
397
|
+
### Requisitos
|
|
398
|
+
|
|
399
|
+
- Node.js >= 18.0.0
|
|
400
|
+
- npm ou yarn
|
|
401
|
+
- Git
|
|
402
|
+
|
|
403
|
+
### Setup de Desenvolvimento
|
|
404
|
+
|
|
405
|
+
```bash
|
|
406
|
+
# Clone o repositório
|
|
407
|
+
git clone https://github.com/INOSX/nex.git
|
|
408
|
+
cd nex
|
|
409
|
+
|
|
410
|
+
# Instale dependências
|
|
411
|
+
npm install
|
|
412
|
+
|
|
413
|
+
# Configure variáveis de ambiente
|
|
414
|
+
cp .env.example .env
|
|
415
|
+
# Edite .env com suas credenciais do Supabase
|
|
416
|
+
|
|
417
|
+
# Configure Supabase (se ainda não fez)
|
|
418
|
+
supabase login
|
|
419
|
+
supabase link --project-ref your-project-ref
|
|
420
|
+
supabase db push
|
|
421
|
+
|
|
422
|
+
# Execute em modo desenvolvimento
|
|
423
|
+
npm run dev
|
|
424
|
+
# Frontend estará em http://localhost:3000
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
Para mais detalhes, consulte: [docs/VITE_SUPABASE_SETUP.md](./docs/VITE_SUPABASE_SETUP.md)
|
|
428
|
+
|
|
429
|
+
### Estrutura de Branches
|
|
430
|
+
|
|
431
|
+
- `main` - Branch de produção
|
|
432
|
+
- `develop` - Branch de desenvolvimento
|
|
433
|
+
|
|
434
|
+
## 🤝 Contribuindo
|
|
435
|
+
|
|
436
|
+
Contribuições são bem-vindas! Por favor:
|
|
437
|
+
|
|
438
|
+
1. Fork o projeto
|
|
439
|
+
2. Crie uma branch para sua feature (`git checkout -b feature/AmazingFeature`)
|
|
440
|
+
3. Commit suas mudanças (`git commit -m 'Add some AmazingFeature'`)
|
|
441
|
+
4. Push para a branch (`git push origin feature/AmazingFeature`)
|
|
442
|
+
5. Abra um Pull Request
|
|
443
|
+
|
|
444
|
+
### Guia de Contribuição
|
|
445
|
+
|
|
446
|
+
- Siga o padrão de código existente
|
|
447
|
+
- Adicione testes para novas funcionalidades
|
|
448
|
+
- Atualize a documentação conforme necessário
|
|
449
|
+
- Use commits descritivos
|
|
450
|
+
|
|
451
|
+
## 📄 Licença
|
|
452
|
+
|
|
453
|
+
Este projeto é proprietário da **INOSX** (https://inosx.com). Todos os direitos reservados.
|
|
454
|
+
|
|
455
|
+
Este software e sua documentação são propriedade da INOSX e são fornecidos sob licença proprietária. É proibida a reprodução, distribuição, modificação ou uso comercial sem autorização expressa da INOSX.
|
|
456
|
+
|
|
457
|
+
Para mais informações sobre licenciamento, entre em contato através do site [inosx.com](https://inosx.com).
|
|
458
|
+
|
|
459
|
+
## 👥 Autores
|
|
460
|
+
|
|
461
|
+
- **INOSX** - *Desenvolvimento inicial* - [INOSX](https://github.com/INOSX)
|
|
462
|
+
|
|
463
|
+
## 🙏 Agradecimentos
|
|
464
|
+
|
|
465
|
+
- OpenAI pela API de IA
|
|
466
|
+
- Supabase pelo banco de dados
|
|
467
|
+
- Comunidade open source
|
|
468
|
+
|
|
469
|
+
## 📞 Suporte
|
|
470
|
+
|
|
471
|
+
- **Issues**: [GitHub Issues](https://github.com/INOSX/nex/issues)
|
|
472
|
+
- **Documentação**: Veja a seção [Documentação](#-documentação)
|
|
473
|
+
- **Email**: [Adicione seu email de suporte]
|
|
474
|
+
|
|
475
|
+
## 🔗 Links Úteis
|
|
476
|
+
|
|
477
|
+
- [Documentação Completa](./DOCUMENTACAO_AGENTES_NEX.md)
|
|
478
|
+
- [Padrão de Arquitetura](./PADRAO_NEX_FLX_AGX_OPX_ORDX.md)
|
|
479
|
+
- [Diagramas](./DIAGRAMAS_AGENTES_NEX.md)
|
|
480
|
+
- [Fluxo do Sistema](./FLUXO_ESPECIALISTA_NEX.md)
|
|
481
|
+
|
|
482
|
+
---
|
|
483
|
+
|
|
484
|
+
⭐ Se este projeto foi útil para você, considere dar uma estrela!
|