sigmap 6.6.3 → 6.6.4

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,14 @@ Format: [Semantic Versioning](https://semver.org/)
10
10
 
11
11
  ---
12
12
 
13
+ ## [6.6.4] — 2026-04-29
14
+
15
+ ### Changed
16
+
17
+ - **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.
18
+
19
+ ---
20
+
13
21
  ## [6.6.3] — 2026-04-29
14
22
 
15
23
  ### 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.3',
5390
+ version: '6.6.4',
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.3';
7858
+ const VERSION = '6.6.4';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigmap",
3
- "version": "6.6.3",
3
+ "version": "6.6.4",
4
4
  "description": "Zero-dependency AI context engine — 97% token reduction. No npm install. Runs on Node 18+.",
5
5
  "main": "gen-context.js",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigmap-cli",
3
- "version": "6.6.3",
3
+ "version": "6.6.4",
4
4
  "description": "SigMap CLI wrapper — thin adapter for programmatic CLI invocation",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigmap-core",
3
- "version": "6.6.3",
3
+ "version": "6.6.4",
4
4
  "description": "SigMap core library — zero-dependency code signature extraction, retrieval, and security scanning",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -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 (/^(src\/main\/(java|kotlin|scala)|app\/src\/main\/(java|kotlin|scala))$/.test(dirName)) score += 5.0;
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
@@ -18,7 +18,7 @@ const { readContext, searchSignatures, getMap, createCheckpoint, getRouting, exp
18
18
 
19
19
  const SERVER_INFO = {
20
20
  name: 'sigmap',
21
- version: '6.6.3',
21
+ version: '6.6.4',
22
22
  description: 'SigMap MCP server — code signatures on demand',
23
23
  };
24
24