mlx-code 0.0.31__tar.gz → 0.0.33__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 (30) hide show
  1. {mlx_code-0.0.31 → mlx_code-0.0.33}/PKG-INFO +3 -2
  2. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/bats.py +1 -2
  3. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/main.py +3 -1
  4. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/repl.py +3 -1
  5. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code.egg-info/PKG-INFO +3 -2
  6. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code.egg-info/requires.txt +2 -1
  7. {mlx_code-0.0.31 → mlx_code-0.0.33}/setup.py +4 -3
  8. {mlx_code-0.0.31 → mlx_code-0.0.33}/LICENSE +0 -0
  9. {mlx_code-0.0.31 → mlx_code-0.0.33}/README.md +0 -0
  10. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/__init__.py +0 -0
  11. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/apis.py +0 -0
  12. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/bare.py +0 -0
  13. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/gits.py +0 -0
  14. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/lsp_tool.py +0 -0
  15. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/mcb.py +0 -0
  16. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/mcb_tool.py +0 -0
  17. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/stream_log.py +0 -0
  18. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/tools.py +0 -0
  19. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/tui.py +0 -0
  20. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/util.py +0 -0
  21. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/view_git.py +0 -0
  22. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/view_log.py +0 -0
  23. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/web.py +0 -0
  24. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code.egg-info/SOURCES.txt +0 -0
  25. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code.egg-info/dependency_links.txt +0 -0
  26. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code.egg-info/entry_points.txt +0 -0
  27. {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code.egg-info/top_level.txt +0 -0
  28. {mlx_code-0.0.31 → mlx_code-0.0.33}/setup.cfg +0 -0
  29. {mlx_code-0.0.31 → mlx_code-0.0.33}/tests/__init__.py +0 -0
  30. {mlx_code-0.0.31 → mlx_code-0.0.33}/tests/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mlx-code
3
- Version: 0.0.31
3
+ Version: 0.0.33
4
4
  Summary: Coding Agent for Mac
5
5
  Home-page: https://josefalbers.github.io/mlx-code/
6
6
  Author: J Joe
@@ -18,9 +18,10 @@ Requires-Dist: pydantic
18
18
  Provides-Extra: all
19
19
  Requires-Dist: starlette; extra == "all"
20
20
  Requires-Dist: uvicorn; extra == "all"
21
+ Requires-Dist: pygments; extra == "all"
21
22
  Requires-Dist: textual>=8.2.7; extra == "all"
22
23
  Requires-Dist: rich>=15.0.0; extra == "all"
23
- Requires-Dist: pygments; extra == "all"
24
+ Requires-Dist: python-lsp-server[all]; extra == "all"
24
25
  Dynamic: author
25
26
  Dynamic: author-email
26
27
  Dynamic: description
@@ -9,6 +9,7 @@ from array import array
9
9
  from contextlib import asynccontextmanager
10
10
  from pathlib import Path
11
11
  import mlx.core as mx
12
+ import uvicorn
12
13
  from starlette.applications import Starlette
13
14
  from starlette.requests import Request
14
15
  from starlette.responses import StreamingResponse, JSONResponse
@@ -296,7 +297,6 @@ def make_batch_app(model_name: str, cache_dir: str='.cache'):
296
297
  return Starlette(routes=[Route('/v1/models', list_models, methods=['GET']), Route('/v1/messages/count_tokens', count_tokens, methods=['POST']), Route('/v1/chat/completions', generate_endpoint, methods=['POST']), Route('/v1/messages', generate_endpoint, methods=['POST']), Route('/v1/responses', generate_endpoint, methods=['POST']), Route('/v1beta/models/{rest:path}', generate_endpoint, methods=['POST']), Route('/generate', simple_generate, methods=['POST']), Route('/health', health, methods=['GET'])], lifespan=lifespan)
297
298
 
298
299
  class BatchServer:
299
- import uvicorn
300
300
 
301
301
  def __init__(self, app, host: str, port: int):
302
302
  config = uvicorn.Config(app, host=host, port=port, loop='asyncio', log_level='warning')
@@ -315,5 +315,4 @@ def make_batch_server(host: str, port: int, model, cache_dir: str='.cache') -> B
315
315
  app = make_batch_app(model, cache_dir=cache_dir)
316
316
  return BatchServer(app, host, port)
317
317
  if __name__ == '__main__':
318
- import uvicorn
319
318
  uvicorn.run(make_batch_app('mlx-community/Qwen3.5-4B-OptiQ-4bit'), host='0.0.0.0', port=8000)
@@ -893,7 +893,9 @@ def _serve_batch(host, port, model, cache_dir='.cache', *, fixed_port=False):
893
893
  try:
894
894
  from .bats import make_batch_server
895
895
  except ImportError:
896
- print('[warning] uvicorn not installed — batch engine requires: pip install mlx-code[all]')
896
+ print()
897
+ print('[warning] uvicorn/starlette not installed')
898
+ print(' Install server deps with:\x1b[31m pip install mlx-code[all] \x1b[0m')
897
899
  return _serve_cache(host, port, model, cache_dir, None, None, None, fixed_port=fixed_port)
898
900
  import socket
899
901
  while True:
@@ -758,7 +758,9 @@ async def repl(engine: CommandEngine, init_prompt=None, ui_mode='tui'):
758
758
  try:
759
759
  from .tui import ReplApp
760
760
  except ImportError:
761
- print('[warning] textual/rich not installed — falling back to bare.\n Install TUI deps with: pip install mlx-code[all]')
761
+ print()
762
+ print('[warning] textual/rich not installed → falling back to bare.')
763
+ print(' Install TUI deps with:\x1b[31m pip install mlx-code[all] \x1b[0m')
762
764
  from .bare import BareRepl
763
765
  r = BareRepl(engine, init_prompt=init_prompt)
764
766
  await r.run()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mlx-code
3
- Version: 0.0.31
3
+ Version: 0.0.33
4
4
  Summary: Coding Agent for Mac
5
5
  Home-page: https://josefalbers.github.io/mlx-code/
6
6
  Author: J Joe
@@ -18,9 +18,10 @@ Requires-Dist: pydantic
18
18
  Provides-Extra: all
19
19
  Requires-Dist: starlette; extra == "all"
20
20
  Requires-Dist: uvicorn; extra == "all"
21
+ Requires-Dist: pygments; extra == "all"
21
22
  Requires-Dist: textual>=8.2.7; extra == "all"
22
23
  Requires-Dist: rich>=15.0.0; extra == "all"
23
- Requires-Dist: pygments; extra == "all"
24
+ Requires-Dist: python-lsp-server[all]; extra == "all"
24
25
  Dynamic: author
25
26
  Dynamic: author-email
26
27
  Dynamic: description
@@ -7,6 +7,7 @@ mlx-lm>=0.31.3
7
7
  [all]
8
8
  starlette
9
9
  uvicorn
10
+ pygments
10
11
  textual>=8.2.7
11
12
  rich>=15.0.0
12
- pygments
13
+ python-lsp-server[all]
@@ -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.31",
14
+ version="0.0.33",
15
15
  readme="README.md",
16
16
  description="Coding Agent for Mac",
17
17
  long_description=open("README.md").read(),
@@ -26,10 +26,11 @@ setup(
26
26
  "all": [
27
27
  "starlette",
28
28
  "uvicorn",
29
+ "pygments",
29
30
  "textual>=8.2.7",
30
31
  "rich>=15.0.0",
31
- "pygments",
32
- # "python-lsp-server[all]",
32
+
33
+ "python-lsp-server[all]",
33
34
  ],
34
35
  },
35
36
  packages=find_packages(),
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