nexus-agents 4.18.3 → 4.18.5
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-7DTA52VT.js → chunk-GNAIXLF2.js} +10 -3
- package/dist/{chunk-7DTA52VT.js.map → chunk-GNAIXLF2.js.map} +1 -1
- package/dist/{chunk-76WTN2BX.js → chunk-HGWD4CJU.js} +2 -2
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +32 -21
- package/dist/cli.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/{setup-data-dir-XF257UMQ.js → setup-data-dir-CSFQI6L3.js} +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-76WTN2BX.js.map → chunk-HGWD4CJU.js.map} +0 -0
- /package/dist/{setup-data-dir-XF257UMQ.js.map → setup-data-dir-CSFQI6L3.js.map} +0 -0
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
DEFAULT_TASK_TTL_MS,
|
|
23
23
|
clampTaskTtl
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-GNAIXLF2.js";
|
|
25
25
|
import {
|
|
26
26
|
executeExpert
|
|
27
27
|
} from "./chunk-3VJ2MSUU.js";
|
|
@@ -55862,4 +55862,4 @@ export {
|
|
|
55862
55862
|
shutdownFeedbackSubscriber,
|
|
55863
55863
|
createEventBusBridge
|
|
55864
55864
|
};
|
|
55865
|
-
//# sourceMappingURL=chunk-
|
|
55865
|
+
//# sourceMappingURL=chunk-HGWD4CJU.js.map
|
package/dist/cli.d.ts
CHANGED
|
@@ -81,6 +81,8 @@ interface ParsedCliArgs {
|
|
|
81
81
|
errorPolicy?: ErrorPolicy;
|
|
82
82
|
/** #4135 — how the vote command maps a `no_quorum` decision. Default `fail`. */
|
|
83
83
|
onNoQuorum?: NoQuorumPolicy;
|
|
84
|
+
/** #4472 / #4941 — repeatable `--option`, the named alternatives to tally. */
|
|
85
|
+
options?: string[];
|
|
84
86
|
variant?: 'lite' | 'verified' | 'full';
|
|
85
87
|
limit?: number;
|
|
86
88
|
instance?: string[];
|
package/dist/cli.js
CHANGED
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
validateNexusEnv,
|
|
154
154
|
validateWorkflow,
|
|
155
155
|
wrapInMarkdownFence
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-HGWD4CJU.js";
|
|
157
157
|
import "./chunk-2D3KX7MD.js";
|
|
158
158
|
import "./chunk-HFOQKCD2.js";
|
|
159
159
|
import "./chunk-RSMG2DPB.js";
|
|
@@ -173,7 +173,7 @@ import {
|
|
|
173
173
|
doctorCommand,
|
|
174
174
|
initDataDirectories,
|
|
175
175
|
runDoctor
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-GNAIXLF2.js";
|
|
177
177
|
import {
|
|
178
178
|
buildOpenAICompatAdapters,
|
|
179
179
|
readOpenAICompatEnv
|
|
@@ -22195,7 +22195,13 @@ var VOTE_HELP = {
|
|
|
22195
22195
|
},
|
|
22196
22196
|
{ flag: "--quick", description: "Use 3 agents instead of the full 7 for faster votes" },
|
|
22197
22197
|
{ flag: "--dry-run", description: "Simulate votes without agent execution" },
|
|
22198
|
-
{
|
|
22198
|
+
{
|
|
22199
|
+
flag: "--timeout=<seconds>",
|
|
22200
|
+
description: "Timeout per vote in seconds",
|
|
22201
|
+
// VOTE_TIMEOUTS.defaultMs, raised to 300s by #1640 after architecture and
|
|
22202
|
+
// security voters were observed averaging 315s. The help said 90 (#4965).
|
|
22203
|
+
defaultValue: "300"
|
|
22204
|
+
},
|
|
22199
22205
|
{
|
|
22200
22206
|
flag: "--error-policy <p>",
|
|
22201
22207
|
description: "How to count errored/timed-out voters: reduce_denominator | count_as_abstain | fail_closed | absolute_quorum (#4132 \u2014 an errored voter degrades the verdict to no_quorum) (default: fail_closed for unanimous, reduce_denominator otherwise)"
|
|
@@ -22740,25 +22746,30 @@ function handleSystemReviewCommand(args) {
|
|
|
22740
22746
|
});
|
|
22741
22747
|
return cliExitFromStatus(exitCode);
|
|
22742
22748
|
}
|
|
22743
|
-
|
|
22744
|
-
|
|
22745
|
-
|
|
22746
|
-
|
|
22747
|
-
|
|
22748
|
-
|
|
22749
|
-
|
|
22750
|
-
|
|
22751
|
-
|
|
22752
|
-
const validErrorPolicy = errorPolicy !== void 0 && isValidErrorPolicy(errorPolicy) ? errorPolicy : void 0;
|
|
22753
|
-
const exitCode = await voteCommand({
|
|
22754
|
-
proposal,
|
|
22749
|
+
function validated(value, guard) {
|
|
22750
|
+
return value !== void 0 && guard(value) ? value : void 0;
|
|
22751
|
+
}
|
|
22752
|
+
function buildVoteCommandOptions(args) {
|
|
22753
|
+
const validThreshold = validated(args.options.threshold, isValidThreshold);
|
|
22754
|
+
const validErrorPolicy = validated(args.options.errorPolicy, isValidErrorPolicy);
|
|
22755
|
+
return {
|
|
22756
|
+
proposal: args.options.proposal ?? "",
|
|
22757
|
+
...args.options.options !== void 0 && { options: args.options.options },
|
|
22755
22758
|
...validThreshold !== void 0 && { threshold: validThreshold },
|
|
22756
22759
|
...validErrorPolicy !== void 0 && { errorPolicy: validErrorPolicy },
|
|
22757
22760
|
...args.options.onNoQuorum !== void 0 && { onNoQuorum: args.options.onNoQuorum },
|
|
22761
|
+
...args.options.timeoutMs !== void 0 && { timeoutMs: args.options.timeoutMs },
|
|
22758
22762
|
dryRun: args.options.dryRun,
|
|
22759
22763
|
quick: args.options.quick,
|
|
22760
22764
|
verbose: args.options.verbose
|
|
22761
|
-
}
|
|
22765
|
+
};
|
|
22766
|
+
}
|
|
22767
|
+
async function handleVoteCommand(args) {
|
|
22768
|
+
if (args.options.proposal === void 0) {
|
|
22769
|
+
printVoteUsage();
|
|
22770
|
+
return cliExit(EXIT_CODES.INVALID_ARGS);
|
|
22771
|
+
}
|
|
22772
|
+
const exitCode = await voteCommand(buildVoteCommandOptions(args));
|
|
22762
22773
|
return cliExit(exitCode);
|
|
22763
22774
|
}
|
|
22764
22775
|
async function handleIndexCommand2(args) {
|
|
@@ -25258,17 +25269,17 @@ function parseOptions4(args) {
|
|
|
25258
25269
|
const fileIssues = !dryRun && fileIssuesFlag;
|
|
25259
25270
|
const formatRaw = typeof opts["format"] === "string" ? opts["format"] : "text";
|
|
25260
25271
|
const format = formatRaw === "json" ? "json" : "text";
|
|
25261
|
-
const
|
|
25272
|
+
const validated2 = ImprovementReviewInputSchema.parse({
|
|
25262
25273
|
lookbackDays: lookbackParsed,
|
|
25263
25274
|
fileIssues,
|
|
25264
25275
|
minSampleSize: minSamplesParsed,
|
|
25265
25276
|
fitnessFloor: fitnessParsed
|
|
25266
25277
|
});
|
|
25267
25278
|
return {
|
|
25268
|
-
lookbackDays:
|
|
25269
|
-
fileIssues:
|
|
25270
|
-
minSampleSize:
|
|
25271
|
-
fitnessFloor:
|
|
25279
|
+
lookbackDays: validated2.lookbackDays,
|
|
25280
|
+
fileIssues: validated2.fileIssues,
|
|
25281
|
+
minSampleSize: validated2.minSampleSize,
|
|
25282
|
+
fitnessFloor: validated2.fitnessFloor,
|
|
25272
25283
|
format
|
|
25273
25284
|
};
|
|
25274
25285
|
}
|