Skip to content

Commit 9a609ce

Browse files
zackman0010claude
andcommitted
Refactor html_generation into subpackage with clean public API
- Move renderer, generator, templates, static/, and Jinja2 templates into html_generation/ subpackage - Expose public API via html_generation/__init__.py (Session, Project, generate_html, generate_batch_html, inject_gist_preview_js, create_gist) - Prefix all internal names with _ across renderer, generator, templates - Add Session/Project dataclasses; callers now build and pass these in, removing parse_session_file from generator - parse_session_file now returns loglines list directly instead of dict - Move detect_github_repo into generator as _detect_github_repo, removing the html_generation -> api dependency - Add Windows/Linux support for cowork sessions via platformdirs - Handle _audit_timestamp fallback and isMeta/isSynthetic skipping in parser - Add platformdirs dependency Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 46adcb6 commit 9a609ce

35 files changed

+2642
-2541
lines changed

.idea/.gitignore

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/claude-code-transcripts.iml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 83 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Run the development version of the tool like this:
66

77
uv run claude-code-transcripts --help
88

9-
Always practice TDD: write a faliing test, watch it fail, then make it pass.
9+
Always practice TDD: write a failing test, watch it fail, then make it pass.
1010

1111
Commit early and often. Commits should bundle the test, implementation, and documentation changes together.
1212

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dependencies = [
1414
"httpx",
1515
"jinja2",
1616
"markdown",
17+
"platformdirs",
1718
"questionary",
1819
]
1920

0 commit comments

Comments
 (0)