sqlite-graph-memory 0.3.3__py3-none-any.whl → 0.3.6__py3-none-any.whl

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.
@@ -21,6 +21,6 @@ the indexer and the reranker will tell you what is missing instead of failing
21
21
  on an ``ImportError`` at startup.
22
22
  """
23
23
 
24
- __version__ = "0.3.3"
24
+ __version__ = "0.3.6"
25
25
 
26
26
  __all__ = ["__version__"]
@@ -49,13 +49,37 @@ ENTITY_TOOLS = {'obsidian', 'syncthing', 'sqlite', 'telegram', 'whatsapp', 'n8n'
49
49
 
50
50
 
51
51
  _EMBEDDINGS_HINT = (
52
- "This step needs the optional embedding stack (sentence-transformers, torch).\n"
53
- "Install it with: pip install 'sqlite-graph-memory[embeddings]'\n"
52
+ "This step needs an embedding stack.\n"
53
+ "Light, no torch (~60 MB): pip install 'sqlite-graph-memory[lite]'\n"
54
+ "Torch, for a GPU: pip install 'sqlite-graph-memory[embeddings]'\n"
54
55
  "The base install stays small on purpose: the graph half, the SQLite schema\n"
55
56
  "and the turnstate memory work without it."
56
57
  )
57
58
 
58
59
 
60
+ def backend(env=None):
61
+ """'onnx' or 'torch': which stack runs the two models.
62
+
63
+ SGM_BACKEND=onnx|torch forces one. Unset (auto): ONNX whenever the lite stack is
64
+ installed, because it starts in seconds where torch took 44 s just to import on a
65
+ CPU laptop (2026-11-01); otherwise sentence-transformers, as before. Both run the
66
+ same checkpoints, so an index built by one is searched correctly by the other.
67
+ """
68
+ env = os.environ if env is None else env
69
+ want = (env.get('SGM_BACKEND') or 'auto').strip().lower()
70
+ if want in ('onnx', 'torch'):
71
+ return want
72
+ return 'onnx' if _onnx().available() else 'torch'
73
+
74
+
75
+ def _onnx():
76
+ try:
77
+ from sqlite_graph_memory import onnx_backend
78
+ except ImportError: # run as a loose script next to onnx_backend.py
79
+ import onnx_backend
80
+ return onnx_backend
81
+
82
+
59
83
  def _require_sentence_transformers():
60
84
  """Import sentence_transformers, or exit with instructions.
61
85
 
@@ -71,6 +95,10 @@ def _require_sentence_transformers():
71
95
  return sentence_transformers
72
96
 
73
97
  def pick_device():
98
+ # The ONNX path runs on CPU; importing torch here only to ask about CUDA was the
99
+ # 44-second stall the lite backend exists to remove.
100
+ if backend() == 'onnx':
101
+ return 'cpu'
74
102
  try:
75
103
  import torch
76
104
  return 'cuda' if torch.cuda.is_available() else 'cpu'
@@ -106,13 +134,15 @@ def looks_like_entity(q):
106
134
 
107
135
 
108
136
  FENCED_CODE_RX = re.compile(r'(?:```[\s\S]*?```|~~~[\s\S]*?~~~)')
137
+ INLINE_CODE_RX = re.compile(r'`+[^`\n]*`+')
109
138
  WIKILINK_RX = re.compile(r'\[\[([^\]\|#]+)')
110
139
 
111
140
  def _links_in(path):
112
- """Outgoing wikilink TARGETS in a note (alias/heading stripped, code fences ignored)."""
141
+ """Outgoing wikilink TARGETS in a note (alias/heading stripped, code ignored)."""
113
142
  try: t = Path(path).read_text(encoding='utf-8', errors='ignore')
114
143
  except Exception: return []
115
144
  t = FENCED_CODE_RX.sub('', t)
145
+ t = INLINE_CODE_RX.sub('', t)
116
146
  return [m.strip() for m in WIKILINK_RX.findall(t)]
117
147
 
118
148
 
@@ -129,13 +159,42 @@ def load_index(emb_path=None, meta_path=None):
129
159
  return emb, meta
130
160
 
131
161
 
162
+ def _try_onnx(kind):
163
+ """The ONNX model, or None to fall back to torch.
164
+
165
+ Only an auto-picked ONNX falls back: someone who already has the torch models cached
166
+ and gets onnxruntime from another package may be offline, with no ONNX files yet.
167
+ Their recall must keep working on torch. SGM_BACKEND=onnx raises instead.
168
+ """
169
+ if backend() != 'onnx':
170
+ return None
171
+ try:
172
+ return getattr(_onnx(), kind)()
173
+ except Exception as exc:
174
+ if (os.getenv('SGM_BACKEND') or '').strip().lower() == 'onnx':
175
+ raise
176
+ try:
177
+ import sentence_transformers # noqa: F401
178
+ except ImportError:
179
+ raise exc
180
+ sys.stderr.write('ONNX %s unavailable (%s: %s); using torch\n'
181
+ % (kind, type(exc).__name__, str(exc).splitlines()[0] if str(exc) else ''))
182
+ return None
183
+
184
+
132
185
  def load_encoder(dev=None):
186
+ m = _try_onnx('Encoder')
187
+ if m is not None:
188
+ return m
133
189
  _require_sentence_transformers()
134
190
  from sentence_transformers import SentenceTransformer
135
191
  return SentenceTransformer(E5_MODEL, device=dev or pick_device())
136
192
 
137
193
 
138
194
  def load_reranker(dev=None):
195
+ m = _try_onnx('CrossEncoder')
196
+ if m is not None:
197
+ return m
139
198
  _require_sentence_transformers()
140
199
  from sentence_transformers import CrossEncoder
141
200
  return CrossEncoder(RERANK_MODEL, device=dev or pick_device())
@@ -294,6 +353,10 @@ def maybe_star_prompt(stream=None, env=None, interactive=None):
294
353
 
295
354
  def main():
296
355
  args = sys.argv[1:]
356
+ if '--version' in args:
357
+ from sqlite_graph_memory import __version__
358
+ print('sgm-ask %s' % __version__)
359
+ return
297
360
  ask = '--ask' in args
298
361
  graph = '--graph' in args; ab = '--ab' in args
299
362
  flags = {'--ask', '--graph', '--ab', '--ppr'}
