memocode 0.2.2__tar.gz → 0.2.3__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.
- {memocode-0.2.2 → memocode-0.2.3}/PKG-INFO +1 -2
- {memocode-0.2.2 → memocode-0.2.3}/README.md +0 -1
- {memocode-0.2.2 → memocode-0.2.3}/control/brain.py +2 -0
- {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/context_manager.py +3 -1
- {memocode-0.2.2 → memocode-0.2.3}/memocode.egg-info/PKG-INFO +1 -2
- {memocode-0.2.2 → memocode-0.2.3}/pyproject.toml +1 -1
- {memocode-0.2.2 → memocode-0.2.3}/control/__init__.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/control/audit.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/__init__.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/cli.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/compressor.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/config.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/mcp_server.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/memory/__init__.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/memory/consolidation.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/memory/core_memory.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/memory/forgetting.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/memory/recent_memory.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/server.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/token_counter.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/control/fmt.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/control/llm.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/control/planner.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/control/project_manager.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/memocode.egg-info/SOURCES.txt +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/memocode.egg-info/dependency_links.txt +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/memocode.egg-info/entry_points.txt +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/memocode.egg-info/requires.txt +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/memocode.egg-info/top_level.txt +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/run.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/safety/__init__.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/safety/backup.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/safety/policy.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/safety/safety.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/setup.cfg +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/tools/__init__.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/tools/file.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/tools/loader.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/tools/registry.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/tools/shell.py +0 -0
- {memocode-0.2.2 → memocode-0.2.3}/tools/web.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: memocode
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: Personal AI coding agent with memory, tool execution, and safety controls
|
|
5
5
|
Author: AssassinCHN
|
|
6
6
|
Requires-Python: >=3.11
|
|
@@ -14,7 +14,6 @@ Requires-Dist: certifi>=2024.0
|
|
|
14
14
|
|
|
15
15
|
Personal AI coding agent CLI with memory, tool execution, and safety controls.
|
|
16
16
|
|
|
17
|
-
**Author:** AssassinCHN
|
|
18
17
|
|
|
19
18
|
## Features
|
|
20
19
|
|
|
@@ -257,6 +257,7 @@ class Brain:
|
|
|
257
257
|
config_path: str | None = None,
|
|
258
258
|
verbose: bool | None = None,
|
|
259
259
|
project: str | None = None,
|
|
260
|
+
no_lock: bool = False,
|
|
260
261
|
):
|
|
261
262
|
# Ensure ~/.mcode/ exists; migrate old files if needed
|
|
262
263
|
agent_path, chatmem_path = _init_data_dir()
|
|
@@ -325,6 +326,7 @@ class Brain:
|
|
|
325
326
|
api_key=_api_key,
|
|
326
327
|
db_path=self.projects.project_db_path,
|
|
327
328
|
core_db_path=self.projects.core_db_path,
|
|
329
|
+
no_lock=no_lock,
|
|
328
330
|
)
|
|
329
331
|
|
|
330
332
|
# Audit log
|
|
@@ -58,6 +58,7 @@ class ContextManager:
|
|
|
58
58
|
idle_session_timeout: int = IDLE_SESSION_TIMEOUT,
|
|
59
59
|
keep_verbatim_on_end: int = 50,
|
|
60
60
|
config: ContextConfig | None = None,
|
|
61
|
+
no_lock: bool = False,
|
|
61
62
|
):
|
|
62
63
|
self.client = client
|
|
63
64
|
self.api_key = api_key
|
|
@@ -114,7 +115,8 @@ class ContextManager:
|
|
|
114
115
|
# Single instance lock - prevent multiple windows from conflicting
|
|
115
116
|
self._lock_file_path = Path(db_path).parent / ".mcode.lock"
|
|
116
117
|
self._lock_file = None
|
|
117
|
-
|
|
118
|
+
if not no_lock:
|
|
119
|
+
self._acquire_lock()
|
|
118
120
|
|
|
119
121
|
# Continuous history: role+content messages, old turns may be compressed summaries
|
|
120
122
|
# Internal key _is_summary=True marks summary messages; stripped before API calls.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: memocode
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: Personal AI coding agent with memory, tool execution, and safety controls
|
|
5
5
|
Author: AssassinCHN
|
|
6
6
|
Requires-Python: >=3.11
|
|
@@ -14,7 +14,6 @@ Requires-Dist: certifi>=2024.0
|
|
|
14
14
|
|
|
15
15
|
Personal AI coding agent CLI with memory, tool execution, and safety controls.
|
|
16
16
|
|
|
17
|
-
**Author:** AssassinCHN
|
|
18
17
|
|
|
19
18
|
## Features
|
|
20
19
|
|
|
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
|
|
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
|