Skip to content

Commit 5e6b68c

Browse files
committed
Merge branch 'main' into dev-20260407-v2.0.13
2 parents 1491281 + df65802 commit 5e6b68c

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

apps/memos-local-plugin/adapters/openharness/scripts/capture.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,16 @@
1717
import logging
1818
import os
1919
import sys
20+
2021
from pathlib import Path
2122

23+
2224
sys.path.insert(0, str(Path(__file__).parent))
2325

2426
from bridge_client import MemosCoreBridge
2527
from config import get_project_session_dir
2628

29+
2730
logging.basicConfig(level=logging.INFO, format="%(levelname)s %(message)s")
2831
logger = logging.getLogger("memos-capture")
2932

@@ -85,10 +88,12 @@ def extract_messages_from_payload() -> tuple[list[dict], str]:
8588
if isinstance(raw_messages, list):
8689
for msg in raw_messages:
8790
if isinstance(msg, dict) and "role" in msg and "content" in msg:
88-
messages.append({
89-
"role": msg["role"],
90-
"content": msg["content"],
91-
})
91+
messages.append(
92+
{
93+
"role": msg["role"],
94+
"content": msg["content"],
95+
}
96+
)
9297

9398
return messages, session_id
9499

apps/memos-local-plugin/adapters/openharness/scripts/recall.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,18 @@
1616
from __future__ import annotations
1717

1818
import logging
19-
import os
2019
import sys
20+
2121
from pathlib import Path
2222

23+
2324
sys.path.insert(0, str(Path(__file__).parent))
2425

2526
from bridge_client import MemosCoreBridge
2627
from config import get_project_memory_dir
2728
from daemon_manager import ensure_daemon
2829

30+
2931
logging.basicConfig(level=logging.INFO, format="%(levelname)s %(message)s")
3032
logger = logging.getLogger("memos-recall")
3133

0 commit comments

Comments
 (0)