nexus-agents 11.4.4 → 11.4.5

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.
@@ -7,7 +7,7 @@ import {
7
7
  toSdkCallback,
8
8
  toolStructuredError,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-YC6QAHC2.js";
10
+ } from "./chunk-OF6RWX7Z.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-VGRTBVWC.js.map
2438
+ //# sourceMappingURL=chunk-2OEWVP7N.js.map
@@ -58,7 +58,7 @@ import {
58
58
  updateStage,
59
59
  withFileLock,
60
60
  writeJobCancelled
61
- } from "./chunk-NNVA7BZX.js";
61
+ } from "./chunk-N7JSM5IO.js";
62
62
  import {
63
63
  normalizeTopicToCanonical,
64
64
  synthesizeResearch
@@ -77,7 +77,7 @@ import {
77
77
  } from "./chunk-773AZVR3.js";
78
78
  import {
79
79
  withPrerequisite
80
- } from "./chunk-VGRTBVWC.js";
80
+ } from "./chunk-2OEWVP7N.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-YC6QAHC2.js";
108
+ } from "./chunk-OF6RWX7Z.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-OUU6EOZE.js";
190
+ } from "./chunk-DB2QJTJU.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-MYWMM23M.js";
199
+ } from "./chunk-I45YACKW.js";
200
200
  import {
201
201
  BWRAP_READ_ONLY_ARGS,
202
202
  CliDetectionCache,
@@ -46682,7 +46682,7 @@ function buildVotingInput(plan, config) {
46682
46682
  }
46683
46683
  async function executeSingleVote(plan, config, log) {
46684
46684
  try {
46685
- const { executeVoting } = await import("./consensus-vote-3AJ54VX3.js");
46685
+ const { executeVoting } = await import("./consensus-vote-E745BE4Z.js");
46686
46686
  const input = buildVotingInput(plan, config);
46687
46687
  const result = await executeVoting(input, log);
46688
46688
  return parseVotingResult(result);
@@ -48526,7 +48526,7 @@ function createVoteStage({ config, startStage }) {
48526
48526
  const strategy = config.votingStrategy ?? "higher_order";
48527
48527
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
48528
48528
  try {
48529
- const { executeVoting } = await import("./consensus-vote-3AJ54VX3.js");
48529
+ const { executeVoting } = await import("./consensus-vote-E745BE4Z.js");
48530
48530
  const proposal = buildVoteProposal(plan, research);
48531
48531
  const votingResult = await executeVoting(
48532
48532
  {
@@ -59185,4 +59185,4 @@ export {
59185
59185
  initializeSandbox,
59186
59186
  getSandboxMode
59187
59187
  };
59188
- //# sourceMappingURL=chunk-HNGZ5AMV.js.map
59188
+ //# sourceMappingURL=chunk-6FE3EMVK.js.map
@@ -7,7 +7,7 @@ import {
7
7
  VERSION,
8
8
  isNodeVersionSupported,
9
9
  recordServerTransport
10
- } from "./chunk-MYWMM23M.js";
10
+ } from "./chunk-I45YACKW.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-UOKXLPTP.js");
2266
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-WFZBUBRW.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-OUU6EOZE.js.map
2386
+ //# sourceMappingURL=chunk-DB2QJTJU.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.4.4" : "dev";
7
+ var VERSION = true ? "11.4.5" : "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-MYWMM23M.js.map
109
+ //# sourceMappingURL=chunk-I45YACKW.js.map
@@ -21,7 +21,7 @@ import {
21
21
  toolSuccess,
22
22
  withProgressHeartbeat,
23
23
  wrapToolWithTimeout
24
- } from "./chunk-YC6QAHC2.js";
24
+ } from "./chunk-OF6RWX7Z.js";
25
25
  import {
26
26
  getToolMemory
27
27
  } from "./chunk-Y3A3VVGT.js";
@@ -30,7 +30,7 @@ import {
30
30
  } from "./chunk-EZNIYU5T.js";
31
31
  import {
32
32
  VERSION
33
- } from "./chunk-MYWMM23M.js";
33
+ } from "./chunk-I45YACKW.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-NNVA7BZX.js.map
9918
+ //# sourceMappingURL=chunk-N7JSM5IO.js.map
@@ -5,7 +5,7 @@ import {
5
5
  getCurrentRequestContext,
6
6
  runWithRequestContext,
7
7
  serverCallerInfo
8
- } from "./chunk-MYWMM23M.js";
8
+ } from "./chunk-I45YACKW.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-YC6QAHC2.js.map
2348
+ //# sourceMappingURL=chunk-OF6RWX7Z.js.map
package/dist/cli.js CHANGED
@@ -173,7 +173,7 @@ import {
173
173
  validateWorkflow,
174
174
  withPanelWorkspace,
175
175
  wrapInMarkdownFence
176
- } from "./chunk-HNGZ5AMV.js";
176
+ } from "./chunk-6FE3EMVK.js";
177
177
  import "./chunk-FYXIWH62.js";
178
178
  import "./chunk-BDP422B2.js";
179
179
  import {
@@ -198,7 +198,7 @@ import {
198
198
  seatFallbacks,
199
199
  servedSubstitutions,
200
200
  toRecordDecision
201
- } from "./chunk-NNVA7BZX.js";
201
+ } from "./chunk-N7JSM5IO.js";
202
202
  import {
203
203
  synthesizeResearch
204
204
  } from "./chunk-FGR6O454.js";
@@ -236,14 +236,14 @@ import {
236
236
  renderPlanAsResearch,
237
237
  runImprovementReview,
238
238
  scanForSecrets
239
- } from "./chunk-VGRTBVWC.js";
239
+ } from "./chunk-2OEWVP7N.js";
240
240
  import {
241
241
  getGlobalExecutionMode,
242
242
  setGlobalExecutionMode,
243
243
  setGlobalPolicyFirewall,
244
244
  setSecureHandlerAuditLogger,
245
245
  stagePolicyFirewallForRollout
246
- } from "./chunk-YC6QAHC2.js";
246
+ } from "./chunk-OF6RWX7Z.js";
247
247
  import "./chunk-6ZTMMN2N.js";
