Skip to content

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 16 Sep 19:48
· 32 commits to master since this release

Changed

  • Load-time installation rebuilt to the scope-aware, manifest-gated model. plugin.ts#config() now detects where the plugin is registered — global config, repo .opencode/opencode.json, or a repo-root opencode.json — using semantic, @latest-aware name matching (RegistrationDetector, src/registration.ts), then ensures the skills only in the detected scope(s). Detection is read-only.
  • Manifest-gated idempotency shared by the CLI and the load path. Each install writes <configBase>/aurelia-expert.manifest.json with per-file sha256 hashes. Present manifest + matching version + matching hashes → zero-write no-op; version drift → upgrade that scope only; consumer-modified files → skip + warn at load, overwrite only with CLI --force. .version markers are obsolete and reconciled/removed on first manifest-era install.

Fixed

  • Cross-scope leak and dead fast path in the load hook. The old ScopeResolver keyed off the launch directory (which opencode always sets to the consumer repo), and the local fast path checked a marker at <repo>/skills/… while the installer wrote to <repo>/.opencode/skills/… — so every start reinstalled unconditionally. Hard invariants now enforced and tested: no cross-scope writes, the hook never edits plugin arrays, root opencode.json migration is CLI-only, unparseable configs abort with a warning and are preserved byte-for-byte (never rewritten from {}), and plugin references are written canonically as aurelia-expert@latest with semantic dedup.