index.js 536 B

123456789
  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. // an absolute path such as `"plugins": ["/path/to/superpowers"]` (`~` is not
  8. // expanded).
  9. export { default } from "./.opencode/plugins/superpowers.js";