nexus-agents 2.140.0 → 2.140.2

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.
@@ -7,7 +7,7 @@ import {
7
7
  registerConsensusVoteTool,
8
8
  resetCorrelationTracker,
9
9
  runConsensusForGoal
10
- } from "./chunk-KUF5JK5A.js";
10
+ } from "./chunk-3Z4SZVBB.js";
11
11
  import "./chunk-75M7P45Q.js";
12
12
  import "./chunk-PUFP75ZL.js";
13
13
  import "./chunk-YI5HSN5U.js";
@@ -36,4 +36,4 @@ export {
36
36
  resetCorrelationTracker,
37
37
  runConsensusForGoal
38
38
  };
39
- //# sourceMappingURL=consensus-vote-LGFJGBLL.js.map
39
+ //# sourceMappingURL=consensus-vote-DRGGSXUQ.js.map
package/dist/index.d.ts CHANGED
@@ -6785,29 +6785,6 @@ interface OpenAIAdapterConfig {
6785
6785
  * (Source: npm registry)
6786
6786
  */
6787
6787
 
6788
- /**
6789
- * OpenAI model adapter.
6790
- *
6791
- * Provides a unified interface for interacting with OpenAI's GPT models.
6792
- * Supports completion, streaming, tool use, and vision capabilities.
6793
- *
6794
- * @example
6795
- * ```typescript
6796
- * const adapter = new OpenAIAdapter({
6797
- * modelId: 'gpt-4o',
6798
- * apiKey: process.env.OPENAI_API_KEY,
6799
- * });
6800
- *
6801
- * const result = await adapter.complete({
6802
- * messages: [{ role: 'user', content: 'Hello!' }],
6803
- * maxTokens: 1024,
6804
- * });
6805
- *
6806
- * if (result.ok) {
6807
- * console.log(result.value.content);
6808
- * }
6809
- * ```
6810
- */
6811
6788
  declare class OpenAIAdapter extends BaseAdapter {
6812
6789
  private readonly client;
6813
6790
  private readonly resolvedModelId;
@@ -6834,6 +6811,19 @@ declare class OpenAIAdapter extends BaseAdapter {
6834
6811
  * @returns Result with response or ModelError
6835
6812
  */
6836
6813
  complete(request: CompletionRequest): Promise<Result<CompletionResponse, ModelError>>;
6814
+ /**
6815
+ * Surface an OpenAI / OpenAI-compatible gateway's REAL HTTP status + response
6816
+ * body in the error (#4047). The OpenAI SDK's default message collapses a
6817
+ * gateway rejection to e.g. `"400 status code (no body)"`, which hides WHY a
6818
+ * litellm-style gateway rejected a request — exactly the wall hit when
6819
+ * diagnosing degraded voter panels on a custom gateway. We re-message with the
6820
+ * status/type/code/param/request-id/body. Error-code routing is unchanged: we
6821
+ * classify on the ORIGINAL signal (`status`/`code`/`message`) via a clean probe
6822
+ * error, so the diagnostic `request_id`/`body` can't pollute the message-
6823
+ * substring classifier, then re-message the result with the full detail.
6824
+ * Applies to direct OpenAI and the compat gateway alike.
6825
+ */
6826
+ protected transformError(error: unknown): ModelError;
6837
6827
  /**
6838
6828
  * Stream a completion request from OpenAI.
6839
6829
  *
package/dist/index.js CHANGED
@@ -520,13 +520,13 @@ import {
520
520
  validateWorkflow,
521
521
  validateWorkflowDependencies,
522
522
  withLogging
523
- } from "./chunk-6JD5FXNS.js";
523
+ } from "./chunk-66LTZALB.js";
524
524
  import {
525
525
  OPENAI_MODELS,
526
526
  OPENAI_MODEL_ALIASES,
527
527
  OpenAIAdapter,
528
528
  createOpenAIAdapter
529
- } from "./chunk-ZYUUVX3T.js";
529
+ } from "./chunk-5RJHWUHT.js";
530
530
  import {
531
531
  FALLBACK_SCANNER_DATA,
532
532
  buildPlanFromAnalysis,
@@ -560,7 +560,7 @@ import {
560
560
  getKnownNexusVarNames,
561
561
  startStdioServer,
562
562
  validateNexusEnv
563
- } from "./chunk-RNUREUXJ.js";
563
+ } from "./chunk-FLDT5YWH.js";
564
564
  import {
565
565
  CliCircuitBreakerIntegration,
566
566
  createCliCircuitBreakerIntegration
@@ -616,7 +616,7 @@ import {
616
616
  generateProposalId,
617
617
  parseAgentPairKey,
618
618
  registerConsensusVoteTool
619
- } from "./chunk-KUF5JK5A.js";
619
+ } from "./chunk-3Z4SZVBB.js";
620
620
  import "./chunk-75M7P45Q.js";
621
621
  import "./chunk-JUYELG7E.js";
622
622
  import {
@@ -5953,7 +5953,7 @@ function buildVotingInput(plan, config) {
5953
5953
  }
5954
5954
  async function executeSingleVote(plan, config, log) {
5955
5955
  try {
5956
- const { executeVoting } = await import("./consensus-vote-LGFJGBLL.js");
5956
+ const { executeVoting } = await import("./consensus-vote-DRGGSXUQ.js");
5957
5957
  const input = buildVotingInput(plan, config);
5958
5958
  const result = await executeVoting(input, log);
5959
5959
  return parseVotingResult(result);
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  discoverModels,
3
3
  readOpencodeGateway
4
- } from "./chunk-KQXBBE34.js";
5
- import "./chunk-ZYUUVX3T.js";
4
+ } from "./chunk-2PSPSVCC.js";
5
+ import "./chunk-5RJHWUHT.js";
6
6
  import "./chunk-75M7P45Q.js";
7
7
  import "./chunk-OFP2D3SD.js";
8
8
  import {
@@ -176,4 +176,4 @@ export {
176
176
  runInitOpencode,
177
177
  runOpencodeValidate
178
178
  };
179
- //# sourceMappingURL=init-opencode-FPJNDD3K.js.map
179
+ //# sourceMappingURL=init-opencode-OPFEPQPF.js.map
@@ -8,9 +8,9 @@ import {
8
8
  runWizard,
9
9
  setupCommand,
10
10
  setupCommandAsync
11
- } from "./chunk-O442VHUR.js";
11
+ } from "./chunk-JO2EX53W.js";
12
12
  import "./chunk-BU2PN7M2.js";
13
- import "./chunk-RNUREUXJ.js";
13
+ import "./chunk-FLDT5YWH.js";
14
14
  import "./chunk-NUBSJGQZ.js";
15
15
  import "./chunk-6T3EPABN.js";
16
16
  import "./chunk-ZM4O442V.js";
@@ -35,4 +35,4 @@ export {
35
35
  setupCommand,
36
36
  setupCommandAsync
37
37
  };
38
- //# sourceMappingURL=setup-command-5ZKFXRZM.js.map
38
+ //# sourceMappingURL=setup-command-SR7SNTMD.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexus-agents",
3
- "version": "2.140.0",
3
+ "version": "2.140.2",
4
4
  "description": "Governance substrate for AI coding agents — adversarial PR review, drift-detected rules, tamper-evident 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",