refactorai-cli 0.4.7__tar.gz → 0.4.8__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.7 → refactorai_cli-0.4.8}/PKG-INFO +1 -1
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/pyproject.toml +1 -1
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/__init__.py +1 -1
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/commands/watch_cmds.py +5 -1
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/review_runner.py +18 -2
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli.egg-info/PKG-INFO +1 -1
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/README.md +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/auth.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/client.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/cloud_rr.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/commands/__init__.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/commands/account_cmds.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/commands/auth_cmds.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/commands/branch_cmds.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/commands/cloud_cmds.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/commands/engine_cmds.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/commands/hook_cmds.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/commands/model_cmds.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/commands/request_cmds.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/commands/rules_cmds.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/commands/run_cmds.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/commands/runtime_cmds.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/commands/runtime_proxy_cmds.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/commands/setup_cmds.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/commands/toolchains_cmds.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/commit_queue.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/control_plane.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/credentials.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/dotenv_loader.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/git_scope.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/local_constitution.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/local_engine_runtime.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/local_paths.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/main.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/model_policy.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/refactor_branch_store.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/runtime_manager.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/settings.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/setup_flow.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli/watch_state.py +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli.egg-info/SOURCES.txt +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli.egg-info/dependency_links.txt +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli.egg-info/entry_points.txt +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli.egg-info/requires.txt +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/refactorai_cli.egg-info/top_level.txt +0 -0
- {refactorai_cli-0.4.7 → refactorai_cli-0.4.8}/setup.cfg +0 -0
|
@@ -157,7 +157,11 @@ def process_pending(
|
|
|
157
157
|
if on_update:
|
|
158
158
|
on_update(state)
|
|
159
159
|
intent = intent_for(node.sha) if intent_for else None
|
|
160
|
-
outcome = runner.run(
|
|
160
|
+
outcome = runner.run(
|
|
161
|
+
sha=node.sha,
|
|
162
|
+
intent=intent,
|
|
163
|
+
yes_full_project=(node.scope_mode == "full"),
|
|
164
|
+
)
|
|
161
165
|
if outcome.run_id:
|
|
162
166
|
outcome.rr_preview = _preview_for_run(project_root, outcome.run_id)
|
|
163
167
|
state.apply_outcome(node.sha, outcome)
|
|
@@ -52,7 +52,13 @@ class ReviewOutcome:
|
|
|
52
52
|
class ReviewRunner(Protocol):
|
|
53
53
|
"""Runs a commit-scoped review and returns a structured outcome."""
|
|
54
54
|
|
|
55
|
-
def run(
|
|
55
|
+
def run(
|
|
56
|
+
self,
|
|
57
|
+
*,
|
|
58
|
+
sha: str,
|
|
59
|
+
intent: str | None = None,
|
|
60
|
+
yes_full_project: bool = False,
|
|
61
|
+
) -> ReviewOutcome: ...
|
|
56
62
|
|
|
57
63
|
|
|
58
64
|
def parse_review_output(sha: str, stdout: str, returncode: int) -> ReviewOutcome:
|
|
@@ -111,10 +117,20 @@ class SubprocessReviewRunner:
|
|
|
111
117
|
self.timeout = timeout
|
|
112
118
|
self.extra_args = list(extra_args or [])
|
|
113
119
|
|
|
114
|
-
def run(
|
|
120
|
+
def run(
|
|
121
|
+
self,
|
|
122
|
+
*,
|
|
123
|
+
sha: str,
|
|
124
|
+
intent: str | None = None,
|
|
125
|
+
yes_full_project: bool = False,
|
|
126
|
+
) -> ReviewOutcome:
|
|
115
127
|
cmd = [self.executable, "review", "--commit", sha, *self.extra_args]
|
|
116
128
|
if intent and intent.strip():
|
|
117
129
|
cmd += ["--intent", intent.strip()]
|
|
130
|
+
if yes_full_project:
|
|
131
|
+
# `watch` runs review in a captured subprocess. For root commits, force
|
|
132
|
+
# non-interactive confirmation so the loop never blocks on a hidden prompt.
|
|
133
|
+
cmd.append("--yes-full-project")
|
|
118
134
|
# Wide, non-interactive output so rich does not wrap the status lines the
|
|
119
135
|
# parser depends on.
|
|
120
136
|
env = dict(os.environ, COLUMNS="200", NO_COLOR="1")
|
|
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
|