roampal 0.1.4__py3-none-any.whl
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.
- roampal/__init__.py +29 -0
- roampal/__main__.py +6 -0
- roampal/backend/__init__.py +1 -0
- roampal/backend/modules/__init__.py +1 -0
- roampal/backend/modules/memory/__init__.py +43 -0
- roampal/backend/modules/memory/chromadb_adapter.py +623 -0
- roampal/backend/modules/memory/config.py +102 -0
- roampal/backend/modules/memory/content_graph.py +543 -0
- roampal/backend/modules/memory/context_service.py +455 -0
- roampal/backend/modules/memory/embedding_service.py +96 -0
- roampal/backend/modules/memory/knowledge_graph_service.py +1052 -0
- roampal/backend/modules/memory/memory_bank_service.py +433 -0
- roampal/backend/modules/memory/memory_types.py +296 -0
- roampal/backend/modules/memory/outcome_service.py +400 -0
- roampal/backend/modules/memory/promotion_service.py +473 -0
- roampal/backend/modules/memory/routing_service.py +444 -0
- roampal/backend/modules/memory/scoring_service.py +324 -0
- roampal/backend/modules/memory/search_service.py +646 -0
- roampal/backend/modules/memory/tests/__init__.py +1 -0
- roampal/backend/modules/memory/tests/conftest.py +12 -0
- roampal/backend/modules/memory/tests/unit/__init__.py +1 -0
- roampal/backend/modules/memory/tests/unit/conftest.py +7 -0
- roampal/backend/modules/memory/tests/unit/test_knowledge_graph_service.py +517 -0
- roampal/backend/modules/memory/tests/unit/test_memory_bank_service.py +504 -0
- roampal/backend/modules/memory/tests/unit/test_outcome_service.py +485 -0
- roampal/backend/modules/memory/tests/unit/test_scoring_service.py +255 -0
- roampal/backend/modules/memory/tests/unit/test_search_service.py +413 -0
- roampal/backend/modules/memory/tests/unit/test_unified_memory_system.py +418 -0
- roampal/backend/modules/memory/unified_memory_system.py +1277 -0
- roampal/cli.py +638 -0
- roampal/hooks/__init__.py +16 -0
- roampal/hooks/session_manager.py +587 -0
- roampal/hooks/stop_hook.py +176 -0
- roampal/hooks/user_prompt_submit_hook.py +103 -0
- roampal/mcp/__init__.py +7 -0
- roampal/mcp/server.py +611 -0
- roampal/server/__init__.py +7 -0
- roampal/server/main.py +744 -0
- roampal-0.1.4.dist-info/METADATA +179 -0
- roampal-0.1.4.dist-info/RECORD +44 -0
- roampal-0.1.4.dist-info/WHEEL +5 -0
- roampal-0.1.4.dist-info/entry_points.txt +2 -0
- roampal-0.1.4.dist-info/licenses/LICENSE +190 -0
- roampal-0.1.4.dist-info/top_level.txt +1 -0
roampal/__init__.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Roampal Core - Persistent Memory for AI Coding Tools
|
|
3
|
+
|
|
4
|
+
One command install. AI coding tools get persistent memory.
|
|
5
|
+
|
|
6
|
+
Usage:
|
|
7
|
+
pip install roampal
|
|
8
|
+
roampal init
|
|
9
|
+
roampal start
|
|
10
|
+
|
|
11
|
+
How it works:
|
|
12
|
+
1. Roampal hooks intercept messages BEFORE the AI sees them
|
|
13
|
+
2. Relevant memories are automatically injected
|
|
14
|
+
3. The AI learns what works and what doesn't
|
|
15
|
+
4. You see your original message; the AI sees your message + context
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
__version__ = "0.1.4"
|
|
19
|
+
|
|
20
|
+
from roampal.backend.modules.memory import (
|
|
21
|
+
UnifiedMemorySystem,
|
|
22
|
+
MemoryConfig,
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
__all__ = [
|
|
26
|
+
"UnifiedMemorySystem",
|
|
27
|
+
"MemoryConfig",
|
|
28
|
+
"__version__",
|
|
29
|
+
]
|
roampal/__main__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Roampal Backend - Memory storage, vectors, KG, scoring, outcome tracking"""
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Roampal Backend Modules"""
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Memory System - Core memory storage and retrieval
|
|
3
|
+
|
|
4
|
+
Provides:
|
|
5
|
+
- UnifiedMemorySystem: Main orchestrator
|
|
6
|
+
- ChromaDBAdapter: Vector storage
|
|
7
|
+
- Services: Search, Scoring, Outcome, Context, MemoryBank
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from .config import MemoryConfig
|
|
11
|
+
from .memory_types import (
|
|
12
|
+
CollectionName,
|
|
13
|
+
OutcomeEntry,
|
|
14
|
+
OutcomeHistory,
|
|
15
|
+
SearchResult,
|
|
16
|
+
MemoryMetadata,
|
|
17
|
+
)
|
|
18
|
+
from .unified_memory_system import UnifiedMemorySystem
|
|
19
|
+
from .chromadb_adapter import ChromaDBAdapter
|
|
20
|
+
from .embedding_service import EmbeddingService
|
|
21
|
+
from .scoring_service import ScoringService
|
|
22
|
+
from .outcome_service import OutcomeService
|
|
23
|
+
from .memory_bank_service import MemoryBankService
|
|
24
|
+
from .context_service import ContextService
|
|
25
|
+
|
|
26
|
+
__all__ = [
|
|
27
|
+
# Main system
|
|
28
|
+
"UnifiedMemorySystem",
|
|
29
|
+
# Types and config
|
|
30
|
+
"MemoryConfig",
|
|
31
|
+
"CollectionName",
|
|
32
|
+
"OutcomeEntry",
|
|
33
|
+
"OutcomeHistory",
|
|
34
|
+
"SearchResult",
|
|
35
|
+
"MemoryMetadata",
|
|
36
|
+
# Services
|
|
37
|
+
"ChromaDBAdapter",
|
|
38
|
+
"EmbeddingService",
|
|
39
|
+
"ScoringService",
|
|
40
|
+
"OutcomeService",
|
|
41
|
+
"MemoryBankService",
|
|
42
|
+
"ContextService",
|
|
43
|
+
]
|