{
  "name": "psyche-tool-framework",
  "$schema": "../../../node_modules/nx/schemas/project-schema.json",
  "projectType": "application",
  "sourceRoot": "apps/psyche/tool-framework/src",
  "tags": [
    "scope:psyche",
    "layer:service",
    "type:python",
    "runtime:fastapi",
    "feature:mcp",
    "feature:tools"
  ],
  "targets": {
    "serve": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run uvicorn tool_framework.main:app --reload --host 0.0.0.0 --port 8011",
        "cwd": "apps/psyche/tool-framework"
      }
    },
    "serve-prod": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run uvicorn tool_framework.main:app --host 0.0.0.0 --port 8011 --workers 4",
        "cwd": "apps/psyche/tool-framework"
      }
    },
    "serve-mcp": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run python -m tool_framework.mcp.server --transport stdio",
        "cwd": "apps/psyche/tool-framework"
      },
      "description": "Run MCP server in stdio mode for LLM integration"
    },
    "serve-mcp-http": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run python -m tool_framework.mcp.server --transport http --port 8012",
        "cwd": "apps/psyche/tool-framework"
      },
      "description": "Run MCP server in HTTP mode"
    },
    "build": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry build",
        "cwd": "apps/psyche/tool-framework"
      },
      "outputs": ["{projectRoot}/dist"]
    },
    "install": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry install",
        "cwd": "apps/psyche/tool-framework"
      }
    },
    "install-dev": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry install --with dev",
        "cwd": "apps/psyche/tool-framework"
      }
    },
    "lint": {
      "executor": "nx:run-commands",
      "options": {
        "commands": ["poetry run ruff check src/", "poetry run mypy src/"],
        "cwd": "apps/psyche/tool-framework",
        "parallel": false
      }
    },
    "format": {
      "executor": "nx:run-commands",
      "options": {
        "commands": ["poetry run black src/", "poetry run ruff check --fix src/"],
        "cwd": "apps/psyche/tool-framework",
        "parallel": false
      }
    },
    "test": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run pytest",
        "cwd": "apps/psyche/tool-framework"
      }
    },
    "test-unit": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run pytest -m unit",
        "cwd": "apps/psyche/tool-framework"
      }
    },
    "test-integration": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run pytest -m integration",
        "cwd": "apps/psyche/tool-framework"
      }
    },
    "test-cov": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run pytest --cov=tool_framework --cov-report=html --cov-report=term-missing",
        "cwd": "apps/psyche/tool-framework"
      },
      "outputs": ["{projectRoot}/htmlcov"]
    },
    "docker-build": {
      "executor": "nx:run-commands",
      "options": {
        "command": "docker build -t psyche-tool-framework:latest -f Dockerfile ../..",
        "cwd": "apps/psyche/tool-framework"
      }
    },
    "docker-run": {
      "executor": "nx:run-commands",
      "options": {
        "command": "docker run -p 8011:8011 -p 8012:8012 --env-file .env psyche-tool-framework:latest",
        "cwd": "apps/psyche/tool-framework"
      }
    }
  }
}
