27b66d6753
Introduce an always-on auth layer with auto-created admin on first boot, multi-tenant isolation for threads/stores, and a full setup/login flow. Backend - JWT access tokens with `ver` field for stale-token rejection; bump on password/email change - Password hashing, HttpOnly+Secure cookies (Secure derived from request scheme at runtime) - CSRF middleware covering both REST and LangGraph routes - IP-based login rate limiting (5 attempts / 5-min lockout) with bounded dict growth and X-Forwarded-For bypass fix - Multi-worker-safe admin auto-creation (single DB write, WAL once) - needs_setup + token_version on User model; SQLite schema migration - Thread/store isolation by owner; orphan thread migration on first admin registration - thread_id validated as UUID to prevent log injection - CLI tool to reset admin password - Decorator-based authz module extracted from auth core Frontend - Login and setup pages with SSR guard for needs_setup flow - Account settings page (change password / email) - AuthProvider + route guards; skips redirect when no users registered - i18n (en-US / zh-CN) for auth surfaces - Typed auth API client; parseAuthError unwraps FastAPI detail envelope Infra & tooling - Unified `serve.sh` with gateway mode + auto dep install - Public PyPI uv.toml pin for CI compatibility - Regenerated uv.lock with public index Tests - HTTP vs HTTPS cookie security tests - Auth middleware, rate limiter, CSRF, setup flow coverage
47 lines
1.2 KiB
TOML
47 lines
1.2 KiB
TOML
[project]
|
|
name = "deerflow-harness"
|
|
version = "0.1.0"
|
|
description = "DeerFlow agent harness framework"
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
"agent-client-protocol>=0.4.0",
|
|
"agent-sandbox>=0.0.19",
|
|
"dotenv>=0.9.9",
|
|
"httpx>=0.28.0",
|
|
"kubernetes>=30.0.0",
|
|
"langchain>=1.2.3,<1.2.10",
|
|
"langchain-anthropic>=1.3.4",
|
|
"langchain-deepseek>=1.0.1",
|
|
"langchain-mcp-adapters>=0.1.0",
|
|
"langchain-openai>=1.1.7",
|
|
"langfuse>=3.4.1",
|
|
"langgraph>=1.0.6,<1.0.10",
|
|
"langgraph-prebuilt>=1.0.6,<1.0.9",
|
|
"langgraph-api>=0.7.0,<0.8.0",
|
|
"langgraph-cli>=0.4.14",
|
|
"langgraph-runtime-inmem>=0.22.1,<0.27.0",
|
|
"markdownify>=1.2.2",
|
|
"markitdown[all,xlsx]>=0.0.1a2",
|
|
"pydantic>=2.12.5",
|
|
"pyyaml>=6.0.3",
|
|
"readabilipy>=0.3.0",
|
|
"tavily-python>=0.7.17",
|
|
"firecrawl-py>=1.15.0",
|
|
"tiktoken>=0.8.0",
|
|
"ddgs>=9.10.0",
|
|
"duckdb>=1.4.4",
|
|
"langchain-google-genai>=4.2.1",
|
|
"langgraph-checkpoint-sqlite>=3.0.3",
|
|
"langgraph-sdk>=0.1.51",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
pymupdf = ["pymupdf4llm>=0.0.17"]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["deerflow"]
|