@codeam/shared 2.61.55 → 2.61.56
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -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' | '
|
|
276
|
+
type LinkedAgentId = 'claude_code' | 'codex' | 'cursor' | 'aider' | 'coderabbit' | 'gemini' | 'kimi' | 'openrouter' | '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
|
@@ -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' | '
|
|
276
|
+
type LinkedAgentId = 'claude_code' | 'codex' | 'cursor' | 'aider' | 'coderabbit' | 'gemini' | 'kimi' | 'openrouter' | '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
|
@@ -475,7 +475,7 @@ var LINKED_AGENT_IDS = [
|
|
|
475
475
|
"coderabbit",
|
|
476
476
|
"gemini",
|
|
477
477
|
"kimi",
|
|
478
|
-
"
|
|
478
|
+
"openrouter",
|
|
479
479
|
"opencode",
|
|
480
480
|
HOUSE_AGENT_ID
|
|
481
481
|
];
|
|
@@ -498,11 +498,14 @@ var PUBLIC_TO_INTERNAL = {
|
|
|
498
498
|
// opencode is a real, distinct agent (its own binary + ACP server) — it does
|
|
499
499
|
// NOT map onto another runtime. Public id === internal id.
|
|
500
500
|
opencode: "opencode",
|
|
501
|
-
//
|
|
502
|
-
//
|
|
503
|
-
//
|
|
504
|
-
//
|
|
505
|
-
|
|
501
|
+
// OpenRouter runs Claude Code under the hood, pointed at OpenRouter's hosted
|
|
502
|
+
// "Anthropic Skin" (https://openrouter.ai/api — native Anthropic Messages
|
|
503
|
+
// protocol) with the user's vaulted `sk-or-…` key as ANTHROPIC_AUTH_TOKEN,
|
|
504
|
+
// instead of the house MiniMax proxy. Same internal runtime as the house
|
|
505
|
+
// agent — `claude` — differing only in WHERE the Anthropic env is pointed (a
|
|
506
|
+
// buildOpenRouterBootstrap variant). The endpoint is FIXED (hosted), so there
|
|
507
|
+
// is no per-user base URL — just the key.
|
|
508
|
+
openrouter: "claude",
|
|
506
509
|
// The house agent runs Claude Code under the hood (pointed at the
|
|
507
510
|
// MiniMax proxy). Its internal runtime is therefore `claude`.
|
|
508
511
|
[HOUSE_AGENT_ID]: "claude"
|