{
  "graph": {
    "name": "{{ graph.name }}",
    "version": "{{ graph.version }}",
    "description": "{{ graph.description }}"
  },
  "inheritance": {
    "base": "{{ inheritance.base }}",
    "guidelines": [{% for g in inheritance.guidelines %}"{{ g }}"{% if not loop.last %},{% endif %}{% endfor %}],
    "priority": {{ inheritance.priority }}
  },
  "storage": {
    "primary": "{{ storage.primary }}",
    "secondary": {
      "enabled": {{ storage.secondary.enabled }},
      "type": "{{ storage.secondary.type }}",
      "url": "{{ storage.secondary.url }}",
      "namespace": "{{ storage.secondary.namespace }}",
      "database": "{{ storage.secondary.database }}"
      {% if storage.secondary.username %},
      "username": "{{ storage.secondary.username }}"
      {% endif %}
      {% if storage.secondary.password %},
      "password": "{{ storage.secondary.password }}"
      {% endif %}
    }
  },
  "embeddings": {
    "enabled": {{ embeddings.enabled }},
    {% if embeddings.enabled %}
    "provider": "{{ embeddings.provider }}",
    "model": "{{ embeddings.model }}",
    "dimensions": {{ embeddings.dimensions }},
    "api_key_env": "{{ embeddings.api_key_env }}"
    {% endif %}
  },
  "templates": {
    "templates_dir": "{{ templates.templates_dir }}",
    "templates": {
      "note": "{{ templates.templates.note }}",
      "decision": "{{ templates.templates.decision }}",
      "guideline": "{{ templates.templates.guideline }}",
      "pattern": "{{ templates.templates.pattern }}",
      "journal": "{{ templates.templates.journal }}",
      "execution": "{{ templates.templates.execution }}"
    },
    "export": {
      "logseq_page": "{{ templates.export.logseq_page }}",
      "logseq_journal": "{{ templates.export.logseq_journal }}",
      "summary": "{{ templates.export.summary }}",
      "json": "{{ templates.export.json }}"
    }
  },
  "query": {
    "similarity_threshold": {{ query.similarity_threshold }},
    "max_results": {{ query.max_results }},
    "recency_weight": {{ query.recency_weight }},
    "cross_graph": {{ query.cross_graph }}
  },
  "mcp": {
    "server": {
      "name": "{{ mcp.server.name }}",
      "version": "{{ mcp.server.version }}",
      "transport": "{{ mcp.server.transport }}"
    },
    "tools": {
      "search": {{ mcp.tools.search }},
      "add_note": {{ mcp.tools.add_note }},
      "add_decision": {{ mcp.tools.add_decision }},
      "link": {{ mcp.tools.link }},
      "get_guidelines": {{ mcp.tools.get_guidelines }},
      "export": {{ mcp.tools.export }}
    },
    "resources": {
      "expose_project": {{ mcp.resources.expose_project }},
      "expose_shared": {{ mcp.resources.expose_shared }}
    }
  },
  "sync": {
    "auto_index": {{ sync.auto_index }},
    "watch_paths": [{% for p in sync.watch_paths %}"{{ p }}"{% if not loop.last %},{% endif %}{% endfor %}],
    "debounce_ms": {{ sync.debounce_ms }}
  }
}
