nexus-agents 4.5.1 → 4.6.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-QNT5WS7E.js → chunk-EKS3ECXS.js} +2 -2
- package/dist/{chunk-EPD5MGPB.js → chunk-RWI6YQXG.js} +3 -3
- package/dist/{chunk-CGJPW5BI.js → chunk-ZZED3BWY.js} +26 -15
- package/dist/chunk-ZZED3BWY.js.map +1 -0
- package/dist/cli.js +3 -3
- package/dist/index.d.ts +44 -9
- package/dist/index.js +2 -2
- package/dist/{setup-command-DIL56GPR.js → setup-command-GEWL2HS4.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-CGJPW5BI.js.map +0 -1
- /package/dist/{chunk-QNT5WS7E.js.map → chunk-EKS3ECXS.js.map} +0 -0
- /package/dist/{chunk-EPD5MGPB.js.map → chunk-RWI6YQXG.js.map} +0 -0
- /package/dist/{setup-command-DIL56GPR.js.map → setup-command-GEWL2HS4.js.map} +0 -0
package/dist/cli.js
CHANGED
|
@@ -18,7 +18,7 @@ import "./chunk-HBGA62JG.js";
|
|
|
18
18
|
import {
|
|
19
19
|
setupCommandAsync,
|
|
20
20
|
verifyCommand
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-EKS3ECXS.js";
|
|
22
22
|
import "./chunk-YLESXBB3.js";
|
|
23
23
|
import {
|
|
24
24
|
AuthHandler,
|
|
@@ -139,7 +139,7 @@ import {
|
|
|
139
139
|
validateCommand,
|
|
140
140
|
validateWorkflow,
|
|
141
141
|
wrapInMarkdownFence
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-ZZED3BWY.js";
|
|
143
143
|
import "./chunk-C6SAPXUV.js";
|
|
144
144
|
import "./chunk-HFOQKCD2.js";
|
|
145
145
|
import "./chunk-RSMG2DPB.js";
|
|
@@ -166,7 +166,7 @@ import {
|
|
|
166
166
|
loadConfig,
|
|
167
167
|
runDoctor,
|
|
168
168
|
validateNexusEnv
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-RWI6YQXG.js";
|
|
170
170
|
import {
|
|
171
171
|
buildOpenAICompatAdapters,
|
|
172
172
|
readOpenAICompatEnv
|
package/dist/index.d.ts
CHANGED
|
@@ -11183,15 +11183,44 @@ interface AdaptiveProtocolConfig {
|
|
|
11183
11183
|
* Selection result with metadata.
|
|
11184
11184
|
*/
|
|
11185
11185
|
interface SelectionResult$2 {
|
|
11186
|
-
/**
|
|
11186
|
+
/**
|
|
11187
|
+
* The pattern that will be used.
|
|
11188
|
+
*
|
|
11189
|
+
* This is always `config.pattern`. `CollaborationPattern` has no `auto`
|
|
11190
|
+
* member, so a caller cannot ask for adaptive selection and adaptation can
|
|
11191
|
+
* never win — see {@link adaptivePattern} for what it would have chosen
|
|
11192
|
+
* (#4833).
|
|
11193
|
+
*/
|
|
11187
11194
|
readonly pattern: CollaborationPattern;
|
|
11188
|
-
/**
|
|
11195
|
+
/**
|
|
11196
|
+
* The pattern adaptation would choose from the task classification (#4833).
|
|
11197
|
+
*
|
|
11198
|
+
* Advisory. Previously computed and discarded, which left the caller unable
|
|
11199
|
+
* to see the one thing this class exists to produce.
|
|
11200
|
+
*/
|
|
11201
|
+
readonly adaptivePattern: CollaborationPattern;
|
|
11202
|
+
/** Classification that led to {@link adaptivePattern}. */
|
|
11189
11203
|
readonly classification: ClassificationResult;
|
|
11190
|
-
/**
|
|
11204
|
+
/**
|
|
11205
|
+
* Whether the caller's pattern differs from {@link adaptivePattern}.
|
|
11206
|
+
*
|
|
11207
|
+
* A comparison, NOT evidence that a selection was applied and then
|
|
11208
|
+
* overridden — nothing is applied. It was logged as though a live decision
|
|
11209
|
+
* had been made and reversed (#4833).
|
|
11210
|
+
*/
|
|
11191
11211
|
readonly wasOverridden: boolean;
|
|
11192
11212
|
}
|
|
11193
11213
|
/**
|
|
11194
|
-
* Adaptive protocol selector that
|
|
11214
|
+
* Adaptive protocol selector that classifies tasks and recommends protocols.
|
|
11215
|
+
*
|
|
11216
|
+
* Advisory: `selectProtocol` cannot change the protocol in use, because
|
|
11217
|
+
* `CollaborationPattern` has no `auto` member and so a caller has no way to
|
|
11218
|
+
* defer to adaptation. `getRecommendation` reports what adaptation would
|
|
11219
|
+
* choose; acting on it is the caller's decision.
|
|
11220
|
+
*
|
|
11221
|
+
* Whether to add that sentinel so adaptation can win is #4833. Its named
|
|
11222
|
+
* consumer is `TechLeadCollaboration.executeCollaboration`, which currently
|
|
11223
|
+
* declines the recommendation on purpose.
|
|
11195
11224
|
*/
|
|
11196
11225
|
declare class AdaptiveProtocolSelector {
|
|
11197
11226
|
private readonly factory;
|
|
@@ -11200,10 +11229,14 @@ declare class AdaptiveProtocolSelector {
|
|
|
11200
11229
|
private readonly log;
|
|
11201
11230
|
constructor(config?: AdaptiveProtocolConfig);
|
|
11202
11231
|
/**
|
|
11203
|
-
*
|
|
11232
|
+
* Classify a task and report which protocol adaptation would choose.
|
|
11233
|
+
*
|
|
11234
|
+
* The returned `pattern` is always `config.pattern`: `CollaborationPattern`
|
|
11235
|
+
* has no `auto` member, so there is no way for a caller to defer to
|
|
11236
|
+
* adaptation. `adaptivePattern` carries the advisory choice (#4833).
|
|
11204
11237
|
*
|
|
11205
|
-
* @param config - Collaboration config
|
|
11206
|
-
* @returns
|
|
11238
|
+
* @param config - Collaboration config; its `pattern` is always honoured
|
|
11239
|
+
* @returns The pattern in use, the advisory choice, and the classification
|
|
11207
11240
|
*/
|
|
11208
11241
|
selectProtocol(config: CollaborationConfig): SelectionResult$2;
|
|
11209
11242
|
/**
|
|
@@ -11218,9 +11251,11 @@ declare class AdaptiveProtocolSelector {
|
|
|
11218
11251
|
*/
|
|
11219
11252
|
execute(config: CollaborationConfig, agents: Map<string, IAgent>): Promise<Result<CollaborationResult, AgentError$1>>;
|
|
11220
11253
|
/**
|
|
11221
|
-
* Get recommended protocol for a task without executing.
|
|
11254
|
+
* Get the recommended protocol for a task without executing.
|
|
11222
11255
|
*
|
|
11223
|
-
*
|
|
11256
|
+
* Returns the *adaptive* choice. It previously returned `selection.pattern`
|
|
11257
|
+
* — the caller's own input — so the "recommendation" echoed the question
|
|
11258
|
+
* back with reasoning attached that read as an answer (#4833).
|
|
11224
11259
|
*/
|
|
11225
11260
|
getRecommendation(config: CollaborationConfig): {
|
|
11226
11261
|
recommendedPattern: CollaborationPattern;
|
package/dist/index.js
CHANGED
|
@@ -541,7 +541,7 @@ import {
|
|
|
541
541
|
withLogging,
|
|
542
542
|
withRetry,
|
|
543
543
|
withRetryWrapper
|
|
544
|
-
} from "./chunk-
|
|
544
|
+
} from "./chunk-ZZED3BWY.js";
|
|
545
545
|
import {
|
|
546
546
|
FALLBACK_SCANNER_DATA,
|
|
547
547
|
buildPlanFromAnalysis,
|
|
@@ -575,7 +575,7 @@ import {
|
|
|
575
575
|
getKnownNexusVarNames,
|
|
576
576
|
startStdioServer,
|
|
577
577
|
validateNexusEnv
|
|
578
|
-
} from "./chunk-
|
|
578
|
+
} from "./chunk-RWI6YQXG.js";
|
|
579
579
|
import {
|
|
580
580
|
OPENAI_MODELS,
|
|
581
581
|
OPENAI_MODEL_ALIASES,
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
runWizard,
|
|
9
9
|
setupCommand,
|
|
10
10
|
setupCommandAsync
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EKS3ECXS.js";
|
|
12
12
|
import "./chunk-YLESXBB3.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-RWI6YQXG.js";
|
|
14
14
|
import "./chunk-BLY3DXM2.js";
|
|
15
15
|
import "./chunk-7Y7UFVQ5.js";
|
|
16
16
|
import "./chunk-OQB3XC5O.js";
|
|
@@ -41,4 +41,4 @@ export {
|
|
|
41
41
|
setupCommand,
|
|
42
42
|
setupCommandAsync
|
|
43
43
|
};
|
|
44
|
-
//# sourceMappingURL=setup-command-
|
|
44
|
+
//# sourceMappingURL=setup-command-GEWL2HS4.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nexus-agents",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
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",
|