hanzo 0.3.18__tar.gz → 0.3.19__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.18 → hanzo-0.3.19}/PKG-INFO +1 -1
- {hanzo-0.3.18 → hanzo-0.3.19}/pyproject.toml +1 -1
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/cli.py +1 -1
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/dev.py +11 -6
- {hanzo-0.3.18 → hanzo-0.3.19}/.gitignore +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/README.md +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/__init__.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/__main__.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/commands/__init__.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/commands/agent.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/commands/auth.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/commands/chat.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/commands/cluster.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/commands/config.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/commands/mcp.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/commands/miner.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/commands/network.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/commands/repl.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/commands/tools.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/interactive/__init__.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/interactive/dashboard.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/interactive/repl.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/mcp_server.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/orchestrator_config.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/repl.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/router/__init__.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/utils/__init__.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/utils/config.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/src/hanzo/utils/net_check.py +0 -0
- {hanzo-0.3.18 → hanzo-0.3.19}/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.19
|
|
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
|
|
@@ -664,11 +664,11 @@ class HanzoDevREPL:
|
|
|
664
664
|
|
|
665
665
|
async def run(self):
|
|
666
666
|
"""Run the REPL."""
|
|
667
|
-
from rich.panel import Panel
|
|
668
667
|
from rich.box import Box
|
|
669
668
|
from rich.text import Text
|
|
670
|
-
from rich.console import Group
|
|
671
669
|
from rich.align import Align
|
|
670
|
+
from rich.panel import Panel
|
|
671
|
+
from rich.console import Group
|
|
672
672
|
from prompt_toolkit import prompt
|
|
673
673
|
from prompt_toolkit.styles import Style
|
|
674
674
|
|
|
@@ -1168,8 +1168,8 @@ Examples:
|
|
|
1168
1168
|
async def _use_openai_cli(self, message: str):
|
|
1169
1169
|
"""Use OpenAI CLI (Codex) - the official OpenAI CLI tool."""
|
|
1170
1170
|
try:
|
|
1171
|
-
import subprocess
|
|
1172
1171
|
import json
|
|
1172
|
+
import subprocess
|
|
1173
1173
|
|
|
1174
1174
|
console.print("[dim]Using OpenAI CLI (Codex)...[/dim]")
|
|
1175
1175
|
|
|
@@ -1208,8 +1208,8 @@ Examples:
|
|
|
1208
1208
|
async def _use_claude_cli(self, message: str):
|
|
1209
1209
|
"""Use Claude Desktop/Code CLI."""
|
|
1210
1210
|
try:
|
|
1211
|
-
import subprocess
|
|
1212
1211
|
import os
|
|
1212
|
+
import subprocess
|
|
1213
1213
|
|
|
1214
1214
|
console.print("[dim]Using Claude Desktop...[/dim]")
|
|
1215
1215
|
|
|
@@ -1311,8 +1311,8 @@ Examples:
|
|
|
1311
1311
|
async def _use_hanzo_ide(self, message: str):
|
|
1312
1312
|
"""Use Hanzo Dev IDE from ~/work/hanzo/ide."""
|
|
1313
1313
|
try:
|
|
1314
|
-
import subprocess
|
|
1315
1314
|
import os
|
|
1315
|
+
import subprocess
|
|
1316
1316
|
|
|
1317
1317
|
console.print("[dim]Using Hanzo Dev IDE...[/dim]")
|
|
1318
1318
|
|
|
@@ -2339,6 +2339,11 @@ class MultiClaudeOrchestrator(HanzoDevOrchestrator):
|
|
|
2339
2339
|
"""
|
|
2340
2340
|
self.console.print(f"[cyan]Executing with System 2 thinking: {task}[/cyan]")
|
|
2341
2341
|
|
|
2342
|
+
# Check if instances are initialized
|
|
2343
|
+
if not self.claude_instances:
|
|
2344
|
+
# No instances started, use direct API
|
|
2345
|
+
return await self._call_api_model(task)
|
|
2346
|
+
|
|
2342
2347
|
# Step 1: Primary execution
|
|
2343
2348
|
primary = self.claude_instances[0]
|
|
2344
2349
|
result = await self._send_to_instance(primary, task)
|
|
@@ -2433,8 +2438,8 @@ class MultiClaudeOrchestrator(HanzoDevOrchestrator):
|
|
|
2433
2438
|
async def _call_claude_cli(self, prompt: str) -> Dict:
|
|
2434
2439
|
"""Call Claude Desktop and return structured response."""
|
|
2435
2440
|
try:
|
|
2436
|
-
import subprocess
|
|
2437
2441
|
import sys
|
|
2442
|
+
import subprocess
|
|
2438
2443
|
if sys.platform == "darwin":
|
|
2439
2444
|
# macOS - use AppleScript
|
|
2440
2445
|
script = f'tell application "Claude" to activate'
|
|
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
|