Tags: danielxxomg/opencode-commandcode-provider
Tags
Auto-register provider and models via plugin config hook The plugin now uses a 'config' hook to auto-register the commandcode provider with all models from models.json at startup. This means 'opencode plugin commandcode-go-opencode-provider' is now a single command that sets up everything — no manual provider config needed. Changes: - plugin.ts: add config() hook that injects npm, name, env, and models - plugin.ts: reads models.json at runtime to populate model list - package.json: updated exports format to match opencode-claude-auth - tests: added 4 tests for config hook behavior - README: simplified Quick Start to 3 steps (install, connect, model)
Codebase cleanup: tests, type safety, dead code, docs - Add 7 unit tests for createCommandCode() public API (index.ts) - Refactor type guards in convert.ts: shared hasType() helper, no more as any - Replace stale TODOs with clear comments explaining intentional stubs - Remove unused imports from all test files (describe, afterEach, sseEvents, mock) - Add 'intentionally silent' comments to all empty catch blocks - Add engines field to package.json (bun >=1.0.0) - 74 tests passing (was 67)