gaia inspect
Visualize the compiled package graph.
gaia inspect starmap [path] Render a starmap visualization (html/dot/svg)
| Verb | Purpose |
|---|---|
starmap |
Static / interactive view of the compiled LocalCanonicalGraph |
The historical flat inspect verbs moved under this group
(gaia starmap --format svg → gaia inspect starmap --format svg). See
CLI Commands for workflow examples and
use gaia inspect <verb> --help for the executable option surface.
Implementation
gaia.cli.commands.starmap
gaia inspect starmap — emit a starmap of a compiled package (HTML, DOT, or SVG).
starmap_command
starmap_command(path: str = typer.Argument('.', help='Path to knowledge package directory'), out: str = typer.Option(None, '--out', help="Output file. Defaults to '.gaia/starmap.html' (html) or '.gaia/starmap.dot' (dot), relative to the package directory; absolute paths are honored as-is."), fmt: str = typer.Option('html', '--format', help="Output format: 'html' (interactive Sigma.js), 'dot' (paper-ready Graphviz source), or 'svg' (rendered figure, stellaris glow filters baked in)."), theme: str = typer.Option('light', '--theme', help="Visual theme for 'dot' / 'svg' output. 'light' (default) is the flat paper-friendly palette. 'stellaris' (alias: 'dark') is a deep-space dark variant. For 'svg' the stellaris variant gets an injected <defs> block with radial-gradient background and glow filters bound to contradiction / support / root nodes.")) -> None
Emit a starmap of the compiled package.
Three formats are supported:
html(default) — single-file interactive Sigma.js visualization. Double-click to open in a browser; no server required.dot— a Graphvizdigraphsource. Pipe throughdot(Graphviz) to get a paper-ready figure.graphvizmust be installed separately (brew install graphviz/apt install graphviz).svg— rendered figure, end-to-end. Internally callsdot(light theme) orsfdp(stellaris/dark) on the dot source, then for the stellaris theme injects an SVG<defs>block with a radial gradient background and three glow filters keyed offclass="..."markers (contradiction / support / root). RequiresgraphvizonPATH.
Compile freshness, beliefs freshness, and graph validation gates apply to all formats.
Examples:
Interactive HTML (default):
gaia inspect starmap path/to/pkg
DOT source (manually pipe through dot/sfdp for full control):
gaia inspect starmap path/to/pkg --format dot --out figures/starmap.dot dot -Tsvg figures/starmap.dot -o figures/starmap.svg
End-to-end paper figure (light, no glow):
gaia inspect starmap path/to/pkg --format svg --out figures/starmap.svg
End-to-end paper figure with stellaris glow defs baked in:
gaia inspect starmap path/to/pkg --format svg --theme stellaris \ --out figures/starmap_stellaris.svg
PNG preview at higher DPI from the dot source:
dot -Tpng -Gdpi=200 figures/starmap.dot -o figures/starmap.png
PDF for direct LaTeX \includegraphics inclusion:
dot -Tpdf figures/starmap.dot -o figures/starmap.pdf
Source code in gaia/cli/commands/starmap.py
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 | |