nexus-agents 11.2.1 → 11.2.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.
@@ -21,7 +21,7 @@ import {
21
21
  toolSuccess,
22
22
  withProgressHeartbeat,
23
23
  wrapToolWithTimeout
24
- } from "./chunk-GTAQ744F.js";
24
+ } from "./chunk-MHXLLJ3F.js";
25
25
  import {
26
26
  getToolMemory
27
27
  } from "./chunk-PPH3CAMR.js";
@@ -30,7 +30,7 @@ import {
30
30
  } from "./chunk-EZNIYU5T.js";
31
31
  import {
32
32
  VERSION
33
- } from "./chunk-7INKG2ZO.js";
33
+ } from "./chunk-KEX53NTU.js";
34
34
  import {
35
35
  ModelBoundAdapter,
36
36
  UNVERIFIABLE_STDERR_RE,
@@ -9915,4 +9915,4 @@ export {
9915
9915
  CONSENSUS_VOTE_TOOL_SCHEMA,
9916
9916
  registerConsensusVoteTool
9917
9917
  };
9918
- //# sourceMappingURL=chunk-6RYQMJYI.js.map
9918
+ //# sourceMappingURL=chunk-BYUMXEEW.js.map
@@ -7,7 +7,7 @@ import {
7
7
  toSdkCallback,
8
8
  toolStructuredError,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-GTAQ744F.js";
10
+ } from "./chunk-MHXLLJ3F.js";
11
11
  import {
12
12
  JsonlStore,
13
13
  SECURITY_KEYWORDS,
@@ -2435,4 +2435,4 @@ export {
2435
2435
  runImprovementReview,
2436
2436
  registerImprovementReviewTool
2437
2437
  };
2438
- //# sourceMappingURL=chunk-SZBLSAEU.js.map
2438
+ //# sourceMappingURL=chunk-CVNYJRYT.js.map
@@ -7,7 +7,7 @@ import {
7
7
  VERSION,
8
8
  isNodeVersionSupported,
9
9
  recordServerTransport
10
- } from "./chunk-7INKG2ZO.js";
10
+ } from "./chunk-KEX53NTU.js";
11
11
  import {
12
12
  checkGatewayHealth,
13
13
  cliFailsVerdict,
@@ -2263,7 +2263,7 @@ async function runDoctorFix(result) {
2263
2263
  writeLine2("\u2500".repeat(40));
2264
2264
  let fixCount = 0;
2265
2265
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
2266
- const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-TUUQXXMW.js");
2266
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-YMN6RWGU.js");
2267
2267
  const outcome = describeDataDirFix2(initDataDirectories2());
2268
2268
  writeLine2(outcome.line);
2269
2269
  if (outcome.counted) fixCount++;
@@ -2383,4 +2383,4 @@ export {
2383
2383
  startStdioServer,
2384
2384
  closeServer
2385
2385
  };
2386
- //# sourceMappingURL=chunk-FLD6KM6Q.js.map
2386
+ //# sourceMappingURL=chunk-KEVCUXSC.js.map
@@ -4,7 +4,7 @@ import {
4
4
 
5
5
  // src/version.ts
6
6
  import semver from "semver";
7
- var VERSION = true ? "11.2.1" : "dev";
7
+ var VERSION = true ? "11.2.2" : "dev";
8
8
  var NODE_ENGINE_RANGE = ">=24";
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-7INKG2ZO.js.map
109
+ //# sourceMappingURL=chunk-KEX53NTU.js.map
@@ -5,7 +5,7 @@ import {
5
5
  getCurrentRequestContext,
6
6
  runWithRequestContext,
7
7
  serverCallerInfo
8
- } from "./chunk-7INKG2ZO.js";
8
+ } from "./chunk-KEX53NTU.js";
9
9
  import {
10
10
  DEFAULT_EXECUTION_MODE
11
11
  } from "./chunk-TYLE7Z2S.js";
@@ -2345,4 +2345,4 @@ export {
2345
2345
  DEFAULT_CONSENSUS_CONFIG,
2346
2346
  ConsensusMetricsSchema
2347
2347
  };
2348
- //# sourceMappingURL=chunk-GTAQ744F.js.map
2348
+ //# sourceMappingURL=chunk-MHXLLJ3F.js.map
@@ -58,7 +58,7 @@ import {
58
58
  updateStage,
59
59
  withFileLock,
60
60
  writeJobCancelled
61
- } from "./chunk-6RYQMJYI.js";
61
+ } from "./chunk-BYUMXEEW.js";
62
62
  import {
63
63
  normalizeTopicToCanonical,
64
64
  synthesizeResearch
@@ -77,7 +77,7 @@ import {
77
77
  } from "./chunk-HQ2SMW4Y.js";
78
78
  import {
79
79
  withPrerequisite
80
- } from "./chunk-SZBLSAEU.js";
80
+ } from "./chunk-CVNYJRYT.js";
81
81
  import {
82
82
  NOOP_NOTIFIER,
83
83
  RateLimiter,
@@ -105,7 +105,7 @@ import {
105
105
  toolSuccess,
106
106
  withProgressHeartbeat,
107
107
  wrapToolWithTimeout
108
- } from "./chunk-GTAQ744F.js";
108
+ } from "./chunk-MHXLLJ3F.js";
109
109
  import {
110
110
  generateSecurityPlan
111
111
  } from "./chunk-6ZTMMN2N.js";
@@ -187,7 +187,7 @@ import {
187
187
  import {
188
188
  DEFAULT_TASK_TTL_MS,
189
189
  clampTaskTtl
190
- } from "./chunk-FLD6KM6Q.js";
190
+ } from "./chunk-KEVCUXSC.js";
191
191
  import {
192
192
  allOf,
193
193
  anyOf
@@ -196,7 +196,7 @@ import {
196
196
  VERSION,
197
197
  createRequestContext,
198
198
  measuredTrustTier
199
- } from "./chunk-7INKG2ZO.js";
199
+ } from "./chunk-KEX53NTU.js";
200
200
  import {
201
201
  BWRAP_READ_ONLY_ARGS,
202
202
  CliDetectionCache,
@@ -38752,21 +38752,20 @@ function resolveContextWarnThreshold(env = process.env) {
38752
38752
  return DEFAULT_CONTEXT_WARN_THRESHOLD;
38753
38753
  }
38754
38754
  function computeExpertContextUtilization(observation, threshold = DEFAULT_CONTEXT_WARN_THRESHOLD) {
38755
- const UNKNOWN_MODEL_CTX_DEFAULT = 8192;
38756
- const contextWindow = observation.modelId !== void 0 ? getModelContextWindow(observation.modelId) : UNKNOWN_MODEL_CTX_DEFAULT;
38757
- const utilization = contextWindow > 0 ? observation.tokensUsed / contextWindow : 0;
38755
+ const contextWindow = observation.modelId !== void 0 ? getModelContextWindow(observation.modelId) : void 0;
38756
+ const utilization = contextWindow !== void 0 && contextWindow > 0 && observation.tokensMeasured !== false ? observation.tokensUsed / contextWindow : void 0;
38758
38757
  return {
38759
38758
  tokensUsed: observation.tokensUsed,
38760
38759
  contextWindow,
38761
38760
  utilization,
38762
- warned: utilization >= threshold,
38761
+ warned: utilization !== void 0 && utilization >= threshold,
38763
38762
  threshold
38764
38763
  };
38765
38764
  }
38766
38765
  function observeExpertContext(observation, logger58, threshold = resolveContextWarnThreshold()) {
38767
38766
  try {
38768
38767
  const util = computeExpertContextUtilization(observation, threshold);
38769
- if (util.warned) {
38768
+ if (util.warned && util.utilization !== void 0) {
38770
38769
  logger58?.warn("context_warning", {
38771
38770
  event: "context_warning",
38772
38771
  expertId: observation.expertId,
@@ -38785,15 +38784,15 @@ function observeExpertContext(observation, logger58, threshold = resolveContextW
38785
38784
  expertId: observation.expertId,
38786
38785
  role: observation.role,
38787
38786
  modelId: observation.modelId,
38788
- utilizationPercent: Math.round(util.utilization * 100)
38787
+ utilizationPercent: util.utilization !== void 0 ? Math.round(util.utilization * 100) : void 0
38789
38788
  });
38790
38789
  }
38791
38790
  return util;
38792
38791
  } catch {
38793
38792
  return {
38794
38793
  tokensUsed: observation.tokensUsed,
38795
- contextWindow: 0,
38796
- utilization: 0,
38794
+ contextWindow: void 0,
38795
+ utilization: void 0,
38797
38796
  warned: false,
38798
38797
  threshold
38799
38798
  };
@@ -39011,7 +39010,7 @@ function buildSuccessResponse(params) {
39011
39010
  }
39012
39011
  function observeExpertContextIfOk(result, expert, task, durationMs, logger58) {
39013
39012
  if (!result.ok) return;
39014
- const expertModelId = expert.expertConfig.modelPreference?.modelId;
39013
+ const expertModelId = resolveExecutedModelId(result, expert);
39015
39014
  const observation = {
39016
39015
  expertId: expert.id,
39017
39016
  role: expert.role,
@@ -46685,7 +46684,7 @@ function buildVotingInput(plan, config) {
46685
46684
  }
46686
46685
  async function executeSingleVote(plan, config, log) {
46687
46686
  try {
46688
- const { executeVoting } = await import("./consensus-vote-LZUXE3VP.js");
46687
+ const { executeVoting } = await import("./consensus-vote-MBL2LMPQ.js");
46689
46688
  const input = buildVotingInput(plan, config);
46690
46689
  const result = await executeVoting(input, log);
46691
46690
  return parseVotingResult(result);
@@ -48518,7 +48517,7 @@ function createVoteStage({ config, startStage }) {
48518
48517
  const strategy = config.votingStrategy ?? "higher_order";
48519
48518
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
48520
48519
  try {
48521
- const { executeVoting } = await import("./consensus-vote-LZUXE3VP.js");
48520
+ const { executeVoting } = await import("./consensus-vote-MBL2LMPQ.js");
48522
48521
  const proposal = buildVoteProposal(plan, research);
48523
48522
  const votingResult = await executeVoting(
48524
48523
  {
@@ -58535,4 +58534,4 @@ export {
58535
58534
  initializeSandbox,
58536
58535
  getSandboxMode
58537
58536
  };
58538
- //# sourceMappingURL=chunk-OO762OTH.js.map
58537
+ //# sourceMappingURL=chunk-UGHLWL65.js.map