Skip to content

Add ember history export command #38

@niklasmarderx

Description

@niklasmarderx

What

Add a command to export chat history as JSON or Markdown.

Why

Users want to save interesting conversations, share them, or analyze their AI usage patterns.

How

  1. ember-storage already stores conversations in SQLite
  2. Add a new HistoryAction::Export variant in crates/ember-cli/src/main.rs
  3. Query conversations from storage
  4. Format as JSON (--json) or Markdown (--markdown, default)
  5. Output to stdout or file (--output path)
ember history export                    # last conversation as markdown
ember history export --json             # as JSON
ember history export --all --output dir # all conversations to directory

Reference

crates/ember-storage/src/lib.rs has the conversation storage API.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions