@mustafagoksever/java-inspector 1.1.2 → 2.0.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.
@@ -0,0 +1,175 @@
1
+ import * as yauzl from 'yauzl';
2
+ import { projectCache } from '../cache/ProjectCache.js';
3
+ export class LazyResolver {
4
+ /**
5
+ * Lazily find which JAR contains the given class.
6
+ * Checks in-memory cache first (O(1)), then scans JARs from the classpath in parallel batches.
7
+ */
8
+ async findJarForClass(className, projectPath) {
9
+ // 1. Try in-memory cache first (O(1))
10
+ const entry = await projectCache.getEntry(projectPath, className);
11
+ if (entry)
12
+ return entry.jarPath;
13
+ // 2. Get classpath
14
+ const jarPaths = await projectCache.getClasspath(projectPath);
15
+ if (!jarPaths || jarPaths.length === 0) {
16
+ throw new Error('Classpath not found. Please run scan_dependencies first.');
17
+ }
18
+ // 3. Exclude already-scanned JARs if we have a partial index
19
+ const state = (await projectCache.getClassIndex(projectPath));
20
+ const processedJars = state && !state.isComplete
21
+ ? new Set(state.processedJars ?? [])
22
+ : new Set();
23
+ const jarsToSearch = jarPaths.filter((j) => !processedJars.has(j));
24
+ // 4. Search in parallel batches of 20
25
+ const batchSize = 20;
26
+ for (let i = 0; i < jarsToSearch.length; i += batchSize) {
27
+ const batch = jarsToSearch.slice(i, i + batchSize);
28
+ const results = await Promise.all(batch.map((jar) => this.findClassInJar(className, jar).catch(() => null)));
29
+ const found = results.find((r) => r !== null);
30
+ if (found) {
31
+ // Add to index so future lookups are faster
32
+ // NOTE: we do NOT mark the JAR as processedJars here,
33
+ // because we only scanned for one class, not all classes in the JAR.
34
+ await projectCache.appendToClassIndex(projectPath, [found]);
35
+ return found.jarPath;
36
+ }
37
+ }
38
+ return null;
39
+ }
40
+ /**
41
+ * Search indexed classes with fuzzy matching.
42
+ * Only searches what is already in memory (complete or partial index).
43
+ */
44
+ async searchClasses(projectPath, query, limit = 20) {
45
+ const entries = await projectCache.getAllEntries(projectPath);
46
+ const lowerQuery = query.toLowerCase().trim();
47
+ if (!lowerQuery) {
48
+ return [];
49
+ }
50
+ const queryParts = lowerQuery.split(/[\s.]+/).filter(p => p.length > 0);
51
+ const results = [];
52
+ for (const entry of entries) {
53
+ const lowerClassName = entry.className.toLowerCase();
54
+ const lowerSimpleName = entry.simpleName.toLowerCase();
55
+ const lowerPackage = entry.packageName.toLowerCase();
56
+ let score = 0;
57
+ // Exact simple name match (highest priority)
58
+ if (lowerSimpleName === lowerQuery) {
59
+ score += 100;
60
+ }
61
+ // Exact full class name match
62
+ else if (lowerClassName === lowerQuery) {
63
+ score += 90;
64
+ }
65
+ // Query matches end of simple name (e.g. "Repository" -> "JpaRepository")
66
+ if (lowerSimpleName.endsWith(lowerQuery)) {
67
+ score += 70;
68
+ }
69
+ // Simple name contains query
70
+ if (lowerSimpleName.includes(lowerQuery)) {
71
+ score += 60;
72
+ }
73
+ // Full class name contains query
74
+ if (lowerClassName.includes(lowerQuery)) {
75
+ score += 50;
76
+ }
77
+ // Package contains query
78
+ if (lowerPackage.includes(lowerQuery)) {
79
+ score += 20;
80
+ }
81
+ // All query parts appear somewhere in the full class name
82
+ if (queryParts.length > 1) {
83
+ const allPartsMatch = queryParts.every(part => lowerClassName.includes(part));
84
+ if (allPartsMatch) {
85
+ score += 30;
86
+ }
87
+ }
88
+ if (score > 0) {
89
+ results.push({ ...entry, score });
90
+ }
91
+ }
92
+ // Sort by score descending, then alphabetically for stability
93
+ results.sort((a, b) => {
94
+ if (b.score !== a.score)
95
+ return b.score - a.score;
96
+ return a.className.localeCompare(b.className);
97
+ });
98
+ return results.slice(0, limit);
99
+ }
100
+ /**
101
+ * Get all indexed class names.
102
+ */
103
+ async getAllClassNames(projectPath) {
104
+ const entries = await projectCache.getAllEntries(projectPath);
105
+ const names = [];
106
+ for (const entry of entries) {
107
+ names.push(entry.className);
108
+ }
109
+ return names;
110
+ }
111
+ /**
112
+ * Check if a specific JAR contains the given class.
113
+ * Returns the ClassIndexEntry if found, null otherwise.
114
+ */
115
+ async findClassInJar(className, jarPath) {
116
+ const classFileName = className.replace(/\./g, '/') + '.class';
117
+ return new Promise((resolve, reject) => {
118
+ const timer = setTimeout(() => {
119
+ reject(new Error(`Timeout reading JAR: ${jarPath}`));
120
+ }, 5000);
121
+ yauzl.open(jarPath, { lazyEntries: true }, (err, zipfile) => {
122
+ if (err) {
123
+ clearTimeout(timer);
124
+ reject(err);
125
+ return;
126
+ }
127
+ zipfile.readEntry();
128
+ zipfile.on('entry', (entry) => {
129
+ if (entry.fileName === classFileName) {
130
+ clearTimeout(timer);
131
+ try {
132
+ zipfile.close();
133
+ }
134
+ catch (e) {
135
+ // ignore
136
+ }
137
+ const packageName = className.substring(0, className.lastIndexOf('.'));
138
+ const simpleName = className.substring(className.lastIndexOf('.') + 1);
139
+ resolve({
140
+ className,
141
+ jarPath,
142
+ packageName,
143
+ simpleName,
144
+ });
145
+ return;
146
+ }
147
+ zipfile.readEntry();
148
+ });
149
+ zipfile.on('end', () => {
150
+ clearTimeout(timer);
151
+ try {
152
+ zipfile.close();
153
+ }
154
+ catch (e) {
155
+ // ignore
156
+ }
157
+ resolve(null);
158
+ });
159
+ zipfile.on('error', (err) => {
160
+ clearTimeout(timer);
161
+ try {
162
+ zipfile.close();
163
+ }
164
+ catch (e) {
165
+ // ignore
166
+ }
167
+ reject(err);
168
+ });
169
+ });
170
+ });
171
+ }
172
+ }
173
+ // Singleton instance
174
+ export const lazyResolver = new LazyResolver();
175
+ //# sourceMappingURL=LazyResolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LazyResolver.js","sourceRoot":"","sources":["../../src/scanner/LazyResolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAmB,MAAM,0BAA0B,CAAC;AAMzE,MAAM,OAAO,YAAY;IACrB;;;OAGG;IACH,KAAK,CAAC,eAAe,CAAC,SAAiB,EAAE,WAAmB;QACxD,sCAAsC;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AAM,CAAC,MAAM,YAAY,GAAG,IAAI,YAAY,EAAE,CAAC"}
@@ -7,4 +7,8 @@ export declare function getProjectCacheDir(projectPath: string): string;
7
7
  export declare function getDecompileCacheDir(projectPath: string): string;
