mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
Simplify local/cloud routing and clarify project targeting
Signed-off-by: phernandez <paul@basicmachines.co>
This commit is contained in:
@@ -31,7 +31,6 @@ class RuntimeMode(Enum):
|
||||
|
||||
|
||||
def resolve_runtime_mode(
|
||||
cloud_mode_enabled: bool,
|
||||
is_test_env: bool,
|
||||
) -> RuntimeMode:
|
||||
"""Resolve the runtime mode from configuration flags.
|
||||
@@ -40,7 +39,6 @@ def resolve_runtime_mode(
|
||||
Composition roots call this with config values they've read.
|
||||
|
||||
Args:
|
||||
cloud_mode_enabled: Whether cloud mode is enabled in config
|
||||
is_test_env: Whether running in test environment
|
||||
|
||||
Returns:
|
||||
@@ -52,10 +50,4 @@ def resolve_runtime_mode(
|
||||
if is_test_env:
|
||||
return RuntimeMode.TEST
|
||||
|
||||
# Trigger: cloud mode is enabled in config
|
||||
# Why: cloud mode changes auth, sync, and API behavior
|
||||
# Outcome: returns CLOUD mode for remote-first behavior
|
||||
if cloud_mode_enabled:
|
||||
return RuntimeMode.CLOUD
|
||||
|
||||
return RuntimeMode.LOCAL
|
||||
|
||||
Reference in New Issue
Block a user