@@ -0,0 +1,144 @@
1
+ """sgm-doctor: check this machine in plain words, one command, nothing downloaded.
2
+
3
+ Passport
4
+ in: environment (BRAIN_INDEX_DIR, HF_HOME), the installed packages
5
+ out: one line per check, ok / warn / fail, then a verdict; exit 1 if anything failed
6
+ who: a person who just ran `pip install sqlite-graph-memory` and got an error
7
+ rail: stdlib only. torch is imported inside a try block, because importing it is the check.
8
+ """
9
+ import os
10
+ import platform
11
+ import sqlite3
12
+ import sys
13
+ from pathlib import Path
14
+
15
+ from sqlite_graph_memory import brain_ask
16
+
17
+ OK, WARN, FAIL = 'ok', 'warn', 'fail'
18
+ MARK = {OK: '[ok] ', WARN: '[warn]', FAIL: '[FAIL]'}
19
+ FEEDBACK = brain_ask.FEEDBACK_URL
20
+
21
+
22
+ def check_python(version=None):
23
+ v = version or sys.version_info[:3]
24
+ if v < (3, 9):
25
+ return FAIL, 'Python %d.%d.%d is too old.' % v, 'Install Python 3.9 or newer.'
26
+ return OK, 'Python %d.%d.%d.' % v, ''
27
+
28
+
29
+ def check_numpy():
30
+ try:
31
+ import numpy
32
+ except ModuleNotFoundError:
33
+ return FAIL, 'numpy is not installed.', 'pip install sqlite-graph-memory'
34
+ return OK, 'numpy %s.' % numpy.__version__, ''
35
+
36
+
37
+ def _intel_mac(system=None, machine=None):
38
+ return (system or platform.system()) == 'Darwin' and (machine or platform.machine()) == 'x86_64'
39
+
40
+
41
+ def check_embeddings(system=None, machine=None):
42
+ """The heavy half. Without it the graph and the SQLite parts work, indexing and recall do not."""
43
+ if brain_ask.backend() == 'onnx':
44
+ try:
45
+ import onnxruntime
46
+ import tokenizers # noqa: F401
47
+ import huggingface_hub # noqa: F401
48
+ except Exception as exc:
49
+ why = '%s: %s' % (type(exc).__name__, str(exc).splitlines()[0] if str(exc) else '')
50
+ return FAIL, 'The light backend is incomplete (%s).' % why, \
51
+ 'Reinstall in a fresh virtualenv: pip install --force-reinstall "sqlite-graph-memory[lite]"'
52
+ return OK, 'Light backend: onnxruntime %s, no torch needed.' % onnxruntime.__version__, ''
53
+ try:
54
+ import numpy
55
+ np_major = int(numpy.__version__.split('.')[0])
56
+ except Exception:
57
+ np_major = 0
58
+ try:
59
+ import torch
60
+ import sentence_transformers
61
+ except ModuleNotFoundError as exc:
62
+ return (WARN, 'The embeddings extra is not installed (%s missing).' % exc.name,
63
+ 'Only needed to index and recall. Install it with: pip install "sqlite-graph-memory[lite]"'
64
+ ' (or [embeddings] for torch and a GPU)')
65
+ except Exception as exc: # torch dies at import on a numpy it was not built for
66
+ why = '%s: %s' % (type(exc).__name__, str(exc).splitlines()[0] if str(exc) else '')
67
+ if _intel_mac(system, machine) and np_major >= 2:
68
+ return (FAIL, 'torch cannot start on this Intel Mac with NumPy 2 (%s).' % why,
69
+ 'pip install "numpy<2"')
70
+ return FAIL, 'torch or sentence-transformers fails to import (%s).' % why, \
71
+ 'Reinstall in a fresh virtualenv: pip install --force-reinstall "sqlite-graph-memory[embeddings]"'
72
+ if _intel_mac(system, machine) and np_major >= 2:
73
+ return (WARN, 'Intel Mac with NumPy 2: torch imported, but this pairing is known to crash while indexing.',
74
+ 'pip install "numpy<2"')
75
+ return OK, 'torch %s and sentence-transformers %s import cleanly.' % (
76
+ torch.__version__, sentence_transformers.__version__), ''
77
+
78
+
79
+ def _hf_cache_dirs():
80
+ roots = [os.getenv('HF_HUB_CACHE'), os.getenv('SENTENCE_TRANSFORMERS_HOME')]
81
+ hf_home = os.getenv('HF_HOME') or str(Path.home() / '.cache' / 'huggingface')
82
+ roots.append(str(Path(hf_home) / 'hub'))
83
+ return [Path(r) for r in roots if r]
84
+
85
+
86
+ def check_models():
87
+ """Look for the two model folders in the local cache. Never downloads anything."""
88
+ missing = []
89
+ for name in (brain_ask.E5_MODEL, brain_ask.RERANK_MODEL):
90
+ folder = 'models--' + name.replace('/', '--')
91
+ if not any((d / folder).exists() for d in _hf_cache_dirs()):
92
+ missing.append(name)
93
+ if missing:
94
+ return (WARN, 'Not downloaded yet: %s.' % ', '.join(missing),
95
+ 'They download on the first index or recall (about 1 GB, needs internet once).')
96
+ return OK, 'Both models are already in the local cache.', ''
97
+
98
+
99
+ def check_index(index_dir=None):
100
+ d = Path(index_dir) if index_dir else brain_ask.INDEX_DIR
101
+ emb, meta = d / '_brain_e5.npy', d / '_brain_e5_meta.pkl'
102
+ if not emb.exists() and not meta.exists():
103
+ return (WARN, 'No index in %s.' % d.resolve(),
104
+ 'Run: sgm-index /path/to/your/notes (set BRAIN_INDEX_DIR to keep the index elsewhere)')
105
+ if emb.exists() != meta.exists():
106
+ left = meta.name if emb.exists() else emb.name
107
+ return FAIL, 'The index is half there: %s is missing.' % left, 'Rebuild it: sgm-index /path/to/your/notes'
108
+ return OK, 'Index found in %s (%.1f MB).' % (d.resolve(), emb.stat().st_size / 1e6), ''
109
+
110
+
111
+ def check_sqlite():
112
+ return OK, 'SQLite %s.' % sqlite3.sqlite_version, ''
113
+
114
+
115
+ def run_checks():
116
+ return [('Python', check_python()), ('SQLite', check_sqlite()), ('numpy', check_numpy()),
117
+ ('Embeddings', check_embeddings()), ('Models', check_models()), ('Index', check_index())]
118
+
119
+
120
+ def render(results):
121
+ lines = []
122
+ for name, (status, what, fix) in results:
123
+ lines.append('%s %-10s %s' % (MARK[status], name, what))
124
+ if fix:
125
+ lines.append(' -> %s' % fix)
126
+ fails = sum(1 for _, r in results if r[0] == FAIL)
127
+ warns = sum(1 for _, r in results if r[0] == WARN)
128
+ if fails:
129
+ lines.append('\n%d problem(s) to fix first. Still stuck? Tell us: %s' % (fails, FEEDBACK))
130
+ elif warns:
131
+ lines.append('\nNothing is broken; %d step(s) above are still to do.' % warns)
132
+ else:
133
+ lines.append('\nAll good.')
134
+ return '\n'.join(lines), fails
135
+
136
+
137
+ def main():
138
+ text, fails = render(run_checks())
139
+ print(text)
140
+ return 1 if fails else 0
141
+
142
+
143
+ if __name__ == '__main__':
144
+ sys.exit(main())
@@ -29,12 +29,12 @@ FM_RX = re.compile(r'^---\r?\n(.*?)\r?\n---\r?\n', re.S)
29
29
 
