alpiecode 7.0.0__tar.gz → 7.0.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.
- {alpiecode-7.0.0 → alpiecode-7.0.1}/PKG-INFO +1 -1
- {alpiecode-7.0.0 → alpiecode-7.0.1}/pyproject.toml +1 -1
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/alpiecode.egg-info/PKG-INFO +1 -1
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/__init__.py +1 -1
- alpiecode-7.0.1/src/codeagent/extension/alpiecode.vsix +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/ipython_ext.py +4 -2
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/vscode_installer.py +12 -1
- alpiecode-7.0.0/src/codeagent/extension/alpiecode.vsix +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/README.md +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/setup.cfg +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/alpiecode/__init__.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/alpiecode.egg-info/SOURCES.txt +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/alpiecode.egg-info/dependency_links.txt +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/alpiecode.egg-info/entry_points.txt +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/alpiecode.egg-info/requires.txt +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/alpiecode.egg-info/top_level.txt +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/agent.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/backends/__init__.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/backends/base.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/backends/local_backend.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/backends/openai_backend.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/cache.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/cli.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/client.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/compaction.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/config.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/context.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/discovery.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/doctor.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/executor.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/github.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/guardian.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/local_model.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/media.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/memory.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/orchestrator.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/progress.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/prompt.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/server.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/session.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/tools.py +0 -0
- {alpiecode-7.0.0 → alpiecode-7.0.1}/src/codeagent/updater.py +0 -0
|
Binary file
|
|
@@ -30,14 +30,16 @@ from .agent import run_agent
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def _is_notebook() -> bool:
|
|
33
|
-
"""Check if code is running inside a
|
|
33
|
+
"""Check if code is running inside a web browser notebook (Jupyter, Colab, VS Code Notebook)."""
|
|
34
34
|
try:
|
|
35
35
|
from IPython import get_ipython
|
|
36
36
|
shell = get_ipython()
|
|
37
37
|
if shell is None:
|
|
38
38
|
return False
|
|
39
39
|
shell_name = shell.__class__.__name__
|
|
40
|
-
if "
|
|
40
|
+
if "TerminalInteractiveShell" in shell_name:
|
|
41
|
+
return False
|
|
42
|
+
if "ZMQInteractiveShell" in shell_name or hasattr(shell, "kernel") or "google.colab" in sys.modules:
|
|
41
43
|
return True
|
|
42
44
|
return False
|
|
43
45
|
except Exception:
|
|
@@ -110,7 +110,18 @@ def ensure_vscode_extension(auto_confirm: bool = False, quiet: bool = False) ->
|
|
|
110
110
|
try:
|
|
111
111
|
win_path = subprocess.check_output(["wslpath", "-w", str(vsix_path)], text=True).strip()
|
|
112
112
|
if win_path:
|
|
113
|
-
|
|
113
|
+
# VS Code CLI on Windows disallows UNC paths (\wsl.localhost\...). Copy to Windows temp.
|
|
114
|
+
if win_path.startswith("\\"):
|
|
115
|
+
try:
|
|
116
|
+
win_temp = subprocess.check_output(["cmd.exe", "/c", "echo %TEMP%"], text=True).strip()
|
|
117
|
+
if win_temp and not win_temp.startswith("%"):
|
|
118
|
+
dest = f"{win_temp}\\alpiecode.vsix"
|
|
119
|
+
subprocess.run(["cmd.exe", "/c", f'copy /y "{win_path}" "{dest}"'], capture_output=True)
|
|
120
|
+
target_arg = dest
|
|
121
|
+
except Exception:
|
|
122
|
+
target_arg = win_path
|
|
123
|
+
else:
|
|
124
|
+
target_arg = win_path
|
|
114
125
|
except Exception:
|
|
115
126
|
pass
|
|
116
127
|
|
|
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
|