@sleep2agi/agent-network 2.3.0-preview.240 → 2.3.0-preview.241

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.240";
2
- export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.208";
3
- export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.208";
4
- export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.240";
5
- export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.208";
6
- export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.208";
1
+ export declare const PAIRED_AGENT_NETWORK_VERSION = "2.3.0-preview.241";
2
+ export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.209";
3
+ export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.209";
4
+ export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.241";
5
+ export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.209";
6
+ export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.209";
7
7
  export type PairedAgentNodeResolution = {
8
8
  spec: string;
9
9
  args: string[];
@@ -145,6 +145,15 @@ export declare function probeWindowsCimIdentity(pid: number, expectedCreationDat
145
145
  export interface WindowsStopOrchestrationDeps {
146
146
  runPowerShell?: (script: string) => string;
147
147
  runTaskkill?: (pid: number) => TaskkillOutcome;
148
+ onProgress?: (stage: string) => void;
149
+ captureRoots?: (roots: WindowsManagedIdentity[]) => WindowsDescendantCapture[];
150
+ readFinalEvidence?: (identities: WindowsManagedIdentity[]) => {
151
+ snapshot: Array<{
152
+ pid: number;
153
+ ppid: number;
154
+ }> | null;
155
+ probe: (identity: WindowsManagedIdentity) => WindowsIdentityState;
156
+ };
148
157
  }
149
158
  export interface WindowsStopOrchestration {
150
159
  verdict: WindowsStopVerdict;
@@ -161,6 +170,13 @@ export interface WindowsStopOrchestration {
161
170
  * ③ 按精确身份裁决 gone/alive/unknown。过期 `safe` **不**构成终止授权。
162
171
  */
163
172
  export declare function orchestrateWindowsManagedStop(roots: WindowsManagedIdentity[], deps?: WindowsStopOrchestrationDeps): WindowsStopOrchestration;
173
+ export type AsyncWindowsStopDeps = Omit<WindowsStopOrchestrationDeps, "captureRoots" | "readFinalEvidence"> & {
174
+ captureRoots?: (roots: WindowsManagedIdentity[]) => WindowsDescendantCapture[] | Promise<WindowsDescendantCapture[]>;
175
+ readFinalEvidence?: (identities: WindowsManagedIdentity[]) => ReturnType<NonNullable<WindowsStopOrchestrationDeps["readFinalEvidence"]>> | Promise<ReturnType<NonNullable<WindowsStopOrchestrationDeps["readFinalEvidence"]>>>;
176
+ probeRoot?: (root: WindowsManagedIdentity) => WindowsIdentityState | Promise<WindowsIdentityState>;
177
+ };
178
+ /** Same decision flow as the synchronous CLI, with async evidence transport. */
179
+ export declare function orchestrateWindowsManagedStopAsync(roots: WindowsManagedIdentity[], deps: AsyncWindowsStopDeps): Promise<WindowsStopOrchestration>;
164
180
  export declare const WINDOWS_SNAPSHOT_PROTOCOL = "SNAP:";
165
181
  /**
166
182
  * 终止**之后**的进程快照:**只**返回现存进程的 (pid, ppid) 对,不在脚本里做遍历、不下结论。
@@ -0,0 +1,2 @@
1
+ /** Native Windows first-run support is deliberately limited to the SDK path. */
2
+ export declare function windowsRuntimeSupported(runtime: string, platform?: NodeJS.Platform): boolean;
@@ -0,0 +1,24 @@
1
+ import { type WindowsManagedIdentity, type WindowsStopOrchestrationDeps, type AsyncWindowsStopDeps } from "./windows-codex-copresence.js";
2
+ export declare function windowsSdkHelperLaunch(): {
3
+ command: string;
4
+ args: string[];
5
+ };
6
+ export declare function windowsSdkEvidenceScript(identities: WindowsManagedIdentity[], capture: boolean, includePrelude?: boolean): string;
7
+ export declare function windowsSdkBatchEvidence(run: (script: string) => string): Pick<WindowsStopOrchestrationDeps, "captureRoots" | "readFinalEvidence">;
8
+ /** Deliberately never return upstream text, paths or environment values. */
9
+ export declare function sdkEvidenceReason(raw: string): string;
10
+ /** A private pipe, not a disk DLL cache. Compile once per stop, reuse for every
11
+ * capture, immediate pre-kill birth check and final query; dispose on all paths.
12
+ * Startup/compilation has its own bound, queries retain their 5s bound. */
13
+ export declare function openWindowsSdkEvidenceSession(options?: {
14
+ onProgress?: (message: string) => void;
15
+ startupTimeoutMs?: number;
16
+ queryTimeoutMs?: number;
17
+ launch?: {
18
+ command: string;
19
+ args: string[];
20
+ };
21
+ }): Promise<{
22
+ deps: AsyncWindowsStopDeps;
23
+ close: () => void;
24
+ }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network",
3
- "version": "2.3.0-preview.240",
3
+ "version": "2.3.0-preview.241",
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",