mirror of
https://github.com/waybarrios/opencode-power-pack.git
synced 2026-11-19 02:16:19 +00:00
- Drop the @opencode/plugin dependency: Plugin.define is an identity
function, and both hosts load a plain { id, setup, server } object.
This removes ~3,700 lockfile lines from every OpenCode 1 and 2 install.
- Remove the OpencodePowerPack named export. OpenCode 1.18.7+ uses the
default export's server() and never scans named exports when it exists.
- Derive the OpenCode 2 rulesets from the OpenCode 1 permission maps so
the read-only policy has a single source, and parse SKILL.md once.
- Build fresh agent definitions per hook call. OpenCode 2 appends global
rules to agent permissions in place, and the shared module array leaked
those rules between code-explorer and code-architect.
- Un-export eval runner helpers that nothing imports.