Skip to content

Commit a19bdb9

Browse files
author
STARGA Inc
committed
Fix CI: ruff format, mypy errors, stale 16-tool references
1 parent d9f737c commit a19bdb9

3 files changed

Lines changed: 10 additions & 24 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ TOTAL: 0 critical | 0 warnings | 16 info
535535

536536
```
537537
your-workspace/
538-
├── mcp_server.py # MCP server (FastMCP, 16 tools, 8 resources)
538+
├── mcp_server.py # MCP server (FastMCP, 19 tools, 8 resources)
539539
├── mind-mem.json # Config
540540
├── MEMORY.md # Protocol rules
541541
@@ -715,7 +715,7 @@ Compared against every major memory solution for AI agents (as of 2026):
715715
| No daemon |||||| Yes |||| Yes | **Yes** |
716716
| GPU required ||||||||| **4.5GB** | No | **No** |
717717
| Git-friendly |||| Part |||||| Yes | **Yes** |
718-
| MCP server ||||||||||| **16 tools** |
718+
| MCP server ||||||||||| **19 tools** |
719719
| MIND kernels ||||||||||| **16 source** |
720720

721721
### The Gap mind-mem Fills

scripts/baseline_snapshot.py

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ def _load_baseline(workspace: str, version: int) -> dict:
6666
if not p.exists():
6767
raise FileNotFoundError(f"Baseline v{version} not found at {p}")
6868
with open(p, encoding="utf-8") as fh:
69-
return json.load(fh)
69+
data: dict[str, Any] = json.load(fh)
70+
return data
7071

7172

7273
def _config_fingerprint(workspace: str) -> dict[str, Any]:
@@ -331,11 +332,7 @@ def detect_drift(
331332
"false_certainty_warning": false_certainty,
332333
},
333334
"config_changed": config_changed,
334-
"config_diff": (
335-
{"baseline": baseline_config, "current": current_config}
336-
if config_changed
337-
else None
338-
),
335+
"config_diff": ({"baseline": baseline_config, "current": current_config} if config_changed else None),
339336
}
340337

341338

@@ -359,10 +356,7 @@ def compare_baselines(workspace: str, v1: int, v2: int) -> dict[str, Any]:
359356
)
360357

361358
# Config change detection
362-
config_changed = (
363-
b1.get("config_fingerprint", {}).get("_hash")
364-
!= b2.get("config_fingerprint", {}).get("_hash")
365-
)
359+
config_changed = b1.get("config_fingerprint", {}).get("_hash") != b2.get("config_fingerprint", {}).get("_hash")
366360

367361
return {
368362
"v1": b1.get("version_tag"),
@@ -473,8 +467,8 @@ def _cli() -> None:
473467
print(json.dumps(result, indent=2))
474468

475469
elif args.command == "list":
476-
result = list_baselines(args.workspace)
477-
print(json.dumps(result, indent=2))
470+
baselines = list_baselines(args.workspace)
471+
print(json.dumps(baselines, indent=2))
478472

479473

480474
if __name__ == "__main__":

tests/test_baseline_snapshot.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,7 @@ def test_freeze_empty_workspace(self):
133133
self.assertEqual(result["intent_distribution"], {})
134134
self.assertIn("config_fingerprint", result)
135135
# File written
136-
self.assertTrue(
137-
os.path.exists(
138-
os.path.join(self.tmpdir, "intelligence/baselines/intent-baseline-v1.json")
139-
)
140-
)
136+
self.assertTrue(os.path.exists(os.path.join(self.tmpdir, "intelligence/baselines/intent-baseline-v1.json")))
141137

142138
def test_freeze_with_data(self):
143139
_populate_queries(self.tmpdir, {"WHAT": 10, "WHEN": 5, "HOW": 3})
@@ -151,11 +147,7 @@ def test_auto_version_increment(self):
151147
freeze_baseline(self.tmpdir)
152148
result2 = freeze_baseline(self.tmpdir)
153149
self.assertEqual(result2["version_tag"], "v2")
154-
self.assertTrue(
155-
os.path.exists(
156-
os.path.join(self.tmpdir, "intelligence/baselines/intent-baseline-v2.json")
157-
)
158-
)
150+
self.assertTrue(os.path.exists(os.path.join(self.tmpdir, "intelligence/baselines/intent-baseline-v2.json")))
159151

160152
def test_explicit_tag(self):
161153
result = freeze_baseline(self.tmpdir, tag=42)

0 commit comments

Comments
 (0)