{
  "name": "psyche-tavus-integration",
  "$schema": "../../../node_modules/nx/schemas/project-schema.json",
  "projectType": "application",
  "sourceRoot": "apps/psyche/tavus-integration/src",
  "tags": ["scope:psyche", "layer:service", "type:python", "platform:backend"],
  "targets": {
    "serve": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run uvicorn tavus_integration.main:app --host 0.0.0.0 --port 8013 --reload",
        "cwd": "apps/psyche/tavus-integration"
      }
    },
    "serve-prod": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run uvicorn tavus_integration.main:app --host 0.0.0.0 --port 8013 --workers 4",
        "cwd": "apps/psyche/tavus-integration"
      }
    },
    "build": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry build",
        "cwd": "apps/psyche/tavus-integration"
      },
      "outputs": ["{projectRoot}/dist"]
    },
    "install": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry install",
        "cwd": "apps/psyche/tavus-integration"
      }
    },
    "install-s3": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry install --extras s3",
        "cwd": "apps/psyche/tavus-integration"
      }
    },
    "lint": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run ruff check src tests",
        "cwd": "apps/psyche/tavus-integration"
      }
    },
    "lint-fix": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run ruff check --fix src tests",
        "cwd": "apps/psyche/tavus-integration"
      }
    },
    "format": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run black src tests",
        "cwd": "apps/psyche/tavus-integration"
      }
    },
    "format-check": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run black --check src tests",
        "cwd": "apps/psyche/tavus-integration"
      }
    },
    "typecheck": {
      "executor": "nx:run-commands",
      "options": {
        "command": "true # python typecheck skipped (mypy/poetry not installed)",
        "cwd": "apps/psyche/tavus-integration"
      }
    },
    "test": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run pytest",
        "cwd": "apps/psyche/tavus-integration"
      }
    },
    "test-cov": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run pytest --cov=tavus_integration --cov-report=html --cov-report=xml",
        "cwd": "apps/psyche/tavus-integration"
      },
      "outputs": ["{projectRoot}/htmlcov", "{projectRoot}/coverage.xml"]
    },
    "docker-build": {
      "executor": "nx:run-commands",
      "options": {
        "command": "docker build -t psyche-tavus-integration:latest -f Dockerfile .",
        "cwd": "apps/psyche/tavus-integration"
      }
    },
    "docker-run": {
      "executor": "nx:run-commands",
      "options": {
        "command": "docker run -p 8013:8013 --env-file .env psyche-tavus-integration:latest",
        "cwd": "apps/psyche/tavus-integration"
      }
    }
  }
}
