opencode 2.x changed the plugin API (a plugin must export { id, setup }), so
the 1.x plugin (plugins/arka-ai.ts) no longer loads there and the Arka-AI
provider disappeared ('failed to load plugin').
- install-arka-provider.sh / .ps1 now detect the generation (opencode --version:
'1.x.y' vs 'opencode v2.x.y'; --gen / -Gen override):
* 1.x -> install the plugin (dynamic catalog), as before;
* 2.x -> write a static providers["Arka-AI"] block
(package @opencode/ai/providers/openai-compatible, settings.baseURL,
settings.apiKey, models from catalog.json) and disable any stale 1.x plugin.
- --refresh / -Refresh regenerates the 2.x model list (infers generation 2 from
the installed config); 1.x still clears the cache.
- README + companion skill updated with the 1.x/2.x table, detection, and the
providers schema.
Verified: gen detection, gen1 plugin write, gen2 providers write (117 models),
merge preserves unrelated keys, stale plugin disabled, refresh keeps the key.