@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.
- package/build-info.json +2 -2
- package/dist/bin/cli.js +2 -2
- package/dist/src/client.js +1 -1
- package/dist/src/daemon-anet-bin.d.ts +1 -1
- package/dist/src/node-server.js +8 -8
- package/dist/src/opencode-agent-node-pair.d.ts +6 -6
- package/dist/src/windows-codex-copresence.d.ts +16 -0
- package/dist/src/windows-runtime.d.ts +2 -0
- package/dist/src/windows-sdk-stop-evidence.d.ts +24 -0
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const PAIRED_AGENT_NETWORK_VERSION = "2.3.0-preview.
|
|
2
|
-
export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.
|
|
3
|
-
export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.
|
|
4
|
-
export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.
|
|
5
|
-
export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.
|
|
6
|
-
export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.
|
|
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,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.
|
|
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",
|