hanzo 0.3.9__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.
- {hanzo-0.3.9 → hanzo-0.3.10}/PKG-INFO +1 -1
- {hanzo-0.3.9 → hanzo-0.3.10}/pyproject.toml +1 -1
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/commands/auth.py +1 -1
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/commands/mcp.py +3 -3
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/interactive/repl.py +1 -1
- {hanzo-0.3.9 → hanzo-0.3.10}/.gitignore +0 -0
- {hanzo-0.3.9 → hanzo-0.3.10}/README.md +0 -0
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/__init__.py +0 -0
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/__main__.py +0 -0
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/cli.py +0 -0
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/commands/__init__.py +0 -0
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/commands/agent.py +0 -0
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/commands/chat.py +0 -0
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/commands/cluster.py +0 -0
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/commands/config.py +0 -0
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/commands/miner.py +0 -0
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/commands/network.py +0 -0
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/commands/repl.py +0 -0
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/commands/tools.py +0 -0
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/interactive/__init__.py +0 -0
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/interactive/dashboard.py +0 -0
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/mcp_server.py +0 -0
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/repl.py +0 -0
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/router/__init__.py +0 -0
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/utils/__init__.py +0 -0
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/utils/config.py +0 -0
- {hanzo-0.3.9 → hanzo-0.3.10}/src/hanzo/utils/net_check.py +0 -0
- {hanzo-0.3.9 → 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.
|
|
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
|
|
@@ -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
|
-
|
|
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
|
|
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
|