@sleep2agi/agent-network 2.3.0-preview.263 → 2.3.0-preview.265

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.263";
2
- export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.229";
3
- export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.229";
4
- export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.263";
5
- export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.229";
6
- export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.229";
1
+ export declare const PAIRED_AGENT_NETWORK_VERSION = "2.3.0-preview.265";
2
+ export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.231";
3
+ export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.231";
4
+ export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.265";
5
+ export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.231";
6
+ export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.231";
7
7
  export type PairedAgentNodeResolution = {
8
8
  spec: string;
9
9
  args: string[];
@@ -25,3 +25,13 @@ export declare function opencodeStartGenerationRefusal(profile: {
25
25
  }): string | null;
26
26
  /** Exact install command for a generation's pin. */
27
27
  export declare function opencodeGenerationInstallCommand(generation: "v1" | "v2"): string;
28
+ /**
29
+ * Warning lines emitted on `anet node create` when `opencode` is not on PATH.
30
+ * V2 nodes must never recommend the V1 `opencode-ai` package; when a shared V2
31
+ * Server is already configured, the note points at the V2 package rather than
32
+ * raising a false V1 missing-CLI alarm.
33
+ */
34
+ export declare function opencodeCreateMissingCliWarnings(generation: "v1" | "v2" | undefined, opts?: {
35
+ hasSharedServer?: boolean;
36
+ v1InstallCommand?: string;
37
+ }): string[];
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Match a node alias against Hub `GET /api/stats/sse`'s `sessions` map.
3
+ *
4
+ * Hub keys every active SSE stream as `${networkId || "global"}:${alias}`
5
+ * (see server/src/push.ts:clientKey). Checking bare `sessions[alias]` missed
6
+ * all real Hub keys, causing `anet node ls` to render `○` for live nodes and
7
+ * `sseAllConnected()` to always return `"no"`.
8
+ *
9
+ * Cross-network isolation: when `networkId` is specified, only `${networkId}:${alias}`
10
+ * (or a legacy unprefixed `alias` key) matches — never `${otherNetwork}:${alias}`.
11
+ */
12
+ export declare function sseConnectionCountForAlias(sessions: Record<string, number> | null | undefined, alias: string, networkId?: string | null): number;
13
+ export declare function isAliasSseConnected(sessions: Record<string, number> | null | undefined, alias: string, networkId?: string | null): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network",
3
- "version": "2.3.0-preview.263",
3
+ "version": "2.3.0-preview.265",
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",