claude-memory-agent 2.0.0 → 2.1.0

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 (34) hide show
  1. package/README.md +206 -200
  2. package/agent_card.py +186 -0
  3. package/bin/cli.js +317 -181
  4. package/bin/postinstall.js +270 -216
  5. package/dashboard.html +4232 -2689
  6. package/hooks/__pycache__/grounding-hook.cpython-312.pyc +0 -0
  7. package/hooks/__pycache__/session_end.cpython-312.pyc +0 -0
  8. package/hooks/grounding-hook.py +422 -348
  9. package/hooks/session_end.py +293 -192
  10. package/hooks/session_start.py +227 -227
  11. package/install.py +919 -887
  12. package/main.py +4496 -2859
  13. package/package.json +47 -55
  14. package/services/__init__.py +50 -50
  15. package/services/__pycache__/__init__.cpython-312.pyc +0 -0
  16. package/services/__pycache__/curator.cpython-312.pyc +0 -0
  17. package/services/__pycache__/database.cpython-312.pyc +0 -0
  18. package/services/curator.py +1606 -0
  19. package/services/database.py +3637 -2485
  20. package/skills/__init__.py +21 -1
  21. package/skills/__pycache__/__init__.cpython-312.pyc +0 -0
  22. package/skills/__pycache__/confidence_tracker.cpython-312.pyc +0 -0
  23. package/skills/__pycache__/context.cpython-312.pyc +0 -0
  24. package/skills/__pycache__/curator.cpython-312.pyc +0 -0
  25. package/skills/__pycache__/search.cpython-312.pyc +0 -0
  26. package/skills/__pycache__/session_review.cpython-312.pyc +0 -0
  27. package/skills/__pycache__/store.cpython-312.pyc +0 -0
  28. package/skills/confidence_tracker.py +441 -0
  29. package/skills/context.py +675 -0
  30. package/skills/curator.py +348 -0
  31. package/skills/search.py +369 -213
  32. package/skills/session_review.py +418 -0
  33. package/skills/store.py +377 -179
  34. package/update_system.py +829 -817
