@justmpm/ai-tool 3.22.2 → 3.22.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.
|
@@ -5349,14 +5349,37 @@ function getUntrackedFiles(cwd) {
|
|
|
5349
5349
|
}
|
|
5350
5350
|
function getFullDiffText(target, cwd, filePath) {
|
|
5351
5351
|
if (!hasGitRepo(cwd)) return "";
|
|
5352
|
+
const fileArg = filePath ? ` -- "${filePath}"` : "";
|
|
5352
5353
|
try {
|
|
5354
|
+
if (target === "all") {
|
|
5355
|
+
let output2 = "";
|
|
5356
|
+
try {
|
|
5357
|
+
output2 += execSync2(`git diff --unified=10${fileArg} --cached`, {
|
|
5358
|
+
cwd,
|
|
5359
|
+
encoding: "utf-8",
|
|
5360
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
5361
|
+
maxBuffer: 10 * 1024 * 1024
|
|
5362
|
+
});
|
|
5363
|
+
} catch {
|
|
5364
|
+
}
|
|
5365
|
+
try {
|
|
5366
|
+
output2 += execSync2(`git diff --unified=10${fileArg}`, {
|
|
5367
|
+
cwd,
|
|
5368
|
+
encoding: "utf-8",
|
|
5369
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
5370
|
+
maxBuffer: 10 * 1024 * 1024
|
|
5371
|
+
});
|
|
5372
|
+
} catch {
|
|
5373
|
+
}
|
|
5374
|
+
return output2;
|
|
5375
|
+
}
|
|
5353
5376
|
const diffArgs = getDiffArgs(target);
|
|
5354
|
-
const fileArg = filePath ? ` -- "${filePath}"` : "";
|
|
5355
5377
|
const cmd = `git diff --unified=10${fileArg} ${diffArgs.join(" ")}`;
|
|
5356
5378
|
const output = execSync2(cmd, {
|
|
5357
5379
|
cwd,
|
|
5358
5380
|
encoding: "utf-8",
|
|
5359
|
-
stdio: ["pipe", "pipe", "pipe"]
|
|
5381
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
5382
|
+
maxBuffer: 10 * 1024 * 1024
|
|
5360
5383
|
});
|
|
5361
5384
|
return output;
|
|
5362
5385
|
} catch {
|
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-WSOR2KFZ.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-A56FYR42.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-R46RC5Y2.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-WSOR2KFZ.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-A56FYR42.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.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",
|