lmem 0.2.2__tar.gz → 0.2.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.
@@ -12,4 +12,5 @@ __pycache__/
12
12
  *.egg-info/
13
13
  /python/dist/
14
14
  /python/build/
15
+ /python/src/lmem/bin/
15
16
  .pytest_cache/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: lmem
3
- Version: 0.2.2
3
+ Version: 0.2.4
4
4
  Summary: Ultra-Fast Local AI Agent Persistent Memory Engine with Neural Extractive QA & Knowledge Graph
5
5
  Project-URL: Homepage, https://github.com/krishnakanthpathi/lightmem
6
6
  Project-URL: Repository, https://github.com/krishnakanthpathi/lightmem
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "lmem"
7
- version = "0.2.2"
7
+ version = "0.2.4"
8
8
  description = "Ultra-Fast Local AI Agent Persistent Memory Engine with Neural Extractive QA & Knowledge Graph"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -15,7 +15,7 @@ from .models import (
15
15
  )
16
16
  from .binary import get_binary_path
17
17
 
18
- __version__ = "0.2.2"
18
+ __version__ = "0.2.4"
19
19
  __all__ = [
20
20
  "LightMem",
21
21
  "Memory",
@@ -45,6 +45,11 @@ def get_binary_path() -> str:
45
45
  3. PATH, filtering out Python wrapper scripts
46
46
  4. Auto-downloads prebuilt binary to `~/.lightmem/bin/lmem` if missing.
47
47
  """
48
+ # 0. Check bundled binary packaged directly with the Python wheel (site-packages/lmem/bin/lmem)
49
+ bundled = Path(__file__).parent / "bin" / ("lmem.exe" if platform.system() == "Windows" else "lmem")
50
+ if _is_native_binary(bundled):
51
+ return str(bundled)
52
+
48
53
  env_path = os.environ.get("LMEM_BINARY_PATH") or os.environ.get("LIGHTMEM_BINARY_PATH")
49
54
  if env_path and _is_native_binary(env_path):
50
55
  return env_path
@@ -85,7 +90,7 @@ def get_binary_path() -> str:
85
90
  )
86
91
 
87
92
 
88
- def ensure_binary_downloaded(version: str = "v0.2.2") -> str:
93
+ def ensure_binary_downloaded(version: str = "v0.2.4") -> str:
89
94
  """Downloads pre-built release binary for current system into ~/.lightmem/bin/lmem."""
90
95
  system = platform.system().lower()
91
96
  machine = platform.machine().lower()
@@ -131,10 +136,10 @@ def ensure_binary_downloaded(version: str = "v0.2.2") -> str:
131
136
  return str(dest_exe)
132
137
  except Exception as e:
133
138
  tmp_archive.unlink(missing_ok=True)
134
- # Fall back to v0.2.1 if v0.2.2 is still building on GitHub Actions
135
- if version != "v0.2.1":
139
+ # Fall back to v0.2.3 if v0.2.4 is still building on GitHub Actions
140
+ if version != "v0.2.3":
136
141
  try:
137
- return ensure_binary_downloaded(version="v0.2.1")
142
+ return ensure_binary_downloaded(version="v0.2.3")
138
143
  except Exception:
139
144
  pass
140
145
  raise RuntimeError(f"Failed to auto-download lmem binary from {url}: {e}")
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes