Plugin package guide: Effect and Promise API twins, with Effect domains extending the corresponding client interfaces and adding only plugin-context functions. Read before changing the plugin package.
Plugin Package Guide
- The plugin package has two versions: Effect and Promise.
- In the Effect version, every domain must extend the corresponding Effect API client interface from
@opencode/client/effect/api. - Do not redefine functions that already exist on the Effect API client interface.
- Plugin domains add only the additional functions that make sense in the plugin context.