30
30
 
31
31
 
32
- _EMBEDDINGS_HINT = (
33
- "This step needs the optional embedding stack (sentence-transformers, torch).\n"
34
- "Install it with: pip install 'sqlite-graph-memory[embeddings]'\n"
35
- "The base install stays small on purpose: the graph half, the SQLite schema\n"
36
- "and the turnstate memory work without it."
37
- )
32
+ try:
33
+ from sqlite_graph_memory import brain_ask as _ba
34
+ except ImportError: # run as a loose script next to brain_ask.py
35
+ import brain_ask as _ba
36
+
37
+ _EMBEDDINGS_HINT = _ba._EMBEDDINGS_HINT
38
38
 
39
39
 
40
40
  def _require_sentence_transformers():
@@ -130,14 +130,23 @@ def main():
130
130
  if not texts:
131
131
  print('no indexable .md notes found under', notes_dir); return
132
132
 
133
- _require_sentence_transformers()
134
- from sentence_transformers import SentenceTransformer
135
- try:
136
- import torch
137
- dev = 'cuda' if torch.cuda.is_available() else 'cpu'
138
- except Exception:
139
- dev = 'cpu'
140
- enc = SentenceTransformer(E5_MODEL, device=dev)
133
+ if _ba.backend() == 'onnx':
134
+ enc = _ba.load_encoder()
135
+ # Fetch the reranker too: otherwise the first recall from an MCP client is also
136
+ # a ~470 MB download and runs into the client's tool timeout.
137
+ try:
138
+ _ba._onnx().prefetch()
139
+ except Exception as exc: # offline: the first recall fetches it instead
140
+ print('reranker not prefetched (%s); the first recall will fetch it' % type(exc).__name__)
141
+ else:
142
+ _require_sentence_transformers()
143
+ from sentence_transformers import SentenceTransformer
144
+ try:
145
+ import torch
146
+ dev = 'cuda' if torch.cuda.is_available() else 'cpu'
147
+ except Exception:
148
+ dev = 'cpu'
149
+ enc = SentenceTransformer(E5_MODEL, device=dev)
141
150
  emb = enc.encode(texts, normalize_embeddings=True, convert_to_numpy=True,
142
151
  batch_size=64, show_progress_bar=True).astype('float32')
143
152
 
@@ -18,6 +18,7 @@ Config (env, optional):
18
18
  BRAIN_INDEX_DIR dir holding embedding index (default: ./index)
19
19
  TURNSTATE_DB SQLite db for telemetry (default: ./turnstate.db)
20
20
  BRAIN_ANSWER_OUT file to mirror answer into (default: ./_brain_answer.txt)
21
+ BRAIN_RECALL_TIMEOUT recall child timeout in seconds (1..600, default: 180)
21
22
  """
22
23
  import sys, os, json, subprocess, tempfile
23
24
  from pathlib import Path
@@ -100,6 +101,13 @@ def run_recall(query: str, mode: str = "associative") -> tuple[str, bool]:
100
101
  An empty answer file means no notes matched; stdout is never promoted to an answer
101
102
  because it carries startup notices, load reports, and tokenizer warnings.
102
103
  """
104
+ try:
105
+ recall_timeout = int(os.environ.get("BRAIN_RECALL_TIMEOUT", "180"))
106
+ if not 1 <= recall_timeout <= 600:
107
+ raise ValueError
108
+ except ValueError:
109
+ return "Recall configuration error: BRAIN_RECALL_TIMEOUT must be an integer from 1 to 600 seconds.", True
110
+
103
111
  base_cmd = _brain_ask_cmd()
104
112
  if base_cmd is None:
105
113
  return (
@@ -136,7 +144,7 @@ def run_recall(query: str, mode: str = "associative") -> tuple[str, bool]:
136
144
  text=True,
137
145
  encoding="utf-8",
138
146
  errors="replace",
139
- timeout=60
147
+ timeout=recall_timeout
140
148
  )
141
149
  if res.returncode != 0:
142
150
  err = (res.stderr or res.stdout or "").strip()
@@ -153,7 +161,7 @@ def run_recall(query: str, mode: str = "associative") -> tuple[str, bool]:
153
161
  # Empty answer file: return explicit message and flag error so agent does not ingest stdout noise
154
162
  return "(no matching notes found)", True
155
163
  except subprocess.TimeoutExpired:
156
- return "Recall error: timed out after 60 seconds.", True
164
+ return f"Recall error: timed out after {recall_timeout} seconds.", True
157
165
  except Exception as e:
158
166
  return f"Recall exception: {e}", True
159
167
  finally:
