hanzo 0.3.18__py3-none-any.whl → 0.3.19__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
@@ -26,7 +26,7 @@ from .utils.output import console
26
26
  from .interactive.repl import HanzoREPL
27
27
 
28
28
  # Version
29
- __version__ = "0.3.18"
29
+ __version__ = "0.3.19"
30
30
 
31
31
 
32
32
  @click.group(invoke_without_command=True)
hanzo/dev.py CHANGED
@@ -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'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hanzo
3
- Version: 0.3.18
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
@@ -1,7 +1,7 @@
1
1
  hanzo/__init__.py,sha256=f6N_RcJZ0F9ADrROlvPi1OrgwjF8cWQm34cml8hb1zk,169
2
2
  hanzo/__main__.py,sha256=F3Vz0Ty3bdAj_8oxyETMIqxlmNRnJOAFB1XPxbyfouI,105
3
- hanzo/cli.py,sha256=NRm9ggHDbRscb66zo-YYFrT7qZVNO8si-HfT_cPIdKo,18586
4
- hanzo/dev.py,sha256=yHO4yoDz0RPQfq6ytPDbzb8YnneN7nO6kXD35_p0tAU,100825
3
+ hanzo/cli.py,sha256=n5zfibkCLN9EU2qcMxKCU3U7j16EJvXGNKQ6Jj6xCmE,18586
4
+ hanzo/dev.py,sha256=2lRFtAnlrAQ9N60Ky5KOnYfbzEOUwbY-95iqoujKPtE,101012
5
5
  hanzo/mcp_server.py,sha256=XVygFNn-9CVdu8c95sP7fQjIRtA8K7nsGpgQNe44BRg,460
6
6
  hanzo/orchestrator_config.py,sha256=JV7DS8aVZwBJ9XzgkQronFwV_A50QyXG3MH_pKwmCB8,11006
7
7
  hanzo/repl.py,sha256=sW1quuqGkJ_AqgjN2vLNdtWgKDlXIkXiO9Bo1QQI0G4,1089
@@ -24,7 +24,7 @@ hanzo/utils/__init__.py,sha256=5RRwKI852vp8smr4xCRgeKfn7dLEnHbdXGfVYTZ5jDQ,69
24
24
  hanzo/utils/config.py,sha256=FD_LoBpcoF5dgJ7WL4o6LDp2pdOy8kS-dJ6iRO2GcGM,4728
25
25
  hanzo/utils/net_check.py,sha256=YFbJ65SzfDYHkHLZe3n51VhId1VI3zhyx8p6BM-l6jE,3017
26
26
  hanzo/utils/output.py,sha256=W0j3psF07vJiX4s02gbN4zYWfbKNsb8TSIoagBSf5vA,2704
27
- hanzo-0.3.18.dist-info/METADATA,sha256=vpNp0PaJla_zpraWuFVQ3HgCCtjwNEW_L5Y4IFL3qSg,4279
28
- hanzo-0.3.18.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
29
- hanzo-0.3.18.dist-info/entry_points.txt,sha256=pQLPMdqOXU_2BfTcMDhkqTCDNk_H6ApvYuSaWcuQOOw,171
30
- hanzo-0.3.18.dist-info/RECORD,,
27
+ hanzo-0.3.19.dist-info/METADATA,sha256=Q4-n6BaxWrXe-caB9Mda9lKSOSI0ND1sQvzupAXmj2I,4279
28
+ hanzo-0.3.19.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
29
+ hanzo-0.3.19.dist-info/entry_points.txt,sha256=pQLPMdqOXU_2BfTcMDhkqTCDNk_H6ApvYuSaWcuQOOw,171
30
+ hanzo-0.3.19.dist-info/RECORD,,
File without changes