vc-cli 0.1.0

Command-line interface for Visual Compiler
//! Helper to build a minimal SnapshotCore for demo purposes.

use std::collections::BTreeMap;
use vc_snapshot::{Asset, AssetId, NarrativeState, SnapshotCore, Story, StoryNode};

pub fn minimal_snapshot() -> SnapshotCore {
    SnapshotCore {
        story: Story {
            nodes: vec![StoryNode { id: "node1".into(), text: "Hello, world!".into() }],
        },
        assets: {
            let mut map = BTreeMap::new();
            map.insert(
                AssetId::new("main"),
                Asset { name: "hero".into(), kind: "character".into() },
            );
            map
        },
        narrative: NarrativeState { character_id: "CH0001".into() },
    }
}