@@ -0,0 +1,127 @@
1
+ # -*- coding: utf-8 -*-
2
+ """onnx_backend.py: the same two models brain_ask uses, run on ONNX Runtime, no torch.
3
+
4
+ Why it exists: on a laptop without a GPU the torch stack is the slow part of a recall,
5
+ not the search. Measured 2026-11-01 on a Windows machine through the MCP server:
6
+ `import torch` alone took 44 s, the encoder had not loaded at 90 s, and the client gave
7
+ up at its 60 s tool timeout. ONNX Runtime plus `tokenizers` is a ~60 MB install that
8
+ imports in under a second.
9
+
10
+ Same weights, same index: both model repos publish an official ONNX export of the very
11
+ checkpoint the torch path loads (`onnx/model.onnx`), so an index built with
12
+ sentence-transformers keeps working here and the other way round. The equivalence is
13
+ pinned by tests/test_onnx_backend.py against sentence-transformers outputs.
14
+
15
+ Models are cached by huggingface_hub in its persistent cache (HF_HUB_CACHE, default
16
+ ~/.cache/huggingface/hub), never in the system temp dir, so Windows cleanup does not
17
+ force a second 1.6 GB download. SGM_MODEL_CACHE overrides the folder.
18
+
19
+ Input: lists of strings (encode) or (query, passage) pairs (predict).
20
+ Output: float32 numpy arrays shaped like the sentence-transformers calls they replace.
21
+ Called by: brain_ask.load_encoder / load_reranker when the backend resolves to "onnx".
22
+ """
23
+ import os
24
+
25
+ import numpy as np
26
+
27
+ E5_REPO = 'intfloat/multilingual-e5-base'
28
+ E5_FILES = ('onnx/model.onnx', 'onnx/tokenizer.json')
29
+ RERANK_REPO = 'cross-encoder/mmarco-mMiniLMv2-L12-H384-v1'
30
+ RERANK_FILES = ('onnx/model.onnx', 'tokenizer.json')
31
+ MAX_LEN = 512 # sentence-transformers max_seq_length / max_length for both checkpoints
32
+
33
+
34
+ def available():
35
+ """True when the lite stack (onnxruntime, tokenizers, huggingface_hub) is importable."""
36
+ try:
37
+ import onnxruntime # noqa: F401
38
+ import tokenizers # noqa: F401
39
+ import huggingface_hub # noqa: F401
40
+ except ImportError:
41
+ return False
42
+ return True
43
+
44
+
45
+ def _fetch(repo, files):
46
+ """Download (or reuse from cache) the named files of one model repo -> local paths."""
47
+ from huggingface_hub import hf_hub_download
48
+ cache = os.getenv('SGM_MODEL_CACHE') or None
49
+ return [hf_hub_download(repo, f, cache_dir=cache) for f in files]
50
+
51
+
52
+ def prefetch():
53
+ """Fetch both models now, so the first recall is not also a 1.6 GB download."""
54
+ _fetch(E5_REPO, E5_FILES)
55
+ _fetch(RERANK_REPO, RERANK_FILES)
56
+
57
+
58
+ def _session(model_path):
59
+ import onnxruntime as ort
60
+ opts = ort.SessionOptions()
61
+ opts.log_severity_level = 3 # keep stdout/stderr clean for the MCP pipe
62
+ return ort.InferenceSession(model_path, sess_options=opts,
63
+ providers=['CPUExecutionProvider'])
64
+
65
+
66
+ def _tokenizer(path):
67
+ from tokenizers import Tokenizer
68
+ tok = Tokenizer.from_file(path)
69
+ tok.enable_truncation(max_length=MAX_LEN)
70
+ tok.enable_padding()
71
+ return tok
72
+
73
+
74
+ def _feed(sess, encs):
75
+ ids = np.array([e.ids for e in encs], dtype=np.int64)
76
+ mask = np.array([e.attention_mask for e in encs], dtype=np.int64)
77
+ feed = {'input_ids': ids, 'attention_mask': mask}
78
+ names = {i.name for i in sess.get_inputs()}
79
+ if 'token_type_ids' in names:
80
+ feed['token_type_ids'] = np.array([e.type_ids for e in encs], dtype=np.int64)
81
+ return {k: v for k, v in feed.items() if k in names}, mask
82
+
83
+
84
+ class Encoder:
85
+ """Drop-in for SentenceTransformer(E5_MODEL).encode: mean pooling, optional L2 norm."""
86
+
87
+ def __init__(self):
88
+ model, tok = _fetch(E5_REPO, E5_FILES)
89
+ self.sess = _session(model)
90
+ self.tok = _tokenizer(tok)
91
+
92
+ def encode(self, texts, normalize_embeddings=True, convert_to_numpy=True,
93
+ batch_size=32, show_progress_bar=False):
94
+ out = []
95
+ for s in range(0, len(texts), batch_size):
96
+ feed, mask = _feed(self.sess, self.tok.encode_batch(list(texts[s:s + batch_size])))
97
+ hidden = self.sess.run(None, feed)[0] # (n, seq, dim)
98
+ m = mask[..., None].astype(np.float32)
99
+ vec = (hidden * m).sum(1) / np.clip(m.sum(1), 1e-9, None)
100
+ if normalize_embeddings:
101
+ vec = vec / np.clip(np.linalg.norm(vec, axis=1, keepdims=True), 1e-12, None)
102
+ out.append(vec.astype(np.float32))
103
+ if show_progress_bar:
104
+ print(' encoded %d/%d' % (min(s + batch_size, len(texts)), len(texts)), flush=True)
105
+ return np.concatenate(out) if out else np.zeros((0, 768), np.float32)
106
+
107
+
108
+ class CrossEncoder:
109
+ """Drop-in for sentence_transformers.CrossEncoder(RERANK_MODEL).predict.
110
+
111
+ Returns the raw logit, as sentence-transformers does for this checkpoint (measured
112
+ 2026-11-03 with sentence-transformers 6.1: -0.857 / -9.52 / 0.014 on the test pairs,
113
+ no sigmoid), so `rr=` in the CLI output reads the same whichever backend ran.
114
+ """
115
+
116
+ def __init__(self):
117
+ model, tok = _fetch(RERANK_REPO, RERANK_FILES)
118
+ self.sess = _session(model)
119
+ self.tok = _tokenizer(tok)
120
+
121
+ def predict(self, pairs, batch_size=32):
122
+ pairs = [(str(a), str(b)) for a, b in pairs]
123
+ out = []
124
+ for s in range(0, len(pairs), batch_size):
125
+ feed, _ = _feed(self.sess, self.tok.encode_batch(pairs[s:s + batch_size]))
126
+ out.append(self.sess.run(None, feed)[0].reshape(-1))
127
+ return np.concatenate(out).astype(np.float32) if out else np.zeros(0, np.float32)
@@ -30,16 +30,23 @@ def jl(s):
30
30
  return []
31
31
 
32
32
 
33
- def main():
33
+ def main(argv=None):
34
34
  ap = argparse.ArgumentParser()
35
35
  ap.add_argument("--session")
36
36
  ap.add_argument("--n", type=int, default=15)
37
37
  ap.add_argument("--stats", action="store_true")
