ucn 3.7.18 → 3.7.19
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/.claude/skills/ucn/SKILL.md +5 -0
- package/cli/index.js +332 -428
- package/core/execute.js +376 -0
- package/core/expand-cache.js +162 -0
- package/core/project.js +11 -6
- package/core/registry.js +166 -0
- package/languages/utils.js +2 -2
- package/mcp/server.js +153 -315
- package/package.json +1 -1
|
@@ -84,12 +84,15 @@ ucn deadcode --exclude=test # Skip test files (most useful)
|
|
|
84
84
|
|
|
85
85
|
| Situation | Command | What it does |
|
|
86
86
|
|-----------|---------|-------------|
|
|
87
|
+
| Quick callers + callees list | `ucn context <name>` | Who calls it and what it calls. Results are numbered for `expand`. Use instead of `about` when you just need the call graph, not source code |
|
|
87
88
|
| Need function + all its helpers inline | `ucn smart <name>` | Returns function source with every helper it calls expanded below it. Use instead of `about` when you need code, not metadata |
|
|
88
89
|
| What changed and who's affected | `ucn diff-impact --base=main` | Shows changed functions + their callers from git diff |
|
|
89
90
|
| Checking if a refactor broke signatures | `ucn verify <name>` | Validates all call sites match the function's parameter count |
|
|
90
91
|
| Understanding a file's role in the project | `ucn imports <file>` | What it depends on |
|
|
91
92
|
| Understanding who depends on a file | `ucn exporters <file>` | Which files import it |
|
|
93
|
+
| See what a file exports | `ucn file-exports <file>` | All exported functions, classes, variables with signatures |
|
|
92
94
|
| Quick project overview | `ucn toc` | Every file with function/class counts and line counts |
|
|
95
|
+
| Project complexity stats | `ucn stats` | File counts, symbol counts, lines by language. `--functions` for per-function line counts |
|
|
93
96
|
| Find by glob pattern | `ucn find "handle*"` | Locate definitions matching a glob (supports * and ?) |
|
|
94
97
|
| Text search with context | `ucn search term --context=3` | Like grep -C 3, shows surrounding lines |
|
|
95
98
|
| Regex search (default) | `ucn search '\d+'` | Search supports regex by default (alternation, character classes, etc.) |
|
|
@@ -140,7 +143,9 @@ ucn [target] <command> [name] [--flags]
|
|
|
140
143
|
| `--code-only` | Exclude matches in comments and strings (`search`/`usages`) |
|
|
141
144
|
| `--with-types` | Include related type definitions in `smart`/`about` output |
|
|
142
145
|
| `--detailed` | Show full symbol listing per file in `toc` |
|
|
146
|
+
| `--top-level` | Show only top-level functions in `toc` (exclude nested/indented) |
|
|
143
147
|
| `--top=N` | Limit result count (default: 10 for most commands) |
|
|
148
|
+
| `--max-lines=N` | Max source lines for `class` (large classes show summary by default) |
|
|
144
149
|
| `--case-sensitive` | Case-sensitive text search (default: case-insensitive) |
|
|
145
150
|
| `--exact` | Exact name match only in `find`/`typedef` (no substring) |
|
|
146
151
|
| `--include-uncertain` | Include ambiguous/uncertain matches in `context`/`smart`/`about` |
|