vault-cortex 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,7 +8,7 @@ npx vault-cortex@latest init
8
8
  ```
9
9
 
10
10
  Vault Cortex is a standalone, remote-capable MCP server for Obsidian vaults —
11
- 25 tools for hybrid search (FTS5 + vector), notes, frontmatter, links, daily notes, and
11
+ 25 tools for hybrid search (FTS5 + vector + cross-encoder reranking), notes, frontmatter, links, daily notes, and
12
12
  a structured memory layer, plus 3 guided prompts (orientation, memory review,
13
13
  daily review). It runs as a Docker container; this CLI scaffolds the config so
14
14
  you don't have to.
package/dist/env.js CHANGED
@@ -17,6 +17,13 @@ const LOCAL_OPTIONAL_BLOCK = `# Optional ─────────────
17
17
  # Set to false to disable model download and use FTS5 search only.
18
18
  # EMBEDDING_ENABLED=true
19
19
 
20
+ # Reranking mode for hybrid search results (default: blended).
21
+ # "blended" uses a cross-encoder to refine result ordering with
22
+ # position-aware score blending (~200ms added latency).
23
+ # "none" skips reranking for lower latency.
24
+ # Only takes effect when EMBEDDING_ENABLED=true.
25
+ # RERANK_MODE=blended
26
+
20
27
  # Enable or disable the memory layer (default: true).
21
28
  # Set to false to hide memory tools and skip About Me/ creation.
22
29
  # MEMORY_ENABLED=true
@@ -36,6 +43,12 @@ const LOCAL_OPTIONAL_BLOCK = `# Optional ─────────────
36
43
 
37
44
  # Days to retain persistent log files before cleanup (default: 30).
38
45
  # LOG_RETENTION_DAYS=30
46
+
47
+ # Windows users: set this to true. Makes a vault stored on a C: drive work
48
+ # through Docker Desktop (switches the file watcher to polling and note moves
49
+ # to rename-based writes). Only strictly needed when your vault is on a C:
50
+ # drive rather than inside WSL2, but harmless to enable for any Windows setup.
51
+ # WINDOWS_MODE=true
39
52
  `;
40
53
  const REMOTE_OPTIONAL_BLOCK = `# Optional ──────────────────────────────────────────────────
41
54
  # To override a setting: uncomment it, set a value, then apply with
@@ -52,6 +65,13 @@ const REMOTE_OPTIONAL_BLOCK = `# Optional ────────────
52
65
  # Set to false to disable model download and use FTS5 search only.
53
66
  # EMBEDDING_ENABLED=true
54
67
 
68
+ # Reranking mode for hybrid search results (default: blended).
69
+ # "blended" uses a cross-encoder to refine result ordering with
70
+ # position-aware score blending (~200ms added latency).
71
+ # "none" skips reranking for lower latency.
72
+ # Only takes effect when EMBEDDING_ENABLED=true.
73
+ # RERANK_MODE=blended
74
+
55
75
  # Enable or disable the memory layer (default: true).
56
76
  # Set to false to hide memory tools and skip About Me/ creation.
57
77
  # MEMORY_ENABLED=true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vault-cortex",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Set up a Vault Cortex MCP server for your Obsidian vault in one command: npx vault-cortex init",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -36,7 +36,10 @@
36
36
  "knowledge-base",
37
37
  "note-taking",
38
38
  "second-brain",
39
- "full-text-search",
39
+ "hybrid-search",
40
+ "semantic-search",
41
+ "cross-encoder",
42
+ "reranking",
40
43
  "cli"
41
44
  ],
42
45
  "dependencies": {
@@ -26,6 +26,7 @@ services:
26
26
  MCP_AUTH_TOKEN: "${MCP_AUTH_TOKEN:?Set MCP_AUTH_TOKEN in .env — see .env.example}"
27
27
  PUBLIC_URL: ${PUBLIC_URL:-http://localhost:8000}
28
28
  EMBEDDING_ENABLED: ${EMBEDDING_ENABLED:-true}
29
+ RERANK_MODE: ${RERANK_MODE:-blended}
29
30
  MEMORY_ENABLED: ${MEMORY_ENABLED:-true}
30
31
  MEMORY_DIR: ${MEMORY_DIR:-About Me}
31
32
  LOG_LEVEL: ${LOG_LEVEL:-info}
@@ -34,7 +35,7 @@ services:
34
35
  TZ: ${TZ:-UTC}
35
36
  # Windows: set WINDOWS_MODE=true in .env when your vault is on a C: drive
36
37
  # (polling watcher + rename-based moves across the Docker Desktop/WSL2 bridge).
37
- WINDOWS_MODE: ${WINDOWS_MODE:-}
38
+ WINDOWS_MODE: ${WINDOWS_MODE:-false}
38
39
  # Optional overrides. When unset, the server applies smart defaults
39
40
  # (<MEMORY_DIR> below is the resolved MEMORY_DIR value, default "About Me"):
40
41
  # PROTECTED_PATHS default: "<MEMORY_DIR>, Daily Notes" (blocked from vault_delete_note)
@@ -54,6 +54,7 @@ services:
54
54
  MCP_AUTH_TOKEN: "${MCP_AUTH_TOKEN:?Set MCP_AUTH_TOKEN in .env — see .env.example}"
55
55
  PUBLIC_URL: "${PUBLIC_URL:?Set PUBLIC_URL to your server's public URL}"
56
56
  EMBEDDING_ENABLED: ${EMBEDDING_ENABLED:-true}
57
+ RERANK_MODE: ${RERANK_MODE:-blended}
57
58
  MEMORY_ENABLED: ${MEMORY_ENABLED:-true}
58
59
  MEMORY_DIR: ${MEMORY_DIR:-About Me}
59
60
  LOG_LEVEL: ${LOG_LEVEL:-info}