nexus-agents 8.103.0 → 8.103.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.
Files changed (134) hide show
  1. package/dist/{ast-rule-runner-MG5CSPWM.js → ast-rule-runner-VIIZKD35.js} +3 -3
  2. package/dist/{child-mcp-config-WPCDGWFE.js → child-mcp-config-2JYO5AJP.js} +2 -2
  3. package/dist/{chunk-KLHFVYAP.js → chunk-2DBAC2OY.js} +20 -79
  4. package/dist/chunk-2DBAC2OY.js.map +1 -0
  5. package/dist/{chunk-KG7QNWWR.js → chunk-2SAKTPAB.js} +2 -2
  6. package/dist/{chunk-ZDFC5TOU.js → chunk-3GYS7COR.js} +3 -3
  7. package/dist/{chunk-PKWOB6SS.js → chunk-47G5DKIB.js} +2 -2
  8. package/dist/{chunk-55VTUHIR.js → chunk-4K3SY7XD.js} +91 -4
  9. package/dist/chunk-4K3SY7XD.js.map +1 -0
  10. package/dist/{chunk-NIE77YOM.js → chunk-5TRW6QSO.js} +41 -40
  11. package/dist/{chunk-NIE77YOM.js.map → chunk-5TRW6QSO.js.map} +1 -1
  12. package/dist/{chunk-N22A5RSA.js → chunk-5ZONF4CQ.js} +2 -2
  13. package/dist/{chunk-FADEMLNQ.js → chunk-7LX3GAS5.js} +7 -7
  14. package/dist/{chunk-Z7L5C35G.js → chunk-AKOWEZKO.js} +2 -2
  15. package/dist/{chunk-7IU7HDDO.js → chunk-CRTPETKD.js} +2 -2
  16. package/dist/{chunk-SZGVILVS.js → chunk-DUHH2IS4.js} +4 -3
  17. package/dist/{chunk-G47QXLHM.js → chunk-F2UTYE6D.js} +12 -12
  18. package/dist/{chunk-SFKQIPPE.js → chunk-F7SZ56LN.js} +8 -8
  19. package/dist/{chunk-SEGBB7VI.js → chunk-FU3IJOUI.js} +5 -5
  20. package/dist/{chunk-CPFKM4K7.js → chunk-GAYE5GWR.js} +22 -8
  21. package/dist/chunk-GAYE5GWR.js.map +1 -0
  22. package/dist/{chunk-LRDHTYE3.js → chunk-HI5SDT6A.js} +2 -2
  23. package/dist/{chunk-JGZHI37B.js → chunk-ILUSO4TT.js} +2 -2
  24. package/dist/{chunk-2DOH7LES.js → chunk-JFQJLOW4.js} +30 -6
  25. package/dist/chunk-JFQJLOW4.js.map +1 -0
  26. package/dist/{chunk-45HAQ44K.js → chunk-JI4WSYTK.js} +3 -3
  27. package/dist/{chunk-BD4GXOQB.js → chunk-JL22F4XW.js} +5 -5
  28. package/dist/{chunk-S7GEUHK6.js → chunk-JZQQVIKS.js} +23 -2
  29. package/dist/{chunk-S7GEUHK6.js.map → chunk-JZQQVIKS.js.map} +1 -1
  30. package/dist/{chunk-CP6NEDAC.js → chunk-MG7HNWZT.js} +2 -2
  31. package/dist/{chunk-XYUNU7UD.js → chunk-NIMOQ4ZY.js} +3 -3
  32. package/dist/{chunk-Y6EZX773.js → chunk-P6UFA2UN.js} +2 -2
  33. package/dist/{chunk-XXHO52MZ.js → chunk-Q34QYIQZ.js} +2 -2
  34. package/dist/{chunk-THCAUXID.js → chunk-QOBBJAQK.js} +2 -2
  35. package/dist/{chunk-AJMJPUPR.js → chunk-SFXQEW3O.js} +3 -3
  36. package/dist/{chunk-ZVNEWTHP.js → chunk-SXO5CV6E.js} +2 -2
  37. package/dist/{chunk-VFT7OHAD.js → chunk-TFAI7OB7.js} +2 -2
  38. package/dist/{chunk-3KQJ54R6.js → chunk-UP2GSUT5.js} +4 -4
  39. package/dist/{chunk-MITLS7S7.js → chunk-USGPMAWQ.js} +4 -4
  40. package/dist/{chunk-TEKDGJ7T.js → chunk-WWDTDPX4.js} +2 -2
  41. package/dist/{chunk-OJQNSD2R.js → chunk-XPXTELLI.js} +2 -2
  42. package/dist/{chunk-WVSFUDDF.js → chunk-Y365LONR.js} +2 -2
  43. package/dist/{cli-circuit-breaker-FDVTKR3W.js → cli-circuit-breaker-TUSDZ2SV.js} +3 -3
  44. package/dist/cli.js +50 -46
  45. package/dist/cli.js.map +1 -1
  46. package/dist/{composite-router-OTSHVAIF.js → composite-router-RPUHBTVN.js} +2 -2
  47. package/dist/{consensus-vote-QGW6QVZO.js → consensus-vote-NBVBPFIB.js} +16 -16
  48. package/dist/{context-retriever-QI6XW5LK.js → context-retriever-BKOWAH5O.js} +8 -8
  49. package/dist/{doctor-deep-375FGXVN.js → doctor-deep-KNTBC4H2.js} +3 -3
  50. package/dist/{doctor-gateway-report-ZPZQLULX.js → doctor-gateway-report-HOQXHTPV.js} +6 -6
  51. package/dist/{doctor-live-FCXFMIYP.js → doctor-live-GZDB4B33.js} +10 -10
  52. package/dist/{expert-bridge-VLDOWCEX.js → expert-bridge-YGKTCGCZ.js} +4 -4
  53. package/dist/{factory-AXQJGIQ2.js → factory-22OXEIIE.js} +5 -5
  54. package/dist/{factory-M4I2H672.js → factory-5QHVFCXC.js} +9 -9
  55. package/dist/{improvement-review-6ZEUEFSB.js → improvement-review-XTP7JMEZ.js} +5 -5
  56. package/dist/index.js +31 -31
  57. package/dist/{init-opencode-W4PHSNEW.js → init-opencode-ETQVTJS2.js} +5 -5
  58. package/dist/issue-triage-LWHJZJXW.js +16 -0
  59. package/dist/{openai-compat-adapter-DYQGI4QH.js → openai-compat-adapter-OYPGYA7H.js} +5 -5
  60. package/dist/{pr-reviewer-helpers-BUVRQYVV.js → pr-reviewer-helpers-UQCX6JJV.js} +4 -4
  61. package/dist/{registry-command-V5O2RJKG.js → registry-command-5ZDFQVNQ.js} +2 -2
  62. package/dist/{repo-security-plan-2ZLH3LHT.js → repo-security-plan-C3E4UCMK.js} +3 -3
  63. package/dist/{research-helpers-synthesize-52U4FSGP.js → research-helpers-synthesize-MHHRXBUM.js} +4 -4
  64. package/dist/{routing-memory-3FIWR6WH.js → routing-memory-ZY2HWUJH.js} +2 -2
  65. package/dist/{session-memory-HIH3T3NA.js → session-memory-OTOULTRW.js} +3 -3
  66. package/dist/{setup-config-IP75P4NY.js → setup-config-2WG42YRL.js} +3 -3
  67. package/dist/{setup-custom-api-DAFW3DKS.js → setup-custom-api-XLCFXFP6.js} +4 -4
  68. package/dist/setup-data-dir-BOZJED5R.js +33 -0
  69. package/dist/{tool-memory-LAFHMYSR.js → tool-memory-FQR6ZO5H.js} +5 -5
  70. package/dist/{unified-registry-N4MPRQUA.js → unified-registry-F23TAIRP.js} +10 -10
  71. package/dist/{weather-report-MKHINWCE.js → weather-report-6XYTDVTL.js} +2 -2
  72. package/package.json +1 -1
  73. package/dist/chunk-2DOH7LES.js.map +0 -1
  74. package/dist/chunk-55VTUHIR.js.map +0 -1
  75. package/dist/chunk-CPFKM4K7.js.map +0 -1
  76. package/dist/chunk-KLHFVYAP.js.map +0 -1
  77. package/dist/issue-triage-D2FVG6WU.js +0 -16
  78. package/dist/setup-data-dir-ZF4KKISC.js +0 -33
  79. /package/dist/{ast-rule-runner-MG5CSPWM.js.map → ast-rule-runner-VIIZKD35.js.map} +0 -0
  80. /package/dist/{child-mcp-config-WPCDGWFE.js.map → child-mcp-config-2JYO5AJP.js.map} +0 -0
  81. /package/dist/{chunk-KG7QNWWR.js.map → chunk-2SAKTPAB.js.map} +0 -0
  82. /package/dist/{chunk-ZDFC5TOU.js.map → chunk-3GYS7COR.js.map} +0 -0
  83. /package/dist/{chunk-PKWOB6SS.js.map → chunk-47G5DKIB.js.map} +0 -0
  84. /package/dist/{chunk-N22A5RSA.js.map → chunk-5ZONF4CQ.js.map} +0 -0
  85. /package/dist/{chunk-FADEMLNQ.js.map → chunk-7LX3GAS5.js.map} +0 -0
  86. /package/dist/{chunk-Z7L5C35G.js.map → chunk-AKOWEZKO.js.map} +0 -0
  87. /package/dist/{chunk-7IU7HDDO.js.map → chunk-CRTPETKD.js.map} +0 -0
  88. /package/dist/{chunk-SZGVILVS.js.map → chunk-DUHH2IS4.js.map} +0 -0
  89. /package/dist/{chunk-G47QXLHM.js.map → chunk-F2UTYE6D.js.map} +0 -0
  90. /package/dist/{chunk-SFKQIPPE.js.map → chunk-F7SZ56LN.js.map} +0 -0
  91. /package/dist/{chunk-SEGBB7VI.js.map → chunk-FU3IJOUI.js.map} +0 -0
  92. /package/dist/{chunk-LRDHTYE3.js.map → chunk-HI5SDT6A.js.map} +0 -0
  93. /package/dist/{chunk-JGZHI37B.js.map → chunk-ILUSO4TT.js.map} +0 -0
  94. /package/dist/{chunk-45HAQ44K.js.map → chunk-JI4WSYTK.js.map} +0 -0
  95. /package/dist/{chunk-BD4GXOQB.js.map → chunk-JL22F4XW.js.map} +0 -0
  96. /package/dist/{chunk-CP6NEDAC.js.map → chunk-MG7HNWZT.js.map} +0 -0
  97. /package/dist/{chunk-XYUNU7UD.js.map → chunk-NIMOQ4ZY.js.map} +0 -0
  98. /package/dist/{chunk-Y6EZX773.js.map → chunk-P6UFA2UN.js.map} +0 -0
  99. /package/dist/{chunk-XXHO52MZ.js.map → chunk-Q34QYIQZ.js.map} +0 -0
  100. /package/dist/{chunk-THCAUXID.js.map → chunk-QOBBJAQK.js.map} +0 -0
  101. /package/dist/{chunk-AJMJPUPR.js.map → chunk-SFXQEW3O.js.map} +0 -0
  102. /package/dist/{chunk-ZVNEWTHP.js.map → chunk-SXO5CV6E.js.map} +0 -0
  103. /package/dist/{chunk-VFT7OHAD.js.map → chunk-TFAI7OB7.js.map} +0 -0
  104. /package/dist/{chunk-3KQJ54R6.js.map → chunk-UP2GSUT5.js.map} +0 -0
  105. /package/dist/{chunk-MITLS7S7.js.map → chunk-USGPMAWQ.js.map} +0 -0
  106. /package/dist/{chunk-TEKDGJ7T.js.map → chunk-WWDTDPX4.js.map} +0 -0
  107. /package/dist/{chunk-OJQNSD2R.js.map → chunk-XPXTELLI.js.map} +0 -0
  108. /package/dist/{chunk-WVSFUDDF.js.map → chunk-Y365LONR.js.map} +0 -0
  109. /package/dist/{cli-circuit-breaker-FDVTKR3W.js.map → cli-circuit-breaker-TUSDZ2SV.js.map} +0 -0
  110. /package/dist/{composite-router-OTSHVAIF.js.map → composite-router-RPUHBTVN.js.map} +0 -0
  111. /package/dist/{consensus-vote-QGW6QVZO.js.map → consensus-vote-NBVBPFIB.js.map} +0 -0
  112. /package/dist/{context-retriever-QI6XW5LK.js.map → context-retriever-BKOWAH5O.js.map} +0 -0
  113. /package/dist/{doctor-deep-375FGXVN.js.map → doctor-deep-KNTBC4H2.js.map} +0 -0
  114. /package/dist/{doctor-gateway-report-ZPZQLULX.js.map → doctor-gateway-report-HOQXHTPV.js.map} +0 -0
  115. /package/dist/{doctor-live-FCXFMIYP.js.map → doctor-live-GZDB4B33.js.map} +0 -0
  116. /package/dist/{expert-bridge-VLDOWCEX.js.map → expert-bridge-YGKTCGCZ.js.map} +0 -0
  117. /package/dist/{factory-AXQJGIQ2.js.map → factory-22OXEIIE.js.map} +0 -0
  118. /package/dist/{factory-M4I2H672.js.map → factory-5QHVFCXC.js.map} +0 -0
  119. /package/dist/{improvement-review-6ZEUEFSB.js.map → improvement-review-XTP7JMEZ.js.map} +0 -0
  120. /package/dist/{init-opencode-W4PHSNEW.js.map → init-opencode-ETQVTJS2.js.map} +0 -0
  121. /package/dist/{issue-triage-D2FVG6WU.js.map → issue-triage-LWHJZJXW.js.map} +0 -0
  122. /package/dist/{openai-compat-adapter-DYQGI4QH.js.map → openai-compat-adapter-OYPGYA7H.js.map} +0 -0
  123. /package/dist/{pr-reviewer-helpers-BUVRQYVV.js.map → pr-reviewer-helpers-UQCX6JJV.js.map} +0 -0
  124. /package/dist/{registry-command-V5O2RJKG.js.map → registry-command-5ZDFQVNQ.js.map} +0 -0
  125. /package/dist/{repo-security-plan-2ZLH3LHT.js.map → repo-security-plan-C3E4UCMK.js.map} +0 -0
  126. /package/dist/{research-helpers-synthesize-52U4FSGP.js.map → research-helpers-synthesize-MHHRXBUM.js.map} +0 -0
  127. /package/dist/{routing-memory-3FIWR6WH.js.map → routing-memory-ZY2HWUJH.js.map} +0 -0
  128. /package/dist/{session-memory-HIH3T3NA.js.map → session-memory-OTOULTRW.js.map} +0 -0
  129. /package/dist/{setup-config-IP75P4NY.js.map → setup-config-2WG42YRL.js.map} +0 -0
  130. /package/dist/{setup-custom-api-DAFW3DKS.js.map → setup-custom-api-XLCFXFP6.js.map} +0 -0
  131. /package/dist/{setup-data-dir-ZF4KKISC.js.map → setup-data-dir-BOZJED5R.js.map} +0 -0
  132. /package/dist/{tool-memory-LAFHMYSR.js.map → tool-memory-FQR6ZO5H.js.map} +0 -0
  133. /package/dist/{unified-registry-N4MPRQUA.js.map → unified-registry-F23TAIRP.js.map} +0 -0
  134. /package/dist/{weather-report-MKHINWCE.js.map → weather-report-6XYTDVTL.js.map} +0 -0
