Skip to content

Add OpenCode source parsing support#9

Closed
KNN-07 wants to merge 3 commits intopeteromallet:mainfrom
KNN-07:feat/opencode-source-support
Closed

Add OpenCode source parsing support#9
KNN-07 wants to merge 3 commits intopeteromallet:mainfrom
KNN-07:feat/opencode-source-support

Conversation

@KNN-07
Copy link
Contributor

@KNN-07 KNN-07 commented Feb 26, 2026

Summary

  • add opencode as a first-class source in parser discovery and session parsing
  • parse OpenCode SQLite session/message/part records into DataClaw's normalized export shape, including model and token stats
  • update CLI source options/messages and add tests for OpenCode discovery/parsing and source-choice handling

Verification

  • PYTHONPATH=. pytest (245 passed)

@KNN-07 KNN-07 force-pushed the feat/opencode-source-support branch from e30759f to ac3af42 Compare February 26, 2026 01:37
peteromallet added a commit that referenced this pull request Feb 26, 2026
Adds OpenCode as a source, parsing its SQLite database for sessions,
messages, and parts. Includes discovery, project naming, token stats,
and tool call extraction. Updates CLI source options and tests.

Based on PR #9 by KNN-07, with conflict resolution against Gemini
and subagent support on main.

Co-Authored-By: Nguyen Khac Trung Kien <KNN-07@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@peteromallet
Copy link
Owner

Thanks @KNN-07! Merged via #10 which rebases your work onto current main (after Gemini and subagent PRs landed) and resolves all conflicts. You're credited as co-author on the commit. Nice clean implementation — the SQLite parsing and OpenCode schema handling are well done.

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.

2 participants