8
8
  export declare function getClassTempDir(projectPath: string): string;
9
9
  export declare function getClassIndexPath(projectPath: string): string;
10
+ export declare function getPartialIndexPath(projectPath: string): string;
11
+ export declare function getClasspathPath(projectPath: string): string;
12
+ export declare function getClassIndexJsonlPath(projectPath: string): string;
13
+ export declare function getScanStatePath(projectPath: string): string;
10
14
  //# sourceMappingURL=cachePaths.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cachePaths.d.ts","sourceRoot":"","sources":["../../src/utils/cachePaths.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAM9D;AAED,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAEhE;AAED,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE7D"}
1
+ {"version":3,"file":"cachePaths.d.ts","sourceRoot":"","sources":["../../src/utils/cachePaths.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAM9D;AAED,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAEhE;AAED,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE7D;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAElE;AAED,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE5D"}
@@ -22,4 +22,16 @@ export function getClassTempDir(projectPath) {
22
22
  export function getClassIndexPath(projectPath) {
23
23
  return path.join(getProjectCacheDir(projectPath), 'class-index.json');
24
24
  }
25
+ export function getPartialIndexPath(projectPath) {
26
+ return path.join(getProjectCacheDir(projectPath), 'class-index.partial.json');
27
+ }
28
+ export function getClasspathPath(projectPath) {
29
+ return path.join(getProjectCacheDir(projectPath), 'classpath.json');
30
+ }
31
+ export function getClassIndexJsonlPath(projectPath) {
32
+ return path.join(getProjectCacheDir(projectPath), 'class-index.jsonl');
33
+ }
34
+ export function getScanStatePath(projectPath) {
35
+ return path.join(getProjectCacheDir(projectPath), 'scan-state.json');
36
+ }
25
37
  //# sourceMappingURL=cachePaths.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cachePaths.js","sourceRoot":"","sources":["../../src/utils/cachePaths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAAC,WAAmB;IAClD,MAAM,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACjD,MAAM,IAAI,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACxF,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IAC/C,MAAM,OAAO,GAAG,GAAG,QAAQ,IAAI,IAAI,EAAE,CAAC;IACtC,OAAO,IAAI,CA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AAE,OAAO,CAAC,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,WAAmB;IACpD,OAAO,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE,iBAAiB,CAAC,CAAC;AACzE,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,WAAmB;IAC/C,OAAO,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE,YAAY,CAAC,CAAC;AACpE,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,WAAmB;IACjD,OAAO,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE,kBAAkB,CAAC,CAAC;AAC1E,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,WAAmB;IACnD,OAAO,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE,0BAA0B,CAAC,CAAC;AAClF,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,WAAmB;IAChD,OAAO,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE,gBAAgB,CAAC,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,WAAmB;IACtD,OAAO,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE,mBAAmB,CAAC,CAAC;AAC3E,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,WAAmB;IAChD,OAAO,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE,iBAAiB,CAAC,CAAC;AACzE,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mustafagoksever/java-inspector",
3
- "version": "1.1.2",
4
- "description": "MCP server that gives AI agents instant access to decompiled Java code from Maven/Gradle dependencies. Blazing fast Java class analysis for Claude, Cursor, and other LLM-powered IDEs.",
3
+ "version": "2.0.1",
4
+ "description": "MCP server that gives AI agents instant access to decompiled Java code from Maven dependencies. Blazing fast Java class analysis for Claude, Cursor, and other LLM-powered IDEs.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
7
7
  "java-inspector": "dist/cli.js"
@@ -34,7 +34,6 @@
34
34
  "decompilation",
35
35
  "java-decompiler",
36
36
  "maven",
37
- "gradle",
38
37
  "claude",
39
38
  "cursor",
40
39
  "ai",
@@ -51,7 +50,10 @@
51
50
  "vscode",
52
51
  "ai-assistant",
53
52
  "copilot",
54
- "anthropic"
53
+ "anthropic",
54
+ "opencode",
55
+ "agent",
56
+ "ai-agent"
55
57
  ],
56
58
  "author": "mustafagoksever",
57
59
  "license": "Apache-2.0",