mlx-code 0.0.20__tar.gz → 0.0.21__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.
- {mlx_code-0.0.20 → mlx_code-0.0.21}/PKG-INFO +1 -1
- {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/repl.py +6 -2
- {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code.egg-info/PKG-INFO +1 -1
- {mlx_code-0.0.20 → mlx_code-0.0.21}/setup.py +1 -1
- {mlx_code-0.0.20 → mlx_code-0.0.21}/LICENSE +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/README.md +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/__init__.py +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/apis.py +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/gits.py +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/lsp_tool.py +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/main.py +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/mcb.py +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/mcb_tool.py +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/ntui.py +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/stream_log.py +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/tools.py +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/util.py +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/view_git.py +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/view_log.py +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code.egg-info/SOURCES.txt +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code.egg-info/dependency_links.txt +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code.egg-info/entry_points.txt +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code.egg-info/requires.txt +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code.egg-info/top_level.txt +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/setup.cfg +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/tests/__init__.py +0 -0
- {mlx_code-0.0.20 → mlx_code-0.0.21}/tests/test.py +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
import asyncio
|
|
3
|
+
import subprocess
|
|
3
4
|
import copy
|
|
4
5
|
import datetime
|
|
5
6
|
import json
|
|
@@ -641,9 +642,12 @@ class ReplApp(App[None]):
|
|
|
641
642
|
gwt = tab.agent.ctx.get('gwt')
|
|
642
643
|
cwd = gwt.worktree if gwt and getattr(gwt, 'worktree', None) else tab.agent.ctx.get('cwd') or os.getcwd()
|
|
643
644
|
env = tab.agent.ctx.get('env')
|
|
645
|
+
|
|
646
|
+
def _blocking_run() -> int:
|
|
647
|
+
return subprocess.run(command, shell=True, cwd=cwd, env=env if env else None).returncode
|
|
644
648
|
with self.suspend():
|
|
645
|
-
|
|
646
|
-
returncode = await
|
|
649
|
+
loop = asyncio.get_running_loop()
|
|
650
|
+
returncode = await loop.run_in_executor(None, _blocking_run)
|
|
647
651
|
tab.show_command(f'!!{command}', f'[exited {returncode}]')
|
|
648
652
|
|
|
649
653
|
async def _handle_command(self, tab: Tab, text: str) -> None:
|
|
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
|