hanzo 0.2.8__py3-none-any.whl → 0.2.9__py3-none-any.whl
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.
Potentially problematic release.
This version of hanzo might be problematic. Click here for more details.
hanzo/__init__.py
CHANGED
hanzo/cli.py
CHANGED
|
@@ -12,7 +12,7 @@ from .interactive.repl import HanzoREPL
|
|
|
12
12
|
from .utils.output import console
|
|
13
13
|
|
|
14
14
|
# Version
|
|
15
|
-
__version__ = "0.2.
|
|
15
|
+
__version__ = "0.2.9"
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
@click.group(invoke_without_command=True)
|
|
@@ -146,26 +146,37 @@ async def start_compute_node(ctx, name: str = None, port: int = 52415,
|
|
|
146
146
|
# net is installed as a package
|
|
147
147
|
console.print("[green]✓[/green] Using installed hanzo/net")
|
|
148
148
|
|
|
149
|
-
#
|
|
150
|
-
sys.
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
149
|
+
# Set up sys.argv for net's argparse
|
|
150
|
+
original_argv = sys.argv.copy()
|
|
151
|
+
try:
|
|
152
|
+
# Build argv for net
|
|
153
|
+
sys.argv = ["hanzo-net"] # Program name
|
|
154
|
+
|
|
155
|
+
# Add options
|
|
156
|
+
if port != 52415:
|
|
157
|
+
sys.argv.extend(["--chatgpt-api-port", str(port)])
|
|
158
|
+
if name:
|
|
159
|
+
sys.argv.extend(["--node-id", name])
|
|
160
|
+
if network != "local":
|
|
161
|
+
sys.argv.extend(["--discovery-module", network])
|
|
162
|
+
if models:
|
|
163
|
+
sys.argv.extend(["--default-model", models[0]])
|
|
164
|
+
|
|
165
|
+
# Import and run net
|
|
166
|
+
from net.main import run as net_run
|
|
167
|
+
|
|
168
|
+
console.print(f"\n[green]✓[/green] Node initialized")
|
|
169
|
+
console.print(f" Port: {port}")
|
|
170
|
+
console.print(f" Models: {', '.join(models) if models else 'auto-detect'}")
|
|
171
|
+
console.print("\n[bold green]Hanzo Net is running![/bold green]")
|
|
172
|
+
console.print("WebUI: http://localhost:52415")
|
|
173
|
+
console.print("API: http://localhost:52415/v1/chat/completions")
|
|
174
|
+
console.print("\nPress Ctrl+C to stop\n")
|
|
175
|
+
|
|
176
|
+
# Run net
|
|
177
|
+
await net_run()
|
|
178
|
+
finally:
|
|
179
|
+
sys.argv = original_argv
|
|
169
180
|
else:
|
|
170
181
|
# Run from source directory using the detected python_exe
|
|
171
182
|
console.print(f"[green]✓[/green] Using hanzo/net from {net_path}")
|
|
@@ -195,9 +206,20 @@ async def start_compute_node(ctx, name: str = None, port: int = 52415,
|
|
|
195
206
|
console.print("API: http://localhost:52415/v1/chat/completions")
|
|
196
207
|
console.print("\nPress Ctrl+C to stop\n")
|
|
197
208
|
|
|
209
|
+
# Build command line args
|
|
210
|
+
cmd_args = [python_exe, "-m", "net.main"]
|
|
211
|
+
if port != 52415:
|
|
212
|
+
cmd_args.extend(["--chatgpt-api-port", str(port)])
|
|
213
|
+
if name:
|
|
214
|
+
cmd_args.extend(["--node-id", name])
|
|
215
|
+
if network != "local":
|
|
216
|
+
cmd_args.extend(["--discovery-module", network])
|
|
217
|
+
if models:
|
|
218
|
+
cmd_args.extend(["--default-model", models[0]])
|
|
219
|
+
|
|
198
220
|
# Run net command with detected python
|
|
199
221
|
process = subprocess.run(
|
|
200
|
-
|
|
222
|
+
cmd_args,
|
|
201
223
|
env=env,
|
|
202
224
|
check=False
|
|
203
225
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hanzo
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.9
|
|
4
4
|
Summary: Hanzo AI - Complete AI Infrastructure Platform with CLI, Router, MCP, and Agent Runtime
|
|
5
5
|
Project-URL: Homepage, https://hanzo.ai
|
|
6
6
|
Project-URL: Repository, https://github.com/hanzoai/python-sdk
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
hanzo/__init__.py,sha256=
|
|
1
|
+
hanzo/__init__.py,sha256=O-S9Q3naeDCxSdeZ3BZjTZXg9z54f9bMlQmqG7hHoL4,168
|
|
2
2
|
hanzo/__main__.py,sha256=qRjwG8-7MHPOy3czoyDP9VK1GhEaJJsVeZcz2AG9NV0,104
|
|
3
|
-
hanzo/cli.py,sha256=
|
|
3
|
+
hanzo/cli.py,sha256=2DY7lxAJS5lfhAN0Iu0sN1KnmhZIoswy_XTjhDsqSGU,10501
|
|
4
4
|
hanzo/mcp_server.py,sha256=FBqcXhaJgV8_9O83H3fUy_pv4cV1707XCYm7FXaJeWY,422
|
|
5
5
|
hanzo/repl.py,sha256=sC7EXbIBn7Oxnmzqey6neAg5-116gfpmrF0YFDYrhAQ,1014
|
|
6
6
|
hanzo/commands/__init__.py,sha256=vXfIgioA6eakIYEN5ff5k_5BqOYQCJggD_MW40gb56w,138
|
|
@@ -22,7 +22,7 @@ hanzo/utils/__init__.py,sha256=zmCH4YxefrpWmR-netV99UeECqrXjkKbi3ZjbcD79dw,68
|
|
|
22
22
|
hanzo/utils/config.py,sha256=RU27eiSxGWAT9fI5-CjRdEJZEeT_xjMxjlMVeKC1gMg,4830
|
|
23
23
|
hanzo/utils/net_check.py,sha256=WDElDu19MYN3qs7y_DbIpcnVsxiMCgg2CTI-48A15vE,3066
|
|
24
24
|
hanzo/utils/output.py,sha256=lROF8RDOkck7ySt1kiTlVlHZqx1E0B-PqcJc78ZHYOs,2694
|
|
25
|
-
hanzo-0.2.
|
|
26
|
-
hanzo-0.2.
|
|
27
|
-
hanzo-0.2.
|
|
28
|
-
hanzo-0.2.
|
|
25
|
+
hanzo-0.2.9.dist-info/METADATA,sha256=ZzDpNHR4yPmxBnt5zZeGM4OZDgtxPeRLpG25Kze1xmw,4347
|
|
26
|
+
hanzo-0.2.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
27
|
+
hanzo-0.2.9.dist-info/entry_points.txt,sha256=pQLPMdqOXU_2BfTcMDhkqTCDNk_H6ApvYuSaWcuQOOw,171
|
|
28
|
+
hanzo-0.2.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|