ucn 3.8.17 → 3.8.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 +2 -2
- package/cli/index.js +286 -205
- package/core/analysis.js +6 -2
- package/core/execute.js +17 -0
- package/core/output/analysis.js +1 -1
- package/core/project.js +24 -17
- package/core/registry.js +37 -4
- package/core/search.js +487 -74
- package/core/tracing.js +251 -39
- package/languages/javascript.js +19 -2
- package/languages/rust.js +40 -0
- package/mcp/server.js +75 -44
- package/package.json +1 -1
|
@@ -133,7 +133,7 @@ ucn entrypoints --file=routes/ # Scoped to files
|
|
|
133
133
|
| File-level dependency tree | `ucn graph <file> --depth=1` | Visual import tree. Setting `--depth=N` expands all children. Can be noisy — use depth=1 for large projects. For function-level flow, use `trace` instead |
|
|
134
134
|
| Are there circular dependencies? | `ucn circular-deps` | Detect circular import chains. `--file=<pattern>` filters to cycles involving a file. `--exclude=test` skips test files |
|
|
135
135
|
| What are the framework entry points? | `ucn entrypoints` | Lists all detected routes, DI beans, tasks, etc. Filter: `--type=http`, `--framework=express` |
|
|
136
|
-
| Find which tests cover a function | `ucn tests <name>` | Test files and test function names |
|
|
136
|
+
| Find which tests cover a function | `ucn tests <name>` | Test files and test function names. Scope with `--file`, `--class-name`, `--exclude`, `--calls-only` |
|
|
137
137
|
| Extract specific lines from a file | `ucn lines --file=<file> --range=10-20` | Pull a line range without reading the whole file |
|
|
138
138
|
| Find type definitions | `ucn typedef <name>` | Interfaces, enums, structs, traits, type aliases |
|
|
139
139
|
| See a project's public API | `ucn api` or `ucn api --file=<file>` | All exported/public symbols with signatures |
|
|
@@ -163,7 +163,7 @@ ucn [target] <command> [name] [--flags]
|
|
|
163
163
|
| `--in=src/core` | Limit search to a subdirectory |
|
|
164
164
|
| `--depth=N` | Control tree depth for `trace`, `graph`, and detail level for `find` (default 3). Also expands all children — no breadth limit |
|
|
165
165
|
| `--all` | Expand truncated sections in `about`, `trace`, `graph`, `related` |
|
|
166
|
-
| `--include-tests` | Include test files in results (
|
|
166
|
+
| `--include-tests` | Include test files in usage counts (`about`) and results (`find`, `usages`, `deadcode`). Callers always include tests. |
|
|
167
167
|
| `--include-methods` | Include `obj.method()` calls in `context`/`smart` (only direct calls shown by default) |
|
|
168
168
|
| `--base=<ref>` | Git ref for diff-impact (default: HEAD) |
|
|
169
169
|
| `--staged` | Analyze staged changes (diff-impact) |
|