Tal Muskal
9ca70264f3
style: format test files with ruff
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-08 21:08:49 +03:00
Tal Muskal
e24d8ca733
test: expand coverage to 70%, fix mcp_server CI crash (threshold 60%)
...
Add/expand tests for normalize (39%→97%), searcher (39%→100%),
layers (28%→97%), split_mega_files (34%→72%).
Fix mcp_server.py parse_args→parse_known_args to prevent SystemExit
when imported during pytest (CI was crashing on all test jobs).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-08 21:07:03 +03:00
Tal Muskal
03e9b57108
test: add comprehensive test coverage (35% → 58%, threshold 50%)
...
Add 180+ new tests across 10 test files covering previously untested modules:
- instructions_cli (0% → 100%), hooks_cli (73% → 96%), spellcheck (28% → 84%)
- palace_graph (9% → 91%), general_extractor (0% → 92%), entity_detector (0% → 69%)
- entity_registry (0% → 70%), room_detector_local (0% → 55%), layers (0% → 28%)
- onboarding (0% → 36%)
Also fixes Windows encoding bug in onboarding.py (write_text without encoding="utf-8").
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-08 20:54:56 +03:00
Ben Sigman
59d011a23b
Merge pull request #270 from tmuskal/main
...
Package MemPalace as standard Claude and Codex plugins with easy installation
2026-04-08 10:41:45 -07:00
Tal Muskal
9de302f881
feat: update README and CI configuration, add tests for hooks functionality
2026-04-08 20:40:03 +03:00
Igor Lins e Silva
47696bef8c
fix: address Copilot review — derive MCP version, improve test isolation and portability
2026-04-08 04:41:03 -03:00
Igor Lins e Silva
a67b00d7c7
perf: cache ChromaDB PersistentClient instead of re-instantiating per call
...
The MCP server previously created a new PersistentClient on every tool
call via _get_collection(). This incurs HNSW index loading overhead
on each request.
Cache the client and collection at module level. The cache resets
naturally on process restart (MCP runs as a subprocess).
Also adds a _reset_mcp_cache fixture to conftest.py for test isolation.
Includes test infrastructure from PR #131 .
92 tests pass.
2026-04-08 04:39:19 -03:00
Ben Sigman
a8de2911e5
Merge pull request #136 from igorls/fix/kg-hardening
...
fix: enable SQLite WAL mode and add consistent LIMIT to KG timeline
2026-04-07 16:05:13 -07:00
Igor Lins e Silva
d3145e9a7b
fix: update dialect tests for PR #147 stats API and remove unused fixture param
2026-04-07 18:58:25 -03:00
Igor Lins e Silva
6fa985eac2
fix: update dialect tests for PR #147 stats API and remove unused fixture param
2026-04-07 18:58:20 -03:00
Igor Lins e Silva
b45bff9db1
test: add WAL mode and entity timeline limit assertions
2026-04-07 18:27:19 -03:00
Igor Lins e Silva
5ac4947d02
fix: preserve CLI exit codes, log tracebacks, sanitize search errors, validate fixture
2026-04-07 18:26:39 -03:00
Ben Sigman
27623a3b17
Merge pull request #131 from igorls/test/expand-coverage-and-uv-migration
...
test: expand coverage from 20 to 92 tests, migrate to uv
2026-04-07 14:15:01 -07:00
Igor Lins e Silva
96de23cd97
fix: CI failures — update workflow for uv migration, fix lint and format
...
- Switch CI install step from `pip install -r requirements.txt` to
`pip install -e ".[dev]"` since requirements.txt was removed
- Add noqa: E402 to intentionally-late imports in conftest.py
(HOME must be isolated before mempalace imports)
- Remove unused KnowledgeGraph import in test_knowledge_graph.py
- Apply ruff formatting to test files
2026-04-07 17:59:21 -03:00
Ben Sigman
3068f75c2d
Merge pull request #22 from sheetsync/bugfix/split-known-names-loading
...
refactor: consolidate split known-names config loading
2026-04-07 13:58:54 -07:00
Igor Lins e Silva
cd8b245fdc
fix: address Copilot review — remove unused imports, isolate HOME in tests, restore dev extra
2026-04-07 17:55:10 -03:00
Igor Lins e Silva
72c548b729
test: expand coverage from 20 to 92 tests, migrate to uv
...
- Migrate from setuptools to hatchling build backend
- Add dependency-groups (PEP 735) for dev tooling (pytest, ruff)
- Remove redundant requirements.txt in favor of uv.lock
- Fix __version__ mismatch (2.0.0 -> 3.0.0 to match pyproject.toml)
New test files:
- conftest.py: shared fixtures (isolated palace, KG, ChromaDB collection)
- test_knowledge_graph.py: 17 tests (entity CRUD, temporal queries, timeline)
- test_mcp_server.py: 25 tests (protocol dispatch, read/write/KG/diary tools)
- test_searcher.py: 7 tests (search_memories API, filters, error handling)
- test_dialect.py: 13 tests (AAAK compression, entity/emotion detection, zettel encoding)
All 92 tests pass on Python 3.13 with chromadb 0.6.3.
2026-04-07 17:55:10 -03:00
Ben Sigman
e8f9b47e31
Merge pull request #16 from sheetsync/bugfix/version-consistency
...
fix: unify package and MCP version reporting
2026-04-07 13:54:03 -07:00
ac-opensource
c8c220d789
fix: support nested .gitignore rules during mining
2026-04-08 00:02:21 +08:00
ac-opensource
9b9daa9b4b
fix: respect .gitignore during project mining
2026-04-07 22:26:06 +08:00
James Cane
0808ad96c2
refactor: consolidate split known-names config loading
2026-04-07 09:16:07 +01:00
James Cane
55152ce476
fix: unify package and MCP version reporting
2026-04-07 08:53:25 +01:00
bensig
0f8fa8c7d5
bench: add benchmark runners, results docs, and test suite
...
Benchmarks: LongMemEval, LoCoMo, ConvoMem, MemBench runners with
methodology docs and hybrid retrieval analysis.
Tests: config, miner, convo_miner, normalize — 9 tests, all passing.
2026-04-04 18:33:42 -07:00