248
248
  import "./chunk-4GDMHCKX.js";
249
249
  import "./chunk-I2THTVA4.js";
@@ -315,7 +315,7 @@ import {
315
315
  loadConfig,
316
316
  printDoctorSummary,
317
317
  runDoctor
318
- } from "./chunk-OUU6EOZE.js";
318
+ } from "./chunk-DB2QJTJU.js";
319
319
  import {
320
320
  allOf,
321
321
  anyOf
@@ -324,7 +324,7 @@ import {
324
324
  NODE_ENGINE_RANGE,
325
325
  VERSION,
326
326
  isNodeVersionSupported
327
- } from "./chunk-MYWMM23M.js";
327
+ } from "./chunk-I45YACKW.js";
328
328
  import "./chunk-BGELNT5F.js";
329
329
  import {
330
330
  claimGlobalRegistry,
@@ -13307,6 +13307,14 @@ function writeLine4(text) {
13307
13307
  function writeEmptyLine3() {
13308
13308
  process.stdout.write("\n");
13309
13309
  }
13310
+ function bareServerEntry(snippet) {
13311
+ try {
13312
+ const entry = JSON.parse(snippet).mcpServers?.["nexus-agents"];
13313
+ return entry === void 0 ? snippet : JSON.stringify(entry);
13314
+ } catch {
13315
+ return snippet;
13316
+ }
13317
+ }
13310
13318
  function printMcpResult(mcpResult, snippet) {
13311
13319
  writeLine4(formatHeader("MCP Configuration"));
13312
13320
  writeLine4("\u2500".repeat(40));
@@ -13319,7 +13327,7 @@ function printMcpResult(mcpResult, snippet) {
13319
13327
  writeEmptyLine3();
13320
13328
  writeLine4("Manual fallback - run:");
13321
13329
  writeEmptyLine3();
13322
- writeLine4(formatCodeBlock(`claude mcp add-json nexus-agents '${snippet}'`));
13330
+ writeLine4(formatCodeBlock(`claude mcp add-json nexus-agents '${bareServerEntry(snippet)}'`));
13323
13331
  }
13324
13332
  }
13325
13333
  writeEmptyLine3();
@@ -13541,7 +13549,7 @@ function runHooksStep(env2, options) {
13541
13549
  const status = hookResult.success ? hookResult.alreadyConfigured ? "skipped" : "success" : "failed";
13542
13550
  return makeHooksResult(status, hookResult.message, startTime, hookResult);
13543
13551
  }
13544
- function runOpenCodeStep(options) {
13552
+ function runOpenCodeStep(options, projectRoot) {
13545
13553
  const startTime = getTimeProvider().now();
13546
13554
  if (options.skipOpencode) {
13547
13555
  return {
@@ -13561,7 +13569,11 @@ function runOpenCodeStep(options) {
13561
13569
  durationMs: getTimeProvider().now() - startTime
13562
13570
  };
13563
13571
  }
13564
- const result = configureOpenCode(options.force, options.dryRun);
13572
+ const result = configureOpenCode(
13573
+ options.force,
13574
+ options.dryRun,
13575
+ options.scope === "project" ? { force: options.force, dryRun: options.dryRun, projectRoot } : void 0
13576
+ );
13565
13577
  return {
13566
13578
  name: "OpenCode MCP",
13567
13579
  status: result.success ? result.alreadyConfigured ? "skipped" : "success" : "failed",
@@ -13582,7 +13594,7 @@ function runDataDirStep(options) {
13582
13594
  result: dataDirResult
13583
13595
  };
13584
13596
  }
13585
- function runCodexStep(options) {
13597
+ function runCodexStep(options, warnings) {
13586
13598
  const startTime = getTimeProvider().now();
13587
13599
  if (options.skipCodex) {
13588
13600
  return {
@@ -13602,6 +13614,11 @@ function runCodexStep(options) {
13602
13614
  durationMs: getTimeProvider().now() - startTime
13603
13615
  };
13604
13616
  }
13617
+ if (options.scope === "project") {
13618
+ warnings.push(
13619
+ "Codex setup does not honour --scope project; using user scope (~/.codex/config.toml)."
13620
+ );
13621
+ }
13605
13622
  const result = configureCodex(options.force, options.dryRun);
13606
13623
  return {
13607
13624
  name: "Codex MCP",
@@ -13697,8 +13714,8 @@ function runSetup(options = {}) {
13697
13714
  const { step: rulesStep, rulesPath } = runRulesStep(env2, parsedOptions);
13698
13715
  const { step: hooksStep, hookSnippet, hookResult } = runHooksStep(env2, parsedOptions);
13699
13716
  const { step: dataDirStep, result: dataDirResult } = runDataDirStep(parsedOptions);
13700
- const openCodeStep = runOpenCodeStep(parsedOptions);
13701
- const codexStep = runCodexStep(parsedOptions);
13717
+ const openCodeStep = runOpenCodeStep(parsedOptions, env2.projectInfo.root);
13718
+ const codexStep = runCodexStep(parsedOptions, warnings);
13702
13719
  const configStep = runConfigStep(projectRoot, parsedOptions);
13703
13720
  const steps = [
13704
13721
  detectionStep,
@@ -19277,7 +19294,7 @@ function startImprovementReviewScheduler(options) {
19277
19294
  let running = false;
19278
19295
  const runOnce = async () => {
19279
19296
  try {
19280
- const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-HTSRGEF5.js");
19297
+ const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-3EHG6QIH.js");
19281
19298
  const input = ImprovementReviewInputSchema2.parse({ fileIssues });
19282
19299
  const result = await runImprovementReview2(input, { logger: logger22 });
19283
19300
  logger22.info("Scheduled improvement_review complete", {