superpowers/index.js
Drew Ritter 034fae28cd docs(opencode): fix pin example, local-path examples, and V2 log troubleshooting
Restore the version-pin example for both config keys and state the V2
constraint (the pinned ref must include OpenCode V2 support). Replace the
`~/...` local-package examples with absolute paths: OpenCode does not expand
`~`, and a tilde entry is installed as a package spec rather than loaded as a
directory. Point V2 troubleshooting at `opencode run --standalone
--print-logs`, since plugin logs are server-role and hidden without
`--standalone`. Describe where the bootstrap lands when native compaction
retains user messages under the default keep budget.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-17 20:52:40 -07:00

9 lines
536 B
JavaScript

// Root entrypoint for OpenCode v2 directory-form plugin registration.
//
// OpenCode V2 hosts (2.0.4 or later) require config plugin entries to be directories
// with an index entrypoint (`index.js`) and reject bare file paths
// ("configured plugin path must be a directory"). npm/git package installs
// resolve via package.json `main`; this file only serves the directory form,
// an absolute path such as `"plugins": ["/path/to/superpowers"]` (`~` is not
// expanded).
export { default } from "./.opencode/plugins/superpowers.js";