refactorai-cli 0.7.13__tar.gz → 0.7.14__tar.gz
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.
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/PKG-INFO +1 -1
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/pyproject.toml +1 -1
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/__init__.py +1 -1
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commands/runtime_proxy_cmds.py +25 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli.egg-info/PKG-INFO +1 -1
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/README.md +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/auth.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/client.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/cloud_rr.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commands/__init__.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commands/account_cmds.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commands/auth_cmds.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commands/branch_cmds.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commands/cloud_cmds.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commands/engine_cmds.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commands/hook_cmds.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commands/model_cmds.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commands/policy_cmds.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commands/pre_push_cmds.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commands/request_cmds.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commands/rules_cmds.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commands/run_cmds.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commands/runtime_cmds.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commands/setup_cmds.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commands/toolchains_cmds.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commands/watch_cmds.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commands/workspace_cmds.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commit_queue.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commit_telemetry.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/control_plane.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/credentials.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/dotenv_loader.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/git_scope.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/local_constitution.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/local_engine_runtime.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/local_paths.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/main.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/mode_sync.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/model_policy.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/pre_push_gate.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/refactor_branch_store.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/review_runner.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/runtime_manager.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/settings.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/setup_flow.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/watch_ledger.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/watch_state.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/watch_supervisor.py +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli.egg-info/SOURCES.txt +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli.egg-info/dependency_links.txt +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli.egg-info/entry_points.txt +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli.egg-info/requires.txt +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli.egg-info/top_level.txt +0 -0
- {refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/setup.cfg +0 -0
{refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli/commands/runtime_proxy_cmds.py
RENAMED
|
@@ -79,6 +79,30 @@ def _engine_runs_on_server() -> bool:
|
|
|
79
79
|
return engine_is_remote(_project_execution_mode())
|
|
80
80
|
|
|
81
81
|
|
|
82
|
+
def _sync_mode_from_server_if_possible(command_name: str | None = None) -> None:
|
|
83
|
+
"""Best-effort server->local mode sync before routing.
|
|
84
|
+
|
|
85
|
+
Fixes the stale-mode chicken-and-egg: when a developer changes the mode in
|
|
86
|
+
the web UI, the local ``refactor.config`` may still point at the previous
|
|
87
|
+
variant. If dispatch reads that stale local value first, commands can route
|
|
88
|
+
to the wrong engine path (for example ``doctor`` going to the runtime path
|
|
89
|
+
instead of the local CLI cloud path), so the sync never runs and the local
|
|
90
|
+
mode never updates.
|
|
91
|
+
|
|
92
|
+
This helper is intentionally silent and fail-open (offline/auth issues are
|
|
93
|
+
ignored) so command routing remains robust.
|
|
94
|
+
"""
|
|
95
|
+
try:
|
|
96
|
+
from refactorai_cli.mode_sync import sync_execution_variant_from_server
|
|
97
|
+
|
|
98
|
+
emit = None
|
|
99
|
+
if command_name == "doctor":
|
|
100
|
+
emit = lambda m: console.print(f"[dim]{m}[/dim]")
|
|
101
|
+
sync_execution_variant_from_server(Path.cwd(), emit=emit)
|
|
102
|
+
except Exception:
|
|
103
|
+
return
|
|
104
|
+
|
|
105
|
+
|
|
82
106
|
def _active_runtime_artifact() -> Path:
|
|
83
107
|
status = runtime_status()
|
|
84
108
|
version = str(status.get("active_version") or "").strip()
|
|
@@ -181,6 +205,7 @@ def _dispatch(command_name: str, passthrough_args: list[str]) -> None:
|
|
|
181
205
|
host-engine variants (``local_model`` / ``local_heuristic``) execute via the
|
|
182
206
|
downloaded runtime artifact.
|
|
183
207
|
"""
|
|
208
|
+
_sync_mode_from_server_if_possible(command_name)
|
|
184
209
|
if _engine_runs_on_server():
|
|
185
210
|
_delegate_to_run_cmds(command_name, passthrough_args)
|
|
186
211
|
return
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{refactorai_cli-0.7.13 → refactorai_cli-0.7.14}/refactorai_cli.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|