forked from jason/echo
descrip length check and fix
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "echo-memory",
|
||||
"version": "1.2.0",
|
||||
"description": "Persistent memory via the ECHO Obsidian vault over the Obsidian Local REST API. Cross-platform Python client (connection-pooled, with concurrent full-vault reads): one-call capture/resolve/recall/link over an entity index, hybrid BM25 + graph recall, auto-linking, an offline write-ahead queue + read cache, lock-guarded concurrency, and session-reflection capture, plus a linter-enforced routing manifest and /echo-load|save|recall|triage|health|sweep|reflect|doctor commands. Crosslinks notes across Claude/CoWork sessions.",
|
||||
"description": "Persistent memory via the ECHO Obsidian vault over the Obsidian Local REST API. A cross-platform, connection-pooled Python client: one-call capture/resolve/recall/link over an entity index, hybrid BM25 + graph recall, auto-linking, an offline write-ahead queue, and lock-guarded concurrency. Linter-enforced routing manifest plus /echo-load|save|recall|triage|health|sweep|reflect|doctor commands. Crosslinks notes across Claude and CoWork sessions.",
|
||||
"author": {
|
||||
"name": "Jason"
|
||||
},
|
||||
|
||||
@@ -61,6 +61,15 @@ def test_read_many_tolerates_unreadable_file_as_none() -> None:
|
||||
echo.get_text = orig
|
||||
|
||||
|
||||
def test_plugin_description_under_500_chars() -> None:
|
||||
# Marketplace cap — the description has silently regressed past it before (a 525-char
|
||||
# relapse + an earlier "fix description length" commit). build.py fails the build on this;
|
||||
# this guards it in CI so it's caught before packaging.
|
||||
manifest = Path(__file__).resolve().parents[3] / ".claude-plugin" / "plugin.json"
|
||||
desc = json.loads(manifest.read_text(encoding="utf-8")).get("description", "")
|
||||
assert 0 < len(desc) < 500, f"plugin description is {len(desc)} chars (must be under 500)"
|
||||
|
||||
|
||||
def test_stem_extracts_literal_directory_prefix() -> None:
|
||||
assert check_routing.stem(r"^projects/active/[^/]+\.md$") == "projects/active/"
|
||||
assert check_routing.stem(r"^areas/(business|personal)/[^/]+\.md$") == "areas/"
|
||||
|
||||
Reference in New Issue
Block a user