qmd/test
Haitao Pan 47bd3ded44 feat(pg): add switchable PostgreSQL backend + OpenClaw/Hermes memory bridge
Add an optional PostgreSQL backend (QMD_BACKEND=pg) alongside the
unchanged default SQLite path. PG store uses pgvector (HNSW) for vectors
and pg_jieba + pg_trgm for full-text/Chinese tokenization, with a
namespace column isolating multi-agent memory (openclaw/hermes).

- src/pg/: config, db-pg, schema bootstrap, memory store
- MCP memory_add/memory_search/memory_get tools; qmd pg status + memory CLI
- connection via QMD_PG_URL/DATABASE_URL/qmd config, stunnel TLS 5443
- tests: pg-config (unit) + pg-memory integration (gated on QMD_PG_URL) + pg-compose
- docs/plan: plan, usage, test report, changelog; track docs/**/*.md

SQLite path: zero regression (typecheck clean, 249 passed / 6 skipped).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 19:13:04 +08:00
..
eval-docs Add 6 synthetic evaluation documents 2025-12-21 13:10:35 -04:00
ast-chunking.test.ts chore: migrate AST chunking tests to vitest 2026-04-05 17:19:59 -04:00
ast.test.ts feat: AST-aware chunking for code files via tree-sitter 2026-03-22 01:22:39 -04:00
bench-score.test.ts feat(cli): add qmd bench command for search quality benchmarks 2026-04-05 17:17:59 -04:00
cli.test.ts fix(cli): make status device probe opt-in 2026-04-21 21:45:52 -04:00
collections-config.test.ts fix(test): reset currentIndexName between test files 2026-02-18 15:53:58 -04:00
Containerfile test: restructure container smoke tests for interactive use 2026-02-22 11:09:36 -04:00
eval-bm25.test.ts test: move all tests to flat test/ directory 2026-02-15 21:37:47 -04:00
eval-deep-research.jsonl Merge origin/main into feat/ast-aware-chunking 2026-03-28 20:00:49 -04:00
eval-deep-research.ts Merge origin/main into feat/ast-aware-chunking 2026-03-28 20:00:49 -04:00
eval-harness.ts refactor: move CLI and MCP to subdirectories, MCP consumes SDK 2026-03-10 11:39:55 -04:00
eval.test.ts test: move all tests to flat test/ directory 2026-02-15 21:37:47 -04:00
formatter.test.ts Add line to JSON search output 2026-04-05 10:08:57 +00:00
intent.test.ts refactor: move CLI and MCP to subdirectories, MCP consumes SDK 2026-03-10 11:39:55 -04:00
launcher-detection.test.sh feat: default to NVIDIA embeddings 2026-05-09 16:50:04 +08:00
llm.test.ts feat: add NVIDIA embedding API support and QMD remote sync 2026-06-12 07:32:43 +08:00
mcp.test.ts fix(test): resolve LLM test timeouts by disabling file parallelism 2026-04-11 01:21:22 +00:00
multi-collection-filter.test.ts refactor: replace bash wrapper with standard #!/usr/bin/env node shebang 2026-02-22 11:09:36 -04:00
pg-compose.yml feat(pg): add switchable PostgreSQL backend + OpenClaw/Hermes memory bridge 2026-06-23 19:13:04 +08:00
pg-config.test.ts feat(pg): add switchable PostgreSQL backend + OpenClaw/Hermes memory bridge 2026-06-23 19:13:04 +08:00
pg-memory.integration.test.ts feat(pg): add switchable PostgreSQL backend + OpenClaw/Hermes memory bridge 2026-06-23 19:13:04 +08:00
rrf-trace.test.ts feat(query): add --explain score traces for hybrid search 2026-03-07 14:35:10 -04:00
sdk.test.ts fix(test): resolve LLM test timeouts by disabling file parallelism 2026-04-11 01:21:22 +00:00
smoke-install.sh test: restructure container smoke tests for interactive use 2026-02-22 11:09:36 -04:00
store-paths.test.ts test: move all tests to flat test/ directory 2026-02-15 21:37:47 -04:00
store.helpers.unit.test.ts fix: preserve original case in handelize() 2026-04-09 07:59:22 +09:00
store.test.ts fix: disable local qmd models by default 2026-05-23 11:04:48 +08:00
structured-search.test.ts fix: handle hyphenated tokens in FTS5 lex queries 2026-03-24 20:13:52 -04:00
sync.test.ts feat: add NVIDIA embedding API support and QMD remote sync 2026-06-12 07:32:43 +08:00