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.
- {mlx_code-0.0.31 → mlx_code-0.0.33}/PKG-INFO +3 -2
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/bats.py +1 -2
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/main.py +3 -1
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/repl.py +3 -1
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code.egg-info/PKG-INFO +3 -2
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code.egg-info/requires.txt +2 -1
- {mlx_code-0.0.31 → mlx_code-0.0.33}/setup.py +4 -3
- {mlx_code-0.0.31 → mlx_code-0.0.33}/LICENSE +0 -0
- {mlx_code-0.0.31 → mlx_code-0.0.33}/README.md +0 -0
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/__init__.py +0 -0
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/apis.py +0 -0
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/bare.py +0 -0
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/gits.py +0 -0
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/lsp_tool.py +0 -0
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/mcb.py +0 -0
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/mcb_tool.py +0 -0
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/stream_log.py +0 -0
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/tools.py +0 -0
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/tui.py +0 -0
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/util.py +0 -0
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/view_git.py +0 -0
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/view_log.py +0 -0
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code/web.py +0 -0
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code.egg-info/SOURCES.txt +0 -0
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code.egg-info/dependency_links.txt +0 -0
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code.egg-info/entry_points.txt +0 -0
- {mlx_code-0.0.31 → mlx_code-0.0.33}/mlx_code.egg-info/top_level.txt +0 -0
- {mlx_code-0.0.31 → mlx_code-0.0.33}/setup.cfg +0 -0
- {mlx_code-0.0.31 → mlx_code-0.0.33}/tests/__init__.py +0 -0
- {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.
|
|
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:
|
|
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(
|
|
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(
|
|
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.
|
|
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:
|
|
24
|
+
Requires-Dist: python-lsp-server[all]; extra == "all"
|
|
24
25
|
Dynamic: author
|
|
25
26
|
Dynamic: author-email
|
|
26
27
|
Dynamic: description
|
|
@@ -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.
|
|
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
|
-
|
|
32
|
-
|
|
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
|
|
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
|