@justmpm/ai-tool 3.22.0 → 3.22.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.
|
@@ -2002,9 +2002,13 @@ NEW FILES (${newFiles.length}, untracked)
|
|
|
2002
2002
|
}
|
|
2003
2003
|
if (otherFiles.length > 0) {
|
|
2004
2004
|
out += `
|
|
2005
|
-
OTHER FILES (${otherFiles.length}):
|
|
2006
|
-
|
|
2007
|
-
|
|
2005
|
+
OTHER FILES (${otherFiles.length}):
|
|
2006
|
+
`;
|
|
2007
|
+
for (const f of otherFiles) {
|
|
2008
|
+
const fileName = f.path.split("/").pop() || f.path;
|
|
2009
|
+
out += ` ${fileName} (+${f.stats.added} -${f.stats.removed})
|
|
2010
|
+
`;
|
|
2011
|
+
}
|
|
2008
2012
|
}
|
|
2009
2013
|
out += nextSteps("changes", ctx);
|
|
2010
2014
|
return out;
|
|
@@ -5316,7 +5320,7 @@ function getDiffForFile(filePath, target, cwd) {
|
|
|
5316
5320
|
if (!hasGitRepo(cwd)) return "";
|
|
5317
5321
|
try {
|
|
5318
5322
|
const diffArgs = getDiffArgs(target);
|
|
5319
|
-
const cmd = `git diff -
|
|
5323
|
+
const cmd = `git diff -U3 ${diffArgs.join(" ")} -- "${filePath}"`;
|
|
5320
5324
|
const output = execSync2(cmd, {
|
|
5321
5325
|
cwd,
|
|
5322
5326
|
encoding: "utf-8",
|
|
@@ -7314,10 +7318,7 @@ async function changes(options = {}) {
|
|
|
7314
7318
|
totalRemoved += stats.removed;
|
|
7315
7319
|
}
|
|
7316
7320
|
if (entries.length === 0 && stats && stats.added + stats.removed > 0) {
|
|
7317
|
-
|
|
7318
|
-
if (!CODE_EXTENSIONS2.has(ext)) {
|
|
7319
|
-
entries = extractGenericDiffPreview(diffText, filePath);
|
|
7320
|
-
}
|
|
7321
|
+
entries = extractGenericDiffPreview(diffText, filePath);
|
|
7321
7322
|
}
|
|
7322
7323
|
const enrichedEntries = enrichWithJsDoc(entries, filePath, symbolsIndex);
|
|
7323
7324
|
fileChanges.push({
|
package/dist/cli.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
depsInfo,
|
|
5
5
|
depsSearch,
|
|
6
6
|
describe
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YDDQL2IM.js";
|
|
8
8
|
import {
|
|
9
9
|
VERSION,
|
|
10
10
|
area,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
impact,
|
|
21
21
|
map,
|
|
22
22
|
suggest
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-4K4LZPXY.js";
|
|
24
24
|
|
|
25
25
|
// src/cli.ts
|
|
26
26
|
import { resolve } from "path";
|
|
@@ -131,7 +131,7 @@ async function main() {
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
if (flags.mcp) {
|
|
134
|
-
const { startMcpServer } = await import("./server-
|
|
134
|
+
const { startMcpServer } = await import("./server-4AYOHM6T.js");
|
|
135
135
|
await startMcpServer();
|
|
136
136
|
return;
|
|
137
137
|
}
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
depsInfo,
|
|
4
4
|
depsSearch,
|
|
5
5
|
describe
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YDDQL2IM.js";
|
|
7
7
|
import {
|
|
8
8
|
VERSION,
|
|
9
9
|
area,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
map,
|
|
20
20
|
recoveryHint,
|
|
21
21
|
suggest
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4K4LZPXY.js";
|
|
23
23
|
|
|
24
24
|
// src/mcp/server.ts
|
|
25
25
|
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": "3.22.
|
|
3
|
+
"version": "3.22.1",
|
|
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",
|