Skip to content

Comments

Add publish subcommand for existing transcript directories#78

Open
DarkaMaul wants to merge 1 commit intosimonw:mainfrom
DarkaMaul:publish-subcommand
Open

Add publish subcommand for existing transcript directories#78
DarkaMaul wants to merge 1 commit intosimonw:mainfrom
DarkaMaul:publish-subcommand

Conversation

@DarkaMaul
Copy link

I exported a (local) transcript of a session, that I later polluted with additional prompts. Since I wanted to share my already generated transcript, I needed a way to generate the gist from the directory.

This PR adds a publish command to the CLI - that publishes an existing directory.

That could also be useful for a second set of review before hitting publish on a session (i.e. checking they are no secrets, or cleaning some of the output).

Adds a `publish` CLI command that uploads an existing directory of HTML
transcript files to a GitHub Gist. Makes `inject_gist_preview_js`
idempotent so re-publishing the same directory is safe.

Closes simonw#59

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant