nexus-agents 2.55.0 → 2.56.0
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/{chunk-HQ43NDJW.js → chunk-BPMQRYGU.js} +6 -109
- package/dist/chunk-BPMQRYGU.js.map +1 -0
- package/dist/chunk-C3FGEDD7.js +2520 -0
- package/dist/chunk-C3FGEDD7.js.map +1 -0
- package/dist/{chunk-KTJIEY77.js → chunk-EJLWDYK7.js} +1985 -3653
- package/dist/chunk-EJLWDYK7.js.map +1 -0
- package/dist/{chunk-JEKPVSC4.js → chunk-KGMC6F5D.js} +357 -13
- package/dist/chunk-KGMC6F5D.js.map +1 -0
- package/dist/chunk-NUBSJGQZ.js +14 -0
- package/dist/chunk-NUBSJGQZ.js.map +1 -0
- package/dist/{chunk-JERFBN73.js → chunk-PCMWLXT4.js} +6 -16
- package/dist/chunk-PCMWLXT4.js.map +1 -0
- package/dist/chunk-R66AWJJ7.js +120 -0
- package/dist/chunk-R66AWJJ7.js.map +1 -0
- package/dist/cli.d.ts +9 -1
- package/dist/cli.js +337 -213
- package/dist/cli.js.map +1 -1
- package/dist/{consensus-vote-NRPXA57O.js → consensus-vote-G6H532ME.js} +3 -2
- package/dist/index.js +35 -32
- package/dist/index.js.map +1 -1
- package/dist/{research-helpers-synthesize-TFZIXBX3.js → research-helpers-synthesize-E6WQLQKP.js} +3 -2
- package/dist/{setup-command-NGAJEWE4.js → setup-command-AV4MODEL.js} +5 -3
- package/dist/setup-custom-api-XAWKRDWV.js +107 -0
- package/dist/setup-custom-api-XAWKRDWV.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-HQ43NDJW.js.map +0 -1
- package/dist/chunk-JEKPVSC4.js.map +0 -1
- package/dist/chunk-JERFBN73.js.map +0 -1
- package/dist/chunk-KTJIEY77.js.map +0 -1
- package/dist/chunk-SY344FS5.js +0 -839
- package/dist/chunk-SY344FS5.js.map +0 -1
- /package/dist/{consensus-vote-NRPXA57O.js.map → consensus-vote-G6H532ME.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-TFZIXBX3.js.map → research-helpers-synthesize-E6WQLQKP.js.map} +0 -0
- /package/dist/{setup-command-NGAJEWE4.js.map → setup-command-AV4MODEL.js.map} +0 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ConfigError,
|
|
3
|
+
err,
|
|
4
|
+
ok
|
|
5
|
+
} from "./chunk-UOUJZIKH.js";
|
|
6
|
+
|
|
7
|
+
// src/adapters/sdk/types.ts
|
|
8
|
+
var PROVIDER_ENV_KEYS = {
|
|
9
|
+
anthropic: "ANTHROPIC_API_KEY",
|
|
10
|
+
openai: "OPENAI_API_KEY",
|
|
11
|
+
google: "GOOGLE_AI_API_KEY",
|
|
12
|
+
"custom-openai": "NEXUS_CUSTOM_API_KEY"
|
|
13
|
+
};
|
|
14
|
+
var CUSTOM_API_BASE_URL_ENV = "NEXUS_CUSTOM_API_BASE_URL";
|
|
15
|
+
var CUSTOM_API_ALLOW_PRIVATE_ENV = "NEXUS_CUSTOM_API_ALLOW_PRIVATE";
|
|
16
|
+
|
|
17
|
+
// src/adapters/sdk/custom-api-validation.ts
|
|
18
|
+
import { isIPv4, isIPv6 } from "net";
|
|
19
|
+
function validateCustomApiBaseUrl(raw, opts = {}) {
|
|
20
|
+
if (raw === void 0 || raw.trim() === "") {
|
|
21
|
+
return err(
|
|
22
|
+
new ConfigError(
|
|
23
|
+
"Custom API base URL is required but missing. Set NEXUS_CUSTOM_API_BASE_URL or pass `baseUrl` in config."
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
let url;
|
|
28
|
+
try {
|
|
29
|
+
url = new URL(raw);
|
|
30
|
+
} catch {
|
|
31
|
+
return err(new ConfigError(`Custom API base URL is not a valid URL: ${raw}`));
|
|
32
|
+
}
|
|
33
|
+
if (url.protocol !== "http:" && url.protocol !== "https:") {
|
|
34
|
+
return err(
|
|
35
|
+
new ConfigError(`Custom API base URL must use http or https, got "${url.protocol}" in ${raw}`)
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
const allowPrivate = opts.allowPrivate === true || resolveAllowPrivateFromEnv();
|
|
39
|
+
if (!allowPrivate) {
|
|
40
|
+
const rejection = classifyPrivateHost(url.hostname);
|
|
41
|
+
if (rejection !== null) {
|
|
42
|
+
return err(
|
|
43
|
+
new ConfigError(
|
|
44
|
+
`Custom API base URL rejected (SSRF guard, reason="${rejection.reason}"): ${rejection.message}. Set ${CUSTOM_API_ALLOW_PRIVATE_ENV}=1 to bypass if the gateway runs on a trusted internal host.`
|
|
45
|
+
)
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return ok(url);
|
|
50
|
+
}
|
|
51
|
+
function resolveAllowPrivateFromEnv() {
|
|
52
|
+
const v = process.env[CUSTOM_API_ALLOW_PRIVATE_ENV];
|
|
53
|
+
return v === "1" || v === "true";
|
|
54
|
+
}
|
|
55
|
+
function classifyPrivateHost(hostname) {
|
|
56
|
+
const stripped = hostname.startsWith("[") && hostname.endsWith("]") ? hostname.slice(1, -1) : hostname;
|
|
57
|
+
const normalized = stripped.toLowerCase();
|
|
58
|
+
if (isIPv4(normalized)) {
|
|
59
|
+
return classifyIPv4(normalized);
|
|
60
|
+
}
|
|
61
|
+
if (isIPv6(normalized)) {
|
|
62
|
+
return classifyIPv6(normalized);
|
|
63
|
+
}
|
|
64
|
+
if (normalized === "localhost" || normalized.endsWith(".localhost") || normalized.endsWith(".local")) {
|
|
65
|
+
return {
|
|
66
|
+
reason: "loopback",
|
|
67
|
+
message: `hostname "${hostname}" resolves to loopback/mDNS`
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
var IPV4_RULES = [
|
|
73
|
+
{ match: (a) => a === 127, reason: "loopback", label: "IPv4 loopback" },
|
|
74
|
+
{ match: (a) => a === 10, reason: "private_range", label: "IPv4 private (10/8)" },
|
|
75
|
+
{
|
|
76
|
+
match: (a, b) => a === 172 && b >= 16 && b <= 31,
|
|
77
|
+
reason: "private_range",
|
|
78
|
+
label: "IPv4 private (172.16/12)"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
match: (a, b) => a === 192 && b === 168,
|
|
82
|
+
reason: "private_range",
|
|
83
|
+
label: "IPv4 private (192.168/16)"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
match: (a, b) => a === 169 && b === 254,
|
|
87
|
+
reason: "link_local",
|
|
88
|
+
label: "IPv4 link-local (169.254/16 \u2014 AWS IMDS)"
|
|
89
|
+
},
|
|
90
|
+
{ match: (a) => a === 0, reason: "reserved", label: "IPv4 reserved (0/8)" }
|
|
91
|
+
];
|
|
92
|
+
function classifyIPv4(ip) {
|
|
93
|
+
const parts = ip.split(".").map((p) => Number.parseInt(p, 10));
|
|
94
|
+
if (parts.length !== 4 || parts.some((n) => Number.isNaN(n))) return null;
|
|
95
|
+
const [a, b] = parts;
|
|
96
|
+
for (const rule of IPV4_RULES) {
|
|
97
|
+
if (rule.match(a, b)) {
|
|
98
|
+
return { reason: rule.reason, message: `${rule.label} (${ip})` };
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
function classifyIPv6(ip) {
|
|
104
|
+
const lower = ip.toLowerCase();
|
|
105
|
+
if (lower === "::1") return { reason: "loopback", message: `IPv6 loopback (${ip})` };
|
|
106
|
+
if (lower.startsWith("fe80:"))
|
|
107
|
+
return { reason: "link_local", message: `IPv6 link-local (${ip})` };
|
|
108
|
+
if (/^fc|^fd/.test(lower)) {
|
|
109
|
+
return { reason: "private_range", message: `IPv6 unique-local (${ip}, fc00::/7)` };
|
|
110
|
+
}
|
|
111
|
+
return null;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export {
|
|
115
|
+
PROVIDER_ENV_KEYS,
|
|
116
|
+
CUSTOM_API_BASE_URL_ENV,
|
|
117
|
+
CUSTOM_API_ALLOW_PRIVATE_ENV,
|
|
118
|
+
validateCustomApiBaseUrl
|
|
119
|
+
};
|
|
120
|
+
//# sourceMappingURL=chunk-R66AWJJ7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/adapters/sdk/types.ts","../src/adapters/sdk/custom-api-validation.ts"],"sourcesContent":["/**\n * nexus-agents/adapters/sdk - Shared Types\n *\n * Type definitions for AI SDK adapter layer.\n *\n * @module adapters/sdk/types\n * (Source: Issue #1123 — AI SDK provider layer)\n */\n\n/**\n * Supported AI SDK provider identifiers.\n *\n * `custom-openai` is for OpenAI-compatible gateways (multi-vendor proxies,\n * self-hosted LLM servers, corporate model gateways) — uses the same\n * @ai-sdk/openai package but with a configurable `baseURL`.\n */\nexport type SdkProviderId = 'anthropic' | 'openai' | 'google' | 'custom-openai';\n\n/**\n * Configuration for creating an AI SDK adapter.\n */\nexport interface SdkAdapterConfig {\n /** Provider identifier */\n providerId: SdkProviderId;\n /** Model to use (e.g., 'claude-sonnet-4-6', 'gpt-4o') */\n modelId: string;\n /** API key (falls back to environment variable) */\n apiKey?: string;\n /**\n * Base URL for OpenAI-compatible gateways. Required when\n * `providerId === 'custom-openai'`, ignored otherwise. Falls back to\n * the `NEXUS_CUSTOM_API_BASE_URL` environment variable.\n */\n baseUrl?: string;\n /** Request timeout in milliseconds */\n timeout?: number;\n /** Maximum retries on transient failures */\n maxRetries?: number;\n}\n\n/**\n * Maps provider IDs to their environment variable names.\n */\nexport const PROVIDER_ENV_KEYS: Record<SdkProviderId, string> = {\n anthropic: 'ANTHROPIC_API_KEY',\n openai: 'OPENAI_API_KEY',\n google: 'GOOGLE_AI_API_KEY',\n 'custom-openai': 'NEXUS_CUSTOM_API_KEY',\n};\n\n/**\n * Environment variable name for the custom gateway base URL.\n * Keep in sync with `SdkAdapterConfig.baseUrl`.\n */\nexport const CUSTOM_API_BASE_URL_ENV = 'NEXUS_CUSTOM_API_BASE_URL';\n\n/**\n * Escape hatch: set to `1`/`true` to allow the custom gateway base URL to\n * resolve to a loopback or RFC 1918 private address. Default is DENY —\n * SSRF defense. Only disable this when you know the gateway runs on a\n * trusted internal host and you accept the risk.\n */\nexport const CUSTOM_API_ALLOW_PRIVATE_ENV = 'NEXUS_CUSTOM_API_ALLOW_PRIVATE';\n","/**\n * Validation for the `custom-openai` SDK adapter's gateway URL.\n *\n * The base URL is user-provided, so without validation the adapter becomes\n * an SSRF vector: a malicious prompt that reshaped env vars, or a typo in\n * the config, could point nexus-agents at `http://169.254.169.254/` (AWS\n * metadata) or `http://localhost:5432/` (internal services). This module\n * rejects such URLs unless the user explicitly opts in via\n * `NEXUS_CUSTOM_API_ALLOW_PRIVATE=1`.\n *\n * Called out in the #2119 consensus vote by the Security Engineer role.\n *\n * @module adapters/sdk/custom-api-validation\n */\n\nimport { isIPv4, isIPv6 } from 'node:net';\nimport { ConfigError, ok, err, type Result } from '../../core/index.js';\nimport { CUSTOM_API_ALLOW_PRIVATE_ENV } from './types.js';\n\n/**\n * Why a given URL was rejected. Machine-readable so error messages can\n * distinguish root causes in downstream tooling.\n */\nexport type BaseUrlRejectionReason =\n | 'empty'\n | 'not_a_url'\n | 'not_http_https'\n | 'loopback'\n | 'link_local'\n | 'private_range'\n | 'reserved';\n\ninterface RejectionDetail {\n readonly reason: BaseUrlRejectionReason;\n readonly message: string;\n}\n\n/**\n * Validates a user-provided custom-gateway base URL. Returns the URL as an\n * `ok` Result if it passes, or a `ConfigError` with a machine-readable\n * reason if it fails.\n *\n * Pass `{ allowPrivate: true }` (or set the env var) to bypass the SSRF\n * checks — use this only when the gateway is on a trusted internal host\n * and you accept the risk.\n */\nexport function validateCustomApiBaseUrl(\n raw: string | undefined,\n opts: { readonly allowPrivate?: boolean } = {}\n): Result<URL, ConfigError> {\n if (raw === undefined || raw.trim() === '') {\n return err(\n new ConfigError(\n 'Custom API base URL is required but missing. Set NEXUS_CUSTOM_API_BASE_URL or pass `baseUrl` in config.'\n )\n );\n }\n\n let url: URL;\n try {\n url = new URL(raw);\n } catch {\n return err(new ConfigError(`Custom API base URL is not a valid URL: ${raw}`));\n }\n\n if (url.protocol !== 'http:' && url.protocol !== 'https:') {\n return err(\n new ConfigError(`Custom API base URL must use http or https, got \"${url.protocol}\" in ${raw}`)\n );\n }\n\n const allowPrivate = opts.allowPrivate === true || resolveAllowPrivateFromEnv();\n if (!allowPrivate) {\n const rejection = classifyPrivateHost(url.hostname);\n if (rejection !== null) {\n return err(\n new ConfigError(\n `Custom API base URL rejected (SSRF guard, reason=\"${rejection.reason}\"): ${rejection.message}. ` +\n `Set ${CUSTOM_API_ALLOW_PRIVATE_ENV}=1 to bypass if the gateway runs on a trusted internal host.`\n )\n );\n }\n }\n\n return ok(url);\n}\n\nfunction resolveAllowPrivateFromEnv(): boolean {\n const v = process.env[CUSTOM_API_ALLOW_PRIVATE_ENV];\n return v === '1' || v === 'true';\n}\n\n/**\n * Returns a rejection reason if the hostname resolves (by string form) to\n * a loopback, link-local, or RFC 1918 private address; `null` otherwise.\n *\n * Note: this is a string-level check. It does NOT perform DNS resolution,\n * so a public DNS name that secretly resolves to a private IP will pass.\n * Callers who need that level of defense should add a runtime connect\n * check and validate the socket peer address.\n */\nfunction classifyPrivateHost(hostname: string): RejectionDetail | null {\n // URL.hostname wraps IPv6 literals in brackets (e.g. \"[::1]\"); strip them\n // before the net-module checks, which expect bare forms.\n const stripped =\n hostname.startsWith('[') && hostname.endsWith(']') ? hostname.slice(1, -1) : hostname;\n const normalized = stripped.toLowerCase();\n\n // Literal IPv4 loopback or private-range address\n if (isIPv4(normalized)) {\n return classifyIPv4(normalized);\n }\n\n // Literal IPv6 loopback (::1), link-local (fe80::/10), unique-local (fc00::/7)\n if (isIPv6(normalized)) {\n return classifyIPv6(normalized);\n }\n\n // Hostname literals that resolve to loopback without needing DNS\n if (\n normalized === 'localhost' ||\n normalized.endsWith('.localhost') ||\n normalized.endsWith('.local') // mDNS\n ) {\n return {\n reason: 'loopback',\n message: `hostname \"${hostname}\" resolves to loopback/mDNS`,\n };\n }\n\n return null;\n}\n\n/** IPv4 ranges the SSRF guard rejects, in order of specificity. */\nconst IPV4_RULES: ReadonlyArray<{\n readonly match: (a: number, b: number) => boolean;\n readonly reason: BaseUrlRejectionReason;\n readonly label: string;\n}> = [\n { match: (a) => a === 127, reason: 'loopback', label: 'IPv4 loopback' },\n { match: (a) => a === 10, reason: 'private_range', label: 'IPv4 private (10/8)' },\n {\n match: (a, b) => a === 172 && b >= 16 && b <= 31,\n reason: 'private_range',\n label: 'IPv4 private (172.16/12)',\n },\n {\n match: (a, b) => a === 192 && b === 168,\n reason: 'private_range',\n label: 'IPv4 private (192.168/16)',\n },\n {\n match: (a, b) => a === 169 && b === 254,\n reason: 'link_local',\n label: 'IPv4 link-local (169.254/16 — AWS IMDS)',\n },\n { match: (a) => a === 0, reason: 'reserved', label: 'IPv4 reserved (0/8)' },\n];\n\nfunction classifyIPv4(ip: string): RejectionDetail | null {\n const parts = ip.split('.').map((p) => Number.parseInt(p, 10));\n if (parts.length !== 4 || parts.some((n) => Number.isNaN(n))) return null;\n const [a, b] = parts as [number, number, number, number];\n for (const rule of IPV4_RULES) {\n if (rule.match(a, b)) {\n return { reason: rule.reason, message: `${rule.label} (${ip})` };\n }\n }\n return null;\n}\n\nfunction classifyIPv6(ip: string): RejectionDetail | null {\n const lower = ip.toLowerCase();\n if (lower === '::1') return { reason: 'loopback', message: `IPv6 loopback (${ip})` };\n if (lower.startsWith('fe80:'))\n return { reason: 'link_local', message: `IPv6 link-local (${ip})` };\n // Unique-local: fc00::/7 → first byte has high bit set and second-high bit set\n if (/^fc|^fd/.test(lower)) {\n return { reason: 'private_range', message: `IPv6 unique-local (${ip}, fc00::/7)` };\n }\n return null;\n}\n"],"mappings":";;;;;;;AA2CO,IAAM,oBAAmD;AAAA,EAC9D,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,iBAAiB;AACnB;AAMO,IAAM,0BAA0B;A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AAI,UAAU,MAAO,QAAO,EAAE,QAAQ,YAAY,SAAS,kBAAkB,EAAE,IAAI;AACnF,MAAI,MAAM,WAAW,OAAO;AAC1B,WAAO,EAAE,QAAQ,cAAc,SAAS,oBAAoB,EAAE,IAAI;AAEpE,MAAI,UAAU,KAAK,KAAK,GAAG;AACzB,WAAO,EAAE,QAAQ,iBAAiB,SAAS,sBAAsB,EAAE,cAAc;AAAA,EACnF;AACA,SAAO;AACT;","names":[]}
|
package/dist/cli.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ interface ParsedCliArgs {
|
|
|
50
50
|
version: boolean;
|
|
51
51
|
verbose: boolean;
|
|
52
52
|
interactive: boolean;
|
|
53
|
+
all: boolean;
|
|
53
54
|
mode: ServerMode;
|
|
54
55
|
output?: string;
|
|
55
56
|
force: boolean;
|
|
@@ -98,6 +99,9 @@ interface ParsedCliArgs {
|
|
|
98
99
|
skipGemini: boolean;
|
|
99
100
|
skipCodex: boolean;
|
|
100
101
|
scope?: 'user' | 'project';
|
|
102
|
+
customApi?: string;
|
|
103
|
+
customApiKey?: string;
|
|
104
|
+
customModel?: string;
|
|
101
105
|
mock: boolean;
|
|
102
106
|
deep: boolean;
|
|
103
107
|
};
|
|
@@ -119,8 +123,12 @@ interface ParsedCliArgs {
|
|
|
119
123
|
|
|
120
124
|
/**
|
|
121
125
|
* Prints help text to stdout.
|
|
126
|
+
*
|
|
127
|
+
* Default output hides maintainer commands (benchmarks, release tooling, deep
|
|
128
|
+
* diagnostics). Pass `--all` to include them. See `cli-command-catalog.ts` for
|
|
129
|
+
* the audience classification.
|
|
122
130
|
*/
|
|
123
|
-
declare function printHelp(): void;
|
|
131
|
+
declare function printHelp(args?: ParsedCliArgs): void;
|
|
124
132
|
/**
|
|
125
133
|
* Prints version information to stdout.
|
|
126
134
|
*/
|