@justmpm/ai-tool 0.8.2 → 0.9.0

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 CHANGED
@@ -146,6 +146,48 @@ ai-tool find createUser --type=trigger # Busca Cloud Functions
146
146
 
147
147
  **Diferente de grep:** Entende o AST do TypeScript, encontra definições reais e onde são usados.
148
148
 
149
+ ### `describe` - Busca por Descrição
150
+
151
+ Busca áreas funcionais por descrição em linguagem natural usando keywords + correções via Levenshtein.
152
+
153
+ ```bash
154
+ ai-tool describe "autenticação"
155
+ ai-tool describe login --format=json
156
+ ai-tool describe "onde implementou checkout"
157
+ ```
158
+
159
+ **Output:**
160
+ ```
161
+ 🔍 Busca: "autenticação"
162
+
163
+ ## Autenticação (auth)
164
+ Sistema de login, signup e gerenciamento de sessão
165
+ 📁 15 arquivo(s)
166
+
167
+ Arquivos:
168
+ • [Use 'ai-tool area auth' para ver arquivos completos]
169
+
170
+ 📖 Próximos passos:
171
+ → ai-tool area <id> - ver detalhes de uma área
172
+ → ai-tool context --area=<id> - contexto completo de uma área
173
+ ```
174
+
175
+ **Sem resultados:**
176
+ ```
177
+ ❌ Nenhuma área encontrada para: "autenticaçao"
178
+
179
+ 💡 Você quis dizer?
180
+ → ai-tool describe autenticação
181
+ → ai-tool describe auth
182
+
183
+ 📖 Dica: Use 'ai-tool areas' para listar todas as áreas disponíveis
184
+ ```
185
+
186
+ **Funcionalidades:**
187
+ - Busca por keywords em descrições, nomes e IDs de áreas
188
+ - Correções automáticas via Levenshtein ("autenticacao" → "autenticação")
189
+ - Sugestões de buscas alternativas quando não encontra nada
190
+
149
191
  ### `functions` - Firebase Cloud Functions
150
192
 
151
193
  Lista todas as Cloud Functions do projeto Firebase.
@@ -320,6 +362,7 @@ ai-tool --mcp
320
362
  - `aitool_area_detail` - Arquivos de uma área específica
321
363
  - `aitool_areas_init` - Gera config de áreas
322
364
  - `aitool_area_context` - Contexto consolidado de toda uma área
365
+ - `aitool_describe` - Busca áreas por descrição (keywords + Levenshtein)
323
366
  - `aitool_find` - Busca símbolos no código (definição + usos)
324
367
  - `aitool_list_functions` - Lista Cloud Functions Firebase
325
368
 
@@ -359,7 +402,7 @@ Adicione ao `claude_desktop_config.json`:
359
402
  ## Uso Programático
360
403
 
361
404
  ```typescript
362
- import { map, dead, impact, suggest, context, areaContext, find, functions, areas, area, areasInit } from "@justmpm/ai-tool";
405
+ import { map, dead, impact, suggest, context, describe, areaContext, find, functions, areas, area, areasInit } from "@justmpm/ai-tool";
363
406
 
364
407
  // Mapa do projeto (resumo por padrão, full: true para lista completa)
365
408
  const projectMap = await map({ format: "json" });
@@ -383,6 +426,9 @@ const authContext = await areaContext("auth", { format: "json" });
383
426
  // Busca de símbolos
384
427
  const symbolSearch = await find("useAuth", { type: "hook", area: "auth" });
385
428
 
429
+ // Busca por descrição
430
+ const authAreaSearch = await describe("autenticação");
431
+
386
432
  // Cloud Functions Firebase
387
433
  const cloudFunctions = await functions({ trigger: "onCall" });
388
434