@justmpm/ai-tool 1.0.1 → 1.0.3
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
|
@@ -234,6 +234,7 @@ ai-tool functions --format=json
|
|
|
234
234
|
### `areas` - Áreas/Domínios Funcionais
|
|
235
235
|
|
|
236
236
|
Lista todas as áreas funcionais do projeto (auth, dashboard, stripe, etc).
|
|
237
|
+
**Também mostra arquivos SEM área definida** - útil para identificar gaps na configuração.
|
|
237
238
|
|
|
238
239
|
```bash
|
|
239
240
|
ai-tool areas
|
|
@@ -244,6 +245,7 @@ ai-tool areas --format=json
|
|
|
244
245
|
- Lista de áreas configuradas manualmente
|
|
245
246
|
- Contagem de arquivos por área
|
|
246
247
|
- Distribuição de categorias por área
|
|
248
|
+
- **Arquivos sem área (unmapped)** - use para ver o que falta configurar
|
|
247
249
|
|
|
248
250
|
### `area` - Detalhe de uma Área
|
|
249
251
|
|
|
@@ -358,7 +360,7 @@ ai-tool --mcp
|
|
|
358
360
|
- `aitool_impact_analysis` - Análise de impacto antes de modificar
|
|
359
361
|
- `aitool_suggest_reads` - Sugere arquivos para ler antes de editar
|
|
360
362
|
- `aitool_file_context` - Extrai assinaturas de um arquivo
|
|
361
|
-
- `aitool_list_areas` - Lista áreas
|
|
363
|
+
- `aitool_list_areas` - Lista áreas + arquivos sem área (ver gaps na configuração)
|
|
362
364
|
- `aitool_area_detail` - Arquivos de uma área específica
|
|
363
365
|
- `aitool_areas_init` - Gera config de áreas
|
|
364
366
|
- `aitool_area_context` - Contexto consolidado de toda uma área
|
|
@@ -2049,9 +2049,9 @@ function inferFileDescription(filePath, category) {
|
|
|
2049
2049
|
// src/commands/base.ts
|
|
2050
2050
|
function parseCommandOptions(options) {
|
|
2051
2051
|
return {
|
|
2052
|
+
...options,
|
|
2052
2053
|
cwd: options.cwd || process.cwd(),
|
|
2053
|
-
format: options.format || "text"
|
|
2054
|
-
...options
|
|
2054
|
+
format: options.format || "text"
|
|
2055
2055
|
};
|
|
2056
2056
|
}
|
|
2057
2057
|
function formatOutput(result, format, textFormatter, cacheMarker) {
|
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
describe
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-M32V3QZD.js";
|
|
5
5
|
import {
|
|
6
6
|
VERSION,
|
|
7
7
|
area,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
impact,
|
|
17
17
|
map,
|
|
18
18
|
suggest
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-36CYBYVT.js";
|
|
20
20
|
|
|
21
21
|
// src/cli.ts
|
|
22
22
|
import { resolve } from "path";
|
|
@@ -113,7 +113,7 @@ async function main() {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
if (flags.mcp) {
|
|
116
|
-
const { startMcpServer } = await import("./server-
|
|
116
|
+
const { startMcpServer } = await import("./server-XRNZYROB.js");
|
|
117
117
|
await startMcpServer();
|
|
118
118
|
return;
|
|
119
119
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
describe
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-M32V3QZD.js";
|
|
4
4
|
import {
|
|
5
5
|
VERSION,
|
|
6
6
|
area,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
map,
|
|
16
16
|
recoveryHint,
|
|
17
17
|
suggest
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-36CYBYVT.js";
|
|
19
19
|
|
|
20
20
|
// src/mcp/server.ts
|
|
21
21
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -243,10 +243,11 @@ ${hint}` }],
|
|
|
243
243
|
{
|
|
244
244
|
title: "List Project Areas",
|
|
245
245
|
description: `Lista areas/dominios funcionais do projeto (auth, pets, stripe, dashboard...).
|
|
246
|
+
Tambem mostra arquivos SEM area definida (unmapped) - util para identificar gaps na configuracao.
|
|
246
247
|
Areas sao diferentes de categorias (hook, component, page).
|
|
247
248
|
Requer configuracao manual em .analyze/areas.config.json (use areas_init para gerar o template).
|
|
248
249
|
|
|
249
|
-
Quando usar: ver todas as areas disponiveis, entender a organizacao do projeto por dominio
|
|
250
|
+
Quando usar: ver todas as areas disponiveis, entender a organizacao do projeto por dominio, VER QUAIS ARQUIVOS ESTAO SEM AREA.
|
|
250
251
|
NAO use para: buscar uma area pelo nome/descricao (use describe) ou ver os arquivos de uma area (use area_detail).`,
|
|
251
252
|
inputSchema: {
|
|
252
253
|
format: z.enum(["text", "json"]).default("text").describe("Formato de saida: text (legivel) ou json (estruturado)"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justmpm/ai-tool",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Ferramenta de análise de dependências e impacto para projetos TypeScript/JavaScript. Usa Skott + Knip internamente. Inclui busca por descrição, integração Git e testes inteligentes.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dependency-analysis",
|