index.js 511 B

12345678
  1. // Root entrypoint for OpenCode v2 directory-form plugin registration.
  2. //
  3. // v2 hosts (>= beta-18743) 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. `"plugin": ["~/superpowers"]` or a `node_modules/superpowers` path).
  8. export { default } from "./.opencode/plugins/superpowers.js";