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 CHANGED
@@ -95,7 +95,7 @@ from htmlgraph.types import (
95
95
  )
96
96
  from htmlgraph.work_type_utils import infer_work_type, infer_work_type_from_id
97
97
 
98
- __version__ = "0.26.10"
98
+ __version__ = "0.26.12"
99
99
  __all__ = [
100
100
  # Exceptions
101
101
  "HtmlGraphError",
@@ -2,5 +2,5 @@
2
2
  "dismissed_at": null,
3
3
  "dismissed_by": null,
4
4
  "session_id": null,
5
- "show_count": 6
5
+ "show_count": 104
6
6
  }
Binary file
@@ -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.10
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=MDmhPlkaw8qf7dHbBJgy5oLU7eQntoSC5abH-qy6Dbo,5718
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=wjD9evGQc2Id3WEBZI3PyroqTtjbgg150CRC1gxlPQc,91
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=CcIwUNYJraSGIZttnQ5kJ9qg08FvuITBELSU2jS4XiA,45453
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.10.data/data/htmlgraph/dashboard.html,sha256=MUT6SaYnazoyDcvHz5hN1omYswyIoUfeoZLf2M_iblo,251268
253
- htmlgraph-0.26.10.data/data/htmlgraph/styles.css,sha256=oDUSC8jG-V-hKojOBO9J88hxAeY2wJrBYTq0uCwX_Y4,7135
254
- htmlgraph-0.26.10.data/data/htmlgraph/templates/AGENTS.md.template,sha256=f96h7V6ygwj-v-fanVI48eYMxR6t_se4bet1H4ZsDpI,7642
255
- htmlgraph-0.26.10.data/data/htmlgraph/templates/CLAUDE.md.template,sha256=h1kG2hTX2XYig2KszsHBfzrwa_4Cfcq2Pj4SwqzeDlM,1984
256
- htmlgraph-0.26.10.data/data/htmlgraph/templates/GEMINI.md.template,sha256=gAGzE53Avki87BM_otqy5HdcYCoLsHgqaKjVzNzPMX8,1622
257
- htmlgraph-0.26.10.dist-info/METADATA,sha256=0ZY1pSBhJOIj7PNKPPFfFX8KAPoULKNSg4JruJJYvRQ,10237
258
- htmlgraph-0.26.10.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
259
- htmlgraph-0.26.10.dist-info/entry_points.txt,sha256=Wmdo5cx8pt6NoMsssVE2mZH1CZLSUsrg_3iSWatiyn0,103
260
- htmlgraph-0.26.10.dist-info/RECORD,,
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,,