package/package.json CHANGED
@@ -1,55 +1,47 @@
1
- {
2
- "name": "claude-memory-agent",
3
- "version": "2.0.0",
4
- "description": "Persistent semantic memory system for Claude Code sessions with anti-hallucination grounding",
5
- "keywords": [
6
- "claude",
7
- "claude-code",
8
- "memory",
9
- "ai",
10
- "mcp",
11
- "semantic-search",
12
- "embeddings",
13
- "ollama"
14
- ],
15
- "author": "Your Name",
16
- "license": "MIT",
17
- "repository": {
18
- "type": "git",
19
- "url": "https://github.com/yourusername/claude-memory-agent.git"
20
- },
21
- "homepage": "https://github.com/yourusername/claude-memory-agent#readme",
22
- "bugs": {
23
- "url": "https://github.com/yourusername/claude-memory-agent/issues"
24
- },
25
- "bin": {
26
- "claude-memory-agent": "./bin/cli.js",
27
- "claude-memory": "./bin/cli.js"
28
- },
29
- "files": [
30
- "bin/",
31
- "services/",
32
- "skills/",
33
- "hooks/",
34
- "*.py",
35
- "*.md",
36
- "*.txt",
37
- "*.html",
38
- ".env.example"
39
- ],
40
- "scripts": {
41
- "postinstall": "node bin/postinstall.js",
42
- "start": "python main.py",
43
- "install-agent": "python install.py --auto",
44
- "test": "python -m pytest"
45
- },
46
- "engines": {
47
- "node": ">=16.0.0"
48
- },
49
- "os": [
50
- "win32",
51
- "darwin",
52
- "linux"
53
- ],
54
- "preferGlobal": true
55
- }
1
+ {
2
+ "name": "claude-memory-agent",
3
+ "version": "2.1.0",
4
+ "description": "Persistent semantic memory system for Claude Code sessions with anti-hallucination grounding",
5
+ "keywords": [
6
+ "claude",
7
+ "claude-code",
8
+ "memory",
9
+ "ai",
10
+ "mcp",
11
+ "semantic-search",
12
+ "embeddings",
13
+ "ollama"
14
+ ],
15
+ "author": "Claude Memory Agent Contributors",
16
+ "license": "MIT",
17
+ "bin": {
18
+ "claude-memory-agent": "./bin/cli.js",
19
+ "claude-memory": "./bin/cli.js"
20
+ },
21
+ "files": [
22
+ "bin/",
23
+ "services/",
24
+ "skills/",
25
+ "hooks/",
26
+ "*.py",
27
+ "*.md",
28
+ "*.txt",
29
+ "*.html",
30
+ ".env.example"
31
+ ],
32
+ "scripts": {
33
+ "postinstall": "node bin/postinstall.js",
34
+ "start": "python main.py",
35
+ "install-agent": "python install.py --auto",
36
+ "test": "python -m pytest"
37
+ },
38
+ "engines": {
39
+ "node": ">=16.0.0"
40
+ },
41
+ "os": [
42
+ "win32",
43
+ "darwin",
44
+ "linux"
45
+ ],
46
+ "preferGlobal": true
47
+ }
@@ -1,50 +1,50 @@
1
- from .database import DatabaseService
2
- from .embeddings import EmbeddingService
3
-
4
- # Moltbot-inspired transparency services
5
- from .daily_log import (
6
- append_entry as daily_log_append,
7
- append_session_summary as daily_log_append_session,
8
- load_recent_logs as daily_log_read,
9
- get_today_highlights as daily_log_highlights,
10
- list_logs as daily_log_list,
11
- get_log_path
12
- )
13
- from .memory_md_sync import (
14
- sync_to_memory_md,
15
- read_memory_md,
16
- add_fact as add_memory_md_fact,
17
- get_memory_md_summary,
18
- get_memory_md_path
19
- )
20
- from .compaction_flush import (
21
- check_flush_needed,
22
- execute_flush as pre_compaction_flush,
23
- list_flushes,
24
- read_flush,
25
- get_flush_path
26
- )
27
-
28
- __all__ = [
29
- "DatabaseService",
30
- "EmbeddingService",
31
- # Daily log
32
- "daily_log_append",
33
- "daily_log_append_session",
34
- "daily_log_read",
35
- "daily_log_highlights",
36
- "daily_log_list",
37
- "get_log_path",
38
- # MEMORY.md
39
- "sync_to_memory_md",
40
- "read_memory_md",
41
- "add_memory_md_fact",
42
- "get_memory_md_summary",
43
- "get_memory_md_path",
44
- # Compaction flush
45
- "check_flush_needed",
46
- "pre_compaction_flush",
47
- "list_flushes",
48
- "read_flush",
49
- "get_flush_path",
50
- ]
1
+ from .database import DatabaseService
2
+ from .embeddings import EmbeddingService
3
+
4
+ # Moltbot-inspired transparency services
5
+ from .daily_log import (
6
+ append_entry as daily_log_append,
7
+ append_session_summary as daily_log_append_session,
8
+ load_recent_logs as daily_log_read,
9
+ get_today_highlights as daily_log_highlights,
10
+ list_logs as daily_log_list,
11
+ get_log_path
12
+ )
13
+ from .memory_md_sync import (
14
+ sync_to_memory_md,
15
+ read_memory_md,
16
+ add_fact as add_memory_md_fact,
17
+ get_memory_md_summary,
18
+ get_memory_md_path
19
+ )
20
+ from .compaction_flush import (
21
+ check_flush_needed,
22
+ execute_flush as pre_compaction_flush,
23
+ list_flushes,
24
+ read_flush,
25
+ get_flush_path
26
+ )
27
+
28
+ __all__ = [
29
+ "DatabaseService",
30
+ "EmbeddingService",
31
+ # Daily log
32
+ "daily_log_append",
33
+ "daily_log_append_session",
34
+ "daily_log_read",
35
+ "daily_log_highlights",
36
+ "daily_log_list",
37
+ "get_log_path",
38
+ # MEMORY.md
39
+ "sync_to_memory_md",
40
+ "read_memory_md",
41
+ "add_memory_md_fact",
42
+ "get_memory_md_summary",
43
+ "get_memory_md_path",
44
+ # Compaction flush
45
+ "check_flush_needed",
46
+ "pre_compaction_flush",
47
+ "list_flushes",
48
+ "read_flush",
49
+ "get_flush_path",
50
+ ]