nexus-agents 4.15.0 → 4.15.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-747LKXD4.js → chunk-227I7IM7.js} +3 -3
- package/dist/{chunk-N5O3XVNG.js → chunk-MEMPWKAD.js} +17 -4
- package/dist/{chunk-N5O3XVNG.js.map → chunk-MEMPWKAD.js.map} +1 -1
- package/dist/cli.js +15 -15
- package/dist/cli.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/{setup-data-dir-ORCVLI3F.js → setup-data-dir-ZHLVXYUG.js} +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-747LKXD4.js.map → chunk-227I7IM7.js.map} +0 -0
- /package/dist/{setup-data-dir-ORCVLI3F.js.map → setup-data-dir-ZHLVXYUG.js.map} +0 -0
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-MEMPWKAD.js";
|
|
157
157
|
import "./chunk-YMCIDGNP.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-227I7IM7.js";
|
|
177
177
|
import {
|
|
178
178
|
buildOpenAICompatAdapters,
|
|
179
179
|
readOpenAICompatEnv
|
|
@@ -3818,9 +3818,12 @@ var PARSE_ARGS_CONFIG = {
|
|
|
3818
3818
|
type: "string",
|
|
3819
3819
|
short: "p"
|
|
3820
3820
|
},
|
|
3821
|
+
// No `short`. `parseArgs` takes one options object for every command, so
|
|
3822
|
+
// a short letter is global: `-t` was already `task`, which won, and
|
|
3823
|
+
// `vote -t supermajority` silently ran a simple-majority vote. Long form
|
|
3824
|
+
// only — `cli-types.test.ts` pins that no two options share a letter.
|
|
3821
3825
|
threshold: {
|
|
3822
|
-
type: "string"
|
|
3823
|
-
short: "t"
|
|
3826
|
+
type: "string"
|
|
3824
3827
|
},
|
|
3825
3828
|
quick: {
|
|
3826
3829
|
type: "boolean",
|
|
@@ -3895,9 +3898,10 @@ var PARSE_ARGS_CONFIG = {
|
|
|
3895
3898
|
default: false
|
|
3896
3899
|
},
|
|
3897
3900
|
// Learning-metrics command options
|
|
3901
|
+
// No `short` — `-p` is `proposal`, which was declared first and won. See
|
|
3902
|
+
// the note on `threshold`.
|
|
3898
3903
|
period: {
|
|
3899
|
-
type: "string"
|
|
3900
|
-
short: "p"
|
|
3904
|
+
type: "string"
|
|
3901
3905
|
},
|
|
3902
3906
|
export: {
|
|
3903
3907
|
type: "string"
|
|
@@ -5154,9 +5158,6 @@ function analyzeTaskString(taskStr) {
|
|
|
5154
5158
|
const analysis = sharedAnalyzer.analyze(task);
|
|
5155
5159
|
return taskAnalysisResultToTaskProfile(analysis);
|
|
5156
5160
|
}
|
|
5157
|
-
function taskProfileToBanditContextFromProfile(profile) {
|
|
5158
|
-
return taskProfileToBanditContext(profile);
|
|
5159
|
-
}
|
|
5160
5161
|
function simulateBudgetFilter() {
|
|
5161
5162
|
return CLI_NAMES2.map((cliName) => ({
|
|
5162
5163
|
cliName,
|
|
@@ -5234,7 +5235,7 @@ function auditRouting(options) {
|
|
|
5234
5235
|
const eligibleClis = budgetResults.filter((r) => r.withinBudget).map((r) => r.cliName);
|
|
5235
5236
|
const topsisResult = runTopsisRanking(taskProfile);
|
|
5236
5237
|
const bandit = new LinUCBBandit(eligibleClis);
|
|
5237
|
-
const context =
|
|
5238
|
+
const context = taskProfileToBanditContext(taskProfile);
|
|
5238
5239
|
const linucbDetails = computeLinUCBDetails(bandit, context);
|
|
5239
5240
|
const selection = bandit.select(context);
|
|
5240
5241
|
const selectedCli = determineSelectedCli(
|
|
@@ -5298,10 +5299,9 @@ function formatBudgetFilter(result) {
|
|
|
5298
5299
|
const passCount = result.budgetResults.filter((r) => r.withinBudget).length;
|
|
5299
5300
|
const total = result.budgetResults.length;
|
|
5300
5301
|
lines.push(
|
|
5301
|
-
boxLine(
|
|
5302
|
-
color(` Budget Filter (${String(passCount)}/${String(total)} pass):`, ANSI.bold) + color(" [simulated \u2014 not evaluated against real cost or config]", ANSI.dim)
|
|
5303
|
-
)
|
|
5302
|
+
boxLine(color(` Budget Filter (${String(passCount)}/${String(total)} pass):`, ANSI.bold))
|
|
5304
5303
|
);
|
|
5304
|
+
lines.push(boxLine(color(" [simulated \u2014 not evaluated against cost or config]", ANSI.dim)));
|
|
5305
5305
|
for (const br of result.budgetResults) {
|
|
5306
5306
|
const status = br.withinBudget ? color("\u2713", ANSI.green) : color("\u2717", ANSI.red);
|
|
5307
5307
|
lines.push(boxLine(` ${status} ${br.cliName.padEnd(8)} - ${br.reason}`));
|
|
@@ -22113,13 +22113,13 @@ var VOTE_HELP = {
|
|
|
22113
22113
|
command: "vote",
|
|
22114
22114
|
examples: [
|
|
22115
22115
|
'nexus-agents vote --proposal "Add caching layer"',
|
|
22116
|
-
'nexus-agents vote -p "Migrate to PostgreSQL"
|
|
22116
|
+
'nexus-agents vote -p "Migrate to PostgreSQL" --threshold supermajority',
|
|
22117
22117
|
'nexus-agents vote -p "Quick decision" --quick',
|
|
22118
22118
|
'nexus-agents vote -p "Test idea" --dry-run'
|
|
22119
22119
|
],
|
|
22120
22120
|
flags: [
|
|
22121
22121
|
{ flag: "-p, --proposal <text>", description: "Proposal text to vote on (required)" },
|
|
22122
|
-
{ flag: "
|
|
22122
|
+
{ flag: "--threshold <t>", description: "Threshold: majority, supermajority, unanimous" },
|
|
22123
22123
|
{ flag: "--quick", description: "Use 3 agents instead of the full 7 for faster votes" },
|
|
22124
22124
|
{ flag: "--dry-run", description: "Simulate votes without agent execution" },
|
|
22125
22125
|
{ flag: "--timeout=<seconds>", description: "Timeout per vote in seconds", defaultValue: "90" },
|