@codeam/shared 2.61.49 → 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
@@ -349,6 +349,22 @@ var AGENT_REGISTRY = {
349
349
  headroomWrappable: false,
350
350
  // Native ACP server: `kimi acp` (stdio JSON-RPC, answers `initialize`).
351
351
  acp: true
352
+ },
353
+ opencode: {
354
+ id: "opencode",
355
+ displayName: "opencode",
356
+ binaryName: "opencode",
357
+ enabled: true,
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",
364
+ // Not listed by `headroom init --global` (claude/codex/copilot only) — native.
365
+ headroomWrappable: false,
366
+ // Native ACP server: `opencode acp` (stdio JSON-RPC).
367
+ acp: true
352
368
  }
353
369
  };
354
370
  function getEnabledAgents() {
@@ -378,6 +394,7 @@ var LINKED_AGENT_IDS = [
378
394
  "gemini",
379
395
  "kimi",
380
396
  "omniroute",
397
+ "opencode",
381
398
  HOUSE_AGENT_ID
382
399
  ];
383
400
  function isLinkedAgentId(value) {
@@ -396,6 +413,9 @@ var PUBLIC_TO_INTERNAL = {
396
413
  coderabbit: "coderabbit",
397
414
  gemini: "gemini",
398
415
  kimi: "kimi",
416
+ // opencode is a real, distinct agent (its own binary + ACP server) — it does
417
+ // NOT map onto another runtime. Public id === internal id.
418
+ opencode: "opencode",
399
419
  // OmniRoute runs Claude Code under the hood, pointed at the user's OmniRoute
400
420
  // gateway (their vaulted base URL + token) instead of the house MiniMax
401
421
  // proxy. Same internal runtime as the house agent — `claude` — differing only
@@ -412,7 +432,8 @@ var INTERNAL_TO_PUBLIC = {
412
432
  aider: "aider",
413
433
  coderabbit: "coderabbit",
414
434
  gemini: "gemini",
415
- kimi: "kimi"
435
+ kimi: "kimi",
436
+ opencode: "opencode"
416
437
  };
417
438
  function isPublicToInternalKey(v) {
418
439
  return Object.prototype.hasOwnProperty.call(PUBLIC_TO_INTERNAL, v);