Preview opendagger.yaml documents side by side, like Swagger Preview does for OpenAPI.
Features
Open Preview button in the editor title bar when an OpenDagger YAML document is active (a file named opendagger.yaml, or any YAML file with a top-level opendagger: key).
Same command from the editor right-click menu, the explorer right-click menu (on opendagger.yaml files), and the command palette (OpenDagger: Open Preview).
The preview opens beside the editor and updates live as you type.
Renders personas, workflows, use cases (steps, SQL/Mongo scripts, sequences), entities (fields, indexes, constraints, blockchain meta) and relations, cross-linked by anchors.
Shows validation errors (powered by @opendagger/core) when the document is invalid.
Development
pnpm install
pnpm build # builds @opendagger/core, then bundles dist/extension.js via esbuild
pnpm --filter opendagger-vscode test
To try it: open this folder in VS Code, press F5 (an Extension Development Host launches), then open examples/shop/opendagger.yaml and click the preview icon in the editor title bar.
Packaging
The extension is bundled to a single CJS file (dist/extension.js) with esbuild — @opendagger/core is inlined, so there are no runtime node_modules dependencies. pnpm --filter opendagger-vscode vscode:prepublish produces the minified bundle; package with vsce package.