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