@sleep2agi/agent-network 2.3.0-preview.226 → 2.3.0-preview.227

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.226";
2
- export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.194";
3
- export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.194";
4
- export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.226";
5
- export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.194";
6
- export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.194";
1
+ export declare const PAIRED_AGENT_NETWORK_VERSION = "2.3.0-preview.227";
2
+ export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.195";
3
+ export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.195";
4
+ export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.227";
5
+ export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.195";
6
+ export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.195";
7
7
  export type PairedAgentNodeResolution = {
8
8
  spec: string;
9
9
  args: string[];
@@ -26,3 +26,17 @@ export declare function agentNodeHelpSupportsOpencode(help: string): boolean;
26
26
  export declare function validateAgentNodePackageEntrypoint(rawEntrypoint: string, packageSpec: string, expectedVersion?: string, forbiddenRoots?: readonly string[]): string;
27
27
  /** Skip invalid/local PATH shims and return the first exact trusted package. */
28
28
  export declare function resolveAgentNodePackageEntrypointFromPath(searchPath: string, packageSpec: string, expectedVersion: string, forbiddenRoots?: readonly string[]): string;
29
+ /**
30
+ * `anet pair` 的内容。为什么要有这个命令:
31
+ *
32
+ * 客户端/文档过去写的是 `npm i -g @sleep2agi/agent-node@preview` 这种**单边**提示。
33
+ * 但 opencode-cli 这条路径**禁用了自动 npx**(见 resolveOpencodeAgentNodeLaunchPlan:
34
+ * "automatic npx execution is disabled for opencode-cli"),所以目标机上必须有一份
35
+ * **精确版本**的全局 agent-node;单边装一个 @preview 很容易装成**半对**,
36
+ * CLI 随即 `Incompatible agent-node for opencode-cli` 拒绝启动,节点掉线。
37
+ *
38
+ * 更糟的是两个包的 preview tag 会**先后**移动(node 先发、声明它的 CLI 后发),
39
+ * 所以「两边都用 @preview」本身也有窗口期不自洽 —— tag 不是配对判据,
40
+ * **本包里的常量才是**。把常量打印出来,是唯一不用猜的答案。
41
+ */
42
+ export declare function pairInfo(includeOpenCodeConstraints?: boolean): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network",
3
- "version": "2.3.0-preview.226",
3
+ "version": "2.3.0-preview.227",
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",