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.
- package/dist/{chunk-KQXBBE34.js → chunk-2PSPSVCC.js} +2 -2
- package/dist/{chunk-KUF5JK5A.js → chunk-3Z4SZVBB.js} +16 -7
- package/dist/chunk-3Z4SZVBB.js.map +1 -0
- package/dist/{chunk-ZYUUVX3T.js → chunk-5RJHWUHT.js} +50 -2
- package/dist/chunk-5RJHWUHT.js.map +1 -0
- package/dist/{chunk-6JD5FXNS.js → chunk-66LTZALB.js} +14 -13
- package/dist/{chunk-6JD5FXNS.js.map → chunk-66LTZALB.js.map} +1 -1
- package/dist/{chunk-RNUREUXJ.js → chunk-FLDT5YWH.js} +3 -3
- package/dist/{chunk-O442VHUR.js → chunk-JO2EX53W.js} +2 -2
- package/dist/cli.js +20 -9
- package/dist/cli.js.map +1 -1
- package/dist/{consensus-vote-LGFJGBLL.js → consensus-vote-DRGGSXUQ.js} +2 -2
- package/dist/index.d.ts +13 -23
- package/dist/index.js +5 -5
- package/dist/{init-opencode-FPJNDD3K.js → init-opencode-OPFEPQPF.js} +3 -3
- package/dist/{setup-command-5ZKFXRZM.js → setup-command-SR7SNTMD.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-KUF5JK5A.js.map +0 -1
- package/dist/chunk-ZYUUVX3T.js.map +0 -1
- /package/dist/{chunk-KQXBBE34.js.map → chunk-2PSPSVCC.js.map} +0 -0
- /package/dist/{chunk-RNUREUXJ.js.map → chunk-FLDT5YWH.js.map} +0 -0
- /package/dist/{chunk-O442VHUR.js.map → chunk-JO2EX53W.js.map} +0 -0
- /package/dist/{consensus-vote-LGFJGBLL.js.map → consensus-vote-DRGGSXUQ.js.map} +0 -0
- /package/dist/{init-opencode-FPJNDD3K.js.map → init-opencode-OPFEPQPF.js.map} +0 -0
- /package/dist/{setup-command-5ZKFXRZM.js.map → setup-command-SR7SNTMD.js.map} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
registerConsensusVoteTool,
|
|
8
8
|
resetCorrelationTracker,
|
|
9
9
|
runConsensusForGoal
|
|
10
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
5
|
-
import "./chunk-
|
|
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-
|
|
179
|
+
//# sourceMappingURL=init-opencode-OPFEPQPF.js.map
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
runWizard,
|
|
9
9
|
setupCommand,
|
|
10
10
|
setupCommandAsync
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JO2EX53W.js";
|
|
12
12
|
import "./chunk-BU2PN7M2.js";
|
|
13
|
-
import "./chunk-
|
|
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-
|
|
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.
|
|
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",
|