Repository navigation
Tags
Tags
fix(adapter): route every meta request through the adapter The adapter hooks were gated on the V2 Muse OAuth credential, so an existing meta API key kept sending requests straight to api.meta.ai and still received the client restriction. The model-request hook now always points the meta route at the adapter and the HTTP hook always rewrites the assembled request onto it; the V2 OAuth token only overrides Authorization when that sign-in is active. Add regression tests for an API-key and a non-Muse credential, document that the adapter needs opencode 2.2.4 (2.2.0 loads the plugin without calling its setup), and bump the package to 0.5.1.
feat(adapter): route subscription inference through the wire adapter Add the loopback wire adapter for the V2 plugin API, set the per-request base URL and rewrite the assembled request when the AI-SDK route ignores it. The adapter aliases the 40-name Muse builtin collision set, restores names in responses, and retries with every tool aliased if the gate still refuses. Document the wire rules in ADAPTER_CONTRACT.md v3, update the V1 limitation, AUTH_CONTRACT, CITATION and README, and bump the package to 0.5.0.
docs: explain Meta's client restriction Clarify that a successful sign-in does not guarantee model access, that Meta can reject subscription requests from other clients, and that signing in again does not remove the restriction. Bump the package to 0.4.1.
fix(auth): use host credential store and prepare v0.4.0 - Prefer the OpenCode auth store in the V1 loader, with the legacy cache as fallback. - Log sanitized login failures; reject V2 with a descriptive error. - Use a realistic credential expiry. - Document V1/V2 storage and removal; pin the auth contract. - Bump to 0.4.0.
feat: opencode v2 plugin format (default export with id/server/setup)
opencode v2 loads plugins from the module's default export, which must
carry an id and the server plugin function; v1 named exports are no
longer accepted (PluginModule.LoadError on every startup). The same
shape is accepted by opencode 1.18.29+, so no compatibility break for
recent 1.x installs.
- default export { id, server, setup() }
- devDependency @opencode-ai/plugin ^1.19.0 (v2-aligned types)
fix(security): never persist the OAuth access token (v0.1.2) (#3) writeCache now persists only apiKey/accountId/email; the OAuth token stays in memory (nothing ever read it back). Test asserts absence from the raw cache file. README documents the stored fields.