@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.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +22 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -140,7 +140,7 @@ declare function getContextWindow(model: string | null): number;
|
|
|
140
140
|
*/
|
|
141
141
|
declare function tryGetContextWindow(model: string | null): number | undefined;
|
|
142
142
|
|
|
143
|
-
type AgentId = 'claude' | 'codex' | 'copilot' | 'coderabbit' | 'cursor' | 'aider' | 'gemini' | 'kimi';
|
|
143
|
+
type AgentId = 'claude' | 'codex' | 'copilot' | 'coderabbit' | 'cursor' | 'aider' | 'gemini' | 'kimi' | 'opencode';
|
|
144
144
|
type AgentAuthKind = 'oauth_token' | 'api_key' | 'setup_token';
|
|
145
145
|
/**
|
|
146
146
|
* The agent kinds Headroom (the token-compression proxy) can actually
|
|
@@ -273,7 +273,7 @@ declare const HOUSE_AGENT_SUBTITLE = "Included \u2014 no setup";
|
|
|
273
273
|
* endpoints and the mobile/web surfaces speak. The internal `AgentId`
|
|
274
274
|
* (`'claude' | 'codex' | …`) is what the runtimes / provisioning key on.
|
|
275
275
|
*/
|
|
276
|
-
type LinkedAgentId = 'claude_code' | 'codex' | 'cursor' | 'aider' | 'coderabbit' | 'gemini' | 'kimi' | 'omniroute' | typeof HOUSE_AGENT_ID;
|
|
276
|
+
type LinkedAgentId = 'claude_code' | 'codex' | 'cursor' | 'aider' | 'coderabbit' | 'gemini' | 'kimi' | 'omniroute' | 'opencode' | typeof HOUSE_AGENT_ID;
|
|
277
277
|
declare const LINKED_AGENT_IDS: readonly LinkedAgentId[];
|
|
278
278
|
declare function isLinkedAgentId(value: string): value is LinkedAgentId;
|
|
279
279
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -140,7 +140,7 @@ declare function getContextWindow(model: string | null): number;
|
|
|
140
140
|
*/
|
|
141
141
|
declare function tryGetContextWindow(model: string | null): number | undefined;
|
|
142
142
|
|
|
143
|
-
type AgentId = 'claude' | 'codex' | 'copilot' | 'coderabbit' | 'cursor' | 'aider' | 'gemini' | 'kimi';
|
|
143
|
+
type AgentId = 'claude' | 'codex' | 'copilot' | 'coderabbit' | 'cursor' | 'aider' | 'gemini' | 'kimi' | 'opencode';
|
|
144
144
|
type AgentAuthKind = 'oauth_token' | 'api_key' | 'setup_token';
|
|
145
145
|
/**
|
|
146
146
|
* The agent kinds Headroom (the token-compression proxy) can actually
|
|
@@ -273,7 +273,7 @@ declare const HOUSE_AGENT_SUBTITLE = "Included \u2014 no setup";
|
|
|
273
273
|
* endpoints and the mobile/web surfaces speak. The internal `AgentId`
|
|
274
274
|
* (`'claude' | 'codex' | …`) is what the runtimes / provisioning key on.
|
|
275
275
|
*/
|
|
276
|
-
type LinkedAgentId = 'claude_code' | 'codex' | 'cursor' | 'aider' | 'coderabbit' | 'gemini' | 'kimi' | 'omniroute' | typeof HOUSE_AGENT_ID;
|
|
276
|
+
type LinkedAgentId = 'claude_code' | 'codex' | 'cursor' | 'aider' | 'coderabbit' | 'gemini' | 'kimi' | 'omniroute' | 'opencode' | typeof HOUSE_AGENT_ID;
|
|
277
277
|
declare const LINKED_AGENT_IDS: readonly LinkedAgentId[];
|
|
278
278
|
declare function isLinkedAgentId(value: string): value is LinkedAgentId;
|
|
279
279
|
/**
|
package/dist/index.js
CHANGED
|
@@ -431,6 +431,22 @@ var AGENT_REGISTRY = {
|
|
|
431
431
|
headroomWrappable: false,
|
|
432
432
|
// Native ACP server: `kimi acp` (stdio JSON-RPC, answers `initialize`).
|
|
433
433
|
acp: true
|
|
434
|
+
},
|
|
435
|
+
opencode: {
|
|
436
|
+
id: "opencode",
|
|
437
|
+
displayName: "opencode",
|
|
438
|
+
binaryName: "opencode",
|
|
439
|
+
enabled: true,
|
|
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",
|
|
446
|
+
// Not listed by `headroom init --global` (claude/codex/copilot only) — native.
|
|
447
|
+
headroomWrappable: false,
|
|
448
|
+
// Native ACP server: `opencode acp` (stdio JSON-RPC).
|
|
449
|
+
acp: true
|
|
434
450
|
}
|
|
435
451
|
};
|
|
436
452
|
function getEnabledAgents() {
|
|
@@ -460,6 +476,7 @@ var LINKED_AGENT_IDS = [
|
|
|
460
476
|
"gemini",
|
|
461
477
|
"kimi",
|
|
462
478
|
"omniroute",
|
|
479
|
+
"opencode",
|
|
463
480
|
HOUSE_AGENT_ID
|
|
464
481
|
];
|
|
465
482
|
function isLinkedAgentId(value) {
|
|
@@ -478,6 +495,9 @@ var PUBLIC_TO_INTERNAL = {
|
|
|
478
495
|
coderabbit: "coderabbit",
|
|
479
496
|
gemini: "gemini",
|
|
480
497
|
kimi: "kimi",
|
|
498
|
+
// opencode is a real, distinct agent (its own binary + ACP server) — it does
|
|
499
|
+
// NOT map onto another runtime. Public id === internal id.
|
|
500
|
+
opencode: "opencode",
|
|
481
501
|
// OmniRoute runs Claude Code under the hood, pointed at the user's OmniRoute
|
|
482
502
|
// gateway (their vaulted base URL + token) instead of the house MiniMax
|
|
483
503
|
// proxy. Same internal runtime as the house agent — `claude` — differing only
|
|
@@ -494,7 +514,8 @@ var INTERNAL_TO_PUBLIC = {
|
|
|
494
514
|
aider: "aider",
|
|
495
515
|
coderabbit: "coderabbit",
|
|
496
516
|
gemini: "gemini",
|
|
497
|
-
kimi: "kimi"
|
|
517
|
+
kimi: "kimi",
|
|
518
|
+
opencode: "opencode"
|
|
498
519
|
};
|
|
499
520
|
function isPublicToInternalKey(v) {
|
|
500
521
|
return Object.prototype.hasOwnProperty.call(PUBLIC_TO_INTERNAL, v);
|