[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "tm-ai"
version = "2.0.32"
description = "Time Machine for AI Agents — Cognitive Version Control for LLM context"
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
authors = [{ name = "CVC Contributors" }]
keywords = ["ai", "agents", "context", "version-control", "merkle", "llm"]
classifiers = [
    "Development Status :: 3 - Alpha",
    "Environment :: Console",
    "Intended Audience :: Developers",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Programming Language :: Python :: 3.13",
    "Programming Language :: Python :: 3.14",
    "Topic :: Software Development :: Version Control",
    "Operating System :: OS Independent",
]

dependencies = [
    "fastapi>=0.115.0",
    "uvicorn[standard]>=0.30.0",
    "httpx[http2]>=0.27.0",
    "pydantic>=2.9.0",
    "click>=8.1.0",
    "rich>=13.0.0",
    "zstandard>=0.23.0",
    "aiosqlite>=0.20.0",
    "GitPython>=3.1.0",
    "langgraph>=0.2.0",
    "langchain-core>=0.3.0",
    "prompt_toolkit>=3.0.0",
    "chromadb>=1.0.0",
    "Pillow>=10.0.0",
]

[project.optional-dependencies]
anthropic = ["anthropic>=0.39.0"]
openai = ["openai>=1.50.0"]
google = ["google-genai>=1.0.0"]
ollama = []  # No extra deps — Ollama uses httpx (already a core dep)
pageindex = ["pymupdf>=1.25.0"]  # PDF support for Tier 4 PageIndex
all = ["tm-ai[anthropic,openai,google]"]
sdk = []  # SDK has no extra deps — uses core CVC (pydantic, sqlite, zstandard)
dev = ["pytest>=8.0", "pytest-asyncio>=0.24.0", "ruff>=0.7.0"]

[project.scripts]
cvc = "cvc.cli:main"

[project.urls]
Homepage = "https://jaimeena.com/cvc"
Documentation = "https://jaimeena.com/cvc/docs"
Repository = "https://github.com/mannuking/cvc"
Issues = "https://github.com/mannuking/cvc/issues"
Changelog = "https://github.com/mannuking/cvc/blob/main/docs/CHANGELOG.md"

[tool.hatch.build.targets.wheel]
packages = ["cvc"]

[tool.hatch.build.targets.sdist]
exclude = [
    "/_openclaw_ref/",
    "/_claude_code_ref/",
    "/_context_hub_ref/",
    "/_pageindex_ref/",
    "/cvc-node/",
    "/images/",
    "/style/",
    "/views/",
    "/js/",
    "/docs/website/",
    "/uv.lock",
    "/tests/",
    "/.github/",
    "*.gif",
    "*.png",
    "*.jpg",
    "*.mp4",
]

[tool.ruff]
target-version = "py311"
line-length = 100

[tool.ruff.lint]
select = ["E", "F", "I", "W"]

[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
