Skip to content

fix: align @next preview with OpenCode beta - #76

Merged
mynameistito merged 1 commit into
opencode-v2from
fix/opencode-v2-next-install
Aug 24, 2026
Merged

fix: align @next preview with OpenCode beta#76
mynameistito merged 1 commit into
opencode-v2from
fix/opencode-v2-next-install

Conversation

@mynameistito

@mynameistito mynameistito commented Aug 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Align OpenTUI and Solid peers with OpenCode beta 0.0.0-beta-18027.
  • Use the real @opencode-ai/plugin/tui Plugin.define and Context APIs.
  • Include the plugin API as a runtime dependency for isolated npm installation.
  • Add a prerelease changeset and update the lockfile.

Validation

  • bun run typecheck
  • bun test
  • bun run check
  • bun run build
  • bun run test:package

Fixes the dependency-tree failure seen with: opencode2 plugin add oc-usage-limits-plugin@next


Summary by cubic

Aligns the @next usage-limits plugin with the OpenCode beta TUI API so opencode2 plugin add oc-usage-limits-plugin@next installs cleanly. Old: local Plugin.define/custom context and a dev-only plugin dep. New: real @opencode-ai/plugin/tui Plugin.define/Context and a runtime @opencode-ai/plugin dep; peers match OpenTUI 0.5.7.

  • Replaces local shims in src/index.ts and src/plugin.tsx with @opencode-ai/plugin/tui; updates tests to use Context.
  • Adds runtime dependency @opencode-ai/plugin@0.0.0-beta-18027; bumps peers to @opentui/core@0.5.7, @opentui/solid@0.5.7, and solid-js@1.9.12; updates lockfile and adds a patch changeset.

Bolded rollout and migration details:

  • Hosts must satisfy peer ranges: @opentui/core@0.5.7, @opentui/solid@0.5.7, solid-js@1.9.12.
  • No plugin UI behavior change; only adoption of the official TUI API and dependency realignment.

Written for commit 41ea91f. Summary will update on new commits.

Review in cubic

@changeset-bot

changeset-bot Bot commented Aug 24, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 41ea91f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
oc-usage-limits-plugin Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​opencode-ai/​plugin@​0.0.0-tui-v2-202606261840 ⏵ 0.0.0-beta-180279910070 +197100
Updated@​opentui/​core@​0.5.6 ⏵ 0.5.79510092 +198100
Updatedsolid-js@​1.9.15 ⏵ 1.9.12100 +110010096100
Updated@​opentui/​keymap@​0.5.6 ⏵ 0.5.71001009998 +1100
Updated@​opentui/​solid@​0.5.6 ⏵ 0.5.7100 +110099 +198 +1100

View full report

@socket-security

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
Obfuscated code: npm rimraf is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: package.jsonnpm/@opencode-ai/plugin@0.0.0-beta-18027npm/rimraf@5.0.10

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/rimraf@5.0.10. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: fac9d991-44c2-4509-8fdf-9b1c263a0234

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mynameistito
mynameistito merged commit aa77f46 into opencode-v2 Aug 24, 2026
11 of 12 checks passed
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