@sleep2agi/agent-network 2.3.0-preview.139 → 2.3.0-preview.140
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/dist/bin/cli.js +2 -2
- package/dist/src/client.js +1 -1
- package/dist/src/node-server.js +8 -8
- package/dist/src/opencode-agent-node-pair.d.ts +6 -6
- package/dist/src/opencode-generation-create.d.ts +27 -0
- package/dist/src/opencode-package-binary.d.ts +3 -0
- package/dist/src/opencode-versions.d.ts +12 -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.140";
|
|
2
|
+
export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.107";
|
|
3
|
+
export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.107";
|
|
4
|
+
export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.140";
|
|
5
|
+
export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.107";
|
|
6
|
+
export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.107";
|
|
7
7
|
export type PairedAgentNodeResolution = {
|
|
8
8
|
spec: string;
|
|
9
9
|
args: string[];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type OpencodeGenerationCreateResult<P> = {
|
|
2
|
+
ok: true;
|
|
3
|
+
profile: P;
|
|
4
|
+
} | {
|
|
5
|
+
ok: false;
|
|
6
|
+
refusal: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function applyOpencodeGenerationCreateOption<P extends {
|
|
9
|
+
opencodeGeneration?: unknown;
|
|
10
|
+
opencodeMode?: string;
|
|
11
|
+
flags?: Record<string, any>;
|
|
12
|
+
}>(profile: P, opts: Record<string, unknown> & {
|
|
13
|
+
"opencode-generation"?: string;
|
|
14
|
+
"opencode-unsafe-tools"?: string;
|
|
15
|
+
}): OpencodeGenerationCreateResult<P>;
|
|
16
|
+
/** Start-time gate for a stored profile: one line when it must not start,
|
|
17
|
+
* else null. V1 (and a config without the field) is never refused. */
|
|
18
|
+
export declare function opencodeStartGenerationRefusal(profile: {
|
|
19
|
+
opencodeGeneration?: unknown;
|
|
20
|
+
opencodeMode?: string;
|
|
21
|
+
flags?: Record<string, any>;
|
|
22
|
+
}, opts: {
|
|
23
|
+
copresence: boolean;
|
|
24
|
+
configFile?: string;
|
|
25
|
+
}): string | null;
|
|
26
|
+
/** Exact install command for a generation's pin. */
|
|
27
|
+
export declare function opencodeGenerationInstallCommand(generation: "v1" | "v2"): string;
|
|
@@ -3,6 +3,9 @@ export interface ValidateOpencodePackageBinaryOptions {
|
|
|
3
3
|
/** A package payload may not be inside, or contain, the current project or
|
|
4
4
|
* node state tree. This rejects project-local same-version impersonators. */
|
|
5
5
|
forbiddenRoots?: readonly string[];
|
|
6
|
+
/** #543 — npm package that must own the entrypoint. Absent = V1
|
|
7
|
+
* `opencode-ai`, exactly the pre-#543 gate; V2 passes `@opencode/cli`. */
|
|
8
|
+
packageName?: string;
|
|
6
9
|
}
|
|
7
10
|
/** Current cwd plus every enclosing source-workspace boundary. This catches a
|
|
8
11
|
* monorepo root's node_modules when anet is invoked from packages/app. */
|
|
@@ -15,6 +15,8 @@ export interface OpencodeGenerationSupport {
|
|
|
15
15
|
/** The V1 release pin. Kept as its own literal line so shell suites can
|
|
16
16
|
* read it with a single anchored sed (tests/test1225…/run.sh). */
|
|
17
17
|
export declare const OPENCODE_V1_PIN = "1.18.34";
|
|
18
|
+
/** The V2 preview pin (#543). Vetted by tests/test543-… against a stub model. */
|
|
19
|
+
export declare const OPENCODE_V2_PIN = "2.0.22";
|
|
18
20
|
export declare const OPENCODE_SUPPORTED_VERSIONS: readonly OpencodeGenerationSupport[];
|
|
19
21
|
/** Generation assumed for every node record that does not name one. */
|
|
20
22
|
export declare const OPENCODE_DEFAULT_GENERATION: OpencodeGeneration;
|
|
@@ -30,3 +32,13 @@ export declare function isAcceptedOpencodeVersionFor(generation: OpencodeGenerat
|
|
|
30
32
|
export declare function opencodeGenerationOfConfig(config: {
|
|
31
33
|
opencodeGeneration?: unknown;
|
|
32
34
|
} | null | undefined): OpencodeGeneration | undefined;
|
|
35
|
+
/** Why `generation` may not run on a node with these settings, as ONE
|
|
36
|
+
* actionable line — or null when it may. V1 is never refused here. V2
|
|
37
|
+
* (#543 preview) runs only in co-presence mode and only with
|
|
38
|
+
* flags.opencodeUnsafeTools=true: it ignores the V1 safety env, so under the
|
|
39
|
+
* default safe preset it would run with every local tool enabled. */
|
|
40
|
+
export declare function opencodeGenerationRefusal(generation: OpencodeGeneration, opts: {
|
|
41
|
+
unsafeTools: boolean;
|
|
42
|
+
mode?: "headless" | "copresence" | string;
|
|
43
|
+
configFile?: string;
|
|
44
|
+
}): string | null;
|
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.140",
|
|
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",
|