Repository navigation
Conversation
…rmats `vis graph` only needs the project dependency graph, which the native binary already builds for `list`, `affected` and `sbom`; no task graph is involved. The ASCII tree, DOT and JSON outputs are now written by the binary in a CI run off a terminal, byte for byte as the Node handler writes them, including the colour codes where the colour detection turns them on. The binary hands the invocation to Node before printing anything for: `--format html` and `--output`, the interactive viewer, an unknown format name, a flag it does not read, a workspace the native graph declines (a config file, `project.json`, overlays, non-JS projects), project names that are not ASCII or that JavaScript would reorder (array indices), and an output Node would cut short on a pipe. `ProjectGraph` now keeps the project names in discovery order, which is the order Node emits nodes and edges in. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adds a workspace with several patterns listed out of alphabetical order and mixed-case directories, a workspace Node resolves with patterns the binary declines, and a run from inside a project with an inherited root that names another workspace. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
ⓘ Qodo did not review this PR because this workspace reached its daily trial limit of 100 reviews. Reviews start again at 00:00 UTC. Choose a plan to continue now. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
Thank you for following the naming conventions! 🙏 |
Merging this PR will not alter performance
Performance Changes
Comparing Footnotes
|
Splits the option scan into small helpers and sorts the gate map. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
What
vis graphnow runs in the native binary for the ASCII tree, DOT and JSON formats (--format/-f,--depth/-d), in a CI run off a terminal. Output is byte for byte what the Node handler writes, including colour codes where the colour detection turns them on.Why it was thought to be blocked, and is not
graphneeds the project dependency graph, not the task graph.native/cli/src/graph.rsalready builds that forlist,affectedandsbom, so no foundation change was needed. The only addition to it isProjectGraph::order, the project names in discovery order, which is the order Node emits nodes and edges in (theBTreeMapalone loses it).What stays Node
Each of these is decided before anything is printed (a declined run exits 70 in the parity tests):
--format html(browser viewer bundle) and--output(file write plus a log line)tuiand the default are the ASCII tree, as in Node's non-terminal fallback; a terminal run is Node's--depthvis.config.*,project.json, per-package overlays, non-JS projects, non-pnpm roots)__proto__), a project at the workspace rootFORCE_COLOR+NO_COLORconflict, WindowsRouting
bin/route.mjs(NATIVE_SHAPE_GATES),route.rs,routing.jsonand the route snapshot are updated together.Tests
__tests__/native/graph-parity.test.ts: 258 cases over 9 fixtures against the Node CLI (formats, depth, delegated shapes, outside CI, colour environments, multi-pattern discovery order, a run from a project directory with a stale inherited root).graph_view.rs;cargo fmt --all --check,cargo clippy --all-targets -- -D warnings,cargo test -p vis-cliclean;affected,sbom,project-graph,workspace-membership,routing-fixture,routeandlistsuites still pass.FORCE_COLOR=3 CI=1 GITHUB_ACTIONS=true TERM=xterm-256color.pnpm-workspace.yaml), as the other native fixtures are.Unverified locally: Linux (non-UTF-8 paths are declined by the root check; discovery order is an explicit sort by name, not directory-read order).
Base:
next.🤖 Generated with Claude Code