index.js 522 B

12345678
  1. // Root entrypoint for OpenCode v2 directory-form plugin registration.
  2. //
  3. // OpenCode V2 hosts (2.0.4 or later) require config plugin entries to be directories
  4. // with an index entrypoint (`index.js`) and reject bare file paths
  5. // ("configured plugin path must be a directory"). npm/git package installs
  6. // resolve via package.json `main`; this file only serves the directory form
  7. // (e.g. `"plugins": ["~/superpowers"]` or a `node_modules/superpowers` path).
  8. export { default } from "./.opencode/plugins/superpowers.js";