@sleep2agi/agent-network 2.3.0-preview.64 → 2.3.0-preview.65

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.64";
2
- export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.49";
3
- export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.49";
4
- export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.64";
5
- export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.49";
6
- export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.49";
1
+ export declare const PAIRED_AGENT_NETWORK_VERSION = "2.3.0-preview.65";
2
+ export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.50";
3
+ export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.50";
4
+ export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.65";
5
+ export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.50";
6
+ export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.50";
7
7
  export type PairedAgentNodeResolution = {
8
8
  spec: string;
9
9
  args: string[];
@@ -0,0 +1 @@
1
+ export declare function serializeProfileForConfigJson(normalized: Record<string, any>, profile: Record<string, any>): Record<string, any>;
@@ -0,0 +1,28 @@
1
+ export declare const CLAUDE_KNOWN_TOOLS: readonly string[];
2
+ type Runtime = string;
3
+ /** Parse the comma-joined --tools string, validate each token, return the
4
+ * trimmed list. Runtime-scoped:
5
+ *
6
+ * Claude-lineage → each token must be in CLAUDE_KNOWN_TOOLS OR match
7
+ * the MCP pattern (mcp__<server>__<tool>).
8
+ * Other runtimes → only the basic per-token format check runs, so grok /
9
+ * codex / opencode tools flow through unchanged and get
10
+ * validated by their own downstream layers.
11
+ *
12
+ * Throws on the first offense with a message naming the bad token and,
13
+ * for Claude-side violations, the expected set. Never returns a
14
+ * partially-cleaned list — a typo must surface, not silently reshape the
15
+ * persisted profile.
16
+ */
17
+ export declare function parseAndValidateTools(raw: string, runtime: Runtime): string[];
18
+ /** Minimal --model validation: non-empty after trim, no whitespace inside.
19
+ *
20
+ * We do NOT enforce a known-model allowlist — models are vendor-defined,
21
+ * evolve independently, and a strict list would break the first time
22
+ * MiniMax/DeepSeek/GLM/etc. ships a new variant. This catches the obvious
23
+ * user-side typos (`--model " claude-3 " `, `--model ""`) without
24
+ * over-restricting legitimate values. Vendor-side model resolution
25
+ * (defaultCodexModelForRuntime etc.) already validates its own contract.
26
+ */
27
+ export declare function validateModel(raw: string): string;
28
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network",
3
- "version": "2.3.0-preview.64",
3
+ "version": "2.3.0-preview.65",
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",