yaml_graph_vscode

> Tom VS Code — part of the Tom Framework by Peter Nicolai Alexis Kyaw. > Licensed BSD-3-Clause. See LICENSE.

VS Code custom-editor integration for YAML-graph files, built on the yaml_graph_core conversion engine.

---

Status: decoupled from the Tom AI extension

This package is no longer consumed by the Tom AI extension. The YAML Graph editor feature was removed from tom_vscode_extension in commit 3b0b63d — the custom-editor contribution, yamlValidation schema entries, the yaml-graph-core / yaml-graph-vscode file: dependencies, the registerYamlGraphEditor call, and the related build steps were all stripped out. yaml_graph_vscode now stands alone: it builds and tests on its own, but nothing in the active extension imports it.

The removed extension-side glue (handler, sample graphs, docs) is preserved under _extension_backup/ — see that folder's README for the file-by-file inventory and the revival path.

---

What it does

yaml-graph-vscode adapts the yaml_graph_core engine to VS Code: a custom editor that renders graph YAML as an interactive diagram and syncs edits back to source. The public surface (src/index.ts) centres on YamlGraphEditorProvider, VsCodeCallbacks, WebviewManager, SelectionCoordinator, TreeDataBuilder, SourceSyncManager, NodeEditorController, and SchemaResolver.

npm run build    # tsc → dist/
npm test         # vitest run

Runtime dependencies: yaml ^2.6.0, yaml-graph-core (file:../yaml_graph_core).

---

Where to look next

integration is built on (also decoupled). - _extension_backup/ — the removed extension glue, kept for a possible revival. - Repository map — the whole Tom VS Code ecosystem, including where yaml_graph_* sits relative to the active extension.

---

License

Part of the Tom Framework by Peter Nicolai Alexis Kyaw, BSD-3-Clause. See LICENSE.