Scripts become thin CLIs over kb_framework (graph, query, query_tools, vault, instructions) so the hosted read-only connector shares one implementation with the stdio server. The MCP server builds the graph from Markdown on demand and invalidates it on writes; refresh_graph rebuilds in memory and reports validation problems. Pre-commit hook validates only; index/graph.json is no longer read, written or staged (generate-graph.py --write remains for operators). Golden fixtures pin graph and tool payloads to the previous output. Agent and skill docs updated to match. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
25 lines
821 B
TOML
25 lines
821 B
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "kb-framework"
|
|
version = "0.2.0"
|
|
description = "Knowledge-base framework core: in-memory graph, query tools, vault access policy"
|
|
readme = "README.md"
|
|
requires-python = ">=3.12"
|
|
license = { text = "MIT" }
|
|
dependencies = []
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["kb_framework"]
|
|
|
|
# Bundle the agent instructions so `read_instructions` works from an installed
|
|
# wheel (e.g. inside the hosted connector image), not only from a checkout.
|
|
[tool.hatch.build.targets.wheel.force-include]
|
|
"AGENTS.md" = "kb_framework/_docs/AGENTS.md"
|
|
"AGENT_QUERY_GUIDE.md" = "kb_framework/_docs/AGENT_QUERY_GUIDE.md"
|
|
|
|
[tool.hatch.build.targets.sdist]
|
|
include = ["kb_framework", "AGENTS.md", "AGENT_QUERY_GUIDE.md", "README.md", "pyproject.toml"]
|