alpiecode 10.8.5__tar.gz → 10.8.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-10.8.5 → alpiecode-10.8.6}/PKG-INFO +2 -1
- {alpiecode-10.8.5 → alpiecode-10.8.6}/pyproject.toml +2 -1
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/alpiecode.egg-info/PKG-INFO +2 -1
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/alpiecode.egg-info/requires.txt +1 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/__init__.py +1 -1
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/agent.py +30 -4
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/cli.py +5 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/tools.py +6 -1
- {alpiecode-10.8.5 → alpiecode-10.8.6}/README.md +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/setup.cfg +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/alpiecode/__init__.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/alpiecode.egg-info/SOURCES.txt +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/alpiecode.egg-info/dependency_links.txt +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/alpiecode.egg-info/entry_points.txt +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/alpiecode.egg-info/top_level.txt +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/assessment.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/backends/__init__.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/backends/base.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/backends/local_backend.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/backends/openai_backend.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/blueprints.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/cache.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/client.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/compaction.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/config.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/context.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/diff_preview.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/discovery.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/doctor.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/dream_rsi.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/executor.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/git_ops.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/github.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/guardian.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/guardrails.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/ipython_ext.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/local_model.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/media.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/memory.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/metrics.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/orchestrator.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/paths.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/progress.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/project_template.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/prompt.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/rephraser.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/server.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/session.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/slash.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/subagent.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/system1.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/updater.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/verifier.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/vscode_installer.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/src/codeagent/walkthrough.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/test/test_adaptive_resilience.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/test/test_cli_ui.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/test/test_context_and_trajectory.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/test/test_deloop_and_sessions.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/test/test_dream_rsi.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/test/test_local_model_download.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/test/test_non_thinking_and_local_stream.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/test/test_project_templates.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/test/test_slash_and_diff.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/test/test_subagents.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/test/test_task_assessment.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/test/test_verifier.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/test/test_walkthrough.py +0 -0
- {alpiecode-10.8.5 → alpiecode-10.8.6}/test/test_web_resilience_and_guardrails.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: alpiecode
|
|
3
|
-
Version: 10.8.
|
|
3
|
+
Version: 10.8.6
|
|
4
4
|
Summary: AlpieCode
|
|
5
5
|
Requires-Python: >=3.9
|
|
6
6
|
Requires-Dist: huggingface_hub>=0.20.0
|
|
@@ -9,6 +9,7 @@ Requires-Dist: click>=8.0
|
|
|
9
9
|
Requires-Dist: httpx[http2]>=0.24.0
|
|
10
10
|
Requires-Dist: beautifulsoup4>=4.12.0
|
|
11
11
|
Requires-Dist: yt-dlp>=2024.0.0
|
|
12
|
+
Requires-Dist: prompt-toolkit>=3.0.0
|
|
12
13
|
Provides-Extra: server
|
|
13
14
|
Requires-Dist: fastapi>=0.100.0; extra == "server"
|
|
14
15
|
Requires-Dist: uvicorn>=0.20.0; extra == "server"
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "alpiecode"
|
|
7
|
-
version = "10.8.
|
|
7
|
+
version = "10.8.6"
|
|
8
8
|
description = "AlpieCode"
|
|
9
9
|
requires-python = ">=3.9"
|
|
10
10
|
dependencies = [
|
|
@@ -14,6 +14,7 @@ dependencies = [
|
|
|
14
14
|
"httpx[http2]>=0.24.0",
|
|
15
15
|
"beautifulsoup4>=4.12.0",
|
|
16
16
|
"yt-dlp>=2024.0.0",
|
|
17
|
+
"prompt-toolkit>=3.0.0",
|
|
17
18
|
]
|
|
18
19
|
|
|
19
20
|
[project.optional-dependencies]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: alpiecode
|
|
3
|
-
Version: 10.8.
|
|
3
|
+
Version: 10.8.6
|
|
4
4
|
Summary: AlpieCode
|
|
5
5
|
Requires-Python: >=3.9
|
|
6
6
|
Requires-Dist: huggingface_hub>=0.20.0
|
|
@@ -9,6 +9,7 @@ Requires-Dist: click>=8.0
|
|
|
9
9
|
Requires-Dist: httpx[http2]>=0.24.0
|
|
10
10
|
Requires-Dist: beautifulsoup4>=4.12.0
|
|
11
11
|
Requires-Dist: yt-dlp>=2024.0.0
|
|
12
|
+
Requires-Dist: prompt-toolkit>=3.0.0
|
|
12
13
|
Provides-Extra: server
|
|
13
14
|
Requires-Dist: fastapi>=0.100.0; extra == "server"
|
|
14
15
|
Requires-Dist: uvicorn>=0.20.0; extra == "server"
|
|
@@ -17,7 +17,7 @@ Supports:
|
|
|
17
17
|
from pathlib import Path
|
|
18
18
|
from typing import Optional, Any, Dict
|
|
19
19
|
|
|
20
|
-
__version__ = "10.8.
|
|
20
|
+
__version__ = "10.8.6"
|
|
21
21
|
|
|
22
22
|
def run(task: str, workdir: str = ".", reasoning_level: str = "thinking", **kwargs):
|
|
23
23
|
"""Run an autonomous coding task programmatically."""
|
|
@@ -823,6 +823,35 @@ def run_agent(
|
|
|
823
823
|
return AgentRunResult(msgs, success=task_success, outcome=task_outcome)
|
|
824
824
|
|
|
825
825
|
|
|
826
|
+
def _get_chat_input(prompt_text: str = "You ❯") -> str:
|
|
827
|
+
"""Read interactive user input with full arrow-key line editing, cursor movement, and history."""
|
|
828
|
+
try:
|
|
829
|
+
from prompt_toolkit import PromptSession
|
|
830
|
+
from prompt_toolkit.history import FileHistory
|
|
831
|
+
from prompt_toolkit.formatted_text import HTML
|
|
832
|
+
from .paths import get_alpiecode_dir, ensure_dir
|
|
833
|
+
|
|
834
|
+
hist_dir = ensure_dir(get_alpiecode_dir())
|
|
835
|
+
hist_file = hist_dir / "chat_history"
|
|
836
|
+
session = getattr(_get_chat_input, "_pt_session", None)
|
|
837
|
+
if session is None:
|
|
838
|
+
session = PromptSession(history=FileHistory(str(hist_file)))
|
|
839
|
+
_get_chat_input._pt_session = session
|
|
840
|
+
|
|
841
|
+
return session.prompt(HTML(f"\n<ansigreen><b>{prompt_text}</b></ansigreen> ")).strip()
|
|
842
|
+
except Exception:
|
|
843
|
+
pass
|
|
844
|
+
|
|
845
|
+
try:
|
|
846
|
+
import readline
|
|
847
|
+
except ImportError:
|
|
848
|
+
pass
|
|
849
|
+
|
|
850
|
+
if HAS_RICH and console:
|
|
851
|
+
return console.input(f"\n[bold green]{prompt_text}[/bold green] ").strip()
|
|
852
|
+
return input(f"\n{prompt_text} ").strip()
|
|
853
|
+
|
|
854
|
+
|
|
826
855
|
def run_chat(
|
|
827
856
|
workdir: Path,
|
|
828
857
|
cfg: Config,
|
|
@@ -886,10 +915,7 @@ def run_chat(
|
|
|
886
915
|
|
|
887
916
|
while True:
|
|
888
917
|
try:
|
|
889
|
-
|
|
890
|
-
user_input = console.input("\n[bold green]You ❯[/bold green] ").strip()
|
|
891
|
-
else:
|
|
892
|
-
user_input = input("\nYou ❯ ").strip()
|
|
918
|
+
user_input = _get_chat_input("You ❯")
|
|
893
919
|
except (EOFError, KeyboardInterrupt):
|
|
894
920
|
session_mgr.save_session(session)
|
|
895
921
|
if HAS_RICH:
|
|
@@ -88,6 +88,11 @@ def _normalize_args():
|
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
def main():
|
|
91
|
+
try:
|
|
92
|
+
import readline # Enable full command-line editing (left/right arrow navigation, history)
|
|
93
|
+
except ImportError:
|
|
94
|
+
pass
|
|
95
|
+
|
|
91
96
|
_normalize_args()
|
|
92
97
|
|
|
93
98
|
common = argparse.ArgumentParser(add_help=False)
|
|
@@ -955,6 +955,11 @@ def _fetch_url(url: str) -> str:
|
|
|
955
955
|
|
|
956
956
|
def _request_user_input(question: str) -> str:
|
|
957
957
|
"""Ask the user a question and return their response."""
|
|
958
|
+
try:
|
|
959
|
+
import readline # Enable arrow key navigation in terminal
|
|
960
|
+
except ImportError:
|
|
961
|
+
pass
|
|
962
|
+
|
|
958
963
|
try:
|
|
959
964
|
from rich.console import Console
|
|
960
965
|
from rich.panel import Panel
|
|
@@ -966,7 +971,7 @@ def _request_user_input(question: str) -> str:
|
|
|
966
971
|
border_style="yellow",
|
|
967
972
|
))
|
|
968
973
|
response = console.input("[bold green]Your answer ❯[/bold green] ").strip()
|
|
969
|
-
except
|
|
974
|
+
except Exception:
|
|
970
975
|
print(f"\n❓ Agent needs your input: {question}")
|
|
971
976
|
response = input("Your answer ❯ ").strip()
|
|
972
977
|
|
|
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
|
|
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
|