runtime-memory 3.0.0__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 (54) hide show
  1. runtime_memory/__init__.py +28 -0
  2. runtime_memory/claude_code/__init__.py +48 -0
  3. runtime_memory/claude_code/commands.py +698 -0
  4. runtime_memory/claude_code/daemon.py +852 -0
  5. runtime_memory/claude_code/hooks.py +722 -0
  6. runtime_memory/cli/__init__.py +8 -0
  7. runtime_memory/cli/main.py +1936 -0
  8. runtime_memory/core/__init__.py +216 -0
  9. runtime_memory/core/config.py +473 -0
  10. runtime_memory/core/embeddings.py +908 -0
  11. runtime_memory/core/engine.py +1007 -0
  12. runtime_memory/core/exceptions.py +547 -0
  13. runtime_memory/core/legacy_env.py +39 -0
  14. runtime_memory/core/logging.py +160 -0
  15. runtime_memory/core/models.py +1051 -0
  16. runtime_memory/core/observability.py +725 -0
  17. runtime_memory/core/paths.py +30 -0
  18. runtime_memory/core/resilience.py +511 -0
  19. runtime_memory/core/retrieval.py +819 -0
  20. runtime_memory/core/storage.py +1105 -0
  21. runtime_memory/extraction/__init__.py +36 -0
  22. runtime_memory/extraction/extractor.py +1143 -0
  23. runtime_memory/hermes/__init__.py +39 -0
  24. runtime_memory/hermes/_base.py +154 -0
  25. runtime_memory/hermes/bridge.py +119 -0
  26. runtime_memory/hermes/plugin.yaml +13 -0
  27. runtime_memory/hermes/provider.py +536 -0
  28. runtime_memory/hermes/tools.py +230 -0
  29. runtime_memory/hermes/trace.py +177 -0
  30. runtime_memory/plugin/__init__.py +646 -0
  31. runtime_memory/sdk/__init__.py +97 -0
  32. runtime_memory/sdk/client.py +1577 -0
  33. runtime_memory/server/__init__.py +75 -0
  34. runtime_memory/server/api.py +1665 -0
  35. runtime_memory/server/mcp.py +1574 -0
  36. runtime_memory/server/static/css/styles.css +1110 -0
  37. runtime_memory/server/static/index.html +264 -0
  38. runtime_memory/server/static/js/api.js +294 -0
  39. runtime_memory/server/static/js/app.js +771 -0
  40. runtime_memory/tasks/__init__.py +114 -0
  41. runtime_memory/tasks/adapter.py +501 -0
  42. runtime_memory/tasks/claude_code_adapter.py +495 -0
  43. runtime_memory/tasks/claude_code_parser.py +339 -0
  44. runtime_memory/tasks/cli_bridge.py +415 -0
  45. runtime_memory/tasks/linking.py +397 -0
  46. runtime_memory/tasks/models.py +520 -0
  47. runtime_memory/tasks/outcomes.py +320 -0
  48. runtime_memory/tasks/parser.py +305 -0
  49. runtime_memory/tasks/unified_adapter.py +661 -0
  50. runtime_memory-3.0.0.dist-info/METADATA +497 -0
  51. runtime_memory-3.0.0.dist-info/RECORD +54 -0
  52. runtime_memory-3.0.0.dist-info/WHEEL +4 -0
  53. runtime_memory-3.0.0.dist-info/entry_points.txt +6 -0
  54. runtime_memory-3.0.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,28 @@
1
+ """Runtime Memory - Persistent memory for AI coding agents with outcome-based learning.
2
+
3
+ This package provides:
4
+ - Core memory storage and retrieval with SQLite
5
+ - Hybrid search using BM25 and vector embeddings
6
+ - Outcome-based learning (advice that works gets boosted, failures get penalized)
7
+ - Multi-agent access via MCP, REST API, CLI, and SDK
8
+ - Task integration with Beads and other task systems
9
+ """
10
+
11
+ from __future__ import annotations
12
+
13
+ __version__ = "3.0.0"
14
+ __author__ = "exitcode42"
15
+
16
+ from runtime_memory.core.legacy_env import apply_legacy_env
17
+ from runtime_memory.core.logging import get_logger, setup_logging
18
+
19
+ # Carry pre-3.0 MEMORY_LAYER_* settings onto the current names before anything
20
+ # reads them, so a config written before the rename still works.
21
+ apply_legacy_env()
22
+
23
+ __all__ = [
24
+ "__version__",
25
+ "apply_legacy_env",
26
+ "get_logger",
27
+ "setup_logging",
28
+ ]
@@ -0,0 +1,48 @@
1
+ """Claude Code integration module.
2
+
3
+ This module provides integration with Claude Code through:
4
+ - File watching daemon for automatic session processing
5
+ - Lifecycle hooks for context injection and extraction
6
+ - Custom slash commands for memory operations
7
+ """
8
+
9
+ from runtime_memory.claude_code.commands import (
10
+ CommandConfig,
11
+ CommandHandler,
12
+ CommandResult,
13
+ CommandType,
14
+ export_command_schemas,
15
+ get_command_schemas,
16
+ )
17
+ from runtime_memory.claude_code.daemon import (
18
+ DaemonConfig,
19
+ MemoryLayerDaemon,
20
+ SessionInfo,
21
+ )
22
+ from runtime_memory.claude_code.hooks import (
23
+ HookConfig,
24
+ HookResult,
25
+ HookState,
26
+ HookType,
27
+ MemoryLayerHooks,
28
+ )
29
+
30
+ __all__ = [
31
+ # Commands
32
+ "CommandConfig",
33
+ "CommandHandler",
34
+ "CommandResult",
35
+ "CommandType",
36
+ "export_command_schemas",
37
+ "get_command_schemas",
38
+ # Daemon
39
+ "DaemonConfig",
40
+ "MemoryLayerDaemon",
41
+ "SessionInfo",
42
+ # Hooks
43
+ "HookConfig",
44
+ "HookResult",
45
+ "HookState",
46
+ "HookType",
47
+ "MemoryLayerHooks",
48
+ ]