v1.0.111 — routePreToolUse refactor (#423) + CI test alignment
A focused follow-up on top of v1.0.110. Two changes, both small:
Changes
refactor(opencode) — use platform parameter (#423) — by @mikij
routePreToolUse was being called with getPlatform() even though platform was already in scope at opencode-plugin.ts:199. The PR replaces the redundant call with the existing variable, keeping platform handling consistent throughout the plugin's hot path. +1/-1, no behaviour change.
fix(tests) — align rebuild test with v1.0.110 heal-helper delegation
The cli.ts upgrade rebuilds better-sqlite3 native addon after deps install test still searched for the literal "rebuild", "better-sqlite3" npmExecFile array form. v1.0.110 replaced that raw npm rebuild with an existsSync pre-check + delegation to the shared healBetterSqlite3Binding helper, so the literal string was no longer present at the call site. The structural test failed CI on all 3 OSes for any PR opened after v1.0.110, including #423.
Test now accepts EITHER form (legacy npm rebuild OR new heal helper call), preserves the original intent (refresh step sits between deps install and global install), and uses min(healIdx, rebuildIdx) so the helper-missing fallback path is also valid.
Verification
- All 3 OS CI green on the merged commit (verified before tagging)
- 0 functional changes for users on macOS / Linux / Windows
- 14 adapters unaffected; MCP surface unchanged
Upgrade
/ctx-upgrade # in Claude Code
# or
npm install -g context-mode@latest