ucn 3.8.13 → 3.8.15
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 +3 -1
- package/.github/workflows/ci.yml +13 -1
- package/README.md +1 -0
- package/cli/index.js +165 -246
- package/core/analysis.js +1400 -0
- package/core/build-worker.js +194 -0
- package/core/cache.js +105 -7
- package/core/callers.js +194 -64
- package/core/deadcode.js +22 -66
- package/core/discovery.js +9 -54
- package/core/execute.js +139 -54
- package/core/graph.js +615 -0
- package/core/imports.js +50 -16
- package/core/output/analysis-ext.js +271 -0
- package/core/output/analysis.js +491 -0
- package/core/output/extraction.js +188 -0
- package/core/output/find.js +355 -0
- package/core/output/graph.js +399 -0
- package/core/output/refactoring.js +293 -0
- package/core/output/reporting.js +331 -0
- package/core/output/search.js +307 -0
- package/core/output/shared.js +271 -0
- package/core/output/tracing.js +416 -0
- package/core/output.js +15 -3293
- package/core/parallel-build.js +165 -0
- package/core/project.js +299 -3633
- package/core/registry.js +59 -0
- package/core/reporting.js +258 -0
- package/core/search.js +890 -0
- package/core/stacktrace.js +1 -1
- package/core/tracing.js +631 -0
- package/core/verify.js +10 -13
- package/eslint.config.js +43 -0
- package/jsconfig.json +10 -0
- package/languages/go.js +21 -2
- package/languages/html.js +8 -0
- package/languages/index.js +102 -40
- package/languages/java.js +13 -0
- package/languages/javascript.js +17 -1
- package/languages/python.js +14 -0
- package/languages/rust.js +13 -0
- package/languages/utils.js +1 -1
- package/mcp/server.js +45 -28
- package/package.json +8 -3
|
@@ -178,7 +178,7 @@ ucn [target] <command> [name] [--flags]
|
|
|
178
178
|
| `--detailed` | Show full symbol listing per file in `toc` |
|
|
179
179
|
| `--top-level` | Show only top-level functions in `toc` (exclude nested/indented) |
|
|
180
180
|
| `--top=N` | Limit result count (default: 10 for most commands) |
|
|
181
|
-
| `--limit=N` | Limit result count for `find`, `usages`, `search`, `deadcode`, `api`, `toc` |
|
|
181
|
+
| `--limit=N` | Limit result count for `find`, `usages`, `search`, `deadcode`, `api`, `toc`, `entrypoints`, `diff-impact` |
|
|
182
182
|
| `--max-files=N` | Max files to index (for large projects with 10K+ files) |
|
|
183
183
|
| `--max-lines=N` | Max source lines for `class` (large classes show summary by default) |
|
|
184
184
|
| `--case-sensitive` | Case-sensitive text search (default: case-insensitive) |
|
|
@@ -200,6 +200,8 @@ ucn [target] <command> [name] [--flags]
|
|
|
200
200
|
| `--decorator=<name>` | Structural search: filter by decorator/annotation (e.g., `--decorator=Route`) |
|
|
201
201
|
| `--exported` | Structural search: only exported/public symbols |
|
|
202
202
|
| `--unused` | Structural search: only symbols with zero callers |
|
|
203
|
+
| `--no-follow-symlinks` | Don't follow symbolic links during file discovery |
|
|
204
|
+
| `--workers=N` | Parallel build workers (auto-detect by default; `0` to disable; env: `UCN_WORKERS`) |
|
|
203
205
|
|
|
204
206
|
## Workflow Integration
|
|
205
207
|
|
package/.github/workflows/ci.yml
CHANGED
|
@@ -30,4 +30,16 @@ jobs:
|
|
|
30
30
|
run: npm ci
|
|
31
31
|
|
|
32
32
|
- name: Run tests
|
|
33
|
-
run: npm test
|
|
33
|
+
run: npm test 2>&1 | tee test-output.txt
|
|
34
|
+
|
|
35
|
+
- name: Update test count badge
|
|
36
|
+
if: matrix.node-version == 22 && github.ref == 'refs/heads/main' && github.event_name == 'push'
|
|
37
|
+
run: |
|
|
38
|
+
PASS=$(grep '# pass ' test-output.txt | tail -1 | awk '{print $3}')
|
|
39
|
+
TOTAL=$(grep '# tests ' test-output.txt | tail -1 | awk '{print $3}')
|
|
40
|
+
echo "{\"schemaVersion\":1,\"label\":\"tests\",\"message\":\"${PASS}/${TOTAL} passing\",\"color\":\"brightgreen\"}" > badge.json
|
|
41
|
+
curl -s -X PATCH \
|
|
42
|
+
-H "Authorization: token ${{ secrets.GIST_TOKEN }}" \
|
|
43
|
+
-H "Accept: application/vnd.github+json" \
|
|
44
|
+
https://api.github.com/gists/0e10a790e16ab61ddd233e05645e203e \
|
|
45
|
+
-d "{\"files\":{\"ucn-tests.json\":{\"content\":$(cat badge.json | python3 -c 'import sys,json; print(json.dumps(sys.stdin.read()))')}}}"
|
package/README.md
CHANGED
|
@@ -5,6 +5,7 @@ See what code does before you touch it.
|
|
|
5
5
|
Find symbols, trace callers, check impact, pick the right tests, extract code and spot what's dead - from the terminal.
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/ucn)
|
|
8
|
+
[](https://github.com/mleoca/ucn/actions/workflows/ci.yml)
|
|
8
9
|
[](LICENSE)
|
|
9
10
|
|
|
10
11
|
All commands, one engine, three surfaces:
|