mlx-code 0.0.16__tar.gz → 0.0.17__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 (26) hide show
  1. {mlx_code-0.0.16 → mlx_code-0.0.17}/PKG-INFO +1 -1
  2. {mlx_code-0.0.16 → mlx_code-0.0.17}/mlx_code/gits.py +1 -0
  3. {mlx_code-0.0.16 → mlx_code-0.0.17}/mlx_code/repl.py +4 -2
  4. {mlx_code-0.0.16 → mlx_code-0.0.17}/mlx_code.egg-info/PKG-INFO +1 -1
  5. {mlx_code-0.0.16 → mlx_code-0.0.17}/setup.py +1 -1
  6. {mlx_code-0.0.16 → mlx_code-0.0.17}/LICENSE +0 -0
  7. {mlx_code-0.0.16 → mlx_code-0.0.17}/README.md +0 -0
  8. {mlx_code-0.0.16 → mlx_code-0.0.17}/mlx_code/__init__.py +0 -0
  9. {mlx_code-0.0.16 → mlx_code-0.0.17}/mlx_code/apis.py +0 -0
  10. {mlx_code-0.0.16 → mlx_code-0.0.17}/mlx_code/lsp_tool.py +0 -0
  11. {mlx_code-0.0.16 → mlx_code-0.0.17}/mlx_code/main.py +0 -0
  12. {mlx_code-0.0.16 → mlx_code-0.0.17}/mlx_code/mcb.py +0 -0
  13. {mlx_code-0.0.16 → mlx_code-0.0.17}/mlx_code/mcb_tool.py +0 -0
  14. {mlx_code-0.0.16 → mlx_code-0.0.17}/mlx_code/stream_log.py +0 -0
  15. {mlx_code-0.0.16 → mlx_code-0.0.17}/mlx_code/tools.py +0 -0
  16. {mlx_code-0.0.16 → mlx_code-0.0.17}/mlx_code/util.py +0 -0
  17. {mlx_code-0.0.16 → mlx_code-0.0.17}/mlx_code/view_git.py +0 -0
  18. {mlx_code-0.0.16 → mlx_code-0.0.17}/mlx_code/view_log.py +0 -0
  19. {mlx_code-0.0.16 → mlx_code-0.0.17}/mlx_code.egg-info/SOURCES.txt +0 -0
  20. {mlx_code-0.0.16 → mlx_code-0.0.17}/mlx_code.egg-info/dependency_links.txt +0 -0
  21. {mlx_code-0.0.16 → mlx_code-0.0.17}/mlx_code.egg-info/entry_points.txt +0 -0
  22. {mlx_code-0.0.16 → mlx_code-0.0.17}/mlx_code.egg-info/requires.txt +0 -0
  23. {mlx_code-0.0.16 → mlx_code-0.0.17}/mlx_code.egg-info/top_level.txt +0 -0
  24. {mlx_code-0.0.16 → mlx_code-0.0.17}/setup.cfg +0 -0
  25. {mlx_code-0.0.16 → mlx_code-0.0.17}/tests/__init__.py +0 -0
  26. {mlx_code-0.0.16 → mlx_code-0.0.17}/tests/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mlx-code
3
- Version: 0.0.16
3
+ Version: 0.0.17
4
4
  Summary: Coding Agent for Mac
5
5
  Home-page: https://josefalbers.github.io/mlx-code/
6
6
  Author: J Joe
@@ -11,6 +11,7 @@ logger = logging.getLogger(__name__)
11
11
  _ADD_EXCLUDES = ['_*', '*.bin', '*.gguf', '*.safetensors', '*.pt', '*.pth', '.cache/', '.log.json', '*.egg-info/', '.eggs/', 'build/', 'dist/', '__pycache__/', '*.pyc', '*.pyo', '*.pyd', '.pytest_cache/', '.tox/', '.nox/', '.coverage', 'htmlcov/', '.venv/', 'venv/', 'env/', '.DS_Store', 'Thumbs.db']
12
12
 
13
13
  class GitError(RuntimeError):
14
+ pass
14
15
 
15
16
  def _git(cwd: str, *args: str, check: bool=True) -> str:
16
17
  try:
@@ -339,7 +339,8 @@ class Tab(Vertical):
339
339
  self._cache_count = len(self.agent.messages)
340
340
  self.query_one('#cache', Static).update(render_history(self.agent.messages))
341
341
  scroll = self.query_one('#scroll', VerticalScroll)
342
- self.app.call_after_refresh(scroll.scroll_end, animate=False)
342
+ if scroll.max_scroll_y - scroll.scroll_y < 3:
343
+ self.app.call_after_refresh(scroll.scroll_end, animate=False)
343
344
 
344
345
  def refresh_stream(self) -> None:
345
346
  msgs = []
@@ -350,7 +351,8 @@ class Tab(Vertical):
350
351
  if msgs:
351
352
  self.query_one('#stream', Static).update(render_history(msgs))
352
353
  scroll = self.query_one('#scroll', VerticalScroll)
353
- self.app.call_after_refresh(scroll.scroll_end, animate=False)
354
+ if scroll.max_scroll_y - scroll.scroll_y < 3:
355
+ self.app.call_after_refresh(scroll.scroll_end, animate=False)
354
356
  else:
355
357
  self.query_one('#stream', Static).update('')
356
358
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mlx-code
3
- Version: 0.0.16
3
+ Version: 0.0.17
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.16",
14
+ version="0.0.17",
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