{
    "$schema": "../../../../schemas/diagram-spec.schema.json",
    "schemaVersion": "2.0",
    "diagramKind": "c4-container",
    "id": "c4-editorial-container",
    "title": "Container — Editorial Diagram System",
    "description": "Runtime applications and data stores inside Editorial Diagram System.",
    "language": "en",
    "contextDiagramId": "c4-editorial-system-context",
    "scopeSystemId": "editorial-diagram-system",
    "scopeBoundaryId": "editorial-system-boundary",
    "boundaries": [
        {
            "id": "editorial-system-boundary",
            "type": "system-boundary",
            "title": "EDITORIAL DIAGRAM SYSTEM"
        }
    ],
    "nodes": [
        {
            "id": "diagram-author",
            "type": "person",
            "title": "Diagram Author",
            "description": "Authors semantic sources and reviews generated diagrams."
        },
        {
            "id": "editorial-cli",
            "type": "container",
            "containerKind": "application",
            "title": "Editorial CLI",
            "description": "Validates sources, builds the Scene, and generates editable artifacts.",
            "technology": "TypeScript / Node.js"
        },
        {
            "id": "diagram-workspace",
            "type": "container",
            "containerKind": "data-store",
            "title": "Diagram Workspace",
            "description": "Stores semantic JSON, explicit layout, and generated diagram files.",
            "technology": "JSON and generated files"
        },
        {
            "id": "drawio-desktop",
            "type": "external-system",
            "title": "draw.io",
            "description": "Provides GUI editing for the managed draw.io artifact."
        }
    ],
    "edges": [
        {
            "id": "author-runs-cli",
            "from": "diagram-author",
            "to": "editorial-cli",
            "type": "relationship",
            "description": "Authors diagrams with"
        },
        {
            "id": "cli-updates-workspace",
            "from": "editorial-cli",
            "to": "diagram-workspace",
            "type": "relationship",
            "description": "Reads sources and writes artifacts to",
            "technology": "JSON and files"
        },
        {
            "id": "drawio-edits-workspace",
            "from": "drawio-desktop",
            "to": "diagram-workspace",
            "type": "relationship",
            "description": "Edits diagrams in",
            "technology": "draw.io XML"
        }
    ]
}
