cortex-local 2.0.3__tar.gz → 2.0.5__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cortex-local
3
- Version: 2.0.3
3
+ Version: 2.0.5
4
4
  Summary: Local semantic search MCP server — notes + code, embedded Qdrant, fastembed
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: click>=8.0.0
@@ -9,7 +9,7 @@ Requires-Dist: mcp[cli]>=1.0.0
9
9
  Requires-Dist: networkx>=3.0
10
10
  Requires-Dist: qdrant-client>=1.17.0
11
11
  Provides-Extra: legacy
12
- Requires-Dist: numpy<2.0,>=1.20; extra == 'legacy'
12
+ Requires-Dist: numpy==1.26.4; extra == 'legacy'
13
13
  Description-Content-Type: text/markdown
14
14
 
15
15
  # cortex-local
@@ -53,6 +53,7 @@ def install_cmd() -> None:
53
53
  result = subprocess.run(
54
54
  ["claude", "mcp", "add", "cortex", "--transport", "stdio", "cortex", "serve"],
55
55
  capture_output=True, text=True,
56
+ shell=(sys.platform == "win32"),
56
57
  )
57
58
  if result.returncode == 0:
58
59
  click.echo("Done. cortex is ready — restart Claude Code to activate.")
@@ -1,5 +1,9 @@
1
1
  """fastembed-based dense + sparse embeddings for cortex local mode."""
2
2
 
3
+ import os
4
+
5
+ os.environ.setdefault("HF_HUB_DISABLE_SYMLINKS_WARNING", "1")
6
+
3
7
  from .config import EMBED_MODEL
4
8
 
5
9
  _dense = None
@@ -41,7 +45,9 @@ def sparse_embed(text: str) -> tuple:
41
45
 
42
46
  def pull_models() -> None:
43
47
  """Pre-download embedding models (run at install time)."""
44
- print("Pulling fastembed models...")
48
+ print("Pulling fastembed models (this may take a few minutes on first run)...")
49
+ print(" [1/2] Downloading nomic-embed-text-v1.5 (~270 MB)...", flush=True)
45
50
  embed("warmup")
51
+ print(" [2/2] Downloading BM25 sparse model...", flush=True)
46
52
  sparse_embed("warmup")
47
53
  print("Models ready.")
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "cortex-local"
7
- version = "2.0.3"
7
+ version = "2.0.5"
8
8
  description = "Local semantic search MCP server — notes + code, embedded Qdrant, fastembed"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -17,7 +17,7 @@ dependencies = [
17
17
  ]
18
18
 
19
19
  [project.optional-dependencies]
20
- legacy = ["numpy>=1.20,<2.0"]
20
+ legacy = ["numpy==1.26.4"]
21
21
 
22
22
  [project.scripts]
23
23
  cortex = "cortex.cli:cli"
File without changes