@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
- out += otherFiles.map((f) => f.path.split("/").pop()).join(", ");
2007
- out += "\n";
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 -U0 ${diffArgs.join(" ")} -- "${filePath}"`;
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
- const ext = path.extname(filePath).toLowerCase();
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({
@@ -20,7 +20,7 @@ import {
20
20
  readConfig,
21
21
  recoveryHint,
22
22
  simplifyType
23
- } from "./chunk-ZNVZNLRQ.js";
23
+ } from "./chunk-4K4LZPXY.js";
24
24
 
25
25
  // src/commands/describe.ts
26
26
  var STOPWORDS = /* @__PURE__ */ new Set([
package/dist/cli.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  depsInfo,
5
5
  depsSearch,
6
6
  describe
7
- } from "./chunk-CFJB2JDZ.js";
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-ZNVZNLRQ.js";
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-QI5WOPV5.js");
134
+ const { startMcpServer } = await import("./server-4AYOHM6T.js");
135
135
  await startMcpServer();
136
136
  return;
137
137
  }
package/dist/index.js CHANGED
@@ -47,7 +47,7 @@ import {
47
47
  setFileDescription,
48
48
  suggest,
49
49
  writeConfig
50
- } from "./chunk-ZNVZNLRQ.js";
50
+ } from "./chunk-4K4LZPXY.js";
51
51
  export {
52
52
  VERSION,
53
53
  area,
@@ -3,7 +3,7 @@ import {
3
3
  depsInfo,
4
4
  depsSearch,
5
5
  describe
6
- } from "./chunk-CFJB2JDZ.js";
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-ZNVZNLRQ.js";
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.0",
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",