@justmpm/ai-tool 0.9.1 → 0.9.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.
|
@@ -3486,20 +3486,21 @@ function extractTriggerInfo(init, triggerName) {
|
|
|
3486
3486
|
|
|
3487
3487
|
// src/ts/cache.ts
|
|
3488
3488
|
function indexProject(cwd) {
|
|
3489
|
-
const
|
|
3490
|
-
|
|
3489
|
+
const resolvedCwd = cwd || process.cwd();
|
|
3490
|
+
const allFiles = getAllCodeFiles(resolvedCwd);
|
|
3491
|
+
logger.debug(`Indexando ${allFiles.length} arquivos em ${resolvedCwd}`);
|
|
3491
3492
|
const functionFiles = allFiles.filter((f) => f.includes("functions/src/"));
|
|
3492
3493
|
if (functionFiles.length > 0) {
|
|
3493
3494
|
logger.debug(`Encontrados ${functionFiles.length} arquivos em functions/src/:`, functionFiles);
|
|
3494
3495
|
logger.debugFunctions(`Arquivos em functions/src/:`);
|
|
3495
3496
|
functionFiles.forEach((f) => logger.debugFunctions(` - ${f}`));
|
|
3496
3497
|
}
|
|
3497
|
-
const project = createProject2(
|
|
3498
|
+
const project = createProject2(resolvedCwd);
|
|
3498
3499
|
let addedCount = 0;
|
|
3499
3500
|
let errorCount = 0;
|
|
3500
3501
|
for (const file of allFiles) {
|
|
3501
3502
|
try {
|
|
3502
|
-
project.addSourceFileAtPath(resolve(
|
|
3503
|
+
project.addSourceFileAtPath(resolve(resolvedCwd, file));
|
|
3503
3504
|
addedCount++;
|
|
3504
3505
|
} catch {
|
|
3505
3506
|
errorCount++;
|
|
@@ -3524,7 +3525,7 @@ function indexProject(cwd) {
|
|
|
3524
3525
|
let symbolCount = 0;
|
|
3525
3526
|
for (const sourceFile of project.getSourceFiles()) {
|
|
3526
3527
|
let filePath = sourceFile.getFilePath().replace(/\\/g, "/");
|
|
3527
|
-
const cwdNormalized =
|
|
3528
|
+
const cwdNormalized = resolvedCwd.replace(/\\/g, "/");
|
|
3528
3529
|
if (filePath.startsWith(cwdNormalized + "/")) {
|
|
3529
3530
|
filePath = filePath.slice(cwdNormalized.length + 1);
|
|
3530
3531
|
} else if (filePath.startsWith(cwdNormalized)) {
|
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-2ONTJF3R.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-6ZWPDZDS.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-CMKKGDE4.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-2ONTJF3R.js";
|
|
4
4
|
import {
|
|
5
5
|
VERSION,
|
|
6
6
|
area,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
impact,
|
|
15
15
|
map,
|
|
16
16
|
suggest
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6ZWPDZDS.js";
|
|
18
18
|
|
|
19
19
|
// src/mcp/server.ts
|
|
20
20
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justmpm/ai-tool",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
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",
|