ucn 4.2.3 → 5.0.2
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 +89 -77
- package/.claude/skills/ucn/references/commands.md +62 -68
- package/.claude/skills/ucn/references/trust-contract.md +31 -6
- package/README.md +438 -305
- package/assets/demo.svg +31 -0
- package/cli/index.js +430 -1385
- package/core/account.js +144 -34
- package/core/analysis.js +182 -72
- package/core/ast-analysis.js +279 -0
- package/core/bridge.js +205 -24
- package/core/brief.js +27 -58
- package/core/build-worker.js +21 -140
- package/core/cache.js +513 -11
- package/core/callers.js +4920 -456
- package/core/check.js +13 -4
- package/core/command-contracts.js +402 -0
- package/core/compilation-database.js +276 -0
- package/core/confidence.js +4 -1
- package/core/deadcode.js +397 -19
- package/core/discovery.js +359 -46
- package/core/entrypoints.js +195 -41
- package/core/execute.js +887 -81
- package/core/graph-build.js +162 -7
- package/core/graph.js +53 -77
- package/core/imports.js +65 -6
- package/core/index-ir.js +138 -0
- package/core/ir.js +195 -0
- package/core/output/analysis.js +212 -22
- package/core/output/brief.js +23 -0
- package/core/output/check.js +4 -0
- package/core/output/doctor.js +37 -6
- package/core/output/endpoints.js +5 -2
- package/core/output/extraction.js +24 -12
- package/core/output/find.js +141 -36
- package/core/output/graph.js +11 -5
- package/core/output/public.js +462 -0
- package/core/output/refactoring.js +42 -10
- package/core/output/reporting.js +97 -20
- package/core/output/search.js +24 -16
- package/core/output/shared.js +22 -1
- package/core/output/tracing.js +30 -15
- package/core/output-budget.js +295 -0
- package/core/output.js +1 -0
- package/core/parallel-build.js +44 -11
- package/core/parser.js +3 -3
- package/core/project.js +384 -187
- package/core/public-command.js +47 -0
- package/core/registry.js +247 -117
- package/core/reporting.js +312 -290
- package/core/search.js +317 -185
- package/core/semantic-provider.js +110 -0
- package/core/stacktrace.js +25 -0
- package/core/tracing.js +101 -51
- package/core/trust-matrix.js +19 -40
- package/core/verify.js +534 -37
- package/languages/adapter.js +218 -0
- package/languages/c-family.js +2791 -0
- package/languages/c.js +3 -0
- package/languages/cpp.js +3 -0
- package/languages/csharp.js +1402 -0
- package/languages/go.js +60 -21
- package/languages/html.js +2 -2
- package/languages/index.js +85 -7
- package/languages/java.js +396 -13
- package/languages/javascript.js +199 -19
- package/languages/python.js +964 -22
- package/languages/rust.js +1317 -152
- package/languages/utils.js +40 -3
- package/mcp/server.js +254 -636
- package/package.json +39 -22
- package/eslint.config.js +0 -43
- package/jsconfig.json +0 -10
package/assets/demo.svg
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 453" font-family="ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace" font-size="12">
|
|
2
|
+
<!-- Terminal window -->
|
|
3
|
+
<rect x="0.5" y="0.5" width="999" height="452" rx="10" fill="#0d1117" stroke="#30363d"/>
|
|
4
|
+
<!-- Title bar -->
|
|
5
|
+
<path d="M0.5 10.5 a10 10 0 0 1 10 -10 h979 a10 10 0 0 1 10 10 v23 h-999 z" fill="#161b22"/>
|
|
6
|
+
<line x1="0.5" y1="34" x2="999.5" y2="34" stroke="#30363d"/>
|
|
7
|
+
<circle cx="20" cy="17" r="6" fill="#ff5f57"/>
|
|
8
|
+
<circle cx="40" cy="17" r="6" fill="#febc2e"/>
|
|
9
|
+
<circle cx="60" cy="17" r="6" fill="#28c840"/>
|
|
10
|
+
<text x="500" y="21" text-anchor="middle" fill="#8b949e" font-size="11.5">ucn - ripgrep @ 82313cf9 (pinned oracle commit) - output abridged</text>
|
|
11
|
+
<!-- Session -->
|
|
12
|
+
<g fill="#c9d1d9">
|
|
13
|
+
<text x="24" y="62"><tspan fill="#8b949e">$ </tspan><tspan fill="#7ee787">ucn show Searcher.search_reader --sections=summary,callers --compact</tspan></text>
|
|
14
|
+
<text x="24" y="100">SUMMARY</text>
|
|
15
|
+
<text x="24" y="119">───────</text>
|
|
16
|
+
<text x="24" y="138">pub search_reader<M, R, S>(&mut self, matcher: M, read_from: R, write_to: S): Result<(), S::Error></text>
|
|
17
|
+
<text x="39" y="157">crates/searcher/src/searcher/mod.rs:727-765 (39 lines)</text>
|
|
18
|
+
<text x="39" y="176">handle: crates/searcher/src/searcher/mod.rs:727:search_reader</text>
|
|
19
|
+
<text x="39" y="195">"Execute a search over any implementation of `std::io::Read` and write"</text>
|
|
20
|
+
<text x="24" y="233">CALLERS — CONFIRMED (123):</text>
|
|
21
|
+
<text x="39" y="252">evidence: 2 exact-binding, 121 receiver-hint</text>
|
|
22
|
+
<text x="39" y="271">[1] crates/core/search.rs:426 [search_reader]: searcher.search_reader(&matcher, &mut rdr, &mut sink)?;</text>
|
|
23
|
+
<text x="39" y="290">[4] crates/printer/src/json.rs:940 [binary_detection]: .search_reader(&matcher, BINARY, printer.sink(&matcher))</text>
|
|
24
|
+
<text x="39" y="309">[11] crates/printer/src/standard.rs:1788 [reports_match]: .search_reader(&matcher, SHERLOCK.as_bytes(), &mut sink)</text>
|
|
25
|
+
<text x="69" y="328" fill="#8b949e">… 120 more callers</text>
|
|
26
|
+
<text x="24" y="366">ACCOUNT: "search_reader" occurs on 136 lines in 8 files: 123 confirmed, 1 unverified,</text>
|
|
27
|
+
<text x="39" y="385">6 non-call, 6 other-target, 0 unaccounted</text>
|
|
28
|
+
<text x="24" y="404">CONTRACT: literal-name text partition complete; semantic completeness is not claimed.</text>
|
|
29
|
+
<text x="24" y="433"><tspan fill="#8b949e">$ </tspan><tspan fill="#c9d1d9">▍</tspan></text>
|
|
30
|
+
</g>
|
|
31
|
+
</svg>
|