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.
Files changed (44) hide show
  1. roampal/__init__.py +29 -0
  2. roampal/__main__.py +6 -0
  3. roampal/backend/__init__.py +1 -0
  4. roampal/backend/modules/__init__.py +1 -0
  5. roampal/backend/modules/memory/__init__.py +43 -0
  6. roampal/backend/modules/memory/chromadb_adapter.py +623 -0
  7. roampal/backend/modules/memory/config.py +102 -0
  8. roampal/backend/modules/memory/content_graph.py +543 -0
  9. roampal/backend/modules/memory/context_service.py +455 -0
  10. roampal/backend/modules/memory/embedding_service.py +96 -0
  11. roampal/backend/modules/memory/knowledge_graph_service.py +1052 -0
  12. roampal/backend/modules/memory/memory_bank_service.py +433 -0
  13. roampal/backend/modules/memory/memory_types.py +296 -0
  14. roampal/backend/modules/memory/outcome_service.py +400 -0
  15. roampal/backend/modules/memory/promotion_service.py +473 -0
  16. roampal/backend/modules/memory/routing_service.py +444 -0
  17. roampal/backend/modules/memory/scoring_service.py +324 -0
  18. roampal/backend/modules/memory/search_service.py +646 -0
  19. roampal/backend/modules/memory/tests/__init__.py +1 -0
  20. roampal/backend/modules/memory/tests/conftest.py +12 -0
  21. roampal/backend/modules/memory/tests/unit/__init__.py +1 -0
  22. roampal/backend/modules/memory/tests/unit/conftest.py +7 -0
  23. roampal/backend/modules/memory/tests/unit/test_knowledge_graph_service.py +517 -0
  24. roampal/backend/modules/memory/tests/unit/test_memory_bank_service.py +504 -0
  25. roampal/backend/modules/memory/tests/unit/test_outcome_service.py +485 -0
  26. roampal/backend/modules/memory/tests/unit/test_scoring_service.py +255 -0
  27. roampal/backend/modules/memory/tests/unit/test_search_service.py +413 -0
  28. roampal/backend/modules/memory/tests/unit/test_unified_memory_system.py +418 -0
  29. roampal/backend/modules/memory/unified_memory_system.py +1277 -0
  30. roampal/cli.py +638 -0
  31. roampal/hooks/__init__.py +16 -0
  32. roampal/hooks/session_manager.py +587 -0
  33. roampal/hooks/stop_hook.py +176 -0
  34. roampal/hooks/user_prompt_submit_hook.py +103 -0
  35. roampal/mcp/__init__.py +7 -0
  36. roampal/mcp/server.py +611 -0
  37. roampal/server/__init__.py +7 -0
  38. roampal/server/main.py +744 -0
  39. roampal-0.1.4.dist-info/METADATA +179 -0
  40. roampal-0.1.4.dist-info/RECORD +44 -0
  41. roampal-0.1.4.dist-info/WHEEL +5 -0
  42. roampal-0.1.4.dist-info/entry_points.txt +2 -0
  43. roampal-0.1.4.dist-info/licenses/LICENSE +190 -0
  44. 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,6 @@
1
+ """Entry point for `python -m roampal`."""
2
+
3
+ from roampal.cli import main
4
+
5
+ if __name__ == "__main__":
6
+ main()
@@ -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
+ ]