@@ -1358,7 +1358,9 @@ def generate_index_pagination_html(total_pages):
13581358 return _macros .index_pagination (total_pages )
13591359
13601360
1361- def generate_html (json_path , output_dir , github_repo = None ):
1361+ def generate_html (
1362+ json_path , output_dir , github_repo = None , transcript_label = "Claude Code"
1363+ ):
13621364 output_dir = Path (output_dir )
13631365 output_dir .mkdir (exist_ok = True )
13641366
@@ -1441,6 +1443,7 @@ def generate_html(json_path, output_dir, github_repo=None):
14411443 total_pages = total_pages ,
14421444 pagination_html = pagination_html ,
14431445 messages_html = "" .join (messages_html ),
1446+ transcript_label = transcript_label ,
14441447 )
14451448 (output_dir / f"page-{ page_num :03d} .html" ).write_text (
14461449 page_content , encoding = "utf-8"
@@ -1525,6 +1528,7 @@ def generate_html(json_path, output_dir, github_repo=None):
15251528 total_commits = total_commits ,
15261529 total_pages = total_pages ,
15271530 index_items_html = "" .join (index_items ),
1531+ transcript_label = transcript_label ,
15281532 )
15291533 index_path = output_dir / "index.html"
15301534 index_path .write_text (index_content , encoding = "utf-8" )
@@ -1730,7 +1734,7 @@ def cowork_cmd(output, output_auto, gist, open_browser, limit):
17301734 output = Path (tempfile .gettempdir ()) / f"claude-cowork-{ session_file .stem } "
17311735
17321736 output = Path (output )
1733- generate_html (session_file , output )
1737+ generate_html (session_file , output , transcript_label = "Claude Cowork" )
17341738
17351739 click .echo (f"Output: { output .resolve ()} " )
17361740
@@ -1928,7 +1932,9 @@ def format_session_for_display(session_data):
19281932 return f"{ repo_display :30} { date_display :19} { title } "
19291933
19301934
1931- def generate_html_from_session_data (session_data , output_dir , github_repo = None ):
1935+ def generate_html_from_session_data (
1936+ session_data , output_dir , github_repo = None , transcript_label = "Claude Code"
1937+ ):
19321938 """Generate HTML from session data dict (instead of file path)."""
19331939 output_dir = Path (output_dir )
19341940 output_dir .mkdir (exist_ok = True , parents = True )
@@ -2005,6 +2011,7 @@ def generate_html_from_session_data(session_data, output_dir, github_repo=None):
20052011 total_pages = total_pages ,
20062012 pagination_html = pagination_html ,
20072013 messages_html = "" .join (messages_html ),
2014+ transcript_label = transcript_label ,
20082015 )
20092016 (output_dir / f"page-{ page_num :03d} .html" ).write_text (
20102017 page_content , encoding = "utf-8"
@@ -2089,6 +2096,7 @@ def generate_html_from_session_data(session_data, output_dir, github_repo=None):
20892096 total_commits = total_commits ,
20902097 total_pages = total_pages ,
20912098 index_items_html = "" .join (index_items ),
2099+ transcript_label = transcript_label ,
20922100 )
20932101 index_path = output_dir / "index.html"
20942102 index_path .write_text (index_content , encoding = "utf-8" )
0 commit comments