@sleep2agi/agent-network 2.3.0-preview.51 → 2.3.0-preview.52
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.
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
export type RuntimeName = "claude-code-cli" | "codex-sdk" | "claude-agent-sdk" | "grok-build-acp" | "grok-build-cli" | "opencode-cli" | "codex-app-server";
|
|
2
|
+
/** 一个 runtime 复用的是哪种**外部登录态**,而不是 API key。 */
|
|
3
|
+
export type ReusedLogin = "claude" | "codex" | "grok";
|
|
4
|
+
/**
|
|
5
|
+
* runtime → 它复用的外部登录。**只有一处定义**,VENDORS 的 `requiresAuth`
|
|
6
|
+
* 与登录态探测都引用这里。
|
|
7
|
+
*
|
|
8
|
+
* 不在表里 = 该 runtime 走 API key,不复用任何登录:
|
|
9
|
+
* · `claude-agent-sdk` —— 走 ANTHROPIC_AUTH_TOKEN / ANTHROPIC_API_KEY
|
|
10
|
+
* · `opencode-cli` —— 走 ANTHROPIC_API_KEY / OPENAI_API_KEY(vendor preset 从 env 读,不 prompt)
|
|
11
|
+
* 这条区分是有意写下来的:Vincent 那句「复用会员登录状态、不用自己输 key 和 url」
|
|
12
|
+
* 点名的是 Claude Code / Codex / Grok 三家,opencode 不在其中,别顺手加进来。
|
|
13
|
+
*/
|
|
14
|
+
export declare const RUNTIME_REUSED_LOGIN: Readonly<Partial<Record<RuntimeName, ReusedLogin>>>;
|
|
15
|
+
/** 该 runtime 复用哪种登录;返回 undefined 表示它用 API key。 */
|
|
16
|
+
export declare function reusedLoginFor(runtime: RuntimeName): ReusedLogin | undefined;
|
|
2
17
|
/** Operator-facing default for a runtime slot that is empty or missing. */
|
|
3
18
|
export declare const DEFAULT_RUNTIME: RuntimeName;
|
|
4
19
|
export declare const SUPPORTED_RUNTIME_NAMES: readonly RuntimeName[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const PAIRED_AGENT_NETWORK_VERSION = "2.3.0-preview.
|
|
2
|
-
export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.
|
|
3
|
-
export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.
|
|
4
|
-
export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.
|
|
5
|
-
export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.
|
|
6
|
-
export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.
|
|
1
|
+
export declare const PAIRED_AGENT_NETWORK_VERSION = "2.3.0-preview.52";
|
|
2
|
+
export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.38";
|
|
3
|
+
export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.38";
|
|
4
|
+
export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.52";
|
|
5
|
+
export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.38";
|
|
6
|
+
export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.38";
|
|
7
7
|
export type PairedAgentNodeResolution = {
|
|
8
8
|
spec: string;
|
|
9
9
|
args: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sleep2agi/agent-network",
|
|
3
|
-
"version": "2.3.0-preview.
|
|
3
|
+
"version": "2.3.0-preview.52",
|
|
4
4
|
"description": "AI Agent Network CLI — Local-first multi-agent orchestration across 6 runtimes (Claude Code CLI / Claude Agent SDK / Codex SDK / Codex app-server / Grok Build ACP / OpenCode CLI) and 8+ LLM providers. Apache 2.0.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/client.js",
|