@sleep2agi/agent-network 2.3.0-preview.242 → 2.3.0-preview.244

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.242";
2
- export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.210";
3
- export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.210";
4
- export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.242";
5
- export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.210";
6
- export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.210";
1
+ export declare const PAIRED_AGENT_NETWORK_VERSION = "2.3.0-preview.244";
2
+ export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.212";
3
+ export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.212";
4
+ export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.244";
5
+ export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.212";
6
+ export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.212";
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,6 +46,27 @@ 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;
@@ -1,2 +1,23 @@
1
- /** Native Windows first-run support is deliberately limited to the SDK path. */
2
- export declare function windowsRuntimeSupported(runtime: string, platform?: NodeJS.Platform): boolean;
1
+ /**
2
+ * Native Windows runtime policy.
3
+ *
4
+ * RFC-044 slice 2 deliberately limited native Windows to the SDK path: the
5
+ * terminal / tmux / co-presence runtimes need a POSIX-ish PTY multiplexer that
6
+ * had not been validated there. That boundary is about **PTY**, not about every
7
+ * non-SDK runtime — the allowlist shape over-blocked the ACP runtimes, which
8
+ * speak JSON-RPC over a plain stdio child process (`acp-runner/client.ts` uses
9
+ * `spawn` + pipes, no PTY, no tmux).
10
+ *
11
+ * 2026-11-22 — 闻星 brought native Windows evidence for antigravity-acp
12
+ * (ConPTY + `ssh -tt` login works, `agy -p` headless works). That proves the
13
+ * CLI works, not that OUR stdio path works on Windows (`.cmd` shim resolution,
14
+ * child env policy, stop/tree-kill are still unverified there).
15
+ *
16
+ * So antigravity-acp is admitted **only behind an explicit opt-in**
17
+ * (`ANET_ALLOW_ACP_WINDOWS=1`) until a Windows-native first-reply + stop smoke
18
+ * exists. Default behaviour on win32 is unchanged (SDK only).
19
+ */
20
+ export declare const WINDOWS_DEFAULT_RUNTIMES: readonly string[];
21
+ /** ACP stdio runtimes that do not need PTY/tmux; gated by ANET_ALLOW_ACP_WINDOWS=1. */
22
+ export declare const WINDOWS_ACP_OPT_IN_RUNTIMES: readonly string[];
23
+ export declare function windowsRuntimeSupported(runtime: string, platform?: NodeJS.Platform, env?: NodeJS.ProcessEnv): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network",
3
- "version": "2.3.0-preview.242",
3
+ "version": "2.3.0-preview.244",
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",