Simplify local/cloud routing and clarify project targeting

Signed-off-by: phernandez <paul@basicmachines.co>
This commit is contained in:
phernandez
2026-02-16 21:42:25 -06:00
parent 9259a7eb59
commit 0239f4abb4
37 changed files with 1136 additions and 1190 deletions
-8
View File
@@ -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