@sleep2agi/agent-network 2.3.0-preview.41 → 2.3.0-preview.43

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,4 +1,4 @@
1
- export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.41";
1
+ export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.43";
2
2
  export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.32";
3
3
  export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.32";
4
4
  export declare function opencodeExactPairInstallCommand(): string;
@@ -0,0 +1,34 @@
1
+ export type WindowsCopresenceRole = "appsrv" | "bridge";
2
+ export interface WindowsManagedProcess {
3
+ role: WindowsCopresenceRole;
4
+ pid: number;
5
+ creationDate: string;
6
+ logPath: string;
7
+ }
8
+ export interface WindowsCopresenceRecord {
9
+ version: 1;
10
+ nodeId: string;
11
+ createdAt: string;
12
+ processes: WindowsManagedProcess[];
13
+ }
14
+ export declare function windowsCopresenceRecordPath(nodesDir: string, nodeId: string): string;
15
+ export declare function windowsCopresenceLogPath(nodesDir: string, nodeId: string, role: WindowsCopresenceRole): string;
16
+ export declare function openPrivateAppendLog(path: string): number;
17
+ /** Protect credential-bearing state with native Windows ACLs. */
18
+ export declare function ensureWindowsPrivateDirectory(path: string): void;
19
+ export declare function closeLog(fd: number): void;
20
+ export type CreationDateProbe = (pid: number) => string | null;
21
+ /** Uses CIM instead of locale-dependent tasklist output. */
22
+ export declare function probeWindowsCreationDate(pid: number): string | null;
23
+ export declare function writeWindowsCopresenceRecord(nodesDir: string, nodeId: string, processes: WindowsManagedProcess[]): void;
24
+ export declare function readWindowsCopresenceRecord(nodesDir: string, nodeId: string): WindowsCopresenceRecord | null;
25
+ export interface WindowsStopDecision {
26
+ safe: WindowsManagedProcess[];
27
+ refused: Array<{
28
+ process: WindowsManagedProcess;
29
+ reason: "missing" | "pid-reused";
30
+ }>;
31
+ }
32
+ /** PID alone is never authority: Windows reuses PIDs, so CreationDate must match. */
33
+ export declare function decideWindowsManagedStop(record: WindowsCopresenceRecord, probe: CreationDateProbe): WindowsStopDecision;
34
+ export declare function taskkillWindowsProcessTree(pid: number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network",
3
- "version": "2.3.0-preview.41",
3
+ "version": "2.3.0-preview.43",
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",