nexus-agents 8.54.10 → 8.54.12

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-QSIMCVZL.js";
3
+ } from "./chunk-KJ3FETDF.js";
4
4
  import {
5
5
  emitClawGuardViolation
6
6
  } from "./chunk-MG7XTYJW.js";
@@ -2364,4 +2364,4 @@ export {
2364
2364
  DEFAULT_CONSENSUS_CONFIG,
2365
2365
  ConsensusMetricsSchema
2366
2366
  };
2367
- //# sourceMappingURL=chunk-N3UVCPTF.js.map
2367
+ //# sourceMappingURL=chunk-445EVQYF.js.map
@@ -11,7 +11,7 @@ import {
11
11
  NODE_ENGINE_RANGE,
12
12
  VERSION,
13
13
  isNodeVersionSupported
14
- } from "./chunk-QSIMCVZL.js";
14
+ } from "./chunk-KJ3FETDF.js";
15
15
  import {
16
16
  claimGlobalRegistry
17
17
  } from "./chunk-WE7A4SRC.js";
@@ -1314,7 +1314,7 @@ async function runDoctorFix(result) {
1314
1314
  writeLine2("\u2500".repeat(40));
1315
1315
  let fixCount = 0;
1316
1316
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
1317
- const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-WNPHCYCX.js");
1317
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-4Y6GFNXN.js");
1318
1318
  const outcome = describeDataDirFix2(initDataDirectories2());
1319
1319
  writeLine2(outcome.line);
1320
1320
  if (outcome.counted) fixCount++;
@@ -1416,4 +1416,4 @@ export {
1416
1416
  startStdioServer,
1417
1417
  closeServer
1418
1418
  };
1419
- //# sourceMappingURL=chunk-RZ3QLNHO.js.map
1419
+ //# sourceMappingURL=chunk-7D6ZUDNF.js.map
@@ -24,10 +24,10 @@ import {
24
24
  toolSuccessStructured,
25
25
  withProgressHeartbeat,
26
26
  wrapToolWithTimeout
27
- } from "./chunk-N3UVCPTF.js";
27
+ } from "./chunk-445EVQYF.js";
28
28
  import {
29
29
  VERSION
30
- } from "./chunk-QSIMCVZL.js";
30
+ } from "./chunk-KJ3FETDF.js";
31
31
  import {
32
32
  UNRESOLVED_MODEL_ID,
33
33
  assessPanelIndependence,
@@ -1546,6 +1546,11 @@ async function launchStaggeredVotes(input) {
1546
1546
  signal: input.signal
1547
1547
  });
1548
1548
  }
1549
+ async function assignPanelSeats(fallbackAdapter, options, logger11) {
1550
+ if (options.adapter !== void 0) return assignUniformAdapter(options.roles, fallbackAdapter);
1551
+ if (options.roleAdapters !== void 0) return new Map(options.roleAdapters);
1552
+ return resolveDiverseAdapters(options.roles, logger11, fallbackAdapter, options.gatewayAdapters);
1553
+ }
1549
1554
  async function collectRealVotes(options) {
1550
1555
  const logger11 = options.logger ?? defaultLogger;
1551
1556
  const { roles, proposal, simulate, allowSimulation } = options;
@@ -1558,7 +1563,7 @@ async function collectRealVotes(options) {
1558
1563
  const adapterResult = resolveAdapterOrFail(options, logger11, allowSimulation === true);
1559
1564
  if ("simulated" in adapterResult)
1560
1565
  return createSimulatedVotes(roles, proposal, "No adapter available");
1561
- const roleAdapters = options.adapter !== void 0 ? assignUniformAdapter(roles, adapterResult.adapter) : await resolveDiverseAdapters(roles, logger11, adapterResult.adapter, options.gatewayAdapters);
1566
+ const roleAdapters = await assignPanelSeats(adapterResult.adapter, options, logger11);
1562
1567
  warnIfCodexConcurrencyExceeded(roleAdapters, logger11);
1563
1568
  const voteOptions = {
1564
1569
  timeoutMs,
@@ -8435,6 +8440,8 @@ export {
8435
8440
  PersistentOutcomeStore,
8436
8441
  isAbsentSeat,
8437
8442
  NoAdapterError,
8443
+ resolveAdapter,
8444
+ assignPanelSeats,
8438
8445
  collectRealVotes,
8439
8446
  VoterProjectInputSchema,
8440
8447
  resolveAndLogVoterProject,
@@ -8505,4 +8512,4 @@ export {
8505
8512
  CONSENSUS_VOTE_TOOL_SCHEMA,
8506
8513
  registerConsensusVoteTool
8507
8514
  };
8508
- //# sourceMappingURL=chunk-DRVFX4FB.js.map
8515
+ //# sourceMappingURL=chunk-AXTUNGYB.js.map