feat(provider): add OpenCodeProvider for discover command#1523
Open
TorratDev wants to merge 13 commits intortk-ai:developfrom
Open
feat(provider): add OpenCodeProvider for discover command#1523TorratDev wants to merge 13 commits intortk-ai:developfrom
TorratDev wants to merge 13 commits intortk-ai:developfrom
Conversation
Next Release
…master--components--rtk chore(master): release 0.37.0
fix(docs): user facing docs
…master--components--rtk chore(master): release 0.37.1
Next Release
…master--components--rtk chore(master): release 0.37.2
|
|
Collaborator
📊 Automated PR Analysis
SummaryAdds an OpenCodeProvider that reads session/command history from an OpenCode SQLite database, alongside a DiscoverProvider enum to select between Claude and OpenCode providers in the discover command. Also includes a UTF-8 char boundary helper fix and version bumps to 0.37.2. Review Checklist
Analyzed automatically by wshm · This is an automated analysis, not a human review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OpenCodeProviderstruct implementingSessionProvidertrait to read commands from OpenCode SQLite databaseDiscoverProviderenum indiscover::mod.rsto select between Claude and OpenCode providersOPENCODE_DB_PATHconstant tohooks::constants.rsTest plan
Tests added
test_opencode_discover_sessions_empty— empty DB returns no sessionstest_opencode_discover_sessions_with_filter— project filter substring matchingtest_opencode_discover_sessions_since_days— date filter with cutofftest_opencode_extract_tool_commands— extract bash tool from OpenCode JSON formattest_opencode_extract_multiple_tools— multiple tool calls ordered by timestamptest_opencode_extract_error_tool— error detection in tool outputtest_opencode_malformed_json_handling— graceful handling of invalid JSONtest_opencode_empty_directory_handling— NULL/empty directory filtering