nexus-agents 2.101.3 → 2.101.4
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-NOVS52US.js → chunk-5O5OEZA3.js} +2 -2
- package/dist/{chunk-4JP6GACK.js → chunk-MS7MVJ6Y.js} +3 -3
- package/dist/{chunk-PHBPUEFM.js → chunk-YGGTSTYA.js} +2 -2
- package/dist/cli.js +55 -6
- package/dist/cli.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/{setup-command-7O7VOMTI.js → setup-command-33WQNBL7.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-NOVS52US.js.map → chunk-5O5OEZA3.js.map} +0 -0
- /package/dist/{chunk-4JP6GACK.js.map → chunk-MS7MVJ6Y.js.map} +0 -0
- /package/dist/{chunk-PHBPUEFM.js.map → chunk-YGGTSTYA.js.map} +0 -0
- /package/dist/{setup-command-7O7VOMTI.js.map → setup-command-33WQNBL7.js.map} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
checkSqlite,
|
|
9
9
|
defaultConfig,
|
|
10
10
|
initDataDirectories
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MS7MVJ6Y.js";
|
|
12
12
|
import {
|
|
13
13
|
probeAllClis
|
|
14
14
|
} from "./chunk-3GF52QPA.js";
|
|
@@ -1987,4 +1987,4 @@ export {
|
|
|
1987
1987
|
setupCommand,
|
|
1988
1988
|
setupCommandAsync
|
|
1989
1989
|
};
|
|
1990
|
-
//# sourceMappingURL=chunk-
|
|
1990
|
+
//# sourceMappingURL=chunk-5O5OEZA3.js.map
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
} from "./chunk-CH7QIDHQ.js";
|
|
41
41
|
|
|
42
42
|
// src/version.ts
|
|
43
|
-
var VERSION = true ? "2.101.
|
|
43
|
+
var VERSION = true ? "2.101.4" : "dev";
|
|
44
44
|
|
|
45
45
|
// src/config/schemas-core.ts
|
|
46
46
|
import { z } from "zod";
|
|
@@ -2096,7 +2096,7 @@ async function runDoctorFix(result) {
|
|
|
2096
2096
|
writeLine2("\u2500".repeat(40));
|
|
2097
2097
|
let fixCount = 0;
|
|
2098
2098
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
2099
|
-
const { runSetup } = await import("./setup-command-
|
|
2099
|
+
const { runSetup } = await import("./setup-command-33WQNBL7.js");
|
|
2100
2100
|
const setupResult = runSetup({
|
|
2101
2101
|
skipMcp: true,
|
|
2102
2102
|
skipRules: true,
|
|
@@ -2208,4 +2208,4 @@ export {
|
|
|
2208
2208
|
startStdioServer,
|
|
2209
2209
|
closeServer
|
|
2210
2210
|
};
|
|
2211
|
-
//# sourceMappingURL=chunk-
|
|
2211
|
+
//# sourceMappingURL=chunk-MS7MVJ6Y.js.map
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
DEFAULT_TASK_TTL_MS,
|
|
94
94
|
DEFAULT_TOOL_RATE_LIMITS,
|
|
95
95
|
clampTaskTtl
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-MS7MVJ6Y.js";
|
|
97
97
|
import {
|
|
98
98
|
getAvailabilityCache,
|
|
99
99
|
getCliForModelId,
|
|
@@ -50565,4 +50565,4 @@ export {
|
|
|
50565
50565
|
detectBackend,
|
|
50566
50566
|
createTaskTracker
|
|
50567
50567
|
};
|
|
50568
|
-
//# sourceMappingURL=chunk-
|
|
50568
|
+
//# sourceMappingURL=chunk-YGGTSTYA.js.map
|
package/dist/cli.js
CHANGED
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
setupCommandAsync,
|
|
26
26
|
verifyCommand
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-5O5OEZA3.js";
|
|
28
28
|
import "./chunk-4L7FH53H.js";
|
|
29
29
|
import {
|
|
30
30
|
AuthHandler,
|
|
@@ -164,7 +164,7 @@ import {
|
|
|
164
164
|
validateCommand,
|
|
165
165
|
validateWorkflow,
|
|
166
166
|
wrapInMarkdownFence
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-YGGTSTYA.js";
|
|
168
168
|
import "./chunk-3ACDP4E6.js";
|
|
169
169
|
import {
|
|
170
170
|
resolveToken
|
|
@@ -249,7 +249,7 @@ import {
|
|
|
249
249
|
loadConfig,
|
|
250
250
|
runDoctor,
|
|
251
251
|
validateNexusEnv
|
|
252
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-MS7MVJ6Y.js";
|
|
253
253
|
import "./chunk-FLUC27DF.js";
|
|
254
254
|
import "./chunk-L2NPJRZZ.js";
|
|
255
255
|
import {
|
|
@@ -2455,6 +2455,40 @@ function createAggregator(config) {
|
|
|
2455
2455
|
return new EvaluationAggregator(config);
|
|
2456
2456
|
}
|
|
2457
2457
|
|
|
2458
|
+
// src/self-eval/outcome-adapter.ts
|
|
2459
|
+
var SELF_EVAL_MARKER = "self-eval";
|
|
2460
|
+
function selfEvalOutcomeId(componentPath) {
|
|
2461
|
+
const sanitized = componentPath.replace(/[^a-zA-Z0-9._/-]/g, "_");
|
|
2462
|
+
return `self-eval-${sanitized}`;
|
|
2463
|
+
}
|
|
2464
|
+
function aggregatedResultToOutcome(result) {
|
|
2465
|
+
const success = result.finalRecommendation === "retain";
|
|
2466
|
+
const qualitySignals = [
|
|
2467
|
+
SELF_EVAL_MARKER,
|
|
2468
|
+
`recommendation:${result.finalRecommendation}`,
|
|
2469
|
+
`confidence:${result.confidence.toFixed(2)}`,
|
|
2470
|
+
`evidence:${result.evidenceQuality.toFixed(2)}`
|
|
2471
|
+
];
|
|
2472
|
+
const outcome = {
|
|
2473
|
+
id: selfEvalOutcomeId(result.component),
|
|
2474
|
+
cli: "claude",
|
|
2475
|
+
category: "code_review",
|
|
2476
|
+
model: "claude-default",
|
|
2477
|
+
success,
|
|
2478
|
+
durationMs: 0,
|
|
2479
|
+
timestamp: result.timestamp.toISOString(),
|
|
2480
|
+
qualitySignals,
|
|
2481
|
+
source: "manual"
|
|
2482
|
+
};
|
|
2483
|
+
if (!success) {
|
|
2484
|
+
return {
|
|
2485
|
+
...outcome,
|
|
2486
|
+
errorMessage: `self-eval recommendation: ${result.finalRecommendation}`
|
|
2487
|
+
};
|
|
2488
|
+
}
|
|
2489
|
+
return outcome;
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2458
2492
|
// src/cli/self-eval-types.ts
|
|
2459
2493
|
var DEFAULT_TIMEOUT_MS2 = 12e4;
|
|
2460
2494
|
var DEFAULT_TARGET = "src/adapters/";
|
|
@@ -2612,7 +2646,20 @@ function printJsonMode(commandResult) {
|
|
|
2612
2646
|
}
|
|
2613
2647
|
|
|
2614
2648
|
// src/cli/self-eval.ts
|
|
2615
|
-
|
|
2649
|
+
function persistResults(results, store) {
|
|
2650
|
+
const log = createLogger({ component: "self-eval" });
|
|
2651
|
+
for (const result of results) {
|
|
2652
|
+
try {
|
|
2653
|
+
store.append(aggregatedResultToOutcome(result));
|
|
2654
|
+
} catch (error) {
|
|
2655
|
+
log.warn("Failed to persist self-eval outcome", {
|
|
2656
|
+
component: result.component,
|
|
2657
|
+
error: getErrorMessage(error)
|
|
2658
|
+
});
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2661
|
+
}
|
|
2662
|
+
async function evaluateDirectory(target, timeoutMs, store = getOutcomeStore()) {
|
|
2616
2663
|
const time = getTimeProvider();
|
|
2617
2664
|
const startTime = time.now();
|
|
2618
2665
|
const deadline = startTime + timeoutMs;
|
|
@@ -2639,6 +2686,7 @@ async function evaluateDirectory(target, timeoutMs) {
|
|
|
2639
2686
|
}
|
|
2640
2687
|
const priority = { deprecate: 0, refactor: 1, review: 2, retain: 3 };
|
|
2641
2688
|
results.sort((a, b) => priority[a.finalRecommendation] - priority[b.finalRecommendation]);
|
|
2689
|
+
persistResults(results, store);
|
|
2642
2690
|
return {
|
|
2643
2691
|
results,
|
|
2644
2692
|
componentsScanned: inventory.totalFiles,
|
|
@@ -2706,13 +2754,14 @@ function parseOptions(args) {
|
|
|
2706
2754
|
}
|
|
2707
2755
|
return { target, verbose, json, timeout: timeout2 };
|
|
2708
2756
|
}
|
|
2709
|
-
async function evaluateCommand(args = []) {
|
|
2757
|
+
async function evaluateCommand(args = [], store = getOutcomeStore()) {
|
|
2710
2758
|
const options = parseOptions(args);
|
|
2711
2759
|
const startTime = getTimeProvider().now();
|
|
2712
2760
|
try {
|
|
2713
2761
|
const { results, componentsScanned, totalLines, timedOut } = await evaluateDirectory(
|
|
2714
2762
|
options.target,
|
|
2715
|
-
options.timeout
|
|
2763
|
+
options.timeout,
|
|
2764
|
+
store
|
|
2716
2765
|
);
|
|
2717
2766
|
const summary = calculateSummary(results);
|
|
2718
2767
|
const commandResult = {
|