forked from Wuesteon/lean-memory
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (119 loc) · 3.95 KB
/
Copy pathpyproject.toml
File metadata and controls
126 lines (119 loc) · 3.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
[project]
name = "lean-memory"
version = "0.2.1"
description = "Embedded, local-first agent memory with hybrid retrieval and ADD-only supersession."
readme = "README.md"
requires-python = ">=3.10"
license = { text = "Apache-2.0" }
authors = [{ name = "lean-memory" }]
keywords = [
"agent-memory",
"memory",
"llm",
"mcp",
"sqlite",
"embeddings",
"retrieval",
"vector-search",
"local-first",
"rag",
]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Database :: Database Engines/Servers",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
]
dependencies = [
# Phase 0 spine: SQLite vec0 extension + sparse lexical + hybrid fusion.
# No mandatory cloud key, no LLM, no server. (Per design spec, Phase 0.)
"sqlite-vec>=0.1.6",
"bm25s>=0.2.0",
"numpy>=1.24",
"python-dateutil>=2.8",
]
[project.optional-dependencies]
# Real local embedder + reranker (lazily installed; default tests use the
# deterministic FakeEmbedder/IdentityReranker so the suite runs offline).
models = [
"sentence-transformers>=3.0",
"torch>=2.2",
]
# Phase 1 real extraction backend (GLiNER2 candidate generation). Lazily loaded;
# the default StubCandidateGenerator needs none of this.
extract = [
"gliner2>=1.3.1",
]
# Phase 1 real LLM-typing backend (constrained typing via a local Ollama model).
# The default StubTyper needs none of this and no running server.
llm = [
"ollama>=0.6.0",
]
# MCP server bridge: exposes lean-memory as memory tools to MCP-compatible
# agents (Claude Desktop, Claude Code). Optional — the core engine never imports mcp.
mcp = ["mcp>=1.0"]
# Terminal demo agent (examples/chat.py): Claude as the LLM via the anthropic SDK.
examples = [
"anthropic>=0.25",
]
# Phase 2 benchmark harness (bench/phase2_*.py): OpenRouter reader/judge client.
bench = [
"openai>=1.40",
]
dev = [
"pytest>=8.0",
"tomli>=2.0; python_version < \"3.11\"",
]
[project.scripts]
lean-memory-mcp = "lean_memory.mcp_server:main"
lean-memory-maintain = "lean_memory.maintain.cli:main"
[project.urls]
Homepage = "https://github.com/Wuesteon/lean-memory"
Repository = "https://github.com/Wuesteon/lean-memory"
Documentation = "https://github.com/Wuesteon/lean-memory/blob/main/ARCHITECTURE.md"
Changelog = "https://github.com/Wuesteon/lean-memory/blob/main/CHANGELOG.md"
Issues = "https://github.com/Wuesteon/lean-memory/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/lean_memory"]
# The sdist is a public artifact: allowlist what a user or downstream packager
# needs. Without this, hatchling ships every tracked file — which for 0.1.2
# meant internal strategy docs (docs/superpowers/), agent instructions
# (CLAUDE.md), and the whole bench/ harness went to PyPI.
[tool.hatch.build.targets.sdist]
# Leading slashes anchor to the project root (gitwildmatch): an unanchored
# "src/" would also match e.g. .claude/worktrees/*/src/ at any depth.
include = [
"/src/",
"/tests/",
"/examples/",
"/README.md",
"/ARCHITECTURE.md",
"/PERFORMANCE.md",
"/CHANGELOG.md",
"/LICENSE",
"/server.json",
"/pyproject.toml",
]
exclude = [
"/.claude/",
"/.gitignore",
# These test the bench/ harness (not shipped) via sys.path insertion and
# cannot collect without it; the fixtures are their LongMemEval-derived data.
"/tests/test_phase2_*.py",
"/tests/test_escalation_probe.py",
"/tests/fixtures/",
]
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["tests"]