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.
Files changed (27) hide show
  1. {mlx_code-0.0.20 → mlx_code-0.0.21}/PKG-INFO +1 -1
  2. {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/repl.py +6 -2
  3. {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code.egg-info/PKG-INFO +1 -1
  4. {mlx_code-0.0.20 → mlx_code-0.0.21}/setup.py +1 -1
  5. {mlx_code-0.0.20 → mlx_code-0.0.21}/LICENSE +0 -0
  6. {mlx_code-0.0.20 → mlx_code-0.0.21}/README.md +0 -0
  7. {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/__init__.py +0 -0
  8. {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/apis.py +0 -0
  9. {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/gits.py +0 -0
  10. {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/lsp_tool.py +0 -0
  11. {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/main.py +0 -0
  12. {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/mcb.py +0 -0
  13. {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/mcb_tool.py +0 -0
  14. {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/ntui.py +0 -0
  15. {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/stream_log.py +0 -0
  16. {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/tools.py +0 -0
  17. {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/util.py +0 -0
  18. {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/view_git.py +0 -0
  19. {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code/view_log.py +0 -0
  20. {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code.egg-info/SOURCES.txt +0 -0
  21. {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code.egg-info/dependency_links.txt +0 -0
  22. {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code.egg-info/entry_points.txt +0 -0
  23. {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code.egg-info/requires.txt +0 -0
  24. {mlx_code-0.0.20 → mlx_code-0.0.21}/mlx_code.egg-info/top_level.txt +0 -0
  25. {mlx_code-0.0.20 → mlx_code-0.0.21}/setup.cfg +0 -0
  26. {mlx_code-0.0.20 → mlx_code-0.0.21}/tests/__init__.py +0 -0
  27. {mlx_code-0.0.20 → mlx_code-0.0.21}/tests/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mlx-code
3
- Version: 0.0.20
3
+ Version: 0.0.21
4
4
  Summary: Coding Agent for Mac
5
5
  Home-page: https://josefalbers.github.io/mlx-code/
6
6
  Author: J Joe
@@ -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
- proc = await asyncio.create_subprocess_shell(command, cwd=cwd, stdin=None, stdout=None, stderr=None, env=env if env else None)
646
- returncode = await proc.wait()
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mlx-code
3
- Version: 0.0.20
3
+ Version: 0.0.21
4
4
  Summary: Coding Agent for Mac
5
5
  Home-page: https://josefalbers.github.io/mlx-code/
6
6
  Author: J Joe
@@ -11,7 +11,7 @@ setup(
11
11
  author_email="albersj66@gmail.com",
12
12
  author="J Joe",
13
13
  license="Apache-2.0",
14
- version="0.0.20",
14
+ version="0.0.21",
15
15
  readme="README.md",
16
16
  description="Coding Agent for Mac",
17
17
  long_description=open("README.md").read(),
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