Commit Graph
6 Commits
Author SHA1 Message Date
Wayner Barrios fccd8763a8 Update the skills for OpenCode 2 and keep OpenCode 1 support 2026-10-19 01:48:34 -04:00
Wayner Barrios a3523bc08f fix(opencode): generate smoke server password at runtime 2026-09-30 01:47:03 -04:00
Yefta Sutanto 422d54c592 feat(opencode): adapt the plugin to OpenCode 1 and 2 from one entrypoint
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.
2026-09-23 20:00:00 +10:00
Yefta Sutanto 3b04f7381d feat(opencode): port the plugin and behavioral evals to the OpenCode 2 plugin API
The OpenCode 2 plugin API replaces the V1 config hook, so the shipped
plugin no longer loads on 2.x. Port every OpenCode surface in one change:

- Register all bundled skills and the three specialist subagents through
  ctx.skill.transform and ctx.agent.transform, with ordered V2 permission
  rulesets and frontmatter-stripped skill content.
- Move the shared definitions helper to .opencode/lib so the plugin
  loader does not discover it as a plugin entrypoint.
- Rewrite the behavioral eval runner around opencode serve, the V2
  session API, and skill attachments; keep the grading, redaction, and
  snapshot evidence model unchanged.
- Port the smoke test to @opencode/cli 2.0.14 and verify registration
  through a companion plugin, and update CI to install dependencies.
- Require OpenCode >= 2.0.0 and depend on @opencode/plugin ^2.0.14.
2026-09-23 18:20:17 +10:00
Wayner Barrios 60b8635fbf Fix opencode-smoke race: drop Connection:close, add retry
Pairing Connection:close with the now-large /command response (grows
with every skill in the pack) reproducibly reset the socket mid-body
in undici once the pack passed ~50 skills. Verified locally: crashed
3/3 before, passed 3/3 after.
2026-08-02 16:03:06 -04:00
Wayner Barrios c753cd35ad Adopt native skill discovery 2026-07-27 14:32:22 -04:00