# Deployment Mode Selection Fragment

[[elements]]
border_top = true
border_bottom = false
name = "deployment_mode_section_header"
title = "🚀 Deployment Mode"
type = "section_header"

[[elements]]
default = "solo"
help = "Select deployment mode which determines resource allocation and feature set"
name = "deployment_mode"
nickel_path = ["deployment_mode"]
options = ["solo", "multiuser", "cicd", "enterprise"]
prompt = "Deployment Mode"
required = true
type = "select"

# Mode Descriptions
[[elements]]
name = "mode_description"
type = "section_header"
title = "Mode Details"
border_top = false
border_bottom = true

# Solo Mode Info (conditional)
[[elements]]
condition = "deployment_mode == 'solo'"
default = false
help = "Solo Mode: Single developer environment. Filesystem/RocksDB storage, 2-4 CPU cores, 4GB RAM. Minimal security, no HA. Ideal for local development and testing."
name = "mode_solo_info"
prompt = "Solo Mode"
type = "info"

# MultiUser Mode Info (conditional)
[[elements]]
condition = "deployment_mode == 'multiuser'"
default = false
help = "MultiUser Mode: Team development environment. PostgreSQL/SurrealDB, 4-8 CPU cores, 8GB RAM. RBAC enabled, shared storage, staging-ready. Ideal for team collaboration."
name = "mode_multiuser_info"
prompt = "MultiUser Mode"
type = "info"

# CI/CD Mode Info (conditional)
[[elements]]
condition = "deployment_mode == 'cicd'"
default = false
help = "CI/CD Mode: Automated testing and pipeline environment. Ephemeral storage, 8+ CPU cores, 16GB RAM. API-driven, minimal UI, optimized for throughput. Ideal for automated testing."
name = "mode_cicd_info"
prompt = "CI/CD Mode"
type = "info"

# Enterprise Mode Info (conditional)
[[elements]]
condition = "deployment_mode == 'enterprise'"
default = false
help = "Enterprise Mode: Production high-availability environment. SurrealDB cluster, PostgreSQL HA, 16+ CPU cores, 32+ GB RAM. MFA required, compliance, full monitoring. Ideal for production deployments."
name = "mode_enterprise_info"
prompt = "Enterprise Mode"
type = "info"

# Mode-Specific Default Values (informational)
[[elements]]
condition = "deployment_mode == 'solo'"
default = false
help = "Resources: 2 CPU, 4GB RAM | Storage: 50GB | Database: Filesystem or RocksDB | Security: Optional | HA: None"
name = "solo_resources_info"
type = "text"
prompt = "Solo Resources"

[[elements]]
condition = "deployment_mode == 'multiuser'"
default = false
help = "Resources: 4 CPU, 8GB RAM | Storage: 100GB | Database: PostgreSQL or SurrealDB | Security: RBAC | HA: Optional"
name = "multiuser_resources_info"
type = "text"
prompt = "MultiUser Resources"

[[elements]]
condition = "deployment_mode == 'cicd'"
default = false
help = "Resources: 8 CPU, 16GB RAM | Storage: 200GB (ephemeral) | Database: Embedded | Security: API tokens | HA: None"
name = "cicd_resources_info"
type = "text"
prompt = "CI/CD Resources"

[[elements]]
condition = "deployment_mode == 'enterprise'"
default = false
help = "Resources: 16+ CPU, 32+ GB RAM | Storage: 500GB+ | Database: SurrealDB Cluster HA | Security: MFA, Vault | HA: Full clustering"
name = "enterprise_resources_info"
type = "text"
prompt = "Enterprise Resources"
