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

[project]
name = "lore-book"
dynamic = ["version"]
description = "The spellbook for your codebase — chronicle decisions, lore, and context your AI companions can actually read."
readme = "README.md"
license = {file = "LICENSE"}
license-expression = "FSL-1.1-MIT"
authors = [
    {name = "Jason Johnson", email = "jrj@p7n.net"},
]
keywords = ["ai", "developer-tools", "documentation", "copilot", "context", "knowledge-management"]
classifiers = [
    "Development Status :: 3 - Alpha",
    "Intended Audience :: Developers",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Topic :: Software Development :: Documentation",
    "Topic :: Utilities",
]
requires-python = ">=3.10"
dependencies = [
    "typer>=0.12",
    "pyyaml>=6.0",
    "gitpython>=3.1",
    "rich>=13.0",
    "textual>=0.75",
    "watchdog>=4.0",
]

[project.optional-dependencies]
# Full semantic search (installs PyTorch + sentence-transformers, ~200-400MB)
semantic = [
    "sentence-transformers>=3.0",
]
# Everything
all = [
    "lore-book[semantic]",
]

[project.scripts]
lore = "lore.cli:app"

[project.urls]
Homepage = "https://github.com/CptPlastic/lore-book"
Repository = "https://github.com/CptPlastic/lore-book"
Issues = "https://github.com/CptPlastic/lore-book/issues"

[tool.hatch.version]
path = "src/lore/__init__.py"

[tool.hatch.build.targets.wheel]
packages = ["src/lore"]
