@sleep2agi/agent-network 2.3.0-preview.241 → 2.3.0-preview.243

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,6 +1,6 @@
1
- export type RuntimeName = "claude-code-cli" | "codex-sdk" | "claude-agent-sdk" | "grok-build-acp" | "grok-build-cli" | "opencode-cli" | "codex-app-server";
1
+ export type RuntimeName = "claude-code-cli" | "codex-sdk" | "claude-agent-sdk" | "grok-build-acp" | "grok-build-cli" | "opencode-cli" | "codex-app-server" | "antigravity-acp";
2
2
  /** 一个 runtime 复用的是哪种**外部登录态**,而不是 API key。 */
3
- export type ReusedLogin = "claude" | "codex" | "grok";
3
+ export type ReusedLogin = "claude" | "codex" | "grok" | "antigravity";
4
4
  /**
5
5
  * runtime → 它复用的外部登录。**只有一处定义**,VENDORS 的 `requiresAuth`
6
6
  * 与登录态探测都引用这里。
@@ -1,9 +1,9 @@
1
- export declare const PAIRED_AGENT_NETWORK_VERSION = "2.3.0-preview.241";
2
- export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.209";
3
- export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.209";
4
- export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.241";
5
- export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.209";
6
- export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.209";
1
+ export declare const PAIRED_AGENT_NETWORK_VERSION = "2.3.0-preview.243";
2
+ export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.211";
3
+ export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.211";
4
+ export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.243";
5
+ export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.211";
6
+ export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.211";
7
7
  export type PairedAgentNodeResolution = {
8
8
  spec: string;
9
9
  args: string[];
@@ -24,7 +24,10 @@ export interface RulesFileRequest {
24
24
  /** read/write = 规则文件;skills_list/skill_read = 只读技能(node-skills.ts),content 是技能名;
25
25
  * files_list/file_read = 只读项目文件夹(node-files.ts),content 是相对工作目录的路径;
26
26
  * logs_tail = 只读本节点运行日志(node-logs.ts),content 是过滤参数 JSON(没有路径)。 */
27
- op: "read" | "write" | "skills_list" | "skill_read" | "files_list" | "file_read" | "logs_tail";
27
+ op: "read" | "write" | "skills_list" | "skill_read" | "files_list" | "file_read" | "logs_tail"
28
+ /** 2026-11-20 — agy 登录(handoff/agy-login-channel-design.md)。start 的 content 为空;
29
+ * submit 的 content 是 hub 转来的 {login_id, code}(授权码只进子进程 stdin,不写日志)。 */
30
+ | "agy_login_start" | "agy_login_submit";
28
31
  content?: string;
29
32
  }
30
33
  export interface ProcessRulesFileDeps {
@@ -43,11 +46,31 @@ export interface ProcessRulesFileDeps {
43
46
  lines: unknown[];
44
47
  matched: number;
45
48
  }>;
49
+ /** agy 登录会话管理器(agy-login.ts 的 createAgyLoginManager());非 antigravity 节点不注入。 */
50
+ agyLogin?: {
51
+ start(): Promise<{
52
+ ok: true;
53
+ session: {
54
+ loginId: string;
55
+ url: string;
56
+ expiresAt: number;
57
+ };
58
+ } | {
59
+ ok: false;
60
+ reason: string;
61
+ }>;
62
+ submit(loginId: string, code: string): Promise<{
63
+ ok: true;
64
+ } | {
65
+ ok: false;
66
+ reason: string;
67
+ }>;
68
+ cancel(loginId?: string): boolean;
69
+ };
46
70
  }
47
71
  /** 一次门铃最多处理这么多条,防止 hub 侧异常堆积把节点拖进死循环。 */
48
72
  export declare const RULES_FILE_MAX_PER_DOORBELL = 8;
49
- /**
50
- * 门铃处理器:拉 pending 请求直到空,每条 ack done / failed。
51
- * 返回处理条数(测试用)。
52
- */
73
+ /** Doorbells, reconnects and polling share one drain per authenticated client. */
53
74
  export declare function processRulesFileRequests(deps: ProcessRulesFileDeps): Promise<number>;
75
+ export declare const RULES_FILE_POLL_MS = 15000;
76
+ export declare function startRulesFilePolling(deps: ProcessRulesFileDeps, intervalMs?: number): () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network",
3
- "version": "2.3.0-preview.241",
3
+ "version": "2.3.0-preview.243",
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",