npm install
npx tsc --noEmit- TypeScript strict mode, ESNext target
- No build step — Bun loads
.tsfiles directly - Use
import typefor type-only imports - Use
Record<string, string>for key-value maps - Never throw in plugin hooks — all errors must be caught silently
- Never overwrite existing environment variables
- No external dependencies beyond
@opencode-ai/pluginand Node.js built-ins - Source code lives in
src/, never inplugins/