Added
- First-class OpenClaw agent support —
lean-ctx init --agent openclawwrites the MCP server entry to~/.openclaw/openclaw.jsonundermcp.servers.lean-ctx(nested JSON structure), installs global rules to~/.openclaw/rules/lean-ctx.md, and copies the LeanCTX SKILL.md to~/.openclaw/skills/lean-ctx/.lean-ctx doctordetects OpenClaw installations.lean-ctx setupauto-configures when~/.openclaw/exists - Context package graph-native architecture (
.ctxpkgv2) — NewContextGraphdata model (ContextNode,ContextEdge) with activation weights and temporal metadata. Graph-merge composition with conflict detection and contradiction resolution. Ed25519 package signing with hex-encoded key verification. Manifest schema version 2 with scoped package names (@scope/name) and conformance levels (Basic, Graph, Cognitive). Newdocs/specs/with JSON schema - LeanCTX Custom GPT documentation — Knowledge base and system prompt prepared for creating a ChatGPT Custom GPT to answer lean-ctx documentation questions (files in
docs/gpt/, gitignored)
Fixed
ctx_sessionfinding panic on em-dash (#272) —parse_finding_valuecrashed on multi-byte separators like" — "(space + U+2014 EM DASH + space = 5 bytes) because the code assumed a 3-byte ASCII separator. Now dynamically determines separator length usingstr::len(). Added 6 regression tests including exact repro with Cyrillic text from the issue report- Panic handler returns
isError: false— Thecatch_unwindblock in the MCP server returned panics as successful tool results (isError: false), hiding crashes from AI agents. Now returnsCallToolResult::errorsoisError: trueis set correctly
Upgrade
lean-ctx update # recommended (auto-downloads + refreshes shell hooks)
cargo install lean-ctx # or
npm update -g lean-ctx-bin # or
brew upgrade lean-ctxNote: After upgrading via cargo/npm/brew, run
lean-ctx setupto refresh shell aliases.lean-ctx updatedoes this automatically.
Full Changelog: v3.6.16...v3.6.16