nexus-agents 2.101.3 → 2.102.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.
Files changed (25) hide show
  1. package/dist/{chunk-4JP6GACK.js → chunk-DR6YA645.js} +3 -3
  2. package/dist/{chunk-CYG62BXB.js → chunk-J6KO7RGF.js} +2 -2
  3. package/dist/{chunk-PHBPUEFM.js → chunk-MLTNGA4P.js} +1060 -927
  4. package/dist/chunk-MLTNGA4P.js.map +1 -0
  5. package/dist/{chunk-NOVS52US.js → chunk-PC6GNOES.js} +2 -2
  6. package/dist/{chunk-KYONCTIL.js → chunk-QYE6GEPY.js} +2 -2
  7. package/dist/{chunk-KAJPY6YZ.js → chunk-SXWJ7IUF.js} +20 -1
  8. package/dist/{chunk-KAJPY6YZ.js.map → chunk-SXWJ7IUF.js.map} +1 -1
  9. package/dist/cli.js +61 -10
  10. package/dist/cli.js.map +1 -1
  11. package/dist/{consensus-vote-IYYFI2P5.js → consensus-vote-QPHD5HGX.js} +3 -3
  12. package/dist/{improvement-review-BGFCQV4I.js → improvement-review-YFQ5T7I3.js} +3 -3
  13. package/dist/index.d.ts +128 -128
  14. package/dist/index.js +9 -70
  15. package/dist/index.js.map +1 -1
  16. package/dist/{setup-command-7O7VOMTI.js → setup-command-CRJACYUE.js} +3 -3
  17. package/package.json +1 -1
  18. package/dist/chunk-PHBPUEFM.js.map +0 -1
  19. /package/dist/{chunk-4JP6GACK.js.map → chunk-DR6YA645.js.map} +0 -0
  20. /package/dist/{chunk-CYG62BXB.js.map → chunk-J6KO7RGF.js.map} +0 -0
  21. /package/dist/{chunk-NOVS52US.js.map → chunk-PC6GNOES.js.map} +0 -0
  22. /package/dist/{chunk-KYONCTIL.js.map → chunk-QYE6GEPY.js.map} +0 -0
  23. /package/dist/{consensus-vote-IYYFI2P5.js.map → consensus-vote-QPHD5HGX.js.map} +0 -0
  24. /package/dist/{improvement-review-BGFCQV4I.js.map → improvement-review-YFQ5T7I3.js.map} +0 -0
  25. /package/dist/{setup-command-7O7VOMTI.js.map → setup-command-CRJACYUE.js.map} +0 -0
package/dist/cli.js CHANGED
@@ -24,7 +24,7 @@ import {
24
24
  import {
25
25
  setupCommandAsync,
26
26
  verifyCommand
27
- } from "./chunk-NOVS52US.js";
27
+ } from "./chunk-PC6GNOES.js";
28
28
  import "./chunk-4L7FH53H.js";
29
29
  import {
30
30
  AuthHandler,
@@ -144,6 +144,7 @@ import {
144
144
  registerRunQualityGateTool,
145
145
  registerRunWorkflowTool,
146
146
  registerSearchCodebaseTool,
147
+ registerSuggestResearchTasksTool,
147
148
  registerSupplyChainTradeoffPanelTool,
148
149
  registerSurveyOssLandscapeTool,
149
150
  registerTools,
@@ -164,7 +165,7 @@ import {
164
165
  validateCommand,
165
166
  validateWorkflow,
166
167
  wrapInMarkdownFence
167
- } from "./chunk-PHBPUEFM.js";
168
+ } from "./chunk-MLTNGA4P.js";
168
169
  import "./chunk-3ACDP4E6.js";
169
170
  import {
170
171
  resolveToken
@@ -187,7 +188,7 @@ import {
187
188
  executeVoting,
188
189
  registerConsensusVoteTool,
189
190
  warnIfSimulatedOutsideTests
190
- } from "./chunk-CYG62BXB.js";
191
+ } from "./chunk-J6KO7RGF.js";
191
192
  import "./chunk-FVWKAEYH.js";
192
193
  import "./chunk-W65C5VVJ.js";
193
194
  import {
@@ -213,7 +214,7 @@ import {
213
214
  createFitnessScoreCalculator,
214
215
  registerImprovementReviewTool,
215
216
  runImprovementReview
216
- } from "./chunk-KYONCTIL.js";
217
+ } from "./chunk-QYE6GEPY.js";
217
218
  import {
218
219
  createDefaultPolicyFirewall,
219
220
  createSecureHandler,
@@ -223,7 +224,7 @@ import {
223
224
  toolStructuredError,
224
225
  toolSuccessStructured,
225
226
  wrapToolWithTimeout
226
- } from "./chunk-KAJPY6YZ.js";
227
+ } from "./chunk-SXWJ7IUF.js";
227
228
  import "./chunk-FZCB2P3F.js";
228
229
  import "./chunk-HFOQKCD2.js";
229
230
  import "./chunk-VJR46M7L.js";
@@ -249,7 +250,7 @@ import {
249
250
  loadConfig,
250
251
  runDoctor,
251
252
  validateNexusEnv
252
- } from "./chunk-4JP6GACK.js";
253
+ } from "./chunk-DR6YA645.js";
253
254
  import "./chunk-FLUC27DF.js";
