Skip to content

Add CLI parity commands and server diagnostics#277

Merged
jonmmease merged 3 commits into
mainfrom
jonmmease/parity
May 12, 2026
Merged

Add CLI parity commands and server diagnostics#277
jonmmease merged 3 commits into
mainfrom
jonmmease/parity

Conversation

@jonmmease

@jonmmease jonmmease commented May 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR fills several API parity gaps across the CLI and server surfaces. One motivation is to make it simpler to document the different APIs, but these are also generally useful.

The CLI now exposes scenegraph conversion directly through vl2sg and vg2sg. JSON is the default output format, and --format msgpack provides the binary MessagePack path already available through the Rust, Python, and server APIs. The scenegraph commands accept the same conversion controls as the neighboring Vega/Vega-Lite commands, including locale options and render overrides.

The CLI also gains bundle-js, which mirrors the existing bundle APIs by either producing the default Vega Embed bundle or bundling a caller-provided snippet via --snippet <path|->.

For render options, Vega and Vega-Lite CLI conversion commands backed by VlOpts / VgOpts now accept --width, --height, and --background, so callers can apply per-conversion overrides without editing the spec.

On the server side, the admin surface now includes GET /admin/diagnostics/workers for per-worker V8 heap statistics. /infoz also includes the local timezone used by Vega, cached at startup so the health/info endpoint does not query workers per request.

@jonmmease jonmmease changed the title [codex] Add CLI parity commands and server diagnostics Add CLI parity commands and server diagnostics May 12, 2026
@jonmmease jonmmease marked this pull request as ready for review May 12, 2026 13:12
@jonmmease jonmmease merged commit 8e691fc into main May 12, 2026
12 checks passed
@jonmmease jonmmease deleted the jonmmease/parity branch May 12, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant