Repository navigation
v2.0.4 - support both subscribe styles
·
34 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Fixed
- V2 host E2E:
v2Setuponly handledsubscribe({signal})=>AsyncIterable(promise) soopencode2 v0.0.0-beta-18999withsubscribe("session.idle")=>Stream(effect) stayed idle. Madev2Setuptry both viaresolveV2Iterable/trySubscribeEffect/isAsyncIterable/runV2EventLoopextracted to keep complexity <20. tryCreateV2Pluginnow tries both"@opencode-ai/plugin"(setup) and"@opencode-ai/plugin/effect"(effect) defines, fallback is{id, setup, effect}so both hosts pass.- Verified: mock effect and promise both PASS,
npx eslint .0,npx tsc --noEmit0,bun test85 pass,dist 24.13KB.
Full Changelog: v2.0.3...v2.0.4