@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.js CHANGED
@@ -437,13 +437,12 @@ var AGENT_REGISTRY = {
437
437
  displayName: "opencode",
438
438
  binaryName: "opencode",
439
439
  enabled: true,
440
- // opencode auth = `opencode auth login` (multi-provider; API keys AND
441
- // provider OAuth), which writes a login-state file at
442
- // ~/.local/share/opencode/auth.json. The CLI captures that blob (like
443
- // claude/codex capture their local login), so the vaulted credential is
444
- // the auth.json — an `oauth_token`-kind login blob, not a bare api_key.
445
- supportedAuthKinds: ["oauth_token"],
446
- preferredAuthKind: "oauth_token",
440
+ // opencode is model-AGNOSTIC and AUTO-DETECTS provider API keys from env
441
+ // vars (ANTHROPIC_API_KEY / OPENAI_API_KEY / GEMINI_API_KEY / …) — same
442
+ // model as aider. So the credential is the user's OWN provider key; we set
443
+ // the matching env var (detected by prefix) at deploy. api_key only.
444
+ supportedAuthKinds: ["api_key"],
445
+ preferredAuthKind: "api_key",
447
446
  // Not listed by `headroom init --global` (claude/codex/copilot only) — native.
448
447
  headroomWrappable: false,
449
448
  // Native ACP server: `opencode acp` (stdio JSON-RPC).