@sleep2agi/agent-network 2.3.0-preview.49 → 2.3.0-preview.50

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.49";
2
- export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.35";
3
- export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.35";
4
- export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.49";
5
- export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.35";
6
- export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.35";
1
+ export declare const PAIRED_AGENT_NETWORK_VERSION = "2.3.0-preview.50";
2
+ export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.36";
3
+ export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.36";
4
+ export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.50";
5
+ export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.36";
6
+ export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.36";
7
7
  export type PairedAgentNodeResolution = {
8
8
  spec: string;
9
9
  args: string[];
@@ -0,0 +1,8 @@
1
+ export type ProcRow = {
2
+ pid: number;
3
+ ppid: number;
4
+ start: string;
5
+ };
6
+ export declare function ownedConnectionFromSnapshot(rootPid: number, beforeStart: string | null, afterStart: string | null, rows: ProcRow[], socketOwners: ReadonlyMap<number, ReadonlySet<string>>, establishedInodes: ReadonlySet<string>, unread?: boolean): boolean;
7
+ /** Fail-closed attribution of an exact loopback connection to a managed POSIX TUI tree. */
8
+ export declare function probePosixOwnedLoopbackConnection(rootPid: number, port: number, platform?: NodeJS.Platform): boolean;
@@ -6,9 +6,10 @@ export interface WindowsManagedProcess {
6
6
  logPath: string;
7
7
  }
8
8
  export interface WindowsCopresenceRecord {
9
- version: 1;
9
+ version: 1 | 2;
10
10
  nodeId: string;
11
11
  createdAt: string;
12
+ marker?: string;
12
13
  processes: WindowsManagedProcess[];
13
14
  }
14
15
  export declare function windowsCopresenceRecordPath(nodesDir: string, nodeId: string): string;
@@ -20,7 +21,13 @@ export declare function closeLog(fd: number): void;
20
21
  export type CreationDateProbe = (pid: number) => string | null;
21
22
  /** Uses CIM instead of locale-dependent tasklist output. */
22
23
  export declare function probeWindowsCreationDate(pid: number): string | null;
23
- export declare function writeWindowsCopresenceRecord(nodesDir: string, nodeId: string, processes: WindowsManagedProcess[]): void;
24
+ /**
25
+ * Attribute an ESTABLISHED loopback connection to the launched TUI process
26
+ * tree. This is deliberately stronger than counting listeners/connections:
27
+ * an unrelated local client cannot satisfy it.
28
+ */
29
+ export declare function probeWindowsOwnedLoopbackConnection(rootPid: number, expectedCreationDate: string, port: number, runPowerShell?: (script: string) => string): boolean;
30
+ export declare function writeWindowsCopresenceRecord(nodesDir: string, nodeId: string, processes: WindowsManagedProcess[], marker?: string): void;
24
31
  export declare function readWindowsCopresenceRecord(nodesDir: string, nodeId: string): WindowsCopresenceRecord | null;
25
32
  export interface WindowsStopDecision {
26
33
  safe: WindowsManagedProcess[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network",
3
- "version": "2.3.0-preview.49",
3
+ "version": "2.3.0-preview.50",
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",