Skip to content

Commit c80b1de

Browse files
committed
Rename tool from claude-code-publish to claude-code-transcripts
- Rename module directory src/claude_code_publish → src/claude_code_transcripts - Update pyproject.toml with new package name, CLI command, and URLs - Update all README.md references - Update test imports and version checks - Update AGENTS.md development instructions https://gistpreview.github.io/?814530b3a70af8408f3bb8ca10f70d57/index.html
1 parent ad3e9a0 commit c80b1de

File tree

10 files changed

+68
-68
lines changed

10 files changed

+68
-68
lines changed

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Uses uv. Run tests like this:
44

55
Run the development version of the tool like this:
66

7-
uv run claude-code-publish --help
7+
uv run claude-code-transcripts --help
88

99
Always practice TDD: write a faliing test, watch it fail, then make it pass.
1010

README.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# claude-code-publish
1+
# claude-code-transcripts
22

3-
[![PyPI](https://img.shields.io/pypi/v/claude-code-publish.svg)](https://pypi.org/project/claude-code-publish/)
4-
[![Changelog](https://img.shields.io/github/v/release/simonw/claude-code-publish?include_prereleases&label=changelog)](https://github.com/simonw/claude-code-publish/releases)
5-
[![Tests](https://github.com/simonw/claude-code-publish/workflows/Test/badge.svg)](https://github.com/simonw/claude-code-publish/actions?query=workflow%3ATest)
6-
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/claude-code-publish/blob/main/LICENSE)
3+
[![PyPI](https://img.shields.io/pypi/v/claude-code-transcripts.svg)](https://pypi.org/project/claude-code-transcripts/)
4+
[![Changelog](https://img.shields.io/github/v/release/simonw/claude-code-transcripts?include_prereleases&label=changelog)](https://github.com/simonw/claude-code-transcripts/releases)
5+
[![Tests](https://github.com/simonw/claude-code-transcripts/workflows/Test/badge.svg)](https://github.com/simonw/claude-code-transcripts/actions?query=workflow%3ATest)
6+
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/claude-code-transcripts/blob/main/LICENSE)
77

88
Convert Claude Code session files (JSON or JSONL) to clean, mobile-friendly HTML pages with pagination.
99

@@ -14,11 +14,11 @@ Convert Claude Code session files (JSON or JSONL) to clean, mobile-friendly HTML
1414

1515
Install this tool using `uv`:
1616
```bash
17-
uv tool install claude-code-publish
17+
uv tool install claude-code-transcripts
1818
```
1919
Or run it without installing:
2020
```bash
21-
uvx claude-code-publish --help
21+
uvx claude-code-transcripts --help
2222
```
2323

2424
## Usage
@@ -34,7 +34,7 @@ There are three commands available:
3434
The quickest way to view a recent local session:
3535

3636
```bash
37-
claude-code-publish
37+
claude-code-transcripts
3838
```
3939

4040
This shows an interactive picker to select a session, generates HTML, and opens it in your default browser.
@@ -59,15 +59,15 @@ The generated output includes:
5959
Local Claude Code sessions are stored as JSONL files in `~/.claude/projects`. Run with no arguments to select from recent sessions:
6060

6161
```bash
62-
claude-code-publish
62+
claude-code-transcripts
6363
# or explicitly:
64-
claude-code-publish local
64+
claude-code-transcripts local
6565
```
6666

6767
Use `--limit` to control how many sessions are shown (default: 10):
6868

6969
```bash
70-
claude-code-publish local --limit 20
70+
claude-code-transcripts local --limit 20
7171
```
7272

7373
### Web sessions
@@ -76,13 +76,13 @@ Import sessions directly from the Claude API:
7676

7777
```bash
7878
# Interactive session picker
79-
claude-code-publish web
79+
claude-code-transcripts web
8080

8181
# Import a specific session by ID
82-
claude-code-publish web SESSION_ID
82+
claude-code-transcripts web SESSION_ID
8383

8484
# Import and publish to gist
85-
claude-code-publish web SESSION_ID --gist
85+
claude-code-transcripts web SESSION_ID --gist
8686
```
8787

8888
On macOS, API credentials are automatically retrieved from your keychain (requires being logged into Claude Code). On other platforms, provide `--token` and `--org-uuid` manually.
@@ -92,8 +92,8 @@ On macOS, API credentials are automatically retrieved from your keychain (requir
9292
Convert a specific session file directly:
9393

9494
```bash
95-
claude-code-publish json session.json -o output-directory/
96-
claude-code-publish json session.jsonl --open
95+
claude-code-transcripts json session.json -o output-directory/
96+
claude-code-transcripts json session.jsonl --open
9797
```
9898

9999
When using [Claude Code for web](https://claude.ai/code) you can export your session as a `session.json` file using the `teleport` command.
@@ -104,20 +104,20 @@ Use `-a/--output-auto` to automatically create a subdirectory named after the se
104104

105105
```bash
106106
# Creates ./session_ABC123/ subdirectory
107-
claude-code-publish web SESSION_ABC123 -a
107+
claude-code-transcripts web SESSION_ABC123 -a
108108

109109
# Creates ./transcripts/session_ABC123/ subdirectory
110-
claude-code-publish web SESSION_ABC123 -o ./transcripts -a
110+
claude-code-transcripts web SESSION_ABC123 -o ./transcripts -a
111111
```
112112

113113
### Publishing to GitHub Gist
114114

115115
Use the `--gist` option to automatically upload your transcript to a GitHub Gist and get a shareable preview URL:
116116

117117
```bash
118-
claude-code-publish --gist
119-
claude-code-publish web --gist
120-
claude-code-publish json session.json --gist
118+
claude-code-transcripts --gist
119+
claude-code-transcripts web --gist
120+
claude-code-transcripts json session.json --gist
121121
```
122122

123123
This will output something like:
@@ -132,7 +132,7 @@ The preview URL uses [gistpreview.github.io](https://gistpreview.github.io/) to
132132
Combine with `-o` to keep a local copy:
133133

134134
```bash
135-
claude-code-publish json session.json -o ./my-transcript --gist
135+
claude-code-transcripts json session.json -o ./my-transcript --gist
136136
```
137137

138138
**Requirements:** The `--gist` option requires the [GitHub CLI](https://cli.github.com/) (`gh`) to be installed and authenticated (`gh auth login`).
@@ -142,7 +142,7 @@ claude-code-publish json session.json -o ./my-transcript --gist
142142
Use the `--json` option to include the original session file in the output directory:
143143

144144
```bash
145-
claude-code-publish json session.json -o ./my-transcript --json
145+
claude-code-transcripts json session.json -o ./my-transcript --json
146146
```
147147

148148
This will output:
@@ -156,10 +156,10 @@ This is useful for archiving the source data alongside the HTML output.
156156

157157
To contribute to this tool, first checkout the code. You can run the tests using `uv run`:
158158
```bash
159-
cd claude-code-publish
159+
cd claude-code-transcripts
160160
uv run pytest
161161
```
162162
And run your local development copy of the tool like this:
163163
```bash
164-
uv run claude-code-publish --help
164+
uv run claude-code-transcripts --help
165165
```

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
2-
name = "claude-code-publish"
2+
name = "claude-code-transcripts"
33
version = "0.2"
4-
description = "Convert a Claude Code for web session.json to HTML"
4+
description = "Convert Claude Code session files to HTML transcripts"
55
readme = "README.md"
66
license = "Apache-2.0"
77
authors = [
@@ -18,13 +18,13 @@ dependencies = [
1818
]
1919

2020
[project.urls]
21-
Homepage = "https://github.com/simonw/claude-code-publish"
22-
Changelog = "https://github.com/simonw/claude-code-publish/releases"
23-
Issues = "https://github.com/simonw/claude-code-publish/issues"
24-
CI = "https://github.com/simonw/claude-code-publish/actions"
21+
Homepage = "https://github.com/simonw/claude-code-transcripts"
22+
Changelog = "https://github.com/simonw/claude-code-transcripts/releases"
23+
Issues = "https://github.com/simonw/claude-code-transcripts/issues"
24+
CI = "https://github.com/simonw/claude-code-transcripts/actions"
2525

2626
[project.scripts]
27-
claude-code-publish = "claude_code_publish:main"
27+
claude-code-transcripts = "claude_code_transcripts:main"
2828

2929
[build-system]
3030
requires = ["uv_build>=0.9.7,<0.10.0"]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
# Set up Jinja2 environment
2222
_jinja_env = Environment(
23-
loader=PackageLoader("claude_code_publish", "templates"),
23+
loader=PackageLoader("claude_code_transcripts", "templates"),
2424
autoescape=True,
2525
)
2626

@@ -984,7 +984,7 @@ def generate_html(json_path, output_dir, github_repo=None):
984984

985985

986986
@click.group(cls=DefaultGroup, default="local", default_if_no_args=True)
987-
@click.version_option(None, "-v", "--version", package_name="claude-code-publish")
987+
@click.version_option(None, "-v", "--version", package_name="claude-code-transcripts")
988988
def cli():
989989
"""Convert Claude Code session JSON to mobile-friendly HTML pages."""
990990
pass
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Pytest configuration and fixtures for claude-code-publish tests."""
1+
"""Pytest configuration and fixtures for claude-code-transcripts tests."""
22

33
import pytest
44

@@ -12,5 +12,5 @@ def mock_open(url):
1212
opened_urls.append(url)
1313
return True
1414

15-
monkeypatch.setattr("claude_code_publish.webbrowser.open", mock_open)
15+
monkeypatch.setattr("claude_code_transcripts.webbrowser.open", mock_open)
1616
return opened_urls

0 commit comments

Comments
 (0)