@sleep2agi/agent-network 2.3.0-preview.124 → 2.3.0-preview.126

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.124";
2
- export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.96";
3
- export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.96";
4
- export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.124";
5
- export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.96";
6
- export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.96";
1
+ export declare const PAIRED_AGENT_NETWORK_VERSION = "2.3.0-preview.126";
2
+ export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.97";
3
+ export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.97";
4
+ export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.126";
5
+ export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.97";
6
+ export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.97";
7
7
  export type PairedAgentNodeResolution = {
8
8
  spec: string;
9
9
  args: string[];
@@ -0,0 +1,44 @@
1
+ import { type ChildProcess, type ExecFileSyncOptions, type ExecFileSyncOptionsWithBufferEncoding, type ExecFileSyncOptionsWithStringEncoding, type SpawnOptions, type SpawnSyncOptions, type SpawnSyncReturns } from "node:child_process";
2
+ export type TmuxEnv = Record<string, string | undefined>;
3
+ export interface TmuxIsolation {
4
+ /** Socket path passed to tmux as `-S`. */
5
+ socket: string;
6
+ /** Which variable asked for isolation. */
7
+ source: "ANET_TMUX_SOCKET" | "TMUX_TMPDIR";
8
+ }
9
+ export declare class TmuxKillServerRefused extends Error {
10
+ constructor(args: readonly string[]);
11
+ }
12
+ /**
13
+ * Where tmux should talk to, or null for "today's default behaviour".
14
+ * `TMUX_TMPDIR` resolves the same way tmux itself does: `$TMUX_TMPDIR/tmux-<uid>/default`.
15
+ */
16
+ export declare function resolveTmuxIsolation(env?: TmuxEnv, uid?: number): TmuxIsolation | null;
17
+ /** The socket path inside `$TMUX` (`<socket>,<server pid>,<session idx>`), or null. */
18
+ export declare function socketOfTmuxVar(value: string | undefined): string | null;
19
+ /**
20
+ * True when argv asks tmux to kill its server, including `a ; kill-server`
21
+ * chains and the unambiguous prefixes tmux accepts (`kill-ser`, `kill-serv`, …).
22
+ */
23
+ export declare function isKillServer(args: readonly string[]): boolean;
24
+ export interface TmuxInvocation {
25
+ file: "tmux";
26
+ args: string[];
27
+ /** undefined ⇒ inherit the caller's env exactly as before (no isolation requested). */
28
+ env: TmuxEnv | undefined;
29
+ isolation: TmuxIsolation | null;
30
+ }
31
+ /**
32
+ * Pure argv/env builder. Throws TmuxKillServerRefused for kill-server.
33
+ * `env` is the env the child would otherwise get (the caller's `options.env`,
34
+ * else process.env); isolation is decided from it.
35
+ */
36
+ export declare function buildTmuxInvocation(args: readonly string[], env?: TmuxEnv, uid?: number): TmuxInvocation;
37
+ /** `execFileSync("tmux", args, options)` through the #505 rules. */
38
+ export declare function execTmux(args: readonly string[], options: ExecFileSyncOptionsWithStringEncoding): string;
39
+ export declare function execTmux(args: readonly string[], options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
40
+ export declare function execTmux(args: readonly string[], options?: ExecFileSyncOptions): string | Buffer;
41
+ /** `spawnSync("tmux", args, options)` through the #505 rules. */
42
+ export declare function spawnSyncTmux(args: readonly string[], options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
43
+ /** `spawn("tmux", args, options)` through the #505 rules. */
44
+ export declare function spawnTmux(args: readonly string[], options?: SpawnOptions): ChildProcess;
@@ -0,0 +1,31 @@
1
+ export type ReleaseChannel = "preview" | "latest";
2
+ export interface DistTags {
3
+ latest?: string | null;
4
+ preview?: string | null;
5
+ }
6
+ export type ChannelResolution = {
7
+ ok: true;
8
+ channel: ReleaseChannel;
9
+ source: "flag" | "detected";
10
+ reason: string;
11
+ } | {
12
+ ok: false;
13
+ error: string;
14
+ };
15
+ export interface ResolveUpgradeChannelInput {
16
+ /** Installed anet version (full string, prerelease preserved). */
17
+ installed: string | null | undefined;
18
+ /** Value of `--channel`. `"true"` means the flag was given without a value. */
19
+ flag?: string | null;
20
+ /** dist-tags of @sleep2agi/agent-network, or null when the lookup failed. */
21
+ distTags: DistTags | null;
22
+ }
23
+ interface ParsedSemver {
24
+ core: [number, number, number];
25
+ pre: string[];
26
+ }
27
+ export declare function parseSemver(version: string | null | undefined): ParsedSemver | null;
28
+ /** semver §11 precedence. Returns <0, 0, >0. */
29
+ export declare function compareSemver(a: ParsedSemver, b: ParsedSemver): number;
30
+ export declare function resolveUpgradeChannel(input: ResolveUpgradeChannelInput): ChannelResolution;
31
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network",
3
- "version": "2.3.0-preview.124",
3
+ "version": "2.3.0-preview.126",
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",
@@ -75,7 +75,7 @@
75
75
  "puppeteer-core": "^24.10.2"
76
76
  },
77
77
  "devDependencies": {
78
- "@modelcontextprotocol/sdk": "^1.12.0",
78
+ "@modelcontextprotocol/sdk": "1.32.0",
79
79
  "@types/markdown-it": "^14.1.2",
80
80
  "@types/node": "^25.0.0",
81
81
  "javascript-obfuscator": "^5.4.1",