{
  "name": "psyche-voice-engine",
  "$schema": "../../../node_modules/nx/schemas/project-schema.json",
  "sourceRoot": "apps/psyche/voice-engine/src",
  "projectType": "application",
  "tags": ["scope:psyche", "layer:service", "type:python", "runtime:fastapi", "gpu:optional"],
  "targets": {
    "serve": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/voice-engine",
        "command": "poetry run uvicorn voice_engine.main:app --reload --host 0.0.0.0 --port 8002"
      }
    },
    "serve-prod": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/voice-engine",
        "command": "poetry run uvicorn voice_engine.main:app --host 0.0.0.0 --port 8002 --workers 4"
      }
    },
    "build": {
      "executor": "nx:run-commands",
      "outputs": ["{projectRoot}/dist"],
      "options": {
        "cwd": "apps/psyche/voice-engine",
        "commands": ["poetry build"]
      }
    },
    "install": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/voice-engine",
        "command": "poetry install"
      }
    },
    "install-all-providers": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/voice-engine",
        "command": "poetry install --extras all-providers"
      }
    },
    "lint": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/voice-engine",
        "commands": ["poetry run ruff check src/", "poetry run mypy src/"]
      }
    },
    "format": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/voice-engine",
        "commands": ["poetry run black src/", "poetry run ruff check --fix src/"]
      }
    },
    "test": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/voice-engine",
        "command": "poetry run pytest"
      }
    },
    "test-no-provider": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/voice-engine",
        "command": "poetry run pytest -m 'not provider'"
      }
    },
    "test-cov": {
      "executor": "nx:run-commands",
      "outputs": ["{projectRoot}/htmlcov"],
      "options": {
        "cwd": "apps/psyche/voice-engine",
        "command": "poetry run pytest --cov=voice_engine --cov-report=html"
      }
    },
    "docker-build": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/voice-engine",
        "command": "docker build -t psyche-voice-engine:latest ."
      }
    },
    "docker-run": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/psyche/voice-engine",
        "command": "docker run --gpus all -p 8002:8002 --env-file .env psyche-voice-engine:latest"
      }
    }
  }
}
