refactorai-cli 0.3.9__tar.gz → 0.3.10__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.3.9 → refactorai_cli-0.3.10}/PKG-INFO +1 -1
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/pyproject.toml +1 -1
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/__init__.py +1 -1
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/cloud_rr.py +27 -3
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli.egg-info/PKG-INFO +1 -1
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/README.md +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/auth.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/client.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/commands/__init__.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/commands/account_cmds.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/commands/auth_cmds.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/commands/cloud_cmds.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/commands/engine_cmds.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/commands/model_cmds.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/commands/rules_cmds.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/commands/run_cmds.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/commands/runtime_cmds.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/commands/runtime_proxy_cmds.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/commands/setup_cmds.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/commands/toolchains_cmds.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/control_plane.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/credentials.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/local_constitution.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/local_engine_runtime.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/local_paths.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/main.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/model_policy.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/runtime_manager.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/settings.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli/setup_flow.py +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli.egg-info/SOURCES.txt +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli.egg-info/dependency_links.txt +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli.egg-info/entry_points.txt +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli.egg-info/requires.txt +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/refactorai_cli.egg-info/top_level.txt +0 -0
- {refactorai_cli-0.3.9 → refactorai_cli-0.3.10}/setup.cfg +0 -0
|
@@ -193,6 +193,21 @@ def _managed_toolchain_enabled(config: dict) -> bool:
|
|
|
193
193
|
return True
|
|
194
194
|
|
|
195
195
|
|
|
196
|
+
def _detected_is_provisionable(command: str | None) -> bool:
|
|
197
|
+
"""True when ``command``'s leading binary maps to a managed runtime.
|
|
198
|
+
|
|
199
|
+
Lets the resolver keep a detected command (e.g. ``npm test``) whose runtime
|
|
200
|
+
is missing from the host PATH but which the managed toolchain can download,
|
|
201
|
+
instead of discarding it and deferring the run.
|
|
202
|
+
"""
|
|
203
|
+
from refactor_core.host_toolchain import binary_to_runtime
|
|
204
|
+
|
|
205
|
+
binary = _leading_binary(command)
|
|
206
|
+
if not binary:
|
|
207
|
+
return False
|
|
208
|
+
return binary_to_runtime(binary) is not None
|
|
209
|
+
|
|
210
|
+
|
|
196
211
|
def _provision_toolchain(
|
|
197
212
|
project_root: Path,
|
|
198
213
|
test_command: str | None,
|
|
@@ -396,13 +411,22 @@ def _resolve_cloud_test_command(
|
|
|
396
411
|
"toolchain or update verification.tests.command."
|
|
397
412
|
)
|
|
398
413
|
|
|
399
|
-
# 2) Root-marker / monorepo detection
|
|
414
|
+
# 2) Root-marker / monorepo detection. Usable if runnable on the host OR if
|
|
415
|
+
# its runtime can be provisioned by the managed toolchain (the caller then
|
|
416
|
+
# downloads it before the baseline). Only when neither holds do we fall
|
|
417
|
+
# through to server discovery, so we never lock onto a command that is
|
|
418
|
+
# truly un-runnable (e.g. a Tier-3 binary with no managed runtime).
|
|
400
419
|
detected = resolve_test_command(project_root, config) or discover_test_command(project_root)
|
|
401
420
|
if detected:
|
|
402
421
|
if _client_preflight_command(project_root, detected):
|
|
403
422
|
return detected, f"auto-detected test command: {detected}"
|
|
404
|
-
|
|
405
|
-
|
|
423
|
+
if _managed_toolchain_enabled(config) and _detected_is_provisionable(detected):
|
|
424
|
+
return detected, (
|
|
425
|
+
f"auto-detected test command: {detected} "
|
|
426
|
+
"(runtime not on host PATH; will provision a managed toolchain)"
|
|
427
|
+
)
|
|
428
|
+
# Detected but neither runnable nor provisionable -> fall through to
|
|
429
|
+
# server discovery rather than committing to an un-runnable command.
|
|
406
430
|
detected_note = (
|
|
407
431
|
f"auto-detected test command '{detected}' but its toolchain was not "
|
|
408
432
|
"found on the host PATH; trying server discovery."
|
|
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.3.9 → refactorai_cli-0.3.10}/refactorai_cli/commands/runtime_proxy_cmds.py
RENAMED
|
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
|