@@ -9,8 +9,8 @@ import {
9
9
  getBuiltInAstRulesPath,
10
10
  loadRules,
11
11
  runAstQaRules
12
- } from "./chunk-PKWOB6SS.js";
13
- import "./chunk-SZGVILVS.js";
12
+ } from "./chunk-47G5DKIB.js";
13
+ import "./chunk-DUHH2IS4.js";
14
14
  import "./chunk-UE7A2XHM.js";
15
15
  import "./chunk-LWOX65CP.js";
16
16
  import "./chunk-PX6F3LHL.js";
@@ -26,4 +26,4 @@ export {
26
26
  loadRules,
27
27
  runAstQaRules
28
28
  };
29
- //# sourceMappingURL=ast-rule-runner-MG5CSPWM.js.map
29
+ //# sourceMappingURL=ast-rule-runner-VIIZKD35.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-OITVVSWO.js";
4
4
  import {
5
5
  createLogger
6
- } from "./chunk-SZGVILVS.js";
6
+ } from "./chunk-DUHH2IS4.js";
7
7
  import "./chunk-UE7A2XHM.js";
8
8
  import "./chunk-LWOX65CP.js";
9
9
  import "./chunk-PX6F3LHL.js";
@@ -56,4 +56,4 @@ async function generateMcpConfig(options) {
56
56
  export {
57
57
  generateMcpConfig
58
58
  };
59
- //# sourceMappingURL=child-mcp-config-WPCDGWFE.js.map
59
+ //# sourceMappingURL=child-mcp-config-2JYO5AJP.js.map
@@ -19,40 +19,41 @@ import {
19
19
  toolSuccessStructured,
20
20
  withProgressHeartbeat,
21
21
  wrapToolWithTimeout
22
- } from "./chunk-XYUNU7UD.js";
22
+ } from "./chunk-NIMOQ4ZY.js";
23
23
  import {
24
24
  VERSION
25
- } from "./chunk-THCAUXID.js";
25
+ } from "./chunk-QOBBJAQK.js";
26
26
  import {
27
27
  allOf
28
28
  } from "./chunk-EZNIYU5T.js";
