cortex-local 2.3.3__tar.gz → 2.3.6__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.
Files changed (23) hide show
  1. {cortex_local-2.3.3 → cortex_local-2.3.6}/PKG-INFO +1 -1
  2. cortex_local-2.3.6/tests/test_imports.py +56 -0
  3. {cortex_local-2.3.3 → cortex_local-2.3.6}/README.md +0 -0
  4. {cortex_local-2.3.3 → cortex_local-2.3.6}/cortex/__init__.py +0 -0
  5. {cortex_local-2.3.3 → cortex_local-2.3.6}/cortex/cli.py +0 -0
  6. {cortex_local-2.3.3 → cortex_local-2.3.6}/cortex/config.py +0 -0
  7. {cortex_local-2.3.3 → cortex_local-2.3.6}/cortex/core/__init__.py +0 -0
  8. {cortex_local-2.3.3 → cortex_local-2.3.6}/cortex/core/cache.py +0 -0
  9. {cortex_local-2.3.3 → cortex_local-2.3.6}/cortex/core/chunker.py +0 -0
  10. {cortex_local-2.3.3 → cortex_local-2.3.6}/cortex/core/code_graph.py +0 -0
  11. {cortex_local-2.3.3 → cortex_local-2.3.6}/cortex/core/formatters.py +0 -0
  12. {cortex_local-2.3.3 → cortex_local-2.3.6}/cortex/core/global_graph.py +0 -0
  13. {cortex_local-2.3.3 → cortex_local-2.3.6}/cortex/core/graph.py +0 -0
  14. {cortex_local-2.3.3 → cortex_local-2.3.6}/cortex/core/notes_graph.py +0 -0
  15. {cortex_local-2.3.3 → cortex_local-2.3.6}/cortex/core/roslyn_analyzer.py +0 -0
  16. {cortex_local-2.3.3 → cortex_local-2.3.6}/cortex/core/roslyn_tool/CortexAnalyzer.csproj +0 -0
  17. {cortex_local-2.3.3 → cortex_local-2.3.6}/cortex/core/roslyn_tool/Program.cs +0 -0
  18. {cortex_local-2.3.3 → cortex_local-2.3.6}/cortex/embedder.py +0 -0
  19. {cortex_local-2.3.3 → cortex_local-2.3.6}/cortex/indexer.py +0 -0
  20. {cortex_local-2.3.3 → cortex_local-2.3.6}/cortex/mcp_server.py +0 -0
  21. {cortex_local-2.3.3 → cortex_local-2.3.6}/cortex/state.py +0 -0
  22. {cortex_local-2.3.3 → cortex_local-2.3.6}/cortex/watcher.py +0 -0
  23. {cortex_local-2.3.3 → cortex_local-2.3.6}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cortex-local
3
- Version: 2.3.3
3
+ Version: 2.3.6
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
@@ -0,0 +1,56 @@
1
+ """Smoke tests — validate local package imports and critical instantiations before PyPI publish."""
2
+
3
+ import sys
4
+
5
+
6
+ def test_mcp_import():
7
+ from mcp.server.mcpserver import MCPServer
8
+ assert MCPServer is not None
9
+
10
+
11
+ def test_mcp_instantiation():
12
+ from mcp.server.mcpserver import MCPServer
13
+ mcp = MCPServer("cortex-test")
14
+ assert mcp is not None
15
+
16
+
17
+ def test_qdrant_client_import():
18
+ from qdrant_client import QdrantClient
19
+ assert QdrantClient is not None
20
+
21
+
22
+ def test_fastembed_import():
23
+ from fastembed import TextEmbedding
24
+ assert TextEmbedding is not None
25
+
26
+
27
+ def test_click_import():
28
+ import click
29
+ assert click is not None
30
+
31
+
32
+ def test_mcp_server_module():
33
+ from cortex.mcp_server import mcp
34
+ assert mcp is not None
35
+
36
+
37
+ def test_cli_module():
38
+ from cortex.cli import cli
39
+ assert cli is not None
40
+
41
+
42
+ if __name__ == "__main__":
43
+ import traceback
44
+ tests = [v for k, v in list(globals().items()) if k.startswith("test_")]
45
+ passed = failed = 0
46
+ for t in tests:
47
+ try:
48
+ t()
49
+ print(f" ok {t.__name__}")
50
+ passed += 1
51
+ except Exception:
52
+ print(f" FAIL {t.__name__}")
53
+ traceback.print_exc()
54
+ failed += 1
55
+ print(f"\n{passed} passed, {failed} failed")
56
+ sys.exit(1 if failed else 0)
File without changes
File without changes