hanzo 0.3.8__tar.gz → 0.3.10__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.

Potentially problematic release.


This version of hanzo might be problematic. Click here for more details.

Files changed (28) hide show
  1. {hanzo-0.3.8 → hanzo-0.3.10}/PKG-INFO +1 -1
  2. {hanzo-0.3.8 → hanzo-0.3.10}/pyproject.toml +1 -1
  3. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/commands/auth.py +1 -1
  4. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/commands/mcp.py +3 -3
  5. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/interactive/repl.py +1 -1
  6. {hanzo-0.3.8 → hanzo-0.3.10}/.gitignore +0 -0
  7. {hanzo-0.3.8 → hanzo-0.3.10}/README.md +0 -0
  8. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/__init__.py +0 -0
  9. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/__main__.py +0 -0
  10. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/cli.py +0 -0
  11. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/commands/__init__.py +0 -0
  12. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/commands/agent.py +0 -0
  13. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/commands/chat.py +0 -0
  14. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/commands/cluster.py +0 -0
  15. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/commands/config.py +0 -0
  16. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/commands/miner.py +0 -0
  17. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/commands/network.py +0 -0
  18. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/commands/repl.py +0 -0
  19. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/commands/tools.py +0 -0
  20. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/interactive/__init__.py +0 -0
  21. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/interactive/dashboard.py +0 -0
  22. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/mcp_server.py +0 -0
  23. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/repl.py +0 -0
  24. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/router/__init__.py +0 -0
  25. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/utils/__init__.py +0 -0
  26. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/utils/config.py +0 -0
  27. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/utils/net_check.py +0 -0
  28. {hanzo-0.3.8 → hanzo-0.3.10}/src/hanzo/utils/output.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hanzo
3
- Version: 0.3.8
3
+ Version: 0.3.10
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
1
  [project]
2
2
  name = "hanzo"
3
- version = "0.3.8"
3
+ version = "0.3.10"
4
4
  description = "Hanzo AI - Complete AI Infrastructure Platform with CLI, Router, MCP, and Agent Runtime"
5
5
  authors = [
6
6
  {name = "Hanzo AI", email = "dev@hanzo.ai"},
@@ -144,7 +144,7 @@ async def status(ctx):
144
144
  console.print(
145
145
  f" Quota: {usage.get('tokens', 0)} / {quota}"
146
146
  )
147
- except:
147
+ except Exception:
148
148
  console.print("[yellow]![/yellow] Credentials may be expired")
149
149
  console.print("Run 'hanzo auth login' to refresh")
150
150
 
@@ -144,7 +144,7 @@ async def run(ctx, tool: str, arg: tuple, json_args: str):
144
144
  # Try to parse value as JSON first
145
145
  try:
146
146
  args[key] = json.loads(value)
147
- except:
147
+ except Exception:
148
148
  args[key] = value
149
149
 
150
150
  # Create server and run tool
@@ -189,7 +189,7 @@ async def run(ctx, tool: str, arg: tuple, json_args: str):
189
189
  # Try to parse as JSON for pretty printing
190
190
  data = json.loads(result)
191
191
  console.print_json(data=data)
192
- except:
192
+ except Exception:
193
193
  # Display as text
194
194
  console.print(result)
195
195
  else:
@@ -207,7 +207,7 @@ async def run(ctx, tool: str, arg: tuple, json_args: str):
207
207
  def install(ctx, path: str):
208
208
  """Install MCP server in Claude Desktop."""
209
209
  try:
210
- from hanzoai.mcp import create_server
210
+ import hanzoai.mcp
211
211
  except ImportError:
212
212
  console.print("[red]Error:[/red] hanzo-mcp not installed")
213
213
  console.print("Install with: pip install hanzo[mcp]")
@@ -167,7 +167,7 @@ hanzo> mcp run read_file --arg path=README.md
167
167
  async with httpx.AsyncClient() as client:
168
168
  response = await client.get("http://localhost:8000/health", timeout=1.0)
169
169
  return "running" if response.status_code == 200 else "not responding"
170
- except:
170
+ except Exception:
171
171
  return "not running"
172
172
 
173
173
  async def count_agents(self) -> int:
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