htmlgraph 0.26.10__py3-none-any.whl → 0.26.12__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.
- htmlgraph/__init__.py +1 -1
- htmlgraph/cli/.htmlgraph/.session-warning-state.json +1 -1
- htmlgraph/cli/.htmlgraph/htmlgraph.db +0 -0
- htmlgraph/hooks/event_tracker.py +8 -0
- {htmlgraph-0.26.10.dist-info → htmlgraph-0.26.12.dist-info}/METADATA +1 -1
- {htmlgraph-0.26.10.dist-info → htmlgraph-0.26.12.dist-info}/RECORD +13 -12
- {htmlgraph-0.26.10.data → htmlgraph-0.26.12.data}/data/htmlgraph/dashboard.html +0 -0
- {htmlgraph-0.26.10.data → htmlgraph-0.26.12.data}/data/htmlgraph/styles.css +0 -0
- {htmlgraph-0.26.10.data → htmlgraph-0.26.12.data}/data/htmlgraph/templates/AGENTS.md.template +0 -0
- {htmlgraph-0.26.10.data → htmlgraph-0.26.12.data}/data/htmlgraph/templates/CLAUDE.md.template +0 -0
- {htmlgraph-0.26.10.data → htmlgraph-0.26.12.data}/data/htmlgraph/templates/GEMINI.md.template +0 -0
- {htmlgraph-0.26.10.dist-info → htmlgraph-0.26.12.dist-info}/WHEEL +0 -0
- {htmlgraph-0.26.10.dist-info → htmlgraph-0.26.12.dist-info}/entry_points.txt +0 -0
htmlgraph/__init__.py
CHANGED
|
Binary file
|
htmlgraph/hooks/event_tracker.py
CHANGED
|
@@ -773,6 +773,7 @@ def track_event(hook_type: str, hook_input: dict[str, Any]) -> dict[str, Any]:
|
|
|
773
773
|
# NOTE: Claude Code passes the SAME session_id to parent and subagent, so we CAN'T use
|
|
774
774
|
# session_id to distinguish them. Instead, look for the most recent task_delegation event
|
|
775
775
|
# and if found with status='started', we ARE the subagent.
|
|
776
|
+
task_event_id_from_db = None # Track this for later use as parent_event_id
|
|
776
777
|
if not subagent_type and db and db.connection:
|
|
777
778
|
try:
|
|
778
779
|
cursor = db.connection.cursor()
|
|
@@ -795,6 +796,9 @@ def track_event(hook_type: str, hook_input: dict[str, Any]) -> dict[str, Any]:
|
|
|
795
796
|
# (Claude Code uses the same session_id for both parent and subagent)
|
|
796
797
|
subagent_type = detected_subagent_type or "general-purpose"
|
|
797
798
|
parent_session_id = parent_sess
|
|
799
|
+
task_event_id_from_db = (
|
|
800
|
+
task_event_id # Store for later use as parent_event_id
|
|
801
|
+
)
|
|
798
802
|
print(
|
|
799
803
|
f"DEBUG subagent detection (database): Detected active task_delegation "
|
|
800
804
|
f"type={subagent_type}, parent_session={parent_session_id}, "
|
|
@@ -1039,6 +1043,10 @@ def track_event(hook_type: str, hook_input: dict[str, Any]) -> dict[str, Any]:
|
|
|
1039
1043
|
)
|
|
1040
1044
|
if env_parent:
|
|
1041
1045
|
parent_activity_id = env_parent
|
|
1046
|
+
# If we detected a Task delegation event via database detection (Method 3),
|
|
1047
|
+
# use that as the parent for all tool calls within the subagent
|
|
1048
|
+
elif task_event_id_from_db:
|
|
1049
|
+
parent_activity_id = task_event_id_from_db
|
|
1042
1050
|
# Query database for most recent UserQuery event as parent
|
|
1043
1051
|
# Database is the single source of truth for parent-child linking
|
|
1044
1052
|
elif db:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: htmlgraph
|
|
3
|
-
Version: 0.26.
|
|
3
|
+
Version: 0.26.12
|
|
4
4
|
Summary: HTML is All You Need - Graph database on web standards
|
|
5
5
|
Project-URL: Homepage, https://github.com/Shakes-tzd/htmlgraph
|
|
6
6
|
Project-URL: Documentation, https://github.com/Shakes-tzd/htmlgraph#readme
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
htmlgraph/__init__.py,sha256=
|
|
1
|
+
htmlgraph/__init__.py,sha256=VIeTSZpmbiqRu9ld4dQs_71PfKYQvlaJ90SeGVW4ybk,5718
|
|
2
2
|
htmlgraph/agent_detection.py,sha256=wEmrDv4hssPX2OkEnJZBHPbalxcaloiJF_hOOow_5WE,3511
|
|
3
3
|
htmlgraph/agent_registry.py,sha256=Usa_35by7p5gtpvHO7K3AcGimnorw-FzgPVa3cWTQ58,9448
|
|
4
4
|
htmlgraph/agents.py,sha256=Yvu6x1nOfrW2WhRTAHiCuSpvqoVJXx1Mkzd59kwEczw,33466
|
|
@@ -129,8 +129,9 @@ htmlgraph/cli/constants.py,sha256=S7hAih2Ka64c0sWqOdq7W762VRoBHri8w8XDDWqHCkE,70
|
|
|
129
129
|
htmlgraph/cli/core.py,sha256=JhRL1iZhN3x4IeeVQkK4GnfAV7JQm5JDU6hG473GBOs,28878
|
|
130
130
|
htmlgraph/cli/main.py,sha256=rSSSErlmFHrREbAydtytj3up8M_dQ9jFgYL1OmrSQas,4108
|
|
131
131
|
htmlgraph/cli/models.py,sha256=7dEAwsroH2J_84Bq6i9Q0RLJsKQ9rNbX_daOfHdrb78,16033
|
|
132
|
-
htmlgraph/cli/.htmlgraph/.session-warning-state.json,sha256=
|
|
132
|
+
htmlgraph/cli/.htmlgraph/.session-warning-state.json,sha256=rMkFdGlJQLQI41LP_xOh22bcoZXZAWjMBZHPDzEs7jg,93
|
|
133
133
|
htmlgraph/cli/.htmlgraph/agents.json,sha256=hVmmvoL4CDTIrhxH7VaM-jSDCj8kszWsUFY_LHae9DQ,1391
|
|
134
|
+
htmlgraph/cli/.htmlgraph/htmlgraph.db,sha256=Q8lPXN1T4By7XDuGWuig_MX6CQ-6IPl5XFjEx2EZxwg,372736
|
|
134
135
|
htmlgraph/cli/templates/__init__.py,sha256=7eh8oC8rce689HGuuYqJEMCElJCtg084xOMHZti2XL8,37
|
|
135
136
|
htmlgraph/cli/templates/cost_dashboard.py,sha256=2FRaujRUYEDfA18c0QFju28yidfaVnMFH4pdcBaQ7Ao,11313
|
|
136
137
|
htmlgraph/cli/work/__init__.py,sha256=yFK8G85F-Z9df-3LBM-3NbjCgidtLEVhkYGO1uf4QuI,4570
|
|
@@ -189,7 +190,7 @@ htmlgraph/hooks/cigs_pretool_enforcer.py,sha256=Lyp4DDaw_sVHEcW-kzdegldyfXjvVD25
|
|
|
189
190
|
htmlgraph/hooks/concurrent_sessions.py,sha256=qOiwDfynphVG0-2pVBakEzOwMORU8ebN1gMjcN4S0z0,6476
|
|
190
191
|
htmlgraph/hooks/context.py,sha256=tJ4dIL8uTFHyqyuuMc-ETDuOikeD5cN3Mdjmfg6W0HE,13108
|
|
191
192
|
htmlgraph/hooks/drift_handler.py,sha256=QckL5U5ooku51kI6mppGLsXzaKVt1Yx5uNu-iXZrgSk,17602
|
|
192
|
-
htmlgraph/hooks/event_tracker.py,sha256=
|
|
193
|
+
htmlgraph/hooks/event_tracker.py,sha256=A58ByxOR4xX014pbUuGtfkN8KS22zkb9ajkTzNmp6mw,45916
|
|
193
194
|
htmlgraph/hooks/git_commands.py,sha256=NPzthfzGJ_bkDi7soehHOxI9FLL-6BL8Tie9Byb_zf4,4803
|
|
194
195
|
htmlgraph/hooks/hooks-config.example.json,sha256=tXpk-U-FZzGOoNJK2uiDMbIHCYEHA794J-El0fBwkqg,197
|
|
195
196
|
htmlgraph/hooks/installer.py,sha256=nOctCFDEV7BEh7ZzxNY-apu1KZG0SHPMq74UPIOChqY,11756
|
|
@@ -249,12 +250,12 @@ htmlgraph/templates/AGENTS.md.template,sha256=f96h7V6ygwj-v-fanVI48eYMxR6t_se4be
|
|
|
249
250
|
htmlgraph/templates/CLAUDE.md.template,sha256=h1kG2hTX2XYig2KszsHBfzrwa_4Cfcq2Pj4SwqzeDlM,1984
|
|
250
251
|
htmlgraph/templates/GEMINI.md.template,sha256=gAGzE53Avki87BM_otqy5HdcYCoLsHgqaKjVzNzPMX8,1622
|
|
251
252
|
htmlgraph/templates/orchestration-view.html,sha256=DlS7LlcjH0oO_KYILjuF1X42t8QhKLH4F85rkO54alY,10472
|
|
252
|
-
htmlgraph-0.26.
|
|
253
|
-
htmlgraph-0.26.
|
|
254
|
-
htmlgraph-0.26.
|
|
255
|
-
htmlgraph-0.26.
|
|
256
|
-
htmlgraph-0.26.
|
|
257
|
-
htmlgraph-0.26.
|
|
258
|
-
htmlgraph-0.26.
|
|
259
|
-
htmlgraph-0.26.
|
|
260
|
-
htmlgraph-0.26.
|
|
253
|
+
htmlgraph-0.26.12.data/data/htmlgraph/dashboard.html,sha256=MUT6SaYnazoyDcvHz5hN1omYswyIoUfeoZLf2M_iblo,251268
|
|
254
|
+
htmlgraph-0.26.12.data/data/htmlgraph/styles.css,sha256=oDUSC8jG-V-hKojOBO9J88hxAeY2wJrBYTq0uCwX_Y4,7135
|
|
255
|
+
htmlgraph-0.26.12.data/data/htmlgraph/templates/AGENTS.md.template,sha256=f96h7V6ygwj-v-fanVI48eYMxR6t_se4bet1H4ZsDpI,7642
|
|
256
|
+
htmlgraph-0.26.12.data/data/htmlgraph/templates/CLAUDE.md.template,sha256=h1kG2hTX2XYig2KszsHBfzrwa_4Cfcq2Pj4SwqzeDlM,1984
|
|
257
|
+
htmlgraph-0.26.12.data/data/htmlgraph/templates/GEMINI.md.template,sha256=gAGzE53Avki87BM_otqy5HdcYCoLsHgqaKjVzNzPMX8,1622
|
|
258
|
+
htmlgraph-0.26.12.dist-info/METADATA,sha256=R1tGyLhAmPDlODF8OXT3coPYDDxXi_REg05NOpNeEQA,10237
|
|
259
|
+
htmlgraph-0.26.12.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
260
|
+
htmlgraph-0.26.12.dist-info/entry_points.txt,sha256=Wmdo5cx8pt6NoMsssVE2mZH1CZLSUsrg_3iSWatiyn0,103
|
|
261
|
+
htmlgraph-0.26.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{htmlgraph-0.26.10.data → htmlgraph-0.26.12.data}/data/htmlgraph/templates/AGENTS.md.template
RENAMED
|
File without changes
|
{htmlgraph-0.26.10.data → htmlgraph-0.26.12.data}/data/htmlgraph/templates/CLAUDE.md.template
RENAMED
|
File without changes
|
{htmlgraph-0.26.10.data → htmlgraph-0.26.12.data}/data/htmlgraph/templates/GEMINI.md.template
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|