{
  "repo": "pingcap/LinguFlow",
  "binary": "app",
  "binary_path": "app.py",
  "dependencies": {
    "ApplicationLifecycle.Startup": {
      "infrastructure": {
        "database": {
          "conditions": ["When DATABASE_URL is configured"],
          "operations": ["CONNECT SQL database via SQLAlchemy"]
        }
      },
      "services": []
    },
    "HTTP GET /patterns": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /blocks": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /applications/{application_id}": {
      "infrastructure": {
        "database": {
          "conditions": ["Always"],
          "operations": ["SELECT application"]
        }
      },
      "services": []
    },
    "HTTP GET /applications": {
      "infrastructure": {
        "database": {
          "conditions": ["Always"],
          "operations": ["SELECT applications"]
        }
      },
      "services": []
    },
    "HTTP POST /applications": {
      "infrastructure": {
        "database": {
          "conditions": ["Always"],
          "operations": ["INSERT application"]
        }
      },
      "services": []
    },
    "HTTP POST /applications/{application_id}/async_run": {
      "infrastructure": {
        "database": {
          "conditions": ["Always"],
          "operations": ["READ application state", "WRITE interaction state"]
        }
      },
      "services": []
    },
    "HTTP GET /interactions/{interaction_id}": {
      "infrastructure": {
        "database": {
          "conditions": ["Always"],
          "operations": ["SELECT interaction"]
        }
      },
      "services": []
    },
    "HTTP POST /interactions/{interaction_id}/scores": {
      "infrastructure": {
        "database": {
          "conditions": ["Always"],
          "operations": ["SELECT interaction", "SELECT application"]
        }
      },
      "services": [
        {
          "name": "langfuse",
          "target_repo": "external/langfuse",
          "target_interface": "Langfuse.score",
          "operation_type": "http_api",
          "conditions": ["When langfuse keys are configured on the application"],
          "operations": ["POST score to Langfuse"]
        }
      ]
    },
    "HTTP PUT /applications/{application_id}": {
      "infrastructure": {
        "database": {
          "conditions": ["Always"],
          "operations": ["UPDATE application metadata"]
        }
      },
      "services": []
    },
    "HTTP DELETE /applications/{application_id}": {
      "infrastructure": {
        "database": {
          "conditions": ["Always"],
          "operations": ["SOFT DELETE application"]
        }
      },
      "services": []
    },
    "HTTP POST /applications/{application_id}/versions/{version_id}/async_run": {
      "infrastructure": {
        "database": {
          "conditions": ["Always"],
          "operations": ["READ version state", "WRITE interaction state"]
        }
      },
      "services": []
    },
    "HTTP GET /applications/{application_id}/versions/{version_id}": {
      "infrastructure": {
        "database": {
          "conditions": ["Always"],
          "operations": ["SELECT version"]
        }
      },
      "services": []
    },
    "HTTP GET /applications/{application_id}/versions": {
      "infrastructure": {
        "database": {
          "conditions": ["Always"],
          "operations": ["SELECT versions"]
        }
      },
      "services": []
    },
    "HTTP POST /applications/{application_id}/versions": {
      "infrastructure": {
        "database": {
          "conditions": ["Always"],
          "operations": ["INSERT version"]
        }
      },
      "services": []
    },
    "HTTP PUT /applications/{application_id}/versions/{version_id}": {
      "infrastructure": {
        "database": {
          "conditions": ["Always"],
          "operations": ["UPDATE version metadata"]
        }
      },
      "services": []
    },
    "HTTP DELETE /applications/{application_id}/versions/{version_id}": {
      "infrastructure": {
        "database": {
          "conditions": ["Always"],
          "operations": ["SOFT DELETE version"]
        }
      },
      "services": []
    },
    "HTTP PUT /applications/{application_id}/versions/{version_id}/active": {
      "infrastructure": {
        "database": {
          "conditions": ["Always"],
          "operations": ["UPDATE application active version"]
        }
      },
      "services": []
    },
    "HTTP GET /ping": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /me": {
      "infrastructure": {},
      "services": []
    }
  }
}
