nexus-agents 2.109.1 → 2.109.3

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.
Files changed (30) hide show
  1. package/dist/{chunk-ZFDG2CDY.js → chunk-4C6M5YOH.js} +60 -8
  2. package/dist/chunk-4C6M5YOH.js.map +1 -0
  3. package/dist/{chunk-O737ZOZ6.js → chunk-CWT7BYHU.js} +9 -9
  4. package/dist/{chunk-IUDSDQIF.js → chunk-DYZIT5UH.js} +3 -3
  5. package/dist/{chunk-HBPDYYIT.js → chunk-H7K2CWCL.js} +2 -2
  6. package/dist/{chunk-SAR5IO7V.js → chunk-LGLMWGRY.js} +5 -5
  7. package/dist/{chunk-N5I4PC3P.js → chunk-RRIATGO4.js} +30 -2
  8. package/dist/chunk-RRIATGO4.js.map +1 -0
  9. package/dist/{chunk-RCN76RFJ.js → chunk-XJTVIYD7.js} +3 -3
  10. package/dist/cli.js +8 -8
  11. package/dist/{consensus-vote-HK5G3DYU.js → consensus-vote-NILXRDWC.js} +4 -4
  12. package/dist/{expert-bridge-N7PLXYBV.js → expert-bridge-K5TTFOSI.js} +2 -2
  13. package/dist/{factory-UVXXFLOI.js → factory-KAYVCFRV.js} +3 -3
  14. package/dist/index.d.ts +14 -0
  15. package/dist/index.js +7 -7
  16. package/dist/{setup-command-O4BGMJIC.js → setup-command-ZTIRFLFV.js} +5 -5
  17. package/dist/{setup-custom-api-SMLJ27IY.js → setup-custom-api-UTROX3FM.js} +2 -2
  18. package/package.json +1 -1
  19. package/dist/chunk-N5I4PC3P.js.map +0 -1
  20. package/dist/chunk-ZFDG2CDY.js.map +0 -1
  21. /package/dist/{chunk-O737ZOZ6.js.map → chunk-CWT7BYHU.js.map} +0 -0
  22. /package/dist/{chunk-IUDSDQIF.js.map → chunk-DYZIT5UH.js.map} +0 -0
  23. /package/dist/{chunk-HBPDYYIT.js.map → chunk-H7K2CWCL.js.map} +0 -0
  24. /package/dist/{chunk-SAR5IO7V.js.map → chunk-LGLMWGRY.js.map} +0 -0
  25. /package/dist/{chunk-RCN76RFJ.js.map → chunk-XJTVIYD7.js.map} +0 -0
  26. /package/dist/{consensus-vote-HK5G3DYU.js.map → consensus-vote-NILXRDWC.js.map} +0 -0
  27. /package/dist/{expert-bridge-N7PLXYBV.js.map → expert-bridge-K5TTFOSI.js.map} +0 -0
  28. /package/dist/{factory-UVXXFLOI.js.map → factory-KAYVCFRV.js.map} +0 -0
  29. /package/dist/{setup-command-O4BGMJIC.js.map → setup-command-ZTIRFLFV.js.map} +0 -0
  30. /package/dist/{setup-custom-api-SMLJ27IY.js.map → setup-custom-api-UTROX3FM.js.map} +0 -0
@@ -19,7 +19,7 @@ import {
19
19
  delay,
20
20
  getAvailableClis,
21
21
  withTimeout
22
- } from "./chunk-N5I4PC3P.js";
22
+ } from "./chunk-RRIATGO4.js";
23
23
  import {
24
24
  mapModelErrorToCategory
25
25
  } from "./chunk-K3UILZ5X.js";
