@justmpm/ai-tool 0.3.2 → 0.4.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.
- package/README.md +56 -1
- package/dist/{chunk-EONUMGCN.js → chunk-WN7FTU6M.js} +1281 -10
- package/dist/cli.js +42 -8
- package/dist/index.d.ts +203 -2
- package/dist/index.js +39 -3
- package/dist/{server-K55EXKYX.js → server-SPVMWDEO.js} +246 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -97,6 +97,49 @@ ai-tool context src/hooks/useAuth.ts --format=json
|
|
|
97
97
|
|
|
98
98
|
Ideal para entender rapidamente a API publica de um arquivo.
|
|
99
99
|
|
|
100
|
+
### `areas` - Areas/Dominios Funcionais
|
|
101
|
+
|
|
102
|
+
Lista todas as areas funcionais do projeto (auth, dashboard, stripe, etc).
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
ai-tool areas
|
|
106
|
+
ai-tool areas --format=json
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
**Output:**
|
|
110
|
+
- Lista de areas detectadas automaticamente
|
|
111
|
+
- Contagem de arquivos por area
|
|
112
|
+
- Distribuicao de categorias por area
|
|
113
|
+
|
|
114
|
+
### `area` - Detalhe de uma Area
|
|
115
|
+
|
|
116
|
+
Mostra todos os arquivos de uma area especifica.
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
ai-tool area auth
|
|
120
|
+
ai-tool area meus-pets --type=hook # Filtra por categoria
|
|
121
|
+
ai-tool area stripe --full # Mostra todos os arquivos
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
**Output:**
|
|
125
|
+
- Arquivos agrupados por categoria
|
|
126
|
+
- Descricao inferida de cada arquivo
|
|
127
|
+
|
|
128
|
+
### `areas init` - Configuracao de Areas
|
|
129
|
+
|
|
130
|
+
Gera arquivo de configuracao editavel para areas.
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
ai-tool areas init
|
|
134
|
+
ai-tool areas init --force # Sobrescreve config existente
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Cria `.analyze/areas.config.json` com:
|
|
138
|
+
- Areas detectadas automaticamente
|
|
139
|
+
- Patterns glob para cada area
|
|
140
|
+
- Keywords de deteccao
|
|
141
|
+
- Descricoes manuais de arquivos
|
|
142
|
+
|
|
100
143
|
## Servidor MCP
|
|
101
144
|
|
|
102
145
|
Integra com Claude Desktop e outras ferramentas MCP.
|
|
@@ -111,6 +154,9 @@ ai-tool --mcp
|
|
|
111
154
|
- `aitool_impact_analysis` - Analise de impacto
|
|
112
155
|
- `aitool_suggest_reads` - Sugestao de leitura
|
|
113
156
|
- `aitool_file_context` - Contexto do arquivo
|
|
157
|
+
- `aitool_list_areas` - Lista areas funcionais
|
|
158
|
+
- `aitool_area_detail` - Detalhe de uma area
|
|
159
|
+
- `aitool_areas_init` - Gera config de areas
|
|
114
160
|
|
|
115
161
|
### Configuracao Claude Code
|
|
116
162
|
|
|
@@ -148,7 +194,7 @@ Adicione ao `claude_desktop_config.json`:
|
|
|
148
194
|
## Uso Programatico
|
|
149
195
|
|
|
150
196
|
```typescript
|
|
151
|
-
import { map, dead, impact, suggest, context } from "@justmpm/ai-tool";
|
|
197
|
+
import { map, dead, impact, suggest, context, areas, area, areasInit } from "@justmpm/ai-tool";
|
|
152
198
|
|
|
153
199
|
// Mapa do projeto
|
|
154
200
|
const projectMap = await map({ format: "json" });
|
|
@@ -164,6 +210,15 @@ const suggestions = await suggest("Button", { limit: 5 });
|
|
|
164
210
|
|
|
165
211
|
// Contexto do arquivo
|
|
166
212
|
const fileContext = await context("Button", { format: "json" });
|
|
213
|
+
|
|
214
|
+
// Areas funcionais
|
|
215
|
+
const projectAreas = await areas({ format: "json" });
|
|
216
|
+
|
|
217
|
+
// Detalhe de uma area
|
|
218
|
+
const authArea = await area("auth", { type: "hook" });
|
|
219
|
+
|
|
220
|
+
// Gerar config de areas
|
|
221
|
+
await areasInit({ force: false });
|
|
167
222
|
```
|
|
168
223
|
|
|
169
224
|
## Opcoes
|