refactorai-cli 0.3.0__tar.gz → 0.3.1__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.
Files changed (33) hide show
  1. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/PKG-INFO +3 -3
  2. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/README.md +1 -1
  3. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/pyproject.toml +2 -2
  4. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/__init__.py +1 -1
  5. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/commands/run_cmds.py +14 -8
  6. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli.egg-info/PKG-INFO +3 -3
  7. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli.egg-info/requires.txt +1 -1
  8. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/auth.py +0 -0
  9. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/client.py +0 -0
  10. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/commands/__init__.py +0 -0
  11. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/commands/auth_cmds.py +0 -0
  12. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/commands/cloud_cmds.py +0 -0
  13. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/commands/engine_cmds.py +0 -0
  14. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/commands/model_cmds.py +0 -0
  15. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/commands/rules_cmds.py +0 -0
  16. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/commands/runtime_cmds.py +0 -0
  17. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/commands/runtime_proxy_cmds.py +0 -0
  18. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/commands/setup_cmds.py +0 -0
  19. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/control_plane.py +0 -0
  20. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/credentials.py +0 -0
  21. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/local_constitution.py +0 -0
  22. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/local_engine_runtime.py +0 -0
  23. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/local_paths.py +0 -0
  24. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/main.py +0 -0
  25. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/model_policy.py +0 -0
  26. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/runtime_manager.py +0 -0
  27. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/settings.py +0 -0
  28. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli/setup_flow.py +0 -0
  29. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli.egg-info/SOURCES.txt +0 -0
  30. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli.egg-info/dependency_links.txt +0 -0
  31. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli.egg-info/entry_points.txt +0 -0
  32. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/refactorai_cli.egg-info/top_level.txt +0 -0
  33. {refactorai_cli-0.3.0 → refactorai_cli-0.3.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: refactorai-cli
3
- Version: 0.3.0
3
+ Version: 0.3.1
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.0.0
11
+ Requires-Dist: refactorai-core>=3.0.1
12
12
 
13
13
  # refactorai-cli
14
14
 
@@ -54,7 +54,7 @@ python -m twine upload ./refactorai-cli/dist/*
54
54
  ## Install test (local)
55
55
 
56
56
  ```bash
57
- python -m pip install ./refactorai-cli/dist/refactorai_cli-0.3.0-py3-none-any.whl
57
+ python -m pip install ./refactorai-cli/dist/refactorai_cli-0.3.1-py3-none-any.whl
58
58
  refactor --version
59
59
  ```
60
60
 
@@ -42,7 +42,7 @@ python -m twine upload ./refactorai-cli/dist/*
42
42
  ## Install test (local)
43
43
 
44
44
  ```bash
45
- python -m pip install ./refactorai-cli/dist/refactorai_cli-0.3.0-py3-none-any.whl
45
+ python -m pip install ./refactorai-cli/dist/refactorai_cli-0.3.1-py3-none-any.whl
46
46
  refactor --version
47
47
  ```
48
48
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "refactorai-cli"
3
- version = "0.3.0"
3
+ version = "0.3.1"
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.0.0",
15
+ "refactorai-core>=3.0.1",
16
16
  ]
17
17
 
18
18
  [project.scripts]
@@ -5,4 +5,4 @@ the shared `refactor_core` pipeline from a project folder while staying
5
5
  authenticated to the hosted platform via a developer key.
6
6
  """
7
7
 
8
- __version__ = "0.3.0"
8
+ __version__ = "0.3.1"
@@ -157,19 +157,25 @@ def _default_config_for_init() -> tuple[str, str]:
157
157
  if backend == BACKEND_LOCAL_SERVER:
158
158
  model_id = _setup_recommended_model_id()
159
159
  base_url = _setup_engine_base_url()
160
- config_text = DEFAULT_CONFIG.replace("provider: heuristic", "provider: ollama", 1)
161
- config_text = config_text.replace(
160
+ # local_server stays in `mode: local` but swaps the default heuristic
161
+ # provider block for an Ollama block pointing at the local engine.
162
+ config_text = DEFAULT_CONFIG.replace(
163
+ "# Heuristic (local, no LLM) - default for mode: local\n"
164
+ "provider: heuristic\n"
162
165
  "model_id: heuristic-local-v1",
163
- f"model_id: {model_id}\nbase_url: {base_url}",
166
+ "# Ollama (local engine) - configured by `refactor init`\n"
167
+ "provider: ollama\n"
168
+ f"model_id: {model_id}\n"
169
+ f"base_url: {base_url}",
164
170
  1,
165
171
  )
166
172
  return config_text, "local_server"
167
173
  if backend == BACKEND_BYOK:
168
- config_text = DEFAULT_CONFIG.replace("mode: local", "mode: cloud_byok", 1)
169
- config_text = config_text.replace("provider: heuristic", "provider: openai", 1)
170
- config_text = config_text.replace(
171
- "model_id: heuristic-local-v1",
172
- "model_id: gpt-4.1-mini\nprovider_key: ${OPENAI_API_KEY}\n# credential_ref: cred_01J...",
174
+ # BYOK only flips the execution mode. The developer chooses and
175
+ # uncomments a provider block in the Provider selection section.
176
+ config_text = DEFAULT_CONFIG.replace(
177
+ "mode: local\n# mode: cloud_byok",
178
+ "# mode: local\nmode: cloud_byok",
173
179
  1,
174
180
  )
175
181
  return config_text, "byok"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: refactorai-cli
3
- Version: 0.3.0
3
+ Version: 0.3.1
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.0.0
11
+ Requires-Dist: refactorai-core>=3.0.1
12
12
 
13
13
  # refactorai-cli
14
14
 
@@ -54,7 +54,7 @@ python -m twine upload ./refactorai-cli/dist/*
54
54
  ## Install test (local)
55
55
 
56
56
  ```bash
57
- python -m pip install ./refactorai-cli/dist/refactorai_cli-0.3.0-py3-none-any.whl
57
+ python -m pip install ./refactorai-cli/dist/refactorai_cli-0.3.1-py3-none-any.whl
58
58
  refactor --version
59
59
  ```
60
60
 
@@ -2,4 +2,4 @@ typer>=0.12.0
2
2
  httpx>=0.27.0
3
3
  rich>=13.7.0
4
4
  PyYAML>=6.0.1
5
- refactorai-core>=3.0.0
5
+ refactorai-core>=3.0.1
File without changes