v0.6.0
v2 SDK Migration & Agent Mode Enforcement
Migrates to OpenCode SDK v2 (@opencode-ai/plugin@^1.3.0, @opencode-ai/sdk@^1.3.0) and adds server-enforced agent mode restrictions for teammates.
- Upgrade to v2 SDK with flat parameter style and new
wrapThrowingClientadapter - Plan/explore agents now get server-enforced permission deny rules for edit/bash on
session.create - Explicit allow rules for all 6 team tools so read-only agents can still communicate
- Remove deprecated
toolsfield frompromptAsync(merged into permissions in v2) - New
client-shape.test.tssmoke test to catch SDK method renames
Known limitation
Teammate messages may switch the lead's agent mode (e.g. plan → build). This is a server-level behavior that the plugin cannot override. The lead's mode restores when the user sends their next message. Documented in README.
Full Changelog: v0.5.1...v0.6.0