Commit Graph
2 Commits
Author SHA1 Message Date
ixoblakp ed34998cb7 feat(opencode): support opencode 2.x + generation-aware installer
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.
2026-10-27 12:20:31 +03:00
ixoblakp cb17ce8d2a feat(opencode): Windows PowerShell installer and Desktop key file
CLI and Desktop share %USERPROFILE%\.config\opencode. Persist the API
key in .arka-api-key so GUI apps do not need a login-shell export.
2026-08-27 18:12:48 +03:00