ucn 3.7.39 → 3.7.40
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/cli/index.js +2 -1
- package/core/project.js +3 -3
- package/package.json +1 -1
package/cli/index.js
CHANGED
|
@@ -101,6 +101,7 @@ function parseFlags(tokens) {
|
|
|
101
101
|
maxLines: getValueFlag('--max-lines') || null,
|
|
102
102
|
regex: tokens.includes('--no-regex') ? false : undefined,
|
|
103
103
|
functions: tokens.includes('--functions'),
|
|
104
|
+
className: getValueFlag('--class-name'),
|
|
104
105
|
};
|
|
105
106
|
}
|
|
106
107
|
|
|
@@ -125,7 +126,7 @@ const knownFlags = new Set([
|
|
|
125
126
|
'--default', '--top', '--no-follow-symlinks',
|
|
126
127
|
'--base', '--staged', '--stack',
|
|
127
128
|
'--regex', '--no-regex', '--functions',
|
|
128
|
-
'--max-lines'
|
|
129
|
+
'--max-lines', '--class-name'
|
|
129
130
|
]);
|
|
130
131
|
|
|
131
132
|
// Handle help flag
|
package/core/project.js
CHANGED
|
@@ -2745,9 +2745,9 @@ class ProjectIndex {
|
|
|
2745
2745
|
}
|
|
2746
2746
|
}
|
|
2747
2747
|
}
|
|
2748
|
-
//
|
|
2749
|
-
//
|
|
2750
|
-
return
|
|
2748
|
+
// className explicitly set but receiver type unknown — filter it out.
|
|
2749
|
+
// User asked for a specific class; unknown receivers are likely unrelated.
|
|
2750
|
+
return false;
|
|
2751
2751
|
});
|
|
2752
2752
|
}
|
|
2753
2753
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ucn",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.40",
|
|
4
4
|
"mcpName": "io.github.mleoca/ucn",
|
|
5
5
|
"description": "Universal Code Navigator — AST-based call graph analysis for AI agents. Find callers, trace impact, detect dead code across JS/TS, Python, Go, Rust, Java, and HTML. CLI, MCP server, and agent skill.",
|
|
6
6
|
"main": "index.js",
|