29
29
  import {
30
30
  isGatewayModelAdapter
31
- } from "./chunk-2DOH7LES.js";
31
+ } from "./chunk-JFQJLOW4.js";
32
32
  import {
33
33
  UNRESOLVED_MODEL_ID,
34
34
  assessPanelIndependence,
35
35
  canonicalModelKey,
36
36
  countDistinctModels,
37
37
  createEvent,
38
+ ensureGatewayDiscovered,
38
39
  getGlobalRegistry
39
- } from "./chunk-55VTUHIR.js";
40
+ } from "./chunk-4K3SY7XD.js";
40
41
  import {
41
42
  getToolMemory
42
- } from "./chunk-3KQJ54R6.js";
43
+ } from "./chunk-UP2GSUT5.js";
43
44
  import {
44
45
  delay,
45
46
  getAvailableClis,
46
47
  sleep,
47
48
  withTimeout
48
- } from "./chunk-SFKQIPPE.js";
49
+ } from "./chunk-F7SZ56LN.js";
49
50
  import {
50
51
  sanitizeErrorDetails,
51
52
  sanitizeOutput
52
53
  } from "./chunk-2NDA4DHW.js";
53
54
  import {
54
55
  isTimeoutText
55
- } from "./chunk-OJQNSD2R.js";
56
+ } from "./chunk-XPXTELLI.js";
56
57
  import {
57
58
  AgentError,
58
59
  CLI_NAMES,
@@ -63,6 +64,7 @@ import {
63
64
  OutcomeStore,
64
65
  TaskOutcomeSchema,
65
66
  UNDECLARED_OPTIONS_EXCERPT_CHARS,
67
+ UNKNOWN_MODEL,
66
68
  VOTE_TIMEOUTS,
67
69
  authRemediation,
68
70
  categorizeOutcomeErrorMessage,
@@ -93,7 +95,7 @@ import {
93
95
  resolveVoteTimeout,
94
96
  servedCostDetail,
95
97
  stepBus
96
- } from "./chunk-SZGVILVS.js";
98
+ } from "./chunk-DUHH2IS4.js";
97
99
  import {
98
100
  ensureLearningDir,
99
101
  getOutcomesFile
@@ -2260,66 +2262,6 @@ function resolvePanelWorkspace(workspace) {
2260
2262
  return workspace ?? process.cwd();
2261
2263
  }
2262
2264
 
2263
- // src/adapters/gateway-rediscovery.ts
2264
- var GATEWAY_REDISCOVERY_INTERVAL_MS = 6e4;
2265
- var GatewayRediscovery = class {
2266
- constructor(options) {
2267
- this.options = options;
2268
- this.minIntervalMs = options.minIntervalMs ?? GATEWAY_REDISCOVERY_INTERVAL_MS;
2269
- this.lastAttemptAt = options.lastAttemptAt ?? getTimeProvider().now();
2270
- }
2271
- options;
2272
- minIntervalMs;
2273
- lastAttemptAt;
2274
- inFlight;
2275
- /**
2276
- * Re-run discovery if the gateway is still missing and the backoff allows.
2277
- * Never rejects: a failed attempt is logged and the caller proceeds on
2278
- * whatever the list holds (empty means the CLI path, as at boot).
2279
- */
2280
- ensure() {
2281
- if (this.options.target.length > 0) return Promise.resolve();
2282
- if (this.inFlight !== void 0) return this.inFlight;
2283
- const now = getTimeProvider().now();
2284
- if (now - this.lastAttemptAt < this.minIntervalMs) return Promise.resolve();
2285
- this.lastAttemptAt = now;
2286
- this.inFlight = this.attempt().finally(() => {
2287
- this.inFlight = void 0;
2288
- });
2289
- return this.inFlight;
2290
- }
2291
- async attempt() {
2292
- const { logger: logger11, target } = this.options;
2293
- let found;
2294
- try {
2295
- found = await this.options.discover();
2296
- } catch (error) {
2297
- logger11.warn("Gateway re-discovery threw; calls stay on CLI subprocesses", {
2298
- error: getErrorMessage(error)
2299
- });
2300
- return;
2301
- }
2302
- if (found === void 0 || found.length === 0) {
2303
- logger11.warn(
2304
- `Gateway re-discovery found no usable gateway; calls stay on CLI subprocesses. Next attempt no sooner than ${String(Math.round(this.minIntervalMs / 1e3))} s, on the next gateway call.`
2305
- );
2306
- return;
2307
- }
2308
- target.push(...found);
2309
- logger11.info("OpenAI-compatible gateway re-discovered; gateway calls now go in-process", {
2310
- modelCount: found.length
2311
- });
2312
- this.options.onDiscovered?.(found);
2313
- }
2314
- };
2315
- var active;
2316
- function setGatewayRediscovery(rediscovery) {
2317
- active = rediscovery;
2318
- }
2319
- async function ensureGatewayDiscovered() {
2320
- await active?.ensure();
2321
- }
2322
-
2323
2265
  // src/cli/voter-agents.ts
2324
2266
  function computeOverallConsensusDeadlineMs(timeoutMs, maxRetries, roleCount, interDelayMs) {
2325
2267
  const perVoteBudget = timeoutMs * (maxRetries + 1);
@@ -5539,12 +5481,12 @@ var CorrelationModelPartitions = class {
5539
5481
  for (const [role, newModel] of modelPins) this.setCurrentPin(role, newModel);
5540
5482
  }
5541
5483
  getActiveHistory() {
5542
- const active2 = /* @__PURE__ */ new Map();
5484
+ const active = /* @__PURE__ */ new Map();
5543
5485
  for (const [pairKey, partitions] of this.histories) {
5544
5486
  const history = partitions.get(this.activePartitionKey(pairKey));
5545
- if (history !== void 0) active2.set(pairKey, history);
5487
+ if (history !== void 0) active.set(pairKey, history);
5546
5488
  }
5547
- return active2;
5489
+ return active;
5548
5490
  }
5549
5491
  getOrCreate(pairKey, create) {
5550
5492
  let partitions = this.histories.get(pairKey);
@@ -6648,7 +6590,7 @@ function logPartialProposal(bounded, log) {
6648
6590
  }
6649
6591
  async function runContrarianCheck(proposal, log, opts) {
6650
6592
  try {
6651
- const { executeExpert } = await import("./expert-bridge-VLDOWCEX.js");
6593
+ const { executeExpert } = await import("./expert-bridge-YGKTCGCZ.js");
6652
6594
  const bounded = boundArtifactForReview(proposal, CONTRARIAN_PROPOSAL_BUDGET, "proposal");
6653
6595
  logPartialProposal(bounded, log);
6654
6596
  const result = await executeExpert("architecture", buildContrarianPrompt(bounded, opts), {
@@ -7478,15 +7420,17 @@ function reportedTokenFields(v) {
7478
7420
  }
7479
7421
  function voteCostDetail(v) {
7480
7422
  const hasTokens = v.inputTokens !== void 0 || v.outputTokens !== void 0;
7481
- if (!hasTokens || v.model === void 0) return void 0;
7482
- return servedCostDetail(v.gatewayArm, v.model, v.inputTokens ?? 0, v.outputTokens ?? 0);
7423
+ if (!hasTokens) return void 0;
7424
+ if (v.servedModel === void 0) return { costUsd: 0, priced: false, resolvedId: UNKNOWN_MODEL };
7425
+ return servedCostDetail(v.gatewayArm, v.servedModel, v.inputTokens ?? 0, v.outputTokens ?? 0);
7483
7426
  }
7484
7427
  function votesToCostInputs(votes) {
7485
7428
  return votes.map((v) => {
7486
7429
  const detail = voteCostDetail(v);
7487
7430
  const input = {
7488
7431
  role: v.role,
7489
- model: v.model,
7432
+ // #6663: the model that answered, the one the cost is priced at.
7433
+ model: v.servedModel,
7490
7434
  // #6115: the assignment beside the model that answered.
7491
7435
  ...v.assignedCli !== void 0 ? { assignedCli: v.assignedCli } : {},
7492
7436
  ...reportedTokenFields(v),
@@ -9881,9 +9825,6 @@ export {
9881
9825
  isAbsentSeat,
9882
9826
  NoAdapterError,
9883
9827
  resolveAdapter,
9884
- GatewayRediscovery,
9885
- setGatewayRediscovery,
9886
- ensureGatewayDiscovered,
9887
9828
  assignPanelSeats,
9888
9829
  collectRealVotes,
9889
9830
  VoterProjectInputSchema,
@@ -9955,4 +9896,4 @@ export {
9955
9896
  CONSENSUS_VOTE_TOOL_SCHEMA,
9956
9897
  registerConsensusVoteTool
9957
9898
  };
9958
- //# sourceMappingURL=chunk-KLHFVYAP.js.map
9899
+ //# sourceMappingURL=chunk-2DBAC2OY.js.map