@sleep2agi/agent-network 2.3.0-preview.258 → 2.3.0-preview.259

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.258";
2
- export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.224";
3
- export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.224";
4
- export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.258";
5
- export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.224";
6
- export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.224";
1
+ export declare const PAIRED_AGENT_NETWORK_VERSION = "2.3.0-preview.259";
2
+ export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.225";
3
+ export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.225";
4
+ export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.259";
5
+ export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.225";
6
+ export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.225";
7
7
  export type PairedAgentNodeResolution = {
8
8
  spec: string;
9
9
  args: string[];
@@ -0,0 +1,65 @@
1
+ export type PrivateFileVerdict = {
2
+ ok: true;
3
+ } | {
4
+ ok: false;
5
+ reason: "not_a_file" | "group_or_other_access" | "acl_unreadable" | "acl_open_to_others" | "reparse_point" | "unsupported_volume" | "owner_untrusted";
6
+ detail: string;
7
+ /** Set when the Windows probe identified the caller; lets the fix command be shell-neutral. */
8
+ currentUserSid?: string;
9
+ };
10
+ export declare const WINDOWS_SYSTEM_SID = "S-1-5-18";
11
+ export declare const WINDOWS_ADMINISTRATORS_SID = "S-1-5-32-544";
12
+ /** The probe. The path arrives in an environment variable and is only ever used as a literal. */
13
+ export declare const WINDOWS_ACL_PROBE: string;
14
+ export type WindowsAclEntry = {
15
+ sid: string;
16
+ type: string;
17
+ rights: string;
18
+ inherited: boolean;
19
+ };
20
+ export type WindowsAclSnapshot = {
21
+ currentUserSid: string;
22
+ ownerSid: string;
23
+ isReparsePoint: boolean;
24
+ isDirectory: boolean;
25
+ protected: boolean;
26
+ driveFormat: string;
27
+ access: WindowsAclEntry[];
28
+ };
29
+ /**
30
+ * Parses the probe's JSON exactly as Windows PowerShell 5.1 / PowerShell 7 print it: an optional
31
+ * UTF-8 BOM, CRLF, and `access` as a single object when the list has one entry.
32
+ */
33
+ export declare function parseWindowsAclProbe(raw: string): {
34
+ snapshot: WindowsAclSnapshot;
35
+ } | {
36
+ error: string;
37
+ };
38
+ /** Pure verdict from a probe snapshot. */
39
+ export declare function judgeWindowsAcl(s: WindowsAclSnapshot): PrivateFileVerdict;
40
+ export type WindowsAclReader = (path: string) => {
41
+ raw: string;
42
+ } | {
43
+ error: string;
44
+ };
45
+ /**
46
+ * Runs the probe. The script is passed base64-encoded and the path in an environment variable,
47
+ * never on the command line: paths with spaces, CJK characters, quotes or `[` `]` need no
48
+ * escaping, and nothing about the file shows up in a process listing.
49
+ */
50
+ export declare const readWindowsAcl: WindowsAclReader;
51
+ export declare function isPrivateFile(path: string, deps?: {
52
+ platform?: NodeJS.Platform;
53
+ readAcl?: WindowsAclReader;
54
+ }): PrivateFileVerdict;
55
+ /**
56
+ * One sentence a person can act on. Names the file and the command that fixes it; never the
57
+ * file's contents. With the caller's SID the Windows command works unchanged in cmd.exe and in
58
+ * PowerShell, and in any system language; without it, it is a PowerShell line that looks the SID up.
59
+ */
60
+ export declare function privateFileFix(path: string, platform?: NodeJS.Platform, currentUserSid?: string): string;
61
+ /** Throws `<code>: <what is wrong>. <how to fix>` unless the file is private. */
62
+ export declare function assertPrivateFile(path: string, code: string, deps?: {
63
+ platform?: NodeJS.Platform;
64
+ readAcl?: WindowsAclReader;
65
+ }): void;
@@ -21,3 +21,14 @@ export declare const WINDOWS_DEFAULT_RUNTIMES: readonly string[];
21
21
  /** ACP stdio runtimes that do not need PTY/tmux; gated by ANET_ALLOW_ACP_WINDOWS=1. */
22
22
  export declare const WINDOWS_ACP_OPT_IN_RUNTIMES: readonly string[];
23
23
  export declare function windowsRuntimeSupported(runtime: string, platform?: NodeJS.Platform, env?: NodeJS.ProcessEnv): boolean;
24
+ /**
25
+ * #3812 — native Windows runs an OpenCode node in exactly one shape: OpenCode V2, as a client of
26
+ * an OpenCode Server that is already running on the machine. A node that owns its server, and
27
+ * OpenCode V1, launch `opencode` themselves through a POSIX-only path and stay refused.
28
+ */
29
+ export declare function windowsOpencodeSharedNode(profile: {
30
+ runtime?: unknown;
31
+ opencodeGeneration?: unknown;
32
+ opencodeSharedServerUrl?: unknown;
33
+ opencodeSharedServerPasswordFile?: unknown;
34
+ } | null | undefined): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network",
3
- "version": "2.3.0-preview.258",
3
+ "version": "2.3.0-preview.259",
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",