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.
- {hcom-0.1.2/src/hcom.egg-info → hcom-0.1.3}/PKG-INFO +2 -2
- {hcom-0.1.2 → hcom-0.1.3}/pyproject.toml +2 -2
- {hcom-0.1.2 → hcom-0.1.3}/src/hcom/__init__.py +1 -1
- {hcom-0.1.2 → hcom-0.1.3}/src/hcom/__main__.py +15 -14
- {hcom-0.1.2 → hcom-0.1.3/src/hcom.egg-info}/PKG-INFO +2 -2
- {hcom-0.1.2 → hcom-0.1.3}/MANIFEST.in +0 -0
- {hcom-0.1.2 → hcom-0.1.3}/README.md +0 -0
- {hcom-0.1.2 → hcom-0.1.3}/setup.cfg +0 -0
- {hcom-0.1.2 → hcom-0.1.3}/src/hcom.egg-info/SOURCES.txt +0 -0
- {hcom-0.1.2 → hcom-0.1.3}/src/hcom.egg-info/dependency_links.txt +0 -0
- {hcom-0.1.2 → hcom-0.1.3}/src/hcom.egg-info/entry_points.txt +0 -0
- {hcom-0.1.2 → hcom-0.1.3}/src/hcom.egg-info/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hcom
|
|
3
|
-
Version: 0.1.
|
|
4
|
-
Summary: Lightweight CLI tool for real-time messaging between Claude Code
|
|
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.
|
|
8
|
-
description = "Lightweight CLI tool for real-time messaging between Claude Code
|
|
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,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
2
|
"""
|
|
3
|
-
hcom - Hook
|
|
4
|
-
A
|
|
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
|
-
#
|
|
626
|
-
|
|
627
|
-
|
|
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
|
-
|
|
630
|
-
#
|
|
631
|
-
|
|
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
|
|
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
|
|
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.
|
|
4
|
-
Summary: Lightweight CLI tool for real-time messaging between Claude Code
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|