Skip to content

feat: add traul get command for thread retrieval#14

Merged
dandaka merged 6 commits intomainfrom
feat/get-command
Mar 18, 2026
Merged

feat: add traul get command for thread retrieval#14
dandaka merged 6 commits intomainfrom
feat/get-command

Conversation

@dandaka
Copy link
Copy Markdown
Owner

@dandaka dandaka commented Mar 18, 2026

Summary

  • New traul get <thread-id> command to retrieve full conversation threads chronologically
  • traul get --date 2026-03-10 to list all threads from a given day
  • Search results now display [thread:abc123...] in text output and thread_id in JSON output

Changes

  • src/commands/get.ts — new command implementation (~54 lines)
  • src/db/queries.tsGET_THREAD and GET_THREADS_BY_DATE queries
  • src/db/database.tsgetThread() and getThreadsByDate() methods
  • src/index.ts — register get command
  • src/lib/formatter.ts — show thread_id in text output
  • src/commands/search.ts — include thread_id in JSON output

Test plan

  • traul get <known-thread-id> returns full conversation
  • traul get --date 2026-03-18 returns threads from today
  • traul get --json <thread-id> returns valid JSON
  • traul search "query" shows thread IDs in output
  • traul search --json "query" includes thread_id field
  • traul get with no args shows usage error

🤖 Generated with Claude Code

dandaka and others added 6 commits March 18, 2026 13:19
Adds a new `get` command that retrieves complete conversation threads
by thread_id, plus a --date option to list all threads from a given day.
Also exposes thread_id in search results (text and JSON output) so users
can copy it for use with `traul get`.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dandaka dandaka merged commit c688541 into main Mar 18, 2026
1 check passed
@dandaka dandaka deleted the feat/get-command branch March 18, 2026 13:26
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