38
- a = ap.parse_args()
38
+ a = ap.parse_args(argv)
39
39
 
40
40
  if not os.path.isfile(DB):
41
- print("(no ledger yet:", DB, ")"); return
42
- c = sqlite3.connect(DB)
41
+ print("(no ledger yet:", DB, ")")
42
+ return 0
43
+ try:
44
+ c = sqlite3.connect(DB)
45
+ # Opening succeeds on junk bytes; the first query is what raises DatabaseError.
46
+ c.execute("select 1 from sqlite_master limit 1").fetchone()
47
+ except sqlite3.Error:
48
+ print("sgm-turnstate-show: not a database: %s" % DB, file=sys.stderr)
49
+ return 1
43
50
 
44
51
  if a.stats:
45
52
  tot = c.execute("select count(*) from turns").fetchone()[0]
@@ -51,7 +58,7 @@ def main():
51
58
  "select session_id,count(*),max(ts) from turns group by session_id "
52
59
  "order by max(ts) desc limit 12"):
53
60
  print(" %-38s %4d turns last %s" % (sid[:38], n, last))
54
- return
61
+ return 0
55
62
 
56
63
  q = ("select ts,project,ask,summary,files,tools,commands,decisions,session_id "
57
64
  "from turns ")
@@ -79,7 +86,8 @@ def main():
79
86
  print(" - %s" % x)
80
87
  if summary:
81
88
  print("💬 summary: %s" % summary.replace("\n", " ")[:200])
89
+ return 0
82
90
 
83
91
 
84
92
  if __name__ == "__main__":
85
- main()
93
+ sys.exit(main() or 0)
@@ -35,6 +35,7 @@ import sys
35
35
  from collections import defaultdict
36
36
  from pathlib import Path
37
37
 
38
+ from sqlite_graph_memory import __version__
38
39
  from sqlite_graph_memory.brain_ask import _links_in
39
40
  from sqlite_graph_memory.index_notes import FM_RX, iter_notes, read_note
40
41
 
@@ -194,6 +195,7 @@ def render(report):
194
195
  def main(argv=None):
195
196
  ap = argparse.ArgumentParser(prog='sgm-stats', description=__doc__.split('\n\n')[0])
196
197
  ap.add_argument('notes_dir')
198
+ ap.add_argument('--version', action='version', version=f'%(prog)s {__version__}')
197
199
  ap.add_argument('--json', action='store_true', help='machine-readable output')
198
200
  ap.add_argument('--today', type=datetime.date.fromisoformat,
199
201
  help='date to measure staleness against (YYYY-MM-DD; default: today)')
@@ -207,8 +209,14 @@ def main(argv=None):
207
209
  try:
208
210
  report = compute(a.notes_dir, today=a.today, th=th)
209
211
  except EmptyVault as e:
210
- print(e, file=sys.stderr)
211
- return 2
212
+ if a.json:
213
+ report = {
214
+ 'notes_dir': str(a.notes_dir), 'pages': 0, 'metrics': [],
215
+ 'verdict': 'fail', 'exit_code': 2, 'error': str(e),
216
+ }
217
+ else:
218
+ print(e, file=sys.stderr)
219
+ return 2
212
220
  print(json.dumps(report, indent=2, ensure_ascii=False) if a.json else render(report))
213
221
  return report['exit_code']
214
222
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: sqlite-graph-memory
3
- Version: 0.3.3
3
+ Version: 0.3.6
4
4
  Summary: Associative memory for LLM agents: Graph RAG over a folder of markdown notes, in one SQLite file, with no server to run.
5
5
  Project-URL: Homepage, https://github.com/tonydzi/sqlite-graph-memory
6
6
  Project-URL: Repository, https://github.com/tonydzi/sqlite-graph-memory
