nexus-agents 4.31.0 → 4.31.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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-4I73QDDC.js";
3
+ } from "./chunk-LXX4WYGR.js";
4
4
  import {
5
5
  emitClawGuardViolation
6
6
  } from "./chunk-R2VI7R4E.js";
@@ -2116,4 +2116,4 @@ export {
2116
2116
  VOTING_THRESHOLDS,
2117
2117
  ConsensusMetricsSchema
2118
2118
  };
2119
- //# sourceMappingURL=chunk-3X24NGC3.js.map
2119
+ //# sourceMappingURL=chunk-3CSGTF3O.js.map
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-NEF7BWPK.js";
24
+ } from "./chunk-ZF4ZJAHG.js";
25
25
  import {
26
26
  executeExpert
27
27
  } from "./chunk-UQCF3MLC.js";
@@ -47,7 +47,7 @@ import {
47
47
  simulationDeniedResult,
48
48
  toJobSummary,
49
49
  writeJobCancelled
50
- } from "./chunk-ASRGWLV6.js";
50
+ } from "./chunk-EOWDTWLX.js";
51
51
  import {
52
52
  allOf
53
53
  } from "./chunk-OQB3XC5O.js";
@@ -64,7 +64,7 @@ import {
64
64
  } from "./chunk-U6ITIQUU.js";
65
65
  import {
66
66
  withPrerequisite
67
- } from "./chunk-OJS5NGWF.js";
67
+ } from "./chunk-WWVICRBB.js";
68
68
  import {
69
69
  NOOP_NOTIFIER,
70
70
  RateLimiter,
@@ -88,7 +88,7 @@ import {
88
88
  withAuditTrail,
89
89
  withProgressHeartbeat,
90
90
  wrapToolWithTimeout
91
- } from "./chunk-3X24NGC3.js";
91
+ } from "./chunk-3CSGTF3O.js";
92
92
  import {
93
93
  createAuditTrail,
94
94
  createGraphAuditBridge,
@@ -241,6 +241,7 @@ import {
241
241
  clamp,
242
242
  clamp01,
243
243
  classifyRequestTier,
244
+ computeTokenCost,
244
245
  createLogger,
245
246
  createSharedTaskAnalyzer,
246
247
  deriveEntry,
@@ -19617,7 +19618,10 @@ var capabilityRegistry = new Map(Object.entries(MODEL_CAPABILITIES));
19617
19618
  // src/agents/orchestration/puppeteer-config-types.ts
19618
19619
  var DEFAULT_COST_PER_1K_TOKENS = 0.01;
19619
19620
  function tokensToCostUsd(tokens, costPer1KTokens) {
19620
- return tokens * costPer1KTokens / 1e3;
19621
+ return computeTokenCost(
19622
+ { input: 0, output: 0, blended: tokens },
19623
+ { inputPer1M: 0, outputPer1M: 0, blendedPer1M: costPer1KTokens * 1e3 }
19624
+ ).costUsd;
19621
19625
  }
19622
19626
  var DEFAULT_PUPPETEER_CONFIG = {
19623
19627
  maxSteps: 10,
@@ -47537,7 +47541,7 @@ ${contextBlock}`;
47537
47541
  const strategy = config.votingStrategy ?? "higher_order";
47538
47542
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47539
47543
  try {
47540
- const { executeVoting } = await import("./consensus-vote-CFQLDSR5.js");
47544
+ const { executeVoting } = await import("./consensus-vote-C76CXCIO.js");
47541
47545
  const votingResult = await executeVoting(
47542
47546
  {
47543
47547
  proposal: buildVoteProposal(plan, research),
@@ -56165,4 +56169,4 @@ export {
56165
56169
  shutdownFeedbackSubscriber,
56166
56170
  createEventBusBridge
56167
56171
  };
56168
- //# sourceMappingURL=chunk-IMVFH4BO.js.map
56172
+ //# sourceMappingURL=chunk-6YF5VSUT.js.map