Skip to content

chore(opencode): bump iii-sdk to 0.20.0 - #359

Merged
guibeira merged 2 commits into
mainfrom
chore/sdk-0.20-opencode
Jun 27, 2026
Merged

chore(opencode): bump iii-sdk to 0.20.0#359
guibeira merged 2 commits into
mainfrom
chore/sdk-0.20-opencode

Conversation

@guibeira

@guibeira guibeira commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

Bump iii-sdk ^0.19.2 → ^0.20.0. ISdk → IIIClient (only renamed symbol used). No @iii-dev/helpers needed. Build, typecheck, biome lint, 64 vitest tests green; surface parity (7 functions) 1:1; --assert-typed-schemas exits 0.

Summary by CodeRabbit

  • Bug Fixes

    • Improved startup and configuration handling for more reliable app launches and refreshes.
    • Preserved runtime settings more consistently when configuration updates are applied.
  • Chores

    • Updated a bundled SDK dependency to a newer version.
    • Aligned internal integrations with the latest client interface for better compatibility.

ISdk -> IIIClient (only renamed symbol used). No @iii-dev/helpers needed.
Build, typecheck, lint, 64 tests green; surface parity (7 functions) 1:1; typed.
@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
workers Ready Ready Preview, Comment Jun 27, 2026 12:56am
workers-tech-spec Ready Ready Preview, Comment Jun 27, 2026 12:56am

Request Review

@coderabbitai

coderabbitai Bot commented Jun 27, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 5e63f5d4-524f-493f-9df9-0232aff35b41

📥 Commits

Reviewing files that changed from the base of the PR and between f434df0 and 88856ea.

⛔ Files ignored due to path filters (1)
  • opencode/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (6)
  • opencode/package.json
  • opencode/src/configuration.ts
  • opencode/src/events.ts
  • opencode/src/index.ts
  • opencode/src/run.ts
  • opencode/src/state.ts

📝 Walkthrough

Walkthrough

The PR updates iii-sdk to ^0.20.0, switches opencode type usage from ISdk to IIIClient, and changes worker bootstrap config seeding to use a resolved bootConfig.

Changes

iii-sdk 0.20 client update

Layer / File(s) Summary
SDK bump and client typing
opencode/package.json, opencode/src/configuration.ts, opencode/src/events.ts, opencode/src/run.ts, opencode/src/state.ts
iii-sdk is bumped to ^0.20.0, and these modules switch imported SDK types and exported iii parameters from ISdk to IIIClient.
Bootstrap config merge
opencode/src/index.ts
Bootstrap now builds bootConfig with resolved engine_url and opencode_executable, registers config from that object, and preserves bootConfig.engine_url during runtime merges.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • iii-hq/workers#328: Uses the same iii-sdk 0.20.0 migration path and updates code to the newer client type surface.
  • iii-hq/workers#356: Also updates iii-sdk to 0.20.0 and switches code to the newer client API.
  • iii-hq/workers#352: Migrates client/error type usage alongside the iii-sdk 0.20.0 dependency bump.

Suggested reviewers

  • sergiofilhowz

Poem

🐇 I nibbled types at dawn and light,
bootConfig hopped into the right.
Old paws traded ISdk for new,
Fresh IIIClient sprang into view.
The stream now thumps a cheerful beat.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is concise and accurately summarizes the main change: upgrading iii-sdk to 0.20.0 in opencode.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/sdk-0.20-opencode

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.

@github-actions

Copy link
Copy Markdown
Contributor

skill-check — worker

0 verified, 27 skipped (no docs/).

Layer Result
structure
vale
ai
render

Four for four. Nicely done.

@guibeira
guibeira merged commit 0ce6985 into main Jun 27, 2026
13 checks passed
@guibeira
guibeira deleted the chore/sdk-0.20-opencode branch June 27, 2026 01:00
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