254
255
  import "./chunk-L2NPJRZZ.js";
255
256
  import {
@@ -2455,6 +2456,40 @@ function createAggregator(config) {
2455
2456
  return new EvaluationAggregator(config);
2456
2457
  }
2457
2458
 
2459
+ // src/self-eval/outcome-adapter.ts
2460
+ var SELF_EVAL_MARKER = "self-eval";
2461
+ function selfEvalOutcomeId(componentPath) {
2462
+ const sanitized = componentPath.replace(/[^a-zA-Z0-9._/-]/g, "_");
2463
+ return `self-eval-${sanitized}`;
2464
+ }
2465
+ function aggregatedResultToOutcome(result) {
2466
+ const success = result.finalRecommendation === "retain";
2467
+ const qualitySignals = [
2468
+ SELF_EVAL_MARKER,
2469
+ `recommendation:${result.finalRecommendation}`,
2470
+ `confidence:${result.confidence.toFixed(2)}`,
2471
+ `evidence:${result.evidenceQuality.toFixed(2)}`
2472
+ ];
2473
+ const outcome = {
2474
+ id: selfEvalOutcomeId(result.component),
2475
+ cli: "claude",
2476
+ category: "code_review",
2477
+ model: "claude-default",
2478
+ success,
2479
+ durationMs: 0,
2480
+ timestamp: result.timestamp.toISOString(),
2481
+ qualitySignals,
2482
+ source: "manual"
2483
+ };
2484
+ if (!success) {
2485
+ return {
2486
+ ...outcome,
2487
+ errorMessage: `self-eval recommendation: ${result.finalRecommendation}`
2488
+ };
2489
+ }
2490
+ return outcome;
2491
+ }
2492
+
2458
2493
  // src/cli/self-eval-types.ts
2459
2494
  var DEFAULT_TIMEOUT_MS2 = 12e4;
2460
2495
  var DEFAULT_TARGET = "src/adapters/";
@@ -2612,7 +2647,20 @@ function printJsonMode(commandResult) {
2612
2647
  }
2613
2648
 
2614
2649
  // src/cli/self-eval.ts
2615
- async function evaluateDirectory(target, timeoutMs) {
2650
+ function persistResults(results, store) {
2651
+ const log = createLogger({ component: "self-eval" });
2652
+ for (const result of results) {
2653
+ try {
2654
+ store.append(aggregatedResultToOutcome(result));
2655
+ } catch (error) {
2656
+ log.warn("Failed to persist self-eval outcome", {
2657
+ component: result.component,
2658
+ error: getErrorMessage(error)
2659
+ });
2660
+ }
2661
+ }
2662
+ }
2663
+ async function evaluateDirectory(target, timeoutMs, store = getOutcomeStore()) {
2616
2664
  const time = getTimeProvider();
2617
2665
  const startTime = time.now();
2618
2666
  const deadline = startTime + timeoutMs;
@@ -2639,6 +2687,7 @@ async function evaluateDirectory(target, timeoutMs) {
2639
2687
  }
2640
2688
  const priority = { deprecate: 0, refactor: 1, review: 2, retain: 3 };
2641
2689
  results.sort((a, b) => priority[a.finalRecommendation] - priority[b.finalRecommendation]);
2690
+ persistResults(results, store);
2642
2691
  return {
2643
2692
  results,
2644
2693
  componentsScanned: inventory.totalFiles,
@@ -2706,13 +2755,14 @@ function parseOptions(args) {
2706
2755
  }
2707
2756
  return { target, verbose, json, timeout: timeout2 };
2708
2757
  }
2709
- async function evaluateCommand(args = []) {
2758
+ async function evaluateCommand(args = [], store = getOutcomeStore()) {
2710
2759
  const options = parseOptions(args);
2711
2760
  const startTime = getTimeProvider().now();
2712
2761
  try {
2713
2762
  const { results, componentsScanned, totalLines, timedOut } = await evaluateDirectory(
2714
2763
  options.target,
2715
- options.timeout
2764
+ options.timeout,
2765
+ store
2716
2766
  );
2717
2767
  const summary = calculateSummary(results);
2718
2768
  const commandResult = {
@@ -17577,7 +17627,7 @@ function startImprovementReviewScheduler(options) {
17577
17627
  let running = false;
17578
17628
  const runOnce = async () => {
17579
17629
  try {
17580
- const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-BGFCQV4I.js");
17630
+ const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-YFQ5T7I3.js");
17581
17631
  const input = ImprovementReviewInputSchema2.parse({ fileIssues });
17582
17632
  const result = await runImprovementReview2(input, { logger: logger18 });
17583
17633
  logger18.info("Scheduled improvement_review complete", {
@@ -18109,6 +18159,7 @@ var STANDALONE_TOOLS = [
18109
18159
  { name: "cancel_job", register: registerCancelJobTool },
18110
18160
  { name: "ci_health_check", register: registerCiHealthCheckTool },
18111
18161
  { name: "run_quality_gate", register: registerRunQualityGateTool },
18162
+ { name: "suggest_research_tasks", register: registerSuggestResearchTasksTool },
18112
18163
  { name: "verify_audit_chain", register: registerVerifyAuditChainTool },
18113
18164
  { name: "extract_symbols", register: registerExtractSymbolsTool },
18114
18165
  { name: "search_codebase", register: registerSearchCodebaseTool },