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.
Files changed (41) hide show
  1. {memocode-0.2.2 → memocode-0.2.3}/PKG-INFO +1 -2
  2. {memocode-0.2.2 → memocode-0.2.3}/README.md +0 -1
  3. {memocode-0.2.2 → memocode-0.2.3}/control/brain.py +2 -0
  4. {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/context_manager.py +3 -1
  5. {memocode-0.2.2 → memocode-0.2.3}/memocode.egg-info/PKG-INFO +1 -2
  6. {memocode-0.2.2 → memocode-0.2.3}/pyproject.toml +1 -1
  7. {memocode-0.2.2 → memocode-0.2.3}/control/__init__.py +0 -0
  8. {memocode-0.2.2 → memocode-0.2.3}/control/audit.py +0 -0
  9. {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/__init__.py +0 -0
  10. {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/cli.py +0 -0
  11. {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/compressor.py +0 -0
  12. {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/config.py +0 -0
  13. {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/mcp_server.py +0 -0
  14. {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/memory/__init__.py +0 -0
  15. {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/memory/consolidation.py +0 -0
  16. {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/memory/core_memory.py +0 -0
  17. {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/memory/forgetting.py +0 -0
  18. {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/memory/recent_memory.py +0 -0
  19. {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/server.py +0 -0
  20. {memocode-0.2.2 → memocode-0.2.3}/control/chatmem/token_counter.py +0 -0
  21. {memocode-0.2.2 → memocode-0.2.3}/control/fmt.py +0 -0
  22. {memocode-0.2.2 → memocode-0.2.3}/control/llm.py +0 -0
  23. {memocode-0.2.2 → memocode-0.2.3}/control/planner.py +0 -0
  24. {memocode-0.2.2 → memocode-0.2.3}/control/project_manager.py +0 -0
  25. {memocode-0.2.2 → memocode-0.2.3}/memocode.egg-info/SOURCES.txt +0 -0
  26. {memocode-0.2.2 → memocode-0.2.3}/memocode.egg-info/dependency_links.txt +0 -0
  27. {memocode-0.2.2 → memocode-0.2.3}/memocode.egg-info/entry_points.txt +0 -0
  28. {memocode-0.2.2 → memocode-0.2.3}/memocode.egg-info/requires.txt +0 -0
  29. {memocode-0.2.2 → memocode-0.2.3}/memocode.egg-info/top_level.txt +0 -0
  30. {memocode-0.2.2 → memocode-0.2.3}/run.py +0 -0
  31. {memocode-0.2.2 → memocode-0.2.3}/safety/__init__.py +0 -0
  32. {memocode-0.2.2 → memocode-0.2.3}/safety/backup.py +0 -0
  33. {memocode-0.2.2 → memocode-0.2.3}/safety/policy.py +0 -0
  34. {memocode-0.2.2 → memocode-0.2.3}/safety/safety.py +0 -0
  35. {memocode-0.2.2 → memocode-0.2.3}/setup.cfg +0 -0
  36. {memocode-0.2.2 → memocode-0.2.3}/tools/__init__.py +0 -0
  37. {memocode-0.2.2 → memocode-0.2.3}/tools/file.py +0 -0
  38. {memocode-0.2.2 → memocode-0.2.3}/tools/loader.py +0 -0
  39. {memocode-0.2.2 → memocode-0.2.3}/tools/registry.py +0 -0
  40. {memocode-0.2.2 → memocode-0.2.3}/tools/shell.py +0 -0
  41. {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.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
 
@@ -2,7 +2,6 @@
2
2
 
3
3
  Personal AI coding agent CLI with memory, tool execution, and safety controls.
4
4
 
5
- **Author:** AssassinCHN
6
5
 
7
6
  ## Features
8
7
 
@@ -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
- self._acquire_lock()
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.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
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "memocode"
7
- version = "0.2.2"
7
+ version = "0.2.3"
8
8
  description = "Personal AI coding agent with memory, tool execution, and safety controls"
9
9
  readme = "README.md"
10
10
  authors = [{name = "AssassinCHN"}]
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