hcom 0.1.2__tar.gz → 0.1.3__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 hcom might be problematic. Click here for more details.

@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hcom
3
- Version: 0.1.2
4
- Summary: Lightweight CLI tool for real-time messaging between Claude Code instances/subagents using hooks
3
+ Version: 0.1.3
4
+ Summary: Lightweight CLI tool for real-time messaging between Claude Code subagents using hooks
5
5
  Author-email: aannoo <your@email.com>
6
6
  License: MIT
7
7
  Project-URL: Homepage, https://github.com/aannoo/claude-hook-comms
@@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "hcom"
7
- version = "0.1.2"
8
- description = "Lightweight CLI tool for real-time messaging between Claude Code instances/subagents using hooks"
7
+ version = "0.1.3"
8
+ description = "Lightweight CLI tool for real-time messaging between Claude Code subagents using hooks"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.6"
11
11
  license = {text = "MIT"}
@@ -1,3 +1,3 @@
1
1
  """Claude Hook Comms - Real-time messaging between Claude Code agents."""
2
2
 
3
- __version__ = "0.1.0"
3
+ __version__ = "0.1.3"
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env python3
2
2
  """
3
- hcom - Hook Communications
4
- A simplified multi-agent communication system for Claude instances
3
+ hcom - Claude Hook Comms
4
+ A lightweight multi-agent communication system for claude code
5
5
  """
6
6
 
7
7
  import os
@@ -622,17 +622,17 @@ def setup_hooks():
622
622
  # Detect hcom executable path
623
623
  try:
624
624
  import subprocess
625
- # Check if we're running via uvx by checking if Python is in uv cache
626
- if '.cache/uv/' in sys.executable:
627
- # We're in a uvx environment, use uvx to run hcom
625
+ # First, try regular hcom command
626
+ subprocess.run(['hcom', 'help'], capture_output=True, check=True, timeout=5)
627
+ hcom_cmd = 'hcom'
628
+ except (subprocess.CalledProcessError, FileNotFoundError, subprocess.TimeoutExpired):
629
+ try:
630
+ # Try uvx hcom
631
+ subprocess.run(['uvx', 'hcom', 'help'], capture_output=True, check=True, timeout=10)
628
632
  hcom_cmd = 'uvx hcom'
629
- else:
630
- # Try regular hcom command
631
- subprocess.run(['hcom', '--help'], capture_output=True, check=True)
632
- hcom_cmd = 'hcom'
633
- except (subprocess.CalledProcessError, FileNotFoundError):
634
- # Use full path to current script as fallback
635
- hcom_cmd = f'"{sys.executable}" "{os.path.abspath(__file__)}"'
633
+ except (subprocess.CalledProcessError, FileNotFoundError, subprocess.TimeoutExpired):
634
+ # Last resort: use full path
635
+ hcom_cmd = f'"{sys.executable}" "{os.path.abspath(__file__)}"'
636
636
 
637
637
  # Add PostToolUse hook
638
638
  if 'PostToolUse' not in settings['hooks']:
@@ -1174,7 +1174,7 @@ def show_main_screen_header():
1174
1174
 
1175
1175
  def cmd_help():
1176
1176
  """Show help text"""
1177
- print("""hcom - Hook Communications
1177
+ print("""hcom - Claude Hook Comms
1178
1178
 
1179
1179
  Usage:
1180
1180
  hcom open [n] Launch n Claude instances
@@ -1188,7 +1188,8 @@ Usage:
1188
1188
  Automation:
1189
1189
  hcom send 'msg' Send message
1190
1190
  hcom send '@prefix msg' Send to specific instances
1191
- hcom watch --logs/--status Show logs or status""")
1191
+ hcom watch --logs Show logs
1192
+ hcom watch --status Show status""")
1192
1193
  return 0
1193
1194
 
1194
1195
  def cmd_open(*args):
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hcom
3
- Version: 0.1.2
4
- Summary: Lightweight CLI tool for real-time messaging between Claude Code instances/subagents using hooks
3
+ Version: 0.1.3
4
+ Summary: Lightweight CLI tool for real-time messaging between Claude Code subagents using hooks
5
5
  Author-email: aannoo <your@email.com>
6
6
  License: MIT
7
7
  Project-URL: Homepage, https://github.com/aannoo/claude-hook-comms
File without changes
File without changes
File without changes
File without changes