mem0-open-mcp 0.1.3__tar.gz → 0.1.4__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.
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/PKG-INFO +1 -1
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/pyproject.toml +1 -1
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/src/mem0_server/cli.py +12 -3
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/.env.example +0 -0
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/.github/workflows/publish.yml +0 -0
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/.gitignore +0 -0
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/Dockerfile +0 -0
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/README.md +0 -0
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/docker-compose.yaml +0 -0
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/examples/ollama-config.yaml +0 -0
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/mem0-open-mcp.example.yaml +0 -0
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/src/mem0_server/__init__.py +0 -0
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/src/mem0_server/api/__init__.py +0 -0
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/src/mem0_server/api/routes.py +0 -0
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/src/mem0_server/config/__init__.py +0 -0
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/src/mem0_server/config/loader.py +0 -0
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/src/mem0_server/config/schema.py +0 -0
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/src/mem0_server/mcp/__init__.py +0 -0
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/src/mem0_server/mcp/server.py +0 -0
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/src/mem0_server/server.py +0 -0
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/src/mem0_server/utils/__init__.py +0 -0
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/tests/test_api.py +0 -0
- {mem0_open_mcp-0.1.3 → mem0_open_mcp-0.1.4}/tests/test_config.py +0 -0
|
@@ -35,6 +35,14 @@ UPDATE_CHECK_CACHE = Path.home() / ".cache" / "mem0-open-mcp" / "update_check.js
|
|
|
35
35
|
UPDATE_CHECK_INTERVAL = 86400 # 24 hours
|
|
36
36
|
|
|
37
37
|
|
|
38
|
+
def _parse_version(v: str) -> tuple[int, ...]:
|
|
39
|
+
"""Parse version string to tuple for comparison."""
|
|
40
|
+
try:
|
|
41
|
+
return tuple(int(x) for x in v.split(".")[:3])
|
|
42
|
+
except (ValueError, AttributeError):
|
|
43
|
+
return (0, 0, 0)
|
|
44
|
+
|
|
45
|
+
|
|
38
46
|
def _check_for_updates() -> None:
|
|
39
47
|
"""Check PyPI for newer version (once per day)."""
|
|
40
48
|
try:
|
|
@@ -44,9 +52,10 @@ def _check_for_updates() -> None:
|
|
|
44
52
|
if UPDATE_CHECK_CACHE.exists():
|
|
45
53
|
cache = json.loads(UPDATE_CHECK_CACHE.read_text())
|
|
46
54
|
if now - cache.get("last_check", 0) < UPDATE_CHECK_INTERVAL:
|
|
47
|
-
|
|
55
|
+
latest = cache.get("latest")
|
|
56
|
+
if latest and _parse_version(latest) > _parse_version(__version__):
|
|
48
57
|
console.print(
|
|
49
|
-
f"[yellow]Update available: {__version__} → {
|
|
58
|
+
f"[yellow]Update available: {__version__} → {latest}[/yellow]\n"
|
|
50
59
|
f"[dim] pip install --upgrade mem0-open-mcp[/dim]\n"
|
|
51
60
|
)
|
|
52
61
|
return
|
|
@@ -58,7 +67,7 @@ def _check_for_updates() -> None:
|
|
|
58
67
|
|
|
59
68
|
UPDATE_CHECK_CACHE.write_text(json.dumps({"last_check": now, "latest": latest}))
|
|
60
69
|
|
|
61
|
-
if latest
|
|
70
|
+
if _parse_version(latest) > _parse_version(__version__):
|
|
62
71
|
console.print(
|
|
63
72
|
f"[yellow]Update available: {__version__} → {latest}[/yellow]\n"
|
|
64
73
|
f"[dim] pip install --upgrade mem0-open-mcp[/dim]\n"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|