Skip to content

fix: respect brvPath parameter and add high-value tests (vitest)#7

Merged
ian-pascoe merged 2 commits into
mainfrom
fix/brv-path-and-tests
Apr 24, 2026
Merged

fix: respect brvPath parameter and add high-value tests (vitest)#7
ian-pascoe merged 2 commits into
mainfrom
fix/brv-path-and-tests

Conversation

@ian-pascoe
Copy link
Copy Markdown
Owner

This pull request introduces a patch release for the opencode-byterover plugin, focusing on improving configuration handling, adding high-value automated tests, and ensuring proper parameter passthrough to the underlying bridge. The update also includes minor dependency bumps and workflow/test script enhancements to improve reliability and maintainability.

Key changes:

Testing and Quality Assurance

  • Added a comprehensive Vitest-based test suite (src/index.test.ts) covering plugin configuration, recall, curation deduplication, and error handling. This suite ensures observable plugin behavior is robust and exposes a real bug in default options handling. ([[1]](https://github.com/ian-pascoe/opencode-byterover/pull/7/files#diff-258035e5968f6bf645400d417f310218d7d9a9a10606a3c34e7f55db193f58f3R1-R141), [[2]](https://github.com/ian-pascoe/opencode-byterover/pull/7/files#diff-5c8683f45d6c3d09b262c4859efef082fd4e4a4e1a4acc01b8bdd4d3e5c1fab8R1-R60))
  • Introduced a new pnpm test script and integrated it into CI and pre-commit hooks for automated verification. ([[1]](https://github.com/ian-pascoe/opencode-byterover/pull/7/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R33-R41), [[2]](https://github.com/ian-pascoe/opencode-byterover/pull/7/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L51-R53), [[3]](https://github.com/ian-pascoe/opencode-byterover/pull/7/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03fR46-R48), [[4]](https://github.com/ian-pascoe/opencode-byterover/pull/7/files#diff-d2bc4bbf14eadc292d84e0ef5f7a93115c23557f533809fc80b896934291529dR3), [[5]](https://github.com/ian-pascoe/opencode-byterover/pull/7/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R54))

Configuration and Bug Fixes

  • Fixed a bug where missing plugin options could cause failures by ensuring the plugin safely defaults to an empty config object using Config.safeParse(options ?? {}). ([[1]](https://github.com/ian-pascoe/opencode-byterover/pull/7/files#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80L6-R27), [[2]](https://github.com/ian-pascoe/opencode-byterover/pull/7/files#diff-5c8683f45d6c3d09b262c4859efef082fd4e4a4e1a4acc01b8bdd4d3e5c1fab8R1-R60))
  • Ensured the brvPath parameter is correctly respected and passed to the BrvBridge, along with other relevant configuration options. ([[1]](https://github.com/ian-pascoe/opencode-byterover/pull/7/files#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80L47-L56), [[2]](https://github.com/ian-pascoe/opencode-byterover/pull/7/files#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80L24-R36))

Dependency and Documentation Updates

  • Bumped @opencode-ai/plugin and @opencode-ai/sdk dependencies to ^1.14.24 and added vitest as a dev dependency. ([[1]](https://github.com/ian-pascoe/opencode-byterover/pull/7/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R33-R41), [[2]](https://github.com/ian-pascoe/opencode-byterover/pull/7/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L51-R53))
  • Updated documentation and metadata to reflect new test commands and clarify plugin configuration and usage. ([[1]](https://github.com/ian-pascoe/opencode-byterover/pull/7/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R54), [[2]](https://github.com/ian-pascoe/opencode-byterover/pull/7/files#diff-18d30e2301ac02f59da39d741c0b51a77126197f529acb297e4e0febd695265bR1-R5))

Context and Audit

  • Curated context and audit notes, including a summary of repository review findings and the outcomes of the new test suite, with reference to ongoing moderate audit advisories. ([[1]](https://github.com/ian-pascoe/opencode-byterover/pull/7/files#diff-754a1b97213f24b9a09cfe58d47d6743a40a346db0e5e0c1796a6b22d465abfdR1-R47), [[2]](https://github.com/ian-pascoe/opencode-byterover/pull/7/files#diff-5c8683f45d6c3d09b262c4859efef082fd4e4a4e1a4acc01b8bdd4d3e5c1fab8R1-R60), [[3]](https://github.com/ian-pascoe/opencode-byterover/pull/7/files#diff-af8375afa1723c9c45310f02518bc27aa88cddb53839b630a4c31f0ea1d4f8cdR1-R33))

These changes collectively improve plugin reliability, testability, and maintainability, while ensuring configuration and context handling are robust and well-documented.

@ian-pascoe ian-pascoe merged commit 78ce893 into main Apr 24, 2026
2 checks passed
@ian-pascoe ian-pascoe deleted the fix/brv-path-and-tests branch April 24, 2026 17:24
@github-actions github-actions Bot mentioned this pull request Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant