refactorai-cli 0.4.16__tar.gz → 0.4.17__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.4.16 → refactorai_cli-0.4.17}/PKG-INFO +2 -2
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/pyproject.toml +2 -2
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/__init__.py +1 -1
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/commands/run_cmds.py +34 -11
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli.egg-info/PKG-INFO +2 -2
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli.egg-info/requires.txt +1 -1
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/README.md +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/auth.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/client.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/cloud_rr.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/commands/__init__.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/commands/account_cmds.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/commands/auth_cmds.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/commands/branch_cmds.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/commands/cloud_cmds.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/commands/engine_cmds.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/commands/hook_cmds.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/commands/model_cmds.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/commands/request_cmds.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/commands/rules_cmds.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/commands/runtime_cmds.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/commands/runtime_proxy_cmds.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/commands/setup_cmds.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/commands/toolchains_cmds.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/commands/watch_cmds.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/commit_queue.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/control_plane.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/credentials.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/dotenv_loader.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/git_scope.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/local_constitution.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/local_engine_runtime.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/local_paths.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/main.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/model_policy.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/refactor_branch_store.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/review_runner.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/runtime_manager.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/settings.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/setup_flow.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/watch_state.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli/watch_supervisor.py +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli.egg-info/SOURCES.txt +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli.egg-info/dependency_links.txt +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli.egg-info/entry_points.txt +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli.egg-info/top_level.txt +0 -0
- {refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: refactorai-cli
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.17
|
|
4
4
|
Summary: Local-first CLI for the refactor platform
|
|
5
5
|
Requires-Python: >=3.11
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -8,7 +8,7 @@ Requires-Dist: typer>=0.12.0
|
|
|
8
8
|
Requires-Dist: httpx>=0.27.0
|
|
9
9
|
Requires-Dist: rich>=13.7.0
|
|
10
10
|
Requires-Dist: PyYAML>=6.0.1
|
|
11
|
-
Requires-Dist: refactorai-core>=3.2.
|
|
11
|
+
Requires-Dist: refactorai-core>=3.2.10
|
|
12
12
|
|
|
13
13
|
# refactorai-cli
|
|
14
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "refactorai-cli"
|
|
3
|
-
version = "0.4.
|
|
3
|
+
version = "0.4.17"
|
|
4
4
|
description = "Local-first CLI for the refactor platform"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.11"
|
|
@@ -12,7 +12,7 @@ dependencies = [
|
|
|
12
12
|
"httpx>=0.27.0",
|
|
13
13
|
"rich>=13.7.0",
|
|
14
14
|
"PyYAML>=6.0.1",
|
|
15
|
-
"refactorai-core>=3.2.
|
|
15
|
+
"refactorai-core>=3.2.10",
|
|
16
16
|
]
|
|
17
17
|
|
|
18
18
|
[project.scripts]
|
|
@@ -4518,7 +4518,34 @@ def _cloud_doctor(
|
|
|
4518
4518
|
if execution_mode == "cloud_byok":
|
|
4519
4519
|
if provider_key:
|
|
4520
4520
|
# Env-key path: perform a lightweight inference ping so entitlement +
|
|
4521
|
-
# provider auth are validated together.
|
|
4521
|
+
# provider auth are validated together. Forward the configured
|
|
4522
|
+
# ``model_id`` (already ${ENV} interpolated by the constitution) so the
|
|
4523
|
+
# ping validates the *same* model real runs use. Doctor must not let the
|
|
4524
|
+
# backend/provider silently choose a default model because that can pass
|
|
4525
|
+
# while the configured run model is missing or unreachable.
|
|
4526
|
+
model_hint = str(constitution.get_setting("model_id", "") or "").strip()
|
|
4527
|
+
if not model_hint:
|
|
4528
|
+
console.print(
|
|
4529
|
+
"[red]model[/red]: no `model_id` configured in refactor.config."
|
|
4530
|
+
)
|
|
4531
|
+
console.print(
|
|
4532
|
+
"[yellow]doctor[/yellow]: you need to set `model_id` in "
|
|
4533
|
+
"refactor.config for the selected provider before doctor can "
|
|
4534
|
+
"validate model reachability."
|
|
4535
|
+
)
|
|
4536
|
+
raise typer.Exit(code=1)
|
|
4537
|
+
console.print(f"[bold]model[/bold]: {model_hint}")
|
|
4538
|
+
payload = {
|
|
4539
|
+
"stage": "review",
|
|
4540
|
+
"execution_mode": "cloud_byok",
|
|
4541
|
+
"provider": provider_name,
|
|
4542
|
+
"provider_key": provider_key,
|
|
4543
|
+
"constitution_hash": "doctor",
|
|
4544
|
+
"system_prompt": "doctor ping",
|
|
4545
|
+
"user_prompt": "doctor ping",
|
|
4546
|
+
"max_alerts": 1,
|
|
4547
|
+
"model_hint": model_hint,
|
|
4548
|
+
}
|
|
4522
4549
|
try:
|
|
4523
4550
|
response = httpx.post(
|
|
4524
4551
|
f"{platform_url()}/v1/inference/refactor",
|
|
@@ -4527,16 +4554,7 @@ def _cloud_doctor(
|
|
|
4527
4554
|
"Content-Type": "application/json",
|
|
4528
4555
|
"Idempotency-Key": f"doctor-cloud-byok-{uuid.uuid4().hex}",
|
|
4529
4556
|
},
|
|
4530
|
-
json=
|
|
4531
|
-
"stage": "review",
|
|
4532
|
-
"execution_mode": "cloud_byok",
|
|
4533
|
-
"provider": provider_name,
|
|
4534
|
-
"provider_key": provider_key,
|
|
4535
|
-
"constitution_hash": "doctor",
|
|
4536
|
-
"system_prompt": "doctor ping",
|
|
4537
|
-
"user_prompt": "doctor ping",
|
|
4538
|
-
"max_alerts": 1,
|
|
4539
|
-
},
|
|
4557
|
+
json=payload,
|
|
4540
4558
|
timeout=20.0,
|
|
4541
4559
|
)
|
|
4542
4560
|
except httpx.HTTPError as exc:
|
|
@@ -4561,6 +4579,11 @@ def _cloud_doctor(
|
|
|
4561
4579
|
f"[red]cloud BYOK ping failed[/red] ({response.status_code})"
|
|
4562
4580
|
+ (f": {detail}" if detail else ".")
|
|
4563
4581
|
)
|
|
4582
|
+
console.print(
|
|
4583
|
+
"[yellow]doctor[/yellow]: could not reach the configured model. "
|
|
4584
|
+
"Set a reachable `model_id` in refactor.config for the selected "
|
|
4585
|
+
"provider, then rerun `refactor doctor`."
|
|
4586
|
+
)
|
|
4564
4587
|
raise typer.Exit(code=1)
|
|
4565
4588
|
console.print("[green]cloud endpoint[/green]: reachable.")
|
|
4566
4589
|
console.print("[green]BYOK provider auth[/green]: OK")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: refactorai-cli
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.17
|
|
4
4
|
Summary: Local-first CLI for the refactor platform
|
|
5
5
|
Requires-Python: >=3.11
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -8,7 +8,7 @@ Requires-Dist: typer>=0.12.0
|
|
|
8
8
|
Requires-Dist: httpx>=0.27.0
|
|
9
9
|
Requires-Dist: rich>=13.7.0
|
|
10
10
|
Requires-Dist: PyYAML>=6.0.1
|
|
11
|
-
Requires-Dist: refactorai-core>=3.2.
|
|
11
|
+
Requires-Dist: refactorai-core>=3.2.10
|
|
12
12
|
|
|
13
13
|
# refactorai-cli
|
|
14
14
|
|
|
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.4.16 → refactorai_cli-0.4.17}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{refactorai_cli-0.4.16 → refactorai_cli-0.4.17}/refactorai_cli.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|