hanzo 0.3.4__py3-none-any.whl → 0.3.6__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/cli.py CHANGED
@@ -97,7 +97,7 @@ def serve(ctx, name: str, port: int):
97
97
  @click.pass_context
98
98
  def net(ctx, name: str, port: int, network: str, models: tuple, max_jobs: int):
99
99
  """Start the Hanzo Network distributed AI compute node."""
100
- asyncio.run(start_compute_node(ctx, name, port, network, models, max_jobs))
100
+ start_compute_node(ctx, name, port, network, models, max_jobs)
101
101
 
102
102
 
103
103
  @cli.command()
@@ -109,10 +109,10 @@ def net(ctx, name: str, port: int, network: str, models: tuple, max_jobs: int):
109
109
  @click.pass_context
110
110
  def node(ctx, name: str, port: int, network: str, models: tuple, max_jobs: int):
111
111
  """Alias for 'hanzo net' - Start as a compute node for the Hanzo network."""
112
- asyncio.run(start_compute_node(ctx, name, port, network, models, max_jobs))
112
+ start_compute_node(ctx, name, port, network, models, max_jobs)
113
113
 
114
114
 
115
- async def start_compute_node(ctx, name: str = None, port: int = 52415,
115
+ def start_compute_node(ctx, name: str = None, port: int = 52415,
116
116
  network: str = "mainnet", models: tuple = None,
117
117
  max_jobs: int = 10):
118
118
  """Start this instance as a compute node using hanzo/net."""
@@ -159,7 +159,7 @@ async def start_compute_node(ctx, name: str = None, port: int = 52415,
159
159
  sys.argv.extend(["--node-id", name])
160
160
  if network != "local":
161
161
  sys.argv.extend(["--discovery-module", network])
162
- if models:
162
+ if models and len(models) > 0:
163
163
  sys.argv.extend(["--default-model", models[0]])
164
164
 
165
165
  # Import and run net
@@ -174,7 +174,7 @@ async def start_compute_node(ctx, name: str = None, port: int = 52415,
174
174
  console.print("\nPress Ctrl+C to stop\n")
175
175
 
176
176
  # Run net
177
- await net_run()
177
+ net_run()
178
178
  finally:
179
179
  sys.argv = original_argv
180
180
  else:
@@ -214,7 +214,7 @@ async def start_compute_node(ctx, name: str = None, port: int = 52415,
214
214
  cmd_args.extend(["--node-id", name])
215
215
  if network != "local":
216
216
  cmd_args.extend(["--discovery-module", network])
217
- if models:
217
+ if models and len(models) > 0:
218
218
  cmd_args.extend(["--default-model", models[0]])
219
219
 
220
220
  # Run net command with detected python
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hanzo
3
- Version: 0.3.4
3
+ Version: 0.3.6
4
4
  Summary: Hanzo AI - Complete AI Infrastructure Platform with CLI, Router, MCP, and Agent Runtime
5
5
  Home-page: https://hanzo.ai
6
6
  Author: Hanzo AI
@@ -1,6 +1,6 @@
1
1
  hanzo/__init__.py,sha256=_3gjqIqXV4OeOilSunCNFmQ1SxhRMn_0bZINRXuoWwI,168
2
2
  hanzo/__main__.py,sha256=qRjwG8-7MHPOy3czoyDP9VK1GhEaJJsVeZcz2AG9NV0,104
3
- hanzo/cli.py,sha256=_k3zI0650gWY9uAS7JO1m0EMtHxqG2i_W3ZsOUpaIgU,10502
3
+ hanzo/cli.py,sha256=RJ_ZVoqdXAnBabjOmmB5TbMb-muTmayevUfFTrhRfXk,10504
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,8 +22,8 @@ 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.3.4.dist-info/METADATA,sha256=2ICSUX_U16saRILY8IRD2V1mvzNMtqCMNbGeV2a-pcg,2035
26
- hanzo-0.3.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
- hanzo-0.3.4.dist-info/entry_points.txt,sha256=MkIfUVPd60IM8Se318MHpOLs4UN7LFVDKNzKuOsrvxM,41
28
- hanzo-0.3.4.dist-info/top_level.txt,sha256=HZaVsynzw0H1KJfoZXqeQo7C4gmULwxI8o05pUKR3hA,6
29
- hanzo-0.3.4.dist-info/RECORD,,
25
+ hanzo-0.3.6.dist-info/METADATA,sha256=0Pj75UY2q3Ods5GhDt6TXUgh8LWJHXUeNWHWH7X2_eg,2035
26
+ hanzo-0.3.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
+ hanzo-0.3.6.dist-info/entry_points.txt,sha256=MkIfUVPd60IM8Se318MHpOLs4UN7LFVDKNzKuOsrvxM,41
28
+ hanzo-0.3.6.dist-info/top_level.txt,sha256=HZaVsynzw0H1KJfoZXqeQo7C4gmULwxI8o05pUKR3hA,6
29
+ hanzo-0.3.6.dist-info/RECORD,,
File without changes