Repository navigation
v2.0.0 - BREAKING: v2 dual support
·
41 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
BREAKING: v2 dual support
This release adds dual V1/V2 compatibility for opencode-autopilot-logbook.
BREAKING
- V2 Plugin API:
DailyLogbookPlugin(V1) kept, plusPlugin.define({ id: "smapira.daily-logbook", setup(ctx) })for V2. Seedaily-logbook.tsAPI table forevent.data.sessionIDvsproperties,ctx.session.get({sessionID})vspath:{id},ctx.app.log→console.ctx.app.logdoes not exist in V2 (ctx.appis{name,version,channel}only) → replaced withconsole.warn/errorviaAppLogSinkctx.location.directoryreplacesdirectory- promise
subscribe({signal}) => AsyncIterablevs effectsubscribe(type):Stream
Added
DailyLogbookPluginV2+handleV2IdleEvent(testable extraction). Falls back to plain object on stable 1.18.x sobun teststays green;Plugin.defineon@opencode-ai/plugin@beta.AppLogSinkabstraction, 4 new V2 tests (85 pass total), 25.40KB bundle
Changed
package.jsonstays on^1.0.0onmain; switch tobetaon beta branch:npm i -D @opencode-ai/plugin@beta+npx opencode@beta- README: new
## Compatibilitysection (V1 stable / V2 beta dual support) withplugins: [{ package }]example .gitignore: keepdist/index.jstracked for npm publish
Migration
npm i -D @opencode-ai/plugin@beta # beta branch only
npx opencode@beta --version
opencode --standalone # beta
# opencode.json: { "plugins": [{ "package": "opencode-autopilot-logbook" }] }See CHANGELOG.md and documents/plans/dev/20260903_v2-compat.md for full migration notes. During beta the V2 API may still break.
Full Changelog: v1.2.0...v2.0.0