@codeam/shared 2.61.50 → 2.61.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -355,13 +355,12 @@ var AGENT_REGISTRY = {
355
355
  displayName: "opencode",
356
356
  binaryName: "opencode",
357
357
  enabled: true,
358
- // opencode auth = `opencode auth login` (multi-provider; API keys AND
359
- // provider OAuth), which writes a login-state file at
360
- // ~/.local/share/opencode/auth.json. The CLI captures that blob (like
361
- // claude/codex capture their local login), so the vaulted credential is
362
- // the auth.json — an `oauth_token`-kind login blob, not a bare api_key.
363
- supportedAuthKinds: ["oauth_token"],
364
- preferredAuthKind: "oauth_token",
358
+ // opencode is model-AGNOSTIC and AUTO-DETECTS provider API keys from env
359
+ // vars (ANTHROPIC_API_KEY / OPENAI_API_KEY / GEMINI_API_KEY / …) — same
360
+ // model as aider. So the credential is the user's OWN provider key; we set
361
+ // the matching env var (detected by prefix) at deploy. api_key only.
362
+ supportedAuthKinds: ["api_key"],
363
+ preferredAuthKind: "api_key",
365
364
  // Not listed by `headroom init --global` (claude/codex/copilot only) — native.
366
365
  headroomWrappable: false,
367
366
  // Native ACP server: `opencode acp` (stdio JSON-RPC).