@@ -6127,7 +6127,7 @@ async function processVotesWithCascade(engineVotes, opts) {
6127
6127
  var CONTRARIAN_ESCALATION_THRESHOLD = 0.8;
6128
6128
  async function runContrarianCheck(proposal, log) {
6129
6129
  try {
6130
- const { executeExpert } = await import("./expert-bridge-N7PLXYBV.js");
6130
+ const { executeExpert } = await import("./expert-bridge-K5TTFOSI.js");
6131
6131
  const prompt = [
6132
6132
  "You are a contrarian analyst. Your job is to find reasons this proposal should be REJECTED.",
6133
6133
  "Look for: YAGNI (not needed), MISALIGNED (wrong tech/architecture), SECURITY_RISK, SCOPE_CREEP.",
@@ -6611,4 +6611,4 @@ export {
6611
6611
  CONSENSUS_VOTE_OUTPUT_SCHEMA,
6612
6612
  registerConsensusVoteTool
6613
6613
  };
6614
- //# sourceMappingURL=chunk-RCN76RFJ.js.map
6614
+ //# sourceMappingURL=chunk-XJTVIYD7.js.map
package/dist/cli.js CHANGED
@@ -24,7 +24,7 @@ import {
24
24
  import {
25
25
  setupCommandAsync,
26
26
  verifyCommand
27
- } from "./chunk-IUDSDQIF.js";
27
+ } from "./chunk-DYZIT5UH.js";
28
28
  import "./chunk-V5UOHHOD.js";
29
29
  import {
30
30
  AuthHandler,
@@ -166,7 +166,7 @@ import {
166
166
  validateCommand,
167
167
  validateWorkflow,
168
168
  wrapInMarkdownFence
169
- } from "./chunk-O737ZOZ6.js";
169
+ } from "./chunk-CWT7BYHU.js";
170
170
  import "./chunk-3ACDP4E6.js";
171
171
  import {
172
172
  resolveToken
@@ -179,7 +179,7 @@ import "./chunk-LLM3HY54.js";
179
179
  import "./chunk-H47QJVMR.js";
180
180
  import {
181
181
  shutdownExpertBridge
182
- } from "./chunk-HBPDYYIT.js";
182
+ } from "./chunk-H7K2CWCL.js";
183
183
  import {
184
184
  DEFAULT_VOTE_TIMEOUT_MS,
185
185
  ErrorPolicySchema,
@@ -189,7 +189,7 @@ import {
189
189
  executeVoting,
190
190
  registerConsensusVoteTool,
191
191
  warnIfSimulatedOutsideTests
192
- } from "./chunk-RCN76RFJ.js";
192
+ } from "./chunk-XJTVIYD7.js";
193
193
  import {
194
194
  loadPapersRegistry,
195
195
  loadTechniquesRegistry,
@@ -249,7 +249,7 @@ import {
249
249
  loadConfig,
250
250
  runDoctor,
251
251
  validateNexusEnv
252
- } from "./chunk-SAR5IO7V.js";
252
+ } from "./chunk-LGLMWGRY.js";
253
253
  import "./chunk-NUBSJGQZ.js";
254
254
  import {
255
255
  capitalize,
@@ -261,11 +261,11 @@ import {
261
261
  getAvailableClis,
262
262
  isRecord,
263
263
  probeAllClis
264
- } from "./chunk-N5I4PC3P.js";
264
+ } from "./chunk-RRIATGO4.js";
265
265
  import "./chunk-H6Q3EPQG.js";
266
266
  import {
267
267
  DEFAULTS
268
- } from "./chunk-ZFDG2CDY.js";
268
+ } from "./chunk-4C6M5YOH.js";
269
269
  import "./chunk-K3UILZ5X.js";
270
270
  import "./chunk-RMTFEDQV.js";
271
271
  import "./chunk-IJZGHD7O.js";
@@ -20594,7 +20594,7 @@ async function handleSetupCommandAsync(args) {
20594
20594
  process.exit(exitCode === 0 ? EXIT_CODES.SUCCESS : EXIT_CODES.SERVER_START_FAILED);
20595
20595
  }
20596
20596
  async function runCustomApiSetup(args) {
20597
- const { configureCustomApi } = await import("./setup-custom-api-SMLJ27IY.js");
20597
+ const { configureCustomApi } = await import("./setup-custom-api-UTROX3FM.js");
20598
20598
  const baseUrl = args.options.customApi;
20599
20599
  if (baseUrl === void 0) return EXIT_CODES.SERVER_START_FAILED;
20600
20600
  const input = {
@@ -6,13 +6,13 @@ import {
6
6
  executeVoting,
7
7
  registerConsensusVoteTool,
8
8
  resetCorrelationTracker
9
- } from "./chunk-RCN76RFJ.js";
9
+ } from "./chunk-XJTVIYD7.js";
10
10
  import "./chunk-4QH4IHCY.js";
11
11
  import "./chunk-5H3YYSMY.js";
12
12
  import "./chunk-6T3EPABN.js";
13
- import "./chunk-N5I4PC3P.js";
13
+ import "./chunk-RRIATGO4.js";
14
14
  import "./chunk-H6Q3EPQG.js";
15
- import "./chunk-ZFDG2CDY.js";
15
+ import "./chunk-4C6M5YOH.js";
16
16
  import "./chunk-K3UILZ5X.js";
17
17
  import "./chunk-RMTFEDQV.js";
18
18
  import "./chunk-IJZGHD7O.js";
@@ -30,4 +30,4 @@ export {
30
30
  registerConsensusVoteTool,
31
31
  resetCorrelationTracker
32
32
  };
33
- //# sourceMappingURL=consensus-vote-HK5G3DYU.js.map
33
+ //# sourceMappingURL=consensus-vote-NILXRDWC.js.map
@@ -3,7 +3,7 @@ import {
3
3
  shutdownExpertBridge,
4
4
  tokenSplitFromUsage,
5
5
  totalTokensFromUsage
6
- } from "./chunk-HBPDYYIT.js";
6
+ } from "./chunk-H7K2CWCL.js";
7
7
  import "./chunk-RMTFEDQV.js";
8
8
  import "./chunk-VO7FEIXD.js";
9
9
  import "./chunk-CH7QIDHQ.js";
@@ -14,4 +14,4 @@ export {
14
14
  tokenSplitFromUsage,
15
15
  totalTokensFromUsage
16
16
  };
17
- //# sourceMappingURL=expert-bridge-N7PLXYBV.js.map
17
+ //# sourceMappingURL=expert-bridge-K5TTFOSI.js.map
@@ -3,9 +3,9 @@ import {
3
3
  createCliAdapter,
4
4
  getAvailableClis,
5
5
  isCliAvailable
6
- } from "./chunk-N5I4PC3P.js";
6
+ } from "./chunk-RRIATGO4.js";
7
7
  import "./chunk-H6Q3EPQG.js";
8
- import "./chunk-ZFDG2CDY.js";
8
+ import "./chunk-4C6M5YOH.js";
9
9
  import "./chunk-K3UILZ5X.js";
10
10
  import "./chunk-RMTFEDQV.js";
11
11
  import "./chunk-IJZGHD7O.js";
@@ -18,4 +18,4 @@ export {
18
18
  getAvailableClis,
19
19
  isCliAvailable
20
20
  };
21
- //# sourceMappingURL=factory-UVXXFLOI.js.map
21
+ //# sourceMappingURL=factory-KAYVCFRV.js.map
package/dist/index.d.ts CHANGED
@@ -7288,6 +7288,12 @@ declare class SdkAdapter extends BaseAdapter {
7288
7288
  private readonly customBaseUrl;
7289
7289
  /** Inflight init promise for coalescing concurrent calls (Issue #1438). */
7290
7290
  private initPromise;
7291
+ /**
7292
+ * Cached result of the DNS-resolve-time SSRF check for custom-openai
7293
+ * (#3426). Resolved once on first init so we don't re-resolve the gateway
7294
+ * hostname on every request. `undefined` until the check has run.
7295
+ */
7296
+ private resolveSsrfChecked;
7291
7297
  constructor(config: SdkAdapterConfig, logger?: ILogger);
7292
7298
  /**
7293
7299
  * Lazily initialize the AI SDK model and functions.
@@ -7296,6 +7302,14 @@ declare class SdkAdapter extends BaseAdapter {
7296
7302
  */
7297
7303
  private ensureInitialized;
7298
7304
  private doInitialize;
7305
+ /**
7306
+ * For custom-openai only: run the DNS-resolve-time SSRF check exactly once
7307
+ * and throw if the gateway hostname resolves to a private address (#3426).
7308
+ * Cached via `resolveSsrfChecked` so the hostname is not re-resolved on
7309
+ * every request. No-op for non-custom providers (built-in endpoints are
7310
+ * trusted) and when no custom base URL is configured.
7311
+ */
7312
+ private ensureCustomHostResolvesPublic;
7299
7313
  /**
7300
7314
  * Loads the provider-specific AI SDK module.
7301
7315
  *
package/dist/index.js CHANGED
@@ -517,7 +517,7 @@ import {
517
517
  validateWorkflow,
518
518
  validateWorkflowDependencies,
519
519
  withLogging
520
- } from "./chunk-O737ZOZ6.js";
520
+ } from "./chunk-CWT7BYHU.js";
521
521
  import "./chunk-3ACDP4E6.js";
522
522
  import {
523
523
  getTokenEnvVars,
@@ -537,7 +537,7 @@ import {
537
537
  } from "./chunk-H47QJVMR.js";
538
538
  import {
539
539
  executeExpert
540
- } from "./chunk-HBPDYYIT.js";
540
+ } from "./chunk-H7K2CWCL.js";
541
541
  import {
542
542
  AgentFindingSchema,
543
543
  AgentPerformanceSchema,
@@ -604,7 +604,7 @@ import {
604
604
  resetGlobalRegistry,
605
605
  withModelNotFoundFallback,
606
606
  wrapResilientWithFallback
607
- } from "./chunk-RCN76RFJ.js";
607
+ } from "./chunk-XJTVIYD7.js";
608
608
  import "./chunk-UIFDDBIG.js";
609
609
  import {
610
610
  AgentActionSchema,
@@ -723,7 +723,7 @@ import {
723
723
  getKnownNexusVarNames,
724
724
  startStdioServer,
725
725
  validateNexusEnv
726
- } from "./chunk-SAR5IO7V.js";
726
+ } from "./chunk-LGLMWGRY.js";
727
727
  import "./chunk-NUBSJGQZ.js";
728
728
  import "./chunk-6T3EPABN.js";
729
729
  import {
@@ -763,7 +763,7 @@ import {
763
763
  isRetryableError,
764
764
  messagesToAnthropicFormat,
765
765
  sleep
766
- } from "./chunk-N5I4PC3P.js";
766
+ } from "./chunk-RRIATGO4.js";
767
767
  import {
768
768
  AdapterModelError,
769
769
  BaseAdapter,
@@ -791,7 +791,7 @@ import {
791
791
  import {
792
792
  DEFAULTS,
793
793
  PROVIDER_ENV_KEYS
794
- } from "./chunk-ZFDG2CDY.js";
794
+ } from "./chunk-4C6M5YOH.js";
795
795
  import "./chunk-K3UILZ5X.js";
796
796
  import {
797
797
  AvailabilityCache,
@@ -6082,7 +6082,7 @@ function buildVotingInput(plan, config) {
6082
6082
  }
6083
6083
  async function executeSingleVote(plan, config, log) {
6084
6084
  try {
6085
- const { executeVoting } = await import("./consensus-vote-HK5G3DYU.js");
6085
+ const { executeVoting } = await import("./consensus-vote-NILXRDWC.js");
6086
6086
  const input = buildVotingInput(plan, config);
6087
6087
  const result = await executeVoting(input, log);
6088
6088
  return parseVotingResult(result);
@@ -8,14 +8,14 @@ import {
8
8
  runWizard,
9
9
  setupCommand,
10
10
  setupCommandAsync
11
- } from "./chunk-IUDSDQIF.js";
11
+ } from "./chunk-DYZIT5UH.js";
12
12
  import "./chunk-V5UOHHOD.js";
13
- import "./chunk-SAR5IO7V.js";
13
+ import "./chunk-LGLMWGRY.js";
14
14
  import "./chunk-NUBSJGQZ.js";
15
15
  import "./chunk-6T3EPABN.js";
16
- import "./chunk-N5I4PC3P.js";
16
+ import "./chunk-RRIATGO4.js";
17
17
  import "./chunk-H6Q3EPQG.js";
18
- import "./chunk-ZFDG2CDY.js";
18
+ import "./chunk-4C6M5YOH.js";
19
19
  import "./chunk-K3UILZ5X.js";
20
20
  import "./chunk-RMTFEDQV.js";
21
21
  import "./chunk-IJZGHD7O.js";
@@ -34,4 +34,4 @@ export {
34
34
  setupCommand,
35
35
  setupCommandAsync
36
36
  };
37
- //# sourceMappingURL=setup-command-O4BGMJIC.js.map
37
+ //# sourceMappingURL=setup-command-ZTIRFLFV.js.map
@@ -3,7 +3,7 @@ import {
3
3
  CUSTOM_API_BASE_URL_ENV,
4
4
  CUSTOM_API_DEFAULT_MODEL,
5
5
  validateCustomApiBaseUrl
6
- } from "./chunk-ZFDG2CDY.js";
6
+ } from "./chunk-4C6M5YOH.js";
7
7
  import {
8
8
  err,
9
9
  ok
@@ -104,4 +104,4 @@ function buildShellFragment(params) {
104
104
  export {
105
105
  configureCustomApi
106
106
  };
107
- //# sourceMappingURL=setup-custom-api-SMLJ27IY.js.map
107
+ //# sourceMappingURL=setup-custom-api-UTROX3FM.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexus-agents",
3
- "version": "2.109.1",
3
+ "version": "2.109.3",
4
4
  "description": "Governance substrate for AI coding agents — adversarial PR review, drift-detected rules, immutable audit, and closed-loop outcome routing for Claude, Codex, Gemini, and OpenCode",
5
5
  "mcpName": "io.github.nexus-substrate/nexus-agents",
6
6
  "license": "MIT",