# KOGRAL Knowledge Base Configuration Form
# Interactive configuration via typedialog-web UI
#
# This form uses fragment composition pattern for modular configuration.
# All fragments are located in ./fragments/ subdirectory.
#
# Pattern:
# - Fragments define [[elements]] with nickel_path mappings
# - Form composes fragments via includes = [...]
# - typedialog-web renders all elements in order

description = "Configure your Git-native knowledge base system"
display_mode = "complete"
fallback_locale = "en-US"
name = "kogral_configuration"
title = "KOGRAL Knowledge Base Configuration"

# ============================================================================
# GRAPH CONFIGURATION
# ============================================================================
[[items]]
description = "Basic metadata and naming for this knowledge base"
includes = ["fragments/graph.toml"]
name = "graph_group"
title = "Knowledge Graph"
type = "group"

# ============================================================================
# STORAGE BACKEND CONFIGURATION
# ============================================================================
[[items]]
description = "Choose storage backend and secondary sync options"
includes = ["fragments/storage.toml"]
name = "storage_group"
title = "Storage Backend"
type = "group"

# ============================================================================
# EMBEDDINGS & VECTOR SEARCH CONFIGURATION
# ============================================================================
[[items]]
description = "Enable semantic search with embeddings and select provider"
includes = ["fragments/embeddings.toml"]
name = "embeddings_group"
title = "Vector Search"
type = "group"

# ============================================================================
# QUERY ENGINE CONFIGURATION
# ============================================================================
[[items]]
description = "Tune query behavior, similarity thresholds, and cross-graph search"
includes = ["fragments/query.toml"]
name = "query_group"
title = "Query Engine"
type = "group"

# ============================================================================
# MCP SERVER CONFIGURATION
# ============================================================================
[[items]]
description = "Configure Model Context Protocol server for Claude Code integration"
includes = ["fragments/mcp.toml"]
name = "mcp_group"
title = "MCP Server"
type = "group"

# ============================================================================
# SYNCHRONIZATION CONFIGURATION
# ============================================================================
[[items]]
description = "Configure automatic filesystem-to-storage synchronization"
includes = ["fragments/sync.toml"]
name = "sync_group"
title = "Synchronization"
type = "group"
