{
  "name": "VAPORA Development",
  "dockerComposeFile": "docker-compose.yml",
  "service": "devcontainer",
  "workspaceFolder": "/workspace",
  "features": {
    "ghcr.io/devcontainers/features/rust:1": {
      "version": "1.75"
    },
    "ghcr.io/devcontainers/features/git:1": {
      "version": "latest"
    }
  },
  "postCreateCommand": "cargo build --workspace",
  "customizations": {
    "vscode": {
      "extensions": [
        "rust-lang.rust-analyzer",
        "vadimcn.vscode-lldb",
        "serayuzgur.crates",
        "tamasfe.even-better-toml",
        "esbenp.prettier-vscode"
      ],
      "settings": {
        "[rust]": {
          "editor.formatOnSave": true,
          "editor.defaultFormatter": "rust-lang.rust-analyzer"
        },
        "rust-analyzer.checkOnSave.command": "clippy",
        "rust-analyzer.checkOnSave.extraArgs": ["--all-targets", "--all-features"],
        "terminal.integrated.defaultProfile.linux": "bash"
      }
    }
  },
  "forwardPorts": [
    3000,
    8000,
    8001,
    8002,
    4222,
    11434
  ],
  "portAttributes": {
    "3000": {
      "label": "Frontend (Leptos)",
      "onAutoForward": "notify"
    },
    "8000": {
      "label": "SurrealDB",
      "onAutoForward": "notify"
    },
    "8001": {
      "label": "Backend API",
      "onAutoForward": "notify"
    },
    "8002": {
      "label": "Agent Server",
      "onAutoForward": "notify"
    },
    "4222": {
      "label": "NATS",
      "onAutoForward": "notify"
    },
    "11434": {
      "label": "Ollama",
      "onAutoForward": "silent"
    }
  },
  "remoteEnv": {
    "SURREAL_URL": "ws://surrealdb:8000",
    "SURREAL_USER": "root",
    "SURREAL_PASS": "root",
    "NATS_URL": "nats://nats:4222",
    "OLLAMA_URL": "http://ollama:11434",
    "LOG_LEVEL": "debug"
  }
}
