pub fn embed_global_graph(global_dir: &Path) -> Result<usize>Expand description
Generate dense embeddings for all nodes in the global graph and write to
~/.codesynapse/embeddings.json. Skipped (returns Ok(0)) when the model
is not installed or when embeddings.json is already newer than
global-graph.json (mtime-gated). Returns the number of nodes embedded.