feat: add V1/V2 compatibility foundation and diagnostics - #29
Draft
AlaeddineMessadi wants to merge 1 commit into
Draft
AlaeddineMessadi wants to merge 1 commit into
AlaeddineMessadi wants to merge 1 commit into
Conversation
|
Interressing about this PR, wainting merge to test this MCP |
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.
OpenCode V2 changes session, input, permission and lifecycle contracts, so routing existing V1 tools directly to it cannot preserve their behavior. This adds typed V1/V2 adapters, backend detection, read-only diagnostics, normalized operations, durable V2 jobs and native MCP Tasks while preserving V1 support.
The capability manifest accounts for 87 tools plus resources/templates/prompts. V2 has 64 supported mappings, 22 intentional V1-only exceptions, and one upstream-blocked command operation. Unsupported calls fail before mutation. Setup/migration docs, generated compatibility references, production archive checks, and Ubuntu/macOS/Windows × Node 22/24 CI are included. Package metadata is prepared as
3.1.0-rc.1; nothing has been published.Validation
opencode-ai@1.18.31and@opencode/cli@2.0.6on both Node versions.Why this is a draft
opencode_command_executeremains blocked by missing V2 invocation/result correlation: [FEATURE]: V2 session.command invocation identity and result correlation anomalyco/opencode#49690. The original 65-supported-tool milestone gate is not met.See
plans/verification.mdfor exact evidence,plans/004-v2-writes-input.mdfor the unblock checklist, andMIGRATION.mdfor option and lifecycle limitations.