sigmap 6.6.3 → 6.6.5
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.
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,22 @@ Format: [Semantic Versioning](https://semver.org/)
|
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
+
## [6.6.5] — 2026-04-30
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- **Monorepo JVM project detection** — Enhanced source root resolver to detect `src/main/{java,kotlin,scala}` and `app/src/main/{java,kotlin,scala}` in monorepo workspace packages (packages/*, apps/*, services/*, modules/*). Added `src/test/{java,kotlin}` and `app/src/main/scala` to DEEP_PATHS for consistent detection across monorepo and non-monorepo structures.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## [6.6.4] — 2026-04-29
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- **JVM path pattern refactor** — Extracted JVM path regex pattern into a reusable constant `JVM_PATH_PATTERN` in source-root-scorer.js for improved testability and reusability. No behavior changes.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
13
29
|
## [6.6.3] — 2026-04-29
|
|
14
30
|
|
|
15
31
|
### Fixed
|
package/gen-context.js
CHANGED
|
@@ -5387,7 +5387,7 @@ __factories["./src/mcp/server"] = function(module, exports) {
|
|
|
5387
5387
|
|
|
5388
5388
|
const SERVER_INFO = {
|
|
5389
5389
|
name: 'sigmap',
|
|
5390
|
-
version: '6.6.
|
|
5390
|
+
version: '6.6.5',
|
|
5391
5391
|
description: 'SigMap MCP server — code signatures on demand',
|
|
5392
5392
|
};
|
|
5393
5393
|
|
|
@@ -7855,7 +7855,7 @@ const path = require('path');
|
|
|
7855
7855
|
const os = require('os');
|
|
7856
7856
|
const { execSync } = require('child_process');
|
|
7857
7857
|
|
|
7858
|
-
const VERSION = '6.6.
|
|
7858
|
+
const VERSION = '6.6.5';
|
|
7859
7859
|
const MARKER = '\n\n## Auto-generated signatures\n<!-- Updated by gen-context.js -->\n';
|
|
7860
7860
|
|
|
7861
7861
|
function requireSourceOrBundled(key) {
|
package/package.json
CHANGED
|
@@ -110,6 +110,18 @@ function _enumerateCandidates(cwd, isMonorepo, ignorePatterns, excludeList) {
|
|
|
110
110
|
}
|
|
111
111
|
// Also consider the package root itself
|
|
112
112
|
candidates.push({ name: `${top}/${pkg.name}`, full: path.join(topFull, pkg.name) });
|
|
113
|
+
|
|
114
|
+
// JVM project structures in monorepo packages (Java, Kotlin, Scala)
|
|
115
|
+
for (const jvmLang of ['java', 'kotlin', 'scala']) {
|
|
116
|
+
const srcMainJvm = path.join(topFull, pkg.name, 'src', 'main', jvmLang);
|
|
117
|
+
if (fs.existsSync(srcMainJvm)) {
|
|
118
|
+
candidates.push({ name: `${top}/${pkg.name}/src/main/${jvmLang}`, full: srcMainJvm });
|
|
119
|
+
}
|
|
120
|
+
const appSrcMainJvm = path.join(topFull, pkg.name, 'app', 'src', 'main', jvmLang);
|
|
121
|
+
if (fs.existsSync(appSrcMainJvm)) {
|
|
122
|
+
candidates.push({ name: `${top}/${pkg.name}/app/src/main/${jvmLang}`, full: appSrcMainJvm });
|
|
123
|
+
}
|
|
124
|
+
}
|
|
113
125
|
}
|
|
114
126
|
} catch (_) {}
|
|
115
127
|
}
|
|
@@ -118,7 +130,8 @@ function _enumerateCandidates(cwd, isMonorepo, ignorePatterns, excludeList) {
|
|
|
118
130
|
// Deep paths known by language/framework (e.g. src/main/java, src-tauri/src)
|
|
119
131
|
const DEEP_PATHS = [
|
|
120
132
|
'src/main/java','src/main/kotlin','src/main/scala',
|
|
121
|
-
'src-tauri/src','Sources/App','app/src/main/java','app/src/main/kotlin',
|
|
133
|
+
'src-tauri/src','Sources/App','app/src/main/java','app/src/main/kotlin','app/src/main/scala',
|
|
134
|
+
'src/test/java','src/test/kotlin',
|
|
122
135
|
];
|
|
123
136
|
for (const dp of DEEP_PATHS) {
|
|
124
137
|
const full = path.join(cwd, dp);
|
|
@@ -22,6 +22,8 @@ const PENALTY_DIRS = new Set([
|
|
|
22
22
|
'benchmarks','scripts',
|
|
23
23
|
]);
|
|
24
24
|
|
|
25
|
+
const JVM_PATH_PATTERN = /^(src\/main\/(java|kotlin|scala)|app\/src\/main\/(java|kotlin|scala))$/;
|
|
26
|
+
|
|
25
27
|
const ROOT_ENTRYPOINTS = {
|
|
26
28
|
go: ['main.go'],
|
|
27
29
|
python: ['app.py','main.py','wsgi.py','asgi.py'],
|
|
@@ -48,7 +50,7 @@ function scoreCandidate(dirName, fullPath, context) {
|
|
|
48
50
|
let score = 0;
|
|
49
51
|
|
|
50
52
|
// JVM paths (Java, Kotlin, Scala) get highest priority: +5.0
|
|
51
|
-
if (
|
|
53
|
+
if (JVM_PATH_PATTERN.test(dirName)) score += 5.0;
|
|
52
54
|
|
|
53
55
|
// Framework match: +3.0 if this dir is in the framework's srcDirs
|
|
54
56
|
if (frameworkSrcDirs.has(dirName)) score += 3.0;
|
|
@@ -98,4 +100,4 @@ function _countSourceFiles(dir, depth) {
|
|
|
98
100
|
return count;
|
|
99
101
|
}
|
|
100
102
|
|
|
101
|
-
module.exports = { scoreCandidate, getRecentlyChangedDirs, ROOT_ENTRYPOINTS };
|
|
103
|
+
module.exports = { scoreCandidate, getRecentlyChangedDirs, ROOT_ENTRYPOINTS, JVM_PATH_PATTERN };
|
package/src/mcp/server.js
CHANGED