nexus-agents 8.124.0 → 8.124.1

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.
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-T2AOQTW4.js";
10
10
  import {
11
11
  withPrerequisite
12
- } from "./chunk-3G73BY6C.js";
12
+ } from "./chunk-VO7LQJGK.js";
13
13
  import {
14
14
  generateSecurityPlan
15
15
  } from "./chunk-5AALTS3S.js";
@@ -42,7 +42,7 @@ import {
42
42
  import {
43
43
  DEFAULT_TASK_TTL_MS,
44
44
  clampTaskTtl
45
- } from "./chunk-FEOYDA6G.js";
45
+ } from "./chunk-ZETA2VK3.js";
46
46
  import {
47
47
  executeExpert
48
48
  } from "./chunk-B3ALYUFL.js";
@@ -96,7 +96,7 @@ import {
96
96
  withFileLock,
97
97
  withWarnings,
98
98
  writeJobCancelled
99
- } from "./chunk-P4HUSF6P.js";
99
+ } from "./chunk-V4YI2AO4.js";
100
100
  import {
101
101
  NOOP_NOTIFIER,
102
102
  RateLimiter,
@@ -122,12 +122,12 @@ import {
122
122
  toolSuccessStructured,
123
123
  withProgressHeartbeat,
124
124
  wrapToolWithTimeout
125
- } from "./chunk-Y7EVXWYU.js";
125
+ } from "./chunk-GNK2W5K7.js";
126
126
  import {
127
127
  VERSION,
128
128
  createRequestContext,
129
129
  measuredTrustTier
130
- } from "./chunk-MBBQDXX6.js";
130
+ } from "./chunk-GEB4MC7P.js";
131
131
  import {
132
132
  allOf,
133
133
  anyOf
@@ -47052,7 +47052,7 @@ function buildVotingInput(plan, config) {
47052
47052
  }
47053
47053
  async function executeSingleVote(plan, config, log) {
47054
47054
  try {
47055
- const { executeVoting } = await import("./consensus-vote-ALEIBLKC.js");
47055
+ const { executeVoting } = await import("./consensus-vote-2SH6QSN7.js");
47056
47056
  const input = buildVotingInput(plan, config);
47057
47057
  const result = await executeVoting(input, log);
47058
47058
  return parseVotingResult(result);
@@ -48199,7 +48199,7 @@ function createVoteStage({ config, startStage }) {
48199
48199
  const strategy = config.votingStrategy ?? "higher_order";
48200
48200
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
48201
48201
  try {
48202
- const { executeVoting } = await import("./consensus-vote-ALEIBLKC.js");
48202
+ const { executeVoting } = await import("./consensus-vote-2SH6QSN7.js");
48203
48203
  const proposal = buildVoteProposal(plan, research);
48204
48204
  const votingResult = await executeVoting(
48205
48205
  {
@@ -57797,4 +57797,4 @@ export {
57797
57797
  startPipelineEventBridge,
57798
57798
  shutdownPipelineEventBridge
57799
57799
  };
57800
- //# sourceMappingURL=chunk-WLVNNTZZ.js.map
57800
+ //# sourceMappingURL=chunk-7NCN5OXN.js.map
@@ -4,7 +4,7 @@ import {
4
4
 
5
5
  // src/version.ts
6
6
  import semver from "semver";
7
- var VERSION = true ? "8.124.0" : "dev";
7
+ var VERSION = true ? "8.124.1" : "dev";
8
8
  var NODE_ENGINE_RANGE = ">=22.5.0";
9
9
  function isNodeVersionSupported(version) {
10
10
  return semver.satisfies(version, NODE_ENGINE_RANGE);
@@ -106,4 +106,4 @@ export {
106
106
  contextForLogging,
107
107
  measuredTrustTier
108
108
  };
109
- //# sourceMappingURL=chunk-MBBQDXX6.js.map
109
+ //# sourceMappingURL=chunk-GEB4MC7P.js.map
@@ -5,7 +5,7 @@ import {
5
5
  getCurrentRequestContext,
6
6
  runWithRequestContext,
7
7
  serverCallerInfo
8
- } from "./chunk-MBBQDXX6.js";
8
+ } from "./chunk-GEB4MC7P.js";
9
9
  import {
10
10
  DEFAULT_EXECUTION_MODE
11
11
  } from "./chunk-ECJ52NSK.js";
@@ -2256,4 +2256,4 @@ export {
2256
2256
  DEFAULT_CONSENSUS_CONFIG,
2257
2257
  ConsensusMetricsSchema
2258
2258
  };
2259
- //# sourceMappingURL=chunk-Y7EVXWYU.js.map
2259
+ //# sourceMappingURL=chunk-GNK2W5K7.js.map
@@ -19,10 +19,10 @@ import {
19
19
  toolSuccessStructured,
20
20
  withProgressHeartbeat,
21
21
  wrapToolWithTimeout
22
- } from "./chunk-Y7EVXWYU.js";
22
+ } from "./chunk-GNK2W5K7.js";
23
23
  import {
24
24
  VERSION
25
- } from "./chunk-MBBQDXX6.js";
25
+ } from "./chunk-GEB4MC7P.js";
26
26
  import {
27
27
  allOf
28
28
  } from "./chunk-EZNIYU5T.js";
@@ -9346,4 +9346,4 @@ export {
9346
9346
  CONSENSUS_VOTE_TOOL_SCHEMA,
9347
9347
  registerConsensusVoteTool
9348
9348
  };
9349
- //# sourceMappingURL=chunk-P4HUSF6P.js.map
9349
+ //# sourceMappingURL=chunk-V4YI2AO4.js.map
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-Y7EVXWYU.js";
10
+ } from "./chunk-GNK2W5K7.js";
11
11
  import {
12
12
  JsonlStore,
13
13
  SECURITY_KEYWORDS,
@@ -2293,4 +2293,4 @@ export {
2293
2293
  runImprovementReview,
2294
2294
  registerImprovementReviewTool
2295
2295
  };
2296
- //# sourceMappingURL=chunk-3G73BY6C.js.map
2296
+ //# sourceMappingURL=chunk-VO7LQJGK.js.map
@@ -16,7 +16,7 @@ import {
16
16
  VERSION,
17
17
  isNodeVersionSupported,
18
18
  recordServerTransport
19
- } from "./chunk-MBBQDXX6.js";
19
+ } from "./chunk-GEB4MC7P.js";
20
20
  import {
21
21
  allOf,
22
22
  anyOf
@@ -1518,7 +1518,7 @@ async function runDoctorFix(result) {
1518
1518
  writeLine2("\u2500".repeat(40));
1519
1519
  let fixCount = 0;
1520
1520
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
1521
- const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-DUDPUBXE.js");
1521
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-ZAXXYDFX.js");
1522
1522
  const outcome = describeDataDirFix2(initDataDirectories2());
1523
1523
  writeLine2(outcome.line);
1524
1524
  if (outcome.counted) fixCount++;
@@ -1620,4 +1620,4 @@ export {
1620
1620
  startStdioServer,
1621
1621
  closeServer
1622
1622
  };
1623
- //# sourceMappingURL=chunk-FEOYDA6G.js.map
1623
+ //# sourceMappingURL=chunk-ZETA2VK3.js.map
package/dist/cli.js CHANGED
@@ -164,7 +164,7 @@ import {
164
164
  validateNexusEnv,
165
165
  validateWorkflow,
166
166
  wrapInMarkdownFence
167
- } from "./chunk-WLVNNTZZ.js";
167
+ } from "./chunk-7NCN5OXN.js";
168
168
  import {
169
169
  DRAFT_REPLY_BODY_MAX_LENGTH,
170
170
  configureUntrustedInputFirewall,
@@ -189,7 +189,7 @@ import {
189
189
  registerImprovementReviewTool,
190
190
  runImprovementReview,
191
191
  scanForSecrets
192
- } from "./chunk-3G73BY6C.js";
192
+ } from "./chunk-VO7LQJGK.js";
193
193
  import "./chunk-5AALTS3S.js";
194
194
  import "./chunk-4GDMHCKX.js";
195
195
  import "./chunk-7ETWTSTB.js";
@@ -214,7 +214,7 @@ import {
214
214
  doctorCommand,
215
215
  initDataDirectories,
216
216
  runDoctor
217
- } from "./chunk-FEOYDA6G.js";
217
+ } from "./chunk-ZETA2VK3.js";
218
218
  import "./chunk-I7WLZ3KF.js";
219
219
  import "./chunk-EL6WVSX2.js";
220
220
  import {
@@ -236,19 +236,19 @@ import {
236
236
  registerConsensusVoteTool,
237
237
  seatFallbacks,
238
238
  toRecordDecision
239
- } from "./chunk-P4HUSF6P.js";
239
+ } from "./chunk-V4YI2AO4.js";
240
240
  import {
241
241
  getGlobalExecutionMode,
242
242
  setGlobalExecutionMode,
243
243
  setGlobalPolicyFirewall,
244
244
  setSecureHandlerAuditLogger,
245
245
  stagePolicyFirewallForRollout
246
- } from "./chunk-Y7EVXWYU.js";
246
+ } from "./chunk-GNK2W5K7.js";
247
247
  import {
248
248
  NODE_ENGINE_RANGE,
249
249
  VERSION,
250
250
  isNodeVersionSupported
251
- } from "./chunk-MBBQDXX6.js";
251
+ } from "./chunk-GEB4MC7P.js";
252
252
  import {
253
253
  allOf,
254
254
  anyOf
@@ -20085,7 +20085,7 @@ function startImprovementReviewScheduler(options) {
20085
20085
  let running = false;
20086
20086
  const runOnce = async () => {
20087
20087
  try {
20088
- const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-JCBJBN7E.js");
20088
+ const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-5RHRONVJ.js");
20089
20089
  const input = ImprovementReviewInputSchema2.parse({ fileIssues });
20090
20090
  const result = await runImprovementReview2(input, { logger: logger23 });
20091
20091
  logger23.info("Scheduled improvement_review complete", {
@@ -10,9 +10,9 @@ import {
10
10
  resetCorrelationTracker,
11
11
  runConsensusForGoal,
12
12
  unwrapVoteOrThrow
13
- } from "./chunk-P4HUSF6P.js";
14
- import "./chunk-Y7EVXWYU.js";
15
- import "./chunk-MBBQDXX6.js";
13
+ } from "./chunk-V4YI2AO4.js";
14
+ import "./chunk-GNK2W5K7.js";
15
+ import "./chunk-GEB4MC7P.js";
16
16
  import "./chunk-EZNIYU5T.js";
17
17
  import "./chunk-AFYFKT6T.js";
18
18
  import "./chunk-3CBBUAZZ.js";
@@ -51,4 +51,4 @@ export {
51
51
  runConsensusForGoal,
52
52
  unwrapVoteOrThrow
53
53
  };
54
- //# sourceMappingURL=consensus-vote-ALEIBLKC.js.map
54
+ //# sourceMappingURL=consensus-vote-2SH6QSN7.js.map
@@ -10,9 +10,9 @@ import {
10
10
  loadSelfEvalSignals,
11
11
  registerImprovementReviewTool,
12
12
  runImprovementReview
13
- } from "./chunk-3G73BY6C.js";
14
- import "./chunk-Y7EVXWYU.js";
15
- import "./chunk-MBBQDXX6.js";
13
+ } from "./chunk-VO7LQJGK.js";
14
+ import "./chunk-GNK2W5K7.js";
15
+ import "./chunk-GEB4MC7P.js";
16
16
  import "./chunk-ECJ52NSK.js";
17
17
  import "./chunk-IYKF6Q6B.js";
18
18
  import "./chunk-L5CDQ7QK.js";
@@ -32,4 +32,4 @@ export {
32
32
  registerImprovementReviewTool,
33
33
  runImprovementReview
34
34
  };
35
- //# sourceMappingURL=improvement-review-JCBJBN7E.js.map
35
+ //# sourceMappingURL=improvement-review-5RHRONVJ.js.map
package/dist/index.js CHANGED
@@ -538,7 +538,7 @@ import {
538
538
  withLogging,
539
539
  withRetry,
540
540
  withRetryWrapper
541
- } from "./chunk-WLVNNTZZ.js";
541
+ } from "./chunk-7NCN5OXN.js";
542
542
  import {
543
543
  AgentActionSchema,
544
544
  AuditTrail,
@@ -581,7 +581,7 @@ import {
581
581
  import {
582
582
  ImprovementReviewInputSchema,
583
583
  registerImprovementReviewTool
584
- } from "./chunk-3G73BY6C.js";
584
+ } from "./chunk-VO7LQJGK.js";
585
585
  import {
586
586
  FALLBACK_SCANNER_DATA,
587
587
  buildPlanFromAnalysis,
@@ -634,7 +634,7 @@ import {
634
634
  connectTransport,
635
635
  createServer,
636
636
  startStdioServer
637
- } from "./chunk-FEOYDA6G.js";
637
+ } from "./chunk-ZETA2VK3.js";
638
638
  import "./chunk-I7WLZ3KF.js";
639
639
  import "./chunk-EL6WVSX2.js";
640
640
  import {
@@ -688,7 +688,7 @@ import {
688
688
  generateProposalId,
689
689
  parseAgentPairKey,
690
690
  registerConsensusVoteTool
691
- } from "./chunk-P4HUSF6P.js";
691
+ } from "./chunk-V4YI2AO4.js";
692
692
  import {
693
693
  AgentPerformanceSchema,
694
694
  ConsensusAlgorithmSchema,
@@ -725,10 +725,10 @@ import {
725
725
  toolSuccess,
726
726
  toolSuccessStructured,
727
727
  validateToolInput
728
- } from "./chunk-Y7EVXWYU.js";
728
+ } from "./chunk-GNK2W5K7.js";
729
729
  import {
730
730
  VERSION
731
- } from "./chunk-MBBQDXX6.js";
731
+ } from "./chunk-GEB4MC7P.js";
732
732
  import {
733
733
  allOf
734
734
  } from "./chunk-EZNIYU5T.js";
@@ -765,7 +765,9 @@ import {
765
765
  MemoryError
766
766
  } from "./chunk-T7ZKHG5T.js";
767
767
  import "./chunk-ZO6ZKR7L.js";
768
- import "./chunk-SX5DB6UR.js";
768
+ import {
769
+ truncateText
770
+ } from "./chunk-SX5DB6UR.js";
769
771
  import "./chunk-LK7GODI6.js";
770
772
  import {
771
773
  GitHubUserRoleSchema,
@@ -1087,6 +1089,7 @@ function createTaskOutcome(params) {
1087
1089
 
1088
1090
  // src/learning/outcome-feedback.ts
1089
1091
  var logger2 = createLogger({ component: "OutcomeFeedback" });
1092
+ var MAX_HISTORY_QUERY_LENGTH = 256;
1090
1093
  function ratioBonus(target, actual, weight) {
1091
1094
  if (!Number.isFinite(actual) || actual <= 0) return 0;
1092
1095
  return Math.min(1, target / actual) * weight;
@@ -1144,7 +1147,11 @@ var OutcomeFeedbackCollector = class {
1144
1147
  }
1145
1148
  }
1146
1149
  this.pendingDecisions.set(decision.traceId, decision);
1147
- this.decisionHistory.push(decision);
1150
+ this.decisionHistory.push({
1151
+ ...decision,
1152
+ // Materialize the prefix: V8 sliced strings can retain the full task's backing store.
1153
+ query: truncateText(decision.query, MAX_HISTORY_QUERY_LENGTH).split("").join("")
1154
+ });
1148
1155
  this.trimHistory();
1149
1156
  logger2.debug("Routing decision recorded", {
1150
1157
  id: decision.id,
@@ -1306,7 +1313,10 @@ var OutcomeFeedbackCollector = class {
1306
1313
  }
1307
1314
  }
1308
1315
  findDecisionByRoutingId(routingDecisionId) {
1309
- return this.decisionHistory.find((d) => d.id === routingDecisionId);
1316
+ const history = this.decisionHistory.find((d) => d.id === routingDecisionId);
1317
+ if (history === void 0) return void 0;
1318
+ const pending = this.pendingDecisions.get(history.traceId);
1319
+ return pending?.id === routingDecisionId ? pending : history;
1310
1320
  }
1311
1321
  findOldestPendingDecision() {
1312
1322
  let oldest;