spatial-memory-mcp 1.6.1__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.
Potentially problematic release.
This version of spatial-memory-mcp might be problematic. Click here for more details.
- spatial_memory/__init__.py +97 -0
- spatial_memory/__main__.py +270 -0
- spatial_memory/adapters/__init__.py +7 -0
- spatial_memory/adapters/lancedb_repository.py +878 -0
- spatial_memory/config.py +728 -0
- spatial_memory/core/__init__.py +118 -0
- spatial_memory/core/cache.py +317 -0
- spatial_memory/core/circuit_breaker.py +297 -0
- spatial_memory/core/connection_pool.py +220 -0
- spatial_memory/core/consolidation_strategies.py +402 -0
- spatial_memory/core/database.py +3069 -0
- spatial_memory/core/db_idempotency.py +242 -0
- spatial_memory/core/db_indexes.py +575 -0
- spatial_memory/core/db_migrations.py +584 -0
- spatial_memory/core/db_search.py +509 -0
- spatial_memory/core/db_versioning.py +177 -0
- spatial_memory/core/embeddings.py +557 -0
- spatial_memory/core/errors.py +317 -0
- spatial_memory/core/file_security.py +702 -0
- spatial_memory/core/filesystem.py +178 -0
- spatial_memory/core/health.py +289 -0
- spatial_memory/core/helpers.py +79 -0
- spatial_memory/core/import_security.py +432 -0
- spatial_memory/core/lifecycle_ops.py +1067 -0
- spatial_memory/core/logging.py +194 -0
- spatial_memory/core/metrics.py +192 -0
- spatial_memory/core/models.py +628 -0
- spatial_memory/core/rate_limiter.py +326 -0
- spatial_memory/core/response_types.py +497 -0
- spatial_memory/core/security.py +588 -0
- spatial_memory/core/spatial_ops.py +426 -0
- spatial_memory/core/tracing.py +300 -0
- spatial_memory/core/utils.py +110 -0
- spatial_memory/core/validation.py +403 -0
- spatial_memory/factory.py +407 -0
- spatial_memory/migrations/__init__.py +40 -0
- spatial_memory/ports/__init__.py +11 -0
- spatial_memory/ports/repositories.py +631 -0
- spatial_memory/py.typed +0 -0
- spatial_memory/server.py +1141 -0
- spatial_memory/services/__init__.py +70 -0
- spatial_memory/services/export_import.py +1023 -0
- spatial_memory/services/lifecycle.py +1120 -0
- spatial_memory/services/memory.py +412 -0
- spatial_memory/services/spatial.py +1147 -0
- spatial_memory/services/utility.py +409 -0
- spatial_memory/tools/__init__.py +5 -0
- spatial_memory/tools/definitions.py +695 -0
- spatial_memory/verify.py +140 -0
- spatial_memory_mcp-1.6.1.dist-info/METADATA +499 -0
- spatial_memory_mcp-1.6.1.dist-info/RECORD +54 -0
- spatial_memory_mcp-1.6.1.dist-info/WHEEL +4 -0
- spatial_memory_mcp-1.6.1.dist-info/entry_points.txt +2 -0
- spatial_memory_mcp-1.6.1.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"""Service layer for Spatial Memory MCP Server."""
|
|
2
|
+
|
|
3
|
+
from spatial_memory.core.errors import (
|
|
4
|
+
ConsolidationError,
|
|
5
|
+
DecayError,
|
|
6
|
+
ExtractionError,
|
|
7
|
+
NamespaceOperationError,
|
|
8
|
+
ReinforcementError,
|
|
9
|
+
)
|
|
10
|
+
from spatial_memory.services.lifecycle import (
|
|
11
|
+
ConsolidateResult,
|
|
12
|
+
ConsolidationGroupResult,
|
|
13
|
+
DecayedMemory,
|
|
14
|
+
DecayResult,
|
|
15
|
+
ExtractedMemory,
|
|
16
|
+
ExtractResult,
|
|
17
|
+
LifecycleConfig,
|
|
18
|
+
LifecycleService,
|
|
19
|
+
ReinforcedMemory,
|
|
20
|
+
ReinforceResult,
|
|
21
|
+
)
|
|
22
|
+
from spatial_memory.services.memory import (
|
|
23
|
+
ForgetResult,
|
|
24
|
+
MemoryService,
|
|
25
|
+
NearbyResult,
|
|
26
|
+
RecallResult,
|
|
27
|
+
RememberResult,
|
|
28
|
+
)
|
|
29
|
+
from spatial_memory.services.spatial import (
|
|
30
|
+
SpatialConfig,
|
|
31
|
+
SpatialService,
|
|
32
|
+
)
|
|
33
|
+
from spatial_memory.services.utility import (
|
|
34
|
+
UtilityService,
|
|
35
|
+
)
|
|
36
|
+
from spatial_memory.services.export_import import (
|
|
37
|
+
ExportImportService,
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
__all__ = [
|
|
41
|
+
# Lifecycle
|
|
42
|
+
"ConsolidateResult",
|
|
43
|
+
"ConsolidationError",
|
|
44
|
+
"ConsolidationGroupResult",
|
|
45
|
+
"DecayedMemory",
|
|
46
|
+
"DecayError",
|
|
47
|
+
"DecayResult",
|
|
48
|
+
"ExtractedMemory",
|
|
49
|
+
"ExtractionError",
|
|
50
|
+
"ExtractResult",
|
|
51
|
+
"LifecycleConfig",
|
|
52
|
+
"LifecycleService",
|
|
53
|
+
"ReinforcedMemory",
|
|
54
|
+
"ReinforcementError",
|
|
55
|
+
"ReinforceResult",
|
|
56
|
+
# Memory
|
|
57
|
+
"ForgetResult",
|
|
58
|
+
"MemoryService",
|
|
59
|
+
"NearbyResult",
|
|
60
|
+
"RecallResult",
|
|
61
|
+
"RememberResult",
|
|
62
|
+
# Spatial
|
|
63
|
+
"SpatialConfig",
|
|
64
|
+
"SpatialService",
|
|
65
|
+
# Utility
|
|
66
|
+
"NamespaceOperationError",
|
|
67
|
+
"UtilityService",
|
|
68
|
+
# Export/Import
|
|
69
|
+
"ExportImportService",
|
|
70
|
+
]
|