@sleep2agi/agent-network 2.3.0-preview.84 → 2.3.0-preview.86

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,9 +1,9 @@
1
- export declare const PAIRED_AGENT_NETWORK_VERSION = "2.3.0-preview.84";
2
- export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.65";
3
- export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.65";
4
- export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.84";
5
- export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.65";
6
- export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.65";
1
+ export declare const PAIRED_AGENT_NETWORK_VERSION = "2.3.0-preview.86";
2
+ export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.66";
3
+ export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.66";
4
+ export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.86";
5
+ export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.66";
6
+ export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.66";
7
7
  export type PairedAgentNodeResolution = {
8
8
  spec: string;
9
9
  args: string[];
@@ -7,7 +7,15 @@ export interface SiblingAgentNode {
7
7
  export interface SiblingFs {
8
8
  exists(path: string): boolean;
9
9
  readJson(path: string): unknown;
10
+ /**
11
+ * #1832 —— npm -g / --prefix 布局下 process.argv[1] 是 `<prefix>/bin/anet` 符号链接,真实文件在
12
+ * `<prefix>/lib/node_modules/@sleep2agi/agent-network/…`;不解析就从 `<prefix>/bin` 往上找不到
13
+ * node_modules,旁边的 agent-node 永远命不中。可选:不提供或抛错时按传入路径原样找。
14
+ */
15
+ realpath?(path: string): string;
10
16
  }
17
+ /** 入口路径先走 realpath(符号链接 → 真实文件);失败(不存在 / 无权限)退回原路径。 */
18
+ export declare function resolveCliEntry(cliEntry: string, fs: SiblingFs): string;
11
19
  /** 从 anet 入口文件路径往上,返回最近的 `…/node_modules` 目录;找不到返回 null。 */
12
20
  export declare function nearestNodeModules(cliEntry: string): string | null;
13
21
  /** package.json 的 bin 可以是字符串或 { name: path };只认名为 agent-node 的那条。 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network",
3
- "version": "2.3.0-preview.84",
3
+ "version": "2.3.0-preview.86",
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",