hanzo 0.3.29__tar.gz → 0.3.30__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.29 → hanzo-0.3.30}/PKG-INFO +1 -1
- {hanzo-0.3.29 → hanzo-0.3.30}/pyproject.toml +1 -1
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/__init__.py +1 -1
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/interactive/enhanced_repl.py +2 -2
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/tools/detector.py +5 -5
- {hanzo-0.3.29 → hanzo-0.3.30}/.gitignore +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/README.md +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/__main__.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/base_agent.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/batch_orchestrator.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/cli.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/commands/__init__.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/commands/agent.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/commands/auth.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/commands/auth_broken.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/commands/chat.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/commands/config.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/commands/mcp.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/commands/miner.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/commands/network.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/commands/node.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/commands/repl.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/commands/router.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/commands/tools.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/dev.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/fallback_handler.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/interactive/__init__.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/interactive/dashboard.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/interactive/model_selector.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/interactive/repl.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/interactive/todo_manager.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/mcp_server.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/memory_manager.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/model_registry.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/orchestrator_config.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/rate_limiter.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/repl.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/router/__init__.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/streaming.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/tools/__init__.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/ui/__init__.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/ui/inline_startup.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/ui/startup.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/utils/__init__.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/utils/config.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/src/hanzo/utils/net_check.py +0 -0
- {hanzo-0.3.29 → hanzo-0.3.30}/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.30
|
|
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
|
|
@@ -351,9 +351,9 @@ class EnhancedHanzoREPL:
|
|
|
351
351
|
|
|
352
352
|
# Node status
|
|
353
353
|
try:
|
|
354
|
-
response = httpx.get("http://localhost:
|
|
354
|
+
response = httpx.get("http://localhost:3690/health", timeout=1)
|
|
355
355
|
node_status = "✅ Running" if response.status_code == 200 else "⚠️ Unhealthy"
|
|
356
|
-
node_details = "Port
|
|
356
|
+
node_details = "Port 3690"
|
|
357
357
|
except:
|
|
358
358
|
node_status = "❌ Offline"
|
|
359
359
|
node_details = "Run 'hanzo node start'"
|
|
@@ -42,7 +42,7 @@ class ToolDetector:
|
|
|
42
42
|
provider="hanzo-local",
|
|
43
43
|
priority=0, # Highest priority - local and private
|
|
44
44
|
check_command=None, # Check via API endpoint
|
|
45
|
-
api_endpoint="http://localhost:
|
|
45
|
+
api_endpoint="http://localhost:3690/health",
|
|
46
46
|
env_var=None
|
|
47
47
|
),
|
|
48
48
|
AITool(
|
|
@@ -175,7 +175,7 @@ class ToolDetector:
|
|
|
175
175
|
try:
|
|
176
176
|
# Check if the chat completions endpoint works
|
|
177
177
|
test_response = httpx.post(
|
|
178
|
-
"http://localhost:
|
|
178
|
+
"http://localhost:3690/v1/chat/completions",
|
|
179
179
|
json={
|
|
180
180
|
"messages": [{"role": "user", "content": "test"}],
|
|
181
181
|
"model": "test",
|
|
@@ -193,7 +193,7 @@ class ToolDetector:
|
|
|
193
193
|
|
|
194
194
|
# Try to get model info
|
|
195
195
|
try:
|
|
196
|
-
models_response = httpx.get("http://localhost:
|
|
196
|
+
models_response = httpx.get("http://localhost:3690/v1/models", timeout=1.0)
|
|
197
197
|
if models_response.status_code == 200:
|
|
198
198
|
models = models_response.json().get("data", [])
|
|
199
199
|
if models:
|
|
@@ -342,10 +342,10 @@ class ToolDetector:
|
|
|
342
342
|
try:
|
|
343
343
|
# Special handling for Hanzo services
|
|
344
344
|
if tool.name == "hanzod":
|
|
345
|
-
# Use the local API directly with correct endpoint
|
|
345
|
+
# Use the local API directly with correct endpoint (port 3690)
|
|
346
346
|
try:
|
|
347
347
|
response = httpx.post(
|
|
348
|
-
"http://localhost:
|
|
348
|
+
"http://localhost:3690/v1/chat/completions",
|
|
349
349
|
json={
|
|
350
350
|
"messages": [{"role": "user", "content": prompt}],
|
|
351
351
|
"model": "default", # Use default model
|
|
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
|
|
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
|