mirror of
https://github.com/waybarrios/opencode-power-pack.git
synced 2026-11-18 18:03:43 +00:00
OpenCode 1 calls the default export's server() hook while OpenCode 2 calls setup(), so a single module can support both: - Keep the original config hook (config.skills.paths and config.agent) and expose it through server() plus the legacy OpencodePowerPack named export for releases that only discover named exports. - Keep the V2 skill and agent transforms for OpenCode 2 unchanged. - Build both the V1 permission maps and the V2 ordered rulesets from the same SKILL.md frontmatter. - Extend the smoke test to verify both hosts: the OpenCode 1 path asserts skill-derived commands and agent permissions from the REST API, and the OpenCode 2 path keeps the verifier plugin. - Run the smoke matrix on 1.18.7 and 2.0.14, and advertise >=1.18.7.