@@ -47,23 +47,100 @@ Requires-Dist: numpy<2; (sys_platform == 'darwin' and platform_machine == 'x86_6
47
47
  Requires-Dist: sentence-transformers<5; (sys_platform == 'darwin' and platform_machine == 'x86_64') and extra == 'embeddings'
48
48
  Requires-Dist: sentence-transformers>=2.6; extra == 'embeddings'
49
49
  Requires-Dist: transformers<4.50; (sys_platform == 'darwin' and platform_machine == 'x86_64') and extra == 'embeddings'
50
+ Provides-Extra: lite
51
+ Requires-Dist: huggingface-hub>=0.20; extra == 'lite'
52
+ Requires-Dist: onnxruntime>=1.17; extra == 'lite'
53
+ Requires-Dist: tokenizers>=0.15; extra == 'lite'
50
54
  Description-Content-Type: text/markdown
51
55
 
52
56
  # sqlite-graph-memory: persistent memory for Claude Code, Cursor and Codex over your own markdown notes
53
57
 
54
58
  <!-- mcp-name: io.github.tonydzi/sqlite-graph-memory -->
55
59
 
56
- [![PyPI](https://img.shields.io/pypi/v/sqlite-graph-memory)](https://pypi.org/project/sqlite-graph-memory/) [![tests](https://img.shields.io/github/actions/workflow/status/tonydzi/sqlite-graph-memory/tests.yml?label=tests)](https://github.com/tonydzi/sqlite-graph-memory/actions/workflows/tests.yml) [![MCP Registry](https://img.shields.io/badge/MCP%20Registry-io.github.tonydzi%2Fsqlite--graph--memory-blue)](https://registry.modelcontextprotocol.io/v0/servers?search=sqlite-graph-memory) [![License: MIT](https://img.shields.io/badge/license-MIT-green)](LICENSE)
60
+ Your coding agent remembers what you already wrote down, and reaches the note a plain search
61
+ misses by following the links between your notes. It is an MCP server and a CLI over any
62
+ folder of markdown, Obsidian vaults included: `pip install`, point it at the folder, and
63
+ Claude Code, Cursor, Codex or any other MCP client can recall from it.
57
64
 
58
- Long-term memory for coding agents that lives in the notes you already keep: an MCP server
59
- and a CLI over any folder of markdown, Obsidian vaults included. `pip install`, point it at
60
- the folder, and Claude Code, Cursor, Codex or any other MCP client can recall from it.
65
+ ![sgm-index builds the index of the 202-note bench vault, then sgm-ask --ab shows tool-lanternfish entering the top 5 only through a graph hop; the one-minute CPU indexing wait is cut](docs/demo.gif)
61
66
 
62
67
  **Your agent forgets everything between sessions, and plain vector search gives it back
63
68
  flat, unrelated chunks. This gives it associative recall over your own markdown notes:
64
69
  vector search finds the entry points, the `[[wikilinks]]` you already wrote are the graph.
65
70
  One SQLite file, no graph database, no ETL pass, no server.**
66
71
 
72
+ [![PyPI](https://img.shields.io/pypi/v/sqlite-graph-memory)](https://pypi.org/project/sqlite-graph-memory/) [![tests](https://img.shields.io/github/actions/workflow/status/tonydzi/sqlite-graph-memory/tests.yml?label=tests)](https://github.com/tonydzi/sqlite-graph-memory/actions/workflows/tests.yml) [![MCP Registry](https://img.shields.io/badge/MCP%20Registry-io.github.tonydzi%2Fsqlite--graph--memory-blue)](https://registry.modelcontextprotocol.io/v0/servers?search=sqlite-graph-memory) [![License: MIT](https://img.shields.io/badge/license-MIT-green)](LICENSE)
73
+
74
+ ## Install in your client
75
+
76
+ Already using your own agent rules and projects? The [Russian existing-setup guide](https://github.com/tonydzi/second-brain-starter-kit/blob/master/docs/EXISTING-SETUP.ru.md) combines this memory backend with the optional starter-kit method, preserves existing settings, and checks recall in a fresh chat. Install one memory connection per client; the starter-kit memory plugin and manual registration are alternatives.
77
+
78
+ Build the index once (any folder of markdown; [`uv`](https://docs.astral.sh/uv/) gives you `uvx`):
79
+
80
+ ```bash
81
+ BRAIN_INDEX_DIR=$HOME/.sgm-index uvx --from 'sqlite-graph-memory[embeddings]' sgm-index ~/notes
82
+ ```
83
+
84
+ Then point your client at the server. Use the absolute path of that index folder.
85
+
86
+ **Cold-start timeout (0.3.5 and later).** The MCP server starts recall in a separate process with a default deadline of 180 seconds; a first call on a clean Windows install took 89 s, which the old fixed 60 s always cut off. Override with `BRAIN_RECALL_TIMEOUT` (integer seconds, 1 to 600; invalid values return an error). Your MCP client's own tool timeout must also allow the longer call. On 0.3.3 and earlier the deadline is a fixed 60 s: upgrade, or use `sgm-ask --ask` directly, and do not report MCP recall as verified merely because the CLI works.
87
+
88
+ **Claude Code**
89
+
90
+ ```bash
91
+ claude mcp add sqlite-graph-memory -e BRAIN_INDEX_DIR=$HOME/.sgm-index -- uvx --with 'sqlite-graph-memory[embeddings]' sqlite-graph-memory
92
+ ```
93
+
94
+ **Cursor** (`~/.cursor/mcp.json`; Claude Desktop, Zed and Windsurf take the same `mcpServers` block)
95
+
96
+ ```json
97
+ {
98
+ "mcpServers": {
99
+ "sqlite-graph-memory": {
100
+ "command": "uvx",
101
+ "args": ["--with", "sqlite-graph-memory[embeddings]", "sqlite-graph-memory"],
102
+ "env": { "BRAIN_INDEX_DIR": "/absolute/path/to/.sgm-index" }
103
+ }
104
+ }
105
+ }
106
+ ```
107
+
108
+ **VS Code** (`.vscode/mcp.json` in the workspace)
109
+
110
+ ```json
111
+ {
112
+ "servers": {
113
+ "sqlite-graph-memory": {
114
+ "type": "stdio",
115
+ "command": "uvx",
116
+ "args": ["--with", "sqlite-graph-memory[embeddings]", "sqlite-graph-memory"],
117
+ "env": { "BRAIN_INDEX_DIR": "/absolute/path/to/.sgm-index" }
118
+ }
119
+ }
120
+ }
121
+ ```
122
+
123
+ **Codex** (`~/.codex/config.toml`)
124
+
125
+ ```toml
126
+ [mcp_servers.sqlite-graph-memory]
127
+ command = "uvx"
128
+ args = ["--with", "sqlite-graph-memory[embeddings]", "sqlite-graph-memory"]
129
+ env = { BRAIN_INDEX_DIR = "/absolute/path/to/.sgm-index" }
130
+ ```
131
+
132
+ Size, `du -sh` of a fresh Python 3.12 venv on an x86_64 Mac (1 Nov 2026): the base install is
133
+ 26 MB and has no torch (numpy only, enough for the graph half and the SQLite ledger);
134
+ with `[embeddings]` (torch) it is 879 MB, 540 MB of that torch 2.2.2 CPU. With `[lite]` (from v0.3.6),
135
+ the same two models on ONNX Runtime and no torch, it is 155 MB (Windows, Python 3.12,
136
+ 3 Nov 2026), installs in 12 s, and one MCP recall on the 202-note bench vault took 7.0 s
137
+ against 33.8 s through torch on the same machine, with the same top hits and scores.
138
+ `[lite]` is picked automatically when installed; `SGM_BACKEND=torch` forces torch (for a GPU).
139
+ An index built by either backend is searched correctly by the other.
140
+ Already installed with pip? Replace `uvx --with ... sqlite-graph-memory` by `sgm-mcp`
141
+ ([`examples/mcp-config.json`](examples/mcp-config.json)). Agents that read files first:
142
+ [`llms.txt`](llms.txt).
143
+
67
144
  ## Three commands
68
145
 
69
146
  ```bash
@@ -110,14 +187,6 @@ That is the idea in one query, and it is not a blanket win. On this same vault v
110
187
  ranks ahead of graph mode overall; the numbers are in [`bench/`](bench/README.md). `--ab`
111
188
  exists so you can measure which one wins on your own notes.
112
189
 
113
- **From any MCP client** (Claude Desktop, Cursor, Zed, Windsurf): `sgm-mcp` after the install
114
- above, or `uvx --with 'sqlite-graph-memory[embeddings]' sqlite-graph-memory`. Set
115
- `BRAIN_INDEX_DIR` to the `index` folder `sgm-index` wrote. Config:
116
- [`examples/mcp-config.json`](examples/mcp-config.json). Claude Code:
117
- `claude mcp add sqlite-graph-memory -e BRAIN_INDEX_DIR=/path/to/index -- sgm-mcp`.
118
- Codex: a `[mcp_servers.sqlite-graph-memory]` table in `~/.codex/config.toml` with
119
- `command = "sgm-mcp"`. Agents that read files first: [`llms.txt`](llms.txt).
120
-
121
190
  ## What it is
122
191
 
123
192
  Graph RAG on SQLite for AI agents — a working pilot, not a framework. It is the extracted
@@ -144,7 +213,7 @@ For a single-user agent over a markdown knowledge base, all three are overkill:
144
213
  edges as `[[wikilinks]]`, and `brain_ask.py` just parses them.
145
214
  No extraction pass, and edge quality beats anything a model would mine.
146
215
  - **SQLite is enough** — the only things worth persisting are derived state (a per-turn
147
- ledger) and telemetry, and both are defined in [`schema.sql`](schema.sql).
216
+ ledger) and telemetry, and both are defined in [`schema.sql`](src/sqlite_graph_memory/schema.sql).
148
217
  One file, stdlib driver, zero ops.
149
218
  - The expensive part of RAG quality is a **reranker**, not graph infrastructure — see the
150
219
  rerank step in `brain_ask.py`.
@@ -176,7 +245,7 @@ markdown notes (with [[wikilinks]])
176
245
  turnstate_show.py = read-only viewer.
177
246
  ```
178
247
 
179
- [`schema.sql`](schema.sql) documents both tables. The graph is **not** materialized in SQL:
248
+ [`schema.sql`](src/sqlite_graph_memory/schema.sql) documents both tables. The graph is **not** materialized in SQL:
180
249
  `brain_ask.py` parses edges from the notes at query time, bounded to 1 hop / 40 neighbours.
181
250
  That keeps the graph permanently in sync with the notes at zero maintenance cost; materialize
182
251
  an edge table only when hop depth or corpus size demands it.
@@ -196,7 +265,7 @@ an edge table only when hop depth or corpus size demands it.
196
265
  vector-only recall, no ledger row.
197
266
  A memory layer must never make the agent worse than having no memory layer.
198
267
  - **Measure, don't believe.** `--ab` runs both pipelines on every real query and logs how
199
- many notes the graph promoted into the top-N, to `ab_recall` in [`schema.sql`](schema.sql).
268
+ many notes the graph promoted into the top-N, to `ab_recall` in [`schema.sql`](src/sqlite_graph_memory/schema.sql).
200
269
  Whether "associative memory" earns its keep is a weekly SQL query, not a vibe.
201
270
 
202
271
  ### What's intentionally missing
@@ -215,9 +284,9 @@ an edge table only when hop depth or corpus size demands it.
215
284
  ## Quickstart
216
285
 
217
286
  ```bash
218
- # Indexing and reranking need the embedding stack; the base install leaves it out
219
- # so that `pip install sqlite-graph-memory` stays small instead of pulling ~2 GB
220
- # of torch. Ask for it explicitly:
287
+ # Indexing and reranking need an embedding stack; the base install leaves it out.
288
+ # [lite] (from v0.3.6) runs the models on ONNX Runtime without torch (~155 MB); [embeddings]
289
+ # brings torch (~2 GB) if you want a GPU. Ask for one explicitly:
221
290
  pip install 'sqlite-graph-memory[embeddings]'
222
291
 
223
292
  # 1. index a folder of markdown notes
@@ -273,7 +342,7 @@ A/B RECALL: how should agent memory work
273
342
 
274
343
  On a corpus this small the graph adds nothing — every note is already in the candidate
275
344
  pool. The interesting deltas appear at scale, and that is exactly what the `ab_recall`
276
- table in [`schema.sql`](schema.sql) accumulates evidence for.
345
+ table in [`schema.sql`](src/sqlite_graph_memory/schema.sql) accumulates evidence for.
277
346
 
278
347
  ## Public benchmark — `bench/`
279
348
 
@@ -402,6 +471,11 @@ Seven other changes were rejected by the same ruler, under one rule fixed in adv
402
471
  | `sqlite-vec` (vec0) | full scan 11.99 s vs 0.14 s for a plain SQLite table, and its ANN missed 1.2 hits of 60 -> vectors live in SQLite, **the extension does not** |
403
472
  | bi-temporal demotion of superseded notes | temporal +0.130 nDCG on a 41-question temporal set, but title −0.012 -> **merged behind a flag, default off** (in the home pipeline, not in this package) |
404
473
 
474
+ The two rows marked "home pipeline" are not in this package: BM25 fusion and superseded-note
475
+ demotion exist only in the maintainer's home build. Check it yourself in a clone:
476
+ `grep -rniE 'bm25|superseded' src/` prints nothing. The PageRank lane above is the one
477
+ merged change that ships (`src/sqlite_graph_memory/ppr.py`).
478
+
405
479
  None of those verdicts is a claim about the models. They are claims about *this corpus with
406
480
  this ruler*, which is the only kind of claim a swap decision actually needs — and the reason
407
481
  the module is here rather than in a blog post is that your corpus will disagree with ours.
@@ -422,7 +496,7 @@ while the metric is broken never tested the metric.
422
496
 
423
497
  ## Roadmap
424
498
 
425
- **Now — [latest release](https://github.com/tonydzi/sqlite-graph-memory/releases/latest)** (v0.3.1 on PyPI and in the MCP Registry as of 2026-10-19).
499
+ **Now — [latest release](https://github.com/tonydzi/sqlite-graph-memory/releases/latest)** (the version badge above is the one on PyPI; the same version is in the MCP Registry).
426
500
  The pilot as it runs daily: retrieval pipeline, per-turn ledger and A/B telemetry, all in
427
501
  `brain_ask.py` and `turnstate_hook.py`, plus the bi-temporal design note. Known defects live in
428
502
  the [tracker](https://github.com/tonydzi/sqlite-graph-memory/issues) rather than in footnotes
@@ -441,7 +515,8 @@ does not notice, and that drift is the defect this paragraph used to carry twice
441
515
  materialize the graph instead of parsing it at query time, give every edge a validity
442
516
  window (`valid_from` / `valid_to` / `observed_at`) so a rebuild *closes* superseded facts
443
517
  instead of deleting them: history is kept, recall prefers the present, and `as_of` queries
444
- can reconstruct the past. Non-destructive aging by confidence decay. The day-1 A/B result
518
+ can reconstruct the past. Non-destructive aging by confidence decay. None of this is in
519
+ the package yet: it is a design note plus a home-pipeline experiment. The day-1 A/B result
445
520
  — context size ~unchanged, retrieved candidates ~60% fresher by mean age — is written up
446
521
  with its caveats in `docs/bitemporal.md`: the volume win is longitudinal, so that is one
447
522
  day on one corpus, not a benchmark.
@@ -496,6 +571,7 @@ Questions, war stories, or you want to run this on your own fleet:
496
571
  You tried this on your own notes and something was missing or broke. That is the most useful
497
572
  thing anyone can tell us.
498
573
 
574
+ - **Install or first run gone wrong:** run `sgm-doctor` first. It checks Python, numpy, torch, the models and your index in plain words and prints the fix for each.
499
575
  - **You started and it did not work:** [open the 3-question form](https://github.com/tonydzi/sqlite-graph-memory/issues/new?template=feature_request.yml) (what you tried, what broke, which machine).
500
576
  - **Not sure it is a bug, or just an idea:** [Discussions → Ideas](https://github.com/tonydzi/sqlite-graph-memory/discussions/categories/ideas).
501
577
 
@@ -0,0 +1,16 @@
1
+ sqlite_graph_memory/__init__.py,sha256=tp1bvR_lAMB3gg3_28p4sOADUAqsFBg15rCsyvoZ2WI,1151
2
+ sqlite_graph_memory/brain_ask.py,sha256=1CsBMtYeVSXdEXimS2xasAUvcuhXDxdLYE7w8uu0of0,21710
3
+ sqlite_graph_memory/doctor.py,sha256=fOHoCV7XdDfYNIb3-tpa6sJtwzKBSH-EhsTpA0uQ9Qo,6005
4
+ sqlite_graph_memory/index_notes.py,sha256=6SdRXKVyOp9QPmBnyb2Sj98pIcqmnhZgqF9MWA4EJcY,5794
5
+ sqlite_graph_memory/mcp_server.py,sha256=GItrJrtU34lGzamSD1ryEfL-Aq46W_J-4eDBZ3Pr_Wo,10218
6
+ sqlite_graph_memory/onnx_backend.py,sha256=1P4sy5LrI_j4dgB-taFoakrDbn2JQIQnnmOuH7bA0ZM,5377
7
+ sqlite_graph_memory/ppr.py,sha256=L7VSAiliXr8j3PH2hQqKbdgm08BPm6pZkLcckoMxAro,10001
8
+ sqlite_graph_memory/schema.sql,sha256=8aySXKw3Azaxyzqbd76mKTfOaDP7FlpkLXtgwA8ZVK4,2543
9
+ sqlite_graph_memory/turnstate_hook.py,sha256=fypGmUcHQkzlRN74tvIG07lr9uAXpp2GjetqthkuMc8,8641
10
+ sqlite_graph_memory/turnstate_show.py,sha256=Bij4POJNSbJunHwGgm4i2NzkJQms8QBpR0mM9VVeKy4,3251
11
+ sqlite_graph_memory/vault_stats.py,sha256=qYU-uzH_W4ME4Qf71UQrExb91cgyTEnjBJDqzwyh0e0,8946
12
+ sqlite_graph_memory-0.3.6.dist-info/METADATA,sha256=1Ev-QC7Ld4y0cd6UTqg3fdBGGGT3OpQChFDwbL3tPOM,37431
13
+ sqlite_graph_memory-0.3.6.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
14
+ sqlite_graph_memory-0.3.6.dist-info/entry_points.txt,sha256=lpoCm-jNjhBEtcQ16iIUd0ivr92Gr4c_fSRls2Zvbb0,432
15
+ sqlite_graph_memory-0.3.6.dist-info/licenses/LICENSE,sha256=p88nZdrfMUiES3_MpUEwhGmqz2hQFpyMh0k0cqdpfU8,1082
16
+ sqlite_graph_memory-0.3.6.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.32.4
2
+ Generator: hatchling 1.33.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,5 +1,6 @@
1
1
  [console_scripts]
2
2
  sgm-ask = sqlite_graph_memory.brain_ask:main
3
+ sgm-doctor = sqlite_graph_memory.doctor:main
3
4
  sgm-index = sqlite_graph_memory.index_notes:main
4
5
  sgm-mcp = sqlite_graph_memory.mcp_server:main
5
6
  sgm-stats = sqlite_graph_memory.vault_stats:main
@@ -1,14 +0,0 @@
1
- sqlite_graph_memory/__init__.py,sha256=2xKSCi2vAjRyWsMf6N3Sd9-Znk0IYgmoSc_RzwKM6go,1151
2
- sqlite_graph_memory/brain_ask.py,sha256=rcXquak8fIYzKLPJL0GhrQGvbA0cVIcj805lNUjvcTY,19392
3
- sqlite_graph_memory/index_notes.py,sha256=blm9lLlB5MSLB39tNYVtjVGULLQXTQGOth_LV4utyic,5378
4
- sqlite_graph_memory/mcp_server.py,sha256=XSCd2qJPvAcw9X-81YJzXeAlwL_Ss9soh9kDUqPQ3aQ,9817
5
- sqlite_graph_memory/ppr.py,sha256=L7VSAiliXr8j3PH2hQqKbdgm08BPm6pZkLcckoMxAro,10001
6
- sqlite_graph_memory/schema.sql,sha256=8aySXKw3Azaxyzqbd76mKTfOaDP7FlpkLXtgwA8ZVK4,2543
7
- sqlite_graph_memory/turnstate_hook.py,sha256=fypGmUcHQkzlRN74tvIG07lr9uAXpp2GjetqthkuMc8,8641
8
- sqlite_graph_memory/turnstate_show.py,sha256=IED7fmJQM5VgBNwxmEoNSZtujRmWja-qVPg5ckbWVnY,2909
9
- sqlite_graph_memory/vault_stats.py,sha256=QYNGck556RDyLIVFH1C864su5tWehep1DHE21sSTi9g,8596
10
- sqlite_graph_memory-0.3.3.dist-info/METADATA,sha256=OQVb_K2tbcV2Do83KtG7JlRPLTWnr2ZzNYvBpYhYIiw,33515
11
- sqlite_graph_memory-0.3.3.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
12
- sqlite_graph_memory-0.3.3.dist-info/entry_points.txt,sha256=ggzirSEagKB7DZnMli9NUDiMuaog1oeBu_NpRPiKmr0,387
13
- sqlite_graph_memory-0.3.3.dist-info/licenses/LICENSE,sha256=p88nZdrfMUiES3_MpUEwhGmqz2hQFpyMh0k0cqdpfU8,1082
14
- sqlite_graph_memory-0.3.3.dist-info/RECORD,,