alpiecode 7.0.4__tar.gz → 7.0.6__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.
- {alpiecode-7.0.4 → alpiecode-7.0.6}/PKG-INFO +1 -1
- {alpiecode-7.0.4 → alpiecode-7.0.6}/pyproject.toml +1 -1
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/alpiecode.egg-info/PKG-INFO +1 -1
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/__init__.py +5 -8
- alpiecode-7.0.6/src/codeagent/extension/alpiecode.vsix +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/orchestrator.py +3 -3
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/server.py +7 -10
- alpiecode-7.0.4/src/codeagent/extension/alpiecode.vsix +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/README.md +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/setup.cfg +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/alpiecode/__init__.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/alpiecode.egg-info/SOURCES.txt +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/alpiecode.egg-info/dependency_links.txt +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/alpiecode.egg-info/entry_points.txt +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/alpiecode.egg-info/requires.txt +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/alpiecode.egg-info/top_level.txt +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/agent.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/backends/__init__.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/backends/base.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/backends/local_backend.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/backends/openai_backend.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/cache.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/cli.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/client.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/compaction.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/config.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/context.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/discovery.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/doctor.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/executor.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/git_ops.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/github.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/guardian.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/ipython_ext.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/local_model.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/media.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/memory.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/progress.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/prompt.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/rephraser.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/session.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/tools.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/updater.py +0 -0
- {alpiecode-7.0.4 → alpiecode-7.0.6}/src/codeagent/vscode_installer.py +0 -0
|
@@ -16,23 +16,20 @@ Supports:
|
|
|
16
16
|
from pathlib import Path
|
|
17
17
|
from typing import Optional, Any, Dict
|
|
18
18
|
|
|
19
|
-
__version__ = "7.0.
|
|
19
|
+
__version__ = "7.0.5"
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
def run(task: str, workdir: str = ".", reasoning_level: str = "
|
|
22
|
+
def run(task: str, workdir: str = ".", reasoning_level: str = "thinking", **kwargs):
|
|
23
23
|
"""Run an autonomous coding task programmatically."""
|
|
24
24
|
from .config import load_config
|
|
25
25
|
from .agent import run_agent
|
|
26
26
|
cfg = load_config()
|
|
27
|
-
if reasoning_level
|
|
27
|
+
if reasoning_level in ("low", "no-thinking", "nothinking", "none"):
|
|
28
28
|
cfg.enable_thinking = False
|
|
29
29
|
cfg.temperature = 0.0
|
|
30
|
-
elif reasoning_level
|
|
30
|
+
elif reasoning_level in ("thinking", "high", "medium"):
|
|
31
31
|
cfg.enable_thinking = True
|
|
32
|
-
cfg.temperature = 0.
|
|
33
|
-
elif reasoning_level == "high":
|
|
34
|
-
cfg.enable_thinking = True
|
|
35
|
-
cfg.temperature = 0.2
|
|
32
|
+
cfg.temperature = 0.6
|
|
36
33
|
return run_agent(task, Path(workdir).resolve(), cfg, verbose=kwargs.get("verbose", True))
|
|
37
34
|
|
|
38
35
|
|
|
Binary file
|
|
@@ -161,11 +161,11 @@ class AgentOrchestrator:
|
|
|
161
161
|
# ── Adaptive thinking ──
|
|
162
162
|
if cfg.enable_thinking:
|
|
163
163
|
enable_thinking = True
|
|
164
|
+
elif complexity in ("qa", "low", "no-thinking"):
|
|
165
|
+
enable_thinking = False
|
|
166
|
+
yield AgentEvent("adaptive_mode", {"message": "No-thinking mode or simple task, skipping reasoning trace."})
|
|
164
167
|
else:
|
|
165
168
|
enable_thinking = task_context.enable_thinking
|
|
166
|
-
if enable_thinking and complexity in ("qa", "low"):
|
|
167
|
-
enable_thinking = False
|
|
168
|
-
yield AgentEvent("adaptive_mode", {"message": "Simple task detected, skipping deep reasoning."})
|
|
169
169
|
|
|
170
170
|
# ── Goal-driven turn loop (no fixed limit) ──
|
|
171
171
|
progress_monitor = ProgressMonitor()
|
|
@@ -140,22 +140,19 @@ if HAS_FASTAPI:
|
|
|
140
140
|
|
|
141
141
|
event_queue = queue.Queue()
|
|
142
142
|
|
|
143
|
-
reasoning_level = str(body.get("reasoning_level", "
|
|
143
|
+
reasoning_level = str(body.get("reasoning_level", "thinking")).lower()
|
|
144
144
|
complexity = str(body.get("complexity", reasoning_level)).lower()
|
|
145
|
-
# Normalize
|
|
146
|
-
if complexity not in ("low", "medium", "high"):
|
|
147
|
-
complexity = "medium"
|
|
145
|
+
# Normalize reasoning mode
|
|
148
146
|
import copy
|
|
149
147
|
turn_cfg = copy.copy(app.state.cfg)
|
|
150
|
-
if complexity
|
|
148
|
+
if reasoning_level in ("no-thinking", "nothinking", "none", "low") or complexity in ("no-thinking", "low"):
|
|
151
149
|
turn_cfg.enable_thinking = False
|
|
152
150
|
turn_cfg.temperature = 0.0
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
turn_cfg.temperature = 0.1
|
|
156
|
-
else: # "high"
|
|
151
|
+
complexity = "low"
|
|
152
|
+
else: # "thinking", "high", "medium"
|
|
157
153
|
turn_cfg.enable_thinking = True
|
|
158
|
-
turn_cfg.temperature = 0.
|
|
154
|
+
turn_cfg.temperature = 0.6
|
|
155
|
+
complexity = "high"
|
|
159
156
|
|
|
160
157
|
def producer():
|
|
161
158
|
try:
|
|
Binary file
|
|
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
|